gnulib-tool: Verify that the License field is present and non-empty.
[gnulib.git] / ChangeLog
1 2011-12-03  Bruno Haible  <bruno@clisp.org>
2
3         gnulib-tool: Verify that the License field is present and non-empty.
4         * gnulib-tool (func_get_license_raw): New function, extracted from
5         func_get_license.
6         (func_get_license): Use it. Warn if the module is not a test module and
7         has no license.
8         Suggested by Jim Meyering.
9
10 2011-12-03  Bruno Haible  <bruno@clisp.org>
11
12         sethostname tests: Fix link error on mingw.
13         * tests/test-sethostname1.c: New file, extracted from
14         tests/test-sethostname.c.
15         * tests/test-sethostname2.c: New file, extracted from
16         tests/test-sethostname.c.
17         * tests/test-sethostname.c: Remove file.
18         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
19         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
20         (Depends-on): Add gethostname.
21         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
22         Link the latter with $(GETHOSTNAME_LIB).
23
24         sethostname tests: Fix compilation error on mingw.
25         * tests/test-sethostname.c: Don't include <sys/types.h>.
26         (geteuid): Use a dummy value without uid_t.
27         * modules/sethostname-tests (Depends-on): Remove sys_types.
28
29         sethostname tests: Avoid a gcc warning.
30         * tests/test-sethostname.c (main): Remove an unused variable.
31
32         Tweak last commit.
33         * modules/sethostname-tests (Files): Sort by decreasing importance.
34         (configure.ac): Check for geteuid.
35         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
36         the test when there's nothing to test. Drop an unnecessary cast.
37         Improve an error message. Verify that the final sethostname() call
38         succeeds.
39
40 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41
42         Add a test suite for the sethostname module.
43         * modules/sethostname-tests: New file.  A test program
44         for the sethostname module.
45         * tests/test-sethostname.c: Likewise.
46
47 2011-12-03  Bruno Haible  <bruno@clisp.org>
48
49         Tweak last commit.
50         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
51         Fix preprocessor directives indentation. Fix typos.
52         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
53         * modules/unistd (Makefile): Likewise.
54
55 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
56
57         Integrate the sethostname module into unistd.
58         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
59         into the unistd.h header.
60         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
61         preprocessor directives.
62         * modules/unistd: Setup the Makefile substitutions of the
63         SETHOSTNAME preprocessor directives.
64
65 2011-12-03  Bruno Haible  <bruno@clisp.org>
66
67         Tweak last commit.
68         * lib/sethostname.c: Don't include <string.h>.
69         (sethostname): No need to copy the argument string to the stack. Don't
70         call clearerr. Preserve errno when fprintf failed.
71         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
72         Don't invoke AC_REPLACE_FUNCS.
73         * modules/sethostname (Link): Remove empty section.
74         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
75         failure problem.
76
77 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
78
79         New module 'sethostname'.
80         * lib/sethostname.c (sethostname): New file.  Provide sethostname
81         for systems that lack it.
82         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
83         sethostname declaration and function.
84         * modules/sethostname: New file.  Define the sethostname module.
85
86 2011-12-03  Bruno Haible  <bruno@clisp.org>
87
88         Tweak last commit.
89         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
90
91 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
92
93         Split the HOST_NAME_MAX detection into a separate m4 macro.
94         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
95         macro so it can be used by the pending sethostname module.
96
97 2011-12-03  Bruno Haible  <bruno@clisp.org>
98
99         Fix module descriptions syntax.
100         * modules/argv-iter (License): Fix syntax.
101         * modules/di-set (License): Likewise.
102         * modules/ino-map (License): Likewise.
103         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
104
105 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
106
107         stdalign: port to Clang 3.0
108         Problem reported by Simon Josefsson in
109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
110         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
111         which has <stdalign.h> but which does not define alignof.
112         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
113
114 2011-12-01  Eric Blake  <eblake@redhat.com>
115
116         mktempd: silence dd usage
117         * build-aux/mktempd (rand_bytes): Silence dd.
118
119 2011-11-30  Simon Josefsson  <simon@josefsson.org>
120
121         manywarnings: Don't mention gcc version in docstring.
122         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
123         Jim Meyering <meyering@redhat.com>.
124
125 2011-11-30  Jim Meyering  <meyering@redhat.com>
126
127         hash: mark a few floating point constants with "f" suffix
128         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
129         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
130         floating point constants with "f", since they're destined to be
131         saved/used as "float"s.
132
133 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
134
135         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
136         * tests/test-float.c (test_long_double): Correct and re-enable the
137         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
138
139 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
140
141         Avoid subtracting two pointers that don't point into the same block.
142         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
143         only pointers into the same memory block are subtracted. We cannot
144         assume that sizeof (ptrdiff_t) == sizeof (void *).
145
146 2011-11-29  Eric Blake  <eblake@redhat.com>
147
148         maint.mk: add syntax check for use of compare from init.sh
149         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
150         moved here from coreutils.
151
152         manywarnings: drop -Wunsuffixed-float-constants
153         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
154         '1.0D', which is the only way to silence this warning for 'double'.
155
156 2011-11-29  Jim Meyering  <meyering@redhat.com>
157
158         hash: mark compute_bucket_size with the pure attribute
159         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
160
161         quotearg, propername: correct pragma guard expression
162         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
163         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
164
165 2011-11-28  Jim Meyering  <meyering@redhat.com>
166
167         propername: do not mark proper_name with the const attribute
168         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
169         since it examines data pointed to by its parameter.
170         * lib/propername.c (proper_name): Instead, add a pragma to suppress
171         the suggestion from -Wsuggest-attribute=const.
172
173         propername: mark one more function as const
174         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
175
176 2011-11-27  Jim Meyering  <meyering@redhat.com>
177
178         mark functions with const and pure attributes
179
180         Mark functions per suggestions from gcc-4.6 when using these options:
181         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
182         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
183         Follow these guidelines: when possible, apply the attribute to
184         an extern declaration, not to its definition.  Apply it to the
185         definition only when the definition is static.
186         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
187         * lib/argv-iter.h (argv_iter_n_args): Likewise.
188         * lib/base64.h (isbase64): Likewise.
189         * lib/basename-lgpl.c (last_component, base_len): Likewise.
190         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
191         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
192         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
193         (c_tolower, c_toupper): Likewise.
194         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
195         * lib/chdir-long.c (find_non_slash): Likewise.
196         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
197         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
198         * lib/file-type.h (file_type): Likewise.
199         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
200         * lib/filevercmp.c (verrevcmp): Likewise.
201         * lib/freadahead.h (freadahead): Likewise.
202         * lib/fts.c (fts_maxarglen): Likewise.
203         * lib/hash-pjw.h (hash_pjw): Likewise.
204         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
205         * lib/hash.c (is_prime, next_prime): Likewise.
206         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
207         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
208         (hash_table_ok, hash_get_first, hash_string): Likewise.
209         (compute_bucket_size): Likewise.
210         * lib/i-ring.h (i_ring_empty): Likewise.
211         * lib/isnan.c (isnanl): Likewise.
212         * lib/math.h (isnanl, rpl_isnanl): Likewise.
213         * lib/memcasecmp.h (memcasecmp): Likewise.
214         * lib/memchr2.h (memchr2): Likewise.
215         * lib/memcmp2.h (memcmp2): Likewise.
216         * lib/parse-datetime.y (lookup_zone): Likewise.
217         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
218         [!WINDOWS_SOCKETS]: Likewise.
219         * lib/strnlen1.h (strnlen1): Likewise.
220         * lib/uniwidth.in.h (uc_width): Likewise.
221         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
222         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
223         (quoting_options_from_style): Add a comment.
224         * lib/propername.h (proper_name): Add a comment.
225
226 2011-11-27  Bruno Haible  <bruno@clisp.org>
227
228         Remove unused macros from !_LIBC code in glibc-borrowed files.
229         * lib/fnmatch.c (STRCOLL): Remove macro.
230         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
231         * lib/glob.c (__stat, __readdir64): Remove macros.
232         * lib/tempname.c (__open64, __xstat64): Remove macros.
233         Suggested by Paul Eggert.
234
235 2011-11-27  Bruno Haible  <bruno@clisp.org>
236
237         getcwd: Fix link error on MSVC 9.
238         * modules/getcwd (Depends-on): Add readdir, rewinddir.
239
240 2011-11-27  Bruno Haible  <bruno@clisp.org>
241
242         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
243         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
244         HAVE_OPENDIR is 0.
245         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
246         HAVE_CLOSEDIR is 0.
247         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
248         is 0.
249         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
250
251 2011-11-27  Bruno Haible  <bruno@clisp.org>
252
253         getcwd: Fix bug from 2011-08-17.
254         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
255         platforms that need it.
256         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
257         code of 4 to be a failure, not a success. This ensures that
258         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
259
260 2011-11-27  Bruno Haible  <bruno@clisp.org>
261
262         binary-io tests: Avoid test failure on mingw when libtool is used.
263         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
264         Don't verify the size of t-bin-out1.tmp here.
265         * tests/test-binary-io.sh: Verify it here.
266         Reported by Simon Josefsson.
267
268 2011-11-26  Bruno Haible  <bruno@clisp.org>
269
270         Fix conflict between two instantiations of module 'unistd'.
271         * gnulib-tool (func_emit_autoconf_snippet): Substitute
272         ${include_guard_prefix} also in the autoconf snippet.
273         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
275         GNULIB_UNISTD_H_GETOPT.
276         * modules/getopt-posix (configure.ac): Set the
277         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
278         * modules/getopt-gnu (configure.ac): Likewise.
279         * modules/unistd (Makefile.am): Change the substitution value of
280         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
281         Reported by Simon Josefsson.
282
283 2011-11-25  Bruno Haible  <bruno@clisp.org>
284
285         pagealign_alloc: Doc and comments.
286         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
287         module.
288         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
289
290 2011-11-25  Jim Meyering  <meyering@redhat.com>
291
292         test-update-copyright.sh: avoid false-positive failure
293         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
294         around false positive failure on Cygwin/Windows.  The latter was
295         matching erroneously-created files with names like
296         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
297
298 2011-11-25  Simon Josefsson  <simon@josefsson.org>
299
300         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
301         * m4/valgrind-tests.m4: Check that the parameters that will be
302         used works, not just a subset of them.  Reported by Bruno Haible
303         <bruno@clisp.org>.
304
305 2011-11-24  Jim Meyering  <meyering@redhat.com>
306
307         test-stdalign.c: comment out long double tests
308         * tests/test-stdalign.c: Don't try to reduce alignment of long double
309         variables.  That provokes errors like this from gcc-4.7.0 20111124:
310         error: '_Alignas' specifiers cannot reduce alignment of \
311         'static_longdouble_alignas'.
312
313 2011-11-22  Jim Meyering  <meyering@redhat.com>
314
315         init.sh: make "compare /dev/null FILE" output more readable
316         * tests/init.sh (compare_): Document the preferred order of arguments.
317         (emit_diff_u_header_): New function.
318         (compare_dev_null_): Emit a simulated diff, rather than just the
319         contents of the unexpected file.  Suggestion from Bruno Haible.
320
321 2011-11-21  Jim Meyering  <meyering@redhat.com>
322             Eric Blake  <eblake@redhat.com>
323
324         init.sh: work around OSF/1 5.1's mishandling of /dev/null
325         * tests/init.sh: Make our compare function slightly more portable.
326         Reported by Bruno Haible in
327         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
328
329 2011-11-21  Simon Josefsson  <simon@josefsson.org>
330
331         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
332         before using it, in code that ends up in config.h.
333
334 2011-11-20  Bruno Haible  <bruno@clisp.org>
335
336         getcwd: Work around getcwd bug on AIX 5..7.
337         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
338         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
339         Use a different value for gl_cv_func_getcwd_path_max. Move the
340         definition of HAVE_PARTLY_WORKING_GETCWD from here...
341         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
342         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
343         Define HAVE_MINIMALLY_WORKING_GETCWD.
344         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
345         where it is not even minimally working, that is, on AIX.
346         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
347         m4/getcwd-path-max.m4.
348         (main): Update exit code computation.
349         * doc/posix-functions/getcwd.texi: Mention list of platforms where
350         getcwd does not handle long file names.
351
352 2011-11-20  Bruno Haible  <bruno@clisp.org>
353
354         getcwd: Fix bug from 2009-09-10.
355         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
356         like "no".
357
358 2011-11-20  Simon Josefsson  <simon@josefsson.org>
359
360         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
361
362 2011-11-20  Bruno Haible  <bruno@clisp.org>
363
364         fma tests: Avoid shadowing local variables.
365         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
366         expected.
367
368 2011-11-20  Bruno Haible  <bruno@clisp.org>
369
370         copysignf tests: Fix.
371         * tests/test-copysignf.c: Fix signature check.
372
373 2011-11-20  Bruno Haible  <bruno@clisp.org>
374
375         fma: Remove unused code.
376         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
377         unused macros.
378
379 2011-11-20  Bruno Haible  <bruno@clisp.org>
380
381         sethostname: Fix doc about AIX.
382         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
383         sethostname; it has it.
384
385         sethostname: Mention more portability problems.
386         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
387         problem.
388         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
389
390 2011-11-19  Bruno Haible  <bruno@clisp.org>
391
392         Depend on module fcntl-h when AT_FDCWD is used.
393         * modules/utimens (Depends-on): Add fcntl-h.
394         * modules/areadlinkat (Depends-on): Likewise.
395         * modules/areadlinkat-with-size (Depends-on): Likewise.
396         * modules/faccessat (Depends-on): Likewise.
397         * modules/fchmodat (Depends-on): Likewise.
398         * modules/fchownat (Depends-on): Likewise.
399         * modules/getcwd (Depends-on): Likewise.
400         * modules/mkdirat (Depends-on): Likewise.
401         * modules/mkfifoat (Depends-on): Likewise.
402         * modules/readlinkat (Depends-on): Likewise.
403         * modules/symlinkat (Depends-on): Likewise.
404         * modules/dup2-tests (Depends-on): Likewise.
405         * modules/fdutimensat-tests (Depends-on): Likewise.
406         * modules/futimens-tests (Depends-on): Likewise.
407
408 2011-11-19  Bruno Haible  <bruno@clisp.org>
409
410         euidaccess: Update a comment.
411         * lib/euidaccess.c: Update comment about platforms with faccessat.
412
413 2011-11-19  Bruno Haible  <bruno@clisp.org>
414
415         openat: Fix file list.
416         * modules/openat (Files): Remove lib/at-func.c.
417
418 2011-11-19  Bruno Haible  <bruno@clisp.org>
419
420         fstatat: Simplify.
421         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
422         gnulib should define rpl_fstatat, there is a
423         "#define fstatat rpl_fstatat" in <sys/stat.h>.
424
425 2011-11-19  Bruno Haible  <bruno@clisp.org>
426
427         Ensure 'inline' can be used in tests/test-utimens-common.h.
428         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
429         * modules/futimens-tests (configure.ac): Likewise.
430         * modules/utimens-tests (configure.ac): Likewise.
431         * modules/utimensat-tests (configure.ac): Likewise.
432
433 2011-11-19  Simon Josefsson  <simon@josefsson.org>
434
435         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
436         not hash_insert0.
437         (hash_insert_if_absent): Doc fix.
438
439 2011-11-19  Simon Josefsson  <simon@josefsson.org>
440
441         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
442
443 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
444
445         test-getcwd: disambiguate exit status
446         * tests/test-getcwd.c (test_long_name): Return 0..7.
447         (main): Exit with an unambiguous exit status.  The old
448         code yielded a mysterious mixture of two failure codes.
449
450         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
451         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
452         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
453         rpl_fstatat or fstatat.  This should fix the other problem
454         reported by Kai Habel in
455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
456         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
458         and I reproduced it on a Solaris 8 host we still have in production.
459
460 2011-11-18  Jim Meyering  <meyering@redhat.com>
461
462         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
463         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
464         Add a sentence to the comment.
465         (hash_insert0): New function that simply calls hash_insert_if_absent.
466         * lib/hash.h (hash_insert_if_absent): Declare it.
467         (hash_insert0): Add deprecation attribute.
468         (_GL_ATTRIBUTE_DEPRECATED): Define.
469         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
470         not hash_insert0.
471         * NEWS: Mention it, even though it's not really an incompatible change.
472
473 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
474
475         openat: avoid compilation failure due to lack of <errno.h> inclusion
476         * lib/openat.c: Include <errno.h>.
477
478 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
479
480         * modules/getcwd (Depends-on): Add fdopendir.
481         This fixes one of the two problems reported by Kai Habel in
482         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
483
484         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
485         stdalign problem reported by Ian Beckwith in
486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
487         * modules/crypto/gc-arcfour (Depends-on):
488         Depend conditionally on crypto/arcfour.
489         * modules/crypto/gc-arctwo (Depends-on):
490         Depend conditionally on crypto/arctwo.
491         * modules/crypto/gc-des (Depends-on):
492         Depend conditionally on crypto/des.
493         * modules/crypto/gc-hmac-md5 (Depends-on):
494         Depend conditionally on crypto/hmac-md5.
495         * modules/crypto/gc-hmac-sha1 (Depends-on):
496         Depend conditionally on crypto/hmac-sha1.
497         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
498         * modules/crypto/gc-md4 (Depends-on):
499         Depend conditionally on crypto/md4.
500         * modules/crypto/gc-md5 (Depends-on):
501         Depend conditionally on crypto/md5.
502         * modules/crypto/gc-rijndael (Depends-on):
503         Depend conditionally on crypto/rijndael.
504         * modules/crypto/gc-sha1 (Depends-on):
505         Depend conditionally on crypto/sha1.
506         * modules/crypto/gc-arcfour:
507         * modules/crypto/gc-arctwo:
508         * modules/crypto/gc-des:
509         * modules/crypto/gc-hmac-md5:
510         * modules/crypto/gc-hmac-sha1:
511         * modules/crypto/gc-md2:
512         * modules/crypto/gc-md4:
513         * modules/crypto/gc-md5:
514         * modules/crypto/gc-rijndael:
515         * modules/crypto/gc-sha1:
516         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
517         now that the conditional dependencies do the work for us.
518
519 2011-11-17  Jim Meyering  <meyering@redhat.com>
520
521         tests: factor st_ctime-comparison out of two headers
522         * tests/test-utimens-common.h (ctime_compare): Define.
523         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
524         * tests/test-lutimens.h (test_lutimens): Likewise.
525         * tests/test-utimens.h (test_utimens): Likewise.
526
527         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
528         Invoke the test program via an init.sh-using wrapper.
529         * tests/test-getcwd.sh: New file.
530         * modules/getcwd-tests (Files): Add it.
531         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
532
533 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
534
535         gitlog-to-changelog: support multi-author commits.
536         The FSF cares about keeping track of all authors of patches to its
537         projects, but Git doesn't provide obvious support for multi-author
538         changesets. Consensus seems to be forming around the use of extra
539         Signed-off-by inspired lines in the log message formatted as
540         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
541         multi-author commits between version control systems.
542         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
543         log message and output in standard ChangeLog multi-author format.
544         Reported by Peter Rosin <peda@lysator.liu.se>
545
546 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
547             Bruno Haible  <bruno@clisp.org>
548
549         Fix some modules' file list.
550         * modules/fstatat (Files): Add m4/lstat.m4.
551         * modules/openat (Files): Likewise.
552         * modules/unlinkat (Files): Likewise.
553
554 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
555
556         maint.mk: fix tight-scope.mk generation in VPATH builds.
557         * top/maint.mk (tight-scope.mk): Make sure to prefix file
558         reference with $(srcdir) so that the file is found correctly even
559         when running `make syntax-check' in a VPATH build.
560
561 2011-11-13  Bruno Haible  <bruno@clisp.org>
562             Jim Meyering  <meyering@redhat.com>
563
564         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
565         * tests/init.sh (compare): Remove "No differences encountered" or
566         synonymous output from the 'diff' program.
567
568 2011-11-13  Bruno Haible  <bruno@clisp.org>
569
570         Makefile: Tweak indentation.
571         * Makefile: Use tab as first character in every line that contains rule
572         commands.
573
574 2011-11-13  Bruno Haible  <bruno@clisp.org>
575
576         Syntax check for copyright statements.
577         * check-copyright: New file.
578         * Makefile (sc_check_copyright): New rule.
579
580 2011-11-13  Simon Josefsson  <simon@josefsson.org>
581
582         * build-aux/git-version-gen: Add --prefix to configure the tag
583         match string.
584
585 2011-11-13  Simon Josefsson  <simon@josefsson.org>
586
587         * build-aux/git-version-gen: Add --help and --version.
588
589 2011-11-12  Jim Meyering  <meyering@redhat.com>
590
591         revamp the other test-exclude?.sh scripts to use init.sh, too
592         * tests/test-exclude1.sh: Use init.sh.
593         * tests/test-exclude2.sh: Likewise.
594         * tests/test-exclude3.sh: Likewise.
595         * tests/test-exclude4.sh: Likewise.
596         * tests/test-exclude5.sh: Likewise.
597         * tests/test-exclude6.sh: Likewise.
598         * tests/test-exclude7.sh: Likewise.
599         * tests/test-exclude8.sh: Likewise.
600         * modules/exclude-tests (Files): List init.sh.
601
602         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
603         These shell scripts ignored failure of the binary test-exclude,
604         so making the latter return 77 didn't cause them to be skipped.
605         * tests/test-exclude5.sh: Exit with test-exclude's error status
606         when that program fails.  Revamp to use init.sh.
607         * tests/test-exclude2.sh: Likewise.
608
609         test-exclude: fix a typo
610         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
611
612 2011-11-11  Bruno Haible  <bruno@clisp.org>
613
614         obstack: Fix compilation error on MSVC 9.
615         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
616
617 2011-11-11  Jim Meyering  <meyering@redhat.com>
618
619         test-exclude: skip tests rather than failing on deficient systems
620         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
621         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
622         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
623         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
624
625 2011-11-10  Bruno Haible  <bruno@clisp.org>
626
627         ptsname_r test: Avoid gcc warning on glibc systems.
628         * tests/test-ptsname_r.c (null_ptr): New function.
629         (test_errors): Use it.
630
631 2011-11-10  Bruno Haible  <bruno@clisp.org>
632
633         ptsname_r: Avoid compilation error on OSF/1 5.1.
634         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
636         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
637         function is not declared or incompatibly declared.
638         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
639         * modules/ptsname_r (Depends-on, configure.ac): Update.
640         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
641
642 2011-11-10  Bruno Haible  <bruno@clisp.org>
643
644         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
645         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
646         When cross-compiling, guess yes on all platforms except AIX.
647         Reported by Ludovic Courtès <ludo@gnu.org>.
648
649 2011-11-09  Bruno Haible  <bruno@clisp.org>
650
651         ptsname_r tests: Fix bugs.
652         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
653         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
654
655 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
656
657         fstatat: work with cross-compilation
658         Problem reported by Ludovic Courtès in
659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
660         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
661         "cross-compiling" and assume the bug is present.  Replace
662         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
663         an inverted sense, to be more conservative about our assumptions.
664         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
665
666 2011-11-09  Bruno Haible  <bruno@clisp.org>
667
668         Improve MODULES.html output.
669         * modules/mkfifoat (Description): Use the word "function".
670         * modules/readlinkat (Description): Likewise.
671         * modules/symlinkat (Description): Likewise.
672
673 2011-11-09  Eric Blake  <eblake@redhat.com>
674
675         ptsname_r-tests: new test module
676         * modules/ptsname_r-tests: New module.
677         * tests/test-ptsname_r.c: New file.
678
679         ptsname_r: new module
680         * modules/ptsname_r: New module.
681         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
682         * lib/ptsname.c (__ptsname_r): Split...
683         * lib/ptsname_r.c: ...into new file.
684         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
685         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
686         * modules/stdlib (Makefile.am): Substitute witnesses.
687         * lib/stdlib.in.h (ptsname_r): Declare it.
688         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
689         * MODULES.html.sh (Misc): Likewise.
690         * modules/ptsname (Depends-on): Alter dependency.
691         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
692
693 2011-11-09  Jim Meyering  <meyering@redhat.com>
694
695         announce-gen: be more concise when there's only one URL+tarball
696         * build-aux/announce-gen (get_tool_versions): When you distribute
697         only one type of tarball, combine the first two "Here are..."
698         sections and make the key-checking grammar independent of
699         how many tarballs there are.
700
701 2011-11-09  Eric Blake  <eblake@redhat.com>
702
703         openpty: provide a stub on mingw
704         * lib/pty.in.h (includes): Provide forward declarations.
705         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
706
707         raise: fix mingw handling of SIGPIPE
708         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
709
710 2011-11-08  Bruno Haible  <bruno@clisp.org>
711
712         More conditional dependencies.
713         * modules/faccessat (Depends-on): Add conditions.
714         * modules/fchmodat (Depends-on): Likewise.
715         * modules/fchownat (Depends-on): Likewise.
716         * modules/fstatat (Depends-on): Likewise.
717         * modules/mkfifoat (Depends-on): Likewise.
718         * modules/readlinkat (Depends-on): Likewise.
719         * modules/symlinkat (Depends-on): Likewise.
720         * modules/unlinkat (Depends-on): Likewise.
721         * modules/utimensat (Depends-on): Likewise.
722         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
723         * modules/linkat (Depends-on): Refine the conditions.
724         * modules/renameat (Depends-on): Likewise.
725
726 2011-11-08  Bruno Haible  <bruno@clisp.org>
727
728         faccessat: Move AC_LIBOBJ invocation to module description.
729         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
730         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
731         invocation from here...
732         * modules/faccessat (configure.ac): ... to here. Invoke
733         gl_PREREQ_FACCESSAT.
734
735 2011-11-08  Bruno Haible  <bruno@clisp.org>
736
737         faccessat: Simplify autoconf macro.
738         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
739         gl_FUNC_EUIDACCESS.
740
741 2011-11-08  Bruno Haible  <bruno@clisp.org>
742
743         renameat: Fix dependencies.
744         * modules/renameat (Depends-on): Add stdbool.
745
746 2011-11-08  Bruno Haible  <bruno@clisp.org>
747
748         mkfifoat: Fix module description.
749         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
750         not gl_UNISTD_MODULE_INDICATOR.
751
752 2011-11-08  Bruno Haible  <bruno@clisp.org>
753
754         fstatat: Remove unused dependency.
755         * modules/fstatat (Depends-on): Remove fstat.
756
757 2011-11-08  Simon Josefsson  <simon@josefsson.org>
758
759         GNUmakefile: behave when Makefile is missing.
760         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
761
762 2011-11-08  Bruno Haible  <bruno@clisp.org>
763
764         openat: Conditionalize dependencies.
765         * lib/openat.c: Reduce the scope of some #includes.
766         * modules/openat (Depends-on): Add conditions.
767
768 2011-11-07  Jim Meyering  <meyering@redhat.com>
769
770         maint.mk: extract GPG key ID without using a temporary file
771         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
772         without using a temporary file.  Based on a suggestion from Werner Koch
773         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
774
775 2011-11-07  Eric Blake  <eblake@redhat.com>
776
777         grantpt: fix typo
778         * lib/stdlib.in.h (grantpt): Check correct function.
779
780         maint.mk: silence new syntax check
781         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
782
783 2011-11-06  Bruno Haible  <bruno@clisp.org>
784
785         Doc about floating-point and math API.
786         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
787         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
788
789 2011-11-06  Bruno Haible  <bruno@clisp.org>
790
791         stdalign tests: Skip the test when compiled by Sun C.
792         * tests/test-stdalign.c (main): Skip the test on Sun C.
793
794 2011-11-06  Bruno Haible  <bruno@clisp.org>
795
796         ansi-c++-opt: Complete the 2011-06-05 change.
797         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
798         does not support namespaces, set the variable to "no", not to ":".
799
800 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
801
802         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
803
804 2011-11-06  Bruno Haible  <bruno@clisp.org>
805
806         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
807         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
808         (minus_zerol) [HP-UX]: New macro.
809         (unary_minus) [HP-UX]: New function.
810         (copysignl) [HP-UX]: Use unary_minus function.
811
812 2011-11-06  Bruno Haible  <bruno@clisp.org>
813
814         ldexp, ldexpf, ldexpl: Enhance tests.
815         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
816         and tests/test-ldexpl.c.
817         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
818         LDEXP, MIN_EXP, MAX_EXP): New macros.
819         Include test-ldexp.h.
820         (main): Just call test_function.
821         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
822         infinity.h, nan.h.
823         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
824         MAX_EXP): New macros.
825         Include test-ldexp.h.
826         (x, y): Remove variables.
827         (main): Just call test_function.
828         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
829         infinity.h, nan.h.
830         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
831         MAX_EXP): New macros.
832         Include test-ldexp.h.
833         (x, y): Remove variables.
834         (main): Just call test_function.
835         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
836         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
837         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
838         (Depends-on): Add isnand-nolibm, signbit, float.
839         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
840         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
841         (Depends-on): Add isnanf-nolibm, signbit, float.
842
843 2011-11-06  Bruno Haible  <bruno@clisp.org>
844
845         math tests: Cosmetics.
846         * tests/test-math-c++.cc: Reorder declarations.
847
848 2011-11-05  Bruno Haible  <bruno@clisp.org>
849
850         fma*: Simplify test.
851         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
852         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
853
854         Tests for module 'fmal'.
855         * modules/fmal-tests: New file.
856         * tests/test-fmal1.c: New file.
857         * tests/test-fmal2.c: New file.
858
859         New module 'fmal'.
860         * lib/math.in.h (fmal): New declaration.
861         * lib/fmal.c: New file.
862         * m4/fmal.m4: New file.
863         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
865         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
866         REPLACE_FMAL.
867         * modules/fmal: New file.
868         * doc/posix-functions/fmal.texi: Mention the new module and the various
869         bugs.
870
871         Tests for module 'fmaf'.
872         * modules/fmaf-tests: New file.
873         * tests/test-fmaf1.c: New file.
874         * tests/test-fmaf2.c: New file.
875
876         New module 'fmaf'.
877         * lib/math.in.h (fmaf): New declaration.
878         * lib/fmaf.c: New file.
879         * m4/fmaf.m4: New file.
880         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
881         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
882         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
883         REPLACE_FMAF.
884         * modules/fmaf: New file.
885         * doc/posix-functions/fmaf.texi: Mention the new module and the various
886         bugs.
887
888         Tests for module 'fma'.
889         * modules/fma-tests: New file.
890         * tests/test-fma1.c: New file.
891         * tests/test-fma1.h: New file.
892         * tests/test-fma2.c: New file.
893         * tests/test-fma2.h: New file.
894
895         New module 'fma'.
896         * lib/math.in.h (fma): New declaration.
897         * lib/fma.c: New file.
898         * m4/fma.m4: New file.
899         * m4/fegetround.m4: New file.
900         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
902         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
903         REPLACE_FMA.
904         * modules/fma: New file.
905         * doc/posix-functions/fma.texi: Mention the new module and the various
906         bugs.
907
908         Extend gl_MATHFUNC.
909         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
910         Support 'void' as argument type.
911         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
912
913 2011-11-05  Jim Meyering  <meyering@redhat.com>
914
915         maint.mk: also prohibit inclusion of dirent.h without use
916         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
917
918 2011-11-05  Bruno Haible  <bruno@clisp.org>
919
920         ldexpl tests: Avoid test failure on MSVC 9.
921         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
922         value. Needed in order to enforce the conversion from a value greater
923         than LDBL_MAX to Infinity.
924
925 2011-11-05  Bruno Haible  <bruno@clisp.org>
926
927         New modules 'at-internal', 'openat-h', split off from module 'openat'.
928         * modules/at-internal: New file, extracted from modules/openat.
929         * modules/openat-h: New file.
930         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
931         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
932         * modules/openat (Description): Add reference to POSIX function.
933         (Files): Remove lib/openat.h, lib/openat-proc.c.
934         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
935         intprops, unistd.
936         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
937         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
938         gl_FCNTL_MODULE_INDICATOR.
939         (Include): Remove unistd.h, openat.h.
940         * modules/areadlinkat (Files): Add lib/at-func.c.
941         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
942         openat-die, openat-h, save-cwd.
943         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
944         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
945         openat-die, openat-h, save-cwd, unistd.
946         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
947         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
948         openat-h, save-cwd. Remove fcntl-h, openat.
949         * modules/fchmodat (Files): Remove lib/openat.h.
950         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
951         openat, stdbool, unistd.
952         * modules/fchownat (Files): Remove lib/openat.h.
953         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
954         openat, stdbool, sys_stat.
955         * modules/fdopendir (Files): Remove lib/openat-priv.h,
956         lib/openat-proc.c.
957         (Depends-on): Add at-internal.
958         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
959         * modules/fstatat (Files): Remove lib/openat.h.
960         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
961         stdbool, unistd.
962         * modules/fts (Depends-on): Add openat-h.
963         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
964         openat.
965         * modules/mkdirat (Files): Remove lib/openat.h.
966         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
967         openat, stdbool, sys_stat.
968         * modules/mkfifoat (Files): Add lib/at-func.c.
969         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
970         openat-h, save-cwd. Remove fcntl-h, openat.
971         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
972         * modules/readlinkat (Files): Add lib/at-func.c.
973         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
974         openat-h, save-cwd. Remove fcntl-h, openat.
975         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
976         openat.
977         * modules/selinux-at (Files): Add lib/at-func.c.
978         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
979         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
980         * modules/symlinkat (Files): Add lib/at-func.c.
981         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
982         openat-h, save-cwd. Remove fcntl-h, openat.
983         * modules/unlinkat (Files): Remove lib/openat.h.
984         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
985         stdbool.
986         * modules/utimensat (Files): Add lib/at-func.c.
987         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
988         openat-die, openat-h, save-cwd.
989         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
990         * modules/fdutimensat-tests (Depends-on): Add openat.
991         * modules/fstatat-tests (Depends-on): Add openat-h.
992         * modules/readlinkat-tests (Depends-on): Add openat.
993         * modules/symlinkat-tests (Depends-on): Add openat.
994
995 2011-11-05  Bruno Haible  <bruno@clisp.org>
996
997         openat: Include <stdbool.h>.
998         * lib/openat.c: Include <stdbool.h>.
999
1000 2011-11-04  Bruno Haible  <bruno@clisp.org>
1001
1002         fchownat, renameat, unlinkat: Fix dependencies.
1003         * modules/fchownat (Depends-on): Add fstatat.
1004         * modules/renameat (Depends-on): Likewise.
1005         * modules/unlinkat (Depends-on): Likewise.
1006
1007 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         openat: remove direct dependency on dirent
1010         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1011         and hasn't been needed ever since fdopendir was split into its own
1012         module on 2009-08-31.
1013         * modules/openat (Depends-on): Remove dirent.
1014
1015 2011-11-04  Bruno Haible  <bruno@clisp.org>
1016
1017         renameat: Optimize code size.
1018         * modules/renameat (configure.ac): Don't compile at-func2.c if
1019         REPLACE_RENAMEAT is 1.
1020
1021 2011-11-04  Bruno Haible  <bruno@clisp.org>
1022
1023         openat tests: Fix file list.
1024         * modules/openat-tests (Files): Add tests/test-open.h.
1025
1026 2011-11-04  Bruno Haible  <bruno@clisp.org>
1027
1028         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1029         * modules/fchmodat (Depends-on): Add openat-die.
1030         * modules/fchownat (Depends-on): Likewise.
1031         * modules/linkat (Depends-on): Likewise.
1032         * modules/renameat (Depends-on): Likewise.
1033         * modules/openat (Depends-on): Add dirent.
1034
1035 2011-11-04  Jim Meyering  <meyering@redhat.com>
1036
1037         at-func*.c: fix comments
1038         * lib/at-func2.c: Correct/improve first-line comment.
1039         * lib/at-func.c: Correct grammar in first-line comment.
1040
1041 2011-11-04  Bruno Haible  <bruno@clisp.org>
1042
1043         New module 'mkdirat', split off from module 'openat'.
1044         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1045         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1046         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1047         * modules/mkdirat: New file, extracted from modules/openat.
1048         * modules/openat (Files): Remove lib/mkdirat.c.
1049         (Depends-on): Remove mkdir.
1050         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1051         (Include): Remove <sys/stat.h>.
1052         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1053         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1054         tests/test-mkdir.h.
1055         (Depends-on): Remove ignore-value.
1056         (Makefile.am): Remove rules for test-mkdirat.
1057         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1058         of module 'openat'.
1059         * NEWS: Mention the change.
1060
1061 2011-11-04  Bruno Haible  <bruno@clisp.org>
1062
1063         closedir: Avoid warning on mingw.
1064         * lib/closedir.c: Include <unistd.h>.
1065
1066 2011-11-04  Bruno Haible  <bruno@clisp.org>
1067
1068         New module 'fstatat', split off from module 'openat'.
1069         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1070         defined.
1071         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1072         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1073         gl_FUNC_FSTATAT.
1074         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1075         * modules/fstatat: New file, extracted from modules/openat.
1076         * modules/openat (Files): Remove lib/fstatat.c.
1077         (Depends-on): Remove lstat.
1078         (configure.ac): Remove AC_LIBOBJ of fstatat.
1079         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1080         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1081         tests/test-lstat.h, tests/test-stat.h.
1082         (Depends-on): Remove getcwd-lgpl.
1083         (Makefile.am): Remove rules for test-fstatat.
1084         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1085         of module 'openat'.
1086         * NEWS: Mention the change.
1087         * modules/getcwd (Depends-on): Add fstatat.
1088         * modules/linkat (Depends-on): Likewise.
1089         * modules/mkfifoat-tests (Depends-on): Likewise.
1090         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1091
1092 2011-11-03  Bruno Haible  <bruno@clisp.org>
1093
1094         New module 'unlinkat', split off from module 'openat'.
1095         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1096         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1097         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1098         * modules/unlinkat: New file, extracted from modules/openat. Correct
1099         the dependency conditions.
1100         * modules/openat (Files): Remove lib/unlinkat.c.
1101         (Depends-on): Remove rmdir, unlink.
1102         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1103         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1104         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1105         tests/test-rmdir.h, tests/test-unlink.h.
1106         (Depends-on): Remove unlinkdir.
1107         (Makefile.am): Remove rules for test-unlinkat.
1108         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1109         of module 'openat'.
1110         * NEWS: Mention the change.
1111         * modules/linkat-tests (Depends-on): Add unlinkat.
1112         * modules/mkfifoat-tests (Depends-on): Likewise.
1113         * modules/readlinkat-tests (Depends-on): Likewise.
1114
1115 2011-11-02  Bruno Haible  <bruno@clisp.org>
1116
1117         New module 'fchmodat', split off from module 'openat'.
1118         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1119         defined.
1120         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1121         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1122         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1123         * modules/fchmodat: New file, extracted from modules/openat.
1124         * modules/openat (Files): Remove lib/fchmodat.c.
1125         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1126         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1127         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1128         (Makefile.am): Remove rules for test-fchmodat.
1129         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1130         of module 'openat'.
1131         * NEWS: Mention the change.
1132
1133 2011-11-02  Jim Meyering  <meyering@redhat.com>
1134
1135         putenv: indent #definition of "environ" to placate cppi
1136         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1137
1138         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1139         Git logs are often treated as immutable, because editing them
1140         changes the SHA1 checksums of all descendants.  Thus, errors in
1141         git logs tend to stay there forever.  However, when we generate
1142         a ChangeLog file -- typically for distribution -- from that git log,
1143         we can actually make corrections in the generated file.  The key
1144         lies in recording in machine-readable/applicable form the desired
1145         corrections.  See --help for description and an example.
1146         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1147         (usage): Describe it; alphabetize option descriptions.
1148         (main): Honor the new option, carefully.
1149
1150 2011-11-01  Jim Meyering  <meyering@redhat.com>
1151
1152         gitlog-to-changelog: avoid an infloop
1153         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1154         that ends up being empty.
1155
1156 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1157
1158         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1159         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1160         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1161         contains (possibly-quoted) backslashes.  This should avoid
1162         all-too-common shell bugs if COMPLICATED contains backslashes in
1163         the "wrong" places.  Reported by David Evans in
1164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1165         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1166         because we want ASCII ranges.  Is there some reason we don't use
1167         the C locale everywhere in this script?
1168         (func_module, top level): Avoid unwanted pathname expansion when
1169         $repo_url_prefix or $repo_url_suffix_repl contain shell
1170         metacharacters like '?' and '*'.
1171
1172 2011-11-01  Bruno Haible  <bruno@clisp.org>
1173
1174         fchownat: Improve description.
1175         * modules/fchownat (Description): Add link to function.
1176
1177 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1178
1179         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1180         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1182         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1183
1184 2011-11-01  Bruno Haible  <bruno@clisp.org>
1185
1186         alignof: Avoid collision with stdalign module.
1187         * lib/alignof.h (alignof): Remove macro.
1188         * NEWS: Mention the change.
1189         Reported by Paul Eggert.
1190
1191 2011-11-01  Bruno Haible  <bruno@clisp.org>
1192
1193         New module 'fchownat', split off from module 'openat'.
1194         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1195         defined.
1196         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1197         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1198         invoke gl_FUNC_FCHOWNAT.
1199         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1200         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1201         * modules/fchownat: New file, extracted from modules/openat.
1202         * modules/openat (Files): Remove lib/fchownat.c.
1203         (Depends-on): Remove lchown.
1204         (configure.ac): Remove AC_LIBOBJ of fchownat.
1205         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1206         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1207         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1208         (Depends-on): Remove mgetgroups, usleep, stat-time.
1209         (configure.ac): Remove test for getegid.
1210         (Makefile.am): Remove rules for test-fchownat.
1211         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1212         of module 'openat'.
1213         * NEWS: Mention the change.
1214
1215 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1216
1217         stdalign: port better to MSVC and to Sun C 5.11
1218         This fixes some of the problems reported by Bruno Haible in
1219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1220         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1221         shortcomings of MSVC and of Sun C 5.11.
1222         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1223         around __declspec arg.
1224         * modules/stdalign-tests (Files): Add tests/macros.h.
1225         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1226         Include macros.h, for ASSERT.
1227         (DECLARE_ALIGNED): Remove.
1228         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1229         to catch bug), and to 1 if not (simplifies the rest of the code).
1230         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1231         (CHECK_AUTO): Remove.
1232         (CHECK_ALIGNED): Check only the alignment of the static vars,
1233         since auto var alignment isn't supported by Sun C 5.11.
1234         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1235         ASSERT failures are easier to diagnose.
1236
1237 2011-10-31  Bruno Haible  <bruno@clisp.org>
1238
1239         doc about some IRIX 5.3 problems.
1240         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1241         on IRIX 5.3.
1242         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1243         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1244         5.3.
1245         * doc/posix-functions/grantpt.texi: Likewise.
1246         * doc/posix-functions/unlockpt.texi: Likewise.
1247         * doc/posix-functions/lgamma.texi: Likewise.
1248         * doc/posix-functions/nextafter.texi: Likewise.
1249         * doc/posix-functions/remainder.texi: Likewise.
1250         * doc/posix-functions/select.texi: Mention misplaced declaration on
1251         IRIX 5.3.
1252         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1253
1254 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1255
1256         gitlog-to-changelog: fix git-log invocation.
1257         git-log mishandles date strings before 1970-01-01 UTC, and there is
1258         no use to specify --since=1970-01-01 by default anyway.
1259         * build-aux/gitlog-to-changelog: By default, when no --since option
1260         was given, do not specify explicit --since option to git-log.
1261
1262 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1263
1264         gitlog-to-changelog: new option --append-dot.
1265         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1266         first non-blank line of each commit message terminated with a dot.
1267
1268 2011-10-30  Bruno Haible  <bruno@clisp.org>
1269
1270         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1271         * lib/ffsl.h: Include <config.h>.
1272         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1273
1274 2011-10-30  Jim Meyering  <meyering@redhat.com>
1275
1276         GNUmakefile: reenable "make syntax-check" for most projects
1277         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1278         build-aux variable", "syntax-check" would do nothing but succeed with
1279         the "No version control files detected..." diagnostic (unless you
1280         happened to override _build-aux via cfg.mk).
1281         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1282         to precede inclusion of maint.mk.  Otherwise, these variables would
1283         be used undefined in any project that does not override the default.
1284
1285 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1286
1287         gitlog-to-changelog: treat a message with only blank lines as empty.
1288         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1289         trailing blank lines before the code that issues a warning about an
1290         empty commit message.
1291
1292 2011-10-30  Jim Meyering  <meyering@redhat.com>
1293
1294         test-parse-datetime.c: avoid new DST-related false positive test failure
1295         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1296         based on the time/date we'll convert, not the current time.
1297         Otherwise, the moment we cross a DST boundary like today's in
1298         Europe, (CEST to CET), that offset ends up being one hour off.
1299
1300 2011-10-27  Bruno Haible  <bruno@clisp.org>
1301
1302         fstat: Tweak documentation.
1303         * modules/fstat (Description): More precise description.
1304
1305 2011-10-27  Bruno Haible  <bruno@clisp.org>
1306
1307         Update documentation regarding 'largefile' module.
1308         * doc/posix-functions/fstat.texi: Tweak wording.
1309         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1310         problems with huge directories and/or small ino_t types.
1311         * doc/posix-functions/readdir.texi: Likewise.
1312         * doc/posix-functions/rewinddir.texi: Likewise.
1313
1314 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1315
1316         maint.mk: don't maintain a second build-aux variable.
1317         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1318         depends on GNUmakefile, which already maintains a cfg.mk
1319         overridable $(_build-aux) for projects with a non-standard
1320         build-aux directory location, although without the $(srcdir)
1321         prefix.  Use that variable consistently instead of introducing a
1322         second one.  Adjust all call sites.
1323
1324 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1325
1326         Add stdalign module and use it in other modules.
1327         This is based on a previous proposal by Bruno Haible
1328         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1329
1330         stdalign: new module
1331         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1332         * modules/stdalign: New files.
1333         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1334         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1335
1336         stdalign-tests: new module
1337         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1338
1339         argp: use stdalign
1340         * lib/argp-parse.c: Include <stdalign.h>.
1341         (alignof): Remove.
1342         * modules/argp (Depends-on): Add stdalign.
1343
1344         crypto libraries: use stdalign
1345         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1346         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1347         Do not include <stdlib.h> twice, in md4.c.
1348         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1349         because we are accessing a pointer's bit-pattern, not a size.
1350         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1351         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1352         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1353         * modules/crypto/sha512: Likewise.
1354
1355         sys_socket: use stdalign, not alignof
1356         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1357         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1358
1359 2011-10-27  Bruno Haible  <bruno@clisp.org>
1360
1361         raise test: Avoid a test failure on Linux/MIPS.
1362         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1363         because 99 is a valid signal on Linux/MIPS.
1364
1365 2011-10-27  Bruno Haible  <bruno@clisp.org>
1366
1367         nonblocking tests: Fix test failure on Linux/MIPS.
1368         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1369         Set to 270000.
1370
1371 2011-10-27  Bruno Haible  <bruno@clisp.org>
1372
1373         utimensat: Work around problem on Linux/hppa.
1374         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1375         values.
1376         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1377
1378 2011-10-25  Jim Meyering  <meyering@redhat.com>
1379
1380         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1381         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1382         after symbols like NULL, size_t, etc.
1383         Reported by Alfred M. Szmidt.
1384
1385         maint.mk: exempt ENODATA from a syntax-check rule
1386         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1387         from the sc_prohibit_always-defined_macros syntax-check rule.
1388         Add a comment.  See this for more details:
1389         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1390
1391 2011-10-23  Jim Meyering  <meyering@redhat.com>
1392
1393         fts: close parent dir FD before returning from post-traversal fts_read
1394         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1395         unlink A, even though an FD open on A remained.  This is suboptimal
1396         (holding a file descriptor open longer than needed), but otherwise not
1397         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1398         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1399         that represents a real problem: it causes the removal of A to fail
1400         with e.g., "rm: cannot remove `A': Device or resource busy"
1401
1402         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1403         directory file descriptors.  After completing the final, FTS_DP,
1404         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1405         cache, but then proceeded to add a new FD to it via the subsequent
1406         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1407         final file descriptor would be closed only via fts_close's call to
1408         fd_ring_clear.  Now, it is usually closed earlier, via the final
1409         FTS_DP-returning fts_read call.
1410         * lib/fts.c (restore_initial_cwd): New function, converted from
1411         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1412         Update callers.
1413         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1414         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1415
1416 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1417             Bruno Haible  <bruno@clisp.org>
1418             Jim Meyering  <jim@meyering.net>
1419
1420         readme-release: improve safety of release prep instructions.
1421         * README-release: Don't git pull all branches when only master
1422         is needed for the release process.
1423         Run make maintainer-clean before changing trees and merging.
1424         Don't try to run ./configure right after git pull in case files
1425         that influence the bootstrap process have changed, move the
1426         ./configure step to after running ./bootstrap.
1427         Don't bootstrap "one last time"... it's the first time!
1428
1429 2011-10-22  Bruno Haible  <bruno@clisp.org>
1430
1431         errno, strerror-override: Support for MSVC 10.
1432         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1433         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1434         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1435         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1436         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1437         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1438         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1439         Assign values compatible with MSVC 10.
1440         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1441         New macros.
1442         (GNULIB_defined_EWINSOCK): New macro.
1443         * lib/strerror-override.c (strerror_override): Update accordingly.
1444         * lib/strerror-override.h: Likewise.
1445         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1446         longer equal to the corresponding errno value.
1447         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1448
1449 2011-10-22  Bruno Haible  <bruno@clisp.org>
1450
1451         perror: Recognize when test program crashes.
1452         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1453         strerror, set gl_cv_func_perror_works to no.
1454         Reported by Daniel Richard G. <skunk@iskunk.org>.
1455
1456         perror: Fix indentation.
1457         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1458
1459 2011-10-22  Bruno Haible  <bruno@clisp.org>
1460
1461         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1462         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1463         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1464         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1465         functions, not as a macro.
1466         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1467         macros.
1468         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1469         absence of macro.
1470         Suggested by Eric Blake.
1471         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1472
1473 2011-10-21  Bruno Haible  <bruno@clisp.org>
1474
1475         relocatable-prog-wrapper: Don't leave object files behind.
1476         * build-aux/install-reloc: Re-synchronize list of .o files to be
1477         removed with list of compilation units.
1478
1479 2011-10-20  Bruno Haible  <bruno@clisp.org>
1480
1481         openpty, posix_openpt: Remove code duplication.
1482         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1483         * lib/openpty.c: Include <stdlib.h>.
1484         (openpty): Use posix_openpt on all platforms except IRIX.
1485         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1486
1487 2011-10-20  Bruno Haible  <bruno@clisp.org>
1488
1489         unlockpt: Detect invalid argument.
1490         * lib/unlockpt.c: Include <fcntl.h>.
1491         (unlockpt): Check whether fd is valid, using fcntl().
1492         * modules/unlockpt (Depends-on): Add fcntl-h.
1493
1494 2011-10-20  Bruno Haible  <bruno@clisp.org>
1495
1496         openpty: Avoid compilation error on AIX 6.1.
1497         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1498
1499 2011-10-20  Bruno Haible  <bruno@clisp.org>
1500
1501         posix_openpt: Support for OpenBSD.
1502         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1503         (posix_openpt) [OpenBSD]: New code.
1504         * lib/grantpt.c: Include <fcntl.h>.
1505         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1506         * modules/grantpt (Depends-on): Add fcntl-h.
1507
1508 2011-10-20  Bruno Haible  <bruno@clisp.org>
1509
1510         posix_openpt test: Coding style.
1511         * tests/test-posix_openpt.c: Use GNU coding style.
1512
1513 2011-10-20  Bruno Haible  <bruno@clisp.org>
1514
1515         grantpt: Support --avoid=pt_chown.
1516         * modules/grantpt (Files): Add lib/pty-private.h.
1517
1518 2011-10-20  Bruno Haible  <bruno@clisp.org>
1519
1520         posix_openpt: Fix autoconf macro.
1521         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1522         unneeded check for _getpty.
1523
1524 2011-10-20  Bruno Haible  <bruno@clisp.org>
1525
1526         openpty: Update comments.
1527         * lib/openpty.c: Add comments about Minix.
1528
1529 2011-10-19  Eric Blake  <eblake@redhat.com>
1530
1531         openpty: relax license
1532         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1533
1534         pt_chown: use configmake to simplify build
1535         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1536
1537         ptsname and others: relax license
1538         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1539         * modules/unlockpt (License): Likewise.
1540         * modules/pt_chown (License): Likewise.
1541         * modules/ptsname (License): Likewise.
1542         * modules/ttyname_r (License): Likewise.
1543
1544 2011-10-19  Jim Meyering  <meyering@redhat.com>
1545
1546         posix_openpt: remove spurious #endif
1547         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1548
1549 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1550
1551         maint.mk: Respect $(build_aux) in web-manual rule.
1552         * top/maint.mk (web-manual): Find gen-announce script in user's
1553         $(build_aux) directory instead of hard-coding 'build-aux'.
1554
1555 2011-10-19  Bruno Haible  <bruno@clisp.org>
1556
1557         posix_openpt: Fix compilation error.
1558         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1559         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1560         Mention the openpty module as an alternative.
1561
1562 2011-10-19  Bruno Haible  <bruno@clisp.org>
1563
1564         Support for old NeXTstep 3.3 frexp().
1565         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1566         execution time of the test to 5 seconds.
1567         Reported by Daniel Richard G. <skunk@iskunk.org>.
1568
1569 2011-10-19  Bruno Haible  <bruno@clisp.org>
1570
1571         Support for old NeXTstep 3.3 sed.
1572         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1573         part, use /.../, not \|...|. Escape periods in the header file name.
1574         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1575         Reported by Daniel Richard G. <skunk@iskunk.org>.
1576
1577 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1578
1579         Support for old NeXTstep 3.3 gcc.
1580         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1581         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1582         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1583         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1584         * lib/regex.h (_Restrict_arr_): Likewise.
1585         * lib/regex_internal.h (re_token_t): Likewise.
1586         * lib/regexec.c (check_node_accept_bytes): Likewise.
1587         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1588
1589 2011-10-18  Eric Blake  <eblake@redhat.com>
1590
1591         posix_openpt: new module
1592         * modules/posix_openpt: New module.
1593         * m4/posix_openpt.m4: New file.
1594         * lib/posix_openpt.c: Likewise.
1595         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1596         (gl_STDLIB_H_DEFAULTS): Set defaults.
1597         * modules/stdlib (Makefile.am): Substitute macros.
1598         * lib/stdlib.in.h (posix_openpt): Declare.
1599         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1600         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1601         * modules/posix_openpt-tests: New test module.
1602         * tests/test-posix_openpt.c: New test.
1603
1604 2011-10-15  Bruno Haible  <bruno@clisp.org>
1605
1606         xstrtoll: Fix compilation failure.
1607         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1608         from lib/strtol.c.
1609         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1610         some platforms.
1611         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1612
1613 2011-10-15  Bruno Haible  <bruno@clisp.org>
1614
1615         vasnprintf: Optimize bit search operation.
1616         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1618         gl_DOUBLE_EXPONENT_LOCATION.
1619         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1620         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1621         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1622         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1623         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1624         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1625         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1626         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1627         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1628
1629 2011-10-15  Bruno Haible  <bruno@clisp.org>
1630
1631         vasnprintf: Fix comments.
1632         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1633
1634 2011-10-14  Bruno Haible  <bruno@clisp.org>
1635
1636         Tests for module 'integer_length_ll'.
1637         * modules/integer_length_ll-tests: New file.
1638         * tests/test-integer_length_ll.c: New file.
1639
1640         New module 'integer_length_ll'.
1641         * lib/integer_length_ll.c: New file.
1642         * modules/integer_length_ll: New file.
1643
1644 2011-10-14  Bruno Haible  <bruno@clisp.org>
1645
1646         Tests for module 'integer_length_l'.
1647         * modules/integer_length_l-tests: New file.
1648         * tests/test-integer_length_l.c: New file.
1649
1650         New module 'integer_length_l'.
1651         * lib/integer_length_l.c: New file.
1652         * modules/integer_length_l: New file.
1653
1654 2011-10-14  Bruno Haible  <bruno@clisp.org>
1655
1656         Tests for module 'integer_length'.
1657         * modules/integer_length-tests: New file.
1658         * tests/test-integer_length.c: New file.
1659
1660         New module 'integer_length'.
1661         * lib/integer_length.h: New file.
1662         * lib/integer_length.c: New file.
1663         * modules/integer_length: New file.
1664
1665 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1666
1667         popen: Fix dependency conditions.
1668         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1669
1670 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1671
1672         perror: Fix autoconf test.
1673         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1674         <stdlib.h> and <string.h>.
1675
1676 2011-10-14  Bruno Haible  <bruno@clisp.org>
1677
1678         ffsl: Optimize on 64-bit platforms.
1679         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1680         unrolling.
1681
1682 2011-10-13  Bruno Haible  <bruno@clisp.org>
1683
1684         ffsl: Optimize on 32-bit platforms.
1685         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1686         use ffs() without a loop.
1687
1688         ffsl, ffsll: Optimize for GCC.
1689         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1690         * lib/ffsl.c (GCC_BUILTIN): New macro.
1691         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1692
1693 2011-10-13  Bruno Haible  <bruno@clisp.org>
1694
1695         ffs, bcopy, memset: Support symbol renaming via config.h.
1696         * lib/ffs.c: Include <config.h>.
1697         * lib/bcopy.c: Likewise.
1698         * lib/memset.c: Likewise.
1699
1700 2011-10-10  Bruno Haible  <bruno@clisp.org>
1701
1702         atanl: Simplify for platforms where 'long double' == 'double'.
1703         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1704         alternative implementation.
1705         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1706         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1707         * modules/atanl (Depends-on): Add atan. Update conditions.
1708
1709 2011-10-10  Bruno Haible  <bruno@clisp.org>
1710
1711         acosl: Simplify for platforms where 'long double' == 'double'.
1712         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1713         alternative implementation.
1714         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1715         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1716         * modules/acosl (Depends-on): Add acos. Update conditions.
1717
1718 2011-10-10  Bruno Haible  <bruno@clisp.org>
1719
1720         asinl: Simplify for platforms where 'long double' == 'double'.
1721         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1722         alternative implementation.
1723         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1724         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1725         * modules/asinl (Depends-on): Add asin. Update conditions.
1726
1727 2011-10-10  Bruno Haible  <bruno@clisp.org>
1728
1729         tanl: Simplify for platforms where 'long double' == 'double'.
1730         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1731         implementation.
1732         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1733         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1734         * modules/tanl (Depends-on): Add tan. Update conditions.
1735         (configure.ac): Don't compile trigl.c if
1736         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1737
1738 2011-10-10  Bruno Haible  <bruno@clisp.org>
1739
1740         cosl: Simplify for platforms where 'long double' == 'double'.
1741         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1742         implementation.
1743         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1744         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1745         * modules/cosl (Depends-on): Add cos. Update conditions.
1746         (configure.ac): Don't compile sincosl.c and trigl.c if
1747         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1748
1749 2011-10-10  Bruno Haible  <bruno@clisp.org>
1750
1751         sinl: Simplify for platforms where 'long double' == 'double'.
1752         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1753         implementation.
1754         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1755         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1756         * modules/sinl (Depends-on): Add sin. Update conditions.
1757         (configure.ac): Don't compile sincosl.c and trigl.c if
1758         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1759
1760 2011-10-10  Bruno Haible  <bruno@clisp.org>
1761
1762         logl: Simplify for platforms where 'long double' == 'double'.
1763         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1764         implementation.
1765         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1766         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1767         * modules/logl (Depends-on): Add log. Update conditions.
1768
1769 2011-10-10  Bruno Haible  <bruno@clisp.org>
1770
1771         expl: Simplify for platforms where 'long double' == 'double'.
1772         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1773         implementation.
1774         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1775         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1776         * modules/expl (Depends-on): Add exp. Update conditions.
1777
1778 2011-10-10  Bruno Haible  <bruno@clisp.org>
1779
1780         sqrtl: Simplify for platforms where 'long double' == 'double'.
1781         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1782         alternative implementation.
1783         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1784         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1785         * modules/sqrtl (Depends-on): Update conditions.
1786
1787 2011-10-10  Bruno Haible  <bruno@clisp.org>
1788
1789         ldexpl: Simplify for platforms where 'long double' == 'double'.
1790         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1791         alternative implementation.
1792         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1793         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1794         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1795
1796 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1797
1798         ffsll: set correct witness
1799         * modules/ffsll (configure.ac): Fix typo.
1800
1801 2011-10-10  Bruno Haible  <bruno@clisp.org>
1802
1803         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1804         * lib/printf-frexpl.c: Include <config.h>.
1805         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1806         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1807         second time.
1808         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1809         gl_LONG_DOUBLE_VS_DOUBLE.
1810         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1811         conditions.
1812
1813 2011-10-10  Bruno Haible  <bruno@clisp.org>
1814
1815         frexpl: Simplify for platforms where 'long double' == 'double'.
1816         * lib/frexpl.c: Include <config.h>.
1817         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1818         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1819         time.
1820         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1821         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1822         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1823         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1824         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1825         conditions.
1826
1827 2011-10-10  Jim Meyering  <meyering@redhat.com>
1828
1829         test-renameat: don't leave behind a temporary file
1830         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1831           ERROR: files left in build directory after distclean:
1832           ./gltests/test-renameat.too
1833           make[1]: *** [distcleancheck] Error 1
1834         Reported by Tom G. Christensen.
1835
1836 2011-10-09  Bruno Haible  <bruno@clisp.org>
1837
1838         rint: Determine RINT_LIBM correctly on AIX 7.
1839         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1840         directly, not only through a function pointer. Also accept an optional
1841         4th argument with extra code.
1842         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1843         rintf() call by gcc when optimizing.
1844
1845         mathfunc.m4: Refactor.
1846         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1847         m4 variable.
1848
1849 2011-10-09  Bruno Haible  <bruno@clisp.org>
1850
1851         rintl: Simplify for platforms where 'long double' == 'double'.
1852         * lib/rintl.c: Include <config.h>.
1853         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1854         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1855         time.
1856         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1857         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1858         * modules/rintl (Depends-on): Add rint. Update conditions.
1859
1860 2011-10-09  Bruno Haible  <bruno@clisp.org>
1861
1862         roundl: Simplify for platforms where 'long double' == 'double'.
1863         * lib/roundl.c: Include <config.h>.
1864         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1865         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1866         time.
1867         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1868         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1869         * modules/roundl (Depends-on): Add round. Update conditions.
1870
1871 2011-10-09  Bruno Haible  <bruno@clisp.org>
1872
1873         truncl: Simplify for platforms where 'long double' == 'double'.
1874         * lib/truncl.c: Include <config.h>.
1875         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1876         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1877         time.
1878         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1879         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1880         * modules/truncl (Depends-on): Add trunc. Update conditions.
1881
1882 2011-10-09  Bruno Haible  <bruno@clisp.org>
1883
1884         ceill: Simplify for platforms where 'long double' == 'double'.
1885         * lib/ceill.c: Include <config.h>.
1886         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1887         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1888         time.
1889         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1890         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1891         * modules/ceill (Depends-on): Add ceil. Update conditions.
1892
1893 2011-10-09  Bruno Haible  <bruno@clisp.org>
1894
1895         floorl: Simplify for platforms where 'long double' == 'double'.
1896         * lib/floorl.c: Include <config.h>.
1897         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1898         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1899         time.
1900         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1901         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1902         * modules/floorl (Depends-on): Add floor. Update conditions.
1903
1904 2011-10-09  Bruno Haible  <bruno@clisp.org>
1905
1906         rint: Fix ordering constraints.
1907         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1908         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1909         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1910
1911 2011-10-09  Bruno Haible  <bruno@clisp.org>
1912
1913         copysignl: Simplify for platforms where 'long double' == 'double'.
1914         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1915         alternative.
1916         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1917         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1918         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1919
1920 2011-10-09  Bruno Haible  <bruno@clisp.org>
1921
1922         Tests for module 'rintl'.
1923         * modules/rintl-tests: New file.
1924         * tests/test-rintl.c: New file.
1925
1926         New module 'rintl'.
1927         * lib/math.in.h (rintl): New declaration.
1928         * lib/rintl.c: New file.
1929         * m4/rintl.m4: New file.
1930         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1932         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1933         * modules/rintl: New file.
1934         * tests/test-math-c++.cc: Check the declaration of rintl.
1935         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1936         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1937         * doc/posix-functions/rintl.texi: Mention the new module.
1938
1939 2011-10-09  Bruno Haible  <bruno@clisp.org>
1940
1941         Tests for module 'rintf'.
1942         * modules/rintf-tests: New file.
1943         * tests/test-rintf.c: New file.
1944
1945         New module 'rintf'.
1946         * lib/math.in.h (rintf): New declaration.
1947         * lib/rintf.c: New file.
1948         * m4/rintf.m4: New file.
1949         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1951         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1952         * modules/rintf: New file.
1953         * tests/test-math-c++.cc: Check the declaration of rintf.
1954         * doc/posix-functions/rintf.texi: Mention the new module.
1955
1956 2011-10-09  Bruno Haible  <bruno@clisp.org>
1957
1958         rint: Support for MSVC.
1959         * lib/math.in.h (rint): New declaration.
1960         * lib/rint.c: New file.
1961         * m4/rint.m4: New file.
1962         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1964         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1965         * modules/rint (Description): Fix.
1966         (Files): Add lib/rint.c, m4/rint.m4.
1967         (Depends-on): Add math.
1968         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1969         gl_MATH_MODULE_INDICATOR.
1970         * tests/test-math-c++.cc: Check the declaration of rint.
1971         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1972         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1973         * doc/posix-functions/rint.texi: Mention the replacement provided by
1974         the module.
1975
1976         rint tests: More tests.
1977         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1978         minus-zero.h, infinity.h, nan.h.
1979         (main): Skip the test if the current rounding mode is not standard. Add
1980         tests for negative numbers, minus zero, infinity, NaN.
1981         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1982         tests/nan.h.
1983         (Depends-on): Add isnand-nolibm.
1984
1985 2011-10-09  Bruno Haible  <bruno@clisp.org>
1986
1987         Tests for module 'copysignl'.
1988         * modules/copysignl-tests: New file.
1989         * tests/test-copysignl.c: New file.
1990
1991         New module 'copysignl'.
1992         * lib/math.in.h (copysignl): New declaration.
1993         * lib/copysignl.c: New file.
1994         * m4/copysignl.m4: New file.
1995         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
1996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
1997         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
1998         HAVE_COPYSIGNL.
1999         * modules/copysignl: New file.
2000         * tests/test-math-c++.cc: Check the declaration of copysignl.
2001         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2002         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2003         * doc/posix-functions/copysignl.texi: Mention the new module.
2004
2005 2011-10-09  Bruno Haible  <bruno@clisp.org>
2006
2007         Tests for module 'copysignf'.
2008         * modules/copysignf-tests: New file.
2009         * tests/test-copysignf.c: New file.
2010
2011         New module 'copysignf'.
2012         * lib/math.in.h (copysignf): New declaration.
2013         * lib/copysignf.c: New file.
2014         * m4/copysignf.m4: New file.
2015         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2017         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2018         HAVE_COPYSIGNF.
2019         * modules/copysignf: New file.
2020         * tests/test-math-c++.cc: Check the declaration of copysignf.
2021         * doc/posix-functions/copysignf.texi: Mention the new module.
2022
2023 2011-10-09  Bruno Haible  <bruno@clisp.org>
2024
2025         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2026         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2027         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2028         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2029         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2030         gl_SIGNAL_H_DEFAULTS.
2031
2032 2011-10-09  Bruno Haible  <bruno@clisp.org>
2033
2034         poll: Make macro safer.
2035         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2036         ac_cv_header_poll_h is not set.
2037
2038 2011-10-09  Bruno Haible  <bruno@clisp.org>
2039
2040         copysign: Provide replacement.
2041         * lib/math.in.h (copysign): New declaration.
2042         * lib/copysign.c: New file.
2043         * m4/copysign.m4: New file.
2044         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2045         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2046         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2047         HAVE_COPYSIGN.
2048         * modules/copysign (Description): Clarify.
2049         (Files): Add lib/copysign.c, m4/copysign.m4.
2050         (Depends-on): Add math, signbit.
2051         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2052         gl_MATH_MODULE_INDICATOR.
2053         * tests/test-math-c++.cc: Check the declaration of copysign.
2054         * doc/posix-functions/copysign.texi: Mention the effects of the module
2055         on Minix and MSVC.
2056
2057 2011-10-09  Bruno Haible  <bruno@clisp.org>
2058
2059         isinf: Ensure macro on AIX 5.1.
2060         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2061         macro.
2062         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2063
2064 2011-10-09  Bruno Haible  <bruno@clisp.org>
2065
2066         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2067         * modules/snprintf-posix-tests (configure.ac): Require
2068         gl_LONG_DOUBLE_VS_DOUBLE.
2069         * modules/sprintf-posix-tests (configure.ac): Likewise.
2070         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2071         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2072         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2073         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2074         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2075         tests on platforms where 'long double' is the same as 'double'.
2076         * tests/test-sprintf-posix.h (test_function): Likewise.
2077         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2078         * tests/test-vasprintf-posix.c (test_function): Likewise.
2079
2080         *printf: Fix for platforms where 'long double' == 'double'.
2081         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2082         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2083         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2084         * modules/fprintf-posix (Files): Likewise.
2085         * modules/obstack-printf-posix (Files): Likewise.
2086         * modules/snprintf-posix (Files): Likewise.
2087         * modules/sprintf-posix (Files): Likewise.
2088         * modules/vasnprintf (Files): Likewise.
2089         * modules/vasnprintf-posix (Files): Likewise.
2090         * modules/vasprintf-posix (Files): Likewise.
2091         * modules/vdprintf-posix (Files): Likewise.
2092         * modules/vfprintf-posix (Files): Likewise.
2093         * modules/vsnprintf-posix (Files): Likewise.
2094         * modules/vsprintf-posix (Files): Likewise.
2095         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2096         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2097         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2098         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2099         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2100         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2101         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2102
2103         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2104         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2105         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2106         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2107         'long double'.
2108         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2109
2110         isinf: Fix for platforms where 'long double' == 'double'.
2111         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2112         Don't blindly assume 80-bit 'long double'.
2113
2114         isfinite: Fix for platforms where 'long double' == 'double'.
2115         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2116         Don't blindly assume 80-bit 'long double'.
2117
2118         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2119         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2120         * modules/isfinite-tests (configure.ac): Require
2121         gl_LONG_DOUBLE_VS_DOUBLE.
2122         * modules/isinf-tests (configure.ac): Likewise.
2123         * modules/isnan-tests (configure.ac): Likewise.
2124         * modules/isnanl-tests (configure.ac): Likewise.
2125         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2126         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2127         tests on platforms where 'long double' is the same as 'double'.
2128         * tests/test-isinf.c (test_isinfl): Likewise.
2129         * tests/test-isnan.c (test_long_double): Likewise.
2130         * tests/test-isnanl.h (main): Likewise.
2131
2132 2011-10-08  Bruno Haible  <bruno@clisp.org>
2133
2134         Tests for module 'tanhf'.
2135         * modules/tanhf-tests: New file.
2136         * tests/test-tanhf.c: New file.
2137
2138         New module 'tanhf'.
2139         * lib/math.in.h (tanhf): New declaration.
2140         * lib/tanhf.c: New file.
2141         * m4/tanhf.m4: New file.
2142         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2143         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2144         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2145         * modules/tanhf: New file.
2146         * tests/test-math-c++.cc: Check the declaration of tanhf.
2147         * doc/posix-functions/tanhf.texi: Mention the new module.
2148
2149         tanh: Use a .m4 file.
2150         * m4/tanh.m4: New file.
2151         * modules/tanh (Files): Add it.
2152         (configure.ac): Just invoke gl_FUNC_TANH.
2153
2154 2011-10-08  Bruno Haible  <bruno@clisp.org>
2155
2156         Tests for module 'coshf'.
2157         * modules/coshf-tests: New file.
2158         * tests/test-coshf.c: New file.
2159
2160         New module 'coshf'.
2161         * lib/math.in.h (coshf): New declaration.
2162         * lib/coshf.c: New file.
2163         * m4/coshf.m4: New file.
2164         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2165         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2166         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2167         * modules/coshf: New file.
2168         * tests/test-math-c++.cc: Check the declaration of coshf.
2169         * doc/posix-functions/coshf.texi: Mention the new module.
2170
2171         cosh: Use a .m4 file.
2172         * m4/cosh.m4: New file.
2173         * modules/cosh (Files): Add it.
2174         (configure.ac): Just invoke gl_FUNC_COSH.
2175
2176 2011-10-08  Bruno Haible  <bruno@clisp.org>
2177
2178         Tests for module 'sinhf'.
2179         * modules/sinhf-tests: New file.
2180         * tests/test-sinhf.c: New file.
2181
2182         New module 'sinhf'.
2183         * lib/math.in.h (sinhf): New declaration.
2184         * lib/sinhf.c: New file.
2185         * m4/sinhf.m4: New file.
2186         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2188         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2189         * modules/sinhf: New file.
2190         * tests/test-math-c++.cc: Check the declaration of sinhf.
2191         * doc/posix-functions/sinhf.texi: Mention the new module.
2192
2193         sinh: Use a .m4 file.
2194         * m4/sinh.m4: New file.
2195         * modules/sinh (Files): Add it.
2196         (configure.ac): Just invoke gl_FUNC_SINH.
2197
2198 2011-10-08  Bruno Haible  <bruno@clisp.org>
2199
2200         Tests for module 'atan2f'.
2201         * modules/atan2f-tests: New file.
2202         * tests/test-atan2f.c: New file.
2203
2204         New module 'atan2f'.
2205         * lib/math.in.h (atan2f): New declaration.
2206         * lib/atan2f.c: New file.
2207         * m4/atan2f.m4: New file.
2208         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2210         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2211         * modules/atan2f: New file.
2212         * tests/test-math-c++.cc: Check the declaration of atan2f.
2213         * doc/posix-functions/atan2f.texi: Mention the new module.
2214
2215         atan2: Use a .m4 file.
2216         * m4/atan2.m4: New file.
2217         * modules/atan2 (Files): Add it.
2218         (configure.ac): Just invoke gl_FUNC_ATAN2.
2219
2220 2011-10-08  Bruno Haible  <bruno@clisp.org>
2221
2222         Tests for module 'atanf'.
2223         * modules/atanf-tests: New file.
2224         * tests/test-atanf.c: New file.
2225
2226         New module 'atanf'.
2227         * lib/math.in.h (atanf): New declaration.
2228         * lib/atanf.c: New file.
2229         * m4/atanf.m4: New file.
2230         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2232         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2233         * modules/atanf: New file.
2234         * tests/test-math-c++.cc: Check the declaration of atanf.
2235         * doc/posix-functions/atanf.texi: Mention the new module.
2236
2237         atan: Use a .m4 file.
2238         * m4/atan.m4: New file.
2239         * modules/atan (Files): Add it.
2240         (configure.ac): Just invoke gl_FUNC_ATAN.
2241
2242 2011-10-08  Bruno Haible  <bruno@clisp.org>
2243
2244         Tests for module 'acosf'.
2245         * modules/acosf-tests: New file.
2246         * tests/test-acosf.c: New file.
2247
2248         New module 'acosf'.
2249         * lib/math.in.h (acosf): New declaration.
2250         * lib/acosf.c: New file.
2251         * m4/acosf.m4: New file.
2252         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2254         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2255         * modules/acosf: New file.
2256         * tests/test-math-c++.cc: Check the declaration of acosf.
2257         * doc/posix-functions/acosf.texi: Mention the new module.
2258
2259         acos: Use a .m4 file.
2260         * m4/acos.m4: New file.
2261         * modules/acos (Files): Add it.
2262         (configure.ac): Just invoke gl_FUNC_ACOS.
2263
2264 2011-10-08  Bruno Haible  <bruno@clisp.org>
2265
2266         Tests for module 'asinf'.
2267         * modules/asinf-tests: New file.
2268         * tests/test-asinf.c: New file.
2269
2270         New module 'asinf'.
2271         * lib/math.in.h (asinf): New declaration.
2272         * lib/asinf.c: New file.
2273         * m4/asinf.m4: New file.
2274         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2276         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2277         * modules/asinf: New file.
2278         * tests/test-math-c++.cc: Check the declaration of asinf.
2279         * doc/posix-functions/asinf.texi: Mention the new module.
2280
2281         asin: Use a .m4 file.
2282         * m4/asin.m4: New file.
2283         * modules/asin (Files): Add it.
2284         (configure.ac): Just invoke gl_FUNC_ASIN.
2285
2286 2011-10-08  Bruno Haible  <bruno@clisp.org>
2287
2288         Tests for module 'tanf'.
2289         * modules/tanf-tests: New file.
2290         * tests/test-tanf.c: New file.
2291
2292         New module 'tanf'.
2293         * lib/math.in.h (tanf): New declaration.
2294         * lib/tanf.c: New file.
2295         * m4/tanf.m4: New file.
2296         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2298         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2299         * modules/tanf: New file.
2300         * tests/test-math-c++.cc: Check the declaration of tanf.
2301         * doc/posix-functions/tanf.texi: Mention the new module.
2302
2303         tan: Use a .m4 file.
2304         * m4/tan.m4: New file.
2305         * modules/tan (Files): Add it.
2306         (configure.ac): Just invoke gl_FUNC_TAN.
2307
2308 2011-10-08  Bruno Haible  <bruno@clisp.org>
2309
2310         Tests for module 'cosf'.
2311         * modules/cosf-tests: New file.
2312         * tests/test-cosf.c: New file.
2313
2314         New module 'cosf'.
2315         * lib/math.in.h (cosf): New declaration.
2316         * lib/cosf.c: New file.
2317         * m4/cosf.m4: New file.
2318         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2320         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2321         * modules/cosf: New file.
2322         * tests/test-math-c++.cc: Check the declaration of cosf.
2323         * doc/posix-functions/cosf.texi: Mention the new module.
2324
2325         cos: Use a .m4 file.
2326         * m4/cos.m4: New file.
2327         * modules/cos (Files): Add it.
2328         (configure.ac): Just invoke gl_FUNC_COS.
2329
2330 2011-10-08  Bruno Haible  <bruno@clisp.org>
2331
2332         Tests for module 'sinf'.
2333         * modules/sinf-tests: New file.
2334         * tests/test-sinf.c: New file.
2335
2336         New module 'sinf'.
2337         * lib/math.in.h (sinf): New declaration.
2338         * lib/sinf.c: New file.
2339         * m4/sinf.m4: New file.
2340         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2342         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2343         * modules/sinf: New file.
2344         * tests/test-math-c++.cc: Check the declaration of sinf.
2345         * doc/posix-functions/sinf.texi: Mention the new module.
2346
2347         sin: Use a .m4 file.
2348         * m4/sin.m4: New file.
2349         * modules/sin (Files): Add it.
2350         (configure.ac): Just invoke gl_FUNC_SIN.
2351
2352 2011-10-08  Bruno Haible  <bruno@clisp.org>
2353
2354         Tests for module 'powf'.
2355         * modules/powf-tests: New file.
2356         * tests/test-powf.c: New file.
2357
2358         New module 'powf'.
2359         * lib/math.in.h (powf): New declaration.
2360         * lib/powf.c: New file.
2361         * m4/powf.m4: New file.
2362         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2364         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2365         * modules/powf: New file.
2366         * tests/test-math-c++.cc: Check the declaration of powf.
2367         * doc/posix-functions/powf.texi: Mention the new module.
2368
2369         pow: Use a .m4 file.
2370         * m4/pow.m4: New file.
2371         * modules/pow (Files): Add it.
2372         (configure.ac): Just invoke gl_FUNC_POW.
2373
2374 2011-10-08  Bruno Haible  <bruno@clisp.org>
2375
2376         Tests for module 'log10f'.
2377         * modules/log10f-tests: New file.
2378         * tests/test-log10f.c: New file.
2379
2380         New module 'log10f'.
2381         * lib/math.in.h (log10f): New declaration.
2382         * lib/log10f.c: New file.
2383         * m4/log10f.m4: New file.
2384         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2386         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2387         * modules/log10f: New file.
2388         * tests/test-math-c++.cc: Check the declaration of log10f.
2389         * doc/posix-functions/log10f.texi: Mention the new module.
2390
2391         log10: Use a .m4 file.
2392         * m4/log10.m4: New file.
2393         * modules/log10 (Files): Add it.
2394         (configure.ac): Just invoke gl_FUNC_LOG10.
2395
2396 2011-10-08  Bruno Haible  <bruno@clisp.org>
2397
2398         Tests for module 'logf'.
2399         * modules/logf-tests: New file.
2400         * tests/test-logf.c: New file.
2401
2402         New module 'logf'.
2403         * lib/math.in.h (logf): New declaration.
2404         * lib/logf.c: New file.
2405         * m4/logf.m4: New file.
2406         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2408         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2409         * modules/logf: New file.
2410         * tests/test-math-c++.cc: Check the declaration of logf.
2411         * doc/posix-functions/logf.texi: Mention the new module.
2412
2413         log: Use a .m4 file.
2414         * m4/log.m4: New file.
2415         * modules/log (Files): Add it.
2416         (configure.ac): Just invoke gl_FUNC_LOG.
2417
2418 2011-10-08  Bruno Haible  <bruno@clisp.org>
2419
2420         Tests for module 'expf'.
2421         * modules/expf-tests: New file.
2422         * tests/test-expf.c: New file.
2423
2424         New module 'expf'.
2425         * lib/math.in.h (expf): New declaration.
2426         * lib/expf.c: New file.
2427         * m4/expf.m4: New file.
2428         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2430         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2431         * modules/expf: New file.
2432         * tests/test-math-c++.cc: Check the declaration of expf.
2433         * doc/posix-functions/expf.texi: Mention the new module.
2434
2435         exp: Use a .m4 file.
2436         * m4/exp.m4: New file.
2437         * modules/exp (Files): Add it.
2438         (configure.ac): Just invoke gl_FUNC_EXP.
2439
2440 2011-10-08  Bruno Haible  <bruno@clisp.org>
2441
2442         Tests for module 'sqrtf'.
2443         * modules/sqrtf-tests: New file.
2444         * tests/test-sqrtf.c: New file.
2445
2446         New module 'sqrtf'.
2447         * lib/math.in.h (sqrtf): New declaration.
2448         * lib/sqrtf.c: New file.
2449         * m4/sqrtf.m4: New file.
2450         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2452         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2453         * modules/sqrtf: New file.
2454         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2455         * doc/posix-functions/sqrtf.texi: Mention the new module.
2456
2457 2011-10-08  Bruno Haible  <bruno@clisp.org>
2458
2459         Tests: Avoid link failures w.r.t. libintl.
2460         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2461         $(LIBINTL).
2462         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2463         $(LIBINTL).
2464         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2465         against $(LIBINTL).
2466         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2467         $(LIBINTL).
2468         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2469         $(LIBINTL).
2470         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2471
2472 2011-10-08  Bruno Haible  <bruno@clisp.org>
2473
2474         pow tests: Defeat compiler optimizations.
2475         * tests/test-pow.c (main): Assign arguments to x and y before use.
2476
2477 2011-10-08  Bruno Haible  <bruno@clisp.org>
2478
2479         gnulib-tool: Improve last commit.
2480         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2481         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2482         ignore dependencies that are not among the modules list.
2483
2484 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2485
2486         gnulib-tool: don't follow dependencies to avoided modules
2487         This fixes a bug that is related to the previous one.
2488         * gnulib-tool (func_modules_transitive_closure)
2489         (func_emit_autoconf_snippets):
2490         Check whether a dependency is acceptable before using it.
2491         (--extract-dependencies): Report an error if --avoid is also used,
2492         since this combination of options is not yet supported.
2493
2494         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2495         Problem reported by Peter Dyballa in
2496         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2497         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2498         when echoing "$condition".
2499
2500 2011-10-07  Bruno Haible  <bruno@clisp.org>
2501
2502         Fix documentation about math functions on MacOS X.
2503         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2504         MacOS X 10.5.
2505         * doc/posix-functions/fdim.texi: Likewise.
2506         * doc/posix-functions/feclearexcept.texi: Likewise.
2507         * doc/posix-functions/fegetenv.texi: Likewise.
2508         * doc/posix-functions/fegetround.texi: Likewise.
2509         * doc/posix-functions/feholdexcept.texi: Likewise.
2510         * doc/posix-functions/feraiseexcept.texi: Likewise.
2511         * doc/posix-functions/fesetenv.texi: Likewise.
2512         * doc/posix-functions/fesetround.texi: Likewise.
2513         * doc/posix-functions/fetestexcept.texi: Likewise.
2514         * doc/posix-functions/feupdateenv.texi: Likewise.
2515         * doc/posix-functions/fmax.texi: Likewise.
2516         * doc/posix-functions/fmin.texi: Likewise.
2517         * doc/posix-functions/log2.texi: Likewise.
2518         * doc/posix-functions/modff.texi: Likewise.
2519         * doc/posix-functions/nan.texi: Likewise.
2520         * doc/posix-functions/nanf.texi: Likewise.
2521         * doc/posix-functions/nextafterf.texi: Likewise.
2522         * doc/posix-functions/remquo.texi: Likewise.
2523
2524 2011-10-07  Bruno Haible  <bruno@clisp.org>
2525
2526         modff: Drop assumption about library that defines modff.
2527         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2528         AC_CHECK_FUNCS.
2529         * modules/modff (Files): Add m4/mathfunc.m4.
2530
2531 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2532
2533         raise tests: Avoid a GCC warning.
2534         * tests/test-raise.c (handler): Use _Noreturn.
2535
2536 2011-10-07  Bruno Haible  <bruno@clisp.org>
2537
2538         Tests for module 'ldexpf'.
2539         * modules/ldexpf-tests: New file.
2540         * tests/test-ldexpf.c: New file.
2541
2542         New module 'ldexpf'.
2543         * lib/math.in.h (ldexpf): New declaration.
2544         * lib/ldexpf.c: New file.
2545         * m4/ldexpf.m4: New file.
2546         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2548         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2549         * modules/ldexpf: New file.
2550         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2551         * doc/posix-functions/ldexpf.texi: Mention the new module.
2552
2553 2011-10-06  Bruno Haible  <bruno@clisp.org>
2554
2555         frexpf: Work around problems on IRIX and mingw.
2556         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2558         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2559         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2560         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2561         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2562         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2563
2564 2011-10-06  Bruno Haible  <bruno@clisp.org>
2565
2566         fabsf: Drop assumption about library that defines fabsf.
2567         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2568         AC_CHECK_FUNCS.
2569         * modules/fabsf (Files): Add m4/mathfunc.m4.
2570
2571 2011-10-06  Bruno Haible  <bruno@clisp.org>
2572
2573         frexpf: Drop assumption about library that defines frexpf.
2574         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2575         'int *', 'float *', 'long double *', 'float', 'long double'.
2576         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2577         AC_CHECK_FUNCS.
2578         * modules/frexpf (Files): Add m4/mathfunc.m4.
2579
2580         Tests for module 'frexpf'.
2581         * modules/frexpf-tests: New file.
2582         * tests/test-frexpf.c: New file.
2583
2584         New module 'frexpf'.
2585         * lib/math.in.h (frexpf): New declaration.
2586         * lib/frexpf.c: New file.
2587         * m4/frexpf.m4: New file.
2588         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2590         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2591         * modules/frexpf: New file.
2592         * tests/test-math-c++.cc: Check the declaration of frexpf.
2593         * doc/posix-functions/frexpf.texi: Mention the new module.
2594
2595 2011-10-06  Bruno Haible  <bruno@clisp.org>
2596
2597         math: Sort function declarations of math.in.h.
2598         * lib/math.in.h (frexp, logb): Move declarations.
2599
2600 2011-10-05  Bruno Haible  <bruno@clisp.org>
2601
2602         Tests for module 'modff'.
2603         * modules/modff-tests: New file.
2604         * tests/test-modff.c: New file.
2605
2606         New module 'modff'.
2607         * lib/math.in.h (modff): New declaration.
2608         * lib/modff.c: New file.
2609         * m4/modff.m4: New file.
2610         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2612         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2613         * modules/modff: New file.
2614         * tests/test-math-c++.cc: Check the declaration of modff.
2615         * doc/posix-functions/modff.texi: Mention the new module.
2616
2617         modf tests: Make test sharper.
2618         * tests/test-modf.c (main): Strengthen upper bound.
2619
2620         modf: Use a .m4 file.
2621         * m4/modf.m4: New file.
2622         * modules/modf (Files): Add it.
2623         (configure.ac): Just invoke gl_FUNC_MODF.
2624
2625 2011-10-05  Bruno Haible  <bruno@clisp.org>
2626
2627         Tests for module 'fmodf'.
2628         * modules/fmodf-tests: New file.
2629         * tests/test-fmodf.c: New file.
2630
2631         New module 'fmodf'.
2632         * lib/math.in.h (fmodf): New declaration.
2633         * lib/fmodf.c: New file.
2634         * m4/fmodf.m4: New file.
2635         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2637         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2638         * modules/fmodf: New file.
2639         * tests/test-math-c++.cc: Check the declaration of fmodf.
2640         * doc/posix-functions/fmodf.texi: Mention the new module.
2641
2642         fmod: Use a .m4 file.
2643         * m4/fmod.m4: New file.
2644         * modules/fmod (Files): Add it.
2645         (configure.ac): Just invoke gl_FUNC_FMOD.
2646
2647 2011-10-05  Bruno Haible  <bruno@clisp.org>
2648
2649         Tests for module 'fabsf'.
2650         * modules/fabsf-tests: New file.
2651         * tests/test-fabsf.c: New file.
2652
2653         New module 'fabsf'.
2654         * lib/math.in.h (fabsf): New declaration.
2655         * lib/fabsf.c: New file.
2656         * m4/fabsf.m4: New file.
2657         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2659         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2660         * modules/fabsf: New file.
2661         * tests/test-math-c++.cc: Check the declaration of fabsf.
2662         * doc/posix-functions/fabsf.texi: Mention the new module.
2663
2664         fabs: Use a .m4 file.
2665         * m4/fabs.m4: New file.
2666         * modules/fabs (Files): Add it.
2667         (configure.ac): Just invoke gl_FUNC_FABS.
2668
2669 2011-10-05  Jim Meyering  <meyering@redhat.com>
2670
2671         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2672         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2673         ls -lL regression introduced in coreutils-8.12, it does so at the
2674         cost of an additional stat call in the common case.  Besides, now
2675         that the kernel change that prompted commit 95f7c57f has been reverted
2676         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2677         we have no use for commit 95f7c57f, "file-has-acl: use
2678         acl_extended_file_nofollow if available".
2679
2680 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2681
2682         file-has-acl: revert unintended change in behavior of ls -L
2683         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2684         derived from...
2685         (file_has_acl): ...code here.  Call it.
2686         This problem was introduced with 2011-07-22 commit 95f7c57f,
2687         "file-has-acl: use acl_extended_file_nofollow if available".
2688         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2689
2690 2011-10-03  Bruno Haible  <bruno@clisp.org>
2691
2692         poll: Avoid link errors on MSVC.
2693         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2694         * modules/poll (Depends-on): Add sockets.
2695         (Link): New section.
2696         * NEWS: Mention the change.
2697         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2698         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2699         $(LIB_POLL) instead of $(LIBSOCKET).
2700
2701 2011-10-03  Bruno Haible  <bruno@clisp.org>
2702
2703         sys_select tests: Fix link error on MSVC 9.
2704         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2705         with $(LIB_SELECT) instead of $(LIBSOCKET).
2706
2707 2011-10-03  Bruno Haible  <bruno@clisp.org>
2708
2709         sys_select: Fix compilation error on mingw.
2710         * lib/sys_select.in.h: On native Windows, include <io.h>.
2711
2712 2011-10-03  Bruno Haible  <bruno@clisp.org>
2713
2714         wmemset: Support for MSVC.
2715         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2716         whether wmemset() exists.
2717
2718 2011-10-03  Bruno Haible  <bruno@clisp.org>
2719
2720         wmemmove: Support for MSVC.
2721         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2722         whether wmemmove() exists.
2723
2724 2011-10-03  Bruno Haible  <bruno@clisp.org>
2725
2726         wmemcpy: Support for MSVC.
2727         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2728         whether wmemcpy() exists.
2729
2730 2011-10-03  Bruno Haible  <bruno@clisp.org>
2731
2732         wmemcmp: Support for MSVC.
2733         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2734         whether wmemcmp() exists.
2735
2736 2011-10-03  Bruno Haible  <bruno@clisp.org>
2737
2738         wmemchr: Support for MSVC.
2739         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2740         whether wmemchr() exists.
2741
2742 2011-10-03  Bruno Haible  <bruno@clisp.org>
2743
2744         glthread/*, strsignal: Support for MSVC.
2745         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2746         including <winsock.h> on MSVC 9.
2747         * lib/glthread/lock.h: Likewise.
2748         * lib/glthread/thread.h: Likewise.
2749         * lib/glthread/tls.h: Likewise.
2750         * lib/glthread/yield.h: Likewise.
2751         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2752         if HAVE_UNISTD_H is false.
2753         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2754
2755 2011-10-03  Bruno Haible  <bruno@clisp.org>
2756
2757         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2758         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2759         Set to 100000.
2760
2761 2011-10-03  Bruno Haible  <bruno@clisp.org>
2762
2763         acl: Fix specification.
2764         * lib/file-has-acl.c (file_has_acl): Fix specification.
2765
2766 2011-10-03  Bruno Haible  <bruno@clisp.org>
2767
2768         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2769         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2770         (compute_curr_prefix, shared_library_fullname,
2771         find_shared_library_fullname, get_shared_library_fullname, relocate):
2772         Use it together with PIC && INSTALLDIR.
2773         Reported by <jojelino@gmail.com>
2774         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2775
2776 2011-10-01  Jim Meyering  <meyering@redhat.com>
2777
2778         maint.mk: adjust a release-related rule not to require use of gzip
2779         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2780         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2781         projects that build only .tar.xz files.  Also fix an erroneous test.
2782
2783         test-linkat: don't leave behind a temporary file
2784         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2785         Otherwise, coreutils' "make distcheck" would fail with this:
2786           Only in /c/cu/tests/torture/coreutils/test/\
2787             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2788           make[2]: *** [my-distcheck] Error 1
2789
2790         float, math: add omitted file
2791         * lib/itold.c: Add file, required for yesterday's float change.
2792
2793 2011-10-01  Bruno Haible  <bruno@clisp.org>
2794
2795         isinf: Fix for OpenBSD/x86.
2796         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2797         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2798         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2799
2800 2011-10-01  Bruno Haible  <bruno@clisp.org>
2801
2802         isfinite: Fix syntax error in configure test.
2803         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2804
2805         isfinite: Fix typo.
2806         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2807         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2808
2809 2011-10-01  Bruno Haible  <bruno@clisp.org>
2810
2811         nonblocking tests: Fix test failure on Linux/IA-64.
2812         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2813         Set to 270000.
2814
2815 2011-10-01  Bruno Haible  <bruno@clisp.org>
2816
2817         mkfifoat tests: Fix a test failure on mingw.
2818         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2819         with error ENOSYS.
2820
2821 2011-09-30  Bruno Haible  <bruno@clisp.org>
2822
2823         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2824         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2825         'long double'. Set REPLACE_ITOLD.
2826         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2827         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2828         * lib/itold.c: New file.
2829         * modules/float (Files): Add lib/itold.c.
2830         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2831         (Makefile.am): Substitute REPLACE_ITOLD.
2832         * modules/math (Depends-on): Add float.
2833         (Makefile.am): Substitute REPLACE_ITOLD.
2834         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2835         * doc/posix-headers/math.texi: Likewise.
2836         * doc/posix-functions/logl.texi: Likewise.
2837
2838 2011-09-30  Bruno Haible  <bruno@clisp.org>
2839
2840         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2841         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2842         Set to 140000.
2843
2844 2011-09-30  Bruno Haible  <bruno@clisp.org>
2845
2846         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2847         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2848         invocation, say "right after AC_PROG_CC_STDC", not "right after
2849         AC_PROG_CC".
2850         Reported by Gary V. Vaughan <gary@gnu.org>.
2851
2852 2011-09-30  Bruno Haible  <bruno@clisp.org>
2853
2854         Centralize C99 requirement.
2855         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2856         * modules/stdarg (configure.ac-early): Invoke it instead of
2857         AC_PROG_CC_STDC.
2858         Reported by Gary V. Vaughan and Paul Eggert.
2859
2860 2011-09-29  Bruno Haible  <bruno@clisp.org>
2861
2862         float: Fix LDBL_MAX value on Linux/PowerPC.
2863         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2864         on Linux/PowerPC.
2865         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2866         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2867         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2868         platform.
2869         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2870
2871 2011-09-29  Bruno Haible  <bruno@clisp.org>
2872
2873         doc: Improve doc about gl_EARLY.
2874         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2875         AC_PROG_CC_STDC invocation.
2876         Reported by Gary V. Vaughan <gary@gnu.org>.
2877
2878 2011-09-28  Bruno Haible  <bruno@clisp.org>
2879
2880         fgetc, fputc, fread, fwrite tests: Fix link error.
2881         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2882         on non-MSVC platforms.
2883         * tests/test-fputc.c (main): Likewise.
2884         * tests/test-fread.c (main): Likewise.
2885         * tests/test-fwrite.c (main): Likewise.
2886         Reported by Jim Meyering.
2887
2888 2011-09-27  Bruno Haible  <bruno@clisp.org>
2889
2890         fputc, fwrite tests: Avoid test failure on MSVC.
2891         * tests/test-fgetc.c: Include msvc-inval.h.
2892         (main): Invoke gl_msvc_inval_ensure_handler.
2893         * tests/test-fputc.c: Include msvc-inval.h.
2894         (main): Invoke gl_msvc_inval_ensure_handler.
2895         * tests/test-fread.c: Include msvc-inval.h.
2896         (main): Invoke gl_msvc_inval_ensure_handler.
2897         * tests/test-fwrite.c: Include msvc-inval.h.
2898         (main): Invoke gl_msvc_inval_ensure_handler.
2899         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2900         * modules/fputc-tests (Depends-on): Likewise.
2901         * modules/fread-tests (Depends-on): Likewise.
2902         * modules/fwrite-tests (Depends-on): Likewise.
2903
2904 2011-09-27  Bruno Haible  <bruno@clisp.org>
2905
2906         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2907         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2908         (raise): Remove older, duplicated declaration.
2909         (_gl_raise_SIGPIPE): New declaration.
2910         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2911         (rpl_raise): Remove function.
2912         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2913         a gnulib-defined SIGPIPE here.
2914         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2915         'sigprocmask' has detected missing signal-blocking and the module
2916         'sigpipe' is enabled.
2917         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2918
2919 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2920
2921         base64-tests: avoid memory leak
2922         * tests/test-base64.c (main): Plug memory leak.
2923
2924         base32: new module
2925         * modules/base32: New module.
2926         * lib/base32.c: New file.
2927         * lib/base32.h: Likewise.
2928         * m4/base32.m4: Likewise.
2929         * modules/base32-tests: New test.
2930         * tests/test-base32.c: Likewise.
2931         * MODULES.html.sh (Misc): Mention it.
2932
2933 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2934
2935         gnulib: use more-standard license notice wording
2936         * gnulib-tool (func_emit_copyright_notice): When emitting a
2937         license notice into a file, use the standard wording as suggested
2938         by the current information for GNU maintainers, except say "file"
2939         rather than "program".  The new wording gives a license version
2940         number, which addresses an issue raised by Glenn Morris in
2941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2942         * m4/onceonly.m4: Use that same wording here, too.
2943
2944         dup2: minor simplification
2945         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2946         as lib/dup2.c no longer uses 'inline'.
2947
2948 2011-09-25  Bruno Haible  <bruno@clisp.org>
2949
2950         strings: Fix compilation error on MSVC.
2951         * lib/strings.in.h: Include <stddef.h> for size_t.
2952
2953 2011-09-25  Bruno Haible  <bruno@clisp.org>
2954
2955         fflush et al.: Document limitation on MSVC.
2956         * doc/posix-functions/fflush.texi: Document possible crash in handling
2957         mode other than DEFAULT_HANDLING.
2958         * doc/posix-functions/fgetc.texi: Likewise.
2959         * doc/posix-functions/fputc.texi: Likewise.
2960         * doc/posix-functions/fread.texi: Likewise.
2961         * doc/posix-functions/fwrite.texi: Likewise.
2962
2963 2011-09-25  Bruno Haible  <bruno@clisp.org>
2964
2965         msvc-inval: Allow three invalid parameter handling modes.
2966         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2967         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2968         macros.
2969         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2970         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2971         SANE_LIBRARY_HANDLING as a no-op.
2972         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2973         <stdlib.h>.
2974         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2975
2976 2011-09-25  Bruno Haible  <bruno@clisp.org>
2977
2978         msvc-inval: Make handler multithread-safe.
2979         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2980         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2981         declarations.
2982         (gl_msvc_inval_current): New declaration.
2983         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2984         Operate on the structure returned by gl_msvc_inval_current().
2985         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2986         Remove varaiables.
2987         (tls_index, tls_initialized): New variables.
2988         (not_per_thread): New variable.
2989         (gl_msvc_inval_current): New function.
2990         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
2991         returned by gl_msvc_inval_current().
2992
2993 2011-09-25  Bruno Haible  <bruno@clisp.org>
2994
2995         msvc-inval: Install handler globally.
2996         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
2997         !_MSC_VER.
2998         (gl_msvc_invalid_parameter_handler): Remove declaration.
2999         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3000         declarations.
3001         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3002         Install the handler globally, don't uninstall it.
3003         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3004         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3005         currently valid, call RaiseException instead.
3006         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3007         for !_MSC_VER.
3008
3009 2011-09-25  Bruno Haible  <bruno@clisp.org>
3010
3011         strerror_r-posix: Fix for MSVC 9.
3012         * lib/strerror_r.c (local_snprintf): New function.
3013         (snprintf): Define to local_snprintf, not to _snprintf.
3014
3015 2011-09-25  Bruno Haible  <bruno@clisp.org>
3016
3017         ftruncate: Support for MSVC 9.
3018         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3019         (chsize_nothrow): New function.
3020         (chsize): Redefine as a macro.
3021         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3022         * modules/ftruncate (Depends-on): Add msvc-inval.
3023
3024 2011-09-25  Bruno Haible  <bruno@clisp.org>
3025
3026         New module 'fstat'.
3027         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3028         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3029         * lib/fchdir.c (rpl_fstat): Remove function.
3030         * m4/fstat.m4: New file.
3031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3032         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3033         declared.
3034         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3035         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3036         * modules/fstat: New file.
3037         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3038         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3039         is set.
3040         * doc/posix-functions/fstat.texi: Mention the new module and the
3041         problem on MSVC.
3042         * NEWS: Mention the change.
3043         * modules/acl (Depends-on): Add fstat.
3044         * modules/chdir-safer (Depends-on): Likewise.
3045         * modules/chown (Depends-on): Likewise.
3046         * modules/copy-file (Depends-on): Likewise.
3047         * modules/fchdir (Depends-on): Likewise.
3048         * modules/fdopendir (Depends-on): Likewise.
3049         * modules/fopen (Depends-on): Likewise.
3050         * modules/fts (Depends-on): Likewise.
3051         * modules/getcwd (Depends-on): Likewise.
3052         * modules/isapipe (Depends-on): Likewise.
3053         * modules/linkat (Depends-on): Likewise.
3054         * modules/lseek (Depends-on): Likewise.
3055         * modules/mkdir-p (Depends-on): Likewise.
3056         * modules/open (Depends-on): Likewise.
3057         * modules/openat (Depends-on): Likewise.
3058         * modules/read-file (Depends-on): Likewise.
3059         * modules/renameat (Depends-on): Likewise.
3060         * modules/utimens (Depends-on): Likewise.
3061
3062 2011-09-25  Bruno Haible  <bruno@clisp.org>
3063
3064         linkat: Fix compilation on MSVC 9.
3065         * lib/linkat.c: Don't include <stdint.h>.
3066
3067 2011-09-25  Bruno Haible  <bruno@clisp.org>
3068
3069         fclose: Support for MSVC 9.
3070         * lib/fclose.c: Include msvc-inval.h.
3071         (fclose_nothrow): New function.
3072         (rpl_fclose): Use it.
3073         * modules/fclose (Depends-on): Add msvc-inval.
3074         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3075
3076 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3077
3078         dup2: minor simplifications
3079         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3080         that it's a performance win.
3081         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3082         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3083
3084 2011-09-24  Jim Meyering  <meyering@redhat.com>
3085
3086         test-futimens: avoid a warning from gcc -Wshadow
3087         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3088         to avoid a shadowing warning.
3089
3090 2011-09-24  Bruno Haible  <bruno@clisp.org>
3091
3092         fdopen: Support for MSVC 9.
3093         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3094         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3095         * lib/fdopen.c: Include msvc-inval.h.
3096         (fdopen_nothrow): New function.
3097         (rpl_fdopen): Use it.
3098         * modules/fdopen (Depends-on): Add msvc-inval.
3099         * modules/fclose-tests (Depends-on): Add fdopen.
3100         * modules/fflush-tests (Depends-on): Likewise.
3101         * modules/fgetc-tests (Depends-on): Likewise.
3102         * modules/fputc-tests (Depends-on): Likewise.
3103         * modules/fread-tests (Depends-on): Likewise.
3104         * modules/freopen-tests (Depends-on): Likewise.
3105         * modules/fseeko-tests (Depends-on): Likewise.
3106         * modules/ftello-tests (Depends-on): Likewise.
3107         * modules/fwrite-tests  (Depends-on): Likewise.
3108         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3109
3110 2011-09-24  Bruno Haible  <bruno@clisp.org>
3111
3112         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3113         * modules/fgetc-tests (Depends-on): Add unistd.
3114         * modules/fputc-tests (Depends-on): Likewise.
3115         * modules/fread-tests (Depends-on): Likewise.
3116         * modules/fwrite-tests (Depends-on): Likewise.
3117
3118 2011-09-24  Bruno Haible  <bruno@clisp.org>
3119
3120         dup: Simplify autoconf test.
3121         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3122         on gl_MSVC_INVAL's result.
3123
3124 2011-09-24  Bruno Haible  <bruno@clisp.org>
3125
3126         Tests for function fwrite().
3127         * modules/fwrite-tests: New file.
3128         * tests/test-fwrite.c: New file.
3129         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3130
3131         Tests for function fread().
3132         * modules/fread-tests: New file.
3133         * tests/test-fread.c: New file.
3134         * modules/stdio-tests (Depends-on): Add fread-tests.
3135
3136         Activate fputc tests.
3137         * modules/stdio-tests (Depends-on): Add fputc-tests.
3138
3139         Enhance fgetc, fputc tests.
3140         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3141         * tests/test-fputc.c (main): Likewise.
3142
3143 2011-09-24  Bruno Haible  <bruno@clisp.org>
3144
3145         write: Support for MSVC 9.
3146         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3147         is not 1.
3148         * lib/write.c (write_nothrow): New function.
3149         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3150         not 1. Use write_nothrow.
3151         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3152         invalid parameter handler.
3153         (gl_PREREQ_WRITE): New macro.
3154         * modules/write (Depends-on): Add msvc-inval.
3155         (configure.ac): Invoke gl_PREREQ_WRITE.
3156         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3157
3158 2011-09-24  Bruno Haible  <bruno@clisp.org>
3159
3160         read: Fix last commit.
3161         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3162
3163 2011-09-24  Bruno Haible  <bruno@clisp.org>
3164
3165         dup2: Fix last commit.
3166         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3167         (rpl_dup2): Disable fcntl workaround on native Windows.
3168
3169         sigprocmask: Make code safer.
3170         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3171         section that changes macro definitions for this compilation unit.
3172
3173 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3174
3175         dup2: clarify by coalescing Windows-specific material
3176         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3177         "msvc-nothrow.h"' to the Windows-specific section, so that the
3178         Emacs source need not contain these include files.
3179         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3180         Windows-specific fixes into this function rather than just the
3181         nothrow fix, as this shortens and clarifies the code.  Always
3182         define as a function, as that's a bit cleaner than having it be
3183         sometimes a function and sometimes a macro.
3184         (rpl_dup2): Move the Windows-specific stuff out of here and into
3185         ms_windows_dup2.  Don't protect the Haiku-related fix with
3186         "#if !defined __linux__", as the same code also works around
3187         a Linux kernel bug, and it doesn't add any system calls on any
3188         platform.  Add comment about FreeBSD 6.1.
3189
3190         sigprocmask: move #include directive
3191         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3192         Windows-specific section, so that the Emacs source need not
3193         contain msvc-inval.h.
3194
3195 2011-09-23  Bruno Haible  <bruno@clisp.org>
3196
3197         read: Support for MSVC 9.
3198         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3199         is not 1.
3200         * lib/read.c (read_nothrow): New function.
3201         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3202         read_nothrow.
3203         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3204         invalid parameter handler.
3205         (gl_PREREQ_READ): New macro.
3206         * modules/read (Depends-on): Add msvc-inval.
3207         (configure.ac): Invoke gl_PREREQ_READ.
3208         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3209
3210 2011-09-23  Bruno Haible  <bruno@clisp.org>
3211
3212         close: Support for MSVC 9.
3213         * lib/close.c: Include <errno.h>, msvc-inval.h.
3214         (close_nothrow): New function.
3215         (rpl_close): Use it.
3216         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3217         invalid parameter handler.
3218         * modules/close (Depends-on): Add msvc-inval.
3219         * modules/dup2-tests (Depends-on): Add close.
3220         * modules/dup3-tests (Depends-on): Likewise.
3221         * modules/fcntl-tests (Depends-on): Likewise.
3222         * modules/spawn-pipe-tests (Depends-on): Likewise.
3223         * modules/unistd-safer-tests (Depends-on): Likewise.
3224         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3225
3226 2011-09-23  Bruno Haible  <bruno@clisp.org>
3227
3228         New module 'dup'.
3229         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3230         Allow replacement.
3231         * lib/dup.c: New file.
3232         * lib/fchdir.c (rpl_dup): Remove function.
3233         * m4/dup.m4: New file.
3234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3235         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3236         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3237         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3238         * modules/dup: New file.
3239         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3240         'dup' module is in use.
3241         * modules/fdopendir (Depends-on): Add dup.
3242         * modules/fdutimensat-tests (Depends-on): Likewise.
3243         * modules/fts (Depends-on): Likewise.
3244         * modules/futimens-tests (Depends-on): Likewise.
3245         * modules/posix_spawnp-tests (Depends-on): Likewise.
3246         * modules/unistd-safer-tests (Depends-on): Likewise.
3247         * modules/utimens-tests (Depends-on): Likewise.
3248         * doc/posix-functions/dup.texi: Mention the new module and the problem
3249         on MSVC.
3250
3251 2011-09-23  Bruno Haible  <bruno@clisp.org>
3252
3253         getdtablesize: Support for MSVC 9.
3254         * lib/getdtablesize.c: Include msvc-inval.h.
3255         (_setmaxstdio_nothrow): New function.
3256         (_setmaxstdio): Redefine it.
3257         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3258         * modules/getdtablesize (Depends-on): Add msvc-inval.
3259         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3260
3261 2011-09-23  Bruno Haible  <bruno@clisp.org>
3262
3263         signal-h: Rename from signal.
3264         * modules/signal-h: Renamed from modules/signal.
3265         * modules/pthread_sigmask (Depends-on): Update.
3266         * modules/raise (Depends-on): Likewise.
3267         * modules/sigaction (Depends-on): Likewise.
3268         * modules/sigpipe (Depends-on): Likewise.
3269         * modules/sigprocmask (Depends-on): Likewise.
3270         * modules/sys_select (Depends-on): Likewise.
3271         * modules/signal-h-tests: Renamed from modules/signal-tests.
3272         (Files, Depends-on, Makefile.am): Update.
3273         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3274         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3275         (Files, Makefile.am): Update.
3276         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3277         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3278         * modules/signal: New placeholder file.
3279         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3280         * doc/posix-headers/signal.texi: Update.
3281         * NEWS: Mention the change.
3282
3283 2011-09-23  Bruno Haible  <bruno@clisp.org>
3284
3285         sigprocmask: Avoid crashes through signal() on MSVC 9.
3286         * lib/sigprocmask.c: Include msvc-inval.h.
3287         (signal_nothrow): New function.
3288         (signal): Redefine it.
3289         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3290         * modules/sigprocmask (Depends-on): Add msvc-inval.
3291         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3292
3293 2011-09-23  Bruno Haible  <bruno@clisp.org>
3294
3295         Tests for module 'raise'.
3296         * modules/raise-tests: New file.
3297         * tests/test-raise.c: New file.
3298
3299         raise: Support for MSVC.
3300         * lib/signal.in.h (raise): New declaration.
3301         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3302         for native Windows platforms.
3303         * m4/raise.m4: New file.
3304         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3305         HAVE_RAISE, REPLACE_RAISE.
3306         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3307         REPLACE_RAISE.
3308         * modules/raise (Status, Notice): Remove fields.
3309         (Files): Add m4/raise.m4.
3310         (Depends-on): Add signal, msvc-inval.
3311         (configure.ac): Use the common idioms.
3312         (Maintainer): Add me.
3313         * tests/test-signal-c++.cc: Check the signature of raise.
3314         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3315
3316 2011-09-23  Bruno Haible  <bruno@clisp.org>
3317
3318         pipe2: Fix compilation on pre-C99 compilers.
3319         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3320
3321 2011-09-23  Bruno Haible  <bruno@clisp.org>
3322
3323         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3324         * lib/msvc-nothrow.h: New file.
3325         * lib/msvc-nothrow.c: New file.
3326         * m4/msvc-nothrow.m4: New file.
3327         * modules/msvc-nothrow: New file.
3328         * lib/dup2.c: Include msvc-nothrow.h.
3329         (rpl_dup2): No need to protect _get_osfhandle call here.
3330         * lib/accept4.c: Include msvc-nothrow.h.
3331         * lib/error.c: Likewise.
3332         * lib/fcntl.c: Likewise.
3333         * lib/lseek.c: Likewise.
3334         * lib/nonblocking.c: Likewise.
3335         * lib/poll.c: Likewise.
3336         * lib/read.c: Likewise.
3337         * lib/select.c: Likewise.
3338         * lib/sockets.h: Likewise.
3339         * lib/sockets.c: Likewise.
3340         * lib/stdio-read.c: Likewise.
3341         * lib/stdio-write.c: Likewise.
3342         * lib/write.c: Likewise.
3343         * lib/w32sock.h: Likewise.
3344         * lib/w32spawn.h: Likewise.
3345         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3346         * lib/fsync.c: Likewise.
3347         * lib/isapipe.c: Likewise.
3348         * modules/dup2 (Depends-on): Add msvc-nothrow.
3349         * modules/accept4 (Depends-on): Likewise.
3350         * modules/error (Depends-on): Likewise.
3351         * modules/fcntl (Depends-on): Likewise.
3352         * modules/lseek (Depends-on): Likewise.
3353         * modules/nonblocking (Depends-on): Likewise.
3354         * modules/poll (Depends-on): Likewise.
3355         * modules/read (Depends-on): Likewise.
3356         * modules/select (Depends-on): Likewise.
3357         * modules/sockets (Depends-on): Likewise.
3358         * modules/sigpipe (Depends-on): Likewise.
3359         * modules/write (Depends-on): Likewise.
3360         * modules/accept (Depends-on): Likewise.
3361         * modules/bind (Depends-on): Likewise.
3362         * modules/connect (Depends-on): Likewise.
3363         * modules/gethostname (Depends-on): Likewise.
3364         * modules/getpeername (Depends-on): Likewise.
3365         * modules/getsockname (Depends-on): Likewise.
3366         * modules/getsockopt (Depends-on): Likewise.
3367         * modules/ioctl (Depends-on): Likewise.
3368         * modules/listen (Depends-on): Likewise.
3369         * modules/recv (Depends-on): Likewise.
3370         * modules/recvfrom (Depends-on): Likewise.
3371         * modules/send (Depends-on): Likewise.
3372         * modules/sendto (Depends-on): Likewise.
3373         * modules/setsockopt (Depends-on): Likewise.
3374         * modules/shutdown (Depends-on): Likewise.
3375         * modules/socket (Depends-on): Likewise.
3376         * modules/execute (Depends-on): Likewise.
3377         * modules/spawn-pipe (Depends-on): Likewise.
3378         * modules/flock (Depends-on): Likewise.
3379         * modules/fsync (Depends-on): Likewise.
3380         * modules/isapipe (Depends-on): Likewise.
3381         * tests/test-cloexec.c: Include msvc-nothrow.h.
3382         * tests/test-dup-safer.c: Likewise.
3383         * tests/test-dup2.c: Likewise.
3384         * tests/test-dup3.c: Likewise.
3385         * tests/test-fcntl.c: Likewise.
3386         * tests/test-pipe.c: Likewise.
3387         * tests/test-pipe2.c: Likewise.
3388         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3389         * modules/unistd-safer-tests (Depends-on): Likewise.
3390         * modules/dup2-tests (Depends-on): Likewise.
3391         * modules/dup3-tests (Depends-on): Likewise.
3392         * modules/fcntl-tests (Depends-on): Likewise.
3393         * modules/pipe-posix-tests (Depends-on): Likewise.
3394         * modules/pipe2-tests (Depends-on): Likewise.
3395
3396 2011-09-23  Bruno Haible  <bruno@clisp.org>
3397
3398         dup2: Make code more maintainable.
3399         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3400         (rpl_dup2): Use it.
3401         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3402         * modules/dup2 (configure.ac): Invoke it.
3403         Reported by Paul Eggert.
3404
3405 2011-09-23  Bruno Haible  <bruno@clisp.org>
3406
3407         msvc-inval: Fix compilation error.
3408         * lib/msvc-inval.h: Include <excpt.h>.
3409
3410 2011-09-23  Bruno Haible  <bruno@clisp.org>
3411
3412         mkdir: Tweak for MSVC 9.
3413         * lib/sys_stat.in.h: Update comments.
3414         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3415
3416         Tests for module 'chdir'.
3417         * modules/chdir-tests: New file.
3418         * tests/test-chdir.c: New file.
3419
3420         New module 'chdir'.
3421         * modules/chdir: New file.
3422         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3423         (chdir): New declaration.
3424         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3425         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3426         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3427         * tests/test-unistd-c++.cc: Check signature of chdir.
3428         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3429         * modules/chdir-long (Depends-on): Add chdir.
3430         * modules/fchdir (Depends-on): Likewise.
3431         * modules/rename (Depends-on): Likewise.
3432         * modules/savewd (Depends-on): Likewise.
3433
3434         rmdir: Support for mingw, MSVC 9.
3435         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3436         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3437
3438         getcwd: Tweak for MSVC 9.
3439         * lib/unistd.in.h: Update comments.
3440         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3441
3442 2011-09-22  Bruno Haible  <bruno@clisp.org>
3443
3444         strerror_r-posix: Avoid a link error on MSVC.
3445         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3446         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3447
3448 2011-09-22  Bruno Haible  <bruno@clisp.org>
3449
3450         select: Avoid link errors on MSVC.
3451         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3452         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3453         * modules/pselect (Link): Likewise.
3454         * NEWS: Mention the change.
3455         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3456         test-select-stdin against $(LIB_SELECT).
3457         * modules/pselect-tests (Makefile.am): Link test-pselect against
3458         $(LIB_SELECT).
3459
3460 2011-09-22  Bruno Haible  <bruno@clisp.org>
3461
3462         select: Avoid compilation error on MSVC.
3463         * lib/select.c: Don't include <stdbool.h>.
3464
3465 2011-09-21  Bruno Haible  <bruno@clisp.org>
3466
3467         Consolidate all uses of PATH_MAX in *.m4 files.
3468         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3469         macros.
3470         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3471         and gl_PATHMAX_SNIPPET.
3472         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3473         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3474         * modules/chdir-long (Files): Add m4/pathmax.m4.
3475         * modules/getcwd (Files): Likewise.
3476
3477 2011-09-21  Bruno Haible  <bruno@clisp.org>
3478
3479         ftruncate: Un-deprecate, concentrate on Win32 support.
3480         * modules/ftruncate (Status, Notice): Remove sections.
3481         (Depends-on): Add largefile.
3482         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3483         non-mingw platforms.
3484         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3485         include <io.h>.
3486         * modules/perror-tests (Depends-on): Add ftruncate.
3487         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3488         'ftruncate' module.
3489
3490 2011-09-21  Bruno Haible  <bruno@clisp.org>
3491
3492         Add dependencies to new dirent related modules.
3493         * modules/opendir (Depends-on): Add closedir.
3494         * modules/getcwd (Depends-on): Add opendir, closedir.
3495         * modules/dirent-safer-tests (Depends-on): Likewise.
3496         * modules/fdopendir-tests (Depends-on): Likewise.
3497         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3498         * modules/renameat-tests (Depends-on): Likewise.
3499
3500 2011-09-21  Bruno Haible  <bruno@clisp.org>
3501
3502         opendir: Avoid compilation error on mingw.
3503         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3504         * modules/opendir (Depends-on): Add unistd.
3505
3506 2011-09-21  Bruno Haible  <bruno@clisp.org>
3507
3508         ftruncate tests: Avoid a test failure on mingw.
3509         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3510
3511 2011-09-21  Bruno Haible  <bruno@clisp.org>
3512
3513         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3514         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3515         native Windows.
3516
3517 2011-09-21  Bruno Haible  <bruno@clisp.org>
3518
3519         New module 'fdopen'.
3520         * lib/stdio.in.h (fdopen): New declaration.
3521         * lib/fdopen.c: New file.
3522         * m4/fdopen.m4: New file.
3523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3524         REPLACE_FDOPEN.
3525         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3526         REPLACE_FDOPEN.
3527         * modules/fdopen: New file.
3528         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3529         * tests/test-stdio-c++.cc: Check signature of fdopen.
3530         * doc/posix-functions/fdopen.texi: Mention the new module.
3531
3532 2011-09-21  Bruno Haible  <bruno@clisp.org>
3533
3534         unlockpt tests: Avoid test failure on NetBSD 5.1.
3535         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3536         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3537
3538 2011-09-21  Bruno Haible  <bruno@clisp.org>
3539
3540         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3541         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3542         * tests/test-getlogin_r.c (main): Likewise.
3543
3544 2011-09-20  Bruno Haible  <bruno@clisp.org>
3545
3546         time tests: Don't require pid_t.
3547         * doc/posix-headers/time.texi: Revert last change.
3548         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3549         * tests/test-time.c: Comment out the check for pid_t.
3550
3551 2011-09-20  Bruno Haible  <bruno@clisp.org>
3552
3553         fsync tests: Avoid a test failure on mingw.
3554         * tests/test-fsync.c (main): Allow a failure with EIO.
3555
3556 2011-09-20  Bruno Haible  <bruno@clisp.org>
3557
3558         euidaccess: Update comments.
3559         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3560
3561 2011-09-20  Bruno Haible  <bruno@clisp.org>
3562
3563         Ensure EBADF returns for socket functions on mingw.
3564         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3565         descriptor is invalid.
3566         * lib/bind.c (rpl_bind): Likewise.
3567         * lib/connect.c (rpl_connect): Likewise.
3568         * lib/getpeername.c (rpl_getpeername): Likewise.
3569         * lib/getsockname.c (rpl_getsockname): Likewise.
3570         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3571         * lib/listen.c (rpl_listen): Likewise.
3572         * lib/recv.c (rpl_recv): Likewise.
3573         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3574         * lib/send.c (rpl_send): Likewise.
3575         * lib/sendto.c (rpl_sendto): Likewise.
3576         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3577         * lib/shutdown.c (rpl_shutdown): Likewise.
3578
3579 2011-09-20  Bruno Haible  <bruno@clisp.org>
3580
3581         select tests: EBADF tests.
3582         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3583         test_bad_fd): New functions.
3584         (test_function): Invoke also test_bad_fd.
3585
3586 2011-09-20  Bruno Haible  <bruno@clisp.org>
3587
3588         Tests for module 'posix_spawn_file_actions_addopen.
3589         * modules/posix_spawn_file_actions_addopen-tests: New file.
3590         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3591
3592         Tests for module 'posix_spawn_file_actions_adddup2'.
3593         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3594         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3595
3596         Tests for module 'posix_spawn_file_actions_addclose'.
3597         * modules/posix_spawn_file_actions_addclose-tests: New file.
3598         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3599
3600 2011-09-20  Bruno Haible  <bruno@clisp.org>
3601
3602         Tests for module 'unlockpt'.
3603         * modules/unlockpt-tests: New file.
3604         * tests/test-unlockpt.c: New file.
3605         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3606
3607         Tests for module 'grantpt'.
3608         * modules/grantpt-tests: New file.
3609         * tests/test-grantpt.c: New file.
3610         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3611
3612 2011-09-20  Bruno Haible  <bruno@clisp.org>
3613
3614         freopen tests: EBADF tests.
3615         * tests/test-freopen.c: Include errno.h, unistd.h.
3616         (main): Add tests for EBADF, commented out for the moment.
3617
3618         fclose tests: EBADF tests.
3619         * tests/test-fclose.c (main): Add tests for EBADF.
3620
3621         fflush tests: EBADF tests.
3622         * tests/test-fflush.c: Include errno.h, macros.h.
3623         (main): Add tests for EBADF.
3624
3625         ftello tests: EBADF tests.
3626         * tests/test-ftello4.sh: New file.
3627         * tests/test-ftello4.c: New file.
3628         * modules/ftello-tests (Files): Add them.
3629         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3630
3631         fseeko tests: EBADF tests.
3632         * tests/test-fseeko4.sh: New file.
3633         * tests/test-fseeko4.c: New file.
3634         * modules/fseeko-tests (Files): Add them.
3635         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3636
3637         Tests for function fputc().
3638         * modules/fputc-tests: New file.
3639         * tests/test-fputc.c: New file.
3640         * modules/stdio-tests (Depends-on): Add fputc-tests.
3641
3642         Tests for function fgetc().
3643         * modules/fgetc-tests: New file.
3644         * tests/test-fgetc.c: New file.
3645         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3646
3647         Tests for function fdopen().
3648         * modules/fdopen-tests: New file.
3649         * tests/test-fdopen.c: New file.
3650         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3651
3652         Tests for module 'vdprintf'.
3653         * modules/vdprintf-tests: New file.
3654         * tests/test-vdprintf.c: New file.
3655
3656         Tests for module 'dprintf'.
3657         * modules/dprintf-tests: New file.
3658         * tests/test-dprintf.c: New file.
3659
3660 2011-09-20  Bruno Haible  <bruno@clisp.org>
3661
3662         Tests for module 'ioctl'.
3663         * modules/ioctl-tests: New file.
3664         * tests/test-ioctl.c: New file.
3665
3666 2011-09-20  Bruno Haible  <bruno@clisp.org>
3667
3668         fcntl tests: EBADF tests.
3669         * tests/test-fcntl.c (main): Add more tests for EBADF.
3670
3671 2011-09-20  Bruno Haible  <bruno@clisp.org>
3672
3673         utimensat tests: EBADF tests.
3674         * tests/test-utimensat.c (main): Add tests for EBADF.
3675
3676         renameat tests: EBADF tests.
3677         * tests/test-renameat.c (main): Add tests for EBADF.
3678
3679         mkfifoat tests: EBADF tests.
3680         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3681
3682         readlinkat tests: EBADF tests.
3683         * tests/test-readlinkat.c (main): Add tests for EBADF.
3684
3685         symlinkat tests: EBADF tests.
3686         * tests/test-symlinkat.c (main): Add tests for EBADF.
3687
3688         linkat tests: EBADF tests.
3689         * tests/test-linkat.c (main): Add tests for EBADF.
3690
3691         Tests for module 'faccessat'.
3692         * modules/faccessat-tests: New file.
3693         * tests/test-faccessat.c: New file.
3694
3695         fdopendir tests: EBADF tests.
3696         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3697
3698         openat tests: EBADF tests.
3699         * tests/test-fchownat.c (main): Add tests for EBADF.
3700         * tests/test-fstatat.c (main): Likewise.
3701         * tests/test-mkdirat.c (main): Likewise.
3702         * tests/test-openat.c (main): Likewise.
3703         * tests/test-unlinkat.c (main): Likewise.
3704         * tests/test-fchmodat.c: New file.
3705         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3706         (Makefile.am): Also run 'test-fchmodat'.
3707
3708 2011-09-20  Bruno Haible  <bruno@clisp.org>
3709
3710         utimens, futimens, fdutimensat tests: EBADF tests.
3711         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3712
3713         Tests for function fstat().
3714         * modules/fstat-tests: New file.
3715         * tests/test-fstat.c: New file.
3716         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3717
3718 2011-09-20  Bruno Haible  <bruno@clisp.org>
3719
3720         test-ttyname_r tests: EBADF tests.
3721         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3722
3723         Tests for module 'isatty'.
3724         * modules/isatty-tests: New file.
3725         * tests/test-isatty.c: New file.
3726
3727         Tests for module 'write'.
3728         * modules/write-tests: New file.
3729         * tests/test-write.c: New file.
3730
3731         Tests for module 'read'.
3732         * modules/read-tests: New file.
3733         * tests/test-read.c: New file.
3734
3735         pwrite tests: EBADF tests.
3736         * tests/test-pwrite.c (main): Add tests for EBADF.
3737
3738         pread tests: EBADF tests.
3739         * tests/test-pread.c (main): Add tests for EBADF.
3740
3741         lseek tests: EBADF tests.
3742         * tests/test-lseek.c (main): Add more tests for EBADF.
3743
3744         Tests for module 'ftruncate'.
3745         * modules/ftruncate-tests: New file.
3746         * tests/test-ftruncate.sh: New file.
3747         * tests/test-ftruncate.c: New file.
3748
3749         fsync tests: EBADF tests.
3750         * tests/test-fsync.c (main): Add more tests for EBADF.
3751
3752         fdatasync tests: EBADF tests.
3753         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3754
3755         Tests for module 'fchown'.
3756         * modules/fchown-tests: New file.
3757         * tests/test-fchown.c: New file.
3758
3759         Tests for module 'fchmod'.
3760         * modules/fchmod-tests: New file.
3761         * tests/test-fchmod.c: New file.
3762
3763         fchdir tests: EBADF tests.
3764         * tests/test-fchdir.c (main): Add more tests for EBADF.
3765
3766         dup2 tests: EBADF tests.
3767         * tests/test-dup2.c (main): Add more tests for EBADF.
3768
3769         Tests for module 'dup'.
3770         * modules/dup-tests: New file.
3771         * tests/test-dup.c: New file.
3772
3773         Tests for module 'close'.
3774         * modules/close-tests: New file.
3775         * tests/test-close.c: New file.
3776
3777 2011-09-20  Bruno Haible  <bruno@clisp.org>
3778
3779         Tests for module 'shutdown'.
3780         * modules/shutdown-tests: New file.
3781         * tests/test-shutdown.c: New file.
3782
3783         Tests for module 'setsockopt'.
3784         * modules/setsockopt-tests: New file.
3785         * tests/test-setsockopt.c: New file.
3786
3787         Tests for module 'sendto'.
3788         * modules/sendto-tests: New file.
3789         * tests/test-sendto.c: New file.
3790
3791         Tests for module 'send'.
3792         * modules/send-tests: New file.
3793         * tests/test-send.c: New file.
3794
3795         Tests for module 'recvfrom'.
3796         * modules/recvfrom-tests: New file.
3797         * tests/test-recvfrom.c: New file.
3798
3799         Tests for module 'recv'.
3800         * modules/recv-tests: New file.
3801         * tests/test-recv.c: New file.
3802
3803         Tests for module 'listen'.
3804         * modules/listen-tests: New file.
3805         * tests/test-listen.c: New file.
3806
3807         Tests for module 'getsockopt'.
3808         * modules/getsockopt-tests: New file.
3809         * tests/test-getsockopt.c: New file.
3810
3811         Tests for module 'getsockname'.
3812         * modules/getsockname-tests: New file.
3813         * tests/test-getsockname.c: New file.
3814
3815         Tests for module 'getpeername'.
3816         * modules/getpeername-tests: New file.
3817         * tests/test-getpeername.c: New file.
3818
3819         Tests for module 'connect'.
3820         * modules/connect-tests: New file.
3821         * tests/test-connect.c: New file.
3822
3823         Tests for module 'bind'.
3824         * modules/bind-tests: New file.
3825         * tests/test-bind.c: New file.
3826
3827         accept4 tests: Fix for native Windows.
3828         * tests/test-accept4.c: Include sockets.h.
3829         (main): Invoke gl_sockets_startup.
3830         * modules/accept4-tests (Depends-on): Add sockets.
3831
3832         accept tests: Fix for native Windows.
3833         * tests/test-accept.c: Include sockets.h.
3834         (main): Invoke gl_sockets_startup.
3835         * modules/accept-tests (Depends-on): Add sockets.
3836
3837 2011-09-19  Bruno Haible  <bruno@clisp.org>
3838
3839         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3840         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3841         do...while(0).
3842         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3843         Suggested by Paul Eggert.
3844
3845 2011-09-19  Bruno Haible  <bruno@clisp.org>
3846
3847         sched: Ensure pid_t is defined.
3848         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3849         not define pid_t.
3850         * lib/sched.in.h: Include <sys/types.h>.
3851         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3853
3854 2011-09-19  Bruno Haible  <bruno@clisp.org>
3855
3856         msvc-inval: Ensure the entire expansion is a single statement.
3857         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3858         of braces.
3859
3860 2011-09-19  Jim Meyering  <meyering@redhat.com>
3861
3862         tests: use printf, not echo in init.sh's warn_ function
3863         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3864         misbehave when given strings containing a backslash or starting
3865         with e.g., -n.  James Youngman suggested setting IFS.
3866
3867 2011-09-19  Eric Blake  <eblake@redhat.com>
3868
3869         futimens: enhance test
3870         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3871         closed non-negative fd.
3872
3873         date: accept 'hence' as opposite of 'ago'
3874         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3875         * tests/test-parse-datetime.c (main): Enhance test.
3876         Suggested by Jesse Wilson.
3877
3878 2011-09-19  Jim Meyering  <meyering@redhat.com>
3879
3880         getcwd: don't fail in a deep directory on a system without openat
3881         Before this change, getcwd would fail when called from a directory
3882         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3883         the non-openat implementation used "..", "../..", "../../..", etc.
3884         to access ancestor directories.  With too many, that string would
3885         be longer than PATH_MAX.
3886         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3887         using gnulib's openat replacement.
3888         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3889         we're using the replacement function.
3890
3891 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3892
3893         maint.mk: avoid warnings from perl about missing files
3894         * top/maint.mk (def_sym_regex): Ignore files listed in
3895         $(gl_other_headers_) that do not exist, say because a project
3896         does not use a corresponding module.
3897
3898 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3899
3900         stat: use pathmax.h only if needed
3901         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3902         This is better for Emacs, which does not have a mingw port and
3903         therefore can avoid the pathmax module.
3904
3905         utimens: remove dependency on dup2
3906         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3907         to work around the Linux kernel bug.
3908         * modules/utimens (Depends-on): Remove dup2.
3909
3910 2011-09-18  Bruno Haible  <bruno@clisp.org>
3911
3912         inet_ntop, inet_pton: Look for it also in libresolv.
3913         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3914         libnsl, search for it in libresolv.
3915         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3916         Needed on Solaris 7.
3917
3918 2011-09-18  Bruno Haible  <bruno@clisp.org>
3919
3920         accept, accept4 tests: Avoid link error on Solaris.
3921         * modules/accept-tests (Makefile.am): Link test-accept against
3922         $(LIBSOCKET).
3923         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3924         $(LIBSOCKET).
3925
3926         accept4: Avoid link error on Solaris.
3927         * modules/accept4 (Link): New section.
3928
3929         socket functions: Avoid link errors on Solaris.
3930         * modules/accept (Depends-on): Add socketlib.
3931         (Link): New section.
3932         * modules/bind (Depends-on): Add socketlib.
3933         (Link): New section.
3934         * modules/connect (Depends-on): Add socketlib.
3935         (Link): New section.
3936         * modules/getpeername (Depends-on): Add socketlib.
3937         (Link): New section.
3938         * modules/getsockname (Depends-on): Add socketlib.
3939         (Link): New section.
3940         * modules/getsockopt (Depends-on): Add socketlib.
3941         (Link): New section.
3942         * modules/listen (Depends-on): Add socketlib.
3943         (Link): New section.
3944         * modules/recv (Depends-on): Add socketlib.
3945         (Link): New section.
3946         * modules/recvfrom (Depends-on): Add socketlib.
3947         (Link): New section.
3948         * modules/send (Depends-on): Add socketlib.
3949         (Link): New section.
3950         * modules/sendto (Depends-on): Add socketlib.
3951         (Link): New section.
3952         * modules/setsockopt (Depends-on): Add socketlib.
3953         (Link): New section.
3954         * modules/shutdown (Depends-on): Add socketlib.
3955         (Link): New section.
3956         * modules/socket (Depends-on): Add socketlib.
3957         (Link): New section.
3958
3959 2011-09-18  Bruno Haible  <bruno@clisp.org>
3960
3961         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3962         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3963         than 5 seconds.
3964         * modules/ptsname-tests (configure.ac): Test for alarm.
3965
3966 2011-09-18  Bruno Haible  <bruno@clisp.org>
3967
3968         posix_spawn_file_actions_add*: Fix module dependencies.
3969         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3970         posix_spawn_file_actions_init.
3971         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3972         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3973
3974 2011-09-18  Bruno Haible  <bruno@clisp.org>
3975
3976         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3977         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3978         * tests/test-renameat.c (main): Likewise.
3979
3980 2011-09-18  Bruno Haible  <bruno@clisp.org>
3981
3982         Tests for module 'accept4'.
3983         * modules/accept4-tests: New file.
3984         * tests/test-accept4.c: New file.
3985
3986 2011-09-18  Bruno Haible  <bruno@clisp.org>
3987
3988         Tests for module 'accept'.
3989         * modules/accept-tests: New file.
3990         * tests/test-accept.c: New file.
3991
3992 2011-09-18  Bruno Haible  <bruno@clisp.org>
3993
3994         dup2: Support for MSVC.
3995         * lib/dup2.c: Include msvc-inval.h.
3996         (rpl_dup2): Handle invalid parameter notifications during dup2 and
3997         _get_osfhandle calls.
3998         * modules/dup2 (Depends-on): Add msvc-inval.
3999         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4000
4001         New module 'msvc-inval'.
4002         * lib/msvc-inval.h: New file.
4003         * lib/msvc-inval.c: New file.
4004         * m4/msvc-inval.m4: New file.
4005         * modules/msvc-inval: New file.
4006
4007 2011-09-17  Bruno Haible  <bruno@clisp.org>
4008
4009         Tests for module 'pclose'.
4010         * modules/pclose-tests: New file.
4011
4012         New module 'pclose'.
4013         * lib/stdio.in.h (pclose): New declaration.
4014         * lib/pclose.c: New file.
4015         * m4/pclose.m4: New file.
4016         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4017         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4018         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4019         * modules/pclose: New file.
4020         * modules/popen-tests (Depends-on): Add pclose.
4021         * modules/popen-safer-tests (Depends-on): Likewise.
4022         * doc/posix-functions/pclose.texi: Mention the new module.
4023
4024 2011-09-17  Bruno Haible  <bruno@clisp.org>
4025
4026         popen: Support for MSVC.
4027         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4028         * lib/popen.c (popen): Provide alternate definition for native Windows.
4029         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4031         * modules/popen (Depends-on, configure.ac): Update condition.
4032         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4033         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4034         fixed.
4035
4036 2011-09-17  Bruno Haible  <bruno@clisp.org>
4037
4038         isnanl, isnand, isnanf: Work around MSVC bug.
4039         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4040
4041 2011-09-17  Bruno Haible  <bruno@clisp.org>
4042
4043         sys_socket tests: Fix recent mistake.
4044         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4045
4046 2011-09-17  Bruno Haible  <bruno@clisp.org>
4047
4048         putenv: Support for MSVC.
4049         * modules/putenv (Depends-on): Add environ.
4050         * lib/putenv.c (environ): Disable declaration.
4051         * lib/unistd.in.h: Update comment.
4052
4053 2011-09-17  Bruno Haible  <bruno@clisp.org>
4054
4055         math: Avoid macro redefinition warnings on MSVC.
4056         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4057         Undefine before redefining.
4058
4059 2011-09-17  Bruno Haible  <bruno@clisp.org>
4060
4061         doc: Mention functions which are declared as macros.
4062         * doc/posix-functions/*[fl].texi: Mention that some functions are
4063         defined as macros with arguments only.
4064
4065 2011-09-17  Bruno Haible  <bruno@clisp.org>
4066
4067         Add dependencies to new dirent related modules.
4068         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4069         * modules/fts (Depends-on): Likewise.
4070         * modules/glob (Depends-on): Likewise.
4071         * modules/savedir (Depends-on): Likewise.
4072         * modules/scandir (Depends-on): Likewise.
4073         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4074         * modules/fdopendir (Depends-on): Add opendir.
4075
4076 2011-09-17  Bruno Haible  <bruno@clisp.org>
4077
4078         inet_pton: Support for MSVC on Windows Vista or newer.
4079         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4080         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4081         HAVE_DECL_INET_PTON is defined.
4082         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4083         On platforms with <winsock2.h>, test whether inet_pton is declared in
4084         <ws2tcpip.h>. If so, arrange to replace it.
4085         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4086         REPLACE_INET_PTON.
4087         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4088         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4089         (Depends-on, configure.ac): Update condition.
4090         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4091
4092 2011-09-17  Bruno Haible  <bruno@clisp.org>
4093
4094         inet_ntop: Support for MSVC on Windows Vista or newer.
4095         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4096         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4097         HAVE_DECL_INET_NTOP is defined.
4098         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4099         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4100         <ws2tcpip.h>. If so, arrange to replace it.
4101         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4102         REPLACE_INET_NTOP.
4103         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4104         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4105         (Depends-on, configure.ac): Update condition.
4106         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4107
4108 2011-09-16  Eric Blake  <eblake@redhat.com>
4109
4110         test-fsync: yet another enhancement
4111         * tests/test-fsync.c (main): Also test behavior on read-only text
4112         file.
4113
4114 2011-09-16  Bruno Haible  <bruno@clisp.org>
4115
4116         Enhance fsync, fdatasync tests.
4117         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4118         * tests/test-fdatasync.c (main): Likewise.
4119
4120 2011-09-16  Bruno Haible  <bruno@clisp.org>
4121
4122         Support for MSVC compiler: Ensure mode_t gets defined.
4123         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4124         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4125         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4126         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4127         * tests/test-fcntl-h.c: Check that mode_t is defined.
4128         * tests/test-sys_stat.c: Likewise.
4129         * tests/test-sys_types.c: Likewise.
4130         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4131         * doc/posix-headers/sys_stat.texi: Likewise.
4132         * doc/posix-headers/sys_types.texi: Likewise.
4133
4134 2011-09-16  Bruno Haible  <bruno@clisp.org>
4135
4136         sys_stat: Support for MSVC.
4137         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4138         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4139         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4140         MSVC.
4141
4142 2011-09-16  Bruno Haible  <bruno@clisp.org>
4143
4144         Support for MSVC compiler: Ensure off_t gets defined.
4145         * lib/unistd.in.h: Include <sys/types.h>.
4146         * tests/test-fcntl-h.c: Check that off_t is defined.
4147         * tests/test-sys_stat.c: Likewise.
4148         * tests/test-sys_types.c: Likewise.
4149
4150 2011-09-16  Eric Blake  <eblake@redhat.com>
4151
4152         fdatasync: port to Solaris
4153         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4154         * modules/fdatasync (Link): Document it.
4155         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4156
4157         fdatasync: port to MacOS X 10.7
4158         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4159         declared.
4160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4161         * modules/unistd (Makefile.am): Substitute it.
4162         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4163         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4164
4165         fdatasync: minor improvements
4166         * modules/fdatasync (Depends-on): Add condition for fsync.
4167         * lib/fdatasync.c (fdatasync): Add comment.
4168         * tests/test-unistd-c++.cc: Test fdatasync.
4169
4170         unistd: update refs to newer POSIX
4171         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4172         Suggested by Bruno Haible.
4173
4174         fdatasync: new module
4175         * modules/fsync (Description): Document difference to fdatasync.
4176         * modules/fdatasync: New module.
4177         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4178         * lib/fdatasync.c (fdatasync): Likewise.
4179         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4180         defaults.
4181         * modules/unistd (Makefile.am): Set witnesses.
4182         * lib/unistd.in.h (fdatasync): Declare.
4183         * MODULES.html.sh: Document it.
4184         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4185         * modules/fdatasync-tests: New test.
4186         * tests/test-fdatasync.c: Likewise.
4187
4188 2011-09-16  Eric Blake  <eblake@redhat.com>
4189
4190         test-fsync: enhance tests
4191         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4192         * tests/test-fsync.c (main): Enhance test.
4193
4194 2011-09-15  Bruno Haible  <bruno@clisp.org>
4195
4196         Support for MSVC compiler: Ensure ssize_t gets defined.
4197         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4198         * doc/posix-headers/stdio.texi: Likewise.
4199         * modules/stdio (Depends-on): Add ssize_t.
4200         * modules/sys_socket (Depends-on): Likewise.
4201         * modules/sys_types (Depends-on): Likewise.
4202         * modules/sys_uio (Depends-on): Likewise.
4203         * modules/unistd (Depends-on): Likewise.
4204         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4205         * tests/test-sys_types.c: Check that ssize_t is defined.
4206
4207 2011-09-14  Bruno Haible  <bruno@clisp.org>
4208
4209         Avoid using #, the m4 comment starter character, near brackets.
4210         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4211         delimiter character in sed expressions.
4212         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4213         Suggested by Eric Blake.
4214
4215         Properly quote AC_CHECK_DECLS' 4th argument.
4216         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4217         argument.
4218         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4219         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4220         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4221         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4222         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4223         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4224         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4225         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4226         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4227         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4228         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4229         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4230         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4231         * m4/isinf.m4 (gl_ISINF): Likewise.
4232         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4233         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4234         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4235         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4236         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4237         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4238         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4239         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4240         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4241         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4242         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4243         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4245         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4247         Reported by Eric Blake.
4248
4249         Properly quote AC_CHECK_DECL's 4th argument.
4250         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4251         argument.
4252         * m4/argp.m4 (gl_ARGP): Likewise.
4253         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4254         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4255         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4256         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4257         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4258         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4259         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4260         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4261         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4262         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4263         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4264         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4265         Reported by Eric Blake.
4266
4267 2011-09-14  Eric Blake  <eblake@redhat.com>
4268
4269         opendir: avoid compile warning
4270         * lib/opendir.c (includes): Always include errno.h.
4271         Reported by Tatsuro MATSUOKA.
4272
4273 2011-09-14  Jim Meyering  <meyering@redhat.com>
4274
4275         maint.mk: sc_tight_scope: propagate failure from sub-make
4276         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4277         Reported by Martin von Gagern.
4278
4279 2011-09-13  Bruno Haible  <bruno@clisp.org>
4280
4281         tempname: Support for MSVC.
4282         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4283         MSVC.
4284         * modules/tempname (Depends-on): Add fcntl-h.
4285
4286 2011-09-13  Bruno Haible  <bruno@clisp.org>
4287
4288         sys_time: Support for MSVC.
4289         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4290         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4291         include <winsock2.h>.
4292         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4293         function declarations that collide with POSIX.
4294         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4295         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4296
4297 2011-09-13  Bruno Haible  <bruno@clisp.org>
4298
4299         stat: Support for MSVC.
4300         * lib/stat.c: Include pathmax.h.
4301         * modules/stat (Depends-on): Add pathmax.
4302
4303         pathmax: Support for native Windows.
4304         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4305
4306 2011-09-12  Bruno Haible  <bruno@clisp.org>
4307
4308         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4309         * lib/dirent.in.h (struct dirent): New type.
4310         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4311         DT_WHT): New macros.
4312         (DIR): New type.
4313         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4314         (readdir, rewinddir): New declarations.
4315         * lib/dirent-private.h: New file.
4316         * lib/opendir.c: New file.
4317         * lib/readdir.c: New file.
4318         * lib/rewinddir.c: New file.
4319         * lib/closedir.c: New file.
4320         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4321         * m4/opendir.m4: New file.
4322         * m4/readdir.m4: New file.
4323         * m4/rewinddir.m4: New file.
4324         * m4/closedir.m4: New file.
4325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4326         REPLACE_CLOSEDIR here.
4327         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4328         readdir, rewinddir are declared.
4329         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4330         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4331         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4332         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4333         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4334         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4335         * modules/opendir: New file.
4336         * modules/readdir: New file.
4337         * modules/rewinddir: New file.
4338         * modules/closedir: New file.
4339         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4340         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4341         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4342         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4343         * NEWS: Mention the 'fchdir' change.
4344
4345 2011-09-11  Bruno Haible  <bruno@clisp.org>
4346
4347         asm-underscore.m4: Support for MSVC.
4348         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4349         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4350
4351 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4352
4353         Doc about crypt functions.
4354         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4355         needing for _GNU_SOURCE to get crypt.
4356         * doc/posix-functions/encrypt.texi: Likewise.
4357         * doc/posix-functions/setkey.texi: Likewise.
4358
4359 2011-09-11  Bruno Haible  <bruno@clisp.org>
4360
4361         doc: Update regarding MSVC 9.
4362         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4363         tested".
4364         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4365         * doc/posix-headers/*.texi: Likewise.
4366         * doc/pastposix-functions/*.texi: Likewise.
4367         * doc/glibc-functions/*.texi: Likewise.
4368         * doc/glibc-headers/*.texi: Likewise.
4369
4370 2011-09-11  Bruno Haible  <bruno@clisp.org>
4371
4372         unistd et al.: Don't assume <unistd.h> exists.
4373         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4374         does not exist.
4375         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4376         exist. But include <stdlib.h>.
4377         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4378         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4379         symlink() does not exist.
4380         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4381         include <io.h> instead.
4382         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4383         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4384         include <direct.h> instead.
4385         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4386         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4387         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4388         <io.h> instead.
4389         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4390         correctly if the system does not have hard links.
4391         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4392         <direct.h> instead.
4393         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4394         it when looking for function declarations.
4395         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4396         <direct.h> and <io.h> instead.
4397         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4398
4399 2011-09-11  Bruno Haible  <bruno@clisp.org>
4400
4401         strcase: Support for MSVC.
4402         * modules/strcase (Status, Notice): Remove obsoletion mark.
4403         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4404         * doc/posix-functions/strncasecmp.texi: Likewise.
4405
4406         strings: Don't assume <strings.h> exists.
4407         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4408         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4409         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4410         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4411
4412 2011-09-11  Bruno Haible  <bruno@clisp.org>
4413
4414         dirent: Don't assume <dirent.h> exists.
4415         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4416         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4417         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4418         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4419
4420 2011-09-11  Bruno Haible  <bruno@clisp.org>
4421
4422         Fix wint_t on MSVC.
4423         * lib/wchar.in.h (wint_t): On MSVC, override it.
4424         * lib/wctype.in.h (wint_t): Likewise.
4425         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4426         MSVC.
4427         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4428         * doc/posix-headers/wctype.texi: Likewise.
4429
4430 2011-09-11  Bruno Haible  <bruno@clisp.org>
4431
4432         sys_types: Fix typo.
4433         * lib/sys_types.in.h: Fix typo in comment.
4434         Reported by Paul Eggert.
4435
4436         Support for MSVC compiler: Ensure size_t gets defined.
4437         * modules/strings (Depends-on): Add 'sys_types'.
4438         * modules/sys_uio (Depends-on): Likewise.
4439         * lib/sys_uio.in.h: Update comment.
4440
4441         C++ tests for module 'sys_types'.
4442         * modules/sys_types-c++-tests: New file.
4443         * tests/test-sys_types-c++.cc: New file.
4444
4445         Tests for module 'sys_types'.
4446         * modules/sys_types-tests: New file.
4447         * tests/test-sys_types.c: New file.
4448
4449         New module 'sys_types'.
4450         * lib/sys_types.in.h: New file.
4451         * m4/sys_types_h.m4: New file.
4452         * modules/sys_types: New file.
4453         * doc/posix-headers/sys_types.texi: Mention the new module and the
4454         size_t problem on MSVC 9.
4455
4456 2011-09-11  Bruno Haible  <bruno@clisp.org>
4457
4458         Support for MSVC compiler: Avoid division by a literal 0.
4459         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4460         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4461         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4462         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4463         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4464         * tests/infinity.h: New file.
4465         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4466         on MSVC.
4467         * tests/test-ceilf1.c: Include infinity.h.
4468         (main): Use Infinityf.
4469         * tests/test-ceil1.c: Include infinity.h.
4470         (main): Use Infinityd.
4471         * tests/test-ceill.c: Include infinity.h.
4472         (main): Use Infinityl.
4473         * tests/test-dprintf-posix.c: Include infinity.h.
4474         (test_function): Use Infinityd.
4475         * tests/test-floorf1.c: Include infinity.h.
4476         (main): Use Infinityf.
4477         * tests/test-floor1.c: Include infinity.h.
4478         (main): Use Infinityd.
4479         * tests/test-floorl.c: Include infinity.h.
4480         (main): Use Infinityl.
4481         * tests/test-fprintf-posix.c: Include infinity.h.
4482         (test_function): Use Infinityd.
4483         * tests/test-frexp.c: Include infinity.h.
4484         (main): Use Infinityd.
4485         * tests/test-frexpl.c: Include infinity.h.
4486         (main): Use Infinityl.
4487         * tests/test-isfinite.c: Include infinity.h.
4488         (test_isfinitef): Use Infinityf.
4489         (test_isfinited): Use Infinityd.
4490         (test_isfinitel): Use Infinityl.
4491         * tests/test-isinf.c: Include infinity.h.
4492         (test_isinff): Use Infinityf.
4493         (test_isinfd): Use Infinityd.
4494         (test_isinfl): Use Infinityl.
4495         * tests/test-isnan.c: Include infinity.h.
4496         (test_float): Use Infinityf.
4497         (test_double): Use Infinityd.
4498         (test_long_double): Use Infinityl.
4499         * tests/test-isnanf.h: Include infinity.h.
4500         (main): Use Infinityf.
4501         * tests/test-isnand.h: Include infinity.h.
4502         (main): Use Infinityd.
4503         * tests/test-isnanl.h: Include infinity.h.
4504         (main): Use Infinityl.
4505         * tests/test-ldexpl.c: Include infinity.h.
4506         (main): Use Infinityl.
4507         * tests/test-printf-posix.h: Include infinity.h.
4508         (test_function): Use Infinityd.
4509         * tests/test-roundf1.c: Include infinity.h.
4510         (main): Use Infinityf.
4511         * tests/test-round1.c: Include infinity.h.
4512         (main): Use Infinityd.
4513         * tests/test-roundl.c: Include infinity.h.
4514         (main): Use Infinityl.
4515         * tests/test-signbit.c: Include infinity.h.
4516         (test_signbitf): Use Infinityf.
4517         (test_signbitd): Use Infinityd.
4518         (test_signbitl): Use Infinityl.
4519         * tests/test-snprintf-posix.h: Include infinity.h.
4520         (test_function): Use Infinityd, Infinityl.
4521         * tests/test-sprintf-posix.h: Include infinity.h.
4522         (test_function): Use Infinityd, Infinityl.
4523         * tests/test-truncf1.c: Include infinity.h.
4524         (main): Use Infinityf.
4525         * tests/test-trunc1.c: Include infinity.h.
4526         (main): Use Infinityd.
4527         * tests/test-truncl.c: Include infinity.h.
4528         (main): Use Infinityl.
4529         * tests/test-vasnprintf-posix.c: Include infinity.h.
4530         (test_function): Use Infinityd, Infinityl.
4531         * tests/test-vasprintf-posix.c: Include infinity.h.
4532         (test_function): Use Infinityd, Infinityl.
4533         * modules/ceilf-tests (Files): Add tests/infinity.h.
4534         * modules/ceil-tests (Files): Likewise.
4535         * modules/ceill-tests (Files): Likewise.
4536         * modules/dprintf-posix-tests (Files): Likewise.
4537         * modules/floorf-tests (Files): Likewise.
4538         * modules/floor-tests (Files): Likewise.
4539         * modules/floorl-tests (Files): Likewise.
4540         * modules/fprintf-posix-tests (Files): Likewise.
4541         * modules/frexp-tests (Files): Likewise.
4542         * modules/frexp-nolibm-tests (Files): Likewise.
4543         * modules/frexpl-tests (Files): Likewise.
4544         * modules/frexpl-nolibm-tests (Files): Likewise.
4545         * modules/isfinite-tests (Files): Likewise.
4546         * modules/isinf-tests (Files): Likewise.
4547         * modules/isnan-tests (Files): Likewise.
4548         * modules/isnanf-tests (Files): Likewise.
4549         * modules/isnanf-nolibm-tests (Files): Likewise.
4550         * modules/isnand-tests (Files): Likewise.
4551         * modules/isnand-nolibm-tests (Files): Likewise.
4552         * modules/isnanl-tests (Files): Likewise.
4553         * modules/isnanl-nolibm-tests (Files): Likewise.
4554         * modules/ldexpl-tests (Files): Likewise.
4555         * modules/printf-posix-tests (Files): Likewise.
4556         * modules/roundf-tests (Files): Likewise.
4557         * modules/round-tests (Files): Likewise.
4558         * modules/roundl-tests (Files): Likewise.
4559         * modules/signbit-tests (Files): Likewise.
4560         * modules/snprintf-posix-tests (Files): Likewise.
4561         * modules/sprintf-posix-tests (Files): Likewise.
4562         * modules/truncf-tests (Files): Likewise.
4563         * modules/trunc-tests (Files): Likewise.
4564         * modules/truncl-tests (Files): Likewise.
4565         * modules/vasnprintf-posix-tests (Files): Likewise.
4566         * modules/vasprintf-posix-tests (Files): Likewise.
4567         * modules/vdprintf-posix-tests (Files): Likewise.
4568         * modules/vfprintf-posix-tests (Files): Likewise.
4569         * modules/vprintf-posix-tests (Files): Likewise.
4570         * modules/vsnprintf-posix-tests (Files): Likewise.
4571         * modules/vsprintf-posix-tests (Files): Likewise.
4572         * modules/xprintf-posix-tests (Files): Likewise.
4573
4574 2011-09-11  Bruno Haible  <bruno@clisp.org>
4575
4576         Ensure pid_t gets defined.
4577         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4578         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4579         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4580         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4581         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4582         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4583         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4584         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4585         * tests/test-fcntl-h.c: Check that pid_t is defined.
4586         * tests/test-sched.c: Likewise.
4587         * tests/test-termios.c: Likewise.
4588         * tests/test-time.c: Likewise.
4589         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4590         * doc/posix-headers/signal.texi: Likewise.
4591         * doc/posix-headers/sys_types.texi: Likewise.
4592         * doc/posix-headers/time.texi: Likewise.
4593
4594 2011-09-11  Bruno Haible  <bruno@clisp.org>
4595
4596         acl: Fix compilation on Solaris 10 (older version).
4597         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4598         of ACE_EVERYONE.
4599         * lib/set-mode-acl.c (qset_acl): Likewise.
4600         Reported by Christian Jullien <eligis@orange.fr>.
4601
4602 2011-09-10  Bruno Haible  <bruno@clisp.org>
4603
4604         iconv, unsetenv: Add support for MSVC compiler.
4605         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4606         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4607
4608 2011-09-10  Bruno Haible  <bruno@clisp.org>
4609
4610         *printf: Add support for MSVC compiler.
4611         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4612         handles the exception caused by the %n directive. When cross-compiling,
4613         guess no on native Windows.
4614         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4615         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4616         emulate it through vsnprintf.
4617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4618         * doc/posix-functions/dprintf.texi: Update documentation regarding
4619         MSVC 9.
4620         * doc/posix-functions/fprintf.texi: Likewise.
4621         * doc/posix-functions/printf.texi: Likewise.
4622         * doc/posix-functions/snprintf.texi: Likewise.
4623         * doc/posix-functions/sprintf.texi: Likewise.
4624         * doc/posix-functions/swprintf.texi: Likewise.
4625         * doc/posix-functions/vdprintf.texi: Likewise.
4626         * doc/posix-functions/vfprintf.texi: Likewise.
4627         * doc/posix-functions/vprintf.texi: Likewise.
4628         * doc/posix-functions/vsnprintf.texi: Likewise.
4629         * doc/posix-functions/vsprintf.texi: Likewise.
4630         * doc/glibc-functions/asprintf.texi: Likewise.
4631         * doc/glibc-functions/obstack_printf.texi: Likewise.
4632         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4633         * doc/glibc-functions/vasprintf.texi: Likewise.
4634
4635 2011-09-10  Bruno Haible  <bruno@clisp.org>
4636
4637         nocrash: Add support for native Windows.
4638         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4639
4640 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4641             Bruno Haible  <bruno@clisp.org>
4642
4643         absolute-header, include-next: Add support for MSVC compiler.
4644         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4645         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4646         directory separator in #line directives.
4647         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4648         recognize also backslash as directory separator in #line directives.
4649
4650 2011-09-08  Jim Meyering  <meyering@redhat.com>
4651
4652         maint.mk: mark the post-release commit log with "maint: " prefix
4653         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4654         one-line commit-log summary.
4655
4656 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4657             Bruno Haible  <bruno@clisp.org>
4658
4659         Doc about crypt functions.
4660         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4661         systems.
4662         * doc/posix-functions/encrypt.texi: Likewise.
4663         * doc/posix-functions/setkey.texi: Likewise.
4664
4665 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4666
4667         * lib/gc.h: Fix copyright header.
4668
4669 2011-09-07  Bruno Haible  <bruno@clisp.org>
4670
4671         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4672         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4673         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4674
4675 2011-09-07  Bruno Haible  <bruno@clisp.org>
4676
4677         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4678         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4679         * lib/freopen.c: Likewise.
4680         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4681         * lib/lstat.c: Likewise.
4682         * lib/stat.c: Likewise.
4683         * lib/open.c: Use different syntax for include of <fcntl.h>.
4684         * lib/openat.c: Include fcntl.h again, explicitly.
4685
4686 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4687
4688         parse-datetime: document the newly accepted format
4689         * doc/parse-datetime.texi (Combined date and time of day items):
4690         New section.
4691
4692 2011-09-06  Bruno Haible  <bruno@clisp.org>
4693
4694         acl: Fix a test failure on newer Solaris 10 with ZFS.
4695         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4696         ENOSYS as no ACL.
4697         Reported by Jim Meyering.
4698
4699 2011-09-06  Bruno Haible  <bruno@clisp.org>
4700
4701         acl: Update for AIX >= 5.3 with NFS.
4702         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4703         ENOSYS as no ACL.
4704
4705         acl: Fix a test failure on AIX >= 5.3 with NFS.
4706         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4707         as no ACL.
4708
4709 2011-09-06  Bruno Haible  <bruno@clisp.org>
4710
4711         acl: Fix a test failure on IRIX 6.5 with NFS.
4712         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4713         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4714         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4715         * lib/copy-acl.c (qcopy_acl): Likewise.
4716
4717 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4718
4719         openat: port to AIX 7.1 with large files
4720         AIX 7.1 does a "#define openat open64at" if large files are in use,
4721         so we can't simply #undef openat.  Use the orig_openat trick (similar
4722         to orig_open in lib/open.c) to work around the problem.  Problem
4723         reported by Kevin Brott for GNU tar, in the thread containing
4724         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4725         * lib/openat.c (__need_system_fcntl_h): Define first.
4726         Include <fcntl.h> and <sys/types.h> before undefining.
4727         (orig_openat) [HAVE_OPENAT]: New inline function.
4728         (openat) [HAVE_OPENAT]: Do not undef.
4729         (rpl_openat): Use orig_openat, not openat.
4730
4731 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4732             Bruno Haible  <bruno@clisp.org>
4733
4734         acl: Avoid errors on NonStop Kernel.
4735         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4736         ENOTSUP errors.
4737
4738 2011-09-05  Bruno Haible  <bruno@clisp.org>
4739
4740         acl: Clean up Solaris code.
4741         * lib/acl-internal.h: Remove no-op #if.
4742         * lib/file-has-acl.c: Likewise.
4743         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4744         * lib/copy-acl.c (qcopy_acl): Likewise.
4745
4746 2011-09-05  Bruno Haible  <bruno@clisp.org>
4747
4748         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4749         binaries built on the original Solaris 10.
4750         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4751         trivial.
4752
4753 2011-09-05  Bruno Haible  <bruno@clisp.org>
4754
4755         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4756         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4757         10.
4758         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4759         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4760         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4761         instead of acl_get, facl_get, acl_set, facl_set.
4762
4763 2011-09-05  Bruno Haible  <bruno@clisp.org>
4764
4765         copy-file: Try unit tests on more file systems.
4766         * tests/test-copy-file-1.sh: New file.
4767         * tests/test-copy-file-2.sh: New file.
4768         * modules/copy-file-tests (Files): Add them.
4769         (Makefile.am): Add them to TESTS.
4770
4771         acl: Try unit tests on more file systems.
4772         * tests/test-file-has-acl-1.sh: New file.
4773         * tests/test-file-has-acl-2.sh: New file.
4774         * tests/test-set-mode-acl-1.sh: New file.
4775         * tests/test-set-mode-acl-2.sh: New file.
4776         * tests/test-copy-acl-1.sh: New file.
4777         * tests/test-copy-acl-2.sh: New file.
4778         * modules/acl-tests (Files): Add them.
4779         (Makefile.am): Add them to TESTS.
4780
4781 2011-09-04  Bruno Haible  <bruno@clisp.org>
4782
4783         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4784         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4785         10.
4786         (OLD_ALLOW, OLD_DENY): New macros.
4787         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4788         ACE_ACCESS_ALLOWED_ACE_TYPE.
4789         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4790         ACE_ACCESS_DENIED_ACE_TYPE.
4791         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4792         (NEW_ACE_EXECUTE): Fix value.
4793         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4794         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4795         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4796         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4797         NEW_ACE_SYNCHRONIZE): New macros.
4798         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4799         instead of acl_fromtext, acl_set, facl_set.
4800         Fixes a coreutils/tests/cp/perm failure.
4801
4802 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4803
4804         openat: test for fstatat (..., 0) bug
4805         Further testing with tar suggests that fstatat (..., 0)
4806         does not work in general, on AIX 7.1; see
4807         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4808         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4809         replacement fstatat (which is what older AIX releases were using
4810         anyway).
4811         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4812         use is now changed to orig_fstatat.  This was probably the right
4813         thing to do anyway.
4814         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4815         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4816         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4817         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4818         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4819         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4820         if the bug is found.
4821
4822         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4823         This tests for another fstatat bug on AIX 7.1:
4824         fstatat (AT_FDCWD, ..., 0) does not work.  See
4825         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4826         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4827         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4828         (rpl_fstatat): Adjust so that it works around either (or both)
4829         bugs if present.
4830         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4831
4832 2011-09-03  Karl Berry  <karl@gnu.org>
4833
4834         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4835         in index entries.
4836
4837 2011-09-02  Bruno Haible  <bruno@clisp.org>
4838
4839         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4840         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4841         values of AR, ARFLAGS, RANLIB.
4842         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4843
4844 2011-09-02  Bruno Haible  <bruno@clisp.org>
4845
4846         Find 'ar' program that fits with --host argument.
4847         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4848
4849 2011-09-02  Bruno Haible  <bruno@clisp.org>
4850
4851         tests: init.sh: Support any non-GNU diff.
4852         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4853         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4854         Solaris 8.
4855
4856 2011-09-02  Bruno Haible  <bruno@clisp.org>
4857
4858         tests: init.sh: work also with any non-GNU diff that supports -u
4859         * tests/init.sh: Relax check for diff -u support.
4860         Rather than checking for GNU diff via --version, simply check
4861         for support for -u itself.  Useful at least on OpenBSD 4.9,
4862         AIX 7.1, IRIX 6.5, and Solaris 10.
4863
4864 2011-09-01  Bruno Haible  <bruno@clisp.org>
4865
4866         strtoimax, strtoumax: Document problem on HP-UX 11.
4867         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4868         * doc/posix-functions/strtoumax.texi: Likewise.
4869
4870 2011-09-01  Bruno Haible  <bruno@clisp.org>
4871
4872         strtoumax: Avoid link error on OSF/1 with DTK cc.
4873         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4874         defined as a function.
4875         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4876         strtoumax is defined, not whether it is declared.
4877
4878 2011-09-01  Bruno Haible  <bruno@clisp.org>
4879
4880         strtoimax: Avoid link error on OSF/1 with DTK cc.
4881         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4882         defined as a function.
4883         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4884         strtoimax is defined, not whether it is declared.
4885
4886 2011-09-01  Bruno Haible  <bruno@clisp.org>
4887
4888         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4889         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4890         as a function.
4891         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4892         whether it is declared.
4893
4894 2011-09-01  Bruno Haible  <bruno@clisp.org>
4895
4896         imaxabs: Avoid link error on OSF/1 with DTK cc.
4897         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4898         as a function.
4899         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4900         whether it is declared.
4901
4902 2011-09-01  Bruno Haible  <bruno@clisp.org>
4903
4904         Tests for module 'strtoumax'.
4905         * modules/strtoumax-tests: New file.
4906         * tests/test-strtoumax.c: New file.
4907
4908         Tests for module 'strtoimax'.
4909         * modules/strtoimax-tests: New file.
4910         * tests/test-strtoimax.c: New file.
4911
4912         Tests for module 'imaxdiv'.
4913         * modules/imaxdiv-tests: New file.
4914         * tests/test-imaxdiv.c: New file.
4915
4916         Tests for module 'imaxabs'.
4917         * modules/imaxabs-tests: New file.
4918         * tests/test-imaxabs.c: New file.
4919
4920 2011-09-01  Bruno Haible  <bruno@clisp.org>
4921
4922         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4923         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4924         pthread_create.
4925
4926 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4927
4928         openat: work around AIX 7.1 fstatat issue
4929         This should fix the problem that was not properly fixed
4930         in the previous change, dated 2011-08-30.
4931         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4932         __need_system_stat_h defined.
4933         (orig_fstatat) [HAVE_FSTATAT]: New function.
4934         (rpl_fstatat): Go back to the old way of doing things,
4935         except call orig_fstatat instead of fstatat.
4936         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4937         Remove unnecessary check whether fstatat fills in st_size etc.
4938
4939 2011-09-01  Bruno Haible  <bruno@clisp.org>
4940
4941         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4942         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4943         just include the system's header.
4944
4945 2011-08-31  Jim Meyering  <meyering@redhat.com>
4946
4947         tests: avoid spurious assertion failure in test-float.c on ppc64
4948         * tests/test-float.c (test_long_double): Comment out an assertion,
4949         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4950         with gcc-4.4.4.
4951
4952         maint: indent with spaces, not TABs
4953         I need to get in the habit of running gnulib's "make check".
4954         Both of these would have been caught.
4955         * m4/largefile.m4: Indent with spaces, not TABs.
4956         * lib/parse-datetime.y (iso_8601_time): Likewise.
4957         Spotted by Pádraig Brady.
4958
4959         test-parse-datetime.c: accommodate a relatively strict gcc warning
4960         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4961         to avoid a warning from gcc's -Werror=missing-declarations.
4962         Insert a few spaces-before-funcall-parenthesis.
4963
4964 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4965
4966         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4967         The parser now accepts ISO 8601 date-time strings with "T" as the
4968         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4969         with a space between the date and time strings.  Now it also parses
4970         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4971         variants like "2004-02-29T16:21:42.333-07:00"
4972         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4973         of day representation using the 'T' separator character.
4974         * doc/parse-datetime.texi (General date syntax): replace use of
4975         deprecated --iso-8601 option with --rfc-3339 in example of date
4976         command output formats that can be parsed.
4977         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4978         lib/parse-datetime.y.
4979         (gmt_offset): New function.
4980         (main): Add additional test cases to validate ISO8601 extended
4981         date and time of day parsing.
4982
4983 2011-08-31  Bruno Haible  <bruno@clisp.org>
4984
4985         freopen: Documentation.
4986         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4987         name.
4988         Reported by Claudio Bley <claudio.bley@gmail.com>.
4989
4990 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
4991
4992         freopen: Don't crash if the filename argument is NULL.
4993         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
4994         NULL.
4995
4996 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4997
4998         openat: work around AIX 7.1 fstatat bug
4999         Problem reported by Kevin Brott for GNU tar, in the thread containing
5000         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5001         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5002         FSTATAT_ST_SIZE_ETC_BROKEN.
5003         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5004         rpl_fstatat.
5005         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5006         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5007         AC_CHECK_FUNCS_ONCE for fstatat.
5008         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5009         fchmodat, mkdirat, openat and unlinkat.
5010
5011 2011-08-30  Bruno Haible  <bruno@clisp.org>
5012
5013         Avoid endless recursions if config.h includes some header files.
5014         * lib/fopen.c (__need_FILE): Define already before including config.h.
5015         * lib/freopen.c (__need_FILE): Likewise.
5016         * lib/open.c (__need_system_fcntl_h): Likewise.
5017         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5018         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5019         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5020
5021 2011-08-25  Karl Berry  <karl@gnu.org>
5022
5023         * config/srclist.txt (ylwrap): new try.
5024         * build-aux/ylwrap: new file.
5025
5026 2011-08-23  Bruno Haible  <bruno@clisp.org>
5027
5028         tmpdir: Use a good default directory on native Windows.
5029         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5030         (P_tmpdir): Default to _P_tmpdir on native Windows.
5031         (path_search): On native Windows, try the value returned by GetTempPath
5032         before trying P_tmpdir.
5033         * modules/tmpdir (Depends-on): Add pathmax.
5034         Suggested by John Darrington <john@darrington.wattle.id.au>.
5035
5036 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5037
5038         doc: fix typo in README-release
5039         * top/README-release: Capitalize first word of a sentence.
5040
5041 2011-08-19  Jim Meyering  <meyering@redhat.com>
5042
5043         fts: do not exhaust memory when processing million-entry directories
5044         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5045         directory would require about 256*N bytes of memory.  Thus, it was
5046         easy to construct a directory too large to be processed by any of
5047         those tools.  With this change, fts' maximum memory utilization is
5048         now limited to around 30MB.
5049         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5050         (fts_read): When we've processed the final entry (i.e., when
5051         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5052         using the parent entry to read any remaining entries.  Dispatch
5053         depending on what fts_build returns:
5054         - NULL+stop, aka failure: stop
5055         - NULL otherwise: move up in the dir hierarchy
5056         - non-NULL: handle this new entry
5057         (fts_build): Declare and use new local, continue_readdir.
5058         Prepare to be called from fts_read, when the entries
5059         from a partially-read directory have just been exhausted.
5060         In that case, we'll skip the opendir and instead use the parent's
5061         fts_dirp and derive dir_fd from that.
5062         Finally, in the readdir loop, if we read max_entries entries,
5063         exit the loop ensuring *not* to call closedir.  This is required
5064         so that fts_dirp can be reused on a subsequent call.
5065         Prompted by Ben England's report of memory exhaustion in find
5066         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5067
5068         maint: fts: move decl of `dp' down into while loop; split a long line
5069         * lib/fts.c (fts_build): No semantic change.
5070
5071         fts: add/use new struct member, fts_dirp
5072         We are about to use this to manage any directory with
5073         too many entries to read all of them into memory at once.
5074         To do that, we'll need to save the DIR* pointer in each
5075         affected FTSENT struct.
5076         * lib/fts_.h: Include <dirent.h>.
5077         (struct FTSENT) [fts_dirp]: New member.
5078         * lib/fts.c (closedir_and_clear): Define.
5079         Use it in place of closedir so that we are sure to
5080         clear the new fts_dirp member when done with it.
5081         (fts_alloc): Initialize the new member.
5082         (fts_lfree): Free, if needed.
5083
5084         maint: fts: give __opendir2 a new parameter and rename
5085         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5086         than surreptitiously using sole caller's "dir_fd".
5087         (fts_opendir): Rename from __opendir2.
5088
5089         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5090         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5091
5092         maint: fts.c: correct off-by-one indentation
5093         * lib/fts.c (fts_build): Correct indentation, change style
5094         of a couple of block comments, and bracing style.
5095
5096         maint: fts.c: move __opendir2 #define "up" out of function body
5097         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5098
5099         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5100         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5101         out for a long time and besides was useful only on BSD systems.
5102
5103 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5104
5105         regex: port to Stratus OpenVOS
5106         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5107         define to empty, rather than attempting nonportable optimizations.
5108         Problem reported by Paul Green in:
5109         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5110         and fix suggested by Eric Blake in:
5111         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5112
5113 2011-08-17  Eric Blake  <eblake@redhat.com>
5114
5115         getcwd: fix test failures on mingw
5116         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5117         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5118         test if long directory cannot be created, and allow mingw errno.
5119
5120         getcwd-lgpl: fix m4 to match relaxed test for BSD
5121         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5122         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5123         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5124         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5125         signature problem.
5126
5127         getcwd: fix compilation on mingw64
5128         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5129         getcwd.
5130         Reported by Marc-André Lureau.
5131
5132         pipe2: silence compiler warning
5133         * lib/pipe2.c (pipe2): Hide label if it is not used.
5134
5135 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5136
5137         relocatable-prog: fix link error
5138         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5139         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5140         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5141         into modules/relocatable-lib without noticing that
5142         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5143         also needs to build relocatable.c.
5144
5145 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5146
5147         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5149         shell code: it contained a 'break' that was not in a loop.
5150         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5151         via a shell-language loop; this may have been true in old Autoconf
5152         versions, but it's not true in Autoconf 2.68.  I found this bug
5153         when testing coreutils git on Solaris 8, whose shell complains
5154         about the syntax error.
5155
5156 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5157
5158         * lib/base64.c: Fix comment to reference RFC 4648.
5159         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5160         <gvtulder@gmail.com>.
5161
5162 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5163
5164         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5165
5166         po/Makefile.in.in: fix make -q problem
5167         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5168         rule, since there's no file named 'check-macro-version' and its
5169         use as a file breaks make -q.
5170         (all): Don't depend on check-macro-version.
5171         (CHECK_MACRO_VERSION): New macro.
5172         (stamp-po): Use it.
5173
5174         configmake: fix make -q problem
5175         * modules/configmake (configmake.h): Update configmake.h's time stamp
5176         even if the file does not change.  Otherwise, 'make -q' fails.
5177         Problem reported by Simon Josefsson in
5178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5179
5180 2011-08-11  Jim Meyering  <meyering@redhat.com>
5181
5182         git-version-gen: correct the advice in a comment
5183         * build-aux/git-version-gen: Correct comment.
5184         Don't recommend to list .tarball-version in .gitignore.
5185
5186 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5187
5188         base64: fix off-by-one buffer size bug
5189         Problem and (trivial) fix reported by Gijs van Tulder in
5190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5191         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5192         * tests/test-base64.c (main): Catch the bug.
5193
5194 2011-08-10  Eric Blake  <eblake@redhat.com>
5195
5196         closein: correct comments
5197         * lib/closein.c (close_stdin): Improve comments.
5198
5199 2011-08-09  Bruno Haible  <bruno@clisp.org>
5200
5201         More tests for 'fseeko'.
5202         * tests/test-fseeko3.c: New file, from Eric Blake.
5203         * tests/test-fseeko3.sh: New file.
5204         * modules/fseeko-tests (Files): Add them.
5205         (TESTS): Add test-fseeko3.sh.
5206         (check_PROGRAMS): Add test-fseeko3.
5207
5208 2011-08-09  Eric Blake  <eblake@redhat.com>
5209
5210         fseeko: remove unneeded hack
5211         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5212
5213         fseeko: fix bug on glibc
5214         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5215         Reported by John W. Eaton.
5216
5217 2011-08-08  Bruno Haible  <bruno@clisp.org>
5218
5219         unictype/base: Fix interoperability with preinstalled libunistring.
5220         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5221         Reported by Simon Josefsson.
5222
5223 2011-08-08  Bruno Haible  <bruno@clisp.org>
5224
5225         iswblank: Detect declaration correctly.
5226         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5227         AC_CHECK_DECLS invocation.
5228
5229 2011-08-08  Bruno Haible  <bruno@clisp.org>
5230
5231         tcgetsid: Detect declaration correctly.
5232         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5233         AC_CHECK_DECLS invocation.
5234         Reported by Simon Josefsson.
5235
5236 2011-08-08  Eric Blake  <eblake@redhat.com>
5237
5238         largefile: fix typo that regressed large file support
5239         * modules/largefile (configure.ac-early): Fix section name.
5240
5241 2011-08-06  Karl Berry  <karl@gnu.org>
5242
5243         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5244         a separate module.
5245
5246 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5247
5248         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5249         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5250         get prototype for free.
5251
5252 2011-08-04  Bruno Haible  <bruno@clisp.org>
5253
5254         Tests for module 'pathmax'.
5255         * modules/pathmax-tests: New file.
5256         * tests/test-pathmax.c: New file.
5257
5258         canonicalize-lgpl: Support larger filenames on the Hurd.
5259         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5260         Reported by Paul Eggert.
5261
5262         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5263         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5264         * lib/chdir-long.h: Include pathmax.h.
5265         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5266         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5267         (PATH_MAX): Remove code that is done by pathmax.h.
5268         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5269         * lib/tmpfile.c: Add a comment.
5270         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5271         * modules/chdir-long (Depends-on): Add pathmax.
5272         * modules/getcwd (Depends-on): Add pathmax.
5273         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5274         is not defined.
5275         * doc/posix-headers/limits.texi: Mention the pathmax module.
5276         * NEWS: Mention the change.
5277
5278 2011-08-02  Bruno Haible  <bruno@clisp.org>
5279
5280         pthread_sigmask: Actually use results of gl_THREADLIB.
5281         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5282         gl_THREADLIB, not gl_[]THREADLIB.
5283         Reported by Eric Blake.
5284
5285 2011-08-02  Jim Meyering  <meyering@redhat.com>
5286
5287         maint.mk: relax the default _gl_TS_function_match regexp
5288         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5289         space between function name and "(" in an "extern" declaration.
5290         That would fail to match a decl with no space there: extern void foo();
5291
5292 2011-07-31  Iain Nicol  <iain@thenicols.net>
5293
5294         git-version-gen: document that EXTRA_DIST must include .version
5295         * build-aux/git-version-gen: In the how-to-use comment, document
5296         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5297         will fail when run from an unpacked distribution tarball.
5298
5299 2011-08-01  Bruno Haible  <bruno@clisp.org>
5300
5301         wctype-h: Fix last change.
5302         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5303         REPLACE_TOWLOWER to 0.
5304         Reported by Sam Steingold <sds@gnu.org>.
5305
5306 2011-07-31  Bruno Haible  <bruno@clisp.org>
5307
5308         frexpl: Update autoconf test.
5309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5310         according to changes of 2011-06-20.
5311
5312 2011-07-31  Bruno Haible  <bruno@clisp.org>
5313
5314         sys_utsname: Add support for Minix.
5315         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5316         <sys/utsname.h>.
5317         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5318         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5319
5320 2011-07-31  Bruno Haible  <bruno@clisp.org>
5321
5322         strings: Add support for Minix.
5323         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5324         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5325         * doc/posix-headers/strings.texi: Document the Minix problem.
5326
5327 2011-07-31  Bruno Haible  <bruno@clisp.org>
5328
5329         wctype-h: Add support for Minix.
5330         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5331         REPLACE_TOWLOWER.
5332         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5333         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5334         REPLACE_ISWCNTRL.
5335
5336 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5337
5338         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5339         This is a performance improvement for 64-bit hosts: it causes the
5340         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5341
5342 2011-07-31  Bruno Haible  <bruno@clisp.org>
5343
5344         stdioext: Add support for Minix.
5345         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5346         * lib/fpurge.c (fpurge): Likewise.
5347         * lib/freadahead.c (freadahead): Likewise.
5348         * lib/freadable.c (freadable): Likewise.
5349         * lib/freading.c (freading): Likewise.
5350         * lib/freadptr.c (freadptr): Likewise.
5351         * lib/freadseek.c (freadptrinc): Likewise.
5352         * lib/fseeko.c (rpl_fseeko): Likewise.
5353         * lib/fseterr.c (fseterr): Likewise.
5354         * lib/fwritable.c (fwritable): Likewise.
5355         * lib/fwriting.c (fwriting): Likewise.
5356         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5357         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5358
5359 2011-07-31  Bruno Haible  <bruno@clisp.org>
5360
5361         errno: Port to Minix.
5362         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5363         ECONNABORTED are defined.
5364         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5365         GNULIB_defined_ECONNABORTED): New macros.
5366         * lib/strerror-override.h (strerror_override): Test also
5367         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5368         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5369         ECONNABORTED.
5370         * doc/posix-headers/errno.texi: Mention the Minix problem.
5371
5372 2011-07-31  Bruno Haible  <bruno@clisp.org>
5373
5374         Work around declaration collisions on Minix.
5375         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5376         defined, set REPLACE_MBSINIT.
5377         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5378         defined, set REPLACE_MBRTOWC.
5379         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5380         set REPLACE_MBRLEN.
5381         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5382         defined, set REPLACE_MBSRTOWCS.
5383         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5384         defined, set REPLACE_WCRTOMB.
5385         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5386         defined, set REPLACE_WCSRTOMBS.
5387
5388 2011-07-31  Bruno Haible  <bruno@clisp.org>
5389
5390         Add support for Minix with ACK compiler.
5391         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5392         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5393         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5394
5395 2011-07-31  Bruno Haible  <bruno@clisp.org>
5396
5397         Documentation about Minix.
5398         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5399         * doc/glibc-headers/*.texi: Likewise.
5400         * doc/posix-functions/*.texi: Likewise.
5401         * doc/glibc-functions/*.texi: Likewise.
5402
5403 2011-07-31  Bruno Haible  <bruno@clisp.org>
5404
5405         snippet/warn-on-use: Fix indentation.
5406         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5407
5408 2011-07-25  Jim Meyering  <meyering@redhat.com>
5409
5410         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5411         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5412         commands.
5413
5414 2011-07-27  Jim Meyering  <meyering@redhat.com>
5415
5416         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5417         * top/maint.mk (gl_extract_significant_defines_): Now that
5418         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5419         gnulib/lib/signal.in.h, and now that we recommend to
5420         define-if-undefined those two symbols in application code,
5421         we must filter them out of the "significant" list.
5422         This avoids a "make syntax-check" failure in coreutils.
5423
5424 2011-07-26  Eric Blake  <eblake@redhat.com>
5425
5426         warnings: add comments about previous patch
5427         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5428         * m4/include_next.m4: Likewise.
5429         * m4/warn-on-use.m4: Likewise.
5430         * m4/warnings.m4: Likewise, and simplify use.
5431         Suggested by Stefano Lattarini.
5432
5433         include-next, warnings: support older autoconf
5434         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5435         AS_VAR_PUSHDEF in a way that works with older autoconf.
5436         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5437         Reported by Daniel P. Berrange.
5438
5439 2011-07-25  Bruno Haible  <bruno@clisp.org>
5440
5441         fseek, ftell: Fix doc.
5442         * doc/posix-functions/fseek.texi: Reword statement about
5443         AC_SYS_LARGEFILE.
5444         * doc/posix-functions/ftell.texi: Likewise.
5445
5446 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5447             Bruno Haible  <bruno@clisp.org>
5448
5449         Add dependencies to the 'largefile' module.
5450         * modules/fopen (Depends-on): Add 'largefile'.
5451         * modules/freopen (Depends-on): Likewise.
5452         * modules/fseeko (Depends-on): Likewise.
5453         * modules/ftello (Depends-on): Likewise.
5454         * modules/glob (Depends-on): Likewise.
5455         * modules/lseek (Depends-on): Likewise.
5456         * modules/lstat (Depends-on): Likewise.
5457         * modules/mkostemp (Depends-on): Likewise.
5458         * modules/mkostemps (Depends-on): Likewise.
5459         * modules/mkstemp (Depends-on): Likewise.
5460         * modules/mkstemps (Depends-on): Likewise.
5461         * modules/open (Depends-on): Likewise.
5462         * modules/openat (Depends-on): Likewise.
5463         * modules/pread (Depends-on): Likewise.
5464         * modules/pwrite (Depends-on): Likewise.
5465         * modules/scandir (Depends-on): Likewise.
5466         * modules/stat (Depends-on): Likewise.
5467         * modules/tmpfile (Depends-on): Likewise.
5468         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5469         since the containing module now depends on the largefile module.
5470         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5471         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5472         off_t is fixed by gnulib.
5473         * doc/posix-functions/freopen.texi: Likewise.
5474         * doc/posix-functions/fseeko.texi: Likewise.
5475         * doc/posix-functions/fstatat.texi: Likewise.
5476         * doc/posix-functions/ftello.texi: Likewise.
5477         * doc/posix-functions/glob.texi: Likewise.
5478         * doc/posix-functions/lseek.texi: Likewise.
5479         * doc/posix-functions/lstat.texi: Likewise.
5480         * doc/posix-functions/mkstemp.texi: Likewise.
5481         * doc/posix-functions/open.texi: Likewise.
5482         * doc/posix-functions/openat.texi: Likewise.
5483         * doc/posix-functions/pread.texi: Likewise.
5484         * doc/posix-functions/pwrite.texi: Likewise.
5485         * doc/posix-functions/scandir.texi: Likewise.
5486         * doc/posix-functions/stat.texi: Likewise.
5487         * doc/posix-functions/tmpfile.texi: Likewise.
5488         * doc/glibc-functions/mkostemp.texi: Likewise.
5489         * doc/glibc-functions/mkostemps.texi: Likewise.
5490         * doc/glibc-functions/mkstemps.texi: Likewise.
5491
5492 2011-07-25  Bruno Haible  <bruno@clisp.org>
5493
5494         fcntl: Move AC_LIBOBJ invocation to module description.
5495         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5496         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5497
5498         fcntl: Remove call-in from fchdir.m4.
5499         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5500         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5501
5502         dup3: Remove potential call-in from fchdir.m4.
5503         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5505
5506         dup2: Move AC_LIBOBJ invocation to module description.
5507         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5508         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5509         Don't invoke AC_LIBOBJ.
5510         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5511
5512         dup2: Remove call-in from fchdir.m4.
5513         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5515
5516         fclose: Move AC_LIBOBJ invocation to module description.
5517         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5518         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5519         to 1.
5520         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5521
5522         fclose: Remove call-in from close.m4.
5523         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5524         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5525
5526         close: Move AC_LIBOBJ invocation to module description.
5527         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5528         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5529         1.
5530         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5531
5532         close: Remove call-in from fchdir.m4.
5533         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5534         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5535
5536         open: Move AC_LIBOBJ invocation to module description.
5537         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5538         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5539         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5540
5541         open: Remove call-in from fchdir.m4.
5542         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5544
5545         fchdir: Start to remove gl_REPLACE_* idiom.
5546         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5547         (gl_FUNC_FCHDIR): Invoke it.
5548
5549 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5550
5551         * lib/ftell.c (ftell): Comment out cast.
5552
5553         close: use gl_REPLACE_FCLOSE only if defined
5554         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5555         is defined.  The close module doesn't depend on the fclose module
5556         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5558         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5559
5560 2011-07-24  Jim Meyering  <meyering@redhat.com>
5561
5562         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5563         * tests/test-select.h (test_function): Declare as "static".
5564
5565 2011-07-24  Bruno Haible  <bruno@clisp.org>
5566
5567         doc: Mention the effects of AC_SYS_LARGEFILE.
5568         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5569         on this function.
5570         * doc/posix-functions/aio_error.texi: Likewise.
5571         * doc/posix-functions/aio_fsync.texi: Likewise.
5572         * doc/posix-functions/aio_read.texi: Likewise.
5573         * doc/posix-functions/aio_return.texi: Likewise.
5574         * doc/posix-functions/aio_suspend.texi: Likewise.
5575         * doc/posix-functions/aio_write.texi: Likewise.
5576         * doc/posix-functions/fgetpos.texi: Likewise.
5577         * doc/posix-functions/fopen.texi: Likewise.
5578         * doc/posix-functions/freopen.texi: Likewise.
5579         * doc/posix-functions/fsetpos.texi: Likewise.
5580         * doc/posix-functions/fstatvfs.texi: Likewise.
5581         * doc/posix-functions/ftruncate.texi: Likewise.
5582         * doc/posix-functions/ftw.texi: Likewise.
5583         * doc/posix-functions/getrlimit.texi: Likewise.
5584         * doc/posix-functions/glob.texi: Likewise.
5585         * doc/posix-functions/lio_listio.texi: Likewise.
5586         * doc/posix-functions/lockf.texi: Likewise.
5587         * doc/posix-functions/mkstemp.texi: Likewise.
5588         * doc/posix-functions/mmap.texi: Likewise.
5589         * doc/posix-functions/nftw.texi: Likewise.
5590         * doc/posix-functions/openat.texi: Likewise.
5591         * doc/posix-functions/opendir.texi: Likewise.
5592         * doc/posix-functions/posix_fadvise.texi: Likewise.
5593         * doc/posix-functions/posix_fallocate.texi: Likewise.
5594         * doc/posix-functions/pread.texi: Likewise.
5595         * doc/posix-functions/pwrite.texi: Likewise.
5596         * doc/posix-functions/readdir.texi: Likewise.
5597         * doc/posix-functions/readdir_r.texi: Likewise.
5598         * doc/posix-functions/rewinddir.texi: Likewise.
5599         * doc/posix-functions/scandir.texi: Likewise.
5600         * doc/posix-functions/seekdir.texi: Likewise.
5601         * doc/posix-functions/setrlimit.texi: Likewise.
5602         * doc/posix-functions/statvfs.texi: Likewise.
5603         * doc/posix-functions/telldir.texi: Likewise.
5604         * doc/posix-functions/tmpfile.texi: Likewise.
5605         * doc/posix-functions/truncate.texi: Likewise.
5606         * doc/glibc-functions/fallocate.texi: Likewise.
5607         * doc/glibc-functions/fstatfs.texi: Likewise.
5608         * doc/glibc-functions/fts_children.texi: Likewise.
5609         * doc/glibc-functions/fts_read.texi: Likewise.
5610         * doc/glibc-functions/getdirentries.texi: Likewise.
5611         * doc/glibc-functions/mkostemp.texi: Likewise.
5612         * doc/glibc-functions/mkostemps.texi: Likewise.
5613         * doc/glibc-functions/mkstemps.texi: Likewise.
5614         * doc/glibc-functions/preadv.texi: Likewise.
5615         * doc/glibc-functions/pwritev.texi: Likewise.
5616         * doc/glibc-functions/sendfile.texi: Likewise.
5617         * doc/glibc-functions/statfs.texi: Likewise.
5618
5619 2011-07-24  Bruno Haible  <bruno@clisp.org>
5620
5621         doc: Fix typo.
5622         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5623
5624 2011-07-24  Bruno Haible  <bruno@clisp.org>
5625
5626         doc: Mention fsusage.
5627         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5628
5629 2011-07-24  Bruno Haible  <bruno@clisp.org>
5630
5631         doc: Mention new glibc headers and functions.
5632         * doc/glibc-headers/gshadow.texi: New file.
5633         * doc/glibc-functions/endsgent.texi: New file.
5634         * doc/glibc-functions/fgetsgent.texi: New file.
5635         * doc/glibc-functions/fgetsgent_r.texi: New file.
5636         * doc/glibc-functions/getsgent.texi: New file.
5637         * doc/glibc-functions/getsgent_r.texi: New file.
5638         * doc/glibc-functions/getsgnam.texi: New file.
5639         * doc/glibc-functions/getsgnam_r.texi: New file.
5640         * doc/glibc-functions/putsgent.texi: New file.
5641         * doc/glibc-functions/setsgent.texi: New file.
5642         * doc/glibc-functions/sgetsgent.texi: New file.
5643         * doc/glibc-functions/sgetsgent_r.texi: New file.
5644         * doc/glibc-functions/malloc_info.texi: New file.
5645         * doc/glibc-functions/preadv.texi: New file.
5646         * doc/glibc-functions/pwritev.texi: New file.
5647         * doc/glibc-functions/register_printf_modifier.texi: New file.
5648         * doc/glibc-functions/register_printf_specifier.texi: New file.
5649         * doc/glibc-functions/register_printf_type.texi: New file.
5650         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5651         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5652         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5653         * doc/glibc-functions/pthread_getname_np.texi: New file.
5654         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5655         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5656         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5657         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5658         * doc/glibc-functions/pthread_setname_np.texi: New file.
5659         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5660         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5661         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5662         * doc/glibc-functions/qsort_r.texi: New file.
5663         * doc/glibc-functions/quick_exit.texi: New file.
5664         * doc/glibc-functions/syncfs.texi: New file.
5665         * doc/gnulib.texi: Include them.
5666         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5667         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5668         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5669         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5670         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5671         * doc/glibc-functions/execvpe.texi: Likewise.
5672
5673 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5674
5675         ftell: don't include <unistd.h>
5676         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5677         guaranteed to define off_t, and the ftell module depends on the
5678         stdio module.
5679
5680         ftell: do not assume wraparound signed arithmetic
5681         * lib/ftell.c: Include <limits.h>.
5682         (ftell): Don't assume wraparound signed arithmetic.
5683
5684 2011-07-24  Bruno Haible  <bruno@clisp.org>
5685
5686         close: No longer depend on module 'fclose'.
5687         * modules/close (Depends-on): Remove fclose.
5688         * NEWS: Mention the change.
5689         Suggested by Sam Steingold <sds@gnu.org>.
5690
5691 2011-07-24  Bruno Haible  <bruno@clisp.org>
5692
5693         fsusage: Enable large volume support on AIX >= 5.2.
5694         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5695         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5696         instead of STAT_STATVFS.
5697         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5698
5699         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5700         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5701         f_blocks field only on MacOS X.
5702
5703         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5704         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5705         * modules/fsusage (Depends-on): Add largefile.
5706
5707 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5708
5709         * README: Modernize discussion of signed integers.
5710         Assuming overflow wraparound is no longer safe.
5711         Mention ones' complement and signed magnitude.
5712
5713 2011-07-22  Bruno Haible  <bruno@clisp.org>
5714
5715         select tests, pselect tests: Refactor.
5716         * tests/test-select.h: New file, extracted from tests/test-select.c.
5717         (select_fn): New type.
5718         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5719         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5720         test_pipe): Add my_select argument.
5721         (test_function): Renamed from main. Add my_select argument.
5722         * tests/test-select.c: Move most code to tests/test-select.h. Include
5723         test-select.h.
5724         * modules/select-tests (Files): Add tests/test-select.h.
5725         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5726         (my_select, main): New functions.
5727         * modules/pselect-tests (Files): Add tests/test-select.h,
5728         tests/macros.h, tests/signature.h.
5729         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5730         (configure.ac): Check for <sys/wait.h>.
5731
5732 2011-07-22  Bruno Haible  <bruno@clisp.org>
5733
5734         sys_select tests: Check the signature of FD_*.
5735         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5736         signature tests from here...
5737         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5738         here.
5739         * modules/sys_select-tests (Files): Add tests/signature.h.
5740
5741 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5742
5743         largefile: new module, replacing large-inode
5744         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5745         * MODULES.html.sh: Add largefile, remove large-inode.
5746         * modules/largefile, m4/largefile.m4: New files.
5747         * modules/large-inode, m4/large-inode.m4: Remove.
5748
5749         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5750         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5751         implementations that use only 32 bits to count blocks.
5752         On typical hosts with 1024-byte blocks, this fails with file
5753         systems as small as 4 TiB.  Problem reported by Herb Wartens
5754         <http://debbugs.gnu.org/9140> and this should also fix a similar
5755         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5756
5757         large-inode: New module
5758         * MODULES.html.sh: Add it.
5759         * modules/large-inode, m4/large-inode.m4: New files.
5760
5761         extensions: Enable extensions on MacOS X 10.5 and later.
5762         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5763
5764 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5765
5766         file-has-acl: use acl_extended_file_nofollow if available
5767         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5768         (acl_extended_file): New macro.
5769         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5770         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5771
5772 2011-07-21  Bruno Haible  <bruno@clisp.org>
5773
5774         Declare system functions in a way that works with C++.
5775         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5776         declare fdopendir as extern "C".
5777         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5778         declare frexpl as extern "C".
5779         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5780         declare gai_strerror as extern "C".
5781         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5782         programs, declare gai_strerror as extern "C".
5783         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5784         declare getlogin_r as extern "C".
5785         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5786         as extern "C".
5787         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5788         declare ldexpl as extern "C".
5789         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5790         as extern "C".
5791         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5792         program, declare getmntinfo as extern "C".
5793         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5794         stpncpy as extern "C".
5795         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5796         program, declare __xpg_strerror_r as extern "C".
5797         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5798         strndup as extern "C".
5799         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5800         declare memset and bzero as extern "C".
5801         Reported by Sam Steingold <sds@gnu.org>.
5802
5803 2011-07-12  Jim Meyering  <meyering@redhat.com>
5804
5805         maint.mk: prohibit inclusion of "verify.h" without use
5806         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5807
5808 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5809
5810         timer-time: A new module to check for timer_settime()
5811         * m4/timer_time.m4: Check for the posix function.
5812         * modules/timer-time: Add the new module.
5813         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5814         Mention it.
5815
5816 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5817             Bruno Haible  <bruno@clisp.org>
5818
5819         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5820         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5821         not defined, assume POSIX threads and look for pthread_sigmask in
5822         $LIBS, without changing $CPPFLAGS.
5823
5824 2011-07-19  Bruno Haible  <bruno@clisp.org>
5825
5826         strstr: Update cross-compilation guess.
5827         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5828         CPUs, guess no, in view of glibc
5829         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5830         Suggested by Eric Blake. Reported by Reuben Thomas.
5831
5832 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5833
5834         getopt-gnu: suppress core dumps from detection code
5835         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5836         to suppress core dumps that may well occur on glibc systems.
5837         * modules/getopt-gnu: Depend on nocrash.
5838
5839 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5840
5841         pthread_sigmask: ensure usleep is declared
5842         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5843         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5844
5845 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5846
5847         doc: Document NonStop portability issues.
5848         * doc/posix-functions/sigaction.texi (sigaction):
5849         * doc/posix-headers/signal.texi (signal.h):
5850         Document NonStop.  See Joachim Schmitz in
5851         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5852
5853 2011-07-15  Bruno Haible  <bruno@clisp.org>
5854
5855         ffsl, ffsll: Avoid unportable behaviour.
5856         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5857
5858 2011-07-15  Bruno Haible  <bruno@clisp.org>
5859
5860         ffs: More tests.
5861         * tests/test-ffs.c (NBITS): New macro.
5862         (main): Add more tests.
5863         * tests/test-ffsl.c (NBITS): New macro.
5864         (main): Add more tests.
5865         * tests/test-ffsll.c (NBITS): New macro.
5866         (main): Add more tests.
5867
5868 2011-07-15  Eric Blake  <eblake@redhat.com>
5869
5870         ffsl, ffsll: new modules
5871         * modules/ffsl: New file.
5872         * modules/ffsll: Likewise.
5873         * m4/ffsl.m4: Likewise.
5874         * m4/ffsll.m4: Likewise.
5875         * lib/ffsl.c: Likewise.
5876         * lib/ffsl.h: Likewise.
5877         * lib/ffsll.c: Likewise.
5878         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5879         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5880         * modules/string (Makefile.am): Substitute witnesses.
5881         * lib/strings.in.h (ffsl, ffsll): Declare.
5882         * modules/ffsl-tests: New test file.
5883         * modules/ffsll-tests: Likewise.
5884         * tests/test-ffsl.c: Likewise.
5885         * tests/test-ffsll.c: Likewise.
5886         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5887         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5888         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5889
5890         ffs: fix m4 prerequisite
5891         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5892
5893         ffs: avoid undefined behavior
5894         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5895         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5896         Reported by Bruno Haible.
5897
5898 2011-07-12  Bruno Haible  <bruno@clisp.org>
5899
5900         pthread_sigmask: Rely on module 'threadlib'.
5901         * modules/pthread_sigmask (Depends-on): Add threadlib.
5902         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5903         is defined.
5904
5905 2011-07-12  Bruno Haible  <bruno@clisp.org>
5906
5907         regex: Depend on module 'strcase'.
5908         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5909
5910 2011-07-12  Jim Meyering  <meyering@redhat.com>
5911
5912         warn-on-use: fix typo in file name
5913         * modules/snippet/warn-on-use (Files): Correct file name:
5914         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5915
5916 2011-07-12  Bruno Haible  <bruno@clisp.org>
5917
5918         strings: Document module.
5919         * doc/posix-headers/strings.texi: Mention module 'strings'.
5920
5921 2011-07-12  Bruno Haible  <bruno@clisp.org>
5922
5923         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5924         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5925         (Files, Makefile.am): Update.
5926         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5927         * modules/stdlib (Depends-on): Update.
5928
5929 2011-07-12  Bruno Haible  <bruno@clisp.org>
5930
5931         * NEWS: Mention the changes.
5932
5933         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5934         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5935         (Files, Makefile.am): Update.
5936         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5937         * modules/arpa_inet (Depends-on): Update.
5938         * modules/ctype (Depends-on): Update.
5939         * modules/dirent (Depends-on): Update.
5940         * modules/fcntl-h (Depends-on): Update.
5941         * modules/glob (Depends-on): Update.
5942         * modules/iconv-h (Depends-on): Update.
5943         * modules/inttypes-incomplete (Depends-on): Update.
5944         * modules/langinfo (Depends-on): Update.
5945         * modules/locale (Depends-on): Update.
5946         * modules/math (Depends-on): Update.
5947         * modules/netdb (Depends-on): Update.
5948         * modules/poll-h (Depends-on): Update.
5949         * modules/pty (Depends-on): Update.
5950         * modules/search (Depends-on): Update.
5951         * modules/signal (Depends-on): Update.
5952         * modules/spawn (Depends-on): Update.
5953         * modules/stdio (Depends-on): Update.
5954         * modules/stdlib (Depends-on): Update.
5955         * modules/string (Depends-on): Update.
5956         * modules/strings (Depends-on): Update.
5957         * modules/sys_file (Depends-on): Update.
5958         * modules/sys_ioctl (Depends-on): Update.
5959         * modules/sys_select (Depends-on): Update.
5960         * modules/sys_socket (Depends-on): Update.
5961         * modules/sys_stat (Depends-on): Update.
5962         * modules/sys_time (Depends-on): Update.
5963         * modules/sys_times (Depends-on): Update.
5964         * modules/sys_utsname (Depends-on): Update.
5965         * modules/sys_wait (Depends-on): Update.
5966         * modules/termios (Depends-on): Update.
5967         * modules/time (Depends-on): Update.
5968         * modules/unistd (Depends-on): Update.
5969         * modules/wchar (Depends-on): Update.
5970         * modules/wctype-h (Depends-on): Update.
5971         * MODULES.html.sh (Support for building libraries and executables):
5972         Update.
5973
5974         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5975         * modules/snippet/unused-parameter: Renamed from
5976         modules/unused-parameter.
5977         (Files, Makefile.am): Update.
5978         * build-aux/snippet/unused-parameter.h: Renamed from
5979         build-aux/unused-parameter.h.
5980         * modules/selinux-h (Depends-on): Update.
5981         * modules/unistr/base (Depends-on): Update.
5982         * MODULES.html.sh (Core language properties): Update.
5983
5984         Rename module 'link-warning' to 'snippet/link-warning'.
5985         * modules/snippet/link-warning: Renamed from modules/link-warning.
5986         (Files, Makefile.am): Update.
5987         * build-aux/snippet/link-warning.h: Renamed from
5988         build-aux/link-warning.h.
5989         * MODULES.html.sh (Support for building libraries and executables):
5990         Update.
5991
5992         Rename module 'c++defs' to 'snippet/c++defs'.
5993         * modules/snippet/c++defs: Renamed from modules/c++defs.
5994         (Files, Makefile.am): Update.
5995         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
5996         * modules/arpa_inet (Depends-on): Update.
5997         * modules/ctype (Depends-on): Update.
5998         * modules/dirent (Depends-on): Update.
5999         * modules/fcntl-h (Depends-on): Update.
6000         * modules/glob (Depends-on): Update.
6001         * modules/iconv-h (Depends-on): Update.
6002         * modules/langinfo (Depends-on): Update.
6003         * modules/locale (Depends-on): Update.
6004         * modules/math (Depends-on): Update.
6005         * modules/netdb (Depends-on): Update.
6006         * modules/poll-h (Depends-on): Update.
6007         * modules/pty (Depends-on): Update.
6008         * modules/search (Depends-on): Update.
6009         * modules/signal (Depends-on): Update.
6010         * modules/spawn (Depends-on): Update.
6011         * modules/stdio (Depends-on): Update.
6012         * modules/stdlib (Depends-on): Update.
6013         * modules/string (Depends-on): Update.
6014         * modules/strings (Depends-on): Update.
6015         * modules/sys_ioctl (Depends-on): Update.
6016         * modules/sys_select (Depends-on): Update.
6017         * modules/sys_socket (Depends-on): Update.
6018         * modules/sys_stat (Depends-on): Update.
6019         * modules/sys_time (Depends-on): Update.
6020         * modules/sys_wait (Depends-on): Update.
6021         * modules/termios (Depends-on): Update.
6022         * modules/time (Depends-on): Update.
6023         * modules/unistd (Depends-on): Update.
6024         * modules/wchar (Depends-on): Update.
6025         * modules/wctype-h (Depends-on): Update.
6026
6027         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6028         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6029         (Files, Makefile.am): Update.
6030         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6031         * modules/argv-iter (Depends-on): Update.
6032         * modules/arpa_inet (Depends-on): Update.
6033         * modules/dirent (Depends-on): Update.
6034         * modules/fcntl-h (Depends-on): Update.
6035         * modules/fnmatch (Depends-on): Update.
6036         * modules/getopt-posix (Depends-on): Update.
6037         * modules/glob (Depends-on): Update.
6038         * modules/iconv-h (Depends-on): Update.
6039         * modules/inttypes-incomplete (Depends-on): Update.
6040         * modules/locale (Depends-on): Update.
6041         * modules/math (Depends-on): Update.
6042         * modules/netdb (Depends-on): Update.
6043         * modules/search (Depends-on): Update.
6044         * modules/signal (Depends-on): Update.
6045         * modules/spawn (Depends-on): Update.
6046         * modules/stdio (Depends-on): Update.
6047         * modules/stdlib (Depends-on): Update.
6048         * modules/string (Depends-on): Update.
6049         * modules/strings (Depends-on): Update.
6050         * modules/sys_socket (Depends-on): Update.
6051         * modules/sys_stat (Depends-on): Update.
6052         * modules/sys_time (Depends-on): Update.
6053         * modules/sys_times (Depends-on): Update.
6054         * modules/sys_utsname (Depends-on): Update.
6055         * modules/time (Depends-on): Update.
6056         * modules/unistd (Depends-on): Update.
6057         * modules/wchar (Depends-on): Update.
6058         * MODULES.html.sh (Support for building libraries and executables):
6059         Update.
6060
6061 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6062
6063         Improvements on _Noreturn and related modules.
6064
6065         modules/_Exit-tests: test _Noreturn too
6066         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6067         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6068         (main): Use them.
6069
6070         stdnoreturn, stdnoreturn-tests: remove modules
6071         They're not needed here and a bit premature for use elsewhere.  See
6072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6073         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6074         * tests/test-stdnoreturn.c: Remove files.
6075         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6076         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6077         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6078         and using noreturn.
6079         * modules/openat, modules/sigpipe-die, modules/xalloc:
6080         * modules/xmemdup0, modules/xstrtol:
6081         Remove dependency on stdnoreturn.
6082
6083         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6084         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6085         Reparenthesize to avoid GCC warning.
6086         Support Microsoft's syntax.
6087         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6088
6089         _Noreturn-tests: remove module
6090         * modules/_Noreturn-tests: Remove.
6091         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6092         * tests/test-_Noreturn.c: Remove.
6093         * tests/test-stdnoreturn.c: Merge from the old
6094         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6095
6096 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6097
6098         _Noreturn, stdnoreturn, and related modules.
6099
6100         * top/maint.mk: Adjust to new noreturn support.
6101         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6102         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6103
6104         xalloc: use stdnoreturn.h
6105         * lib/xalloc.h: Include <stdnoreturn.h>.
6106         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6107         * modules/xalloc (Depends-on): Add stdnoreturn.
6108
6109         xstrtol: use stdnoreturn.h
6110         * lib/xstrtol.h: Include <stdnoreturn.h>.
6111         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6112         * modules/xstrtol (Depends-on): Add stdnoreturn.
6113
6114         xmemdup0: use stdnoreturn.h
6115         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6116         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6117         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6118
6119         sigpipe-die: use stdnoreturn.h
6120         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6121         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6122         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6123
6124         openat: use stdnoreturn.h
6125         * lib/openat.h: Include <stdnoreturn.h>.
6126         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6127         * modules/openat (Depends-on): Add stdnoreturn.
6128
6129         * lib/openat-die.c (openat_save_fail): Modernize comment.
6130
6131         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6132
6133         * lib/glthread/thread.h: Modernize comment.
6134
6135         obstack: use _Noreturn
6136         * lib/obstack.c (__attribute__): Remove macro.
6137         (print_and_abort): Use _Noreturn.
6138
6139         c-stack: use _Noreturn
6140         * lib/c-stack.c (die, overflow_handler, segv_handler):
6141         Use _Noreturn rather than __attribute__((noreturn)).
6142
6143         argmatch-tests, exclude_tests: use _Noreturn
6144         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6145         Remove.
6146         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6147
6148         stdlib: use _Noreturn
6149         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6150         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6151         * modules/stdlib (Depends-on): Add _Noreturn.
6152         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6153
6154         stdnoreturn-tests: new module
6155         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6156
6157         stdnoreturn: new module
6158         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6159         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6160
6161         _Noreturn-tests: new module
6162         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6163
6164         _Noreturn: new module
6165         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6166         New section, mentioning it.
6167         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6168
6169         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6170
6171 2011-07-11  Eric Blake  <eblake@redhat.com>
6172
6173         ffs: new module
6174         * modules/ffs: New file.
6175         * m4/ffs.m4: Likewise.
6176         * lib/ffs.c: Likewise.
6177         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6178         * modules/strings (Makefile.am): Substitute witness.
6179         (Depends-on): Add c++defs.
6180         * lib/strings.in.h (ffs): Declare.
6181         * modules/ffs-tests: New test file.
6182         * tests/test-ffs.c: Test new module.
6183         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6184         * doc/posix-functions/ffs.texi (ffs): Likewise.
6185
6186         regex: avoid compiler warning
6187         * lib/regex.c (includes): Include <strings.h>, for use of
6188         strcasecmp in regcomp.c.
6189         Reported by Joachim Schmitz.
6190
6191 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6192
6193         stdint: respect system's intmax_t if INTMAX_MAX
6194         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6195         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6196         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6197         long but int64_t is long long, and where we will clash with the
6198         system intmax_t if we override it.  See
6199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6200         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6201         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6202         similarly for UINTMAX_C.
6203
6204 2011-07-08  Bruno Haible  <bruno@clisp.org>
6205
6206         pthread_sigmask tests: Avoid a compiler warning.
6207         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6208         non-zero.
6209
6210         sigprocmask tests: A better way to avoid a compiler warning.
6211         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6212         (main): Complain if system() returns non-zero.
6213         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6214
6215 2011-07-08  Bruno Haible  <bruno@clisp.org>
6216
6217         pthread_sigmask: Work around IRIX bug.
6218         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6219         bug.
6220         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6221         there may be unblocked pending signals.
6222         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6223
6224 2011-07-08  Bruno Haible  <bruno@clisp.org>
6225
6226         pthread_sigmask: Work around Cygwin bug.
6227         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6228         bug.
6229         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6230         the system's pthread_sigmask function.
6231         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6232
6233 2011-07-08  Bruno Haible  <bruno@clisp.org>
6234
6235         pthread_sigmask: Work around bug in single-threaded implementation.
6236         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6237         FreeBSD, HP-UX, Solaris bug.
6238         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6239         * lib/pthread_sigmask.c: Include <stddef.h>.
6240         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6241         the system's pthread_sigmask function.
6242         * modules/pthread_sigmask (configure.ac): Invoke
6243         gl_PREREQ_PTHREAD_SIGMASK.
6244         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6245         HP-UX, Solaris.
6246
6247 2011-07-08  Eric Blake  <eblake@redhat.com>
6248
6249         test-sigprocmask: avoid compiler warning
6250         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6251         * tests/test-sigprocmask.c (main): Use it to silence warning.
6252         Reported by Jim Meyering.
6253
6254         test-snprintf: avoid compiler warning
6255         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6256         * tests/test-vsnprintf.c (main): Likewise.
6257         Reported by Jim Meyering.
6258
6259 2011-07-08  Bruno Haible  <bruno@clisp.org>
6260
6261         Tests for module 'pthread_sigmask'.
6262         * modules/pthread_sigmask-tests: New file.
6263         * tests/test-pthread_sigmask1.c: New file, based on
6264         tests/test-sigprocmask.c.
6265         * tests/test-pthread_sigmask2.c: New file.
6266
6267 2011-07-08  Jim Meyering  <meyering@redhat.com>
6268
6269         test-getopt.h: avoid warning about an unused variable
6270         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6271
6272 2011-07-07  Jim Meyering  <meyering@redhat.com>
6273
6274         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6275         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6276         now that it no longer contains leading TABs.
6277         Remove unused "url=FIXME" statement.
6278
6279 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6280
6281         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6282         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6283         When gl_THREADLIB is not in use, assume that the POSIX sematics
6284         are desired.  This is better for Emacs, which uses POSIX semantics
6285         on GNUish and/or POSIXish platforms, and does not use threads at
6286         all otherwise.
6287
6288         pthread_sigmask: fix typo when testing for libraries
6289         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6290         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6291
6292 2011-07-08  Eric Blake  <eblake@redhat.com>
6293
6294         fts: introduce FTS_NOATIME
6295         * lib/fts_.h (FTS_NOATIME): New bit flag.
6296         (FTS_OPTIONMASK): Adjust.
6297         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6298         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6299
6300 2011-07-08  Bruno Haible  <bruno@clisp.org>
6301
6302         Tests for module 'thread'.
6303         * modules/thread-tests: New file.
6304         * tests/test-thread_self.c: New file.
6305         * tests/test-thread_create.cc: New file.
6306
6307 2011-07-08  Bruno Haible  <bruno@clisp.org>
6308
6309         thread: Avoid gcc warnings when using gl_thread_self().
6310         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6311         'void *'.
6312         (gl_thread_self_pointer): Update.
6313
6314 2011-07-07  Bruno Haible  <bruno@clisp.org>
6315
6316         signal-c++-tests: Check declaration of pthread_sigmask.
6317         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6318         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6319         $(LIB_PTHREAD_SIGMASK).
6320
6321 2011-07-07  Bruno Haible  <bruno@clisp.org>
6322
6323         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6324         * lib/signal.in.h (pthread_sigmask): Override if
6325         REPLACE_PTHREAD_SIGMASK is 1.
6326         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6327         REPLACE_PTHREAD_SIGMASK.
6328         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6329         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6330         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6331         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6332         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6333
6334 2011-07-07  Bruno Haible  <bruno@clisp.org>
6335
6336         pthread_sigmask: Ensure declaration in <signal.h>.
6337         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6338         include <pthread.h>.
6339         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6340         problem.
6341
6342 2011-07-07  Bruno Haible  <bruno@clisp.org>
6343
6344         pthread_sigmask: Document the module.
6345         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6346
6347 2011-07-07  Bruno Haible  <bruno@clisp.org>
6348
6349         pthread_sigmask: Follow gnulib conventions.
6350         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6351         gl_PTHREAD_SIGMASK.
6352         * modules/pthread_sigmask (configure.ac): Update.
6353
6354 2011-07-07  Bruno Haible  <bruno@clisp.org>
6355
6356         pthread_sigmask: Make declaration C++ safe.
6357         * lib/signal.in.h: In two special conditions, just do an #include_next.
6358         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6359         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6360         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6361         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6362         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6363         not REPLACE_PTHREAD_MASK.
6364         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6365         not REPLACE_PTHREAD_MASK.
6366         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6367
6368 2011-07-07  Bruno Haible  <bruno@clisp.org>
6369
6370         pthread_sigmask: Fix return value.
6371         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6372         * lib/pthread_sigmask.c: New file.
6373         * modules/pthread_sigmask (Files): Add it.
6374         (configure.ac): Invoke AC_LIBOBJ.
6375
6376 2011-07-07  Eric Blake  <eblake@redhat.com>
6377
6378         getopt: more portable argv creation
6379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6380         const, use char arrays rather than strings.
6381         Suggested by Paul Eggert.
6382
6383 2011-07-07  Bruno Haible  <bruno@clisp.org>
6384
6385         Tests for module 'sigprocmask'.
6386         * modules/sigprocmask-tests: New file.
6387         * tests/test-sigprocmask.c: New file.
6388
6389 2011-07-07  Bruno Haible  <bruno@clisp.org>
6390
6391         float tests: Tweak.
6392         * tests/test-float.c (main): Tweak skip message.
6393
6394 2011-07-07  Eric Blake  <eblake@redhat.com>
6395
6396         getopt: avoid compiler warning during configure
6397         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6398         assigning string literals to non-const pointer.
6399
6400         getopt-gnu: avoid crash in glibc getopt
6401         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6402         * tests/test-getopt.h (test_getopt): Enhance test.
6403         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6404         * doc/posix-functions/getopt.texi (getopt): Document it.
6405         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6406         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6407         Likewise.
6408
6409 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6410
6411         getopt: handle W; without long options in getopt [BZ #12922]
6412         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6413         but no long options are defined, just return 'W'.
6414
6415 2011-07-07  Bruno Haible  <bruno@clisp.org>
6416
6417         Avoid literal tabs.
6418         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6419         variable containing a tab instead of a literal tab.
6420         Reported by Jim Meyering.
6421
6422 2011-07-07  Bruno Haible  <bruno@clisp.org>
6423
6424         Comments.
6425         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6426
6427 2011-07-06  Bruno Haible  <bruno@clisp.org>
6428
6429         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6430         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6431         <winsock2.h>.
6432         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6433         lib/sys_socket.in.h.
6434         (close, gethostname): Hide declarations from <winsock2.h>.
6435         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6436         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6437         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6438         (select): Don't override if gnulib's <sys/select.h> was already
6439         included.
6440         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6441         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6442         setsockopt, shutdown, select): Tweak indentation.
6443
6444 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6445
6446         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6447         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6448         in an application that does not use the sys_select module.
6449
6450 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6451
6452         poll: do not return 0 on timeout=-1
6453         * lib/poll.c: Loop with yield if no events occured
6454
6455 2011-07-06  Eric Blake  <eblake@redhat.com>
6456
6457         pthread_sigmask: always replace when not using pthread
6458         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6459         replacement when using some threading other than pthread.  Fix
6460         logic bug.
6461
6462 2011-07-06  Bruno Haible  <bruno@clisp.org>
6463
6464         Comments.
6465         * m4/printf.m4: Update comments about mingw.
6466
6467 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6468
6469         sys_select: define sigset_t more portably
6470         * lib/sys_select.in.h: Always include <sys/types.h>, since
6471         we now need sigset_t and mingw defines it there.
6472         Include <signal.h> before split inclusion guard, to avoid
6473         mishaps on Solaris, whose <signal.h> eventually includes us.
6474         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6475         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6476         which come from ...
6477         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6478         gl_CHECK_TYPE_SIGSET_T.
6479         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6480         does the real work.
6481         * modules/sys_select (Depends-on): Add 'signal'.
6482
6483         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6484         Suggested by Bruno Haible.
6485
6486         pselect: Use pthread_sigmask, not sigprocmask.
6487         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6488         multithreaded apps better than sigprocmask does.
6489         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6490         sigprocmask directly.
6491
6492 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6493
6494         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6495         Don't #undef,  since we don't need any underlying pselect.
6496         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6497         (Depends-on): Add select.
6498         (Link): Add $(LIBSOCKET).
6499         These changes suggested by Bruno Haible.
6500
6501         pselect: document better
6502         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6503         * doc/posix-functions/pselect.texi (pselect): Document new module.
6504
6505         pthread_sigmask: new module
6506         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6507         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6508         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6509         This is done only as a macro; I don't know how well that'll
6510         work for C++.  Move <sys/types.h> include before the include_next,
6511         to avoid mishap on Solaris.
6512         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6513         * modules/signal (Makefile.am): Substitute the check's results.
6514         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6515
6516         test-pselect: new module
6517         * modules/pselect-tests, tests/test-pselect.c: New files.
6518         * tests/test-select.c, tests/test-sys_select-c++.cc:
6519         If TEST_PSELECT is defined, test pselect instead of testing select.
6520
6521         * tests/test-sys_select.c (sigset_t): Test for it, too.
6522         Suggested by Bruno Haible.
6523
6524 2011-07-05  Eric Blake  <eblake@redhat.com>
6525
6526         snprintf: guarantee %1$d, for libintl
6527         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6528         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6529         * doc/posix-functions/snprintf.texi (snprintf): Update.
6530         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6531         * tests/test-snprintf.c (main): Enhance test.
6532         * tests/test-vsnprintf.c (main): Likewise.
6533
6534 2011-07-05  Jim Meyering  <meyering@redhat.com>
6535
6536         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6537         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6538         per Bruno's request, to accommodate this idiom (no space after "#")
6539         even when the function is inside an #if block:
6540         char *
6541         gets (char *s)
6542         #undef gets
6543         {
6544           ...
6545         }
6546
6547 2011-07-04  Jim Meyering  <meyering@redhat.com>
6548
6549         maint: indent with spaces, not TABs, and add a rule to check this
6550         * tests/test-userspec.c: Indent with spaces, not TABs.
6551         * tests/test-argp.c: Likewise.
6552         * tests/test-c-stack2.sh: Likewise.
6553         * tests/test-parse-duration.sh: Likewise
6554         * m4/strtod.m4: Likewise.
6555         * m4/alloca.m4: Likewise.
6556         * m4/pselect.m4: Likewise.
6557         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6558
6559 2011-07-03  Jim Meyering  <meyering@redhat.com>
6560
6561         maint.mk: correct omissions in prohibit_argmatch_without_use check
6562         This rule would mistakenly report that argmatch.h is included without
6563         use even when both the argmatch and invalid_arg macro were used.
6564         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6565         of argmatch and invalid_arg.
6566
6567 2011-07-03  Bruno Haible  <bruno@clisp.org>
6568
6569         Comments about EINTR.
6570         * lib/safe-read.h: Explain the purpose of this module.
6571         * lib/safe-write.h: Likewise.
6572         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6573         module.
6574         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6575         module.
6576         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6577
6578 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6579
6580         xnanosleep: Rewrite to use new dtotimespec module.
6581         It has the conversion code that used to be in xnanosleep.
6582         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6583         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6584         (TIME_T_MAX): Remove.
6585         (xnanosleep): Rewrite in terms of dtotimespec.
6586         * modules/xnanosleep (Depends-on): Add dtotimespec.
6587         Remove intprops, stdbool.
6588
6589         timespec-add, timespec-sub: new modules
6590         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6591         * lib/timespec-add.c, lib/timespec-sub.c:
6592         * modules/timespec-add, modules/timespec-sub: New files.
6593
6594         dtotimespec: new module
6595         * lib/timespec.h (dtotimespec): New decl.
6596         * lib/dtotimespec.c, modules/dtotimespec: New files.
6597
6598         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6599
6600         pselect: new module
6601         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6602         (pselect): New decls.
6603         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6604         since the standard pselect decl uses 'restrict'.
6605         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6606         HAVE_PSELECT, REPLACE_PSELECT.
6607         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6608         HAVE_PSELECT, REPLACE_PSELECT.
6609         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6610
6611         sys_select: don't depend on sys_socket
6612         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6614         This fix works on GNU and GNU-like platforms, but has not been tested
6615         on native Windows.
6616         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6617         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6618         gl_HEADER_SYS_SOCKET.
6619         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6620         gl_PREREQ_SYS_H_WINSOCK2.
6621
6622 2011-06-29  Eric Blake  <eblake@redhat.com>
6623
6624         pipe2: fix C89 compile problem
6625         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6626         Reported by Bruno Haible.
6627
6628         pipe, pipe2: don't corrupt fd on error
6629         * lib/pipe.c (pipe): Leave fd unchanged on error.
6630         * lib/pipe2.c (pipe2): Likewise.
6631         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6632         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6633
6634 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6635
6636         mmap-anon: do not use regular expressions inadvertently
6637         * m4/mmap-anon.m4: Remove trailing period from strings sought
6638         in the output.
6639
6640 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6641
6642         nanosleep: fix integer overflow problem
6643         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6644         arithmetic wraps around on overflow.
6645
6646         nanosleep: simplify carrying
6647         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6648         first call to the underyling nanosleep, not for the last one.
6649         This doesn't fix any bugs, but it simplifies the computation of
6650         the remaining delay.  Found while auditing integer overflow issues.
6651
6652         dup2: remove test for existence of fcntl
6653         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6654         "#if HAVE_FCNTL", in the configure-time test program.
6655         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6656         and therefore speeds up "configure" a bit.  Found while
6657         adding the dup2 module to Emacs.
6658
6659 2011-06-24  Eric Blake  <eblake@redhat.com>
6660
6661         maint.mk: enhance useless header checks
6662         * top/maint.mk (_sc_header_without_use): Check both include
6663         styles.
6664         (sc_prohibit_assert_without_use)
6665         (sc_prohibit_close_stream_without_use)
6666         (sc_prohibit_getopt_without_use)
6667         (sc_prohibit_quotearg_without_use)
6668         (sc_prohibit_quote_without_use)
6669         (sc_prohibit_long_options_without_use)
6670         (sc_prohibit_inttostr_without_use)
6671         (sc_prohibit_ignore_value_without_use)
6672         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6673         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6674         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6675         (sc_prohibit_hash_pjw_without_use)
6676         (sc_prohibit_safe_read_without_use)
6677         (sc_prohibit_argmatch_without_use)
6678         (sc_prohibit_canonicalize_without_use)
6679         (sc_prohibit_root_dev_ino_without_use)
6680         (sc_prohibit_openat_without_use)
6681         (sc_prohibit_c_ctype_without_use)
6682         (sc_prohibit_signal_without_use)
6683         (sc_prohibit_stdio--_without_use)
6684         (sc_prohibit_stdio-safer_without_use)
6685         (sc_prohibit_strings_without_use)
6686         (sc_prohibit_intprops_without_use)
6687         (sc_prohibit_stddef_without_use)
6688         (sc_prohibit_xfreopen_without_use): Update clients.
6689
6690 2011-06-24  Jim Meyering  <meyering@redhat.com>
6691
6692         syntax-check: keep one maint.mk rule in sync with its header
6693         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6694         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6695         I prefer to avoid temporary files here, so use <(...), but that
6696         is not supported by /bin/sh, so...
6697         (SHELL): Define to /bin/bash.
6698
6699 2011-06-24  Eric Blake  <eblake@redhat.com>
6700
6701         maint.mk: update sc_prohibit_intprops_without_use
6702         * top/maint.mk (_intprops_names): Match recent changes.
6703
6704 2011-06-24  Bruno Haible  <bruno@clisp.org>
6705
6706         strerror-override: No-op tweak.
6707         * lib/strerror-override.h (strerror_override): Reorder conditions,
6708         for consistency with lib/strerror-override.c.
6709
6710 2011-06-23  Eric Blake  <eblake@redhat.com>
6711
6712         maint.mk: test further PATH_MAX issues
6713         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6714         (sc_prohibit_path_max_allocation): ...and also test alloca.
6715         Suggested by Jim Meyering.
6716
6717 2011-06-22  Eric Blake  <eblake@redhat.com>
6718
6719         maint.mk: add syntax-check to avoid char[PATH_MAX]
6720         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6721
6722         stat: be robust to PATH_MAX definition
6723         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6724         * modules/stat (Depends-on): Add verify.
6725
6726         link: work around IRIX bug
6727         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6728         * lib/link.c (rpl_link): Work around it.
6729         * tests/test-link.h (test_link): Enhance test.
6730         * doc/posix-functions/link.texi (link): Document the bug.
6731
6732         getopt: silence clang warning
6733         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6734         dereference.
6735         Reported by Gustavo Martin Domato.
6736
6737 2011-06-22  Jim Meyering  <meyering@redhat.com>
6738
6739         bootstrap: do not insert a blank line into each .gitignore file
6740         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6741
6742 2011-06-21  Eric Blake  <eblake@redhat.com>
6743
6744         perror: test for output mismatch
6745         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6746         perror on IRIX.
6747
6748         strerror_r: fix OpenBSD behavior on out-of-range
6749         * lib/strerror_r.c (strerror_r): Always use maximal string.
6750         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6751
6752         strerror_r: fix OpenBSD behavior on 0
6753         * lib/strerror-override.c (strerror_override): Also override 0
6754         when needed.
6755         * lib/strerror-override.h (strerror_override): Likewise.
6756         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6757         earlier.
6758         * lib/strerror_r.c (strerror_r): Likewise.
6759         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6760         behavior...
6761         (gl_FUNC_STRERROR_0): ...into new macro.
6762         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6763         is overridden.
6764         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6765         * modules/strerror-override (Files): Add strerror.m4.
6766         (configure.ac): Also provide override for 0 when needed.
6767         * doc/posix-functions/strerror.texi (strerror): Document this.
6768         * doc/posix-functions/perror.texi (perror): Likewise.
6769
6770         perror: adjust array size
6771         * modules/perror (Depends-on): Add strerror-override.
6772         * lib/perror.c (perror): Use it to avoid magic number.
6773
6774         strerror-override: reduce size
6775         * lib/strerror-override.c (strerror_override): Use fewer lines.
6776
6777 2011-06-20  Bruno Haible  <bruno@clisp.org>
6778
6779         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6780         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6781
6782 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6783
6784         alloca: port to compilers that can optimize like GCC 4.6.0
6785         * lib/alloca.c (find_stack_direction): New signature, taken from
6786         Autoconf git.  This works with GCC 4.6.0.  This code should never
6787         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6788         be used with other compilers that optimize as well as GCC 4.6.0 does.
6789         (alloca): Adjust to new signature.
6790         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6791         New macro, which patches Autoconf in a similar way.
6792
6793         c-stack: stop worrying about stack direction
6794         * lib/c-stack.c (find_stack_direction): Remove.
6795         (segv_handler): Don't worry about stack direction growth, as it's
6796         too much of a pain to configure this correctly, given how compilers
6797         are optimizing-away our stack-growth detection code.  Instead, assume
6798         that any access to just before or just after the stack is OK.
6799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6800         Don't require AC_FUNC_ALLOCA; no longer needed.
6801
6802 2011-06-20  Eric Blake  <eblake@redhat.com>
6803
6804         test-stat: don't allocate PATH_MAX bytes
6805         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6806         PATH_MAX-sized buffer.
6807         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6808         * modules/stat-tests (Depends-on): Likewise.
6809         * tests/test-fstatat.c (includes): Drop pathmax.h.
6810         * tests/test-stat.c (includes): Likewise.
6811         Reported by Bruno Haible.
6812
6813 2011-06-20  Bruno Haible  <bruno@clisp.org>
6814
6815         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6816         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6817         * lib/float.c: New file.
6818         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6819         REPLACE_FLOAT_LDBL.
6820         * modules/float (Files): Add lib/float.c.
6821         (configure.ac): Invoke AC_LIBOBJ.
6822         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6823
6824 2011-06-20  Bruno Haible  <bruno@clisp.org>
6825
6826         Tests for module 'float'.
6827         * modules/float-tests: New file.
6828         * tests/test-float.c: New file.
6829
6830 2011-06-19  Bruno Haible  <bruno@clisp.org>
6831
6832         isinf: Coding style.
6833         * lib/isinf.c: Use GNU coding style.
6834
6835 2011-06-19  Bruno Haible  <bruno@clisp.org>
6836
6837         linkat test: Avoid test failure on AIX 7.1.
6838         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6839         * tests/test-link.h (test_link): Likewise.
6840
6841 2011-06-19  Bruno Haible  <bruno@clisp.org>
6842
6843         pread test: Avoid test failure on OpenBSD 4.9.
6844         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6845
6846 2011-06-19  Bruno Haible  <bruno@clisp.org>
6847
6848         sprintf-posix: Fix test failure on AIX 7.1.
6849         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6850         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6851         on AIX.
6852         * doc/posix-functions/fprintf.texi: Likewise.
6853         * doc/posix-functions/printf.texi: Likewise.
6854         * doc/posix-functions/snprintf.texi: Likewise.
6855         * doc/posix-functions/sprintf.texi: Likewise.
6856         * doc/posix-functions/vdprintf.texi: Likewise.
6857         * doc/posix-functions/vfprintf.texi: Likewise.
6858         * doc/posix-functions/vprintf.texi: Likewise.
6859         * doc/posix-functions/vsnprintf.texi: Likewise.
6860         * doc/posix-functions/vsprintf.texi: Likewise.
6861
6862 2011-06-19  Bruno Haible  <bruno@clisp.org>
6863
6864         roundl-ieee: Fix test failure on AIX 7.1.
6865         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6866         * doc/posix-functions/roundl.texi: Mention problem with negative
6867         arguments.
6868
6869 2011-06-19  Bruno Haible  <bruno@clisp.org>
6870
6871         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6872         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6873         * doc/posix-functions/round.texi: Mention problem with negative
6874         arguments.
6875         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6876
6877 2011-06-19  Bruno Haible  <bruno@clisp.org>
6878
6879         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6880         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6881         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6882         * doc/posix-functions/roundf.texi: Mention problem with negative
6883         arguments.
6884         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6885
6886 2011-06-19  Bruno Haible  <bruno@clisp.org>
6887
6888         ceilf-ieee: Work around bug on MacOS X 10.5.
6889         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6890
6891         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6892         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6893         IEEE compliant, avoid compiler optimizations.
6894         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6895         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6896         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6897         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6898         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6899         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6900         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6901         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6902         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6903         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6904
6905 2011-06-19  Bruno Haible  <bruno@clisp.org>
6906
6907         ceilf-ieee: Work around bug on AIX 7.1.
6908         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6909         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6910
6911 2011-06-19  Bruno Haible  <bruno@clisp.org>
6912
6913         ceil-ieee: Work around bug on AIX 7.1.
6914         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6915         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6916
6917 2011-06-18  Bruno Haible  <bruno@clisp.org>
6918
6919         fsync test: Avoid test failure on MacOS X and AIX.
6920         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6921         EINVAL.
6922
6923 2011-06-18  Bruno Haible  <bruno@clisp.org>
6924
6925         openat, fdopendir tests: Fix link errors.
6926         * modules/openat-tests (Depends-on): Add progname.
6927         * modules/fdopendir-tests (Depends-on): Likewise.
6928         * tests/test-fchownat.c: Include progname.h.
6929         (main): Call set_program_name.
6930         * tests/test-fstatat.c: Include progname.h.
6931         (main): Call set_program_name.
6932         * tests/test-mkdirat.c: Include progname.h.
6933         (main): Call set_program_name.
6934         * tests/test-openat.c: Include progname.h.
6935         (main): Call set_program_name.
6936         * tests/test-unlinkat.c: Include progname.h.
6937         (main): Call set_program_name.
6938         * tests/test-fdopendir.c: Include progname.h.
6939         (main): Call set_program_name.
6940
6941 2011-06-18  Bruno Haible  <bruno@clisp.org>
6942
6943         Doc update.
6944         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6945         HP-UX.
6946         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6947
6948 2011-06-18  Bruno Haible  <bruno@clisp.org>
6949
6950         getcwd tests: Avoid compilation error on HP-UX 11.31.
6951         * modules/getcwd-tests (Depends-on): Add pathmax.
6952         * tests/test-getcwd.c: Include pathmax.h.
6953
6954 2011-06-18  Bruno Haible  <bruno@clisp.org>
6955
6956         isfinite, isinf: Fix link error on AIX 6 and 7.
6957         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6958         needed, also test the macro with a 'float' argument.
6959         * m4/isinf.m4 (gl_ISINF): Likewise.
6960
6961 2011-06-18  Bruno Haible  <bruno@clisp.org>
6962
6963         getloadavg: Don't clobber LIBS. Regression from previous commit.
6964         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6965         AC_CHECK_LIB from here...
6966         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6967         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6968         gl_func_getloadavg_done.
6969         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6970
6971 2011-06-18  Bruno Haible  <bruno@clisp.org>
6972
6973         clean-temp: Improve documentation.
6974         * lib/clean-temp.h: Explain better how to use this module.
6975         Reported by John Darrington <john@darrington.wattle.id.au>.
6976
6977 2011-06-17  Bruno Haible  <bruno@clisp.org>
6978
6979         pread, pwrite: Avoid cc warning on AIX.
6980         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6981         (pwrite): Likewise.
6982
6983 2011-06-17  Bruno Haible  <bruno@clisp.org>
6984
6985         spawn-pipe tests: Fix link error.
6986         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6988
6989 2011-06-17  Bruno Haible  <bruno@clisp.org>
6990
6991         Tests: Remove unnecessary dependency.
6992         * modules/canonicalize-tests (Depends-on): Remove progname.
6993         * modules/chown-tests (Depends-on): Likewise.
6994         * modules/dirname-tests (Depends-on): Likewise.
6995         * modules/fdopendir-tests (Depends-on): Likewise.
6996         * modules/fdutimensat-tests (Depends-on): Likewise.
6997         * modules/hash-tests (Depends-on): Likewise.
6998         * modules/lchown-tests (Depends-on): Likewise.
6999         * modules/linkat-tests (Depends-on): Likewise.
7000         * modules/renameat-tests (Depends-on): Likewise.
7001         * modules/spawn-pipe-tests (Depends-on): Likewise.
7002         * modules/utimensat-tests (Depends-on): Likewise.
7003
7004 2011-06-17  Bruno Haible  <bruno@clisp.org>
7005
7006         spawn-pipe tests: Fix link error.
7007         * tests/test-spawn-pipe-child.c: Undefine fflush.
7008
7009 2011-06-17  Bruno Haible  <bruno@clisp.org>
7010
7011         Fix tests link errors.
7012         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7013         * modules/chown-tests (Makefile.am): Don't link test-chown with
7014         LIBINTL.
7015         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7016         LIBINTL.
7017         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7018         LIBINTL.
7019         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7020         LIBINTL.
7021
7022 2011-06-16  Bruno Haible  <bruno@clisp.org>
7023
7024         crypto/gc-sha1: Fix recent regression.
7025         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7026         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7027
7028         crypto/gc-md5: Fix recent regression.
7029         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7030
7031         crypto/gc-md4: Fix recent regression.
7032         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7033         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7034
7035         crypto/gc-arctwo: Fix recent regression.
7036         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7037         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7038
7039         crypto/gc-rijndael: Fix recent regression.
7040         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7041         (configure.ac): Invoke AC_LIBOBJ here.
7042         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7043         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7044
7045         crypto/gc-hmac-sha1: Fix recent regression.
7046         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7047         (configure.ac): Invoke AC_LIBOBJ here.
7048         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7050
7051         crypto/gc-hmac-md5: Fix recent regression.
7052         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7053         (configure.ac): Invoke AC_LIBOBJ here.
7054         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7056
7057         crypto/gc-des: Fix recent regression.
7058         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7059         (configure.ac): Invoke AC_LIBOBJ here.
7060         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7062
7063         crypto/gc-arcfour: Fix recent regression.
7064         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7065         (configure.ac): Invoke AC_LIBOBJ here.
7066         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7068
7069 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7070
7071         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7072         After the 2011-05-21 change, this macro requires
7073         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7074         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7075
7076 2011-06-16  Bruno Haible  <bruno@clisp.org>
7077
7078         fprintftime: Move AC_LIBOBJ invocations to module description.
7079         * m4/fprintftime.m4: Remove file.
7080         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7081         (configure.ac): Remove gl_FPRINTFTIME call.
7082         (Makefile.am): Augment lib_SOURCES.
7083         Reported by Jim Meyering.
7084
7085 2011-06-16  Bruno Haible  <bruno@clisp.org>
7086
7087         tmpfile-safer: Finish 2011-05-23 commit.
7088         * m4/stdio-safer.m4: Really remove file.
7089         Reported by Jim Meyering.
7090
7091 2011-06-16  Bruno Haible  <bruno@clisp.org>
7092
7093         syntax-check: Fix typo.
7094         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7095         printf-posix.m4.
7096         Reported by Jim Meyering.
7097
7098 2011-06-13  Jim Meyering  <meyering@redhat.com>
7099
7100         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7101         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7102
7103 2011-05-23  Bruno Haible  <bruno@clisp.org>
7104
7105         yesno: Move AC_LIBOBJ invocations to module description.
7106         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7107         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7108
7109 2011-05-23  Bruno Haible  <bruno@clisp.org>
7110
7111         xstrtol: Move AC_LIBOBJ invocations to module description.
7112         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7113         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7114
7115 2011-05-23  Bruno Haible  <bruno@clisp.org>
7116
7117         xstrtold: Move AC_LIBOBJ invocations to module description.
7118         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7119         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7120
7121 2011-05-23  Bruno Haible  <bruno@clisp.org>
7122
7123         xstrtod: Move AC_LIBOBJ invocations to module description.
7124         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7125         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7126
7127 2011-05-23  Bruno Haible  <bruno@clisp.org>
7128
7129         xnanosleep: Move AC_LIBOBJ invocations to module description.
7130         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7131         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7132
7133 2011-05-23  Bruno Haible  <bruno@clisp.org>
7134
7135         xgetcwd: Move AC_LIBOBJ invocations to module description.
7136         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7137         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7138
7139 2011-05-23  Bruno Haible  <bruno@clisp.org>
7140
7141         xalloc: Move AC_LIBOBJ invocations to module description.
7142         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7143         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7144
7145 2011-05-23  Bruno Haible  <bruno@clisp.org>
7146
7147         write-any-file: Move AC_LIBOBJ invocations to module description.
7148         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7149         invocation.
7150         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7151
7152 2011-05-23  Bruno Haible  <bruno@clisp.org>
7153
7154         utimens: Move AC_LIBOBJ invocations to module description.
7155         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7156         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7157
7158 2011-05-23  Bruno Haible  <bruno@clisp.org>
7159
7160         utimecmp: Move AC_LIBOBJ invocations to module description.
7161         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7162         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7163
7164 2011-05-23  Bruno Haible  <bruno@clisp.org>
7165
7166         userspec: Move AC_LIBOBJ invocations to module description.
7167         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7168         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7169
7170 2011-05-23  Bruno Haible  <bruno@clisp.org>
7171
7172         unlinkdir: Move AC_LIBOBJ invocations to module description.
7173         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7174         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7175
7176 2011-05-23  Bruno Haible  <bruno@clisp.org>
7177
7178         unistd-safer: Move AC_LIBOBJ invocations to module description.
7179         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7180         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7181
7182 2011-05-23  Bruno Haible  <bruno@clisp.org>
7183
7184         tempname: Move AC_LIBOBJ invocations to module description.
7185         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7186         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7187
7188 2011-05-23  Bruno Haible  <bruno@clisp.org>
7189
7190         strftime: Move AC_LIBOBJ invocations to module description.
7191         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7192         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7193
7194 2011-05-23  Bruno Haible  <bruno@clisp.org>
7195
7196         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7197         * m4/stdlib-safer.m4: Remove file.
7198         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7199         (configure.ac): Remove gl_STDLIB_SAFER call.
7200         (Makefile.am): Augment lib_SOURCES.
7201
7202 2011-05-23  Bruno Haible  <bruno@clisp.org>
7203
7204         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7205         * m4/stdio-safer.m4: Remove file.
7206         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7207         (configure.ac): Remove gl_TMPFILE_SAFER call.
7208         (Makefile.am): Augment lib_SOURCES.
7209
7210 2011-05-23  Bruno Haible  <bruno@clisp.org>
7211
7212         popen-safer: Move AC_LIBOBJ invocations to module description.
7213         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7214         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7215         (configure.ac): Remove gl_POPEN_SAFER call.
7216         (Makefile.am): Augment lib_SOURCES.
7217
7218 2011-05-23  Bruno Haible  <bruno@clisp.org>
7219
7220         freopen-safer: Move AC_LIBOBJ invocations to module description.
7221         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7222         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7223         (configure.ac): Remove gl_FREOPEN_SAFER call.
7224         (Makefile.am): Augment lib_SOURCES.
7225
7226 2011-05-23  Bruno Haible  <bruno@clisp.org>
7227
7228         fopen-safer: Move AC_LIBOBJ invocations to module description.
7229         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7230         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7231         (configure.ac): Remove gl_FOPEN_SAFER call.
7232         (Makefile.am): Augment lib_SOURCES.
7233
7234 2011-05-23  Bruno Haible  <bruno@clisp.org>
7235
7236         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7237         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7238         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7239
7240 2011-05-23  Bruno Haible  <bruno@clisp.org>
7241
7242         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7243         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7244         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7245
7246 2011-05-23  Bruno Haible  <bruno@clisp.org>
7247
7248         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7249         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7250         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7251
7252 2011-05-23  Bruno Haible  <bruno@clisp.org>
7253
7254         settime: Move AC_LIBOBJ invocations to module description.
7255         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7256         * modules/settime (Makefile.am): Augment lib_SOURCES.
7257
7258 2011-05-23  Bruno Haible  <bruno@clisp.org>
7259
7260         savedir: Move AC_LIBOBJ invocations to module description.
7261         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7262         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7263
7264 2011-05-23  Bruno Haible  <bruno@clisp.org>
7265
7266         save-cwd: Move AC_LIBOBJ invocations to module description.
7267         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7268         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7269
7270 2011-05-23  Bruno Haible  <bruno@clisp.org>
7271
7272         same: Move AC_LIBOBJ invocations to module description.
7273         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7274         * modules/same (Makefile.am): Augment lib_SOURCES.
7275
7276 2011-05-23  Bruno Haible  <bruno@clisp.org>
7277
7278         safe-write: Move AC_LIBOBJ invocations to module description.
7279         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7280         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7281         instead of gl_SAFE_WRITE.
7282         (Makefile.am): Augment lib_SOURCES.
7283
7284 2011-05-23  Bruno Haible  <bruno@clisp.org>
7285
7286         safe-read: Move AC_LIBOBJ invocations to module description.
7287         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7288         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7289         of gl_SAFE_READ.
7290         (Makefile.am): Augment lib_SOURCES.
7291
7292 2011-05-23  Bruno Haible  <bruno@clisp.org>
7293
7294         safe-alloc: Move AC_LIBOBJ invocations to module description.
7295         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7296         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7297
7298 2011-05-23  Bruno Haible  <bruno@clisp.org>
7299
7300         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7301         * m4/rijndael.m4: Remove file.
7302         * modules/crypto/rijndael (Files): Remove it.
7303         (configure.ac): Remove gl_RIJNDAEL call.
7304         (Makefile.am): Augment lib_SOURCES.
7305
7306 2011-05-23  Bruno Haible  <bruno@clisp.org>
7307
7308         readtokens: Move AC_LIBOBJ invocations to module description.
7309         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7310         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7311
7312 2011-05-23  Bruno Haible  <bruno@clisp.org>
7313
7314         read-file: Move AC_LIBOBJ invocations to module description.
7315         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7316         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7317         of gl_FUNC_READ_FILE.
7318         (Makefile.am): Augment lib_SOURCES.
7319
7320 2011-05-23  Bruno Haible  <bruno@clisp.org>
7321
7322         quotearg: Move AC_LIBOBJ invocations to module description.
7323         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7324         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7325
7326 2011-05-23  Bruno Haible  <bruno@clisp.org>
7327
7328         quote: Move AC_LIBOBJ invocations to module description.
7329         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7330         * modules/quote (Makefile.am): Augment lib_SOURCES.
7331
7332 2011-05-23  Bruno Haible  <bruno@clisp.org>
7333
7334         posixver: Move AC_LIBOBJ invocations to module description.
7335         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7336         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7337
7338 2011-05-23  Bruno Haible  <bruno@clisp.org>
7339
7340         posixtm: Move AC_LIBOBJ invocations to module description.
7341         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7342         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7343
7344 2011-05-23  Bruno Haible  <bruno@clisp.org>
7345
7346         physmem: Move AC_LIBOBJ invocations to module description.
7347         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7348         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7349
7350 2011-05-23  Bruno Haible  <bruno@clisp.org>
7351
7352         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7353         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7354         invocation.
7355         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7356
7357 2011-05-23  Bruno Haible  <bruno@clisp.org>
7358
7359         mpsort: Move AC_LIBOBJ invocations to module description.
7360         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7361         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7362
7363 2011-05-23  Bruno Haible  <bruno@clisp.org>
7364
7365         modechange: Move AC_LIBOBJ invocations to module description.
7366         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7367         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7368
7369 2011-05-23  Bruno Haible  <bruno@clisp.org>
7370
7371         mkdir-p: Move AC_LIBOBJ invocations to module description.
7372         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7373         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7374
7375 2011-05-23  Bruno Haible  <bruno@clisp.org>
7376
7377         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7378         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7379         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7380
7381 2011-05-23  Bruno Haible  <bruno@clisp.org>
7382
7383         mgetgroups: Move AC_LIBOBJ invocations to module description.
7384         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7385         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7386
7387 2011-05-23  Bruno Haible  <bruno@clisp.org>
7388
7389         memxor: Move AC_LIBOBJ invocations to module description.
7390         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7391         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7392
7393 2011-05-23  Bruno Haible  <bruno@clisp.org>
7394
7395         memcoll: Move AC_LIBOBJ invocations to module description.
7396         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7397         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7398
7399 2011-05-23  Bruno Haible  <bruno@clisp.org>
7400
7401         memcasecmp: Move AC_LIBOBJ invocations to module description.
7402         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7403         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7404
7405 2011-05-23  Bruno Haible  <bruno@clisp.org>
7406
7407         crypto/md5: Move AC_LIBOBJ invocations to module description.
7408         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7409         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7410
7411 2011-05-23  Bruno Haible  <bruno@clisp.org>
7412
7413         crypto/md4: Move AC_LIBOBJ invocations to module description.
7414         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7415         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7416
7417 2011-05-23  Bruno Haible  <bruno@clisp.org>
7418
7419         crypto/md2: Move AC_LIBOBJ invocations to module description.
7420         * m4/md2.m4: Remove file.
7421         * modules/crypto/md2 (Files): Remove it.
7422         (configure.ac): Remove gl_MD2 call.
7423         (Makefile.am): Augment lib_SOURCES.
7424
7425 2011-05-23  Bruno Haible  <bruno@clisp.org>
7426
7427         long-options: Move AC_LIBOBJ invocations to module description.
7428         * m4/long-options.m4: Remove file.
7429         * modules/long-options (Files): Remove it.
7430         (configure.ac): Remove gl_LONG_OPTIONS call.
7431         (Makefile.am): Augment lib_SOURCES.
7432
7433 2011-05-23  Bruno Haible  <bruno@clisp.org>
7434
7435         i-ring: Move AC_LIBOBJ invocations to module description.
7436         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7437         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7438
7439 2011-05-23  Bruno Haible  <bruno@clisp.org>
7440
7441         idcache: Move AC_LIBOBJ invocations to module description.
7442         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7443         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7444
7445 2011-05-23  Bruno Haible  <bruno@clisp.org>
7446
7447         human: Move AC_LIBOBJ invocations to module description.
7448         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7449         * modules/human (Makefile.am): Augment lib_SOURCES.
7450
7451 2011-05-23  Bruno Haible  <bruno@clisp.org>
7452
7453         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7454         * m4/hmac-sha1.m4: Remove file.
7455         * modules/crypto/hmac-sha1 (Files): Remove it.
7456         (configure.ac): Remove gl_HMAC_SHA1 call.
7457         (Makefile.am): Augment lib_SOURCES.
7458
7459 2011-05-23  Bruno Haible  <bruno@clisp.org>
7460
7461         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7462         * m4/hmac-md5.m4: Remove file.
7463         * modules/crypto/hmac-md5 (Files): Remove it.
7464         (configure.ac): Remove gl_HMAC_MD5 call.
7465         (Makefile.am): Augment lib_SOURCES.
7466
7467 2011-05-23  Bruno Haible  <bruno@clisp.org>
7468
7469         hash: Move AC_LIBOBJ invocations to module description.
7470         * m4/hash.m4: Remove file.
7471         * modules/hash (Files): Remove it.
7472         (configure.ac): Remove gl_HASH call.
7473         (Makefile.am): Augment lib_SOURCES.
7474
7475 2011-05-23  Bruno Haible  <bruno@clisp.org>
7476
7477         hard-locale: Move AC_LIBOBJ invocations to module description.
7478         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7479         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7480
7481 2011-05-23  Bruno Haible  <bruno@clisp.org>
7482
7483         getugroups: Move AC_LIBOBJ invocations to module description.
7484         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7485         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7486
7487 2011-05-23  Bruno Haible  <bruno@clisp.org>
7488
7489         gettime: Move AC_LIBOBJ invocations to module description.
7490         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7491         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7492
7493 2011-05-23  Bruno Haible  <bruno@clisp.org>
7494
7495         getndelim2: Move AC_LIBOBJ invocations to module description.
7496         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7497         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7498
7499 2011-05-23  Bruno Haible  <bruno@clisp.org>
7500
7501         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7502         * m4/gc-pbkdf2-sha1.m4: Remove file.
7503         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7504         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7505         (Makefile.am): Augment lib_SOURCES.
7506
7507 2011-05-23  Bruno Haible  <bruno@clisp.org>
7508
7509         fts: Move AC_LIBOBJ invocations to module description.
7510         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7511         * modules/fts (configure.ac): ... to here.
7512
7513 2011-05-23  Bruno Haible  <bruno@clisp.org>
7514
7515         file-type: Move AC_LIBOBJ invocations to module description.
7516         * m4/file-type.m4: Remove file.
7517         * modules/file-type (Files): Remove it.
7518         (configure.ac): Remove gl_FILE_TYPE call.
7519         (Makefile.am): Augment lib_SOURCES.
7520
7521 2011-05-23  Bruno Haible  <bruno@clisp.org>
7522
7523         filenamecat*: Respect rules for use of AC_LIBOBJ.
7524         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7525         Remove AC_LIBOBJ invocation.
7526         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7527         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7528
7529 2011-05-23  Bruno Haible  <bruno@clisp.org>
7530
7531         filemode: Move AC_LIBOBJ invocations to module description.
7532         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7533         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7534
7535 2011-05-23  Bruno Haible  <bruno@clisp.org>
7536
7537         openat-safer: Move AC_LIBOBJ invocations to module description.
7538         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7539         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7540
7541 2011-05-23  Bruno Haible  <bruno@clisp.org>
7542
7543         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7544         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7545         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7546
7547 2011-05-23  Bruno Haible  <bruno@clisp.org>
7548
7549         exclude: Move AC_LIBOBJ invocations to module description.
7550         * m4/exclude.m4: Remove file.
7551         * modules/exclude (Files): Remove it.
7552         (configure.ac): Remove gl_EXCLUDE call.
7553         (Makefile.am): Augment lib_SOURCES.
7554
7555 2011-05-23  Bruno Haible  <bruno@clisp.org>
7556
7557         dirname*: Respect rules for use of AC_LIBOBJ.
7558         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7559         invocations.
7560         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7561         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7562
7563 2011-05-23  Bruno Haible  <bruno@clisp.org>
7564
7565         dirent-safer: Move AC_LIBOBJ invocations to module description.
7566         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7567         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7568
7569 2011-05-23  Bruno Haible  <bruno@clisp.org>
7570
7571         crypto/des: Move AC_LIBOBJ invocations to module description.
7572         * m4/des.m4: Remove file.
7573         * modules/crypto/des (Files): Remove it.
7574         (configure.ac): Remove gl_DES call.
7575         (Makefile.am): Augment lib_SOURCES.
7576
7577 2011-05-23  Bruno Haible  <bruno@clisp.org>
7578
7579         cycle-check: Move AC_LIBOBJ invocations to module description.
7580         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7581         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7582
7583 2011-05-23  Bruno Haible  <bruno@clisp.org>
7584
7585         c-strtold: Move AC_LIBOBJ invocations to module description.
7586         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7587         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7588
7589 2011-05-23  Bruno Haible  <bruno@clisp.org>
7590
7591         c-strtod: Move AC_LIBOBJ invocations to module description.
7592         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7593         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7594
7595 2011-05-23  Bruno Haible  <bruno@clisp.org>
7596
7597         crc: Move AC_LIBOBJ invocations to module description.
7598         * m4/crc.m4: Remove file.
7599         * modules/crc (Files): Remove it.
7600         (configure.ac): Remove gl_CRC call.
7601         (Makefile.am): Augment lib_SOURCES.
7602
7603 2011-05-23  Bruno Haible  <bruno@clisp.org>
7604
7605         close-stream: Move AC_LIBOBJ invocations to module description.
7606         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7607         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7608
7609 2011-05-23  Bruno Haible  <bruno@clisp.org>
7610
7611         closeout: Move AC_LIBOBJ invocations to module description.
7612         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7613         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7614
7615 2011-05-23  Bruno Haible  <bruno@clisp.org>
7616
7617         closein: Move AC_LIBOBJ invocations to module description.
7618         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7619         * modules/closein (Makefile.am): Augment lib_SOURCES.
7620
7621 2011-05-23  Bruno Haible  <bruno@clisp.org>
7622
7623         cloexec: Move AC_LIBOBJ invocations to module description.
7624         * m4/cloexec.m4: Remove file.
7625         * modules/cloexec (Files): Remove it.
7626         (configure.ac): Remove gl_CLOEXEC call.
7627         (Makefile.am): Augment lib_SOURCES.
7628
7629 2011-05-23  Bruno Haible  <bruno@clisp.org>
7630
7631         check-version: Move AC_LIBOBJ invocations to module description.
7632         * m4/check-version.m4: Remove file.
7633         * modules/check-version (Files): Remove it.
7634         (configure.ac): Remove gl_CHECK_VERSION call.
7635         (Makefile.am): Augment lib_SOURCES.
7636
7637 2011-05-23  Bruno Haible  <bruno@clisp.org>
7638
7639         chdir-safer: Move AC_LIBOBJ invocations to module description.
7640         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7641         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7642
7643 2011-05-23  Bruno Haible  <bruno@clisp.org>
7644
7645         canonicalize: Move AC_LIBOBJ invocations to module description.
7646         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7647         AC_LIBOBJ invocation.
7648         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7649
7650 2011-05-23  Bruno Haible  <bruno@clisp.org>
7651
7652         canon-host: Move AC_LIBOBJ invocations to module description.
7653         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7654         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7655         instead of gl_CANON_HOST.
7656         (Makefile.am): Augment lib_SOURCES.
7657
7658 2011-05-23  Bruno Haible  <bruno@clisp.org>
7659
7660         backupfile: Move AC_LIBOBJ invocations to module description.
7661         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7662         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7663
7664 2011-05-23  Bruno Haible  <bruno@clisp.org>
7665
7666         argmatch: Move AC_LIBOBJ invocations to module description.
7667         * m4/argmatch.m4: Remove file.
7668         * modules/argmatch (Files): Remove it.
7669         (configure.ac): Remove gl_ARGMATCH call.
7670         (Makefile.am): Augment lib_SOURCES.
7671
7672 2011-05-23  Bruno Haible  <bruno@clisp.org>
7673
7674         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7675         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7676         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7677
7678 2011-05-23  Bruno Haible  <bruno@clisp.org>
7679
7680         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7681         * m4/arcfour.m4: Remove file.
7682         * modules/crypto/arcfour (Files): Remove it.
7683         (configure.ac): Remove gl_ARCFOUR call.
7684         (Makefile.am): Augment lib_SOURCES.
7685
7686 2011-05-22  Bruno Haible  <bruno@clisp.org>
7687
7688         write: Move AC_LIBOBJ invocations to module description.
7689         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7690         * modules/write (configure.ac): ... to here.
7691
7692 2011-05-22  Bruno Haible  <bruno@clisp.org>
7693
7694         wmemset: Move AC_LIBOBJ invocations to module description.
7695         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7696         here...
7697         * modules/wmemset (configure.ac): ... to here.
7698
7699 2011-05-22  Bruno Haible  <bruno@clisp.org>
7700
7701         wmemmove: Move AC_LIBOBJ invocations to module description.
7702         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7703         here...
7704         * modules/wmemmove (configure.ac): ... to here.
7705
7706 2011-05-22  Bruno Haible  <bruno@clisp.org>
7707
7708         wmemcpy: Move AC_LIBOBJ invocations to module description.
7709         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7710         here...
7711         * modules/wmemcpy (configure.ac): ... to here.
7712
7713 2011-05-22  Bruno Haible  <bruno@clisp.org>
7714
7715         wmemcmp: Move AC_LIBOBJ invocations to module description.
7716         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7717         here...
7718         * modules/wmemcmp (configure.ac): ... to here.
7719
7720 2011-05-22  Bruno Haible  <bruno@clisp.org>
7721
7722         wmemchr: Move AC_LIBOBJ invocations to module description.
7723         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7724         here...
7725         * modules/wmemchr (configure.ac): ... to here.
7726
7727 2011-05-22  Bruno Haible  <bruno@clisp.org>
7728
7729         wcswidth: Move AC_LIBOBJ invocations to module description.
7730         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7731         here...
7732         * modules/wcswidth (configure.ac): ... to here.
7733
7734 2011-05-22  Bruno Haible  <bruno@clisp.org>
7735
7736         wcwidth: Respect rules for use of AC_LIBOBJ.
7737         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7738         invocation from here...
7739         * modules/wcwidth (configure.ac): ... to here.
7740         (Depends-on): Update conditions.
7741
7742 2011-05-22  Bruno Haible  <bruno@clisp.org>
7743
7744         wctype: Move AC_LIBOBJ invocations to module description.
7745         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7746         invocation from here...
7747         * modules/wctype (configure.ac): ... to here.
7748         (Depends-on): Update conditions.
7749
7750 2011-05-22  Bruno Haible  <bruno@clisp.org>
7751
7752         wctrans: Move AC_LIBOBJ invocations to module description.
7753         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7754         invocation from here...
7755         * modules/wctrans (configure.ac): ... to here.
7756
7757 2011-05-22  Bruno Haible  <bruno@clisp.org>
7758
7759         wctomb: Move AC_LIBOBJ invocations to module description.
7760         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7761         invocations from here...
7762         * modules/wctomb (configure.ac): ... to here.
7763
7764 2011-05-22  Bruno Haible  <bruno@clisp.org>
7765
7766         wctob: Move AC_LIBOBJ invocations to module description.
7767         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7768         gl_PREREQ_WCTOB invocations from here...
7769         * modules/wctob (configure.ac): ... to here.
7770         (Depends-on): Update conditions.
7771
7772 2011-05-22  Bruno Haible  <bruno@clisp.org>
7773
7774         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7775         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7776         here...
7777         * modules/wcsxfrm (configure.ac): ... to here.
7778
7779 2011-05-22  Bruno Haible  <bruno@clisp.org>
7780
7781         wcstok: Move AC_LIBOBJ invocations to module description.
7782         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7783         * modules/wcstok (configure.ac): ... to here.
7784
7785 2011-05-22  Bruno Haible  <bruno@clisp.org>
7786
7787         wcsstr: Move AC_LIBOBJ invocations to module description.
7788         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7789         * modules/wcsstr (configure.ac): ... to here.
7790
7791 2011-05-22  Bruno Haible  <bruno@clisp.org>
7792
7793         wcsspn: Move AC_LIBOBJ invocations to module description.
7794         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7795         * modules/wcsspn (configure.ac): ... to here.
7796
7797 2011-05-22  Bruno Haible  <bruno@clisp.org>
7798
7799         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7800         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7801         gl_PREREQ_WCSRTOMBS invocations from here...
7802         * modules/wcsrtombs (configure.ac): ... to here.
7803
7804 2011-05-22  Bruno Haible  <bruno@clisp.org>
7805
7806         wcsrchr: Move AC_LIBOBJ invocations to module description.
7807         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7808         here...
7809         * modules/wcsrchr (configure.ac): ... to here.
7810
7811 2011-05-22  Bruno Haible  <bruno@clisp.org>
7812
7813         wcspbrk: Move AC_LIBOBJ invocations to module description.
7814         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7815         here...
7816         * modules/wcspbrk (configure.ac): ... to here.
7817
7818 2011-05-22  Bruno Haible  <bruno@clisp.org>
7819
7820         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7821         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7822         gl_PREREQ_WCSNRTOMBS invocations from here...
7823         * modules/wcsnrtombs (configure.ac): ... to here.
7824
7825 2011-05-22  Bruno Haible  <bruno@clisp.org>
7826
7827         wcsnlen: Move AC_LIBOBJ invocations to module description.
7828         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7829         here...
7830         * modules/wcsnlen (configure.ac): ... to here.
7831
7832 2011-05-22  Bruno Haible  <bruno@clisp.org>
7833
7834         wcsncpy: Move AC_LIBOBJ invocations to module description.
7835         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7836         here...
7837         * modules/wcsncpy (configure.ac): ... to here.
7838
7839 2011-05-22  Bruno Haible  <bruno@clisp.org>
7840
7841         wcsncmp: Move AC_LIBOBJ invocations to module description.
7842         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7843         here...
7844         * modules/wcsncmp (configure.ac): ... to here.
7845
7846 2011-05-22  Bruno Haible  <bruno@clisp.org>
7847
7848         wcsncat: Move AC_LIBOBJ invocations to module description.
7849         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7850         here...
7851         * modules/wcsncat (configure.ac): ... to here.
7852
7853 2011-05-22  Bruno Haible  <bruno@clisp.org>
7854
7855         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7856         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7857         from here...
7858         * modules/wcsncasecmp (configure.ac): ... to here.
7859
7860 2011-05-22  Bruno Haible  <bruno@clisp.org>
7861
7862         wcslen: Move AC_LIBOBJ invocations to module description.
7863         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7864         * modules/wcslen (configure.ac): ... to here.
7865
7866 2011-05-22  Bruno Haible  <bruno@clisp.org>
7867
7868         wcsdup: Move AC_LIBOBJ invocations to module description.
7869         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7870         * modules/wcsdup (configure.ac): ... to here.
7871
7872 2011-05-22  Bruno Haible  <bruno@clisp.org>
7873
7874         wcscspn: Move AC_LIBOBJ invocations to module description.
7875         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7876         here...
7877         * modules/wcscspn (configure.ac): ... to here.
7878
7879 2011-05-22  Bruno Haible  <bruno@clisp.org>
7880
7881         wcscpy: Move AC_LIBOBJ invocations to module description.
7882         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7883         * modules/wcscpy (configure.ac): ... to here.
7884
7885 2011-05-22  Bruno Haible  <bruno@clisp.org>
7886
7887         wcscoll: Move AC_LIBOBJ invocations to module description.
7888         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7889         here...
7890         * modules/wcscoll (configure.ac): ... to here.
7891
7892 2011-05-22  Bruno Haible  <bruno@clisp.org>
7893
7894         wcscmp: Move AC_LIBOBJ invocations to module description.
7895         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7896         * modules/wcscmp (configure.ac): ... to here.
7897
7898 2011-05-22  Bruno Haible  <bruno@clisp.org>
7899
7900         wcschr: Move AC_LIBOBJ invocations to module description.
7901         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7902         * modules/wcschr (configure.ac): ... to here.
7903
7904 2011-05-22  Bruno Haible  <bruno@clisp.org>
7905
7906         wcscat: Move AC_LIBOBJ invocations to module description.
7907         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7908         * modules/wcscat (configure.ac): ... to here.
7909
7910 2011-05-22  Bruno Haible  <bruno@clisp.org>
7911
7912         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7913         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7914         here...
7915         * modules/wcscasecmp (configure.ac): ... to here.
7916
7917 2011-05-22  Bruno Haible  <bruno@clisp.org>
7918
7919         wcrtomb: Move AC_LIBOBJ invocations to module description.
7920         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7921         invocations from here...
7922         * modules/wcrtomb (configure.ac): ... to here.
7923
7924 2011-05-22  Bruno Haible  <bruno@clisp.org>
7925
7926         wcpncpy: Move AC_LIBOBJ invocations to module description.
7927         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7928         here...
7929         * modules/wcpncpy (configure.ac): ... to here.
7930
7931 2011-05-22  Bruno Haible  <bruno@clisp.org>
7932
7933         wcpcpy: Move AC_LIBOBJ invocations to module description.
7934         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7935         * modules/wcpcpy (configure.ac): ... to here.
7936
7937 2011-05-22  Bruno Haible  <bruno@clisp.org>
7938
7939         waitpid: Move AC_LIBOBJ invocations to module description.
7940         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7941         invocation from here...
7942         * modules/waitpid (configure.ac): ... to here.
7943
7944 2011-05-22  Bruno Haible  <bruno@clisp.org>
7945
7946         utimensat: Move AC_LIBOBJ invocations to module description.
7947         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7948         here...
7949         * modules/utimensat (configure.ac): ... to here.
7950
7951 2011-05-22  Bruno Haible  <bruno@clisp.org>
7952
7953         usleep: Move AC_LIBOBJ invocations to module description.
7954         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7955         here...
7956         * modules/usleep (configure.ac): ... to here.
7957
7958 2011-05-22  Bruno Haible  <bruno@clisp.org>
7959
7960         unlockpt: Move AC_LIBOBJ invocations to module description.
7961         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7962         gl_PREREQ_UNLOCKPT invocations from here...
7963         * modules/unlockpt (configure.ac): ... to here.
7964
7965 2011-05-22  Bruno Haible  <bruno@clisp.org>
7966
7967         unlink: Respect rules for use of AC_LIBOBJ.
7968         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7969         * modules/unlink (configure.ac): ... to here.
7970
7971 2011-05-22  Bruno Haible  <bruno@clisp.org>
7972
7973         uname: Move AC_LIBOBJ invocations to module description.
7974         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7975         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7976         here...
7977         * modules/uname (configure.ac): ... to here.
7978
7979 2011-05-22  Bruno Haible  <bruno@clisp.org>
7980
7981         ttyname_r: Move AC_LIBOBJ invocations to module description.
7982         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7983         gl_PREREQ_TTYNAME_R invocations from here...
7984         * modules/ttyname_r (configure.ac): ... to here.
7985
7986 2011-05-22  Bruno Haible  <bruno@clisp.org>
7987
7988         tsearch: Move AC_LIBOBJ invocations to module description.
7989         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
7990         invocations from here...
7991         * modules/tsearch (configure.ac): ... to here.
7992
7993 2011-05-22  Bruno Haible  <bruno@clisp.org>
7994
7995         towctrans: Move AC_LIBOBJ invocations to module description.
7996         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
7997         AC_LIBOBJ invocation from here...
7998         * modules/towctrans (configure.ac): ... to here.
7999
8000 2011-05-22  Bruno Haible  <bruno@clisp.org>
8001
8002         tmpfile: Move AC_LIBOBJ invocations to module description.
8003         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8004         invocations from here...
8005         * modules/tmpfile (configure.ac): ... to here.
8006
8007 2011-05-22  Bruno Haible  <bruno@clisp.org>
8008
8009         times: Move AC_LIBOBJ invocations to module description.
8010         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8011         * modules/times (configure.ac): ... to here.
8012
8013 2011-05-22  Bruno Haible  <bruno@clisp.org>
8014
8015         time_r: Move AC_LIBOBJ invocations to module description.
8016         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8017         invocations from here...
8018         * modules/time_r (configure.ac): ... to here.
8019
8020 2011-05-22  Bruno Haible  <bruno@clisp.org>
8021
8022         timegm: Move AC_LIBOBJ invocations to module description.
8023         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8024         invocations from here...
8025         * modules/timegm (configure.ac): ... to here.
8026
8027 2011-05-22  Bruno Haible  <bruno@clisp.org>
8028
8029         tcgetsid: Move AC_LIBOBJ invocations to module description.
8030         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8031         and gl_PREREQ_TCGETSID invocations from here...
8032         * modules/tcgetsid (configure.ac): ... to here.
8033         (Depends-on): Update conditions.
8034
8035 2011-05-22  Bruno Haible  <bruno@clisp.org>
8036
8037         symlinkat: Move AC_LIBOBJ invocations to module description.
8038         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8039         here...
8040         * modules/symlinkat (configure.ac): ... to here.
8041
8042 2011-05-22  Bruno Haible  <bruno@clisp.org>
8043
8044         symlink: Move AC_LIBOBJ invocations to module description.
8045         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8046         here...
8047         * modules/symlink (configure.ac): ... to here.
8048
8049 2011-05-22  Bruno Haible  <bruno@clisp.org>
8050
8051         strverscmp: Move AC_LIBOBJ invocations to module description.
8052         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8054         from here...
8055         * modules/strverscmp (configure.ac): ... to here.
8056
8057 2011-05-22  Bruno Haible  <bruno@clisp.org>
8058
8059         strtok_r: Move AC_LIBOBJ invocations to module description.
8060         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8061         and gl_PREREQ_STRTOK_R invocations from here...
8062         * modules/strtok_r (configure.ac): ... to here.
8063         (Depends-on): Update conditions.
8064
8065 2011-05-22  Bruno Haible  <bruno@clisp.org>
8066
8067         strtoumax: Move AC_LIBOBJ invocations to module description.
8068         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8069         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8070         from here...
8071         * modules/strtoumax (configure.ac): ... to here.
8072
8073 2011-05-22  Bruno Haible  <bruno@clisp.org>
8074
8075         strtoimax: Move AC_LIBOBJ invocations to module description.
8076         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8077         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8078         from here...
8079         * modules/strtoimax (configure.ac): ... to here.
8080
8081 2011-05-22  Bruno Haible  <bruno@clisp.org>
8082
8083         strtoull: Move AC_LIBOBJ invocations to module description.
8084         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8085         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8086         from here...
8087         * modules/strtoull (configure.ac): ... to here.
8088
8089 2011-05-22  Bruno Haible  <bruno@clisp.org>
8090
8091         strtoll: Move AC_LIBOBJ invocations to module description.
8092         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8093         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8094         here...
8095         * modules/strtoll (configure.ac): ... to here.
8096
8097 2011-05-22  Bruno Haible  <bruno@clisp.org>
8098
8099         strtoul: Move AC_LIBOBJ invocations to module description.
8100         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8101         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8102         * modules/strtoul (configure.ac): ... to here.
8103
8104 2011-05-22  Bruno Haible  <bruno@clisp.org>
8105
8106         strtol: Move AC_LIBOBJ invocations to module description.
8107         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8108         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8109         * modules/strtol (configure.ac): ... to here.
8110
8111 2011-05-22  Bruno Haible  <bruno@clisp.org>
8112
8113         strtod: Move AC_LIBOBJ invocations to module description.
8114         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8115         invocations from here...
8116         * modules/strtod (configure.ac): ... to here.
8117
8118 2011-05-22  Bruno Haible  <bruno@clisp.org>
8119
8120         strstr*: Move AC_LIBOBJ invocations to module description.
8121         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8122         invocations from here...
8123         * modules/strstr-simple (configure.ac): ... to here.
8124         * modules/strstr (configure.ac): ... and here.
8125
8126 2011-05-22  Bruno Haible  <bruno@clisp.org>
8127
8128         strsignal: Move AC_LIBOBJ invocations to module description.
8129         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8130         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8131         * modules/strsignal (configure.ac): ... to here.
8132         (Depends-on): Update conditions.
8133
8134 2011-05-22  Bruno Haible  <bruno@clisp.org>
8135
8136         strsep: Move AC_LIBOBJ invocations to module description.
8137         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8138         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8139         here...
8140         * modules/strsep (configure.ac): ... to here.
8141
8142 2011-05-22  Bruno Haible  <bruno@clisp.org>
8143
8144         strptime: Move AC_LIBOBJ invocations to module description.
8145         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8146         gl_PREREQ_STRPTIME invocations from here...
8147         * modules/strptime (configure.ac): ... to here.
8148
8149 2011-05-22  Bruno Haible  <bruno@clisp.org>
8150
8151         strpbrk: Move AC_LIBOBJ invocations to module description.
8152         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8153         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8154         here...
8155         * modules/strpbrk (configure.ac): ... to here.
8156
8157 2011-05-22  Bruno Haible  <bruno@clisp.org>
8158
8159         strnlen: Move AC_LIBOBJ invocations to module description.
8160         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8161         invocations from here...
8162         * modules/strnlen (configure.ac): ... to here.
8163
8164 2011-05-22  Bruno Haible  <bruno@clisp.org>
8165
8166         strndup: Move AC_LIBOBJ invocations to module description.
8167         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8168         invocations from here...
8169         * modules/strndup (configure.ac): ... to here.
8170         (Depends-on): Update conditions.
8171
8172 2011-05-22  Bruno Haible  <bruno@clisp.org>
8173
8174         strncat: Move AC_LIBOBJ invocations to module description.
8175         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8176         invocations from here...
8177         * modules/strncat (configure.ac): ... to here.
8178
8179 2011-05-22  Bruno Haible  <bruno@clisp.org>
8180
8181         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8182         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8183         invocations from here...
8184         * modules/strdup (configure.ac): ... to here.
8185         * modules/strdup-posix (configure.ac): ... and here.
8186
8187 2011-05-22  Bruno Haible  <bruno@clisp.org>
8188
8189         strcspn: Move AC_LIBOBJ invocations to module description.
8190         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8191         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8192         here...
8193         * modules/strcspn (configure.ac): ... to here.
8194
8195 2011-05-22  Bruno Haible  <bruno@clisp.org>
8196
8197         strchrnul: Move AC_LIBOBJ invocations to module description.
8198         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8199         gl_PREREQ_STRCHRNUL invocations from here...
8200         * modules/strchrnul (configure.ac): ... to here.
8201
8202 2011-05-22  Bruno Haible  <bruno@clisp.org>
8203
8204         strcasestr*: Move AC_LIBOBJ invocations to module description.
8205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8206         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8207         * modules/strcasestr-simple (configure.ac): ... to here.
8208         * modules/strcasestr (configure.ac): ... and here.
8209
8210 2011-05-22  Bruno Haible  <bruno@clisp.org>
8211
8212         strcase: Move AC_LIBOBJ invocations to module description.
8213         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8214         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8215         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8216         gl_PREREQ_STRNCASECMP invocations from here...
8217         * modules/strcase (configure.ac): ... to here.
8218
8219 2011-05-22  Bruno Haible  <bruno@clisp.org>
8220
8221         stpncpy: Move AC_LIBOBJ invocations to module description.
8222         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8223         here...
8224         * modules/stpncpy (configure.ac): ... to here.
8225
8226 2011-05-22  Bruno Haible  <bruno@clisp.org>
8227
8228         stpcpy: Move AC_LIBOBJ invocations to module description.
8229         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8231         here...
8232         * modules/stpcpy (configure.ac): ... to here.
8233
8234 2011-05-21  Bruno Haible  <bruno@clisp.org>
8235
8236         stat: Move AC_LIBOBJ invocations to module description.
8237         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8238         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8239         here...
8240         * modules/stat (configure.ac): ... to here.
8241
8242 2011-05-21  Bruno Haible  <bruno@clisp.org>
8243
8244         sleep: Move AC_LIBOBJ invocations to module description.
8245         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8246         * modules/sleep (configure.ac): ... to here.
8247
8248 2011-05-21  Bruno Haible  <bruno@clisp.org>
8249
8250         signbit: Move AC_LIBOBJ invocations to module description.
8251         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8252         * modules/signbit (configure.ac): ... to here.
8253
8254 2011-05-21  Bruno Haible  <bruno@clisp.org>
8255
8256         sigprocmask: Move AC_LIBOBJ invocations to module description.
8257         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8258         gl_PREREQ_SIGPROMASK invocations from here...
8259         * modules/sigprocmask (configure.ac): ... to here.
8260
8261 2011-05-21  Bruno Haible  <bruno@clisp.org>
8262
8263         sigaction: Move AC_LIBOBJ invocations to module description.
8264         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8265         gl_PREREQ_SIGACTION invocations from here...
8266         * modules/sigaction (configure.ac): ... to here.
8267
8268 2011-05-21  Bruno Haible  <bruno@clisp.org>
8269
8270         sig2str: Move AC_LIBOBJ invocations to module description.
8271         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8272         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8273         here...
8274         * modules/sig2str (configure.ac): ... to here.
8275
8276 2011-05-21  Bruno Haible  <bruno@clisp.org>
8277
8278         setlocale: Move AC_LIBOBJ invocations to module description.
8279         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8280         gl_PREREQ_SETLOCALE invocations from here...
8281         * modules/setlocale (configure.ac): ... to here.
8282
8283 2011-05-21  Bruno Haible  <bruno@clisp.org>
8284
8285         unsetenv: Move AC_LIBOBJ invocations to module description.
8286         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8287         and gl_PREREQ_UNSETENV invocations from here...
8288         * modules/unsetenv (configure.ac): ... to here.
8289         (Depends-on): Update.
8290
8291 2011-05-21  Bruno Haible  <bruno@clisp.org>
8292
8293         setenv: Move AC_LIBOBJ invocations to module description.
8294         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8295         here...
8296         * modules/setenv (configure.ac): ... to here.
8297
8298 2011-05-21  Bruno Haible  <bruno@clisp.org>
8299
8300         selinux-h: Move AC_LIBOBJ invocations to module description.
8301         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8302         AC_LIBOBJ invocation from here...
8303         * modules/selinux-h (configure.ac): ... to here.
8304
8305 2011-05-21  Bruno Haible  <bruno@clisp.org>
8306
8307         select: Respect rules for use of AC_LIBOBJ.
8308         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8309         here...
8310         * modules/select (configure.ac): ... to here.
8311
8312 2011-05-21  Bruno Haible  <bruno@clisp.org>
8313
8314         scandir: Move AC_LIBOBJ invocations to module description.
8315         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8316         invocations from here...
8317         * modules/scandir (configure.ac): ... to here.
8318
8319 2011-05-21  Bruno Haible  <bruno@clisp.org>
8320
8321         rpmatch: Move AC_LIBOBJ invocations to module description.
8322         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8323         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8324         here...
8325         * modules/rpmatch (configure.ac): ... to here.
8326
8327 2011-05-21  Bruno Haible  <bruno@clisp.org>
8328
8329         rmdir: Respect rules for use of AC_LIBOBJ.
8330         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8331         * modules/rmdir (configure.ac): ... to here.
8332
8333 2011-05-21  Bruno Haible  <bruno@clisp.org>
8334
8335         renameat: Move AC_LIBOBJ invocations to module description.
8336         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8337         here...
8338         * modules/renameat (configure.ac): ... to here.
8339
8340 2011-05-21  Bruno Haible  <bruno@clisp.org>
8341
8342         rename: Respect rules for use of AC_LIBOBJ.
8343         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8344         here...
8345         * modules/rename (configure.ac): ... to here.
8346
8347 2011-05-21  Bruno Haible  <bruno@clisp.org>
8348
8349         remove: Move AC_LIBOBJ invocations to module description.
8350         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8351         here...
8352         * modules/remove (configure.ac): ... to here.
8353
8354 2011-05-21  Bruno Haible  <bruno@clisp.org>
8355
8356         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8357         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8358         macro.
8359         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8360         * modules/relocatable-lib (configure.ac): ... to here.
8361         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8362         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8363
8364 2011-05-21  Bruno Haible  <bruno@clisp.org>
8365
8366         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8367         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8368         here...
8369         * modules/relocatable-prog (configure.ac): ... to here.
8370
8371 2011-05-21  Bruno Haible  <bruno@clisp.org>
8372
8373         regex: Move AC_LIBOBJ invocations to module description.
8374         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8375         invocations from here...
8376         * modules/regex (configure.ac): ... to here.
8377
8378 2011-05-21  Bruno Haible  <bruno@clisp.org>
8379
8380         realloc-*: Move AC_LIBOBJ invocations to module description.
8381         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8382         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8383         AC_LIBOBJ invocations from here...
8384         * modules/realloc-gnu (configure.ac): ... to here.
8385         * modules/realloc-posix (configure.ac): ... and here.
8386
8387 2011-05-21  Bruno Haible  <bruno@clisp.org>
8388
8389         readutmp: Move AC_LIBOBJ invocations to module description.
8390         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8391         * modules/readutmp (configure.ac): ... to here.
8392
8393 2011-05-21  Bruno Haible  <bruno@clisp.org>
8394
8395         readlinkat: Move AC_LIBOBJ invocations to module description.
8396         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8397         here...
8398         * modules/readlinkat (configure.ac): ... to here.
8399
8400 2011-05-21  Bruno Haible  <bruno@clisp.org>
8401
8402         readlink: Move AC_LIBOBJ invocations to module description.
8403         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8404         gl_PREREQ_READLINK invocations from here...
8405         * modules/readlink (configure.ac): ... to here.
8406
8407 2011-05-21  Bruno Haible  <bruno@clisp.org>
8408
8409         readline: Move AC_LIBOBJ invocations to module description.
8410         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8411         gl_PREREQ_READLINE invocations from here...
8412         * modules/readline (configure.ac): ... to here.
8413
8414 2011-05-21  Bruno Haible  <bruno@clisp.org>
8415
8416         read: Move AC_LIBOBJ invocations to module description.
8417         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8418         * modules/read (configure.ac): ... to here.
8419
8420 2011-05-21  Bruno Haible  <bruno@clisp.org>
8421
8422         rawmemchr: Move AC_LIBOBJ invocations to module description.
8423         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8424         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8425         from here...
8426         * modules/rawmemchr (configure.ac): ... to here.
8427
8428 2011-05-21  Bruno Haible  <bruno@clisp.org>
8429
8430         random_r: Move AC_LIBOBJ invocations to module description.
8431         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8432         gl_PREREQ_RANDOM_R invocations from here...
8433         * modules/random_r (configure.ac): ... to here.
8434
8435 2011-05-21  Bruno Haible  <bruno@clisp.org>
8436
8437         pwrite: Move AC_LIBOBJ invocations to module description.
8438         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8439         * modules/pwrite (configure.ac): ... to here.
8440
8441 2011-05-21  Bruno Haible  <bruno@clisp.org>
8442
8443         putenv: Move AC_LIBOBJ invocations to module description.
8444         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8445         * modules/putenv (configure.ac): ... to here.
8446
8447 2011-05-21  Bruno Haible  <bruno@clisp.org>
8448
8449         login_tty: Move AC_LIBOBJ invocations to module description.
8450         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8451         * modules/login_tty (configure.ac): ... to here.
8452
8453 2011-05-21  Bruno Haible  <bruno@clisp.org>
8454
8455         openpty: Move AC_LIBOBJ invocations to module description.
8456         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8457         * modules/openpty (configure.ac): ... to here.
8458
8459 2011-05-21  Bruno Haible  <bruno@clisp.org>
8460
8461         forkpty: Move AC_LIBOBJ invocations to module description.
8462         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8463         * modules/forkpty (configure.ac): ... to here.
8464
8465 2011-05-21  Bruno Haible  <bruno@clisp.org>
8466
8467         ptsname: Move AC_LIBOBJ invocations to module description.
8468         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8469         invocations from here...
8470         * modules/ptsname (configure.ac): ... to here.
8471
8472 2011-05-21  Bruno Haible  <bruno@clisp.org>
8473
8474         pread: Move AC_LIBOBJ invocations to module description.
8475         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8476         * modules/pread (configure.ac): ... to here.
8477
8478 2011-05-21  Bruno Haible  <bruno@clisp.org>
8479
8480         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8481         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8482         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8483         * modules/posix_spawn (configure.ac): ... to here.
8484         * modules/posix_spawnp (configure.ac): ... and here.
8485
8486 2011-05-21  Bruno Haible  <bruno@clisp.org>
8487
8488         popen: Move AC_LIBOBJ invocations to module description.
8489         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8490         invocations from here...
8491         * modules/popen (configure.ac): ... to here.
8492
8493 2011-05-21  Bruno Haible  <bruno@clisp.org>
8494
8495         poll: Move AC_LIBOBJ invocations to module description.
8496         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8497         invocations from here...
8498         * modules/poll (configure.ac): ... to here.
8499
8500 2011-05-21  Bruno Haible  <bruno@clisp.org>
8501
8502         pipe-posix: Move AC_LIBOBJ invocations to module description.
8503         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8504         * modules/pipe-posix (configure.ac): ... to here.
8505
8506 2011-05-21  Bruno Haible  <bruno@clisp.org>
8507
8508         openat: Respect rules for use of AC_LIBOBJ.
8509         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8510         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8511         * modules/openat (configure.ac): ... to here.
8512
8513 2011-05-21  Bruno Haible  <bruno@clisp.org>
8514
8515         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8516         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8517         invocation from here...
8518         * modules/obstack-printf (configure.ac): ... to here.
8519         * modules/obstack-printf-posix (configure.ac): ... and here.
8520
8521 2011-05-21  Bruno Haible  <bruno@clisp.org>
8522
8523         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8524         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8525         from here...
8526         * modules/nl_langinfo (configure.ac): ... to here.
8527
8528 2011-05-21  Bruno Haible  <bruno@clisp.org>
8529
8530         nanosleep: Move AC_LIBOBJ invocations to module description.
8531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8532         gl_PREREQ_NANOSLEEP invocations from here...
8533         * modules/nanosleep (configure.ac): ... to here.
8534
8535 2011-05-21  Bruno Haible  <bruno@clisp.org>
8536
8537         mountlist: Move AC_LIBOBJ invocations to module description.
8538         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8539         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8540         * modules/mountlist (configure.ac): ... to here.
8541
8542 2011-05-21  Bruno Haible  <bruno@clisp.org>
8543
8544         mktime: Respect rules for use of AC_LIBOBJ.
8545         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8546         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8547         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8548         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8549         * modules/mktime (configure.ac): ... to here.
8550         * modules/mktime-internal (configure.ac): ... and here.
8551         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8552
8553 2011-05-21  Bruno Haible  <bruno@clisp.org>
8554
8555         mkstemps: Move AC_LIBOBJ invocations to module description.
8556         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8557         here...
8558         * modules/mkstemps (configure.ac): ... to here.
8559
8560 2011-05-21  Bruno Haible  <bruno@clisp.org>
8561
8562         mkstemp: Move AC_LIBOBJ invocations to module description.
8563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8564         gl_PREREQ_MKSTEMP invocations from here...
8565         * modules/mkstemp (configure.ac): ... to here.
8566
8567 2011-05-21  Bruno Haible  <bruno@clisp.org>
8568
8569         mkostemps: Move AC_LIBOBJ invocations to module description.
8570         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8571         here...
8572         * modules/mkostemps (configure.ac): ... to here.
8573
8574 2011-05-21  Bruno Haible  <bruno@clisp.org>
8575
8576         mkostemp: Move AC_LIBOBJ invocations to module description.
8577         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8578         gl_PREREQ_MKOSTEMP invocations from here...
8579         * modules/mkostemp (configure.ac): ... to here.
8580
8581 2011-05-21  Bruno Haible  <bruno@clisp.org>
8582
8583         mknod: Move AC_LIBOBJ invocations to module description.
8584         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8585         * modules/mknod (configure.ac): ... to here.
8586
8587 2011-05-21  Bruno Haible  <bruno@clisp.org>
8588
8589         mkfifoat: Move AC_LIBOBJ invocations to module description.
8590         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8591         here...
8592         * modules/mkfifoat (configure.ac): ... to here.
8593
8594 2011-05-21  Bruno Haible  <bruno@clisp.org>
8595
8596         mkfifo: Respect rules for use of AC_LIBOBJ.
8597         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8598         here...
8599         * modules/mkfifo (configure.ac): ... to here.
8600
8601 2011-05-21  Bruno Haible  <bruno@clisp.org>
8602
8603         mkdtemp: Move AC_LIBOBJ invocations to module description.
8604         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8605         invocations from here...
8606         * modules/mkdtemp (configure.ac): ... to here.
8607
8608 2011-05-21  Bruno Haible  <bruno@clisp.org>
8609
8610         mkdir: Move AC_LIBOBJ invocations to module description.
8611         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8612         * modules/mkdir (configure.ac): ... to here.
8613
8614 2011-05-21  Bruno Haible  <bruno@clisp.org>
8615
8616         memset: Move AC_LIBOBJ invocations to module description.
8617         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8618         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8619         here...
8620         * modules/memset (configure.ac): ... to here.
8621
8622 2011-05-21  Bruno Haible  <bruno@clisp.org>
8623
8624         memrchr: Move AC_LIBOBJ invocations to module description.
8625         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8626         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8627         here...
8628         * modules/memrchr (configure.ac): ... to here.
8629
8630 2011-05-21  Bruno Haible  <bruno@clisp.org>
8631
8632         mempcpy: Move AC_LIBOBJ invocations to module description.
8633         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8634         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8635         here...
8636         * modules/mempcpy (configure.ac): ... to here.
8637
8638 2011-05-21  Bruno Haible  <bruno@clisp.org>
8639
8640         memmove: Move AC_LIBOBJ invocations to module description.
8641         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8642         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8643         here...
8644         * modules/memmove (configure.ac): ... to here.
8645
8646 2011-05-21  Bruno Haible  <bruno@clisp.org>
8647
8648         memmem*: Move AC_LIBOBJ invocations to module description.
8649         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8650         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8651         here...
8652         (gl_FUNC_MEMMEM): ... and here...
8653         * modules/memmem-simple (configure.ac): ... to here.
8654         * modules/memmem (configure.ac): ... and here.
8655
8656 2011-05-21  Bruno Haible  <bruno@clisp.org>
8657
8658         memcpy: Move AC_LIBOBJ invocations to module description.
8659         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8660         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8661         here...
8662         * modules/memcpy (configure.ac): ... to here.
8663
8664 2011-05-21  Bruno Haible  <bruno@clisp.org>
8665
8666         memcmp: Simplify autoconf macro.
8667         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8668         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8669         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8670
8671 2011-05-21  Bruno Haible  <bruno@clisp.org>
8672
8673         memcmp: Move AC_LIBOBJ invocations to module description.
8674         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8675         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8676         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8677         * modules/memcmp (configure.ac): ... to here.
8678         (Depends-on): Update conditions.
8679
8680 2011-05-21  Bruno Haible  <bruno@clisp.org>
8681
8682         memchr: Respect rules for use of AC_LIBOBJ.
8683         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8684         invocations from here...
8685         * modules/memchr (configure.ac): ... to here.
8686
8687 2011-05-21  Bruno Haible  <bruno@clisp.org>
8688
8689         mbtowc: Move AC_LIBOBJ invocations to module description.
8690         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8691         invocations from here...
8692         * modules/mbtowc (configure.ac): ... to here.
8693
8694 2011-05-21  Bruno Haible  <bruno@clisp.org>
8695
8696         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8697         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8698         gl_PREREQ_MBSRTOWCS invocations from here...
8699         * modules/mbsrtowcs (configure.ac): ... to here.
8700
8701 2011-05-21  Bruno Haible  <bruno@clisp.org>
8702
8703         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8704         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8705         gl_PREREQ_MBSNRTOWCS invocations from here...
8706         * modules/mbsnrtowcs (configure.ac): ... to here.
8707
8708 2011-05-21  Bruno Haible  <bruno@clisp.org>
8709
8710         mbsinit: Move AC_LIBOBJ invocations to module description.
8711         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8712         invocations from here...
8713         * modules/mbsinit (configure.ac): ... to here.
8714
8715 2011-05-21  Bruno Haible  <bruno@clisp.org>
8716
8717         mbrlen: Move AC_LIBOBJ invocations to module description.
8718         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8719         invocations from here...
8720         * modules/mbrlen (configure.ac): ... to here.
8721
8722 2011-05-21  Bruno Haible  <bruno@clisp.org>
8723
8724         mbrtowc: Respect rules for use of AC_LIBOBJ.
8725         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8726         invocations from here...
8727         * modules/mbrtowc (configure.ac): ... to here.
8728
8729 2011-05-21  Bruno Haible  <bruno@clisp.org>
8730
8731         malloc-*: Move AC_LIBOBJ invocations to module description.
8732         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8733         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8734         AC_LIBOBJ invocations from here...
8735         * modules/malloc-gnu (configure.ac): ... to here.
8736         * modules/malloc-posix (configure.ac): ... and here.
8737
8738 2011-05-21  Bruno Haible  <bruno@clisp.org>
8739
8740         lstat, openat: Respect rules for use of AC_LIBOBJ.
8741         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8742         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8743         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8744         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8745         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8746         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8747         here.
8748         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8749
8750 2011-05-21  Bruno Haible  <bruno@clisp.org>
8751
8752         lseek: Move AC_LIBOBJ invocations to module description.
8753         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8754         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8755         * modules/lseek (configure.ac): ... to here.
8756
8757 2011-05-21  Bruno Haible  <bruno@clisp.org>
8758
8759         linkat: Move AC_LIBOBJ invocations to module description.
8760         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8761         here...
8762         * modules/linkat (configure.ac): ... to here.
8763
8764 2011-05-21  Bruno Haible  <bruno@clisp.org>
8765
8766         link: Respect rules for use of AC_LIBOBJ.
8767         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8768         * modules/link (configure.ac): ... to here.
8769
8770 2011-05-21  Bruno Haible  <bruno@clisp.org>
8771
8772         lchown: Move AC_LIBOBJ invocations to module description.
8773         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8774         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8775         * modules/lchown (configure.ac): ... to here.
8776
8777 2011-05-21  Bruno Haible  <bruno@clisp.org>
8778
8779         iswctype: Move AC_LIBOBJ invocations to module description.
8780         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8781         here...
8782         * modules/iswctype (configure.ac): ... to here.
8783
8784 2011-05-21  Bruno Haible  <bruno@clisp.org>
8785
8786         iswblank: Move AC_LIBOBJ invocations to module description.
8787         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8788         here...
8789         * modules/iswblank (configure.ac): ... to here.
8790
8791 2011-05-21  Bruno Haible  <bruno@clisp.org>
8792
8793         atanl: Move AC_LIBOBJ invocations to module description.
8794         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8795         * modules/atanl (configure.ac): ... to here.
8796
8797 2011-05-21  Bruno Haible  <bruno@clisp.org>
8798
8799         acosl: Move AC_LIBOBJ invocations to module description.
8800         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8801         * modules/acosl (configure.ac): ... to here.
8802
8803 2011-05-21  Bruno Haible  <bruno@clisp.org>
8804
8805         asinl: Respect rules for use of AC_LIBOBJ.
8806         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8807         * modules/asinl (configure.ac): ... to here.
8808
8809 2011-05-21  Bruno Haible  <bruno@clisp.org>
8810
8811         tanl: Move AC_LIBOBJ invocations to module description.
8812         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8813         * modules/tanl (configure.ac): ... to here.
8814
8815 2011-05-21  Bruno Haible  <bruno@clisp.org>
8816
8817         cosl: Move AC_LIBOBJ invocations to module description.
8818         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8819         * modules/cosl (configure.ac): ... to here.
8820
8821 2011-05-21  Bruno Haible  <bruno@clisp.org>
8822
8823         sinl: Move AC_LIBOBJ invocations to module description.
8824         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8825         * modules/sinl (configure.ac): ... to here.
8826
8827 2011-05-21  Bruno Haible  <bruno@clisp.org>
8828
8829         logl: Move AC_LIBOBJ invocations to module description.
8830         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8831         * modules/logl (configure.ac): ... to here.
8832
8833 2011-05-21  Bruno Haible  <bruno@clisp.org>
8834
8835         expl: Move AC_LIBOBJ invocations to module description.
8836         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8837         * modules/expl (configure.ac): ... to here.
8838
8839 2011-05-21  Bruno Haible  <bruno@clisp.org>
8840
8841         roundl: Move AC_LIBOBJ invocations to module description.
8842         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8843         * modules/roundl (configure.ac): ... to here.
8844
8845 2011-05-21  Bruno Haible  <bruno@clisp.org>
8846
8847         round: Move AC_LIBOBJ invocations to module description.
8848         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8849         * modules/round (configure.ac): ... to here.
8850
8851 2011-05-21  Bruno Haible  <bruno@clisp.org>
8852
8853         roundf: Move AC_LIBOBJ invocations to module description.
8854         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8855         * modules/roundf (configure.ac): ... to here.
8856
8857 2011-05-21  Bruno Haible  <bruno@clisp.org>
8858
8859         truncl: Move AC_LIBOBJ invocations to module description.
8860         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8861         * modules/truncl (configure.ac): ... to here.
8862
8863 2011-05-21  Bruno Haible  <bruno@clisp.org>
8864
8865         trunc: Move AC_LIBOBJ invocations to module description.
8866         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8867         * modules/trunc (configure.ac): ... to here.
8868
8869 2011-05-21  Bruno Haible  <bruno@clisp.org>
8870
8871         truncf: Move AC_LIBOBJ invocations to module description.
8872         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8873         * modules/truncf (configure.ac): ... to here.
8874
8875 2011-05-21  Bruno Haible  <bruno@clisp.org>
8876
8877         ceill: Move AC_LIBOBJ invocations to module description.
8878         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8879         * modules/ceill (configure.ac): ... to here.
8880
8881 2011-05-21  Bruno Haible  <bruno@clisp.org>
8882
8883         ceil: Move AC_LIBOBJ invocations to module description.
8884         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8885         * modules/ceil (configure.ac): ... to here.
8886
8887 2011-05-21  Bruno Haible  <bruno@clisp.org>
8888
8889         ceilf: Move AC_LIBOBJ invocations to module description.
8890         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8891         * modules/ceilf (configure.ac): ... to here.
8892
8893 2011-05-21  Bruno Haible  <bruno@clisp.org>
8894
8895         floorl: Respect rules for use of AC_LIBOBJ.
8896         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8897         * modules/floorl (configure.ac): ... to here.
8898
8899 2011-05-21  Bruno Haible  <bruno@clisp.org>
8900
8901         floor: Respect rules for use of AC_LIBOBJ.
8902         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8903         * modules/floor (configure.ac): ... to here.
8904
8905 2011-05-21  Bruno Haible  <bruno@clisp.org>
8906
8907         floorf: Move AC_LIBOBJ invocations to module description.
8908         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8909         * modules/floorf (configure.ac): ... to here.
8910
8911 2011-05-20  Bruno Haible  <bruno@clisp.org>
8912
8913         sqrtl: Respect rules for use of AC_LIBOBJ.
8914         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8915         * modules/sqrtl (configure.ac): ... to here.
8916
8917 2011-05-20  Bruno Haible  <bruno@clisp.org>
8918
8919         ldexpl: Respect rules for use of AC_LIBOBJ.
8920         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8921         * modules/ldexpl (configure.ac): ... to here.
8922
8923 2011-05-20  Bruno Haible  <bruno@clisp.org>
8924
8925         frexpl*: Respect rules for use of AC_LIBOBJ.
8926         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8927         invocation from here...
8928         * modules/frexpl (configure.ac): ... to here.
8929         * modules/frexpl-nolibm (configure.ac): ... and here.
8930
8931 2011-05-20  Bruno Haible  <bruno@clisp.org>
8932
8933         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8934         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8935         invocation from here...
8936         * modules/frexp (configure.ac): ... to here.
8937         * modules/frexp-nolibm (configure.ac): ... and here.
8938
8939 2011-05-20  Bruno Haible  <bruno@clisp.org>
8940
8941         isnan: Respect rules for use of AC_LIBOBJ.
8942         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8943         invocations here.
8944         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8945         REPLACE_ISNAN.
8946         * modules/isnand (configure.ac): Likewise.
8947         * modules/isnanl (configure.ac): Likewise.
8948
8949 2011-05-20  Bruno Haible  <bruno@clisp.org>
8950
8951         isnanl*: Respect rules for use of AC_LIBOBJ.
8952         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8953         invocation from here...
8954         * modules/isnanl (configure.ac): ... to here.
8955         * modules/isnanl-nolibm (configure.ac): ... and here.
8956
8957 2011-05-20  Bruno Haible  <bruno@clisp.org>
8958
8959         isnand*: Move AC_LIBOBJ invocations to module description.
8960         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8961         invocation from here...
8962         * modules/isnand (configure.ac): ... to here.
8963         * modules/isnand-nolibm (configure.ac): ... and here.
8964
8965 2011-05-20  Bruno Haible  <bruno@clisp.org>
8966
8967         isnanf*: Move AC_LIBOBJ invocations to module description.
8968         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8969         invocation from here...
8970         * modules/isnanf (configure.ac): ... to here.
8971         * modules/isnanf-nolibm (configure.ac): ... and here.
8972
8973 2011-05-20  Bruno Haible  <bruno@clisp.org>
8974
8975         isnan*: Separate the AC_LIBOBJ invocations.
8976         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8977         AC_LIBOBJ invocation.
8978         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8979         here.
8980         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8981         AC_LIBOBJ invocation.
8982         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8983         here.
8984         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8985         AC_LIBOBJ invocation.
8986         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8987         here.
8988         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
8989
8990 2011-05-08  Bruno Haible  <bruno@clisp.org>
8991
8992         isinf: Move AC_LIBOBJ invocations to module description.
8993         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
8994         * modules/isinf (configure.ac): ... to here.
8995
8996 2011-05-08  Bruno Haible  <bruno@clisp.org>
8997
8998         isfinite: Move AC_LIBOBJ invocations to module description.
8999         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9000         * modules/isfinite (configure.ac): ... to here.
9001
9002 2011-05-08  Bruno Haible  <bruno@clisp.org>
9003
9004         isblank: Move AC_LIBOBJ invocations to module description.
9005         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9006         here...
9007         * modules/isblank (configure.ac): ... to here.
9008
9009 2011-05-08  Bruno Haible  <bruno@clisp.org>
9010
9011         isapipe: Move AC_LIBOBJ invocations to module description.
9012         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9013         gl_PREREQ_ISAPIPE invocations from here...
9014         * modules/isapipe (configure.ac): ... to here.
9015         (Depends-on): Update condition.
9016
9017 2011-05-08  Bruno Haible  <bruno@clisp.org>
9018
9019         ioctl: Move AC_LIBOBJ invocations to module description.
9020         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9021         invocations from here...
9022         * modules/ioctl (configure.ac): ... to here.
9023         (Depends-on): Update condition.
9024
9025 2011-05-08  Bruno Haible  <bruno@clisp.org>
9026
9027         imaxdiv: Move AC_LIBOBJ invocations to module description.
9028         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9029         invocations from here...
9030         * modules/imaxdiv (configure.ac): ... to here.
9031
9032 2011-05-08  Bruno Haible  <bruno@clisp.org>
9033
9034         imaxabs: Move AC_LIBOBJ invocations to module description.
9035         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9036         invocations from here...
9037         * modules/imaxabs (configure.ac): ... to here.
9038
9039 2011-05-08  Bruno Haible  <bruno@clisp.org>
9040
9041         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9043         AC_LIBOBJ invocations from here...
9044         * modules/getaddrinfo (configure.ac): ... to here.
9045         (Depends-on): Add conditions.
9046
9047 2011-05-08  Bruno Haible  <bruno@clisp.org>
9048
9049         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9050         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9051         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9052         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9053         (gl_PREREQ_INET_PTON): ... from here.
9054         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9055         gl_PREREQ_INET_PTON here.
9056         (Depends-on): Update condition.
9057
9058 2011-05-08  Bruno Haible  <bruno@clisp.org>
9059
9060         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9061         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9062         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9063         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9064         (gl_PREREQ_INET_NTOP): ... from here.
9065         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9066         gl_PREREQ_INET_NTOP here.
9067         (Depends-on): Update condition.
9068
9069 2011-05-08  Bruno Haible  <bruno@clisp.org>
9070
9071         iconv_open: Move AC_LIBOBJ invocations to module description.
9072         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9073         AC_LIBOBJ invocations from here...
9074         * modules/iconv_open (configure.ac): ... to here.
9075
9076 2011-05-08  Bruno Haible  <bruno@clisp.org>
9077
9078         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9079         If module 'iconv_open' is among the main modules and module
9080         'iconv_open-utf' is among the tests dependencies, then
9081         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9082         return the special iconv_t values. Therefore iconv() and iconv_close()
9083         must support these special iconv_t values, already in lib, not only in
9084         tests.
9085         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9086         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9087         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9088         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9089         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9090         (Depends-on): Add the dependencies of iconv_open-utf.
9091         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9092         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9093         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9094
9095 2011-05-08  Bruno Haible  <bruno@clisp.org>
9096
9097         group-member: Move AC_LIBOBJ invocations to module description.
9098         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9099         gl_PREREQ_GROUP_MEMBER invocations from here...
9100         * modules/group-member (configure.ac): ... to here.
9101
9102 2011-05-08  Bruno Haible  <bruno@clisp.org>
9103
9104         grantpt: Move AC_LIBOBJ invocations to module description.
9105         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9106         invocations from here...
9107         * modules/grantpt (configure.ac): ... to here.
9108
9109 2011-05-08  Bruno Haible  <bruno@clisp.org>
9110
9111         glob: Move AC_LIBOBJ invocations to module description.
9112         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9113         from here...
9114         * modules/glob (configure.ac): ... to here.
9115
9116 2011-05-08  Bruno Haible  <bruno@clisp.org>
9117
9118         getusershell: Move AC_LIBOBJ invocations to module description.
9119         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9120         Move AC_LIBOBJ invocation from here...
9121         * modules/getusershell (configure.ac): ... to here.
9122         (Depends-on): Update condition.
9123
9124 2011-05-08  Bruno Haible  <bruno@clisp.org>
9125
9126         gettimeofday: Move AC_LIBOBJ invocations to module description.
9127         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9128         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9129         gl_PREREQ_GETTIMEOFDAY invocations from here...
9130         * modules/gettimeofday (configure.ac): ... to here.
9131
9132 2011-05-08  Bruno Haible  <bruno@clisp.org>
9133
9134         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9135         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9136         just gl_FUNC_TZSET.
9137         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9138         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9139         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9140         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9141
9142 2011-05-08  Bruno Haible  <bruno@clisp.org>
9143
9144         getsubopt: Move AC_LIBOBJ invocations to module description.
9145         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9146         gl_PREREQ_GETSUBOPT invocations from here...
9147         * modules/getsubopt (configure.ac): ... to here.
9148
9149 2011-05-08  Bruno Haible  <bruno@clisp.org>
9150
9151         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9152         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9153         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9154         * modules/getpass-gnu (configure.ac): ... to here.
9155
9156 2011-05-08  Bruno Haible  <bruno@clisp.org>
9157
9158         getpass: Move AC_LIBOBJ invocations to module description.
9159         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9160         gl_PREREQ_GETPASS invocations from here...
9161         * modules/getpass (configure.ac): ... to here.
9162
9163 2011-05-08  Bruno Haible  <bruno@clisp.org>
9164
9165         getpagesize: Move AC_LIBOBJ invocations to module description.
9166         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9167         from here...
9168         * modules/getpagesize (configure.ac): ... to here.
9169
9170 2011-05-08  Bruno Haible  <bruno@clisp.org>
9171
9172         getopt: Move AC_LIBOBJ invocations to module description.
9173         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9174         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9175         invocations from here...
9176         * modules/getopt-gnu (configure.ac): ... to here.
9177         * modules/getopt-posix (configure.ac): ... and here.
9178         (Depends-on): Update condition.
9179
9180 2011-05-08  Bruno Haible  <bruno@clisp.org>
9181
9182         getopt, argp: Respect rules for use of AC_LIBOBJ.
9183         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9184         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9185         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9186         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9187
9188 2011-05-08  Bruno Haible  <bruno@clisp.org>
9189
9190         getlogin_r: Move AC_LIBOBJ invocations to module description.
9191         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9192         gl_PREREQ_GETLOGIN_R invocations from here...
9193         * modules/getlogin_r (configure.ac): ... to here.
9194
9195 2011-05-08  Bruno Haible  <bruno@clisp.org>
9196
9197         getlogin: Move AC_LIBOBJ invocations to module description.
9198         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9199         here...
9200         * modules/getlogin (configure.ac): ... to here.
9201
9202 2011-05-08  Bruno Haible  <bruno@clisp.org>
9203
9204         getloadavg: Move AC_LIBOBJ invocations to module description.
9205         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9206         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9207         * modules/getloadavg (configure.ac): ... to here.
9208
9209 2011-05-08  Bruno Haible  <bruno@clisp.org>
9210
9211         gethrxtime: Move AC_LIBOBJ invocations to module description.
9212         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9213         LIB_GETHRXTIME from here...
9214         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9215         invocations from here...
9216         * modules/gethrxtime (configure.ac): ... to here.
9217
9218 2011-05-08  Bruno Haible  <bruno@clisp.org>
9219
9220         gethostname: Move AC_LIBOBJ invocations to module description.
9221         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9222         gl_PREREQ_GETHOSTNAME invocations from here...
9223         * modules/gethostname (configure.ac): ... to here.
9224
9225 2011-05-08  Bruno Haible  <bruno@clisp.org>
9226
9227         getgroups: Move AC_LIBOBJ invocations to module description.
9228         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9229         here...
9230         * modules/getgroups (configure.ac): ... to here.
9231
9232 2011-05-08  Bruno Haible  <bruno@clisp.org>
9233
9234         getdtablesize: Move AC_LIBOBJ invocations to module description.
9235         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9236         invocation from here...
9237         * modules/getdtablesize (configure.ac): ... to here.
9238
9239 2011-05-08  Bruno Haible  <bruno@clisp.org>
9240
9241         getdomainname: Move AC_LIBOBJ invocations to module description.
9242         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9243         gl_PREREQ_GETDOMAINNAME invocations from here...
9244         * modules/getdomainname (configure.ac): ... to here.
9245
9246 2011-05-08  Bruno Haible  <bruno@clisp.org>
9247
9248         getline: Move AC_LIBOBJ invocations to module description.
9249         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9250         invocations from here...
9251         * modules/getline (configure.ac): ... to here.
9252
9253 2011-05-08  Bruno Haible  <bruno@clisp.org>
9254
9255         getline: Simplify.
9256         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9257         It's already handled through the module dependency.
9258
9259 2011-05-08  Bruno Haible  <bruno@clisp.org>
9260
9261         getdelim: Move AC_LIBOBJ invocations to module description.
9262         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9263         and gl_PREREQ_GETDELIM invocations from here...
9264         * modules/getdelim (configure.ac): ... to here.
9265         (Depends-on): Fix condition.
9266
9267 2011-05-08  Bruno Haible  <bruno@clisp.org>
9268
9269         getcwd: Move AC_LIBOBJ invocations to module description.
9270         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9271         invocations from here...
9272         * modules/getcwd (configure.ac): ... to here.
9273
9274 2011-05-08  Bruno Haible  <bruno@clisp.org>
9275
9276         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9277         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9278         here...
9279         * modules/getcwd-lgpl (configure.ac): ... to here.
9280
9281 2011-05-07  Bruno Haible  <bruno@clisp.org>
9282
9283         crypto/gc: Move AC_LIBOBJ invocations to module description.
9284         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9285         * modules/crypto/gc (configure.ac): ... to here.
9286
9287 2011-05-07  Bruno Haible  <bruno@clisp.org>
9288
9289         fwriting: Move AC_LIBOBJ invocations to module description.
9290         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9291         here...
9292         * modules/fwriting (configure.ac): ... to here.
9293
9294 2011-05-07  Bruno Haible  <bruno@clisp.org>
9295
9296         fwritable: Move AC_LIBOBJ invocations to module description.
9297         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9298         here...
9299         * modules/fwritable (configure.ac): ... to here.
9300
9301 2011-05-07  Bruno Haible  <bruno@clisp.org>
9302
9303         futimens: Move AC_LIBOBJ invocations to module description.
9304         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9305         here...
9306         * modules/futimens (configure.ac): ... to here.
9307
9308 2011-05-07  Bruno Haible  <bruno@clisp.org>
9309
9310         ftruncate: Move AC_LIBOBJ invocations to module description.
9311         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9312         gl_PREREQ_FTRUNCATE invocations from here...
9313         * modules/ftruncate (configure.ac): ... to here.
9314
9315 2011-05-07  Bruno Haible  <bruno@clisp.org>
9316
9317         fsync: Move AC_LIBOBJ invocations to module description.
9318         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9319         invocations from here...
9320         * modules/fsync (configure.ac): ... to here.
9321
9322 2011-05-07  Bruno Haible  <bruno@clisp.org>
9323
9324         fsusage: Move AC_LIBOBJ invocations to module description.
9325         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9326         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9327         * modules/fsusage (configure.ac): ... to here.
9328
9329 2011-05-07  Bruno Haible  <bruno@clisp.org>
9330
9331         freopen: Move AC_LIBOBJ invocations to module description.
9332         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9333         invocations from here...
9334         * modules/freopen (configure.ac): ... to here.
9335
9336 2011-05-07  Bruno Haible  <bruno@clisp.org>
9337
9338         free: Move AC_LIBOBJ invocations to module description.
9339         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9340         invocations from here...
9341         * modules/free (configure.ac): ... to here.
9342
9343 2011-05-07  Bruno Haible  <bruno@clisp.org>
9344
9345         freadable: Move AC_LIBOBJ invocations to module description.
9346         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9347         here...
9348         * modules/freadable (configure.ac): ... to here.
9349
9350 2011-05-07  Bruno Haible  <bruno@clisp.org>
9351
9352         fpurge: Move AC_LIBOBJ invocations to module description.
9353         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9354         invocations from here...
9355         * modules/fpurge (configure.ac): ... to here.
9356
9357 2011-05-07  Bruno Haible  <bruno@clisp.org>
9358
9359         fpending: Move AC_LIBOBJ invocations to module description.
9360         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9361         gl_FUNC_FPENDING.
9362         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9363         invocations from here...
9364         * modules/fpending (configure.ac): ... to here.
9365
9366 2011-05-07  Bruno Haible  <bruno@clisp.org>
9367
9368         fopen: Move AC_LIBOBJ invocations to module description.
9369         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9370         invocations from here...
9371         * modules/fopen (configure.ac): ... to here.
9372
9373 2011-05-07  Bruno Haible  <bruno@clisp.org>
9374
9375         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9376         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9377         gl_FUNC_FNMATCH_POSIX.
9378         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9379         invocations from here...
9380         * modules/fnmatch (configure.ac): ... to here.
9381         * modules/fnmatch-gnu (configure.ac): ... and here.
9382
9383 2011-05-07  Bruno Haible  <bruno@clisp.org>
9384
9385         flock: Move AC_LIBOBJ invocations to module description.
9386         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9387         invocations from here...
9388         * modules/flock (configure.ac): ... to here.
9389
9390 2011-05-07  Bruno Haible  <bruno@clisp.org>
9391
9392         fileblocks: Move AC_LIBOBJ invocations to module description.
9393         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9394         gl_PREREQ_FILEBLOCKS invocations from here...
9395         * modules/fileblocks (configure.ac): ... to here.
9396
9397 2011-05-06  Bruno Haible  <bruno@clisp.org>
9398
9399         fflush: Move AC_LIBOBJ invocations to module description.
9400         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9401         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9402         invocations from here...
9403         * modules/fflush (configure.ac): ... to here.
9404
9405 2011-05-06  Bruno Haible  <bruno@clisp.org>
9406
9407         fdopendir: Move AC_LIBOBJ invocations to module description.
9408         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9409         here...
9410         * modules/fdopendir (configure.ac): ... to here.
9411         (Depends-on): Improve conditions.
9412
9413 2011-05-06  Bruno Haible  <bruno@clisp.org>
9414
9415         _Exit: Move AC_LIBOBJ invocations to module description.
9416         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9417         invocations from here...
9418         * modules/_Exit (configure.ac): ... to here.
9419
9420 2011-05-21  Bruno Haible  <bruno@clisp.org>
9421
9422         euidaccess: Respect rules for use of AC_LIBOBJ.
9423         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9424         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9425         from here...
9426         * modules/euidaccess (configure.ac): ... to here.
9427
9428 2011-05-06  Bruno Haible  <bruno@clisp.org>
9429
9430         error: Move AC_LIBOBJ invocations to module description.
9431         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9432         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9433         invocations from here...
9434         * modules/error (configure.ac): ... to here.
9435
9436 2011-05-06  Bruno Haible  <bruno@clisp.org>
9437
9438         duplocale: Move AC_LIBOBJ invocations to module description.
9439         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9440         gl_PREREQ_DUPLOCALE invocations from here...
9441         * modules/duplocale (configure.ac): ... to here.
9442
9443 2011-05-05  Bruno Haible  <bruno@clisp.org>
9444
9445         dirfd: Move AC_LIBOBJ invocations to module description.
9446         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9447         gl_FUNC_DIRFD.
9448         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9449         here...
9450         * modules/dirfd (configure.ac): ... to here.
9451         (Depends-on): Fix condition.
9452
9453 2011-05-05  Bruno Haible  <bruno@clisp.org>
9454
9455         chown: Respect rules for use of AC_LIBOBJ.
9456         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9457         * modules/chown (configure.ac): ... to here.
9458
9459 2011-05-05  Bruno Haible  <bruno@clisp.org>
9460
9461         chdir-long: Move AC_LIBOBJ invocations to module description.
9462         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9463         gl_PREREQ_CHDIR_LONG invocations from here...
9464         * modules/chdir-long (configure.ac): ... to here.
9465
9466 2011-05-05  Bruno Haible  <bruno@clisp.org>
9467
9468         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9469         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9470         from here...
9471         * modules/canonicalize-lgpl (configure.ac): ... to here.
9472
9473 2011-05-05  Bruno Haible  <bruno@clisp.org>
9474
9475         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9476         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9477         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9478         REPLACE_CALLOC.
9479         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9480         * modules/calloc-gnu (configure.ac): Likewise.
9481
9482 2011-05-05  Bruno Haible  <bruno@clisp.org>
9483
9484         btowc: Move AC_LIBOBJ invocations to module description.
9485         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9486         invocations from here...
9487         * modules/btowc (configure.ac): ... to here.
9488
9489 2011-05-21  Bruno Haible  <bruno@clisp.org>
9490
9491         atexit: Move AC_LIBOBJ invocations to module description.
9492         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9493         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9494         here...
9495         * modules/atexit (configure.ac): ... to here.
9496
9497 2011-05-05  Bruno Haible  <bruno@clisp.org>
9498
9499         atoll: Move AC_LIBOBJ invocations to module description.
9500         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9501         invocations from here...
9502         * modules/atoll (configure.ac): ... to here.
9503
9504 2011-05-05  Bruno Haible  <bruno@clisp.org>
9505
9506         argz: Move AC_LIBOBJ invocations to module description.
9507         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9508         * modules/argz (configure.ac): ... to here.
9509
9510 2011-05-05  Bruno Haible  <bruno@clisp.org>
9511
9512         alphasort: Move AC_LIBOBJ invocations to module description.
9513         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9514         gl_PREREQ_ALPHASORT invocations from here...
9515         * modules/alphasort (configure.ac): ... to here.
9516
9517 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9518
9519         verify: new macro verify_expr; verify_true deprecated
9520         * NEWS: Mention this.
9521         * doc/verify.texi (Compile-time Assertions): Document this.
9522         * lib/verify.h (verify_true): Deprecate.
9523         (verify_expr): New macro.
9524         * tests/test-verify.c (function): Test verify_expr.
9525
9526 2011-06-14  Jim Meyering  <meyering@redhat.com>
9527
9528         init.sh: give more portable redirection-related advice in a comment
9529         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9530         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9531         for lots of discussion.  Stefano Lattarini suggested the solution
9532         of putting "9>&2" after the command.  Reported by Bruno Haible.
9533
9534 2011-06-13  Bruno Haible  <bruno@clisp.org>
9535
9536         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9537         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9538         'none'.
9539
9540 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9541
9542         ftoastr: use strtof only if HAVE_STRTOF
9543         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9544         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9545         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9546         * modules/ftoastr (configure.ac): Check for strtof.
9547
9548 2011-06-13  Bruno Haible  <bruno@clisp.org>
9549
9550         gnulib-tool: Addendum to 2011-06-08 commit.
9551         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9552         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9553
9554 2011-06-13  Bruno Haible  <bruno@clisp.org>
9555
9556         fseeko: Provide a non-inline replacement of fseek().
9557         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9558         * modules/fseeko (Depends-on): Add fseek.
9559         * modules/fseek (License): Change to LGPLv2+.
9560
9561 2011-06-13  Bruno Haible  <bruno@clisp.org>
9562
9563         ftello: Provide a non-inline replacement of ftell().
9564         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9565         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9566         not have ftello() (such as on mingw).
9567         * modules/ftello (Depends-on): Add ftell.
9568         * modules/ftell (License): Change to LGPLv2+.
9569
9570 2011-05-07  Bruno Haible  <bruno@clisp.org>
9571
9572         ftell: Move AC_LIBOBJ invocations to module description.
9573         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9574         * modules/ftell (configure.ac): ... to here.
9575
9576 2011-05-07  Bruno Haible  <bruno@clisp.org>
9577
9578         ftello: Respect rules for use of AC_LIBOBJ.
9579         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9580         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9581         here...
9582         * modules/ftello (configure.ac): ... to here.
9583
9584 2011-05-07  Bruno Haible  <bruno@clisp.org>
9585
9586         fseeko: Simplify.
9587         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9588         (gl_FUNC_FSEEKO): Inline it here.
9589
9590 2011-05-07  Bruno Haible  <bruno@clisp.org>
9591
9592         fseek: Move AC_LIBOBJ invocations to module description.
9593         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9594         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9595         * modules/fseek (configure.ac): ... to here.
9596
9597 2011-05-07  Bruno Haible  <bruno@clisp.org>
9598
9599         fseek: Respect rules for use of AC_LIBOBJ.
9600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9601         here...
9602         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9603
9604 2011-05-07  Bruno Haible  <bruno@clisp.org>
9605
9606         fseeko: Respect rules for use of AC_LIBOBJ.
9607         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9608         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9609         here...
9610         * modules/fseeko (configure.ac): ... to here.
9611
9612 2011-06-13  Bruno Haible  <bruno@clisp.org>
9613
9614         gnulib-tool: Allow comments in the 'Depends-on' section.
9615         * doc/gnulib.texi (Module description): Mention comment syntax in the
9616         Depends-on section.
9617         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9618
9619 2011-06-13  Bruno Haible  <bruno@clisp.org>
9620
9621         file-set.h: guard __attibute__ use, now that it's not always defined
9622         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9623         versions that support it.  This fixes a coreutils build failure with
9624         the vendor cc on HP-UX 11.31.
9625
9626 2011-06-12  Bruno Haible  <bruno@clisp.org>
9627
9628         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9629         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9630         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9631         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9632         (acl, aclsort): New declarations.
9633         (aclv_nontrivial): New declaration.
9634         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9635         (file_has_acl): Read also the second kind of HP-UX ACLs.
9636         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9637         kind of HP-UX ACLs if the first kind fails.
9638         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9639         second kind of HP-UX ACLs.
9640         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9641         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9642         agree.
9643         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9644         hpuxjfs.
9645         Handle hpuxjfs.
9646         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9647         hpuxjfs.
9648         Handle hpuxjfs.
9649         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9650         (func_test_same_acls): Use both lsacl and getacl.
9651         Handle hpuxjfs.
9652         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9653         (func_test_same_acls): Use both lsacl and getacl.
9654         Handle hpuxjfs.
9655
9656 2011-06-12  Bruno Haible  <bruno@clisp.org>
9657
9658         acl: Complete the 2010-08-10 fix.
9659         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9660         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9661         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9662         explicitly.
9663         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9664         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9665
9666 2011-06-12  Bruno Haible  <bruno@clisp.org>
9667
9668         spawn-pipe tests: Comments.
9669         * tests/test-spawn-pipe-child.c (main): Update comment.
9670         Reported by James Youngman <jay@gnu.org>.
9671
9672 2011-06-11  James Youngman  <jay@gnu.org>
9673
9674         New module 'stat-size'.
9675         * modules/stat-size: New module.  Provides macros for accessing
9676         file size information in instances of struct stat.  Depends on the
9677         fileblocks module because it calls st_blocks.
9678         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9679         * doc/gnulib.texi: Include stat-size.texi.
9680         * doc/stat-size.texi: Documentation for this module.
9681         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9682         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9683         AC_STRUCT_ST_BLOCKS.
9684
9685 2011-06-09  Bruno Haible  <bruno@clisp.org>
9686
9687         thread: Support pthreads-win32.
9688         * lib/glthread/thread.h (gl_thread_self): Define differently on
9689         pthreads-win32.
9690         (gl_null_thread): New declaration.
9691         (gl_thread_self_pointer): New macro.
9692         * lib/glthread/thread.c (gl_null_thread): New constant.
9693         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9694         gl_thread_self.
9695         * tests/test-tls.c: Likewise.
9696         Suggested by Paul Eggert. Reported by Eric Blake.
9697
9698 2011-06-09  Bruno Haible  <bruno@clisp.org>
9699
9700         thread: Fix confusion between NULL and 0.
9701         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9702         Reported by Paul Eggert.
9703
9704 2011-06-09  Bruno Haible  <bruno@clisp.org>
9705
9706         spawn-pipe tests: Avoid test failure on HP-UX 11.
9707         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9708         is closed.
9709
9710 2011-06-09  Bruno Haible  <bruno@clisp.org>
9711
9712         acl tests: Fix compilation error on HP-UX 11.
9713         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9714
9715 2011-06-09  Bruno Haible  <bruno@clisp.org>
9716
9717         rmdir: Avoid test failure on HP-UX 10.20.
9718         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9719         EEXIST.
9720
9721 2011-06-08  Eric Blake  <eblake@redhat.com>
9722
9723         perror: fix test on mingw
9724         * modules/perror-tests (Depends-on): Add dup2.
9725
9726         strerror_r-posix: fix on MacOS
9727         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9728         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9729         logic bug.
9730         * lib/strerror_r.c (strerror_r): Fix the bug.
9731         * lib/strerror.c (strerror): Likewise.
9732         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9733         problem.
9734         * doc/posix-functions/strerror.texi (strerror): Likewise.
9735         * doc/posix-functions/perror.texi (perror): Likewise.
9736         * tests/test-strerror.c (main): Enhance test.
9737         * tests/test-strerror_r.c (main): Likewise.
9738
9739 2011-06-08  Bruno Haible  <bruno@clisp.org>
9740
9741         gnulib-tool: Better isolation between different gnulib-tool invocations.
9742         * gnulib-tool: New option --witness-c-macro.
9743         (witness_c_macro): New variable.
9744         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9745         AM_CPPFLAGS define it as a C macro.
9746         (func_emit_tests_Makefile_am): Likewise.
9747         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9748         read it from there.
9749         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9750         m4_define, not AC_DEFUN.
9751         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9752         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9753         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9754         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9755         s|...|...|, to substitute the values of the GNULIB_* module indicator
9756         variables.
9757         * modules/dirent (Makefile.am): Likewise.
9758         * modules/fcntl-h (Makefile.am): Likewise.
9759         * modules/iconv-h (Makefile.am): Likewise.
9760         * modules/langinfo (Makefile.am): Likewise.
9761         * modules/locale (Makefile.am): Likewise.
9762         * modules/math (Makefile.am): Likewise.
9763         * modules/netdb (Makefile.am): Likewise.
9764         * modules/poll-h (Makefile.am): Likewise.
9765         * modules/pty (Makefile.am): Likewise.
9766         * modules/search (Makefile.am): Likewise.
9767         * modules/signal (Makefile.am): Likewise.
9768         * modules/spawn (Makefile.am): Likewise.
9769         * modules/stdio (Makefile.am): Likewise.
9770         * modules/stdlib (Makefile.am): Likewise.
9771         * modules/string (Makefile.am): Likewise.
9772         * modules/sys_ioctl (Makefile.am): Likewise.
9773         * modules/sys_select (Makefile.am): Likewise.
9774         * modules/sys_socket (Makefile.am): Likewise.
9775         * modules/sys_stat (Makefile.am): Likewise.
9776         * modules/sys_times (Makefile.am): Likewise.
9777         * modules/sys_utsname (Makefile.am): Likewise.
9778         * modules/sys_wait (Makefile.am): Likewise.
9779         * modules/termios (Makefile.am): Likewise.
9780         * modules/time (Makefile.am): Likewise.
9781         * modules/unistd (Makefile.am): Likewise.
9782         * modules/wchar (Makefile.am): Likewise.
9783
9784 2011-06-08  Eric Blake  <eblake@redhat.com>
9785
9786         strerror: simplify replacement
9787         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9788         * modules/strerror (configure.ac): No prereqs needed here...
9789         * modules/strerror-override (configure.ac): ...but this needs it.
9790         (Files): Add file for needed prereq macro.
9791
9792 2011-06-08  Bruno Haible  <bruno@clisp.org>
9793
9794         strerror_r-posix: Tweaks.
9795         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9796         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9797         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9798         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9799         (gl_FUNC_STRERROR_R): ... to here.
9800         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9801
9802 2011-06-07  Eric Blake  <eblake@redhat.com>
9803
9804         perror: document fixed bugs
9805         * doc/posix-functions/perror.texi (perror): Document recent
9806         patches.
9807
9808 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9809
9810         stat-time: get_stat_birthtime failure is better-defined
9811         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9812         return a timestamp whose tv_sec and tv_nsec values are both -1.
9813         Previously, the spec said only that the tv_nsec value was negative.
9814         This upward-compatible change simplifies GNU tar a bit.
9815
9816 2011-06-07  Eric Blake  <eblake@redhat.com>
9817
9818         strerror_r-posix: work around cygwin 1.7.9
9819         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9820         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9821         bug without replacing strerror_r.
9822         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9823         strerror_r is buggy, but without requiring strerror_r compilation.
9824         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9825
9826         test-perror: relax test to ignore cygwin bug
9827         * tests/test-perror2.c (main): Relax test on requiring detection
9828         of stream errors, and use unbuffered stream.
9829         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9830         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9831         * doc/posix-functions/fputc.texi (fputc): Likewise.
9832         * doc/posix-functions/fputs.texi (fputs): Likewise.
9833         * doc/posix-functions/fputws.texi (fputws): Likewise.
9834         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9835         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9836         * doc/posix-functions/getopt.texi (getopt): Likewise.
9837         * doc/posix-functions/perror.texi (perror): Likewise.
9838         * doc/posix-functions/printf.texi (printf): Likewise.
9839         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9840         * doc/posix-functions/psignal.texi (psignal): Likewise.
9841         * doc/posix-functions/putc.texi (putc): Likewise.
9842         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9843         Likewise.
9844         * doc/posix-functions/putchar.texi (putchar): Likewise.
9845         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9846         Likewise.
9847         * doc/posix-functions/puts.texi (puts): Likewise.
9848         * doc/posix-functions/putwc.texi (putwc): Likewise.
9849         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9850         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9851         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9852         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9853         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9854         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9855         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9856         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9857
9858 2011-05-22  Bruno Haible  <bruno@clisp.org>
9859
9860         strerror: Move AC_LIBOBJ invocations to module description.
9861         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9862         gl_PREREQ_STRERROR invocations from here...
9863         * modules/strerror (configure.ac): ... to here.
9864
9865 2011-05-21  Bruno Haible  <bruno@clisp.org>
9866
9867         perror: Use common idiom.
9868         * modules/perror (configure.ac): Reorder statements.
9869
9870 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9871
9872         tests: fix usage message in 'mktempd_'
9873         * tests/init.sh (mktempd_): In the usage message, use literal
9874         'mktempd_', not '$ME' (which is even undefined), as the name of
9875         the subroutine.
9876
9877 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9878
9879         tests init: new function 'fatal_', for hard errors
9880         Before this patch, the only way offered by tests/init.sh to
9881         properly signal a hard error was the `framework_failure_'
9882         function.  But the error message issued by that function,
9883         as its name would suggest, refers to a set-up failure in the
9884         testsuite, while hard errors can obviously also be due to
9885         other reasons.  The best way to fix this inconsistency is to
9886         introduce a new function with a more general error message.
9887         * tests/init.sh (fatal_): New function.
9888
9889 2011-06-06  Eric Blake  <eblake@redhat.com>
9890
9891         canonicalize-lgpl: use common idiom
9892         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9893         over newer POSIX -Rf.
9894         Reported by Bruno Haible.
9895
9896         canonicalize-lgpl: work around AIX realpath bug
9897         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9898         * doc/posix-functions/realpath.texi (realpath): Document it.
9899         Reported by Bruno Haible.
9900
9901         strerror: work around FreeBSD bug
9902         * lib/strerror.c (strerror): Special case 0.
9903         Reported by Bruno Haible.
9904
9905         strerror-override: avoid bloating errno module
9906         * modules/errno (Files, configure.ac): Move replacement strings...
9907         * modules/strerror-override: ...to new module.
9908         * modules/strerror (Depends-on): Add strerror-override.
9909         * modules/strerror_r-posix (Depends-on): Likewise.
9910         * MODULES.html.sh: Document new module.
9911         Reported by Bruno Haible.
9912
9913 2011-06-06  Bruno Haible  <bruno@clisp.org>
9914
9915         spawn-pipe tests: Rename program.
9916         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9917         * tests/test-spawn-pipe-child.c: Update comment.
9918         * tests/test-spawn-pipe.sh: Update.
9919         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9920
9921         spawn-pipe tests: Link the child program only against libc.
9922         * tests/test-spawn-pipe-child.c: New file, extracted from
9923         tests/test-spawn-pipe.c.
9924         (main): Expect only one argument.
9925         (is_open): New function, copied from tests/test-pipe.c.
9926         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9927         (child_main): Remove function.
9928         (test_pipe): Pass only one argument to the child program.
9929         (main): Remove child process code. Expect the child program's name as
9930         first argument.
9931         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9932         argument.
9933         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9934         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9935         test-spawn-pipe-child against no libraries.
9936
9937 2011-06-06  Bruno Haible  <bruno@clisp.org>
9938
9939         careadlinkat: Avoid mismatch between ssize_t and int.
9940         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9941         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9942
9943 2011-06-06  Jim Meyering  <meyering@redhat.com>
9944
9945         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9946         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9947         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9948
9949 2011-06-05  Bruno Haible  <bruno@clisp.org>
9950
9951         ansi-c++-opt: Interoperability with libtool.
9952         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9953         set the variable to "no", not to ":".
9954         * NEWS: Mention the change.
9955
9956 2011-06-05  Bruno Haible  <bruno@clisp.org>
9957
9958         acl: Fix test failure on AIX 7.
9959         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9960         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9961
9962 2011-06-05  Bruno Haible  <bruno@clisp.org>
9963
9964         pipe-filter-ii: Fix test failure on AIX and IRIX.
9965         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9966         with EAGAIN, retry with a smaller buffer size.
9967
9968 2011-06-05  Bruno Haible  <bruno@clisp.org>
9969
9970         localename: Fix link dependencies.
9971         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9972         * modules/localename-tests (Makefile.am): Link test-localename with
9973         $(LIBTHREAD).
9974
9975 2011-06-05  Bruno Haible  <bruno@clisp.org>
9976
9977         error: Avoid gcc warning.
9978         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9979
9980 2011-06-05  Bruno Haible  <bruno@clisp.org>
9981
9982         unsetenv: Avoid gcc warning.
9983         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9984
9985 2011-06-05  Bruno Haible  <bruno@clisp.org>
9986
9987         setenv: Avoid gcc warning.
9988         * lib/setenv.c (setenv): Provide declaration if system lacks it.
9989
9990 2011-06-05  Bruno Haible  <bruno@clisp.org>
9991
9992         sys_select: Ensure memset is declared also on AIX 7.
9993         * lib/sys_select.in.h: Include <string.h> also on AIX.
9994         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
9995         self-contained also on AIX 7.1.
9996
9997 2011-06-04  Jim Meyering  <meyering@redhat.com>
9998
9999         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10000         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10001         function name, "error".
10002         (_gl_translatable_diag_func_re): New configurable variable.
10003
10004 2011-06-04  Bruno Haible  <bruno@clisp.org>
10005
10006         getopt: Avoid gcc warning.
10007         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10008
10009 2011-06-04  Bruno Haible  <bruno@clisp.org>
10010
10011         strerror_r: Fix comments.
10012         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10013         commit.
10014
10015 2011-06-04  Bruno Haible  <bruno@clisp.org>
10016
10017         perror: Fix compilation error.
10018         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10019         Undefine fprintf, not sprintf.
10020         * modules/perror (Depends-on): Remove intprops, verify.
10021
10022 2011-06-04  Bruno Haible  <bruno@clisp.org>
10023
10024         setlocale: Enable replacement on Cygwin 1.5.
10025         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10026         Cygwin 1.5.x.
10027         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10028         LC_CTYPE category also exists on Cygwin 1.5.x.
10029
10030 2011-06-04  Bruno Haible  <bruno@clisp.org>
10031
10032         strerror-override: Don't disable symbol renamings.
10033         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10034         * lib/strerror-override.c: Include config.h.
10035         (strerror_override): Don't undefine.
10036
10037 2011-06-03  Bruno Haible  <bruno@clisp.org>
10038
10039         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10040         * lib/localename.h: Update copyright header.
10041         * lib/localename.c: Likewise.
10042         * lib/relocatable.h: Likewise.
10043         * lib/relocatable.c: Likewise.
10044
10045 2011-06-02  Bruno Haible  <bruno@clisp.org>
10046
10047         doc: Fix a module name.
10048         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10049
10050 2011-06-02  Bruno Haible  <bruno@clisp.org>
10051
10052         pipe2: Remove dependency on 'nonblocking' module.
10053         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10054         O_NONBLOCK is defined by gnulib.
10055         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10056         is zero.
10057         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10058         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10059         defined by gnulib.
10060         (get_nonblocking_flag): New function.
10061         (main): Test O_NONBLOCK flag only if it is nonzero.
10062         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10063
10064 2011-06-03  Jim Meyering  <meyering@redhat.com>
10065
10066         maint: three new prohibit-header-without-use rules
10067         Prohibit use of cloexec.h, posixver.h, same.h without use.
10068         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10069         (sc_prohibit_posixver_without_use): Likewise.
10070         (sc_prohibit_same_without_use): Likewise.
10071
10072 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10073
10074         allocator: 'die' routine is now given requested size
10075         * lib/allocator.h (struct allocator.die): New size arg.
10076         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10077         If the actual problem is an ssize_t limitation, not a size_t or
10078         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10079
10080 2011-06-01  Eric Blake  <eblake@redhat.com>
10081
10082         strerror: drop strerror_r dependency
10083         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10084         * lib/strerror-override.c (strerror_override): ...to new file.
10085         * lib/strerror-override.h: Add prototype.
10086         * lib/strerror-impl.h: Delete.
10087         * lib/strerror.c (strerror): New implementation.
10088         * modules/errno (Files): Add new files.
10089         (configure.ac): Compile new file as appropriate.
10090         * modules/strerror (Files): Drop unused file.
10091         (Depends-on): Drop strerror_r-posix.
10092         * MODULES.html.sh: Document strerror_r-posix.
10093         Requested by Sam Steingold.
10094
10095         perror: call strerror_r directly
10096         * modules/perror (Files): Drop strerror-impl.h.
10097         * lib/perror.c (perror): Use our own stack buffer, rather than
10098         calling a wrapper that uses static storage.
10099         * doc/posix-functions/perror.texi (perror): Document a limitation
10100         of our replacement.
10101
10102         strerror_r: fix includes for FreeBSD
10103         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10104         since we use abort on some platforms.
10105         Reported by Matthias Bolte.
10106
10107 2011-05-31  Bruno Haible  <bruno@clisp.org>
10108
10109         Fix link errors in tests: openat-die uses gettext-h.
10110         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10111         against $(LIBINTL).
10112         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10113         against $(LIBINTL).
10114         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10115         $(LIBINTL).
10116         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10117         against $(LIBINTL).
10118         * modules/linkat-tests (Makefile.am): Link test-linkat against
10119         $(LIBINTL).
10120         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10121         $(LIBINTL).
10122         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10123         against $(LIBINTL).
10124         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10125         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10126         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10127         $(LIBINTL).
10128         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10129         $(LIBINTL).
10130         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10131         $(LIBINTL).
10132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10133
10134 2011-05-31  Bruno Haible  <bruno@clisp.org>
10135
10136         Fix link errors in tests: wait-process uses gettext-h.
10137         * modules/nonblocking-pipe-tests (Makefile.am): Set
10138         test_nonblocking_pipe_main_LDADD.
10139         * modules/nonblocking-socket-tests (Makefile.am): Link
10140         test-nonblocking-socket-main against $(LIBINTL).
10141         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10142
10143 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10144
10145         assert-h: work around 'verify' incompatibility
10146         * lib/verify.h: Use @...@ directives, not ifdef.
10147         * modules/assert-h (assert.h): Implement the directives.
10148         (assert.h): Substitute the symbol-prefix more consistently.
10149
10150 2011-05-29  Jim Meyering  <meyering@redhat.com>
10151
10152         trim: remove three superfluous assignments
10153         * lib/trim.c (trim2): Remove three superfluous assignments
10154         and correct brace positioning.
10155
10156 2011-05-29  Bruno Haible  <bruno@clisp.org>
10157
10158         wctype-h: Avoid namespace pollution on Solaris 2.6.
10159         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10160         identifiers.
10161         * doc/posix-headers/wctype.texi: Mention the problem.
10162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10163
10164 2011-05-28  Jim Meyering  <meyering@redhat.com>
10165
10166         parse-datetime.y: accommodate -Wstrict-overflow
10167         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10168         placate -Wstrict-overflow.
10169
10170         trim: avoid a warning from -O2 -Wstrict-overflow
10171         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10172
10173 2011-05-29  Bruno Haible  <bruno@clisp.org>
10174
10175         gnulib-tool: Fix bug in yesterday's commit.
10176         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10177         twice.
10178
10179 2011-05-29  Bruno Haible  <bruno@clisp.org>
10180
10181         Allow multiple gnulib generated include files to be combined.
10182         * gnulib-tool (func_compute_include_guard_prefix): New function.
10183         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10184         ${gl_include_guard_prefix} references.
10185         (func_import, func_create_testdir): Invoke
10186         func_compute_include_guard_prefix.
10187         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10188         * lib/ctype.in.h: Likewise.
10189         * lib/dirent.in.h: Likewise.
10190         * lib/errno.in.h: Likewise.
10191         * lib/fcntl.in.h: Likewise.
10192         * lib/float.in.h: Likewise.
10193         * lib/getopt.in.h: Likewise.
10194         * lib/iconv.in.h: Likewise.
10195         * lib/langinfo.in.h: Likewise.
10196         * lib/locale.in.h: Likewise.
10197         * lib/math.in.h: Likewise.
10198         * lib/netdb.in.h: Likewise.
10199         * lib/netinet_in.in.h: Likewise.
10200         * lib/poll.in.h: Likewise.
10201         * lib/pthread.in.h: Likewise.
10202         * lib/pty.in.h: Likewise.
10203         * lib/sched.in.h: Likewise.
10204         * lib/se-selinux.in.h: Likewise.
10205         * lib/search.in.h: Likewise.
10206         * lib/signal.in.h: Likewise.
10207         * lib/spawn.in.h: Likewise.
10208         * lib/stdarg.in.h: Likewise.
10209         * lib/stddef.in.h: Likewise.
10210         * lib/stdint.in.h: Likewise.
10211         * lib/stdio.in.h: Likewise.
10212         * lib/stdlib.in.h: Likewise.
10213         * lib/string.in.h: Likewise.
10214         * lib/strings.in.h: Likewise.
10215         * lib/sys_file.in.h: Likewise.
10216         * lib/sys_ioctl.in.h: Likewise.
10217         * lib/sys_select.in.h: Likewise.
10218         * lib/sys_socket.in.h: Likewise.
10219         * lib/sys_stat.in.h: Likewise.
10220         * lib/sys_time.in.h: Likewise.
10221         * lib/sys_times.in.h: Likewise.
10222         * lib/sys_uio.in.h: Likewise.
10223         * lib/sys_utsname.in.h: Likewise.
10224         * lib/sys_wait.in.h: Likewise.
10225         * lib/sysexits.in.h: Likewise.
10226         * lib/termios.in.h: Likewise.
10227         * lib/time.in.h: Likewise.
10228         * lib/unistd.in.h: Likewise.
10229         * lib/wchar.in.h: Likewise.
10230         * lib/wctype.in.h: Likewise.
10231         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10232         * modules/ctype (Makefile.am): Likewise.
10233         * modules/dirent (Makefile.am): Likewise.
10234         * modules/errno (Makefile.am): Likewise.
10235         * modules/fcntl-h (Makefile.am): Likewise.
10236         * modules/float (Makefile.am): Likewise.
10237         * modules/getopt-posix (Makefile.am): Likewise.
10238         * modules/iconv-h (Makefile.am): Likewise.
10239         * modules/langinfo (Makefile.am): Likewise.
10240         * modules/locale (Makefile.am): Likewise.
10241         * modules/math (Makefile.am): Likewise.
10242         * modules/netdb (Makefile.am): Likewise.
10243         * modules/netinet_in (Makefile.am): Likewise.
10244         * modules/poll-h (Makefile.am): Likewise.
10245         * modules/pthread (Makefile.am): Likewise.
10246         * modules/pty (Makefile.am): Likewise.
10247         * modules/sched (Makefile.am): Likewise.
10248         * modules/search (Makefile.am): Likewise.
10249         * modules/selinux-h (Makefile.am): Likewise.
10250         * modules/signal (Makefile.am): Likewise.
10251         * modules/spawn (Makefile.am): Likewise.
10252         * modules/stdarg (Makefile.am): Likewise.
10253         * modules/stddef (Makefile.am): Likewise.
10254         * modules/stdint (Makefile.am): Likewise.
10255         * modules/stdio (Makefile.am): Likewise.
10256         * modules/stdlib (Makefile.am): Likewise.
10257         * modules/string (Makefile.am): Likewise.
10258         * modules/strings (Makefile.am): Likewise.
10259         * modules/sys_file (Makefile.am): Likewise.
10260         * modules/sys_ioctl (Makefile.am): Likewise.
10261         * modules/sys_select (Makefile.am): Likewise.
10262         * modules/sys_socket (Makefile.am): Likewise.
10263         * modules/sys_stat (Makefile.am): Likewise.
10264         * modules/sys_time (Makefile.am): Likewise.
10265         * modules/sys_times (Makefile.am): Likewise.
10266         * modules/sys_uio (Makefile.am): Likewise.
10267         * modules/sys_utsname (Makefile.am): Likewise.
10268         * modules/sys_wait (Makefile.am): Likewise.
10269         * modules/sysexits (Makefile.am): Likewise.
10270         * modules/termios (Makefile.am): Likewise.
10271         * modules/time (Makefile.am): Likewise.
10272         * modules/unistd (Makefile.am): Likewise.
10273         * modules/wchar (Makefile.am): Likewise.
10274         * modules/wctype-h (Makefile.am): Likewise.
10275         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10276
10277 2011-05-29  Bruno Haible  <bruno@clisp.org>
10278
10279         assert-h: Allow multiple gnulib generated replacements to coexist.
10280         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10281
10282 2011-05-29  Bruno Haible  <bruno@clisp.org>
10283
10284         argp: Allow coexistence with strerror_r-posix module.
10285         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10286         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10287         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10288         not the glibc signature.
10289
10290 2011-05-28  Bruno Haible  <bruno@clisp.org>
10291
10292         gnulib-tool: Alternative structure of testdirs, similar to --import.
10293         * gnulib-tool: New option --single-configure.
10294         (func_usage): Document it.
10295         (single_configure): New variable.
10296         (func_modules_transitive_closure_separately,
10297         func_modules_transitive_closure_separately,
10298         func_determine_use_libtests, func_modules_add_dummy_separately,
10299         func_modules_to_filelist_separately): New functions, extracted from
10300         func_import.
10301         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10302         (func_import): Use the new functions.
10303         (func_create_testdir): Set final_modules. Handle $single_configure =
10304         true case.
10305
10306 2011-05-28  Bruno Haible  <bruno@clisp.org>
10307
10308         getloadavg: Remove an unreliable safety check.
10309         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10310         getloadavg.c is in place.
10311         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10312         Reported by Sam Steingold <sds@gnu.org>.
10313
10314 2011-05-28  Bruno Haible  <bruno@clisp.org>
10315
10316         doc: Cleanup yet another file produced by texinfo.tex.
10317         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10318
10319 2011-05-28  Bruno Haible  <bruno@clisp.org>
10320
10321         Finish the conditional dependencies mechanism.
10322         * gnulib-tool: New option --no-conditional-dependencies.
10323         (func_usage): Document it. Don't mark --conditional-dependencies as
10324         experimental.
10325         (cond_dependencies): The possible values can now be true, false, empty.
10326         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10327         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10328         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10329
10330 2011-05-28  Bruno Haible  <bruno@clisp.org>
10331
10332         doc: Use a recent texinfo.tex.
10333         * doc/Makefile (tex_opts): New variable.
10334         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10335
10336 2011-05-28  Jim Meyering  <meyering@redhat.com>
10337
10338         intprops.h: adjust comment to match code change
10339         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10340         only once, it *may* have side effects.  Also fix an unrelated typo.
10341         (_GL_INT_SIGNED): Likewise.
10342
10343 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10344
10345         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10346
10347 2011-05-26  Bruno Haible  <bruno@clisp.org>
10348
10349         mbsrchr: Avoid collision with system function on Interix.
10350         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10351         Reported by Markus Duft <mduft@gentoo.org>.
10352
10353 2011-05-15  James Youngman  <jay@gnu.org>
10354
10355         getopt: for ambiguous options, enumerate the possibilities.
10356         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10357         the ambiguous options when an ambiguous prefix is given. This was
10358         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10359         glibc change was
10360         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10361
10362 2011-05-25  Eric Blake  <eblake@redhat.com>
10363
10364         getcwd: work around mingw bug
10365         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10366         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10367         Reported by Matthias Bolte.
10368
10369 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10370
10371         test-intprops: disable -Wtype-limits diagnostics
10372         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10373         diagnostics.  Otherwise, the integer overflow macros generate many
10374         diagnostics.  Reported by Jim Meyering in
10375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10376
10377         intprops: shorten, to pacify gcc -Woverlength-strings
10378         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10379         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10380         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10381         likely to run afoul of C compiler limits for string constant lengths.
10382         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10383
10384 2011-05-24  Eric Blake  <eblake@redhat.com>
10385
10386         docs: document recently fixed glibc printf bug
10387         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10388         * doc/posix-functions/printf.texi (printf): Likewise.
10389         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10390         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10391
10392         closein-tests: convert to init.sh
10393         * modules/closein-tests (Files): Add init.sh
10394         * tests/test-closein.sh Use it.
10395
10396         yesno-tests: convert to init.sh
10397         * modules/yesno-tests (Files): Add init.sh.
10398         * tests/test-yesno.sh: Use it.
10399
10400         atexit-tests: ensure reliable exit status
10401         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10402         Reported by Bruno Haible.
10403
10404 2011-05-24  Bruno Haible  <bruno@clisp.org>
10405
10406         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10407         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10408         gl_PREREQ_STRERROR_R invocations from here...
10409         * modules/strerror_r-posix (configure.ac): ... to here.
10410
10411 2011-05-24  Eric Blake  <eblake@redhat.com>
10412
10413         strerror_r: fix missing header
10414         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10415
10416         strerror_r: fix AIX test failures
10417         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10418         ERANGE failure.
10419
10420         strerror_r: fix Solaris test failures
10421         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10422         failures.
10423         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10424
10425         strerror_r: enforce POSIX recommendations
10426         * lib/strerror_r.c (safe_copy): New helper method.
10427         (strerror_r): Guarantee a non-empty string.
10428         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10429         recent POSIX rulings and to match our strerror guarantees.
10430         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10431
10432 2011-05-24  Jim Meyering  <meyering@redhat.com>
10433
10434         test-perror2.c: avoid warning about unused variable
10435         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10436
10437 2011-05-24  Eric Blake  <eblake@redhat.com>
10438
10439         perror: avoid spurious test failure on HP-UX
10440         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10441
10442         tests: fix logic bug in init.sh
10443         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10444         shell.
10445
10446 2011-05-24  Jim Meyering  <meyering@redhat.com>
10447
10448         utimensat: do not reference an out-of-scope buffer
10449         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10450         declared in an inner scope, yet "times" would be dereferenced outside
10451         the scope in which "ts" was valid.
10452         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10453         of ts[2] "out/up", so that the use of aliased "times" (via
10454         "times = ts;") does not end up referencing an out-of-scope "ts"
10455
10456         opendir-safer.c: don't clobber errno; don't close negative FD
10457         * lib/opendir-safer.c (opendir_safer):
10458         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10459         file descriptor, and more importantly, don't clobber the
10460         offending errno value with EINVAL.  Before, upon failure
10461         of dup_safer, we would pass the negative file descriptor to
10462         fdopendir, which would clobber errno.
10463
10464 2011-05-23  Bruno Haible  <bruno@clisp.org>
10465
10466         idcache: Fix module description.
10467         * modules/idcache (Include): Set to "idcache.h".
10468
10469 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10470
10471         gnulib-tool: fix portability problem with MacOS sed
10472         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10473         before the "}".  Problem reported by Leo in
10474         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10475         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10476         sed_extract_condition1, sed_extract_condition2.
10477
10478 2011-05-23  Bruno Haible  <bruno@clisp.org>
10479
10480         hash: Simplify autoconf macro.
10481         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10482
10483 2011-05-23  Bruno Haible  <bruno@clisp.org>
10484
10485         getugroups: Fix module description.
10486         * modules/getugroups (Include): Set to "getugroups.h".
10487
10488 2011-05-23  Bruno Haible  <bruno@clisp.org>
10489
10490         linkat: Simplify autoconf macro.
10491         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10492
10493 2011-05-23  Bruno Haible  <bruno@clisp.org>
10494             Eric Blake  <eblake@redhat.com>
10495
10496         linkat, renameat: Update dependencies.
10497         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10498         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10499         symlinkat.
10500
10501 2011-05-23  Jim Meyering  <meyering@redhat.com>
10502
10503         maint.mk: more tight_scope improvements
10504         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10505         (_gl_TS_headers): Define only in if-0'd block.
10506         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10507         sometimes we must *not* use it.  Adjust uses accordingly.
10508         (sc_tight_scope): Use much simpler grep-based test to determine
10509         whether we skip this rule.
10510
10511         maint.mk: generalize/improve the tight-scope rule
10512         * top/maint.mk: Emit a warning when the test is skipped.
10513         (_gl_TS_dir): Add $(srcdir)/ prefix.
10514         (_gl_TS_function_match): Simplify, rather than trying
10515         to enumerate common types.  Otherwise, it would fail to match an
10516         "extern unsigned char const *" declaration in idutils.
10517         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10518         a way to support use of that type of macro.
10519         (_gl_TS_var_match): Simplify regexp.
10520         (_gl_TS_obj_files): New configurable variable.
10521         (_gl_TS_headers): Likewise.
10522
10523 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10524
10525         verify: fix bug when gnulib <assert.h> is also included
10526         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10527         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10528         Perhaps there's a better way, but this fixes the immediate problem.
10529         Problem reported by Bruno Haible in
10530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10531
10532 2011-05-22  Bruno Haible  <bruno@clisp.org>
10533
10534         xgetcwd: Simplify autoconf macro.
10535         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10536
10537 2011-05-22  Bruno Haible  <bruno@clisp.org>
10538
10539         New module 'mktime-internal'.
10540         * modules/mktime-internal: New file.
10541         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10542         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10543         mktime_internal as a C macro if libc has __mktime_internal.
10544         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10545         conditions.
10546         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10547
10548 2011-05-22  Bruno Haible  <bruno@clisp.org>
10549
10550         timegm: Correct mktime replacement statements.
10551         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10552         defining mktime as a C macro. This completes a 2009-07-28 commit.
10553
10554 2011-05-22  Bruno Haible  <bruno@clisp.org>
10555
10556         timegm: Simplify autoconf macro.
10557         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10558
10559 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10560
10561         clock-time: change to LGPLv2+.
10562         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10563         BSD-like but we have no mark for that; this is good enough for now.
10564
10565 2011-05-21  Bruno Haible  <bruno@clisp.org>
10566
10567         strerror_r: Fix comments.
10568         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10569
10570 2011-05-21  Bruno Haible  <bruno@clisp.org>
10571
10572         relocatable-prog-wrapper: Fix possible link error.
10573         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10574         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10575         (gl_FUNC_SETENV): ... to here.
10576         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10577         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10578
10579 2011-05-21  Bruno Haible  <bruno@clisp.org>
10580
10581         relocatable-prog-wrapper: Assume strerror() exists.
10582         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10583         m4/strerror.m4.
10584         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10585         * lib/relocwrapper.c: Remove mention of strerror module.
10586         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10587         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10588         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10589         C macro.
10590
10591 2011-05-21  Bruno Haible  <bruno@clisp.org>
10592
10593         select: Simplify replacement idiom.
10594         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10595         Win32 platforms.
10596         * lib/sys_select.in.h (select): Simplify accordingly.
10597         * modules/select (Depends-on): Likewise.
10598
10599 2011-05-21  Bruno Haible  <bruno@clisp.org>
10600
10601         mkdir-p: Simplify autoconf macro.
10602         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10603         gl_FUNC_LCHOWN.
10604
10605 2011-05-21  Eric Blake  <eblake@redhat.com>
10606
10607         strerror_r: avoid clobbering strerror on cygwin
10608         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10609         fall back instead to sys_errlist.
10610         * modules/strerror (configure.ac): Add witness.
10611         * tests/test-strerror_r.c (main): Enhance test.
10612         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10613         * tests/test-perror2.c (main): Free memory before exit.
10614
10615 2011-05-21  Bruno Haible  <bruno@clisp.org>
10616
10617         mkdtemp: Use gnulib naming conventions.
10618         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10619         * modules/mkdtemp (configure.ac): Update.
10620
10621 2011-05-20  Eric Blake  <eblake@redhat.com>
10622
10623         strerror_r: avoid corrupting errno on Solaris
10624         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10625         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10626
10627         strerror_r: avoid compiler warning
10628         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10629
10630         strerror_r: simplify AIX code
10631         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10632
10633         test-perror: avoid spurious failure on FreeBSD
10634         * modules/perror-tests (Depends-on): Add strerror, now that
10635         strerror_r no longer pulls it in.
10636
10637 2011-05-20  Bruno Haible  <bruno@clisp.org>
10638
10639         strerror_r-posix: Remove unused dependencies.
10640         * modules/strerror_r-posix (Depends-on): Remove strerror.
10641         Reported by Eric Blake.
10642
10643 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10644
10645         intprops: remove assumption about A|B representation
10646         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10647         is a valid integer if both A and B are.  Although this is true for
10648         all known practical hosts, the C standard doesn't guarantee it,
10649         and the code need not assume it.  Also, this change may work around
10650         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10651         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10652
10653 2011-05-20  Eric Blake  <eblake@redhat.com>
10654
10655         perror: work around FreeBSD bug
10656         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10657         is broken.  Move AC_LIBOBJ...
10658         * modules/perror (configure.ac): Here.
10659         * doc/posix-functions/perror.texi (perror): Document this.
10660         * tests/test-perror2.c (main): Enhance test.
10661
10662         test-perror: check for strerror interactions
10663         * tests/macros.h (STREQ): Add macro.
10664         * modules/perror-tests (Files): Add second test.
10665         * tests/test-perror2.c (main): New file.
10666         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10667
10668         test-perror: rewrite to use init script
10669         * modules/perror-tests (Files): Add init.sh.
10670         * tests/test-perror.sh: Use temporary directory.
10671
10672 2011-05-20  Jim Meyering  <meyering@redhat.com>
10673
10674         maint: replace misused "a" with "an"
10675         * doc/intprops.texi: "a integer"
10676         * doc/regex.texi: "a explanation"
10677         * lib/alignof.h: "a object"
10678         * lib/argmatch.h: "a explanation"
10679         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10680         * lib/stdint.in.h: "a integer"
10681         * lib/userspec.c: "a owner"
10682         * doc/gnulib.texi: Fix "a idea", and reword.
10683
10684 2011-05-19  Jim Meyering  <meyering@redhat.com>
10685
10686         maint: correct misuse of "a" and "an"
10687         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10688         * lib/argp-help.c: "an docum...": s/an/a/
10689         * lib/argp-parse.c: "An vector": s/An/A/
10690         * lib/execute.c: "an native": s/an/a/
10691         * lib/spawn-pipe.c: Likewise.
10692         * lib/gc.h: "an Gc_rc": s/an/a/
10693         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10694         * lib/fts.c: "an stat.st_dev": s/an/a/
10695
10696 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10697
10698         intprops-tests: work around HP-UX 11.23 cc bug with constants
10699         * tests/test-intprops.c (VERIFY): New macro.
10700         (main): Use it, instead of verify, to work around the compiler bug; see
10701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10702
10703         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10704         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10705         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10706         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10707         (_GL_REMAINDER_OVERFLOW): Use it.
10708
10709         intprops-tests: revert unsigned part of previous change
10710         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10711         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10712         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10714
10715 2011-05-19  Bruno Haible  <bruno@clisp.org>
10716
10717         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10718         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10719         strerror_r() returned without filling the buffer.
10720         Reported by Eric Blake.
10721
10722 2011-05-19  Eric Blake  <eblake@redhat.com>
10723
10724         strerror_r: guarantee unchanged errno
10725         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10726         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10727         failure.
10728         * tests/test-strerror_r.c (main): Enhance test.
10729
10730 2011-05-19  Bruno Haible  <bruno@clisp.org>
10731
10732         strerror_r: Reorder #if blocks.
10733         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10734         for consistency with the previous commit.
10735
10736 2011-05-19  Bruno Haible  <bruno@clisp.org>
10737
10738         perror: Avoid clobbering the strerror buffer when possible.
10739         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10740         * lib/strerror.c: Include it.
10741         * modules/strerror (Files): Add lib/strerror-impl.h.
10742         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10743         (my_strerror): New function, defined through lib/strerror-impl.h.
10744         (perror): Use it instead of strerror.
10745         * modules/perror (Files): Add lib/strerror-impl.h.
10746         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10747
10748 2011-05-19  Eric Blake  <eblake@redhat.com>
10749
10750         strerror_r: fix on newer cygwin
10751         * lib/strerror_r.c (strerror_r): Cygwin now has
10752         __xpg_strerror_r, use it.
10753
10754 2011-05-19  Bruno Haible  <bruno@clisp.org>
10755
10756         strerror_r: Avoid clobbering the strerror buffer when possible.
10757         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10758         (sys_nerr, sys_errlist): New declarations.
10759         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10760         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10761         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10762
10763 2011-05-19  Bruno Haible  <bruno@clisp.org>
10764
10765         strerror_r: Fix test failure on mingw.
10766         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10767         EXTEND_STRERROR_R.
10768         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10769         macros from errno.in.h instead.
10770
10771 2011-05-19  Eric Blake  <eblake@redhat.com>
10772
10773         strerror: relax test for Solaris
10774         * tests/test-strerror.c (main): Permit Solaris behavior.
10775         * tests/test-strerror_r.c (main): Likewise.
10776
10777         strerror: enforce POSIX ruling on strerror(0)
10778         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10779         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10780         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10781         * doc/posix-functions/strerror.texi (strerror): Document it.
10782         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10783         * tests/test-strerror.c (main): Strengthen test.
10784         * tests/test-strerror_r.c (main): Likewise.
10785
10786 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10787
10788         intprop-tests: port to older and more-pedantic compilers
10789         * modules/intprops-tests (Files): Add tests/macros.h.
10790         * tests/test-intprops.c: Include macros.h.
10791         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10792         it's no longer documented to expand to an integer constant expression.
10793         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10794         argument is floating point, as it's no longer documented to expand
10795         to an integer constant expression in that case.
10796         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10797         compiler bugs reported by Bruno Haible.  See
10798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10799         (U0, U1): New constants, to work around the same bugs.  Also,
10800         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10801
10802         intprops: work around C compiler bugs
10803         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10804         bug in Sun C 5.11 2010/08/13 and other compilers; see
10805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10806
10807         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10808         * doc/intprops.texi (Integer Type Determination): Fix
10809         documentation for TYPE_IS_INTEGER: it returns an constant
10810         expression, not an integer constant expression.  Fix doc for
10811         TYPE_SIGNED: it returns an integer constant expression only if its
10812         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10813         hardly worth documented that way....)
10814
10815 2011-05-18  Bruno Haible  <bruno@clisp.org>
10816
10817         strerror_r: Avoid clobbering the strerror buffer when possible.
10818         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10819         Handle gnulib defined errno values here. When strerror() returns NULL
10820         or an empty string, return EINVAL.
10821         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10822         gnulib defined errno values here.
10823         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10824
10825 2011-05-18  Eric Blake  <eblake@redhat.com>
10826
10827         fnmatch: avoid compiler warning
10828         * lib/fnmatch_loop.c (FCT): Use correct type.
10829         Reported by Matthias Bolte.
10830
10831 2011-05-13  Jim Meyering  <meyering@redhat.com>
10832
10833         maint.mk: three new prohibit_<HDR>_without_use rules
10834         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10835         (sc_prohibit_stdio-safer_without_use): Likewise.
10836         (sc_prohibit_xfreopen_without_use): Likewise.
10837
10838 2011-05-17  Jim Meyering  <meyering@redhat.com>
10839
10840         announce-gen: fail if the NEWS delta is empty
10841         If there's nothing noteworthy in NEWS, then either you forgot
10842         or you shouldn't be releasing.
10843         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10844
10845 2011-05-17  Pádraig Brady <P@draigBrady.com>
10846
10847         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10848         reserved symbols starting with double underscore from the check.
10849
10850 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10851
10852         intprops: add doc
10853         * doc/intprops.texi: New file, documenting intprops.
10854         * doc/gnulib.texi (Particular Modules): Include it.
10855
10856         verify: add doc to gnulib manual and fix example
10857         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10858         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10859         (Compile-time Assertions): Fix example so it can't overflow.
10860
10861 2011-05-17  Jim Meyering  <meyering@redhat.com>
10862
10863         warnings.m4: don't usurp save_CPPFLAGS variable name
10864         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10865
10866         doc: fix typo
10867         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10868
10869 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10870             Bruno Haible  <bruno@clisp.org>
10871
10872         doc: Tweak recent change.
10873         * README (Portability guidelines): Tweak new text.
10874         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10875         Interix 6.1.
10876
10877 2011-05-16  Eric Blake  <eblake@redhat.com>
10878
10879         inttypes: avoid autoconf warning
10880         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10881         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10882
10883 2011-05-16  Sam Steingold <sds@gnu.org>
10884         and Eric Blake  <eblake@redhat.com>
10885
10886         vc-list-files: accept multiple directory operands
10887         * build-aux/vc-list-files: Iterate over all remaining operands.
10888
10889 2011-05-16  Bruno Haible  <bruno@clisp.org>
10890
10891         Fix confusion regarding deprecated modules.
10892         * modules/calloc (Status, Notice): Mark module as deprecated, not
10893         obsolete.
10894         * modules/fnmatch-posix (Status, Notice): Likewise.
10895         * modules/getdate (Status, Notice): Likewise.
10896         * modules/getopt (Status, Notice): Likewise.
10897         * modules/malloc (Status, Notice): Likewise.
10898         * modules/pipe (Status, Notice): Likewise.
10899         * modules/realloc (Status, Notice): Likewise.
10900         * modules/rename-dest-slash (Status, Notice): Likewise.
10901         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10902         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10903         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10904         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10905         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10906
10907 2011-05-16  Bruno Haible  <bruno@clisp.org>
10908
10909         doc: List the target platforms.
10910         * doc/gnulib-intro.texi (Target Platforms): New section.
10911         * doc/gnulib.texi (Introduction): Update menu.
10912         * README (Portability guidelines): Refer to the new section. Update
10913         statement about oldest supported environment. Remove rationale why
10914         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10915         unportable C89 function.
10916         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10917         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10918
10919 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10920
10921         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10922
10923 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10924
10925         intprops-tests: new module
10926         * modules/intprops-tests, tests/test-intprops.c: New files.
10927
10928         intprops: add safe, portable integer overflow checking
10929         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10930         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10931         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10932         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10933         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10934         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10935         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10936         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10937         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10938         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10939         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10940
10941 2011-05-12  James Youngman  <jay@gnu.org>
10942
10943         Add a test for glibc's Bugzilla bug #12378.
10944         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10945         doesn't allow the literal matching of a lone "[" (which is
10946         required by POSIX).
10947         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10948
10949 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10950
10951         Sync glibc change fixing Bugzilla bug #12378.
10952         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10953         beginning and fall back to matching as normal character if the
10954         string ends before the matching ']' is found.  This is what POSIX
10955         requires.
10956
10957 2011-05-13  Eric Blake  <eblake@redhat.com>
10958
10959         getcwd-lgpl: relax test for FreeBSD
10960         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10961         issue.
10962         * tests/test-getcwd-lgpl.c (main): Relax test.
10963         Reported by Matthias Bolte.
10964
10965 2011-05-11  Eric Blake  <eblake@redhat.com>
10966
10967         test-fflush: silence compiler warning
10968         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10969
10970 2011-05-11  Bruno Haible  <bruno@clisp.org>
10971
10972         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10973         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10974         * modules/canonicalize (Depends-on): Add 'nocrash'.
10975         * modules/canonicalize-lgpl (Depends-on): Likewise.
10976         * doc/posix-functions/realpath.texi: Update platforms list.
10977         Reported by Ryan Schmidt <ryandesign@macports.org>.
10978
10979 2011-05-11  Bruno Haible  <bruno@clisp.org>
10980
10981         group-member: Declare function in <unistd.h>.
10982         * lib/unistd.in.h (group_member): New declaration.
10983         * lib/group-member.h: Remove file.
10984         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10985         * tests/test-unistd-c++.cc: Check signature of group_member.
10986         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10987         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
10988         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
10989         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
10990         HAVE_GROUP_MEMBER.
10991         * modules/group-member (Files): Remove lib/group-member.h.
10992         (Depends-on): Add unistd. Specify conditions.
10993         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10994         (Include): Change to <unistd.h>.
10995         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
10996         HAVE_GROUP_MEMBER.
10997         * NEWS: Mention the change.
10998         * lib/euidaccess.c: Don't include group-member.h.
10999
11000 2011-05-11  Bruno Haible  <bruno@clisp.org>
11001
11002         group-member: Document module.
11003         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11004         module.
11005
11006 2011-05-11  Bruno Haible  <bruno@clisp.org>
11007
11008         fclose: Fix mistake earlier today.
11009         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11010
11011 2011-05-11  Eric Blake  <eblake@redhat.com>
11012
11013         fclose: preserve fflush errors
11014         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11015         Reported by Jim Meyering.
11016
11017         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11018         * build-aux/bootstrap (check_versions): When no specific version
11019         is required, merely check that the app produces an exit status
11020         that indicates its existence.
11021
11022         maint.mk: drop redundant check
11023         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11024         the same but better.
11025
11026 2011-05-11  Bruno Haible  <bruno@clisp.org>
11027
11028         fclose: Fix possible link error.
11029         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11030         unregister_shadow_fd. Improve comments.
11031         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11032         Eric Blake.
11033
11034 2011-05-11  Jim Meyering  <meyering@redhat.com>
11035
11036         maint.mk: improve "can not" detection and generalize rule name
11037         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11038         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11039         Use the same technique as in sc_prohibit_doubled_word, so that
11040         we recognize "can not" also when the words are separated by a newline.
11041         Suggested by Eric Blake.
11042         (perl_filename_lineno_text_): Define.  Factored out of...
11043         (prohibit_doubled_word_): ...here.  Use the new definition.
11044         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11045         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11046         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11047
11048 2011-05-10  Eric Blake  <eblake@redhat.com>
11049
11050         fclose: avoid double close race when possible
11051         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11052         all but WINDOWS_SOCKETS.
11053
11054 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11055
11056         openat: correct new comment
11057         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11058
11059 2011-05-10  Jim Meyering  <meyering@redhat.com>
11060
11061         openat: add comments
11062         * lib/openat-proc.c (openat_proc_name): Add comments,
11063         mostly from Eric Blake.
11064
11065 2011-05-09  Eric Blake  <eblake@redhat.com>
11066
11067         openat: reduce syscalls in first probe of /proc
11068         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11069         be a directory.  Simplify the probe for .. bugs.
11070         * modules/openat (Depends-on): Drop same-inode.
11071         Reported by Bastien ROUCARIES.
11072
11073 2011-05-09  Jim Meyering  <meyering@redhat.com>
11074
11075         maint.mk: change semantics/name of tight_scope variables
11076         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11077         Rename variables to align with semantics that make them more useful.
11078
11079         maint.mk: tweak new rule's name not to impinge
11080         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11081         (sc_tight_scope): Use new rule name rather than $@-0.
11082
11083         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11084         * top/maint.mk (sc_tight_scope): New rule.
11085         (sc_tight_scope-0): New rule, ifdef'd out.
11086         (_gl_TS_dir): Default.
11087         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11088         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11089
11090 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11091
11092         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11093         Haible <bruno@clisp.org>.
11094
11095 2011-05-08  Bruno Haible  <bruno@clisp.org>
11096
11097         Comments.
11098         * m4/isnanf.m4: Add comment.
11099         * m4/isnanl.m4: Likewise.
11100
11101 2011-05-08  Bruno Haible  <bruno@clisp.org>
11102
11103         glob: Remove obsolete macro.
11104         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11105
11106 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11107
11108         intprops: Sun C 5.11 supports __typeof__
11109         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11110         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11111         which is new.
11112         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11113
11114         intprops: switch to usual gnulib indenting and naming
11115         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11116         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11117
11118         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11119
11120 2011-05-08  Jim Meyering  <meyering@redhat.com>
11121
11122         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11123         * top/maint.mk (release-prep): Use make's --no-print-directory
11124         option when generating the announcement.  This eliminates the
11125         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11126         generated announcement template.
11127
11128 2011-05-08  Bruno Haible  <bruno@clisp.org>
11129
11130         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11131         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11132         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11133
11134 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11135
11136         ignore-value, verify: Omit include files from lib_SOURCES.
11137         * modules/ignore-value, modules/verify (Makefile.am):
11138         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11139         that leads Automake to duplicate use of am__objects_... variables
11140         in Makefile.in.  See
11141         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11142
11143 2011-05-07  Bruno Haible  <bruno@clisp.org>
11144
11145         fclose: Simplify autoconf macro.
11146         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11147         defined.
11148
11149 2011-05-07  Bruno Haible  <bruno@clisp.org>
11150
11151         canonicalize-lgpl: Fix autoconf macro ordering bug.
11152         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11153         gl_STDLIB_H_DEFAULTS.
11154
11155 2011-05-06  Eric Blake  <eblake@redhat.com>
11156
11157         maintainer-makefile: make sc_po_check easier to tune
11158         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11159         to probe for strings, such as an alternate location for gnulib.
11160
11161         fclose: guarantee behavior on seekable stdin
11162         * modules/fclose (Depends-on): Add fflush.
11163         * doc/posix-functions/fclose.texi (fclose): Document this.
11164         * tests/test-fclose.c (main): Make test for this unconditional.
11165
11166 2011-05-06  Bruno Haible  <bruno@clisp.org>
11167
11168         fflush, fpurge: Relicense under LGPLv2+.
11169         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11170         * modules/fpurge (License): Likewise.
11171         With permission from Eric Blake and Jim Meyering.
11172         Suggested by Eric Blake.
11173
11174 2011-05-06  Karl Berry  <karl@gnu.org>
11175
11176         * MODULES.html.sh (func_all_modules): remove exit.
11177
11178 2011-05-06  Jim Meyering  <meyering@redhat.com>
11179
11180         maint.mk: use info-gnu@ as the default only for a stable release
11181         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11182         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11183         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11184         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11185
11186 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11187
11188         assert-h: new module, which supports C1X-style static_assert
11189         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11190         * lib/verify.h: Revamp so that this can be copied into assert.h,
11191         while retaining the ability to use it standalone as before.
11192         Rename private identifiers so as not to encroach on the
11193         standard C namespace, since this is now used by assert.h.
11194         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11195         the old verify_true.
11196         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11197         the old verify_true.  Use _GL_VERIFY_TYPE.
11198         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11199         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11200         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11201         defined when this file is copied into the replacement assert.h.
11202         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11203         and _Static_assert is not built in.
11204         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11205         defined, and use the new macros mentioned above.
11206         * doc/posix-headers/assert.texi: Document this.
11207
11208 2011-05-05  Bruno Haible  <bruno@clisp.org>
11209
11210         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11211         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11212         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11213         gl_REPLACE_FCLOSE here.
11214         * modules/fflush (Depends-on): Remove fclose.
11215         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11216         combination with module 'fclose'.
11217
11218 2011-05-05  Bruno Haible  <bruno@clisp.org>
11219
11220         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11221         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11222         gl_FUNC_FFLUSH.
11223         (gl_FUNC_FFLUSH): Use it.
11224         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11225         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11226         gl_REPLACE_FSEEKO here.
11227
11228 2011-05-05  Bruno Haible  <bruno@clisp.org>
11229
11230         tzset: Relicense under LGPL.
11231         * modules/tzset (License): Change to LGPL.
11232         No agreement needed; it's a no-op.
11233
11234         strtoimax, strtoumax: Relicense under LGPL.
11235         * modules/strtoimax (License): Change to LGPL.
11236         * modules/strtoumax (License): Likewise.
11237         With permission from Jim Meyering, Paul Eggert:
11238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11240
11241         getgroups: Relicense under LGPL.
11242         * modules/getgroups (License): Change to LGPL.
11243         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11247
11248         nanosleep: Relicense under LGPL.
11249         * modules/nanosleep (License): Change to LGPL.
11250         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11251         Haible:
11252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11256
11257         futimens: Relicense under LGPL.
11258         * modules/futimens (License): Change to LGPL.
11259         With permission from Eric Blake:
11260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11261
11262         fflush: Relicense under LGPL.
11263         * modules/fflush (License): Change to LGPL.
11264         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11268
11269         tmpfile: Relicense under LGPL.
11270         * modules/tmpfile (License): Change to LGPL.
11271         With permission from Ben Pfaff:
11272         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11273
11274         isfinite: Relicense under LGPL.
11275         * modules/isfinite (License): Change to LGPL.
11276         With permission from Ben Pfaff, Bruno Haible:
11277         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11279
11280         acosl..tanl: Relicense under LGPL.
11281         * modules/acosl (License): Change to LGPL.
11282         * modules/asinl (License): Likewise.
11283         * modules/atanl (License): Likewise.
11284         * modules/cosl (License): Likewise.
11285         * modules/expl (License): Likewise.
11286         * modules/logl (License): Likewise.
11287         * modules/sinl (License): Likewise.
11288         * modules/sqrtl (License): Likewise.
11289         * modules/tanl (License): Likewise.
11290         Source code originally from glibc and Paolo Bonzini. Agreements:
11291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11293
11294 2011-05-05  Bruno Haible  <bruno@clisp.org>
11295
11296         signal: Define sighandler_t.
11297         * lib/signal.in.h (sighandler_t): New type.
11298         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11299         whether sighandler_t is defined.
11300         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11301         * modules/signal (Depends-on): Add extensions.
11302         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11303         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11304         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11305
11306 2011-05-05  Eric Blake  <eblake@redhat.com>
11307
11308         maint: remove useless REPLACE_*_H macros
11309         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11310         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11311         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11312         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11313         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11314         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11315         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11316         * m4/btowc.m4: Update callers.
11317         * m4/dirfd.m4: Likewise.
11318         * m4/duplocale.m4: Likewise.
11319         * m4/fchdir.m4: Likewise.
11320         * m4/fdopendir.m4: Likewise.
11321         * m4/inet_ntop.m4: Likewise.
11322         * m4/inet_pton.m4: Likewise.
11323         * m4/ioctl.m4: Likewise.
11324         * m4/mbrlen.m4: Likewise.
11325         * m4/mbrtowc.m4: Likewise.
11326         * m4/mbsinit.m4: Likewise.
11327         * m4/mbsnrtowcs.m4: Likewise.
11328         * m4/mbsrtowcs.m4: Likewise.
11329         * m4/poll.m4: Likewise.
11330         * m4/setlocale.m4: Likewise.
11331         * m4/wcrtomb.m4: Likewise.
11332         * m4/wcsnrtombs.m4: Likewise.
11333         * m4/wcsrtombs.m4: Likewise.
11334         * m4/wctob.m4: Likewise.
11335         * m4/wcwidth.m4: Likewise.
11336         * modules/posix_spawn: Likewise.
11337         * modules/posix_spawn_file_actions_addclose: Likewise.
11338         * modules/posix_spawn_file_actions_adddup2: Likewise.
11339         * modules/posix_spawn_file_actions_addopen: Likewise.
11340         * modules/posix_spawn_file_actions_destroy: Likewise.
11341         * modules/posix_spawn_file_actions_init: Likewise.
11342         * modules/posix_spawnattr_destroy: Likewise.
11343         * modules/posix_spawnattr_getflags: Likewise.
11344         * modules/posix_spawnattr_getpgroup: Likewise.
11345         * modules/posix_spawnattr_getschedparam: Likewise.
11346         * modules/posix_spawnattr_getschedpolicy: Likewise.
11347         * modules/posix_spawnattr_getsigdefault: Likewise.
11348         * modules/posix_spawnattr_getsigmask: Likewise.
11349         * modules/posix_spawnattr_init: Likewise.
11350         * modules/posix_spawnattr_setflags: Likewise.
11351         * modules/posix_spawnattr_setpgroup: Likewise.
11352         * modules/posix_spawnattr_setschedparam: Likewise.
11353         * modules/posix_spawnattr_setschedpolicy: Likewise.
11354         * modules/posix_spawnattr_setsigdefault: Likewise.
11355         * modules/posix_spawnattr_setsigmask: Likewise.
11356         * modules/posix_spawnp: Likewise.
11357
11358 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11359
11360         Add option to do-release-commit-and-tag to specify branch.
11361         * build-aux/do-release-commit-and-tag: Add --branch.
11362
11363 2011-05-03  Bruno Haible  <bruno@clisp.org>
11364
11365         Avoid unnecessary compilation units, through conditional dependencies.
11366         * modules/accept (Depends-on): Add conditions to the dependencies.
11367         * modules/acosl (Depends-on): Likewise.
11368         * modules/argz (Depends-on): Likewise.
11369         * modules/asinl (Depends-on): Likewise.
11370         * modules/atanl (Depends-on): Likewise.
11371         * modules/atoll (Depends-on): Likewise.
11372         * modules/bind (Depends-on): Likewise.
11373         * modules/btowc (Depends-on): Likewise.
11374         * modules/canonicalize-lgpl (Depends-on): Likewise.
11375         * modules/ceil (Depends-on): Likewise.
11376         * modules/ceilf (Depends-on): Likewise.
11377         * modules/ceill (Depends-on): Likewise.
11378         * modules/chdir-long (Depends-on): Likewise.
11379         * modules/chown (Depends-on): Likewise.
11380         * modules/close (Depends-on): Likewise.
11381         * modules/connect (Depends-on): Likewise.
11382         * modules/cosl (Depends-on): Likewise.
11383         * modules/dirfd (Depends-on): Likewise.
11384         * modules/dprintf (Depends-on): Likewise.
11385         * modules/dprintf-posix (Depends-on): Likewise.
11386         * modules/error (Depends-on): Likewise.
11387         * modules/euidaccess (Depends-on): Likewise.
11388         * modules/expl (Depends-on): Likewise.
11389         * modules/faccessat (Depends-on): Likewise.
11390         * modules/fchdir (Depends-on): Likewise.
11391         * modules/fclose (Depends-on): Likewise.
11392         * modules/fcntl (Depends-on): Likewise.
11393         * modules/fdopendir (Depends-on): Likewise.
11394         * modules/fflush (Depends-on): Likewise.
11395         * modules/floor (Depends-on): Likewise.
11396         * modules/floorf (Depends-on): Likewise.
11397         * modules/floorl (Depends-on): Likewise.
11398         * modules/fnmatch (Depends-on): Likewise.
11399         * modules/fopen (Depends-on): Likewise.
11400         * modules/fprintf-posix (Depends-on): Likewise.
11401         * modules/frexp (Depends-on): Likewise.
11402         * modules/frexp-nolibm (Depends-on): Likewise.
11403         * modules/frexpl (Depends-on): Likewise.
11404         * modules/frexpl-nolibm (Depends-on): Likewise.
11405         * modules/fseek (Depends-on): Likewise.
11406         * modules/fsusage (Depends-on): Likewise.
11407         * modules/ftell (Depends-on): Likewise.
11408         * modules/ftello (Depends-on): Likewise.
11409         * modules/futimens (Depends-on): Likewise.
11410         * modules/getcwd (Depends-on): Likewise.
11411         * modules/getcwd-lgpl (Depends-on): Likewise.
11412         * modules/getdelim (Depends-on): Likewise.
11413         * modules/getdomainname (Depends-on): Likewise.
11414         * modules/getgroups (Depends-on): Likewise.
11415         * modules/gethostname (Depends-on): Likewise.
11416         * modules/getline (Depends-on): Likewise.
11417         * modules/getlogin_r (Depends-on): Likewise.
11418         * modules/getopt-posix (Depends-on): Likewise.
11419         * modules/getpeername (Depends-on): Likewise.
11420         * modules/getsockname (Depends-on): Likewise.
11421         * modules/getsockopt (Depends-on): Likewise.
11422         * modules/getsubopt (Depends-on): Likewise.
11423         * modules/getusershell (Depends-on): Likewise.
11424         * modules/glob (Depends-on): Likewise.
11425         * modules/grantpt (Depends-on): Likewise.
11426         * modules/iconv_open (Depends-on): Likewise.
11427         * modules/iconv_open-utf (Depends-on): Likewise.
11428         * modules/inet_ntop (Depends-on): Likewise.
11429         * modules/inet_pton (Depends-on): Likewise.
11430         * modules/ioctl (Depends-on): Likewise.
11431         * modules/isapipe (Depends-on): Likewise.
11432         * modules/isfinite (Depends-on): Likewise.
11433         * modules/isinf (Depends-on): Likewise.
11434         * modules/lchown (Depends-on): Likewise.
11435         * modules/ldexpl (Depends-on): Likewise.
11436         * modules/link (Depends-on): Likewise.
11437         * modules/linkat (Depends-on): Likewise.
11438         * modules/listen (Depends-on): Likewise.
11439         * modules/logl (Depends-on): Likewise.
11440         * modules/lstat (Depends-on): Likewise.
11441         * modules/mbrlen (Depends-on): Likewise.
11442         * modules/mbrtowc (Depends-on): Likewise.
11443         * modules/mbsinit (Depends-on): Likewise.
11444         * modules/mbsnrtowcs (Depends-on): Likewise.
11445         * modules/mbsrtowcs (Depends-on): Likewise.
11446         * modules/mbtowc (Depends-on): Likewise.
11447         * modules/memcmp (Depends-on): Likewise.
11448         * modules/mkdir (Depends-on): Likewise.
11449         * modules/mkdtemp (Depends-on): Likewise.
11450         * modules/mkfifo (Depends-on): Likewise.
11451         * modules/mkfifoat (Depends-on): Likewise.
11452         * modules/mknod (Depends-on): Likewise.
11453         * modules/mkostemp (Depends-on): Likewise.
11454         * modules/mkostemps (Depends-on): Likewise.
11455         * modules/mkstemp (Depends-on): Likewise.
11456         * modules/mkstemps (Depends-on): Likewise.
11457         * modules/mktime (Depends-on): Likewise.
11458         * modules/nanosleep (Depends-on): Likewise.
11459         * modules/open (Depends-on): Likewise.
11460         * modules/openat (Depends-on): Likewise.
11461         * modules/perror (Depends-on): Likewise.
11462         * modules/poll (Depends-on): Likewise.
11463         * modules/popen (Depends-on): Likewise.
11464         * modules/posix_spawn (Depends-on): Likewise.
11465         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11466         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11467         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11468         * modules/posix_spawnp (Depends-on): Likewise.
11469         * modules/pread (Depends-on): Likewise.
11470         * modules/printf-posix (Depends-on): Likewise.
11471         * modules/ptsname (Depends-on): Likewise.
11472         * modules/putenv (Depends-on): Likewise.
11473         * modules/pwrite (Depends-on): Likewise.
11474         * modules/readline (Depends-on): Likewise.
11475         * modules/readlink (Depends-on): Likewise.
11476         * modules/readlinkat (Depends-on): Likewise.
11477         * modules/recv (Depends-on): Likewise.
11478         * modules/recvfrom (Depends-on): Likewise.
11479         * modules/regex (Depends-on): Likewise.
11480         * modules/remove (Depends-on): Likewise.
11481         * modules/rename (Depends-on): Likewise.
11482         * modules/renameat (Depends-on): Likewise.
11483         * modules/rmdir (Depends-on): Likewise.
11484         * modules/round (Depends-on): Likewise.
11485         * modules/roundf (Depends-on): Likewise.
11486         * modules/roundl (Depends-on): Likewise.
11487         * modules/rpmatch (Depends-on): Likewise.
11488         * modules/select (Depends-on): Likewise.
11489         * modules/send (Depends-on): Likewise.
11490         * modules/sendto (Depends-on): Likewise.
11491         * modules/setenv (Depends-on): Likewise.
11492         * modules/setlocale (Depends-on): Likewise.
11493         * modules/setsockopt (Depends-on): Likewise.
11494         * modules/shutdown (Depends-on): Likewise.
11495         * modules/sigaction (Depends-on): Likewise.
11496         * modules/signbit (Depends-on): Likewise.
11497         * modules/sigprocmask (Depends-on): Likewise.
11498         * modules/sinl (Depends-on): Likewise.
11499         * modules/sleep (Depends-on): Likewise.
11500         * modules/snprintf (Depends-on): Likewise.
11501         * modules/snprintf-posix (Depends-on): Likewise.
11502         * modules/socket (Depends-on): Likewise.
11503         * modules/sprintf-posix (Depends-on): Likewise.
11504         * modules/sqrtl (Depends-on): Likewise.
11505         * modules/stat (Depends-on): Likewise.
11506         * modules/strchrnul (Depends-on): Likewise.
11507         * modules/strdup-posix (Depends-on): Likewise.
11508         * modules/strerror (Depends-on): Likewise.
11509         * modules/strerror_r-posix (Depends-on): Likewise.
11510         * modules/strndup (Depends-on): Likewise.
11511         * modules/strnlen (Depends-on): Likewise.
11512         * modules/strptime (Depends-on): Likewise.
11513         * modules/strsep (Depends-on): Likewise.
11514         * modules/strsignal (Depends-on): Likewise.
11515         * modules/strstr-simple (Depends-on): Likewise.
11516         * modules/strtod (Depends-on): Likewise.
11517         * modules/strtoimax (Depends-on): Likewise.
11518         * modules/strtok_r (Depends-on): Likewise.
11519         * modules/strtoumax (Depends-on): Likewise.
11520         * modules/symlink (Depends-on): Likewise.
11521         * modules/symlinkat (Depends-on): Likewise.
11522         * modules/tanl (Depends-on): Likewise.
11523         * modules/tcgetsid (Depends-on): Likewise.
11524         * modules/tmpfile (Depends-on): Likewise.
11525         * modules/trunc (Depends-on): Likewise.
11526         * modules/truncf (Depends-on): Likewise.
11527         * modules/truncl (Depends-on): Likewise.
11528         * modules/uname (Depends-on): Likewise.
11529         * modules/unlink (Depends-on): Likewise.
11530         * modules/unlockpt (Depends-on): Likewise.
11531         * modules/unsetenv (Depends-on): Likewise.
11532         * modules/usleep (Depends-on): Likewise.
11533         * modules/utimensat (Depends-on): Likewise.
11534         * modules/vasprintf (Depends-on): Likewise.
11535         * modules/vdprintf (Depends-on): Likewise.
11536         * modules/vdprintf-posix (Depends-on): Likewise.
11537         * modules/vfprintf-posix (Depends-on): Likewise.
11538         * modules/vprintf-posix (Depends-on): Likewise.
11539         * modules/vsnprintf (Depends-on): Likewise.
11540         * modules/vsnprintf-posix (Depends-on): Likewise.
11541         * modules/vsprintf-posix (Depends-on): Likewise.
11542         * modules/wcrtomb (Depends-on): Likewise.
11543         * modules/wcscasecmp (Depends-on): Likewise.
11544         * modules/wcscspn (Depends-on): Likewise.
11545         * modules/wcsdup (Depends-on): Likewise.
11546         * modules/wcsncasecmp (Depends-on): Likewise.
11547         * modules/wcsnrtombs (Depends-on): Likewise.
11548         * modules/wcspbrk (Depends-on): Likewise.
11549         * modules/wcsrtombs (Depends-on): Likewise.
11550         * modules/wcsspn (Depends-on): Likewise.
11551         * modules/wcsstr (Depends-on): Likewise.
11552         * modules/wcstok (Depends-on): Likewise.
11553         * modules/wcswidth (Depends-on): Likewise.
11554         * modules/wctob (Depends-on): Likewise.
11555         * modules/wctomb (Depends-on): Likewise.
11556         * modules/wctype (Depends-on): Likewise.
11557         * modules/wcwidth (Depends-on): Likewise.
11558         * modules/write (Depends-on): Likewise.
11559
11560 2011-05-03  Bruno Haible  <bruno@clisp.org>
11561
11562         Support for conditional dependencies.
11563         * doc/gnulib.texi (Module description): Document the syntax of
11564         conditional dependencies.
11565         * gnulib-tool: New option --conditional-dependencies.
11566         (func_usage): Document it.
11567         (cond_dependencies): New variable.
11568         (func_get_automake_snippet_conditional,
11569         func_get_automake_snippet_unconditional): New functions, extracted from
11570         func_get_automake_snippet.
11571         (func_get_automake_snippet): Use them.
11572         (sed_first_32_chars): New variable.
11573         (func_module_shellfunc_name): New function.
11574         (func_module_shellvar_name): New function.
11575         (func_module_conditional_name): New function.
11576         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11577         func_cond_module_condition): New functions.
11578         (func_modules_transitive_closure): Add support for conditional
11579         dependencies.
11580         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11581         conditional automake snippet in an automake conditional.
11582         (func_emit_autoconf_snippets): Emit shell functions that contain the
11583         code for conditional modules.
11584         (func_import, func_create_testdir): Update specification.
11585
11586 2011-05-03  Eric Blake  <eblake@redhat.com>
11587
11588         test-getaddrinfo: report error information
11589         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11590
11591 2011-05-03  Jim Meyering  <meyering@redhat.com>
11592
11593         bootstrap: avoid build failure when $GZIP is set
11594         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11595         program name.  If defined at all, it is supposed to list gzip options.
11596         Reported by Alan Curry in http://debbugs.gnu.org/8609
11597
11598 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11599
11600         readme-release: new module with release instructions
11601         * modules/readme-release: New module.
11602         * top/README-release: New file, from coreutils, grep, diffutils.
11603         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11604
11605 2011-05-02  Eric Blake  <eblake@redhat.com>
11606
11607         fflush: also replace fclose when fixing fflush
11608         * modules/fflush (Depends-on): Add fclose.
11609         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11610         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11611         memstreams with no backing fd.
11612         * doc/posix-functions/fclose.texi (fclose): Document the use of
11613         fflush module to fix the bug.
11614         * tests/test-fclose.c (main): Relax test when fclose is used in
11615         isolation.
11616
11617         fclose: add some tests
11618         * modules/fclose-tests: New test module.
11619         * tests/test-fclose.c: New file.
11620         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11621
11622         fclose: reduced dependencies
11623         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11624         simpler lseek.
11625         * lib/fclose.c (rpl_fclose): Likewise.
11626         Reported by Simon Josefsson.
11627
11628         exit: drop remaining clients
11629         * modules/argmatch (Depends-on): Replace exit with stdlib.
11630         * modules/copy-file (Depends-on): Likewise.
11631         * modules/execute (Depends-on): Likewise.
11632         * modules/exitfail (Depends-on): Likewise.
11633         * modules/obstack (Depends-on): Likewise.
11634         * modules/pagealign_alloc (Depends-on): Likewise.
11635         * modules/pipe-filter-gi (Depends-on): Likewise.
11636         * modules/pipe-filter-ii (Depends-on): Likewise.
11637         * modules/savewd (Depends-on): Likewise.
11638         * modules/spawn-pipe (Depends-on): Likewise.
11639         * modules/wait-process (Depends-on): Likewise.
11640         * modules/xsetenv (Depends-on): Likewise.
11641         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11642         * modules/git-merge-changelog (Depends-on): Likewise.
11643         * modules/long-options (Depends-on): Likewise.
11644         * modules/pt_chown (Depends-on): Likewise.
11645         * modules/sysexits (Depends-on): Likewise.
11646
11647         freading: relax license from LGPLv3+ to LGPLv2+
11648         * modules/freading (License): Relax LGPL version.
11649
11650 2011-05-02  Bruno Haible  <bruno@clisp.org>
11651
11652         fchdir: Remove unused dependencies.
11653         * modules/fchdir (Depends-on): Remove include_next.
11654
11655 2011-05-02  Bruno Haible  <bruno@clisp.org>
11656
11657         gnulib-tool: Refactor.
11658         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11659         from func_emit_autoconf_snippets.
11660         (func_emit_autoconf_snippets): Use it.
11661
11662 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11663
11664         * NEWS: Document removal of 'exit'.
11665         * modules/exit: Remove file.
11666
11667 2011-05-01  Bruno Haible  <bruno@clisp.org>
11668
11669         Update DEPENDENCIES.
11670         * DEPENDENCIES (gettext): Recommend the newest release.
11671         Reported by Simon Josefsson.
11672
11673 2011-05-01  Bruno Haible  <bruno@clisp.org>
11674
11675         gnulib-tool: Reduce code duplication.
11676         * gnulib-tool (func_emit_autoconf_snippets): New function.
11677         (func_import, func_create_testdir): Use it.
11678
11679 2011-04-30  Eric Blake  <eblake@redhat.com>
11680
11681         fclose: don't fail on non-seekable input stream
11682         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11683         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11684         since fflush is allowed to fail in that case.
11685
11686 2011-04-30  Bruno Haible  <bruno@clisp.org>
11687
11688         dup3: cleanup
11689         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11690
11691 2011-04-30  Bruno Haible  <bruno@clisp.org>
11692
11693         netdb: Make it work in C++ mode.
11694         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11695         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11696         module.
11697         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11698         gl_MODULE_INDICATOR_FOR_TESTS.
11699         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11700         * modules/netdb-c++-tests: New file.
11701         * tests/test-netdb-c++.cc: New file.
11702
11703 2011-04-30  Bruno Haible  <bruno@clisp.org>
11704
11705         New modules 'vfscanf', 'vscanf'.
11706         * modules/vfscanf: New file.
11707         * modules/vscanf: New file.
11708         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11709         here.
11710         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11711         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11712
11713 2011-04-30  Bruno Haible  <bruno@clisp.org>
11714
11715         passfd: Add comments.
11716         * lib/passfd.c: Add comments about platforms.
11717
11718 2011-04-30  Bruno Haible  <bruno@clisp.org>
11719
11720         sys_uio: Make <sys/uio.h> self-contained.
11721         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11722         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11723
11724 2011-04-30  Bruno Haible  <bruno@clisp.org>
11725
11726         sys_socket: Ensure 'struct iovec' definition.
11727         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11728         <sys/socket.h>.
11729         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11730
11731 2011-04-30  Bruno Haible  <bruno@clisp.org>
11732
11733         sys_uio: Protect definition of 'struct iovec'.
11734         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11735         it as a C struct.
11736
11737 2011-04-30  Bruno Haible  <bruno@clisp.org>
11738
11739         manywarnings: fix indentation
11740         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11741
11742 2011-04-30  Pádraig Brady <P@draigBrady.com>
11743
11744         manywarnings: add -Wno-missing-field-initializers if needed.
11745         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11746         option if it's needed to allow initialization with { 0, }
11747
11748 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11749
11750         announce-gen: cosmetic improvement
11751         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11752
11753 2011-04-29  Jim Meyering  <meyering@redhat.com>
11754
11755         vc-list-files: indent with spaces, not TABs
11756         * build-aux/vc-list-files: Convert leading TABs to spaces,
11757         to match the style of most other files in gnulib.
11758
11759         announce-gen: indent with spaces, not TABs
11760         * build-aux/announce-gen: Convert all TABs to spaces, to match
11761         the style of most other files in gnulib.
11762
11763 2011-04-29  Eric Blake  <eblake@redhat.com>
11764
11765         quotearg: avoid uninitialized variable use
11766         * lib/quotearg.c (quoting_options_from_style): Initialize
11767         remaining fields, and ensure that custom styles are only used via
11768         quoting_options rather than quoting_style.
11769
11770 2011-04-29  Jim Meyering  <meyering@redhat.com>
11771
11772         maint.mk: remove unused VC-tag variable
11773         * top/maint.mk (VC-tag): Remove unused variable.
11774
11775 2011-04-29  Bruno Haible  <bruno@clisp.org>
11776
11777         netdb: fix gai_strerror replacements
11778         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11779         * modules/netdb: Substitute it.
11780
11781 2011-04-29  Jim Meyering  <meyering@redhat.com>
11782
11783         test-getcwd.c: avoid new set-but-not-used warning
11784         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11785         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11786         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11787         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11788
11789         test-hash.c: avoid a new shadowing warning
11790         * tests/test-hash.c (main): Don't shadow "dup".
11791
11792 2011-04-28  Eric Blake  <eblake@redhat.com>
11793
11794         getaddrinfo: fix gai_strerror signature
11795         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11796         and work around mingw with UNICODE defined.
11797         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11798         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11799         * modules/netdb (Makefile.am): Substitute it.
11800         * lib/netdb.in.h (gai_strerror): Declare replacement.
11801         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11802         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11803         the fix.
11804
11805         getsockopt: avoid compiler warning
11806         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11807         Reported by Matthias Bolte.
11808
11809         tests: drop unused link dependency
11810         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11811         * modules/dirent-safer-tests (Makefile.am): Likewise.
11812         * modules/fdopendir-tests (Makefile.am): Likewise.
11813         * modules/mkfifoat-tests (Makefile.am): Likewise.
11814         * modules/openat-safer-tests (Makefile.am): Likewise.
11815         * modules/openat-tests (Makefile.am): Likewise.
11816         * modules/readlinkat-tests (Makefile.am): Likewise.
11817         * modules/symlinkat-tests (Makefile.am): Likewise.
11818         * modules/linkat-tests (Makefile.am): Likewise.
11819         (Depends-on): Switch to filenamecat-lgpl.
11820         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11821         LIBINTL.
11822         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11823         * tests/test-linkat.c (main): Don't require xalloc.
11824
11825         hash, mgetgroups: drop xalloc dependency
11826         * lib/hash.c (includes): Adjust includes.
11827         * lib/mgetgroups.c (includes): Likewise.
11828         (xgetgroups): Move...
11829         * lib/xgetgroups.c: ...to new file.
11830         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11831         * modules/xgetgroups: New file, split from...
11832         * modules/mgetgroups: ...here.
11833         (Depends-on): Add xalloc-oversized.
11834         * modules/hash (Depends-on): Likewise.
11835         * modules/hash-tests (Depends-on): Drop xalloc.
11836         (test_hash_LDADD): Drop unused library.
11837         * tests/test-hash.c (main): Break xalloc dependency.
11838         (includes): Drop unused include.
11839
11840         xalloc-oversized: new module
11841         * modules/xalloc-oversized: New module.
11842         * modules/xalloc (Depends-on): Add it.
11843         * lib/xalloc.h (xalloc_oversized): Move...
11844         * lib/xalloc-oversized.h: ...into new file.
11845
11846         utimecmp: drop dependency on xmalloc
11847         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11848         due to memory pressure.
11849         * modules/utimecmp (Depends-on): Drop xalloc.
11850
11851 2011-04-27  Eric Blake  <eblake@redhat.com>
11852
11853         getcwd: fix mingw bugs
11854         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11855         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11856         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11857
11858 2011-04-27  Bruno Haible  <bruno@clisp.org>
11859
11860         mkstemps: Ensure declaration on MacOS X 10.5.
11861         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11862         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11863         MacOS X.
11864
11865 2011-04-27  Bruno Haible  <bruno@clisp.org>
11866
11867         mkstemp: More documentation.
11868         * doc/posix-functions/mkstemp.texi: Document header file problem on
11869         MacOS X.
11870
11871 2011-04-27  Bruno Haible  <bruno@clisp.org>
11872
11873         mkstemp: Tweak configure message when cross-compiling.
11874         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11875         result as a guess.
11876
11877 2011-04-27  Bruno Haible  <bruno@clisp.org>
11878
11879         clean-temp: Clarify what it does.
11880         * lib/clean-temp.h: Add more comments.
11881         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11882         module.
11883         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11884         * doc/glibc-functions/mkstemps.texi: Likewise.
11885         * doc/glibc-functions/mkostemps.texi: Likewise.
11886
11887 2011-04-27  Eric Blake  <eblake@redhat.com>
11888
11889         fchdir: avoid extra chdir and fix test
11890         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11891         getcwd-lgpl.
11892         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11893         have to be canonical.
11894         (canonicalize_file_name): Drop unused macro.
11895         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11896
11897         filenamecat-lgpl: fix licence
11898         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11899         when it was first created.
11900
11901         linkat, renameat: add missing dependency
11902         * modules/linkat (Depends-on): Require getcwd-lgpl.
11903         * modules/renameat (Depends-on): Likewise.
11904
11905         tests: reduce dependencies
11906         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11907         * tests/test-renameat.c (main): Likewise.
11908         * modules/linkat-tests (Depends-on): Relax dependency.
11909         * modules/renameat-tests (Depends-on): Likewise.
11910         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11911         dependency explicit.
11912
11913         save-cwd: reduce default dependency
11914         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11915         * lib/save-cwd.c: Update comments.
11916         * NEWS: Document the semantic change.
11917
11918         getcwd: enhance tests
11919         * tests/test-getcwd-lgpl.c: New file, taken from...
11920         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11921         repeat long path stress tests from m4 probe.
11922         * modules/getcwd-lgpl-tests: New module.
11923         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11924         * m4/getcwd-abort-bug.m4: Update comment.
11925         * m4/getcwd-path-max.m4: Likewise.
11926
11927         getcwd-lgpl: new module
11928         * modules/getcwd-lgpl: New module.
11929         * lib/getcwd-lgpl.c: New file.
11930         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11931         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11932         * modules/getcwd (configure.ac): Set C witness.
11933         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11934
11935         getcwd: tweak comments
11936         * m4/getcwd-abort-bug.m4: Fix comments.
11937         * m4/getcwd-path-max.m4: Likewise.
11938         * m4/getcwd.m4: Likewise.
11939
11940 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11941         and Eric Blake  <eblake@redhat.com>
11942
11943         mkstemp: replace if system version uses wrong permissions
11944         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11945         read/write mode bits set in file created by mkstemp.
11946         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11947
11948 2011-04-27  Eric Blake  <eblake@redhat.com>
11949
11950         passfd: avoid compiler warning
11951         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11952         Reported by Laine Stump.
11953
11954 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11955
11956         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11957         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11958
11959 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11960         and Eric Blake  <eblake@redhat.com>
11961
11962         mkstemp: mention clean-temp module
11963         * lib/mkstemp.c: Add comment.
11964         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11965
11966 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11967
11968         inttypes: also provide default values for 32-bit tests
11969         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11970         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11971
11972 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11973
11974         strtoumax: remove dependency on strtoimax
11975         This is like the strtoull change of yesterday.
11976         * modules/strtoumax (Files): Add lib/strtoimax.c.
11977         (Depends-on): Remove strtoimax and add verify.
11978
11979         inttypes-incomplete: new module
11980         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11981         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11982         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11983         of gl_INTTYPES_H.
11984         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11985         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11986         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11987         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
11988         * modules/strtoumax, modules/xstrtol (Depends-on):
11989         Depend on inttypes-incomplete, not inttypes.
11990         * modules/inttypes-incomplete: New module, containing the contents
11991         of the old modules/inttypes module, except that the Files: section
11992         omits m4/inttypes-pri.m4, and the configure.ac section invokes
11993         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
11994         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
11995         (Depends-on): Depend only on inttypes-incomplete.
11996         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
11997
11998         inttypes: omit now-redundant strtoimax and strtoumax work
11999         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12000         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12001
12002         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12003         This supports apps that need pointers to strtoimax and strtoumax,
12004         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12005         nonexistent functions.  See
12006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12007         et seq.
12008         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12009         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12010         a macro.
12011         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12012
12013 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12014
12015         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12016
12017 2011-04-25  Bruno Haible  <bruno@clisp.org>
12018
12019         strtol, strtoul: Mark modules as obsolete.
12020         * modules/strtol (Status, Notice): New sections.
12021         * modules/strtoul (Status, Notice): New sections.
12022
12023 2011-04-25  Bruno Haible  <bruno@clisp.org>
12024
12025         strtod: Remove check for strtod, unless supporting old platforms.
12026         * modules/strtod-obsolete: New file.
12027         * m4/strtod-obsolete.m4: New file.
12028         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12029         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12030         * modules/strtod (Depends-on): Add strtod-obsolete.
12031         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12032
12033 2011-04-25  Bruno Haible  <bruno@clisp.org>
12034
12035         strcase: Make module obsolete.
12036         * modules/strcase (Status, Notice): New sections.
12037
12038 2011-04-25  Bruno Haible  <bruno@clisp.org>
12039
12040         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12041         * modules/dup2-obsolete: New file.
12042         * m4/dup2-obsolete.m4: New file.
12043         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12044         gl_FUNC_DUP2_OBSOLETE is not also defined.
12045         * modules/dup2 (Depends-on): Add dup2-obsolete.
12046         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12047
12048 2011-04-25  Bruno Haible  <bruno@clisp.org>
12049
12050         strnlen: Avoid memchr related link error on old obsolete platforms.
12051         * modules/memchr-obsolete: New file.
12052         * m4/memchr-obsolete.m4: New file.
12053         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12054         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12055         * modules/memchr (Depends-on): Add memchr-obsolete.
12056         * modules/strnlen (Depends-on): Likewise.
12057         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12058
12059 2011-04-25  Jim Meyering  <meyering@redhat.com>
12060
12061         maint.mk: makefile_at_at_check extend and clean up
12062         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12063         in addition to */Makefile.am.
12064         Exempt legitimate uses of @VAR@ notation, e.g.,
12065         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12066         Remove obsolete coreutils-specific comment.
12067         Prompted by discussion here:
12068         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12069
12070 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12071
12072         strtoul: remove dependency on strtol
12073         This is so that 'configure' need not check for strtol merely because
12074         the application needs strtoul.
12075         * modules/strtoul (Files): Add lib/strtol.c.
12076         (Depends-on): Remove strtol.
12077
12078         strtoull: remove dependency on strtoul
12079         This is like the strtoll change.
12080         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12081         (Depends-on): Remove strtoul.
12082
12083         strtoll: remove dependency on strtol
12084         This is so that 'configure' need not check for strtol merely because
12085         the application needs strtoll.
12086         * modules/strtoll (Files): Add lib/strtol.c.
12087         (Depends-on): Remove strtol.
12088
12089 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12090
12091         inttypes: Move some configure check to module 'imaxdiv'.
12092         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12093         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12094         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12095
12096 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12097
12098         inttypes: Move some configure check to module 'imaxabs'.
12099         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12100         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12101         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12102
12103 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12104
12105         inttypes: Remove configure tests that are not needed since 2009-12-31.
12106         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12107         gl_cv_header_working_inttypes_h.
12108
12109 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12110
12111         * modules/strnlen (Depends-on): Remove memchr.
12112         The strnlen implementation doesn't need the memchr module's fixes; see
12113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12114
12115         strtol: remove dependency on wchar
12116         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12117         * modules/strtol (Depends-on): Remove wchar.
12118
12119 2011-04-21  Eric Blake  <eblake@redhat.com>
12120
12121         passfd: fix test regression on Linux
12122         * modules/passfd-tests (configure.ac): Correct socketpair check.
12123
12124         passfd: speed up configure and drop unused code
12125         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12126         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12127         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12128         Instead of probing at configure for unix_scm_rights_bsd44_way,
12129         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12130         check to a struct member probe.
12131         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12132         (sendfd, recvfd): Update preprocessor checks.
12133         * modules/passfd (Files): Reflect rename, and drop unused file.
12134         (Depends-on): Drop unused dependency.
12135
12136         passfd: allow compilation on mingw
12137         * modules/sys_socket (Depends-on): Add sys_uio.
12138         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12139         iovec and a minimal struct msghdr.
12140         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12141         * tests/test-sys_socket.c (main): Enhance test.
12142         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12143         guaranteed to provide what we need.
12144         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12145         * modules/passfd-tests (Depends-on): Add sys_wait.
12146         * tests/test-passfd.c (main): Skip test on mingw, for now.
12147         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12148         partial 'struct msghdr' implementation.
12149
12150         sys_uio: new module
12151         * modules/sys_uio: New module.
12152         * modules/sys_uio-tests: Likewise.
12153         * lib/sys_uio.in.h: New file.
12154         * m4/sys_uio_h.m4: Likewise.
12155         * tests/test-sys_uio.c: Likewise.
12156         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12157         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12158
12159 2011-04-20  Jim Meyering  <meyering@redhat.com>
12160
12161         useless-if-before-free: avoid false-positive
12162         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12163         disjunct so that it too requires a terminating ";".  Without that,
12164         this script would identify as useless one statement from gcc that
12165         was not:
12166           if (aligned_ptr)
12167             free (((void **) aligned_ptr) [-1]);
12168
12169 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12170
12171         doc: update users.txt.
12172         * users.txt: Add barcode.
12173
12174 2011-04-19  Bruno Haible  <bruno@clisp.org>
12175
12176         ioctl: Remove link dependency on native Windows.
12177         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12178         (gl_close_fn, gl_ioctl_fn): New types.
12179         (struct fd_hook): Renamed from struct close_hook. Change type of
12180         private_close_fn field. Add private_ioctl_fn field.
12181         (close_hook_fn): Add parameter for primary close method.
12182         (execute_close_hooks, execute_all_close_hooks): Likewise.
12183         (ioctl_hook_fn): New type.
12184         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12185         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12186         argument.
12187         (unregister_fd_hook): Renamed from unregister_close_hook.
12188         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12189         Don't include <unistd.h>.
12190         (close): Remove undef.
12191         (anchor): Update.
12192         (execute_close_hooks): Add argument for primary close method.
12193         (execute_all_close_hooks): Likewise.
12194         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12195         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12196         argument. Allow each argument to be NULL.
12197         (unregister_fd_hook): Renamed from unregister_close_hook.
12198         * lib/close.c (rpl_close): Pass 'close' function pointer to
12199         execute_all_close_hooks.
12200         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12201         (primary_ioctl): New function.
12202         (ioctl): Don't call ioctlsocket here. Instead, call
12203         execute_all_ioctl_hooks.
12204         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12205         close method.
12206         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12207         (fd_sockets_hook): Renamed from close_sockets_hook.
12208         (gl_sockets_startup, gl_sockets_cleanup): Update.
12209         * modules/fd-hook: Renamed from modules/close-hook. Update.
12210         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12211         * modules/sockets (Depends-on): Likewise.
12212         * modules/ioctl (Depends-on): Add fd-hook.
12213         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12214         GNULIB_SOCKET.
12215
12216 2011-04-19  Bruno Haible  <bruno@clisp.org>
12217
12218         Move the support of O_NONBLOCK in open() to the 'open' module.
12219         * modules/nonblocking (Depends-on): Remove 'open'.
12220         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12221         gl_cv_have_open_O_NONBLOCK.
12222         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12223         O_NONBLOCK support.
12224         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12225
12226 2011-04-17  Bruno Haible  <bruno@clisp.org>
12227
12228         pipe2: Simplify code.
12229         * lib/pipe2.c (pipe2): Reduce code duplication.
12230
12231 2011-04-17  Bruno Haible  <bruno@clisp.org>
12232
12233         nonblocking: Add comment.
12234         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12235
12236 2011-04-17  Bruno Haible  <bruno@clisp.org>
12237
12238         nonblocking: Add tests for sockets.
12239         * tests/test-nonblocking-socket.sh: New file.
12240         * tests/test-nonblocking-socket-main.c: New file.
12241         * tests/test-nonblocking-socket-child.c: New file.
12242         * tests/test-nonblocking-socket.h: New file.
12243         * tests/socket-server.h: New file.
12244         * tests/socket-client.h: New file.
12245         * modules/nonblocking-socket-tests: New file.
12246         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12247
12248 2011-04-17  Bruno Haible  <bruno@clisp.org>
12249
12250         nonblocking: Add tests for pipes.
12251         * tests/test-nonblocking-pipe.sh: New file.
12252         * tests/test-nonblocking-pipe-main.c: New file.
12253         * tests/test-nonblocking-pipe-child.c: New file.
12254         * tests/test-nonblocking-pipe.h: New file.
12255         * tests/test-nonblocking-writer.h: New file.
12256         * tests/test-nonblocking-reader.h: New file.
12257         * tests/test-nonblocking-misc.h: New file.
12258         * modules/nonblocking-pipe-tests: New file.
12259         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12260
12261 2011-04-16  Bruno Haible  <bruno@clisp.org>
12262
12263         gettext: Clarify the needed programmer actions.
12264         * modules/gettext (Notice): New field.
12265         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12266
12267 2011-04-16  Bruno Haible  <bruno@clisp.org>
12268
12269         strchrnul: Tweak last commit.
12270         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12271         bug.
12272         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12273         as in _GL_FUNCDECL_SYS.
12274         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12275         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12276
12277 2011-04-15  Eric Blake  <eblake@redhat.com>
12278
12279         strchrnul: work around cygwin bug
12280         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12281         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12283         * modules/string (Makefile.am): Substitute it.
12284         * lib/string.in.h (strchrnul): Use it.
12285
12286 2011-04-15  Bruno Haible  <bruno@clisp.org>
12287
12288         Don't require lib/stdio-write.c when only module 'stdio' is used.
12289         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12290         invocation.
12291         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12292
12293 2011-04-14  Bruno Haible  <bruno@clisp.org>
12294
12295         Support non-blocking pipe I/O in read() on native Windows.
12296         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12297         (read): New declaration.
12298         * lib/read.c: New file.
12299         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12300         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12301         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12302         vscanf): New declarations.
12303         * lib/stdio-read.c: New file.
12304         * m4/read.m4: New file.
12305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12306         REPLACE_READ.
12307         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12308         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12309         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12310         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12311         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12312         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12313         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12314         * modules/read: New file.
12315         * modules/nonblocking (Files): Add lib/stdio-read.c.
12316         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12317         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12318         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12319         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12320         * modules/pread (Depends-on): Add read.
12321         * modules/safe-read (Depends-on): Likewise.
12322         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12323         gets, scanf, vfscanf, vscanf): Verify signatures.
12324         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12325         problem with non-blocking pipes.
12326         * doc/posix-functions/fgetc.texi: Likewise.
12327         * doc/posix-functions/fgets.texi: Likewise.
12328         * doc/posix-functions/fread.texi: Likewise.
12329         * doc/posix-functions/fscanf.texi: Likewise.
12330         * doc/posix-functions/getc.texi: Likewise.
12331         * doc/posix-functions/getchar.texi: Likewise.
12332         * doc/posix-functions/gets.texi: Likewise.
12333         * doc/posix-functions/scanf.texi: Likewise.
12334         * doc/posix-functions/vfscanf.texi: Likewise.
12335         * doc/posix-functions/vscanf.texi: Likewise.
12336
12337 2011-04-14  Bruno Haible  <bruno@clisp.org>
12338
12339         Support non-blocking pipe I/O in write() on native Windows.
12340         * lib/write.c (rpl_write): Split a write request that failed merely
12341         because the byte count was larger than the pipe buffer's size.
12342         * doc/posix-functions/write.texi: Mention the problem with large byte
12343         counts.
12344
12345 2011-04-14  Bruno Haible  <bruno@clisp.org>
12346
12347         wchar: Ensure that wchar_t gets defined on uClibc.
12348         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12349         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12350
12351 2011-04-13  Bruno Haible  <bruno@clisp.org>
12352
12353         safe-write, full-read: Avoid unnecessary compilation units.
12354         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12355         (Depends-on): Remove safe-read. Add ssize_t.
12356         * modules/full-read (Files): Add lib/full-write.c.
12357         (Depends-on): Add full-write.
12358
12359 2011-04-13  Bruno Haible  <bruno@clisp.org>
12360
12361         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12362         * modules/pwrite (Depends-on): Add 'write'.
12363
12364 2011-04-13  Bruno Haible  <bruno@clisp.org>
12365
12366         Support non-blocking pipe I/O in write() on native Windows.
12367         * lib/unistd.in.h (write): Enable replacement also if
12368         GNULIB_UNISTD_H_NONBLOCKING is 1.
12369         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12370         (rpl_write): When failing to write on a non-blocking pipe, change
12371         errno from ENOSPC to EAGAIN.
12372         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12373         putchar, puts, vfprintf, vprintf): Enable replacement also if
12374         GNULIB_STDIO_H_NONBLOCKING is 1.
12375         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12376         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12377         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12378         CALL_WITH_SIGPIPE_EMULATION.
12379         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12380         * m4/nonblocking.m4: New file.
12381         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12382         for non-blocking I/O support.
12383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12384         GNULIB_UNISTD_H_NONBLOCKING.
12385         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12386         required for non-blocking I/O support.
12387         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12388         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12389         lib/stdio-write.c, m4/asm-underscore.m4.
12390         (Depends-on): Add stdio, unistd.
12391         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12392         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12393         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12394         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12395         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12396         problem with non-blocking pipes.
12397         * doc/posix-functions/fputc.texi: Likewise.
12398         * doc/posix-functions/fputs.texi: Likewise.
12399         * doc/posix-functions/fwrite.texi: Likewise.
12400         * doc/posix-functions/printf.texi: Likewise.
12401         * doc/posix-functions/putc.texi: Likewise.
12402         * doc/posix-functions/putchar.texi: Likewise.
12403         * doc/posix-functions/puts.texi: Likewise.
12404         * doc/posix-functions/vfprintf.texi: Likewise.
12405         * doc/posix-functions/vprintf.texi: Likewise.
12406         * doc/posix-functions/write.texi: Likewise.
12407
12408 2011-04-10  Jim Meyering  <meyering@redhat.com>
12409
12410         maint.mk: prohibit doubled words
12411         Detect them also when they're separated by a newline.
12412         There are 3 ways to customize it:
12413           - disable the test on a per file basis, as usual with rules using
12414             $(VC_LIST_EXCEPT)
12415           - replace the default doubled-word-selecting regexp (affects all files)
12416           - ignore a particular file-vs-doubled-word match
12417         I nearly used that last one to ignore the "is is" match in
12418         coreutils' NEWS file, since the text was "ls -is is ..."
12419         To do that, I would have added this line to cfg.mk:
12420           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12421         but it would have ignored any "is is" match in NEWS.
12422         Low probability, but still...
12423         Instead, I changed the text, slightly:
12424           -  ls -is is now consistent with ls -lis in ignoring values returned
12425           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12426         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12427         (prohibit_doubled_word_): Define.
12428         (sc_prohibit_doubled_word): New rule.
12429         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12430
12431 2011-04-10  Jim Meyering  <meyering@redhat.com>
12432
12433         maint: fix doubled-word typo in comment
12434         * m4/gethostname.m4: s/is is/it is/
12435         * m4/getdomainname.m4: Likewise.
12436
12437 2011-04-10  Jim Meyering  <meyering@redhat.com>
12438
12439         maint: remove doubled word: s/it it/it/
12440         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12441
12442 2011-04-10  Jim Meyering  <meyering@redhat.com>
12443
12444         maint.mk: remove useless semicolon and backslash
12445         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12446         semicolon and backslash.
12447
12448 2011-04-10  Bruno Haible  <bruno@clisp.org>
12449
12450         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12451         * modules/stdint-tests (Depends-on): Add wchar.
12452
12453 2011-04-10  Jim Meyering  <meyering@redhat.com>
12454
12455         maint: remove doubled words in comments, e.g., s/a a/a/
12456         * lib/strptime.c (day_of_the_week): s/the the/the/
12457         * tests/test-chown.h (test_chown): s/a a/a/
12458
12459         test-chown.h: correct a cast
12460         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12461         when the destination is a stat.st_gid.
12462
12463 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12464
12465         getaddrinfo: Fix test for sa_len member.
12466         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12467         include <sys/types.h> before <sys/socket.h>.
12468
12469 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12470
12471         maint: change "can not" to "cannot"
12472         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12473         boundaries.
12474
12475 2011-04-09  Jim Meyering  <meyering@redhat.com>
12476
12477         maint: change "a a" to "a"
12478         * tests/test-lchown.h (test_lchown): s/a a/a/
12479
12480         maint.mk: prohibit \<the the\>
12481         * top/maint.mk (sc_prohibit_the_the): New rule.
12482
12483         maint: fix "the the" in comment
12484         * lib/count-one-bits.h: s/the the/the/
12485
12486         maint: change "can not" to "cannot"
12487         But do not change the occurrences in maintain.texi or in
12488         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12489         * doc/gnulib-tool.texi: s/can not/cannot/
12490         * doc/posix-functions/accept.texi (accept): Likewise.
12491         * doc/posix-functions/socket.texi (socket): Likewise.
12492         * lib/mbrtowc.c: Likewise.
12493
12494         maint.mk: prohibit use of "can not"
12495         * top/maint.mk (sc_prohibit_can_not): New rule.
12496         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12497
12498 2011-04-09  Bruno Haible  <bruno@clisp.org>
12499
12500         careadlinkat: Guard against misuse of careadlinkatcwd.
12501         * lib/careadlinkat.c: Include <stdlib.h>.
12502         (careadlinkatcwd): Check that the fd argument is as expected.
12503
12504 2011-04-09  Bruno Haible  <bruno@clisp.org>
12505
12506         careadlinkat: Use common coding style.
12507         * lib/careadlinkat.c: Move gnulib includes after system includes.
12508
12509 2011-04-09  Bruno Haible  <bruno@clisp.org>
12510
12511         careadlinkat: Clarify specification.
12512         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12513         (careadlinkatcwd): Add comment.
12514         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12515
12516 2011-04-09  Bruno Haible  <bruno@clisp.org>
12517
12518         areadlinkat: Avoid link error on many platforms.
12519         * modules/areadlinkat (Depends-on): Add areadlink.
12520
12521 2011-04-09  Bruno Haible  <bruno@clisp.org>
12522
12523         allocator, careadlinkat: Fix double-inclusion guard.
12524         * lib/allocator.h: Fix double-inclusion guard.
12525         * lib/careadlinkat.h: Likewise.
12526
12527 2011-04-09  Bruno Haible  <bruno@clisp.org>
12528
12529         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12530         * lib/relocwrapper.c: Update dependencies hierarchy.
12531         * build-aux/install-reloc: Update list of files to be compiled.
12532         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12533         lib/allocator.[hc].
12534
12535 2011-04-08  Eric Blake  <eblake@redhat.com>
12536
12537         strftime: silence gnulib-tool warning
12538         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12539
12540 2011-04-08  Bruno Haible  <bruno@clisp.org>
12541
12542         verify: Fix syntax error with GCC 4.6 in C++ mode.
12543         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12544         (HAVE_STATIC_ASSERT): New macro.
12545         (verify_true, verify): Use 'static_assert' if it is supported and
12546         '_Static_assert' is not supported.
12547
12548 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12549
12550         allocator: New module.
12551         * modules/allocator, lib/allocator.c: New files.
12552         * lib/allocator.h (stdlib_allocator): New decl.
12553         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12554         Remove.  Do not include <stdlib.h>.
12555         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12556         * modules/careadlinkat (Files): Remove lib/allocator.h.
12557         (Depends-on): Add allocator.
12558
12559         stdlib: let modules use system malloc, realloc
12560         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12561         if !_GL_USE_STDLIB_ALLOC.
12562         (malloc, realloc): Limit this change to a smaller scope.
12563
12564         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12565         (malloc, realloc): Don't #undef; no longer needed.
12566         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12567         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12568         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12569         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12570         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12571         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12572         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12573         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12574
12575         careadlinkat: rename members to avoid problem
12576         * lib/allocator.h (struct allocator): Rename members from
12577         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12578         and realloc are #define'd.  Reported by Eric Blake in
12579         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12580         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12581
12582 2011-04-08  Eric Blake  <eblake@redhat.com>
12583
12584         nonblocking: reduce dependency
12585         * tests/test-nonblocking.c: Only test sockets when in use.
12586         * modules/nonblocking-tests (Depends-on): Drop socket.
12587         (Makefile.am): Link even if sockets are not present.
12588         * modules/pipe2-tests (Makefile.am): Likewise.
12589         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12590
12591         pipe2: fix O_NONBLOCK support on mingw
12592         * modules/pipe2 (Depends-on): Add nonblocking.
12593         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12594         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12595         * tests/test-nonblocking.c (main): Likewise.
12596         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12597
12598         fcntl-h: fix O_ACCMODE on cygwin
12599         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12600         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12601
12602         pipe-filter: drop O_NONBLOCK workarounds
12603         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12604         * modules/pipe-filter-ii (Depends-on): Likewise.
12605         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12606
12607         nonblocking: provide O_NONBLOCK for mingw
12608         * modules/nonblocking (Depends-on): Add open.
12609         (configure.ac): Set new witness macro.
12610         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12611         * modules/fcntl-h (Makefile.am): Substitute it.
12612         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12613         nonblocking module is in use.
12614         * lib/nonblocking.c: Adjust portability test.
12615         * lib/open.c (open): Don't let native open see gnulib flag.
12616         * tests/test-fcntl-h.c (main): Enhance test.
12617         * tests/test-open.h (test_open): Likewise.
12618         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12619
12620         careadlinkat: fix compilation error on mingw
12621         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12622         within struct allocator.
12623
12624 2011-04-06  Eric Blake  <eblake@redhat.com>
12625
12626         binary-io: relicense under LGPLv2+
12627         * modules/binary-io (License): Relax to LGPLv2+.
12628         Requested for libvirt, and required by pipe2.
12629
12630 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12631
12632         verify: use _Static_assert if available
12633         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12634         (verify_true, verify): Use it if available.  This generates better
12635         diagnostics with GCC 4.6.0 and later.
12636
12637 2011-04-05  Bruno Haible  <bruno@clisp.org>
12638
12639         Remove leftover generated .h files after config.status changed.
12640
12641         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12642         GL_GENERATE_ALLOCA_H.
12643         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12644         GL_GENERATE_ALLOCA_H evaluates to false.
12645
12646         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12647         GL_GENERATE_ARGZ_H.
12648         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12649         evaluates to false.
12650
12651         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12652         GL_GENERATE_BYTESWAP_H.
12653         * modules/byteswap (Makefile.am): Remove byteswap.h if
12654         GL_GENERATE_BYTESWAP_H evaluates to false.
12655
12656         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12657         GL_GENERATE_ERRNO_H.
12658         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12659         evaluates to false.
12660
12661         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12662         GL_GENERATE_FLOAT_H.
12663         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12664         evaluates to false.
12665
12666         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12667         GL_GENERATE_FNMATCH_H.
12668         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12669         GL_GENERATE_FNMATCH_H evaluates to false.
12670
12671         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12672         GL_GENERATE_GLOB_H.
12673         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12674         evaluates to false.
12675
12676         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12677         automake conditional GL_GENERATE_ICONV_H.
12678         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12679         evaluates to false.
12680
12681         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12682         GL_GENERATE_NETINET_IN_H.
12683         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12684         GL_GENERATE_NETINET_IN_H evaluates to false.
12685
12686         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12687         conditional GL_GENERATE_PTHREAD_H.
12688         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12689         * modules/pthread (Makefile.am): Remove pthread.h if
12690         GL_GENERATE_PTHREAD_H evaluates to false.
12691
12692         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12693         GL_GENERATE_SCHED_H.
12694         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12695         evaluates to false.
12696
12697         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12698         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12699         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12700         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12701
12702         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12703         GL_GENERATE_STDARG_H.
12704         * modules/stdarg (Makefile.am): Remove stdarg.h if
12705         GL_GENERATE_STDARG_H evaluates to false.
12706
12707         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12708         GL_GENERATE_STDBOOL_H.
12709         * modules/stdbool (Makefile.am): Remove stdbool.h if
12710         GL_GENERATE_STDBOOL_H evaluates to false.
12711
12712         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12713         conditional GL_GENERATE_STDDEF_H.
12714         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12715         * modules/stddef (Makefile.am): Remove stddef.h if
12716         GL_GENERATE_STDDEF_H evaluates to false.
12717
12718         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12719         GL_GENERATE_STDINT_H.
12720         * modules/stdint (Makefile.am): Remove stdint.h if
12721         GL_GENERATE_STDINT_H evaluates to false.
12722
12723         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12724         GL_GENERATE_SYSEXITS_H.
12725         * modules/sysexits (Makefile.am): Remove sysexits.h if
12726         GL_GENERATE_SYSEXITS_H evaluates to false.
12727
12728         Reported by Karl Berry and Ralf Wildenhues.
12729
12730 2011-04-05  Bruno Haible  <bruno@clisp.org>
12731
12732         Ensure to rebuild generated .h files when config.status has changed.
12733         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12734         config.status.
12735         * modules/ctype (Makefile.am): Likewise.
12736         * modules/dirent (Makefile.am): Likewise.
12737         * modules/errno (Makefile.am): Likewise.
12738         * modules/fcntl-h (Makefile.am): Likewise.
12739         * modules/float (Makefile.am): Likewise.
12740         * modules/getopt-posix (Makefile.am): Likewise.
12741         * modules/glob (Makefile.am): Likewise.
12742         * modules/iconv-h (Makefile.am): Likewise.
12743         * modules/inttypes (Makefile.am): Likewise.
12744         * modules/langinfo (Makefile.am): Likewise.
12745         * modules/locale (Makefile.am): Likewise.
12746         * modules/math (Makefile.am): Likewise.
12747         * modules/netdb (Makefile.am): Likewise.
12748         * modules/netinet_in (Makefile.am): Likewise.
12749         * modules/poll-h (Makefile.am): Likewise.
12750         * modules/pthread (Makefile.am): Likewise.
12751         * modules/pty (Makefile.am): Likewise.
12752         * modules/sched (Makefile.am): Likewise.
12753         * modules/search (Makefile.am): Likewise.
12754         * modules/selinux-h (Makefile.am): Likewise.
12755         * modules/signal (Makefile.am): Likewise.
12756         * modules/spawn (Makefile.am): Likewise.
12757         * modules/stdarg (Makefile.am): Likewise.
12758         * modules/stdbool (Makefile.am): Likewise.
12759         * modules/stddef (Makefile.am): Likewise.
12760         * modules/stdint (Makefile.am): Likewise.
12761         * modules/stdio (Makefile.am): Likewise.
12762         * modules/stdlib (Makefile.am): Likewise.
12763         * modules/string (Makefile.am): Likewise.
12764         * modules/strings (Makefile.am): Likewise.
12765         * modules/sys_file (Makefile.am): Likewise.
12766         * modules/sys_ioctl (Makefile.am): Likewise.
12767         * modules/sys_select (Makefile.am): Likewise.
12768         * modules/sys_socket (Makefile.am): Likewise.
12769         * modules/sys_stat (Makefile.am): Likewise.
12770         * modules/sys_time (Makefile.am): Likewise.
12771         * modules/sys_times (Makefile.am): Likewise.
12772         * modules/sys_utsname (Makefile.am): Likewise.
12773         * modules/sys_wait (Makefile.am): Likewise.
12774         * modules/sysexits (Makefile.am): Likewise.
12775         * modules/termios (Makefile.am): Likewise.
12776         * modules/time (Makefile.am): Likewise.
12777         * modules/unistd (Makefile.am): Likewise.
12778         * modules/wchar (Makefile.am): Likewise.
12779         * modules/wctype-h (Makefile.am): Likewise.
12780         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12781
12782 2011-04-05  Bruno Haible  <bruno@clisp.org>
12783
12784         pipe2: Relicense under LGPLv2+.
12785         * modules/pipe2 (License): Change to LGPLv2+.
12786         Requested by Eric Blake, for libvirt.
12787
12788 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12789
12790         bootstrap: compute gnulib_extra_files after updating build_aux
12791         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12792         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12793
12794 2011-04-05  Eric Blake  <eblake@redhat.com>
12795
12796         bootstrap: preserve git whitelist item sorting
12797         * build-aux/bootstrap (sort_patterns): New function.
12798         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12799
12800 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12801
12802         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12803         sc_space_tab check.
12804
12805 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12806
12807         areadlink, areadlinkat: rewrite in terms of careadlinkat
12808         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12809         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12810         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12811         (malloc, realloc): Remove #undefs.
12812         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12813         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12814         readlink, ssize_t, stdint, unistd.
12815         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12816         areadlink, stdint.
12817
12818         careadlinkat: new module
12819         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12820         * modules/careadlinkat: New files, written by me with
12821         a review and feedback from Ben Pfaff in
12822         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12823
12824 2011-04-01  Bruno Haible  <bruno@clisp.org>
12825
12826         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12827         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12828         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12829         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12830         Reported by Bruce Korb <bruce.korb@gmail.com>.
12831
12832 2011-04-01  Bruno Haible  <bruno@clisp.org>
12833
12834         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12835         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12836         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12837         * modules/wcpcpy (Depends-on): Add extensions.
12838         * modules/wcpncpy (Depends-on): Likewise.
12839         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12840         systems.
12841         * doc/posix-functions/wcpncpy.texi: Likewise.
12842         * doc/posix-functions/wcwidth.texi: Likewise.
12843
12844 2011-03-31  Eric Blake  <eblake@redhat.com>
12845
12846         nonblocking: fix mingw test failures
12847         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12848         non-blocking flag on regular file.
12849         (get_nonblocking_flag): Set errno on invalid fd.
12850         * tests/test-nonblocking.c (main): Avoid test failure on
12851         directories if fchdir is not active.
12852         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12853
12854 2011-03-31  Bruno Haible  <bruno@clisp.org>
12855
12856         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12857         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12858         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12859         Reported by Simon Josefsson <simon@josefsson.org>.
12860
12861 2011-03-31  Bruno Haible  <bruno@clisp.org>
12862         and Eric Blake  <eblake@redhat.com>
12863
12864         nonblocking: new module
12865         * modules/nonblocking: New module.
12866         * modules/nonblocking-tests: Likewise.
12867         * lib/nonblocking.h: New file.
12868         * lib/nonblocking.c: Likewise.
12869         * tests/test-nonblocking.c: New test.
12870         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12871
12872 2011-03-30  Bruno Haible  <bruno@clisp.org>
12873
12874         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12875         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12876         instead of 'printf' format for GCC >= 4.4.
12877         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12878         (fprintf, printf, vfprintf, vprintf): Declare with
12879         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12880         the system's vfprintf() function.
12881         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12882
12883 2011-03-30  Eric Blake  <eblake@redhat.com>
12884
12885         passfd: fix scoping bug
12886         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12887         before sendmsg/recvmsg.
12888
12889         passfd: standardize coding conventions
12890         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12891         can be learned at compile time.
12892         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12893         ifdefs.
12894         (sendfd, recvfd): Follow gnulib code conventions.
12895
12896         passfd: fix incorrect sendmsg arguments
12897         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12898         incorrect msg_controllen value.
12899         * modules/passfd-tests (Depends-on): Check for alarm.
12900         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12901         Reported by Bastien ROUCARIES.
12902
12903 2011-03-30  Bruno Haible  <bruno@clisp.org>
12904
12905         c-strcasestr: Relicense under LGPLv2+.
12906         * modules/c-strcasestr (License): Change to LGPLv2+.
12907         Requested by Eric Blake, for libvirt.
12908
12909 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12910
12911         * users.txt: Add libidn2.  Fix libtasn1 link.
12912
12913 2011-03-30  Jim Meyering  <meyering@redhat.com>
12914
12915         tests: readlink* ("",... fails with EINVAL on newer kernels
12916         readlink and readlinkat have typically failed with ENOENT for
12917         the invalid, empty file name,  "".  However, with the advent
12918         of linux-2.6.39, they fail with EINVAL.
12919         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12920         when operating on the empty file name.
12921         * tests/test-readlink.h (test_readlink): Likewise.
12922
12923 2011-03-29  Bruno Haible  <bruno@clisp.org>
12924
12925         Relicense some modules under LGPLv2+, for libidn2.
12926         * modules/array-mergesort (License): Change to LGPLv2+.
12927         * modules/c-strcaseeq (License): Likewise.
12928         * modules/striconveh (License): Likewise.
12929         * modules/striconveha (License): Likewise.
12930         * modules/uniconv/base (License): Likewise.
12931         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12932         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12933         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12934         * modules/unictype/base (License): Likewise.
12935         * modules/unictype/bidiclass-of (License): Likewise.
12936         * modules/unictype/category-M (License): Likewise.
12937         * modules/unictype/category-none (License): Likewise.
12938         * modules/unictype/category-of (License): Likewise.
12939         * modules/unictype/category-test (License): Likewise.
12940         * modules/unictype/category-test-withtable (License): Likewise.
12941         * modules/unictype/combining-class (License): Likewise.
12942         * modules/unictype/joiningtype-of (License): Likewise.
12943         * modules/unictype/scripts (License): Likewise.
12944         * modules/uninorm/base (License): Likewise.
12945         * modules/uninorm/canonical-decomposition (License): Likewise.
12946         * modules/uninorm/composition (License): Likewise.
12947         * modules/uninorm/decompose-internal (License): Likewise.
12948         * modules/uninorm/decomposition-table (License): Likewise.
12949         * modules/uninorm/nfc (License): Likewise.
12950         * modules/uninorm/nfd (License): Likewise.
12951         * modules/uninorm/u32-normalize (License): Likewise.
12952         * modules/unistr/base (License): Likewise.
12953         * modules/unistr/u32-cpy (License): Likewise.
12954         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12955         * modules/unistr/u32-to-u8 (License): Likewise.
12956         * modules/unistr/u32-uctomb (License): Likewise.
12957         * modules/unistr/u8-check (License): Likewise.
12958         * modules/unistr/u8-mblen (License): Likewise.
12959         * modules/unistr/u8-mbtouc (License): Likewise.
12960         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12961         * modules/unistr/u8-mbtoucr (License): Likewise.
12962         * modules/unistr/u8-prev (License): Likewise.
12963         * modules/unistr/u8-strlen (License): Likewise.
12964         * modules/unistr/u8-to-u32 (License): Likewise.
12965         * modules/unistr/u8-uctomb (License): Likewise.
12966         * modules/unitypes (License): Likewise.
12967         Requested by Simon Josefsson.
12968
12969 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12970
12971         lib-symbol-visibility: Add a notice.
12972         * modules/lib-symbol-visibility (Notice): New field.
12973
12974 2011-03-29  Bruno Haible  <bruno@clisp.org>
12975
12976         getaddrinfo: Doc fix.
12977         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12978         section "fixed in Gnulib".
12979
12980 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12981
12982         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12983         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12984
12985 2011-03-26  Bruno Haible  <bruno@clisp.org>
12986
12987         unictype/property-byname: Reduce the number of load-time relocations.
12988         * lib/unictype/pr_byname.c: Include <stdlib.h>.
12989         (UC_PROPERTY_INDEX_*): New enumeration values.
12990         (uc_property_byname): Convert an index from the lookup table to an
12991         uc_property_t.
12992         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
12993         values.
12994
12995 2011-03-26  Bruno Haible  <bruno@clisp.org>
12996
12997         unictype/property-byname: Allow omitted word separators and aliases.
12998         * lib/unictype/pr_byname.gperf: Add property names without word
12999         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13000         for 'space'.
13001
13002 2011-03-26  Bruno Haible  <bruno@clisp.org>
13003
13004         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13005         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13006         also hyphens to space.
13007         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13008         without spaces.
13009         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13010
13011 2011-03-26  Bruno Haible  <bruno@clisp.org>
13012
13013         unictype/joiningtype-byname: Recognize long names as well.
13014         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13015         a long name.
13016         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13017         unictype/joiningtype_byname.h.
13018         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13019         * lib/unictype/joiningtype_byname.gperf: New file.
13020         * modules/unictype/joiningtype-byname (Files): Add
13021         lib/unictype/joiningtype_byname.gperf.
13022         (Depends-on): Add gperf.
13023         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13024         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13025         long names.
13026
13027         Tests for module 'unictype/joiningtype-longname'.
13028         * modules/unictype/joiningtype-longname-tests: New file.
13029         * tests/unictype/test-joiningtype_longname.c: New file.
13030
13031         New module 'unictype/joiningtype-longname'.
13032         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13033         * lib/unictype/joiningtype_longname.c: New file.
13034         * modules/unictype/joiningtype-longname: New file.
13035         * modules/unictype/joiningtype-all (Depends-on): Add
13036         unictype/joiningtype-longname.
13037
13038 2011-03-26  Bruno Haible  <bruno@clisp.org>
13039
13040         unictype/bidiclass-byname: Recognize long names as well.
13041         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13042         name.
13043         * lib/unictype/bidi_byname.c: Include <string.h>,
13044         unictype/bidi_byname.h.
13045         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13046         * lib/unictype/bidi_byname.gperf: New file.
13047         * modules/unictype/bidiclass-byname (Files): Add
13048         lib/unictype/bidi_byname.gperf.
13049         (Depends-on): Add gperf.
13050         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13051         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13052         long names.
13053
13054         Tests for module 'unictype/bidiclass-longname'.
13055         * modules/unictype/bidiclass-longname-tests: New file.
13056         * tests/unictype/test-bidi_longname.c: New file.
13057
13058         New module 'unictype/bidiclass-longname'.
13059         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13060         * lib/unictype/bidi_longname.c: New file.
13061         * modules/unictype/bidiclass-longname: New file.
13062         * modules/unictype/bidiclass-all (Depends-on): Add
13063         unictype/bidiclass-longname.
13064
13065 2011-03-26  Bruno Haible  <bruno@clisp.org>
13066
13067         unictype/bidi*: Rename modules.
13068         * modules/unictype/bidiclass-all: Renamed from
13069         modules/unictype/bidicategory-all.
13070         * modules/unictype/bidiclass-name: Renamed from
13071         modules/unictype/bidiclass-name.
13072         (Description): Update.
13073         * modules/unictype/bidiclass-name-tests: Renamed from
13074         modules/unictype/bidicategory-name-tests.
13075         * modules/unictype/bidiclass-byname: Renamed from
13076         modules/unictype/bidicategory-byname.
13077         (Description): Update.
13078         * modules/unictype/bidiclass-byname-tests: Renamed from
13079         modules/unictype/bidicategory-byname-tests.
13080         * modules/unictype/bidiclass-of: Renamed from
13081         modules/unictype/bidicategory-of.
13082         (Description): Update.
13083         * modules/unictype/bidiclass-of-tests: Renamed from
13084         modules/unictype/bidicategory-of-tests.
13085         * modules/unictype/bidiclass-test: Renamed from
13086         modules/unictype/bidicategory-test.
13087         (Description): Update.
13088         * modules/unictype/bidiclass-test-tests: Renamed from
13089         modules/unictype/bidicategory-test-tests.
13090         * modules/unictype/bidicategory-all: New file, a simple redirection.
13091         * modules/unictype/bidicategory-name: Likewise.
13092         * modules/unictype/bidicategory-byname: Likewise.
13093         * modules/unictype/bidicategory-of: Likewise.
13094         * modules/unictype/bidicategory-test: Likewise.
13095         * modules/unictype/property-bidi-* (Dependencies): Update.
13096         * lib/unictype/bidi_*.c: Update comment.
13097
13098 2011-03-26  Bruno Haible  <bruno@clisp.org>
13099
13100         unictype/bidi*: Rename functions, part 2.
13101         * modules/unictype/bidicategory-name (configure.ac): Update required
13102         libunistring version.
13103         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13104
13105 2011-03-25  Bruno Haible  <bruno@clisp.org>
13106
13107         New module 'unictype/combining-class-all'.
13108         * modules/unictype/combining-class-all: New file.
13109
13110         Tests for module 'unictype/combining-class-byname'.
13111         * modules/unictype/combining-class-byname-tests: New file.
13112         * tests/unictype/test-combiningclass_byname.c: New file.
13113
13114         New module 'unictype/combining-class-byname'.
13115         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13116         * lib/unictype/combiningclass_byname.c: New file.
13117         * lib/unictype/combiningclass_byname.gperf: New file.
13118         * modules/unictype/combining-class-byname: New file.
13119
13120         Tests for module 'unictype/combining-class-longname'.
13121         * modules/unictype/combining-class-longname-tests: New file.
13122         * tests/unictype/test-combiningclass_longname.c: New file.
13123
13124         New module 'unictype/combining-class-longname'.
13125         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13126         * lib/unictype/combiningclass_longname.c: New file.
13127         * modules/unictype/combining-class-longname: New file.
13128
13129         Tests for module 'unictype/combining-class-name'.
13130         * modules/unictype/combining-class-name-tests: New file.
13131         * tests/unictype/test-combiningclass_name.c: New file.
13132
13133         New module 'unictype/combining-class-name'.
13134         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13135         * lib/unictype/combiningclass_name.c: New file.
13136         * modules/unictype/combining-class-name: New file.
13137
13138 2011-03-25  Bruno Haible  <bruno@clisp.org>
13139
13140         unictype/combining-class: Rename source files.
13141         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13142         of unictype/combining.h.
13143         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13144         Update.
13145         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13146         * modules/unictype/combining-class (Description): Fix.
13147         (Files, Makefile.am): Update.
13148         * tests/unictype/test-combiningclass.c: Renamed from
13149         tests/unictype/test-combining.c.
13150         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13151
13152 2011-03-25  Bruno Haible  <bruno@clisp.org>
13153
13154         unictype: Update list of canonical combining classes.
13155         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13156
13157 2011-03-25  Bruno Haible  <bruno@clisp.org>
13158
13159         unictype/category-byname: Recognize long names as well.
13160         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13161         a long name.
13162         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13163         unictype/categ_byname.h.
13164         (UC_CATEGORY_INDEX_*): New enumeration values.
13165         (uc_general_category_byname): Use uc_general_category_lookup and
13166         convert from index to value.
13167         * lib/unictype/categ_byname.gperf: New file.
13168         * modules/unictype/category-byname (Files): Add
13169         lib/unictype/categ_byname.gperf.
13170         (Depends-on): Add gperf.
13171         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13172         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13173         long names.
13174
13175         Tests for module 'unictype/category-longname'.
13176         * modules/unictype/category-longname-tests: New file.
13177         * tests/unictype/test-categ_longname.c: New file.
13178
13179         New module 'unictype/category-longname'.
13180         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13181         * lib/unictype/categ_longname.c: New file.
13182         * modules/unictype/category-longname: New file.
13183         * modules/unictype/category-all (Depends-on): Add it.
13184
13185 2011-03-25  Bruno Haible  <bruno@clisp.org>
13186
13187         Tests for module 'unictype/category-LC'.
13188         * modules/unictype/category-LC-tests: New file.
13189         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13190
13191         New module 'unictype/category-LC'.
13192         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13193         (UC_CATEGORY_LC): New declaration.
13194         (UC_CASED_LETTER): New macro.
13195         * lib/gen-uni-tables.c (is_category_LC): New function.
13196         (output_categories): Also handle category LC.
13197         (UC_CATEGORY_MASK_LC): New enumeration value.
13198         (general_category_byname): Also handle category LC.
13199         * lib/unictype/categ_LC.c: New file.
13200         * lib/unictype/categ_LC.h: New file, automatically generated.
13201         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13202         category LC.
13203         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13204         * modules/unictype/category-LC: New file.
13205         * modules/unictype/category-byname (Depends-on): Add
13206         unictype/category-LC.
13207         * modules/unictype/category-all (Depends-on): Likewise.
13208
13209 2011-03-25  Eric Blake  <eblake@redhat.com>
13210
13211         xmalloc: revert yesterday's regression
13212         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13213         realloc's underlying behavior (allowing allocation of zero-size
13214         objects, especially if malloc-gnu is also in use).
13215
13216 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13217
13218         maint.mk: add missing version to VC-tag
13219         * top/maint.mk: git tag was missing actual tag name; add it.
13220
13221         valgrind: do leak checking, and exit with code 1 on error (not 0)
13222         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13223         to VALGRIND.
13224
13225 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13226
13227         posix-modules: say what it does.
13228         * posix-modules: Add a line to the --help output saying what it does.
13229
13230 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13231
13232         xmalloc: Do not leak if underlying realloc is C99 compatible.
13233         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13234         This avoids a leak on C99-based systems.  See
13235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13236
13237 2011-03-24  Eric Blake  <eblake@redhat.com>
13238
13239         realloc: document portability problem
13240         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13241         passing 0 size to realloc.
13242
13243 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13244
13245         doc: update users.txt
13246         * users.txt: Add cvsps, tmpwatch
13247
13248 2011-03-23  Matt Rice  <ratmice@gmail.com>
13249
13250         doc: update users.txt
13251         * users.txt: Add gdb.
13252
13253 2011-03-23  Jim Meyering  <meyering@redhat.com>
13254
13255         doc: update users.txt
13256         Looking through matches up to the following URL (there are still
13257         several more pages), I found several projects that use gnulib:
13258         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13259         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13260         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13261
13262 2011-03-22  Bruno Haible  <bruno@clisp.org>
13263
13264         unictype/bidi*: Rename functions.
13265         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13266         uc_bidi_class, uc_is_bidi_class): New declarations.
13267         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13268         uc_bidi_category_byname.
13269         (uc_bidi_category_byname): New function.
13270         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13271         u_bidi_category_name.
13272         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13273         (uc_bidi_category_name): New function.
13274         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13275         uc_bidi_category.
13276         (uc_bidi_category): New function.
13277         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13278         uc_is_bidi_category. Invoke uc_bidi_class.
13279         (uc_is_bidi_category): New function.
13280         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13281         instead of uc_bidi_category_byname.
13282         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13283         instead of uc_bidi_category_name.
13284         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13285         uc_bidi_category.
13286         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13287         instead of uc_is_bidi_category.
13288
13289 2011-03-21  Bruno Haible  <bruno@clisp.org>
13290
13291         New module 'unictype/joininggroup-all'.
13292         * modules/unictype/joininggroup-all: New file.
13293
13294         Tests for module 'unictype/joininggroup-of'.
13295         * modules/unictype/joininggroup-of-tests: New file.
13296         * tests/unictype/test-joininggroup_of.c: New file.
13297         * tests/unictype/test-joininggroup_of.h: New file, automatically
13298         generated by gen-uni-tables.
13299
13300         New module 'unictype/joininggroup-of'.
13301         * modules/unictype/joininggroup-of: New file.
13302         * lib/unictype/joininggroup_of.c: New file.
13303         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13304         gen-uni-tables.
13305
13306         Tests for module 'unictype/joininggroup-byname'.
13307         * modules/unictype/joininggroup-byname-tests: New file.
13308         * tests/unictype/test-joininggroup_byname.c: New file.
13309
13310         New module 'unictype/joininggroup-byname'.
13311         * modules/unictype/joininggroup-byname: New file.
13312         * lib/unictype/joininggroup_byname.c: New file.
13313         * lib/unictype/joininggroup_byname.gperf: New file.
13314
13315         Tests for module 'unictype/joininggroup-name'.
13316         * modules/unictype/joininggroup-name-tests: New file.
13317         * tests/unictype/test-joininggroup_name.c: New file.
13318
13319         New module 'unictype/joininggroup-name'.
13320         * modules/unictype/joininggroup-name: New file.
13321         * lib/unictype/joininggroup_name.c: New file.
13322         * lib/unictype/joininggroup_name.h: New file.
13323
13324         New module 'unictype/joiningtype-all'.
13325         * modules/unictype/joiningtype-all: New file.
13326
13327         Tests for module 'unictype/joiningtype-of'.
13328         * modules/unictype/joiningtype-of-tests: New file.
13329         * tests/unictype/test-joiningtype_of.c: New file.
13330         * tests/unictype/test-joiningtype_of.h: New file, automatically
13331         generated by gen-uni-tables.
13332
13333         New module 'unictype/joiningtype-of'.
13334         * modules/unictype/joiningtype-of: New file.
13335         * lib/unictype/joiningtype_of.c: New file.
13336         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13337         gen-uni-tables.
13338
13339         Tests for module 'unictype/joiningtype-byname'.
13340         * modules/unictype/joiningtype-byname-tests: New file.
13341         * tests/unictype/test-joiningtype_byname.c: New file.
13342
13343         New module 'unictype/joiningtype-byname'.
13344         * modules/unictype/joiningtype-byname: New file.
13345         * lib/unictype/joiningtype_byname.c: New file.
13346
13347         Tests for module 'unictype/joiningtype-name'.
13348         * modules/unictype/joiningtype-name-tests: New file.
13349         * tests/unictype/test-joiningtype_name.c: New file.
13350
13351         New module 'unictype/joiningtype-name'.
13352         * modules/unictype/joiningtype-name: New file.
13353         * lib/unictype/joiningtype_name.c: New file.
13354
13355         unictype: Add support for Arabic shaping properties.
13356         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13357         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13358         declarations.
13359         (UC_JOINING_GROUP_*): New enumeration values.
13360         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13361         declarations.
13362         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13363         (unicode_joining_type): New variable.
13364         (UC_JOINING_GROUP_*): New enumeration values.
13365         (unicode_joining_group): New variable.
13366         (fill_arabicshaping, joining_type_as_c_identifier,
13367         output_joining_type_test, output_joining_type,
13368         joining_group_as_c_identifier, output_joining_group_test,
13369         output_joining_group): New functions.
13370         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13371         fill_arabicshaping and output_joining_type_test, output_joining_type,
13372         output_joining_group_test, output_joining_group.
13373         Reported by Simon Josefsson.
13374
13375 2011-03-21  Jim Meyering  <meyering@redhat.com>
13376
13377         strftime: fix a bug in yesterday's change
13378         * lib/strftime.c (add): Accommodate width's initial value of -1.
13379         Otherwise, nstrftime would copy uninitialized data into
13380         the result buffer.
13381
13382 2011-03-21  Jim Meyering  <meyering@redhat.com>
13383
13384         tests: add strftime-tests module
13385         * tests/test-strftime.c: New file.
13386         * modules/strftime-tests: New module.
13387
13388 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13389
13390         strftime: don't assume a byte count fits in 'int'
13391         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13392         found this problem by static analysis, using gcc -Wstrict-overflow
13393         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13394         on an integer overflow having undefined behavior, but it turns out
13395         that the argument is a size, which might not fit in 'int' anyway,
13396
13397 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13398
13399         stdio: don't require ignore_value around fwrite
13400
13401         This patch works around libc bug 11959
13402         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13403         Without this patch, applications must often write
13404         ignore_value (fwrite (...)) even though the ignore_value is
13405         not helpful here.  It's common to write many objects, using
13406         fwrite/printf/etc., and then use ferror to detect output error.
13407
13408         I considered making this patch optional, but decided against it,
13409         because libc is obviously being inconsistent here: there is no
13410         reason libc should insist that user code must inspect fwrite
13411         return's value without also insisting that it inspect printf's,
13412         putchar's, etc.  If user code wants to have a strict style where
13413         all these functions' values are checked (so that ferror need not
13414         be checked), we could add support for that style in a new gnulib
13415         module, but in the meantime it's better to be consistent and to
13416         support common usage.
13417
13418         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13419         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13420         that we are compiling in checking mode, and if not C++, and
13421         if not already wrapping fwrite for some other reason.
13422         (fwrite): #define to rpl_fwrite if the latter is defined.
13423
13424 2011-03-20  Bruno Haible  <bruno@clisp.org>
13425
13426         verror: Fix compilation error introduced on 2011-02-13.
13427         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13428         instead of __attribute__.
13429         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13430
13431 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13432             Bruno Haible  <bruno@clisp.org>
13433
13434         socklen: do not depend on sys_socket
13435         While trying to modify Emacs to use gnulib's socklen module,
13436         I discovered a circular dependency: socklen depends on sys_socket
13437         and vice versa.  Emacs can use socklen, but it does not need
13438         sys_socket because it has its own substitute for sys/socket.h.
13439         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13440         gl_TYPE_SOCKLEN_T.
13441         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13442         gl_PREREQ_SYS_H_SOCKET.
13443         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13444         gl_PREREQ_SYS_H_SOCKET.
13445         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13446         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13447         * modules/socklen (Depends-on): Do not depend on sys_socket.
13448         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13449
13450 2011-03-20  Jim Meyering  <meyering@redhat.com>
13451
13452         maint.mk: sort file names *after* new transformation
13453         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13454         prefix would have led to an unwarranted failure in GNU parted.
13455         Sort after that transformation.
13456
13457 2011-03-19  Jim Meyering  <meyering@redhat.com>
13458
13459         maint.mk: fix po-file syntax-check rule
13460         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13461         Patch by Bruno Haible.
13462
13463 2011-03-19  Bruno Haible  <bruno@clisp.org>
13464
13465         socklen: Update comment.
13466         * m4/socklen.m4: Update comment about platforms.
13467
13468 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13469             Bruno Haible  <bruno@clisp.org>
13470
13471         inet_ntop, inet_pton: Simplify.
13472         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13473         documented to provide socklen_t and we already depend on sys_socket.
13474         * modules/inet_pton (Depends-on): Likewise.
13475         * lib/arpa_inet.in.h: Adjust comment.
13476
13477 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13478             Bruno Haible  <bruno@clisp.org>
13479
13480         netdb: Simplify.
13481         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13482         documented to provide socklen_t and we already depend on sys_socket.
13483         * lib/netdb.in.h: Adjust comment.
13484
13485 2011-03-19  Bruno Haible  <bruno@clisp.org>
13486
13487         sys_socket, netdb: Document problem with socklen_t.
13488         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13489         platforms.
13490         * doc/posix-headers/netdb.texi: Likewise.
13491
13492 2011-03-18  Eric Blake  <eblake@redhat.com>
13493
13494         maint.mk: let po check work in VPATH build
13495         * top/maint.mk (po_file): Allow cfg.mk override.
13496         (sc_po_check): Allow VPATH use.
13497         Reported by Jiri Denemark.
13498
13499 2011-03-16  Jim Meyering  <meyering@redhat.com>
13500
13501         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13502         Before, you would have had to create one .x-sc_ file per rule in order
13503         to exempt offending files.  Now, you may instead use a Make variable --
13504         usually defined in cfg.mk -- whose name identifies the affected rule.
13505         * top/maint.mk (_sc_excl): Define.
13506         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13507         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13508
13509 2011-03-13  Bruno Haible  <bruno@clisp.org>
13510
13511         ignore-value tests: Avoid warnings.
13512         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13513         empty for gcc < 3.4.
13514
13515 2011-03-13  Bruno Haible  <bruno@clisp.org>
13516
13517         passfd: Fix link error on Solaris.
13518         * modules/passfd (Description): Correct.
13519         (Depends-on): Add socketlib.
13520         (Link): New section.
13521         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13522
13523 2011-03-13  Bruno Haible  <bruno@clisp.org>
13524
13525         passfd: Fix link error on AIX 5.2.
13526         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13527
13528 2011-03-13  Bruno Haible  <bruno@clisp.org>
13529
13530         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13531         * lib/sys_socket.in.h: Include <stddef.h>.
13532         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13533         CMSG_FIRSTHDR. Remove unused variable.
13534
13535 2011-03-13  Bruno Haible  <bruno@clisp.org>
13536
13537         passfd: Fix compilation error on OpenBSD.
13538         * lib/passfd.c: Include <sys/uio.h>.
13539
13540 2011-03-13  Bruno Haible  <bruno@clisp.org>
13541
13542         passfd test: Fix warnings.
13543         * tests/test-passfd.c: Include <sys/wait.h>.
13544         (main): Fix typo.
13545
13546 2011-03-13  Bruno Haible  <bruno@clisp.org>
13547
13548         passfd module, part 4, tweaks.
13549         * tests/test-passfd.c: Reorder includes.
13550         (main): Fix perror and printf calls.
13551
13552 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13553
13554         passfd module, part 4.
13555         * modules/passfd-tests: New file.
13556         * tests/test-passfd.c: New file.
13557
13558 2011-03-13  Jim Meyering  <meyering@redhat.com>
13559
13560         Makefile: rely on GNU make; derive syntax-check rule names
13561         Rather than requiring that each sc_ rule be listed as a dependent
13562         of "check", use features of GNU make to derive the list.
13563         * Makefile (syntax-check-rules): Define.
13564         (check): Depend on the new variable, not the hard-coded list.
13565
13566 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13567             Bruno Haible  <bruno@clisp.org>
13568
13569         passfd module, part 3.
13570         * lib/passfd.h (recvfd): Add a flags argument.
13571         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13572         (recvfd): Add a flags argument.
13573         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13574         exists.
13575         * modules/passfd (Depends-on): Add cloexec.
13576         Suggested by Eric Blake.
13577
13578 2011-03-13  Bruno Haible  <bruno@clisp.org>
13579
13580         passfd module, part 2, tweaks.
13581         * modules/passfd (Files): Reorder.
13582         (Depends-on): Remove errno.
13583         (Include): Remove <sys/socket.h>, <sys/un.h>.
13584         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13585         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13586         specification header. Include <sys/socket.h> always. Don't include
13587         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13588         (sendfd): Clarify that it sets errno when it fails.
13589         (recvfd): Fix specification.
13590
13591 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13592
13593         passfd module, part 2.
13594         * modules/passfd: New file.
13595         * lib/passfd.h: New file.
13596         * lib/passfd.c: New file.
13597
13598 2011-03-12  Bruno Haible  <bruno@clisp.org>
13599
13600         wcswidth, mbswidth: Avoid integer overflow.
13601         * lib/wcswidth.c: Include <limits.h>.
13602         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13603         * lib/mbswidth.c: Include <limits.h>.
13604         (mbsnwidth): Avoid 'int' overflow.
13605         Reported by Jim Meyering.
13606
13607 2011-03-12  Bruno Haible  <bruno@clisp.org>
13608
13609         futimens, utimensat: Avoid endless recursion on Solaris 10.
13610         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13611         Solaris.
13612         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13613         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13614
13615 2011-03-11  Jim Meyering  <meyering@redhat.com>
13616
13617         maint.mk: relax a regexp to accommodate other formatting styles
13618         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13619         between "ngettext" and the following "(".
13620
13621 2011-03-11  Pádraig Brady <P@draigBrady.com>
13622
13623         maint.mk: suppress a false positive warning
13624         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13625         diagnostics are marked with ngettext.
13626
13627 2011-03-10  Eric Blake  <eblake@redhat.com>
13628
13629         wchar: add explicit dependencies, for Tru64
13630         * modules/mbmemcasecoll (Depends-on): Add wchar.
13631         * modules/mbtowc (Depends-on): Likewise.
13632         * modules/vasnprintf (Depends-on): Likewise.
13633         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13634         * modules/wctomb (Depends-on): Likewise.
13635         Reported by Peter O'Gorman.
13636
13637 2011-03-08  Bruno Haible  <bruno@clisp.org>
13638
13639         passfd module, part 1, tweaks.
13640         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13641         Improve indentation. Improve AC_MSG_CHECKING messages.
13642         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13643         gl_SOCKET_FAMILIES.
13644
13645 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13646
13647         passfd module, part 1.
13648         * m4/afunix.m4: New file.
13649         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13650         sockets.
13651
13652 2011-03-08  Bruno Haible  <bruno@clisp.org>
13653
13654         regex-quote: New API.
13655         * lib/regex-quote.h: Include <stdbool.h>.
13656         (struct regex_quote_spec): New type.
13657         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13658         New declarations.
13659         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13660         'const struct regex_quote_spec *' argument.
13661         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13662         (pcre_special): New constant.
13663         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13664         New functions.
13665         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13666         'const struct regex_quote_spec *' argument.
13667         * modules/regex-quote (Depends-on): Add stdbool.
13668         * tests/test-regex-quote.c (check): Update for new API. Add test for
13669         anchored results.
13670         * NEWS: Mention the API change.
13671         Reported by Reuben Thomas and Eric Blake.
13672
13673 2011-03-06  Bruno Haible  <bruno@clisp.org>
13674
13675         regex-quote: Fix creation of POSIX extended regular expressions.
13676         * lib/regex-quote.c (ere_special): Add grouping and alternation
13677         operators.
13678
13679 2011-03-05  Bruno Haible  <bruno@clisp.org>
13680
13681         doc: Improve doc regarding autopoint vs. gnulib.
13682         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13683         disable autopoint while running autoreconf.
13684         Suggested by Ralf Wildenhues.
13685
13686 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13687
13688         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13689         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13690
13691 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13692
13693         parse-duration: remove xalloc.h dependency
13694         * lib/parse-duration.c (parse_period): handle NULL return from
13695         strdup instead of calling xstrdup().
13696         * modules/parse-duration: remove "xalloc" dependency
13697
13698 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13699
13700         bootstrap: honor m4_base when running aclocal
13701         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13702
13703 2011-03-02  Jim Meyering  <meyering@redhat.com>
13704
13705         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13706         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13707         on request from Matt Booth.
13708
13709 2011-03-01  Eric Blake  <eblake@redhat.com>
13710
13711         test-link: work on Hurd
13712         * tests/test-link.h (test_link): Hurd rejects linking directories
13713         with EISDIR instead of the POSIX-mandated EPERM.
13714
13715 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13716
13717         stdio: simplify by moving files to printf-posix, sigpipe
13718         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13719         since this symbol is needed only if printf is replaced.
13720         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13721         Require gl_ASM_SYMBOL_PREFIX.
13722         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13723         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13724         (Depends-on): Add 'raise'.
13725         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13726         * modules/stdio (Files): Remove lib/stdio-write.c,
13727         m4/asm-underscore.m4.
13728         (Depends-on): Remove 'raise'.
13729
13730         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13731         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13732         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13733         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13734
13735 2011-02-28  Bruno Haible  <bruno@clisp.org>
13736
13737         localcharset: Assume ANSI C behaviour of free().
13738         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13739         calling free().
13740         Suggested by Simon Josefsson <simon@josefsson.org>.
13741
13742 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13743             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13744             Bruno Haible  <bruno@clisp.org>  (tiny change)
13745
13746         On Cygwin, use /proc file system instead of win32 API.
13747         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13748         Win32 file names.
13749         (DllMain): Simplify by removing Cygwin specific code.
13750         (find_shared_library_fullname): Use Linux specific implementation also
13751         for Cygwin.
13752         (get_shared_library_fullname): Update accordingly.
13753         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13754         Win32 file names.
13755         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13756         Cygwin specific code.
13757
13758 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13759             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13760
13761         Fix OpenMP flag detection for various Fortran compilers.
13762         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13763         OpenMP-conditional compilation construct, to force compile
13764         failure with missing OpenMP flag.
13765         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13766
13767 2011-02-25  Eric Blake  <eblake@redhat.com>
13768
13769         strstr: expand test coverage
13770         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13771         compilation.
13772         * tests/test-memmem.c (main): Duplicate tests.
13773         * tests/test-strcasestr.c (main): Likewise.
13774         * tests/test-c-strcasestr.c (main): Likewise.
13775
13776 2011-02-25  Jim Meyering  <meyering@redhat.com>
13777
13778         maint.mk: detect missing-NL-at-EOF, too
13779         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13780         it also detects when a file lacks a newline at EOF.
13781         (require_exactly_one_NL_at_EOF_): Renamed from
13782         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13783         since people may well have .x-sc_... file names tied to the
13784         existing name.  Suggested by Eric Blake.
13785
13786 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13787
13788         dirname: move m4/dos.m4 functionality into lib/dosname.h
13789
13790         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13791         extracts symbols from it, puts them into config.h; but it's much
13792         easier to use the symbols directly.  filename.h already does this,
13793         but it disagrees with dos.m4 in some respects.  This patch
13794         introduces a different include file dosname.h that packages up
13795         dos.m4, and then later we can work on merging filename.h and
13796         dosname.h.  Applications that need only the easy-to-configure
13797         symbols should consider including dosname.h rather than dirname.h.
13798         * NEWS: Mention incompatible changes.
13799         * m4/dos.m4: Remove.
13800         * lib/dosname.h, modules/dosname: New files.
13801         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13802         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13803         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13804         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13805         Include dosname.h, not dirname.h.
13806         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13807         Include dosname.h, for definitions of symbols like ISSLASH
13808         that used to be in config.h.
13809         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13810         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13811         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13812         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13813         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13814         * modules/rmdir (Files): Likewise.
13815         * modules/stat (Files): Likewise.
13816         * modules/unlink (Files): Likewise.
13817         * modules/dirname-lgpl (Depends-on): Add dosname.
13818         * modules/lstat (Depends-on): Likewise.
13819         * modules/openat (Depends-on): Likewise.
13820         * modules/rmdir (Depends-on): Likewise.
13821         * modules/savewd (Depends-on): Likewise.
13822         * modules/stat (Depends-on): Likewise.
13823         * modules/unlink (Depends-on): Likewise.
13824         * modules/openat (Depends-on): Remove dirname-lgpl.
13825         * modules/savewd (Depends-on): Likewise.
13826         * tests/test-dirname.c: Do not use removed symbols like
13827         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13828         the remaining symbols, e.g., ISSLASH ('\\').
13829
13830 2011-02-25  Eric Blake  <eblake@redhat.com>
13831
13832         strstr: revert patches that introduced bug and pessimization
13833         * lib/str-two-way.h: Add another reference.
13834         (two_way_short_needle, two_way_long_needle): Revert changes from
13835         2011-02-24; they pessimize search speed.
13836         (critical_factorization): Partially revert changes from
13837         2010-06-22; they violate the requirement that the left half of the
13838         needle be smaller than the period of the needle.
13839
13840 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13841
13842         filenamecat: remove unnecessary dependency on dirname-lgpl
13843         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13844         is no direct dependency, just an indirect one via filenamecat-lgpl.
13845
13846         remove: remove unnecessary use of m4/dos.m4
13847         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13848         * modules/remove (FILES): Remove m4/dos.m4.
13849
13850         * lib/openat-proc.c: Don't include dirname.h; not needed.
13851
13852         backupfile: remove unnecessary use of m4/dos.m4
13853         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13854         of its symbols are used by the backupfile code.  backupfile.c does
13855         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13856         for the rare case of programs that want all their backup file
13857         names to live within 8+3 limits, and dos.m4 doesn't address that.
13858         * modules/backupfile (Files): Remove m4/dos.m4.
13859
13860 2011-02-24  Jim Meyering  <meyering@redhat.com>
13861
13862         strstr: fix a bug whereby strstr would mistakenly return NULL
13863         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13864         in period calculation.
13865         (two_way_long_needle): Likewise.
13866         The original problem was reported by Mike Stump in
13867         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13868         Ralf Wildenhues provided the short needle and haystack.
13869         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13870         Add a more involved test to trigger the bug in two_way_long_needle.
13871
13872 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13873
13874         gnulib-tool: remove use of bold display in help screen
13875         * gnulib-tool (func_usage): Do not use bold display anymore in the
13876         help screen.  That was just meant to be a temporary emphasis for a
13877         backward-incompatible change.
13878
13879 2011-02-23  Bruno Haible  <bruno@clisp.org>
13880
13881         Fix misindentation of preprocessor directives.
13882         * lib/argp-namefrob.h: Reindent preprocessor directives.
13883         * lib/getopt_int.h (struct _getopt_data): Likewise.
13884         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13885         * lib/vasnprintf.c (decode_long_double): Likewise.
13886         * tests/test-argmatch.c: Insert blank lines, for clarity.
13887         * tests/test-exclude.c: Likewise.
13888
13889 2011-02-22  Bruno Haible  <bruno@clisp.org>
13890
13891         ioctl: Fix for MacOS X in 64-bit mode.
13892         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13893         value.
13894         Suggested by Eric Blake.
13895         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13896
13897 2011-02-22  Jim Meyering  <meyering@redhat.com>
13898
13899         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13900         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13901         in lib/.
13902
13903 2011-02-22  Eric Blake  <eblake@redhat.com>
13904
13905         maint: avoid any CDPATH issue
13906         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13907
13908         maint: adjust cpp indentation for my modules, as well
13909         * Makefile (sc_cpp_indent_check): Add my name.
13910         * lib/fbufmode.c: Filter through cppi.
13911         * lib/fpurge.c: Likewise.
13912         * lib/freadable.c: Likewise.
13913         * lib/freading.c: Likewise.
13914         * lib/fwritable.c: Likewise.
13915         * lib/fwriting.c: Likewise.
13916         * lib/sigaction.c: Likewise.
13917
13918 2011-02-22  Jim Meyering  <meyering@redhat.com>
13919
13920         maint: adjust cpp indentation to reflect nesting depth
13921         I.e., in a block of code that begins with an unnested "#if",
13922         put one space between the "#" in column 1 and following token.
13923         For example,
13924         -#include <sys/vfs.h>
13925         +# include <sys/vfs.h>
13926         Do this only in .c files that are part of a module I maintain.
13927         * lib/linkat.c: Filter through cppi.
13928         * lib/nanosleep.c: Likewise.
13929         * lib/openat.c: Likewise.
13930         * lib/openat-die.c: Likewise.
13931         * lib/dup3.c: Likewise.
13932         * lib/fchownat.c: Likewise.
13933         * lib/flock.c: Likewise.
13934         * lib/fsync.c: Likewise.
13935         * lib/fts.c: Likewise.
13936         * lib/getpass.c: Likewise.
13937         * lib/gettimeofday.c: Likewise.
13938         * lib/userspec.c: Likewise.
13939         * Makefile (sc_cpp_indent_check): New rule, to check this.
13940
13941 2011-02-22  Bruno Haible  <bruno@clisp.org>
13942
13943         New module 'wctomb'.
13944         * lib/stdlib.in.h (wctomb): New declaration.
13945         * lib/wctomb.c: New file.
13946         * lib/wctomb-impl.h: New file.
13947         * m4/wctomb.m4: New file.
13948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13949         REPLACE_WCTOMB.
13950         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13951         REPLACE_WCTOMB.
13952         * modules/wctomb: New file.
13953         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13954         * doc/posix-functions/wctomb.texi: Mention the new module.
13955         * modules/wctob (Depends-on): Add wctomb.
13956
13957 2011-02-22  Bruno Haible  <bruno@clisp.org>
13958
13959         New module 'mbtowc'.
13960         * lib/stdlib.in.h (mbtowc): New declaration.
13961         * lib/mbtowc.c: New file.
13962         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13963         * m4/mbtowc.m4: New file.
13964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13965         REPLACE_MBTOWC.
13966         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13967         REPLACE_MBTOWC.
13968         * modules/mbtowc: New file.
13969         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13970         * doc/posix-functions/mbtowc.texi: Mention the new module.
13971         * modules/btowc (Depends-on): Add mbtowc.
13972
13973 2011-02-22  Bruno Haible  <bruno@clisp.org>
13974
13975         wcrtomb: Add more tests for native Windows platforms.
13976         * tests/test-wcrtomb-w32-1.sh: New file.
13977         * tests/test-wcrtomb-w32-2.sh: New file.
13978         * tests/test-wcrtomb-w32-3.sh: New file.
13979         * tests/test-wcrtomb-w32-4.sh: New file.
13980         * tests/test-wcrtomb-w32-5.sh: New file.
13981         * tests/test-wcrtomb-w32.c: New file.
13982         * modules/wcrtomb-tests (Files): Add them.
13983         (Makefile.am): Arrange to run these tests.
13984         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13985         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13986
13987 2011-02-20  Bruno Haible  <bruno@clisp.org>
13988
13989         wcrtomb: Enhance test.
13990         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
13991
13992 2011-02-20  Bruno Haible  <bruno@clisp.org>
13993
13994         mbrtowc: Tiny optimization.
13995         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
13996
13997 2011-02-20  Jim Meyering  <meyering@redhat.com>
13998
13999         test-exclude.c: remove unmatched #endif
14000         * tests/test-exclude.c: Remove stray #endif, left over from
14001         the change of a week ago.
14002
14003 2011-02-19  Jim Meyering  <meyering@redhat.com>
14004
14005         git-version-gen: skip "-dirty" check when appropriate
14006         * build-aux/git-version-gen: Don't run any git commands when the
14007         version string comes from .tarball-version.  Prior to this, we
14008         would run git update-index --refresh even from a just-unpacked
14009         tarball directory, and that could affect a .git/ directory in a
14010         parent of the build directory.  Reported by Mike Frysinger.
14011
14012 2011-02-19  Bruno Haible  <bruno@clisp.org>
14013
14014         unictype/property-byname: Reduce the size of the 'data' segment.
14015         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14016
14017 2011-02-19  Bruno Haible  <bruno@clisp.org>
14018
14019         unictype/scripts: Reduce the size of the 'data' segment.
14020         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14021         '%pic'.
14022         * lib/unictype/scripts_byname.gperf: Regenerated.
14023
14024 2011-02-19  Bruno Haible  <bruno@clisp.org>
14025
14026         stdint: Update documentation.
14027         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14028
14029 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14030
14031         stdint: omit redundant check for wchar.h
14032         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14033         always tests whether wchar.h exists, so remove the now-redundant test.
14034
14035 2011-02-18  Bruno Haible  <bruno@clisp.org>
14036
14037         stdint: Cut dependency to module 'wchar'.
14038         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14039         include the necessary prerequisites.
14040         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14041         * modules/stdint (Depends-on): Remove wchar.
14042         (Makefile.am): Substitute HAVE_WCHAR_H.
14043         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14044
14045 2011-02-18  Eric Blake  <eblake@redhat.com>
14046
14047         longlong: skip, rather than fail, on cross-compilation
14048         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14049         when cross-compiling; regression from 2011-02-16.
14050
14051 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14052
14053         * NEWS: Mention 2011-02-08 change to stdlib.
14054
14055 2011-02-17  Bruno Haible  <bruno@clisp.org>
14056
14057         getloadavg: Add comments about platforms.
14058         * m4/getloadavg.m4: Add comment.
14059         * lib/getloadavg.c: Likewise.
14060
14061 2011-02-17  Bruno Haible  <bruno@clisp.org>
14062
14063         getloadavg: Fix link error on Solaris 2.6.
14064         * modules/getloadavg (Link): New section.
14065         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14066         linking test-getloadavg.
14067         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14068         getloadavg.
14069
14070 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14071
14072         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14073         It was 'int', but this doesn't match the IRIX 6.5 manual.
14074         Suggested by Bruno Haible in
14075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14076
14077 2011-02-17  Bruno Haible  <bruno@clisp.org>
14078
14079         havelib: Fix comments.
14080         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14081         change.
14082
14083 2011-02-17  Bruno Haible  <bruno@clisp.org>
14084
14085         havelib: Update config.rpath.
14086         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14087
14088 2011-02-17  Bruno Haible  <bruno@clisp.org>
14089
14090         getloadavg test: Add some plausibility checks.
14091         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14092         is improbable.
14093
14094 2011-02-16  Eric Blake  <eblake@redhat.com>
14095
14096         maintainer-makefile: make syntax-check a no-op from tarballs
14097         * top/maint.mk (no-vc-detected): New rule.
14098         (local-checks-available): Use it to avoid hanging if someone tries
14099         'make syntax-check' from a tarball.  Also append to any non-syntax
14100         checks already defined in cfg.mk.
14101
14102 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14103
14104         longlong: tune, particularly for common case of c99
14105
14106         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14107         or running anything if c99, or if unsigned long long int does not
14108         work.  In either case, we know the answer without further tests.
14109         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14110         it at most once, and use its results for both long long int and
14111         unsigned long long int.  This is more likely to be efficient in
14112         the common case where the program wants to check for both long
14113         long int and unsigned long long int.
14114         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14115         since the answer is already known.
14116
14117 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14118
14119         getloadavg: set errno
14120         * lib/getloadavg.c: Set errno when returning -1.  If no other
14121         error number looks appropriate, set it to ENOSYS if the getloadavg
14122         looks like it can't possibly ever work, ENOTSUP otherwise.
14123         Suggested by Bruno Haible in
14124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14125
14126         getloadavg: trim unused parts and speed up 'configure'
14127         * NEWS: Document this.
14128         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14129         always compiled if getloadavg is absent.
14130         Move test code to ...
14131         * tests/test-getloadavg.c: New file, containing previous
14132         contents of test from lib/getloadavg.c.  It also contains
14133         suggestions by Bruno Haible in
14134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14135         * modules/getloadavg-tests: New file.
14136         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14137         Do tests in the same order as they're needed for getloadavg.c.
14138         Omit setgid-related tests that generate symbols KMEM_GROUP,
14139         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14140         Do only the tests that are needed to see whether the system has
14141         getloadavg, moving the other tests into ...
14142         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14143         NLIST_NAME_UNION; nobody should be using it.  Do not define
14144         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14145         relevant, as the user of this module shouldn't care how getloadavg
14146         is implemented.
14147
14148         getloadavg: omit unused var
14149         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14150
14151 2011-02-15  Jim Meyering  <meyering@redhat.com>
14152
14153         doc: update users.txt
14154         * users.txt: Update iwhd's URL.
14155
14156 2011-02-13  Bruno Haible  <bruno@clisp.org>
14157
14158         Consistent macro naming for macros that use GCC __attribute__.
14159         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14160         _ATTRIBUTE_NONNULL_.
14161         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14162         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14163         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14164         ATTRIBUTE_DEPRECATED.
14165         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14166         ATTRIBUTE_NORETURN.
14167         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14168         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14169         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14170         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14171         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14172         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14173         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14174         ATTRIBUTE_SENTINEL.
14175         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14176         ATTRIBUTE_RETURN_CHECK.
14177         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14178         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14179         ATTRIBUTE_NORETURN.
14180         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14181         Reported by Paul Eggert.
14182
14183 2011-02-13  Bruno Haible  <bruno@clisp.org>
14184
14185         Don't interfere with a program's definition of __attribute__.
14186         * lib/argp.h (__attribute__): Remove definition.
14187         (_GL_ATTRIBUTE_FORMAT): New macro.
14188         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14189         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14190         (_GL_ATTRIBUTE_FORMAT): New macro.
14191         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14192         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14193         GCC 3 or newer.
14194         * lib/error.h (__attribute__): Remove definition.
14195         (_GL_ATTRIBUTE_FORMAT): New macro.
14196         (error, error_at_line): Use it.
14197         * lib/hash.h (__attribute__): Remove definition.
14198         (ATTRIBUTE_WUR): Update definition. Define always.
14199         * lib/openat.h (__attribute__): Remove definition.
14200         (ATTRIBUTE_NORETURN): Update definition. Define always.
14201         * lib/sigpipe-die.h (__attribute__): Remove definition.
14202         (ATTRIBUTE_NORETURN): Update definition. Define always.
14203         * lib/vasnprintf.h (__attribute__): Remove definition.
14204         (_GL_ATTRIBUTE_FORMAT): New macro.
14205         (asnprintf, vasnprintf): Use it.
14206         * lib/xalloc.h (__attribute__): Remove definition.
14207         (ATTRIBUTE_NORETURN): Update definition. Define always.
14208         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14209         * lib/xmemdup0.h (__attribute__): Remove definition.
14210         (ATTRIBUTE_NORETURN): Update definition. Define always.
14211         * lib/xprintf.h (__attribute__): Remove definition.
14212         (_GL_ATTRIBUTE_FORMAT): New macro.
14213         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14214         * lib/xstrtol.h (__attribute__): Remove definition.
14215         (ATTRIBUTE_NORETURN): Update definition. Define always.
14216         * lib/xvasprintf.h (__attribute__): Remove definition.
14217         (_GL_ATTRIBUTE_FORMAT): New macro.
14218         (xasprintf, xvasprintf): Use it.
14219         * tests/test-argmatch.c (__attribute__): Remove definition.
14220         (ATTRIBUTE_NORETURN): Update definition. Define always.
14221         * tests/test-exclude.c (__attribute__): Remove definition.
14222         (ATTRIBUTE_NORETURN): Update definition. Define always.
14223         Reported by Paul Eggert.
14224
14225 2011-02-13  Bruno Haible  <bruno@clisp.org>
14226
14227         mbrtowc: Add more tests for native Windows platforms.
14228         * tests/test-mbrtowc-w32-1.sh: New file.
14229         * tests/test-mbrtowc-w32-2.sh: New file.
14230         * tests/test-mbrtowc-w32-3.sh: New file.
14231         * tests/test-mbrtowc-w32-4.sh: New file.
14232         * tests/test-mbrtowc-w32-5.sh: New file.
14233         * tests/test-mbrtowc-w32.c: New file.
14234         * modules/mbrtowc-tests (Files): Add them.
14235         (Makefile.am): Arrange to run these tests.
14236         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14237         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14238
14239 2011-02-13  Bruno Haible  <bruno@clisp.org>
14240
14241         mbrtowc: Work around native Windows bug.
14242         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14243         guess when no suitable locale for testing was found.
14244         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14245
14246 2011-02-13  Bruno Haible  <bruno@clisp.org>
14247
14248         mbsinit: Work around mingw bug.
14249         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14250         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14251         Windows.
14252         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14253
14254 2011-02-13  Bruno Haible  <bruno@clisp.org>
14255
14256         mbsinit: Don't crash for a NULL argument.
14257         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14258         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14259
14260 2011-02-13  Bruno Haible  <bruno@clisp.org>
14261
14262         Don't interfere with a program's definition of __attribute__.
14263         * lib/stdio.in.h (__attribute__): Remove definition.
14264         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14265         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14266         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14267         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14268         * lib/string.in.h (__attribute__): Remove definition.
14269         Reported by Paul Eggert.
14270
14271 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14272
14273         stdlib: don't get in the way of non-GCC __attribute__
14274         See thread starting at
14275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14276         Revert previous stdlib change, installing the following instead:
14277         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14278         to get in the way of a non-GCC compiler that supports __attribute__.
14279         (_GL_ATTRIBUTE_RETURN): New macro.
14280         (_Exit): Use it instead of __attribute__.
14281
14282 2011-02-12  Bruno Haible  <bruno@clisp.org>
14283
14284         quotearg test: Avoid test failure on mingw.
14285         * tests/test-quotearg.sh: Convert the locale identifier from native
14286         Windows syntax to Unix syntax.
14287
14288 2011-02-12  Bruno Haible  <bruno@clisp.org>
14289
14290         setlocale: Prefer gnulib's override over libintl's override.
14291         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14292         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14293         GNULIB_defined_setlocale is set.
14294
14295 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14296
14297         stdlib: support non-GCC __attribute__
14298
14299         Fix a serious and tricky problem encountered when attempting to
14300         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14301         5.5, but it crashed due to memory corruption on Solaris 10 with
14302         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14303         bits that are otherwise zero.  This tagging is optional inside
14304         Emacs but is preferred and is used when __attribute__ ((__aligned
14305         (8))) works, as it does with both recent-enough GCC and with Sun C
14306         5.11.  However, Sun C 5.11 is not GCC and does not #define
14307         __GNUC__ and __GNUC_MINOR__.
14308
14309         When I added the getloadavg module to Emacs, it brought in
14310         stdlib.in.h, which contained this fragment:
14311
14312            #ifndef __attribute__
14313            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14314            #  define __attribute__(Spec)   /* empty */
14315            # endif
14316            #endif
14317
14318         When files that include <stdlib.h> were compiled with Sun C 5.11,
14319         the above code disabled __attribute__ ((__aligned (8))), which
14320         caused variables to not be properly aligned, which eventually led
14321         to the pointer corruption mentioned above.  (This was a bit hard
14322         to diagnose, unfortunately.)
14323
14324         Several "#define __attribute__(X) /* empty */" code snippets need
14325         to be eradicated from Gnulib to work with non-GCC compilers that
14326         support __attribute__.  The Autoconf way to do this is to test for
14327         each kind of attribute that we want support for, and selectively
14328         enable that in source code.
14329
14330         Fix this problem just for stdlib.h, by adding a test for the
14331         __noreturn__ attribute, and change stdlib.in.h to use that test
14332         when needed.  This technique can be easily generalized to the
14333         other *.in.h files and attributes, and a similar technique can be
14334         used for *.h and *.c files.  This patch is enough to solve the
14335         problem for Emacs + getloadavg, and I thought I'd publish it for
14336         feedback before undertaking further, similar fixes in other
14337         modules.
14338
14339         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14340         because it's not needed for stdlib.h.  It merely substitutes the
14341         value directly into stdlib.h.  We may well need to #define it, or
14342         similar symbols, for other modules, but it's nice to also have an
14343         option to not #define it for applications like Emacs that do not
14344         need it.
14345
14346         * lib/stdlib.in.h (__attribute__): Do not #define.
14347         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14348         be defined only if the _Exit module is also used.
14349         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14351         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14352         platforms.
14353         * modules/_Exit (Files): Add m4/attribute.m4.
14354         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14355         * m4/attribute.m4: New file.
14356
14357 2011-02-12  Bruno Haible  <bruno@clisp.org>
14358
14359         wcsrtombs: Work around bug on native Windows.
14360         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14361         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14362         instead of len.
14363         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14364
14365 2011-02-12  Bruno Haible  <bruno@clisp.org>
14366
14367         mbsrtowcs: Work around bug on native Windows.
14368         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14369         against mingw bug.
14370         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14371
14372 2011-02-12  Bruno Haible  <bruno@clisp.org>
14373
14374         Avoid setlocale bugs in tests.
14375         * modules/btowc (Dependencies): Add setlocale.
14376         * modules/c-strcase (Dependencies): Likewise.
14377         * modules/mbmemcasecmp (Dependencies): Likewise.
14378         * modules/mbmemcasecoll (Dependencies): Likewise.
14379         * modules/mbrtowc (Dependencies): Likewise.
14380         * modules/mbscasecmp (Dependencies): Likewise.
14381         * modules/mbscasestr (Dependencies): Likewise.
14382         * modules/mbschr (Dependencies): Likewise.
14383         * modules/mbscspn (Dependencies): Likewise.
14384         * modules/mbsinit (Dependencies): Likewise.
14385         * modules/mbsncasecmp (Dependencies): Likewise.
14386         * modules/mbsnrtowcs (Dependencies): Likewise.
14387         * modules/mbspbrk (Dependencies): Likewise.
14388         * modules/mbspcasecmp (Dependencies): Likewise.
14389         * modules/mbsrchr (Dependencies): Likewise.
14390         * modules/mbsrtowcs (Dependencies): Likewise.
14391         * modules/mbsspn (Dependencies): Likewise.
14392         * modules/mbsstr (Dependencies): Likewise.
14393         * modules/nl_langinfo (Dependencies): Likewise.
14394         * modules/quotearg (Dependencies): Likewise.
14395         * modules/unicase/locale-language (Dependencies): Likewise.
14396         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14397         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14398         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14399         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14400         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14401         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14402         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14403         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14404         * modules/vasnprintf-posix (Dependencies): Likewise.
14405         * modules/wcrtomb (Dependencies): Likewise.
14406         * modules/wcsnrtombs (Dependencies): Likewise.
14407         * modules/wcsrtombs (Dependencies): Likewise.
14408
14409 2011-02-12  Bruno Haible  <bruno@clisp.org>
14410
14411         setlocale: Workaround native Windows bug.
14412         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14413         succeeds but sets LC_CTYPE to "C", report a failure.
14414         * tests/test-setlocale2.sh: New file.
14415         * tests/test-setlocale2.c: New file.
14416         * modules/setlocale-tests (Files): Add the new files.
14417         (Makefile.am): Enable test-setlocale2.sh test.
14418         * doc/posix-functions/setlocale.texi: Mention workaround.
14419
14420 2011-02-11  Bruno Haible  <bruno@clisp.org>
14421
14422         Tests for module 'setlocale'.
14423         * modules/setlocale-tests: New file.
14424         * tests/test-setlocale1.sh: New file.
14425         * tests/test-setlocale1.c: New file.
14426
14427         New module 'setlocale'.
14428         * lib/locale.in.h (setlocale): New declaration.
14429         * lib/setlocale.c: New file, based on
14430         gettext/gettext-runtime/intl/setlocale.c.
14431         * m4/setlocale.m4: New file.
14432         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14433         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14434         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14435         REPLACE_SETLOCALE.
14436         * modules/setlocale: New file.
14437         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14438         * doc/posix-functions/setlocale.texi: Mention the new module.
14439
14440 2011-02-11  Bruno Haible  <bruno@clisp.org>
14441
14442         Prepare for locale dependent tests on mingw.
14443         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14444         because it has the wrong locale encoding.
14445         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14446         French_France.1252 instead of "fr".
14447         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14448         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14449         because it has the wrong locale encoding.
14450         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14451         native Windows, try Turkish_Turkey.65001.
14452         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14453         Chinese_China.54936.
14454
14455         Prepare for locale dependent tests on mingw.
14456         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14457         differently.
14458         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14459         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14460         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14461         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14462
14463 2011-02-11  Eric Blake  <eblake@redhat.com>
14464
14465         strptime: avoid compiler warnings
14466         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14467         compiler warnings about dead code.
14468         Reported by Daniel P. Berrange.
14469
14470 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14471
14472         doc: update users.txt
14473         * users.txt: Add rcs.
14474
14475 2011-02-10  John W. Eaton  <jwe@gnu.org>
14476
14477         doc: update users.txt
14478         * users.txt: Add octave.
14479
14480 2011-02-10  Jim Meyering  <meyering@redhat.com>
14481
14482         doc: update users.txt
14483         * users.txt: Add iwhd.
14484
14485 2011-02-09  Bruno Haible  <bruno@clisp.org>
14486
14487         gnulib-tool: Make copyright notice adjustment more robust.
14488         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14489         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14490         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14491         License".
14492         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14493
14494 2011-02-06  Bruno Haible  <bruno@clisp.org>
14495
14496         New module 'towctrans'.
14497         * modules/towctrans: New file.
14498         * lib/wctype.in.h (towctrans): New declaration.
14499         * lib/towctrans.c: New file.
14500         * lib/towctrans-impl.h: New file.
14501         * m4/towctrans.m4: New file.
14502         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14503         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14504         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14505         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14506         * doc/posix-functions/towctrans.texi: Mention the new module.
14507
14508 2011-02-06  Bruno Haible  <bruno@clisp.org>
14509
14510         New module 'wctrans'.
14511         * modules/wctrans: New file.
14512         * lib/wctype.in.h (wctrans): New declaration.
14513         * lib/wctrans.c: New file.
14514         * lib/wctrans-impl.h: New file.
14515         * m4/wctrans.m4: New file.
14516         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14517         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14518         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14519         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14520         * doc/posix-functions/wctrans.texi: Mention the new module.
14521
14522 2011-02-06  Bruno Haible  <bruno@clisp.org>
14523
14524         New module 'iswctype'.
14525         * modules/iswctype: New file.
14526         * lib/wctype.in.h (iswctype): New declaration.
14527         * lib/iswctype.c: New file.
14528         * lib/iswctype-impl.h: New file.
14529         * m4/iswctype.m4: New file.
14530         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14531         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14532         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14533         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14534         * doc/posix-functions/iswctype.texi: Mention the new module and the
14535         HP-UX 11.00 problem.
14536
14537 2011-02-06  Bruno Haible  <bruno@clisp.org>
14538
14539         New module 'wctype'.
14540         * modules/wctype: Change to represent the wctype() substitute.
14541         * lib/wctype.in.h (wctype): New declaration.
14542         * lib/wctype.c: New file.
14543         * lib/wctype-impl.h: New file.
14544         * m4/wctype.m4: New file.
14545         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14546         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14547         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14548         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14549         * doc/posix-functions/wctype.texi: Mention the new module and the
14550         HP-UX 11.00 problem.
14551
14552 2011-02-06  Bruno Haible  <bruno@clisp.org>
14553
14554         wctype-h: Ensure wctype_t and wctrans_t are defined.
14555         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14556         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14557         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14558         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14559         HAVE_WCTRANS_T.
14560         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14561
14562 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14563
14564         flock: fix license typo
14565
14566         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14567         omitted.
14568
14569 2011-02-08  Bruno Haible  <bruno@clisp.org>
14570
14571         Split large sed scripts, for HP-UX sed.
14572         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14573         to avoid HP-UX limit of 99 commands, in the near future.
14574         * modules/stdlib (Makefile.am): Likewise.
14575         * modules/unistd (Makefile.am): Likewise.
14576         * modules/wchar (Makefile.am): Likewise.
14577         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14578         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14579         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14580
14581 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14582             Bruno Haible  <bruno@clisp.org>
14583
14584         stdlib: improve random_r modularization
14585         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14586         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14587         you also need the random_r module to get this material right.
14588         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14589         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14590         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14591
14592 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14593
14594         stdlib: don't depend on stdint
14595         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14596         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14597         be independent of whether stdint.h is needed.
14598         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14599         here, instead of ...
14600         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14601         struct random_data should be using the random_r module, not just
14602         the stdlib module (which wouldn't make sense: what package needs
14603         just struct random_data without also needing random_r?).
14604         * modules/stdlib (Depends-on): Remove stdint.
14605
14606         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14607         See the thread rooted at
14608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14609         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14610         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14611         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14612         __VMS)); previously it was always included (via fcntl--.h).
14613         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14614         hand; this is good enough for load averages.  Also, do not use
14615         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14616         flags directly if available and don't bother otherwise.  (Packages
14617         that need the extra reliability should use the modules that define
14618         these flags on older platforms that lack them.)
14619         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14620         fcntl-safer.
14621
14622 2011-02-08  Jim Meyering  <meyering@redhat.com>
14623
14624         di-set.h, ino-map.h: add multiple-inclusion guard
14625         Technically, the guard is required only for ino-map.h, due to its
14626         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14627         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14628         * lib/ino-map.h: Likewise.
14629
14630 2011-02-06  Bruno Haible  <bruno@clisp.org>
14631
14632         iswblank: Ensure declaration on glibc systems.
14633         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14634         * modules/iswblank (Dependencies): Add 'extensions'.
14635         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14636
14637 2011-02-06  Bruno Haible  <bruno@clisp.org>
14638
14639         New module 'iswblank'.
14640         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14641         * modules/iswblank: New file.
14642         * modules/wctype-h (Files): Remove lib/iswblank.c.
14643         (Makefile.am): Substitute GNULIB_ISWBLANK.
14644         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14645         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14646         (gl_WCTYPE_H_DEFAULTS): New macro.
14647         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14648         * modules/iswblank-tests: New file.
14649         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14650         * tests/test-wctype-h.c (main): Remove iswblank tests.
14651         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14652         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14653         of 'wctype-h'.
14654         * NEWS: Mention the change.
14655         * modules/mbchar (Depends-on): Add iswblank.
14656
14657 2011-02-08  Bruno Haible  <bruno@clisp.org>
14658
14659         di-set tests: Refactor.
14660         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14661         unnecessary includes.
14662         (ASSERT): Remove macro.
14663         (main): Make C90 compliant by avoiding variable declaration after
14664         statement.
14665         * modules/di-set-tests (Files): Add tests/macros.h.
14666
14667 2011-02-08  Bruno Haible  <bruno@clisp.org>
14668
14669         ino-map tests: Refactor.
14670         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14671         unnecessary includes.
14672         (ASSERT): Remove macro.
14673         (main): Make C90 compliant by avoiding variable declaration after
14674         statement.
14675         * modules/ino-map-tests (Files): Add tests/macros.h.
14676
14677 2011-02-08  Jim Meyering  <meyering@redhat.com>
14678
14679         di-set: add "const" to a cast
14680         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14681         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14682
14683 2011-02-06  Bruno Haible  <bruno@clisp.org>
14684
14685         Rename module 'wctype' to 'wctype-h'.
14686         * modules/wctype-h: Renamed from modules/wctype.
14687         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14688         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14689         (Files, Depends-on, Makefile.am): Update.
14690         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14691         (Files, Makefile.am): Update.
14692         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14693         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14694         * doc/posix-headers/wctype.texi: Update.
14695         * doc/posix-functions/iswalnum.texi: Update.
14696         * doc/posix-functions/iswalpha.texi: Update.
14697         * doc/posix-functions/iswblank.texi: Update.
14698         * doc/posix-functions/iswcntrl.texi: Update.
14699         * doc/posix-functions/iswdigit.texi: Update.
14700         * doc/posix-functions/iswgraph.texi: Update.
14701         * doc/posix-functions/iswlower.texi: Update.
14702         * doc/posix-functions/iswprint.texi: Update.
14703         * doc/posix-functions/iswpunct.texi: Update.
14704         * doc/posix-functions/iswspace.texi: Update.
14705         * doc/posix-functions/iswupper.texi: Update.
14706         * doc/posix-functions/iswxdigit.texi: Update.
14707         * doc/posix-functions/towlower.texi: Update.
14708         * doc/posix-functions/towupper.texi: Update.
14709         * NEWS: Mention the change.
14710         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14711         * modules/mbchar (Dependencies): Likewise.
14712         * modules/mbswidth (Dependencies): Likewise.
14713         * modules/quotearg (Dependencies): Likewise.
14714         * modules/regex (Dependencies): Likewise.
14715         * modules/wcscasecmp (Dependencies): Likewise.
14716         * modules/wcsncasecmp (Dependencies): Likewise.
14717         * modules/wcwidth (Dependencies): Likewise.
14718
14719 2011-02-06  Bruno Haible  <bruno@clisp.org>
14720
14721         New module 'wcswidth'.
14722         * modules/wcswidth: New file.
14723         * lib/wchar.in.h (wcswidth): New declaration.
14724         * lib/wcswidth.c: New file.
14725         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14726         * m4/wcswidth.m4: New file.
14727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14729         REPLACE_WCSWIDTH.
14730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14731         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14732         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14733         * doc/posix-functions/wcswidth.texi: Mention the new module.
14734
14735 2011-02-06  Bruno Haible  <bruno@clisp.org>
14736
14737         New module 'wcstok'.
14738         * modules/wcstok: New file.
14739         * lib/wchar.in.h (wcstok): New declaration.
14740         * lib/wcstok.c: New file.
14741         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14742         * m4/wcstok.m4: New file.
14743         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14744         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14745         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14746         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14747         * doc/posix-functions/wcstok.texi: Mention the new module.
14748
14749 2011-02-06  Bruno Haible  <bruno@clisp.org>
14750
14751         New module 'wcsstr'.
14752         * modules/wcsstr: New file.
14753         * lib/wchar.in.h (wcsstr): New declaration.
14754         * lib/wcsstr.c: New file.
14755         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14756         * m4/wcsstr.m4: New file.
14757         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14758         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14759         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14760         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14761         * doc/posix-functions/wcsstr.texi: Mention the new module.
14762
14763 2011-02-06  Bruno Haible  <bruno@clisp.org>
14764
14765         New module 'wcspbrk'.
14766         * modules/wcspbrk: New file.
14767         * lib/wchar.in.h (wcspbrk): New declaration.
14768         * lib/wcspbrk.c: New file.
14769         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14770         * m4/wcspbrk.m4: New file.
14771         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14772         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14773         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14774         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14775         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14776
14777 2011-02-06  Bruno Haible  <bruno@clisp.org>
14778
14779         New module 'wcsspn'.
14780         * modules/wcsspn: New file.
14781         * lib/wchar.in.h (wcsspn): New declaration.
14782         * lib/wcsspn.c: New file.
14783         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14784         * m4/wcsspn.m4: New file.
14785         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14786         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14787         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14788         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14789         * doc/posix-functions/wcsspn.texi: Mention the new module.
14790
14791 2011-02-06  Bruno Haible  <bruno@clisp.org>
14792
14793         New module 'wcscspn'.
14794         * modules/wcscspn: New file.
14795         * lib/wchar.in.h (wcscspn): New declaration.
14796         * lib/wcscspn.c: New file.
14797         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14798         * m4/wcscspn.m4: New file.
14799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14802         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14803         * doc/posix-functions/wcscspn.texi: Mention the new module.
14804
14805 2011-02-06  Bruno Haible  <bruno@clisp.org>
14806
14807         New module 'wcsrchr'.
14808         * modules/wcsrchr: New file.
14809         * lib/wchar.in.h (wcsrchr): New declaration.
14810         * lib/wcsrchr.c: New file.
14811         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14812         * m4/wcsrchr.m4: New file.
14813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14816         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14817         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14818
14819 2011-02-06  Bruno Haible  <bruno@clisp.org>
14820
14821         New module 'wcschr'.
14822         * modules/wcschr: New file.
14823         * lib/wchar.in.h (wcschr): New declaration.
14824         * lib/wcschr.c: New file.
14825         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14826         * m4/wcschr.m4: New file.
14827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14830         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14831         * doc/posix-functions/wcschr.texi: Mention the new module.
14832
14833 2011-02-06  Bruno Haible  <bruno@clisp.org>
14834
14835         New module 'wcsdup'.
14836         * modules/wcsdup: New file.
14837         * lib/wchar.in.h (wcsdup): New declaration.
14838         * lib/wcsdup.c: New file.
14839         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14840         * m4/wcsdup.m4: New file.
14841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14844         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14845         * doc/posix-functions/wcsdup.texi: Mention the new module.
14846
14847 2011-02-06  Bruno Haible  <bruno@clisp.org>
14848
14849         New module 'wcsxfrm'.
14850         * modules/wcsxfrm: New file.
14851         * lib/wchar.in.h (wcsxfrm): New declaration.
14852         * lib/wcsxfrm.c: New file.
14853         * lib/wcsxfrm-impl.h: New file.
14854         * m4/wcsxfrm.m4: New file.
14855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14858         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14859         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14860
14861 2011-02-06  Bruno Haible  <bruno@clisp.org>
14862
14863         New module 'wcscoll'.
14864         * modules/wcscoll: New file.
14865         * lib/wchar.in.h (wcscoll): New declaration.
14866         * lib/wcscoll.c: New file.
14867         * lib/wcscoll-impl.h: New file.
14868         * m4/wcscoll.m4: New file.
14869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14872         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14873         * doc/posix-functions/wcscoll.texi: Mention the new module.
14874
14875 2011-02-06  Bruno Haible  <bruno@clisp.org>
14876
14877         New module 'wcsncasecmp'.
14878         * modules/wcsncasecmp: New file.
14879         * lib/wchar.in.h (wcsncasecmp): New declaration.
14880         * lib/wcsncasecmp.c: New file.
14881         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14882         * m4/wcsncasecmp.m4: New file.
14883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14886         HAVE_WCSNCASECMP.
14887         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14888         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14889
14890 2011-02-06  Bruno Haible  <bruno@clisp.org>
14891
14892         New module 'wcscasecmp'.
14893         * modules/wcscasecmp: New file.
14894         * lib/wchar.in.h (wcscasecmp): New declaration.
14895         * lib/wcscasecmp.c: New file.
14896         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14897         * m4/wcscasecmp.m4: New file.
14898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14900         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14901         HAVE_WCSCASECMP.
14902         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14903         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14904
14905 2011-02-05  Bruno Haible  <bruno@clisp.org>
14906
14907         New module 'wcsncmp'.
14908         * modules/wcsncmp: New file.
14909         * lib/wchar.in.h (wcsncmp): New declaration.
14910         * lib/wcsncmp.c: New file.
14911         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14912         * m4/wcsncmp.m4: New file.
14913         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14914         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14915         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14916         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14917         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14918
14919 2011-02-05  Bruno Haible  <bruno@clisp.org>
14920
14921         New module 'wcscmp'.
14922         * modules/wcscmp: New file.
14923         * lib/wchar.in.h (wcscmp): New declaration.
14924         * lib/wcscmp.c: New file.
14925         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14926         * m4/wcscmp.m4: New file.
14927         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14928         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14929         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14930         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14931         * doc/posix-functions/wcscmp.texi: Mention the new module.
14932
14933 2011-02-05  Bruno Haible  <bruno@clisp.org>
14934
14935         New module 'wcsncat'.
14936         * modules/wcsncat: New file.
14937         * lib/wchar.in.h (wcsncat): New declaration.
14938         * lib/wcsncat.c: New file.
14939         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14940         * m4/wcsncat.m4: New file.
14941         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14942         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14943         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14944         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14945         * doc/posix-functions/wcsncat.texi: Mention the new module.
14946
14947 2011-02-05  Bruno Haible  <bruno@clisp.org>
14948
14949         New module 'wcscat'.
14950         * modules/wcscat: New file.
14951         * lib/wchar.in.h (wcscat): New declaration.
14952         * lib/wcscat.c: New file.
14953         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14954         * m4/wcscat.m4: New file.
14955         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14956         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14957         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14958         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14959         * doc/posix-functions/wcscat.texi: Mention the new module.
14960
14961 2011-02-05  Bruno Haible  <bruno@clisp.org>
14962
14963         New module 'wcpncpy'.
14964         * modules/wcpncpy: New file.
14965         * lib/wchar.in.h (wcpncpy): New declaration.
14966         * lib/wcpncpy.c: New file.
14967         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14968         * m4/wcpncpy.m4: New file.
14969         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14970         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14971         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14972         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14973         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14974
14975 2011-02-05  Bruno Haible  <bruno@clisp.org>
14976
14977         New module 'wcsncpy'.
14978         * modules/wcsncpy: New file.
14979         * lib/wchar.in.h (wcsncpy): New declaration.
14980         * lib/wcsncpy.c: New file.
14981         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14982         * m4/wcsncpy.m4: New file.
14983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14986         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14987         * doc/posix-functions/wcsncpy.texi: Mention the new module.
14988
14989 2011-02-05  Bruno Haible  <bruno@clisp.org>
14990
14991         New module 'wcpcpy'.
14992         * modules/wcpcpy: New file.
14993         * lib/wchar.in.h (wcpcpy): New declaration.
14994         * lib/wcpcpy.c: New file.
14995         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
14996         * m4/wcpcpy.m4: New file.
14997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
14998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
14999         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15000         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15001         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15002
15003 2011-02-05  Bruno Haible  <bruno@clisp.org>
15004
15005         New module 'wcscpy'.
15006         * modules/wcscpy: New file.
15007         * lib/wchar.in.h (wcscpy): New declaration.
15008         * lib/wcscpy.c: New file.
15009         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15010         * m4/wcscpy.m4: New file.
15011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15014         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15015         * doc/posix-functions/wcscpy.texi: Mention the new module.
15016
15017 2011-02-05  Bruno Haible  <bruno@clisp.org>
15018
15019         New module 'wcsnlen'.
15020         * modules/wcsnlen: New file.
15021         * lib/wchar.in.h (wcsnlen): New declaration.
15022         * lib/wcsnlen.c: New file.
15023         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15024         * m4/wcsnlen.m4: New file.
15025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15028         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15029         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15030
15031 2011-02-05  Bruno Haible  <bruno@clisp.org>
15032
15033         New module 'wcslen'.
15034         * modules/wcslen: New file.
15035         * lib/wchar.in.h (wcslen): New declaration.
15036         * lib/wcslen.c: New file.
15037         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15038         * m4/wcslen.m4: New file.
15039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15042         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15043         * doc/posix-functions/wcslen.texi: Mention the new module.
15044
15045 2011-02-05  Bruno Haible  <bruno@clisp.org>
15046
15047         New module 'wmemset'.
15048         * modules/wmemset: New file.
15049         * lib/wchar.in.h (wmemset): New declaration.
15050         * lib/wmemset.c: New file.
15051         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15052         * m4/wmemset.m4: New file.
15053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15055         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15056         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15057         * doc/posix-functions/wmemset.texi: Mention the new module.
15058
15059 2011-02-05  Bruno Haible  <bruno@clisp.org>
15060
15061         New module 'wmemmove'.
15062         * modules/wmemmove: New file.
15063         * lib/wchar.in.h (wmemmove): New declaration.
15064         * lib/wmemmove.c: New file.
15065         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15066         * m4/wmemmove.m4: New file.
15067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15069         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15070         HAVE_WMEMMOVE.
15071         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15072         * doc/posix-functions/wmemmove.texi: Mention the new module.
15073
15074 2011-02-05  Bruno Haible  <bruno@clisp.org>
15075
15076         New module 'wmemcpy'.
15077         * modules/wmemcpy: New file.
15078         * lib/wchar.in.h (wmemcpy): New declaration.
15079         * lib/wmemcpy.c: New file.
15080         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15081         * m4/wmemcpy.m4: New file.
15082         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15083         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15084         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15085         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15086         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15087
15088 2011-02-05  Bruno Haible  <bruno@clisp.org>
15089
15090         New module 'wmemcmp'.
15091         * modules/wmemcmp: New file.
15092         * lib/wchar.in.h (wmemcmp): New declaration.
15093         * lib/wmemcmp.c: New file.
15094         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15095         * m4/wmemcmp.m4: New file.
15096         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15097         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15098         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15099         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15100         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15101
15102 2011-02-07  Jim Meyering  <meyering@redhat.com>
15103
15104         di-set, ino-map: new modules, from coreutils
15105         * lib/di-set.c: New file.
15106         * lib/di-set.h: Likewise.
15107         * lib/ino-map.c: Likewise.
15108         * lib/ino-map.h: Likewise.
15109         * modules/di-set: Likewise.
15110         * modules/di-set-tests: Likewise.
15111         * modules/ino-map: Likewise.
15112         * modules/ino-map-tests: Likewise.
15113         * tests/test-di-set.c: Likewise.
15114         * tests/test-ino-map.c: Likewise.
15115
15116 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15117
15118         getloadavg: merge minor changes from Emacs
15119
15120         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15121         (getloadavg): Use memset, not bzero.
15122
15123         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15124         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15125         clash (bug#86).
15126
15127 2010-11-14  Bruno Haible  <bruno@clisp.org>
15128
15129         Allow multiple gnulib generated replacements to coexist.
15130         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15131         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15132         * lib/langinfo.in.h (nl_item): Likewise.
15133         * lib/math.in.h (_NaN, NAN): Likewise.
15134         * lib/netdb.in.h (struct addrinfo): Likewise.
15135         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15136         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15137         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15138         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15139         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15140         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15141         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15142         pthread_mutexattr_init, pthread_mutexattr_settype,
15143         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15144         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15145         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15146         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15147         * lib/sched.in.h (struct sched_param): Likewise.
15148         * lib/se-selinux.in.h (security_class_t, security_context_t,
15149         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15150         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15151         lsetfilecon, fsetfilecon, security_check_context,
15152         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15153         Likewise.
15154         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15155         Likewise.
15156         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15157         _gl_function_taking_int_returning_void_t, union sigval,
15158         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15159         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15160         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15161         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15162         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15163         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15164         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15165         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15166         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15167         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15168         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15169         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15170         socklen_t, rpl_fd_isset): Likewise.
15171         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15172         * lib/sys_time.in.h (struct timeval): Likewise.
15173         * lib/sys_times.in.h (struct tms): Likewise.
15174         * lib/sys_utsname.in.h (struct utsname):
15175         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15176         * lib/unistd.in.h (getpagesize): Likewise.
15177         * lib/wchar.in.h (mbstate_t): Likewise.
15178         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15179         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15180         towlower, towupper): Likewise.
15181         Reported by Sam Steingold <sds@gnu.org>.
15182
15183 2011-02-05  Eric Blake  <eblake@redhat.com>
15184
15185         unsetenv: work around Haiku issues
15186         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15187         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15188
15189 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15190
15191         libposix: avoid calling error() within libposix
15192         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15193         is defined.
15194
15195 2011-02-05  Eric Blake  <eblake@redhat.com>
15196
15197         strerror_r-posix: port to cygwin
15198         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15199         implementation.
15200         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15201         * tests/test-strerror_r.c (main): Fix test.
15202         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15203         issue.
15204
15205 2011-02-05  Bruno Haible  <bruno@clisp.org>
15206
15207         New module 'wmemchr'.
15208         * modules/wmemchr: New file.
15209         * lib/wchar.in.h (wmemchr): New declaration.
15210         * lib/wmemchr.c: New file.
15211         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15212         * m4/wmemchr.m4: New file.
15213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15215         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15216         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15217         * doc/posix-functions/wmemchr.texi: Mention the new module.
15218
15219 2011-02-04  Eric Blake  <eblake@redhat.com>
15220
15221         fdopendir: detect FreeBSD bug
15222         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15223         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15224
15225 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15226
15227         stdbool: do not define HAVE_STDBOOL_H
15228         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15229         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15230         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15231         imported from the latest Autoconf git.  It was motivated by Emacs,
15232         which uses gnulib but does not need HAVE_STDBOOL_H.
15233
15234 2011-02-04  Bruno Haible  <bruno@clisp.org>
15235
15236         wcsnrtombs: Prepare for new module wwcsnrtombs.
15237         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15238         * lib/wcsnrtombs.c: Include it.
15239         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15240
15241         wcsrtombs: Prepare for new module wwcsrtombs.
15242         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15243         * lib/wcsrtombs.c: Include it.
15244         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15245
15246         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15247         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15248         * lib/mbsnrtowcs.c: Include it.
15249         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15250
15251         mbsrtowcs: Prepare for new module mbsrtowwcs.
15252         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15253         * lib/mbsrtowcs.c: Include it.
15254         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15255
15256 2011-02-04  Bruno Haible  <bruno@clisp.org>
15257
15258         vasnprintf: Reduce use of malloc for small format strings.
15259         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15260         (arguments): Add room for the first 7 arguments.
15261         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15262         (char_directives, u8_directives, u16_directives, u32_directives): Add
15263         room for the first 7 directives.
15264         * lib/printf-parse.c: Include <string.h>.
15265         (PRINTF_PARSE): Change memory handling code so that it uses the first
15266         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15267         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15268         Reported by Pádraig Brady <P@draigbrady.com>.
15269
15270 2011-01-31  Eric Blake  <eblake@redhat.com>
15271
15272         dup2: work around Haiku bug
15273         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15274         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15275         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15276         * tests/test-dup2.c (main): Enhance test.
15277
15278 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15279
15280         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15281         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15282         declared by eglibc 2.11.2.
15283         * lib/stdio.in.h: Likewise.
15284
15285 2011-01-31  Eric Blake  <eblake@redhat.com>
15286
15287         ignore-value: add missing test dependency
15288         * tests/test-ignore-value.c: Revert previous change; stdio.h
15289         provides off_t.
15290         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15291
15292 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15293
15294         mktime: clarify long_int width checking
15295         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15296         the top level, to make it clearer that the assumption about
15297         long_int width is being checked.  See
15298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15299
15300 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15301
15302         ignore-value: Fix self-test.
15303         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15304
15305 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15306
15307         TYPE_MAXIMUM: avoid theoretically undefined behavior
15308         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15309         negative number, which the C Standard says has undefined behavior.
15310         In practice this is not a problem, but might as well do it by the book.
15311         Reported by Rich Felker and Eric Blake; see
15312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15313         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15314         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15315         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15316         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15317         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15318         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15319
15320         mktime: #undef mktime before #defining it
15321         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15322
15323         mktime: systematically normalize tm_isdst comparisons
15324         * lib/mktime.c (isdst_differ): New function.
15325         (__mktime_internal): Use it systematically for all isdst comparisons.
15326         This completes the fix for libc BZ #6723, and removes the need for
15327         normalizing tm_isdst.  See
15328         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15329         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15330
15331         mktime: fix some integer overflow issues and sidestep the rest
15332
15333         This was prompted by a bug report by Benjamin Lindner for MinGW
15334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15335         His bug is due to signed integer overflow (0 - INT_MIN), and I
15336         I scanned through mktime.c looking for other integer overflow
15337         problems, fixing all the bugs I found.
15338
15339         Although the C Standard says the resulting code is still not safe
15340         in the presence of integer overflow, in practice it should be good
15341         enough for all real-world two's-complement implementations, except
15342         for debugging environments that deliberately trap on integer
15343         overflow (e.g., gcc -ftrapv).
15344
15345         * lib/mktime.c (WRAPV): New macro.
15346         (SHR): Also check that long_int and time_t shift right in the
15347         usual way, before using the fast-but-unportable method.
15348         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15349         used.  The code already assumed two's complement, so there's
15350         no need to test for alternatives.  All uses removed.
15351         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15352         the C standard.  Problem reported by Rich Felker in
15353         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15354         (twos_complement_arithmetic): Also check long_int and time_t.
15355         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15356         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15357         (__mktime_internal): Avoid integer overflow with unary subtraction
15358         in two instances where -1 - X is an adequate replacement for -X,
15359         since the calculations are approximate.
15360
15361 2011-01-29  Eric Blake  <eblake@redhat.com>
15362
15363         mktime: avoid infinite loop
15364         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15365         type; behavior is still undefined but portable to all known targets.
15366         Reported by Rich Felker.
15367
15368 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15369
15370         rename, unlink, same-inode: Relicense.
15371         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15372         * modules/unlink (License): Likewise.
15373         * modules/same-inode (License): Likewise.
15374
15375 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15376
15377         mktime: avoid problems on NetBSD 5 / i386
15378         * lib/mktime.c (long_int): New type.  This works around a problem
15379         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15380         but time_t is 64 bits, and where I expect the existing code is
15381         wrong in some cases.
15382         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15383         (ydhms_diff): Bring back the compile-time check for wide-enough
15384         year and yday.
15385
15386         mktime: fix misspelling in comment
15387         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15388         This merges all recent glibc changes of importance.
15389
15390 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15391
15392         move-if-change: cope with concurrent mv of identical file.
15393         * build-aux/move-if-change (CMPPROG): Accept environment
15394         variable as an override for `cmp'.
15395         (usage): Document CMPPROG.
15396         Adjust comparison to drop stdout.  Cope with failure of mv if
15397         the target file exists and is identical to the source, for
15398         parallel builds.
15399         Report from H.J. Lu against binutils in PR binutils/12283.
15400
15401 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15402
15403         * users.txt: Mention sharutils.
15404
15405 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15406
15407         * users.txt: Mention OATH Toolkit.
15408
15409 2011-01-27  Bruno Haible  <bruno@clisp.org>
15410
15411         Prepare for supporting FreeBSD 10.
15412         * build-aux/config.libpath: Remove handling of freebsd1*.
15413
15414 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15415
15416         Prepare for supporting FreeBSD 10.
15417         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15418         match FreeBSD 10.0.
15419
15420 2011-01-27  Bruno Haible  <bruno@clisp.org>
15421
15422         vma-iter, get-rusage-as: Add OpenBSD support.
15423         * modules/vma-iter (configure.ac): Test for mquery.
15424         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15425         * lib/vma-iter.c: Include <sys/mman.h>.
15426         (vma_iterate): Add an implementation based on mquery().
15427         * lib/resource-ext.h (get_rusage_as): Update comments.
15428         * lib/get-rusage-as.c: Likewise.
15429         * lib/get-rusage-data.c: Likewise.
15430
15431 2011-01-26  Karl Berry  <karl@gnu.org>
15432
15433         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15434         variables to make it easier to override the makeinfo program used.
15435
15436 2011-01-26  Eric Blake  <eblake@redhat.com>
15437
15438         fcntl: work around Haiku F_DUPFD bugs
15439         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15440         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15441         cloexec bit on duplication.
15442         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15443
15444 2011-01-26  Bruno Haible  <bruno@clisp.org>
15445
15446         Enable memory leak tests on AIX.
15447         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15448         * tests/test-fprintf-posix3.c (main): Likewise.
15449
15450 2011-01-26  Bruno Haible  <bruno@clisp.org>
15451
15452         Tests for module 'get-rusage-data'.
15453         * modules/get-rusage-data-tests: New file.
15454         * tests/test-get-rusage-data.c: New file.
15455
15456         New module 'get-rusage-data'.
15457         * lib/resource-ext.h (get_rusage_data): New declaration.
15458         * lib/get-rusage-data.c: New file.
15459         * modules/get-rusage-data: New file.
15460
15461 2011-01-25  Bruno Haible  <bruno@clisp.org>
15462
15463         get-rusage-as: Allow for easier testing.
15464         * lib/resource-ext.h (get_rusage_as): Add comment.
15465         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15466         (main): New function for interactive testing.
15467
15468 2011-01-25  Bruno Haible  <bruno@clisp.org>
15469
15470         vma-iter: Treat Haiku like BeOS.
15471         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15472         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15473
15474 2011-01-25  Eric Blake  <eblake@redhat.com>
15475
15476         c-stack: fix regression on cygwin when libsigsegv is present
15477         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15478
15479 2011-01-24  Bruno Haible  <bruno@clisp.org>
15480
15481         vma-iter: Avoid empty intervals.
15482         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15483         on an empty interval.
15484
15485 2011-01-24  Jim Meyering  <meyering@redhat.com>
15486
15487         u64: remove unnecessary #include
15488         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15489
15490 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15491
15492         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15493         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15494
15495 2011-01-23  Bruno Haible  <bruno@clisp.org>
15496
15497         New module 'vma-iter'.
15498         * lib/vma-iter.h: New file.
15499         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15500         * modules/vma-iter: New file.
15501         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15502         for get_rusage_as_via_iterator.
15503         (vma_iterate_callback): New function.
15504         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15505         * modules/get-rusage-as (Depends-on): Add vma-iter.
15506
15507 2011-01-23  Bruno Haible  <bruno@clisp.org>
15508
15509         uninorm: Tweak includes.
15510         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15511         Reported by Jim Meyering.
15512
15513 2011-01-23  Bruno Haible  <bruno@clisp.org>
15514
15515         get-rusage-as: Improve on NetBSD.
15516         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15517         /proc, like on FreeBSD.
15518
15519 2011-01-23  Jim Meyering  <meyering@redhat.com>
15520
15521         xreadlink.h: remove unnecessary #include
15522         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15523
15524         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15525         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15526
15527 2011-01-23  Bruno Haible  <bruno@clisp.org>
15528
15529         get-rusage-as: Fix bug.
15530         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15531         original limit when aborting the first loop.
15532
15533 2011-01-23  Bruno Haible  <bruno@clisp.org>
15534
15535         wctype: Ensure valid C syntax.
15536         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15537         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15538
15539 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15540
15541         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15542         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15543         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15544         as they are needed only for configure's test case.
15545         This removes two unnecessary symbols from config.h.
15546
15547         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15548         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15550         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15551         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15552         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15553         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15554         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15555         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15556         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15557         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15558         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15559         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15560         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15561         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15562         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15563         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15564         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15565
15566 2011-01-21  Eric Blake  <eblake@redhat.com>
15567
15568         maintainer-makefile: work with older git for submodule check
15569         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15570         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15571         Reported by Matthias Bolte.
15572
15573         bootstrap: minor portability fixes
15574         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15575         (usage): Omit leading capital and trailing . on help phrases, per
15576         GNU Coding Standards.
15577         (check_versions, top level): Prefix messages with script name.
15578
15579 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15580
15581         bootstrap: support --no-git option
15582         * build-aux/bootstrap: Add --no-git option, to be used when
15583         --gnulib-srcdir points to the exact desired checkout.
15584
15585 2011-01-21  Eric Blake  <eblake@redhat.com>
15586
15587         strerror_r-posix: work with glibc 2.13
15588         * lib/strerror_r.c (strerror_r): Fix return type.
15589
15590 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15591             Bruno Haible  <bruno@clisp.org>
15592
15593         uN_strstr: New unit tests.
15594         * modules/unistr/u8-strstr-tests: New file.
15595         * modules/unistr/u16-strstr-tests: New file.
15596         * modules/unistr/u32-strstr-tests: New file.
15597         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15598         * tests/unistr/test-u8-strstr.c: New file.
15599         * tests/unistr/test-u16-strstr.c: New file.
15600         * tests/unistr/test-u32-strstr.c: New file.
15601
15602 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15603             Bruno Haible  <bruno@clisp.org>
15604
15605         Make uN_strstr functions O(n) worst-case.
15606         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15607         16-bit and 32-bit unit cases, use the unibyte algorithm from
15608         lib/mbsstr.c.
15609         * lib/unistr/u8-strstr.c: Include <string.h>.
15610         (UNIT_IS_UINT8_T): New macro.
15611         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15612         (U_STRLEN, U_STRNLEN): New macros.
15613         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15614         (U_STRLEN, U_STRNLEN): New macros.
15615         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15616         (configure.ac): Update required libunistring version.
15617         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15618         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15619         malloca.
15620         (configure.ac): Update required libunistring version.
15621         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15622         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15623         malloca.
15624         (configure.ac): Update required libunistring version.
15625
15626 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15627             Bruno Haible  <bruno@clisp.org>
15628
15629         Prepare for faster uN_strstr functions.
15630         * lib/str-kmp.h: Support definable UNITs.
15631         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15632         needle_len argument.
15633         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15634         * lib/mbscasestr.c (mbscasestr): Likewise.
15635
15636 2011-01-21  Pádraig Brady <P@draigBrady.com>
15637
15638         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15639         * tests/test-malloca.c (main): Unset the environment variable
15640         to greatly speed up the test.
15641         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15642         * modules/malloca-tests: Depend on unsetenv.
15643
15644 2011-01-21  Pádraig Brady <P@draigBrady.com>
15645
15646         ignore-value: remove stdint dependency
15647         * lib/ignore-value.h: Remove <stdint.h>
15648         * modules/ignore-value: Remove stdint dependency.
15649
15650 2011-01-21  Jim Meyering  <meyering@redhat.com>
15651
15652         maint.mk: adjust variable name to be consistent with other gl_ vars
15653         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15654         to be lower case.
15655
15656 2011-01-20  Jim Meyering  <meyering@redhat.com>
15657
15658         maint.mk: make "check" depend on public-submodule-commit by default
15659         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15660
15661 2011-01-20  Bruno Haible  <bruno@clisp.org>
15662
15663         mbfile, mbiter: Complete change from 2008-12-21.
15664         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15665         * m4/mbiter.m4 (gl_MBITER): Likewise.
15666
15667 2011-01-20  Jim Meyering  <meyering@redhat.com>
15668
15669         init.sh: insert space between each function name and "()"
15670         * tests/init.sh: Make it a little easier to see that a function's
15671         name is "warn_", and not "warn" when looking at the first part of
15672         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15673
15674 2011-01-20  Jim Meyering  <meyering@redhat.com>
15675
15676         mountlist: clean up code formatting
15677         * lib/mountlist.c (read_file_system_list): Split a long line,
15678         correct bracing style, use NULL in place of "(struct statfs *)0",
15679         don't parenthesize return value, add spaces around "=" and after
15680         ";-in-for-stmt".
15681
15682 2011-01-14  Markus Duft <mduft@gentoo.org>
15683
15684         mountlist: add support for Interix
15685         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15686         Apply statvfs to all entries of /dev/fs.
15687         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15688         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15689
15690 2011-01-20  Jim Meyering  <meyering@redhat.com>
15691
15692         maint.mk: improve the public-submodule-commit rule
15693         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15694         to suppress printing of its commands... unless V=1.
15695         Add git submodule's --quiet option to suppress printing of e.g.,
15696         "Entering gnulib" output.
15697         "cd" into $(srcdir) before running git submodule.
15698
15699 2011-01-20  Bruno Haible  <bruno@clisp.org>
15700
15701         include_next: Fix bug introduced on 2011-01-18.
15702         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15703         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15704         ac_cv_header_... variable if the second argument is not 'check'.
15705         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15706         gl_NEXT_HEADERS_INTERNAL.
15707
15708 2011-01-20  Bruno Haible  <bruno@clisp.org>
15709
15710         Allow the user to avoid the GNULIB_TEST_* macros.
15711         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15712         Suggested by Paul Eggert.
15713
15714 2011-01-14  Jim Meyering  <meyering@redhat.com>
15715
15716         bootstrap: avoid failure when there is no .gitmodules file
15717         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15718         has been assigned to, even when its value is the empty string.
15719         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15720         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15721         Reported by John W. Eaton <jwe@gnu.org>.
15722
15723 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15724
15725         assume <ctype.h>, ..., <time.h> exist
15726         For years gnulib has been assuming the existence of the headers
15727         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15728         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15729         them, since they don't appear to be needed.
15730         * README (Portability guidelines): Document this.
15731         * lib/flock.c: Assume <fcntl.h> exists.
15732         * lib/regex_internal.h: Assume <locale.h> exists.
15733         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15734         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15735         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15736         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15737         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15738         * m4/regex.m4 (gl_REGEX): Likewise.
15739         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15740         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15741         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15742         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15743         * tests/test-argp.c: Likewise.
15744         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15745
15746         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15747         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15748         AA_APPLE_UNIVERSAL_BUILD.  See
15749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15750         * NEWS: Document this.
15751
15752 2011-01-19  Eric Blake  <eblake@redhat.com>
15753
15754         c-stack: assume stack overflow if SA_SIGINFO unsupported
15755         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15756         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15757         sigaction will work.
15758         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15759         behavior match Linux.
15760         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15761
15762         stdbool-tests: accomodate Haiku
15763         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15764
15765         binary-io: fix O_TEXT on Haiku
15766         * modules/binary-io (Depends-on): Add fcntl-h.
15767         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15768         than blindly undefining O_TEXT.
15769         Reported by Scott McCreary.
15770
15771 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15772
15773         include_next: do not check for standard headers like stddef.h
15774
15775         I found this problem when modifying Emacs to use gnulib.
15776         I noticed that it added HAVE_STDDEF_H to config.h, even though
15777         gnulib always assumes <stddef.h> exists as per README and this
15778         symbol is unnecessary.
15779         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15780         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15781         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15782         faster for headers like stddef.h that are known to exist.
15783         (gl_CHECK_NEXT_HEADERS): Use it.
15784         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15785         rather than gl_CHECK_NEXT_HEADERS.
15786         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15787         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15788
15789 2011-01-18  Eric Blake  <eblake@redhat.com>
15790
15791         ansi-c++-opt: skip C++ dependency style if C++ is unused
15792         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15793         tests when we know C++ compilation is not desired.
15794         Reported by Scott McCreary.
15795
15796 2011-01-18  Bruno Haible  <bruno@clisp.org>
15797
15798         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15799         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15800         (main): Perform test also when getrlimit and setrlimit don't exist or
15801         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15802         limiting the address space size using setrlimit, compare the address
15803         space size before and after the the test.
15804         * tests/test-dprintf-posix2.c: Likewise.
15805         * tests/test-fprintf-posix3.sh: Update skip messages.
15806         * tests/test-dprintf-posix2.sh: Likewise.
15807         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15808         * modules/dprintf-posix-tests (Depends-on): Likewise.
15809         Reported by Bruce Korb <bkorb@gnu.org> and
15810         Gary V. Vaughan <gary@gnu.org>.
15811
15812 2011-01-18  Bruno Haible  <bruno@clisp.org>
15813
15814         get-rusage-as: Improvement for Cygwin.
15815         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15816         areas that are merely reserved.
15817
15818 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15819
15820         strftime: remove dependencies on multibyte modules
15821
15822         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15823         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15824         only if __osf__ is defined, and I suspect OSF doesn't need these
15825         other modules.  If my guess is wrong, we'll need to come up with a
15826         variant of strftime that doesn't need the multibyte modules.
15827
15828         I discovered this problem when attempting modify Emacs to use the
15829         strftime module.  With the previous gnulib, this caused Emacs to
15830         need 31 new files, ranging from lib/config.charset to
15831         m4/wint_t.m4.  This was overkill and I expect would be offputting
15832         to the Emacs maintainers.  After this change, only 6 new files are
15833         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15834         stdbool.m4, and tm_gmtoff.m4.
15835
15836         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15837         Suggested by Bruno Haible in
15838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15839         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15840         and do not check for wchar.h.
15841         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15842         (Depends-on): Remove mbrlen, mbsinit, wchar.
15843
15844 2011-01-18  Bruno Haible  <bruno@clisp.org>
15845
15846         Tests for module 'get-rusage-as'.
15847         * modules/get-rusage-as-tests: New file.
15848         * tests/test-get-rusage-as.c: New file.
15849
15850         New module 'get-rusage-as'.
15851         * modules/get-rusage-as: New file.
15852         * lib/resource-ext.h: New file.
15853         * lib/get-rusage-as.c: New file.
15854
15855 2011-01-17  Eric Blake  <eblake@redhat.com>
15856
15857         sigaction: relax license from LGPLv3+ to LGPLv2+
15858         * modules/sigaction (License): Relax to LGPLv2+.
15859
15860 2011-01-14  Bruno Haible  <bruno@clisp.org>
15861
15862         filemode: Make function declarations usable in C++ mode.
15863         * lib/filemode.h: Enclose function declarations in extern "C" block.
15864         Reported by John W. Eaton <jwe@gnu.org>.
15865
15866 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15867
15868         save-cwd: no longer include "xgetcwd.h"
15869         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15870         This avoids a compilation failure in projects that use save-cwd
15871         without also using the xgetcwd module.
15872
15873 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15874
15875         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15876         This is so that a program like Emacs, which needs only dtoastr,
15877         does not have to bother with distributing and compiling ftoastr
15878         and ldtoastr.
15879         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15880         * modules/dtoastr, modules/ldtoastr: New files.
15881         * modules/ftoastr: Now works just for 'float'.
15882         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15883         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15884         dtoastr.c, ldtoastr.c.
15885
15886 2011-01-11  Jim Meyering  <meyering@redhat.com>
15887
15888         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15889         There is no need to work around the lack of the fchdir function,
15890         since gnulib can now provide a replacement when required.
15891         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15892         * modules/save-cwd (Depends-on): Add fchdir.
15893
15894 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15895
15896         openat, save-cwd: avoid xmalloc
15897
15898         This removes a direct (but undocumented) dependency of openat on
15899         xalloc, along with an indirect dependency via save-cwd.  It also
15900         removes a dependency of save-cwd on xgetcwd, and thereby
15901         indirectly on xalloc.  This change causes the openat substitute
15902         to fall back on save_cwd when memory is tight, and for save_cwd to
15903         fail instead of dying when memory is tight, but that's good enough.
15904         Problem and initial idea for fix reported by Bastien Roucaries in
15905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15906
15907         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15908         xalloc.h (for xmalloc).
15909         (openat_proc_name): Use malloc, not xmalloc.
15910         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15911         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15912
15913         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15914         This avoids heap allocation for file names whose lengths are in
15915         the range 512..1023, with the upper bound increasing to at most
15916         4031 depending on the platform's PATH_MAX.  (We do not want
15917         pathmax.h here as it might supply a non-constant PATH_MAX.)
15918         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15919         Perhaps they should be moved to malloca.h?
15920         (OPENAT_BUFFER_SIZE): Use them.
15921
15922 2011-01-10  Bruno Haible  <bruno@clisp.org>
15923
15924         doc: Update users.txt.
15925         * users.txt: Add recutils.
15926
15927 2011-01-09  Karl Berry  <karl@gnu.org>
15928
15929         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15930
15931         * doc/configmake.texi: New file.
15932         * doc/gnulib.texi: Include it.
15933         * modules/configmake: Move documentation from here.
15934
15935 2011-01-09  Bruno Haible  <bruno@clisp.org>
15936
15937         Update to Unicode 6.0.0.
15938         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15939         (get_lbp): Update for Unicode 6.0.0.
15940         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15941         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15942         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15943         U+11001, U+11038..U+11046. Remove U+06DE.
15944         (uc_width): Fix bounds of planes.
15945         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15946         lib/uniwidth/width.c.
15947         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15948         trailing whitespace removed.
15949         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15950         without comments, but with the original copyright notice.
15951         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15952         * lib/unicase/ignorable.h: Likewise.
15953         * lib/unicase/tocasefold.h: Likewise.
15954         * lib/unicase/tolower.h: Likewise.
15955         * lib/unicase/totitle.h: Likewise.
15956         * lib/unicase/toupper.h: Likewise.
15957         * lib/unictype/bidi_of.h: Likewise.
15958         * lib/unictype/blocks.h: Likewise.
15959         * lib/unictype/categ_C.h: Likewise.
15960         * lib/unictype/categ_Cn.h: Likewise.
15961         * lib/unictype/categ_L.h: Likewise.
15962         * lib/unictype/categ_Ll.h: Likewise.
15963         * lib/unictype/categ_Lm.h: Likewise.
15964         * lib/unictype/categ_Lo.h: Likewise.
15965         * lib/unictype/categ_Lu.h: Likewise.
15966         * lib/unictype/categ_M.h: Likewise.
15967         * lib/unictype/categ_Mc.h: Likewise.
15968         * lib/unictype/categ_Me.h: Likewise.
15969         * lib/unictype/categ_Mn.h: Likewise.
15970         * lib/unictype/categ_N.h: Likewise.
15971         * lib/unictype/categ_Nd.h: Likewise.
15972         * lib/unictype/categ_No.h: Likewise.
15973         * lib/unictype/categ_P.h: Likewise.
15974         * lib/unictype/categ_Po.h: Likewise.
15975         * lib/unictype/categ_S.h: Likewise.
15976         * lib/unictype/categ_Sc.h: Likewise.
15977         * lib/unictype/categ_Sk.h: Likewise.
15978         * lib/unictype/categ_Sm.h: Likewise.
15979         * lib/unictype/categ_So.h: Likewise.
15980         * lib/unictype/categ_of.h: Likewise.
15981         * lib/unictype/combining.h: Likewise.
15982         * lib/unictype/ctype_alnum.h: Likewise.
15983         * lib/unictype/ctype_alpha.h: Likewise.
15984         * lib/unictype/ctype_graph.h: Likewise.
15985         * lib/unictype/ctype_lower.h: Likewise.
15986         * lib/unictype/ctype_print.h: Likewise.
15987         * lib/unictype/ctype_punct.h: Likewise.
15988         * lib/unictype/ctype_upper.h: Likewise.
15989         * lib/unictype/decdigit.h: Likewise.
15990         * lib/unictype/digit.h: Likewise.
15991         * lib/unictype/numeric.h: Likewise.
15992         * lib/unictype/pr_alphabetic.h: Likewise.
15993         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
15994         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
15995         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
15996         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
15997         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
15998         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
15999         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16000         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16001         * lib/unictype/pr_case_ignorable.h: Likewise.
16002         * lib/unictype/pr_cased.h: Likewise.
16003         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16004         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16005         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16006         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16007         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16008         * lib/unictype/pr_combining.h: Likewise.
16009         * lib/unictype/pr_composite.h: Likewise.
16010         * lib/unictype/pr_currency_symbol.h: Likewise.
16011         * lib/unictype/pr_decimal_digit.h: Likewise.
16012         * lib/unictype/pr_deprecated.h: Likewise.
16013         * lib/unictype/pr_format_control.h: Likewise.
16014         * lib/unictype/pr_grapheme_base.h: Likewise.
16015         * lib/unictype/pr_grapheme_extend.h: Likewise.
16016         * lib/unictype/pr_grapheme_link.h: Likewise.
16017         * lib/unictype/pr_id_continue.h: Likewise.
16018         * lib/unictype/pr_id_start.h: Likewise.
16019         * lib/unictype/pr_ideographic.h: Likewise.
16020         * lib/unictype/pr_lowercase.h: Likewise.
16021         * lib/unictype/pr_math.h: Likewise.
16022         * lib/unictype/pr_numeric.h: Likewise.
16023         * lib/unictype/pr_other_alphabetic.h: Likewise.
16024         * lib/unictype/pr_other_id_continue.h: Likewise.
16025         * lib/unictype/pr_other_math.h: Likewise.
16026         * lib/unictype/pr_punctuation.h: Likewise.
16027         * lib/unictype/pr_sentence_terminal.h: Likewise.
16028         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16029         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16030         * lib/unictype/pr_unified_ideograph.h: Likewise.
16031         * lib/unictype/pr_uppercase.h: Likewise.
16032         * lib/unictype/pr_xid_continue.h: Likewise.
16033         * lib/unictype/pr_xid_start.h: Likewise.
16034         * lib/unictype/scripts.h: Likewise.
16035         * lib/unictype/scripts_byname.gperf: Likewise.
16036         * lib/unictype/sy_java_ident.h: Likewise.
16037         * lib/unigbrk/gbrkprop.h: Likewise.
16038         * lib/unilbrk/lbrkprop1.h: Likewise.
16039         * lib/unilbrk/lbrkprop2.h: Likewise.
16040         * lib/uninorm/decomposition-table2.h: Likewise.
16041         * lib/uniwbrk/wbrkprop.h: Likewise.
16042         * tests/unicase/test-cased.c: Likewise.
16043         * tests/unicase/test-ignorable.c: Likewise.
16044         * tests/unicase/test-uc_tolower.c: Likewise.
16045         * tests/unicase/test-uc_totitle.c: Likewise.
16046         * tests/unicase/test-uc_toupper.c: Likewise.
16047         * tests/unictype/test-categ_C.c: Likewise.
16048         * tests/unictype/test-categ_Cn.c: Likewise.
16049         * tests/unictype/test-categ_L.c: Likewise.
16050         * tests/unictype/test-categ_Ll.c: Likewise.
16051         * tests/unictype/test-categ_Lm.c: Likewise.
16052         * tests/unictype/test-categ_Lo.c: Likewise.
16053         * tests/unictype/test-categ_Lu.c: Likewise.
16054         * tests/unictype/test-categ_M.c: Likewise.
16055         * tests/unictype/test-categ_Mc.c: Likewise.
16056         * tests/unictype/test-categ_Me.c: Likewise.
16057         * tests/unictype/test-categ_Mn.c: Likewise.
16058         * tests/unictype/test-categ_N.c: Likewise.
16059         * tests/unictype/test-categ_Nd.c: Likewise.
16060         * tests/unictype/test-categ_No.c: Likewise.
16061         * tests/unictype/test-categ_P.c: Likewise.
16062         * tests/unictype/test-categ_Po.c: Likewise.
16063         * tests/unictype/test-categ_S.c: Likewise.
16064         * tests/unictype/test-categ_Sc.c: Likewise.
16065         * tests/unictype/test-categ_Sk.c: Likewise.
16066         * tests/unictype/test-categ_Sm.c: Likewise.
16067         * tests/unictype/test-categ_So.c: Likewise.
16068         * tests/unictype/test-ctype_alnum.c: Likewise.
16069         * tests/unictype/test-ctype_alpha.c: Likewise.
16070         * tests/unictype/test-ctype_graph.c: Likewise.
16071         * tests/unictype/test-ctype_lower.c: Likewise.
16072         * tests/unictype/test-ctype_print.c: Likewise.
16073         * tests/unictype/test-ctype_punct.c: Likewise.
16074         * tests/unictype/test-ctype_upper.c: Likewise.
16075         * tests/unictype/test-decdigit.h: Likewise.
16076         * tests/unictype/test-digit.h: Likewise.
16077         * tests/unictype/test-numeric.h: Likewise.
16078         * tests/unictype/test-pr_alphabetic.c: Likewise.
16079         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16080         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16081         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16082         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16083         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16084         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16085         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16086         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16087         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16088         * tests/unictype/test-pr_cased.c: Likewise.
16089         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16090         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16091         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16092         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16093         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16094         * tests/unictype/test-pr_combining.c: Likewise.
16095         * tests/unictype/test-pr_composite.c: Likewise.
16096         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16097         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16098         * tests/unictype/test-pr_deprecated.c: Likewise.
16099         * tests/unictype/test-pr_format_control.c: Likewise.
16100         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16101         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16102         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16103         * tests/unictype/test-pr_id_continue.c: Likewise.
16104         * tests/unictype/test-pr_id_start.c: Likewise.
16105         * tests/unictype/test-pr_ideographic.c: Likewise.
16106         * tests/unictype/test-pr_lowercase.c: Likewise.
16107         * tests/unictype/test-pr_math.c: Likewise.
16108         * tests/unictype/test-pr_numeric.c: Likewise.
16109         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16110         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16111         * tests/unictype/test-pr_other_math.c: Likewise.
16112         * tests/unictype/test-pr_punctuation.c: Likewise.
16113         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16114         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16115         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16116         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16117         * tests/unictype/test-pr_uppercase.c: Likewise.
16118         * tests/unictype/test-pr_xid_continue.c: Likewise.
16119         * tests/unictype/test-pr_xid_start.c: Likewise.
16120         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16121         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16122         changes.
16123         * lib/unictype/categ_Cc.h: Likewise.
16124         * lib/unictype/categ_Cf.h: Likewise.
16125         * lib/unictype/categ_Co.h: Likewise.
16126         * lib/unictype/categ_Cs.h: Likewise.
16127         * lib/unictype/categ_Lt.h: Likewise.
16128         * lib/unictype/categ_Nl.h: Likewise.
16129         * lib/unictype/categ_Pc.h: Likewise.
16130         * lib/unictype/categ_Pd.h: Likewise.
16131         * lib/unictype/categ_Pe.h: Likewise.
16132         * lib/unictype/categ_Pf.h: Likewise.
16133         * lib/unictype/categ_Pi.h: Likewise.
16134         * lib/unictype/categ_Ps.h: Likewise.
16135         * lib/unictype/categ_Z.h: Likewise.
16136         * lib/unictype/categ_Zl.h: Likewise.
16137         * lib/unictype/categ_Zp.h: Likewise.
16138         * lib/unictype/categ_Zs.h: Likewise.
16139         * lib/unictype/ctype_blank.h: Likewise.
16140         * lib/unictype/ctype_cntrl.h: Likewise.
16141         * lib/unictype/ctype_digit.h: Likewise.
16142         * lib/unictype/ctype_space.h: Likewise.
16143         * lib/unictype/ctype_xdigit.h: Likewise.
16144         * lib/unictype/mirror.h: Likewise.
16145         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16146         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16147         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16148         * lib/unictype/pr_bidi_control.h: Likewise.
16149         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16150         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16151         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16152         * lib/unictype/pr_bidi_pdf.h: Likewise.
16153         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16154         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16155         * lib/unictype/pr_dash.h: Likewise.
16156         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16157         * lib/unictype/pr_diacritic.h: Likewise.
16158         * lib/unictype/pr_extender.h: Likewise.
16159         * lib/unictype/pr_hex_digit.h: Likewise.
16160         * lib/unictype/pr_hyphen.h: Likewise.
16161         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16162         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16163         * lib/unictype/pr_ignorable_control.h: Likewise.
16164         * lib/unictype/pr_iso_control.h: Likewise.
16165         * lib/unictype/pr_join_control.h: Likewise.
16166         * lib/unictype/pr_left_of_pair.h: Likewise.
16167         * lib/unictype/pr_line_separator.h: Likewise.
16168         * lib/unictype/pr_logical_order_exception.h: Likewise.
16169         * lib/unictype/pr_non_break.h: Likewise.
16170         * lib/unictype/pr_not_a_character.h: Likewise.
16171         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16172         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16173         * lib/unictype/pr_other_id_start.h: Likewise.
16174         * lib/unictype/pr_other_lowercase.h: Likewise.
16175         * lib/unictype/pr_other_uppercase.h: Likewise.
16176         * lib/unictype/pr_paired_punctuation.h: Likewise.
16177         * lib/unictype/pr_paragraph_separator.h: Likewise.
16178         * lib/unictype/pr_pattern_syntax.h: Likewise.
16179         * lib/unictype/pr_pattern_white_space.h: Likewise.
16180         * lib/unictype/pr_private_use.h: Likewise.
16181         * lib/unictype/pr_quotation_mark.h: Likewise.
16182         * lib/unictype/pr_radical.h: Likewise.
16183         * lib/unictype/pr_soft_dotted.h: Likewise.
16184         * lib/unictype/pr_space.h: Likewise.
16185         * lib/unictype/pr_titlecase.h: Likewise.
16186         * lib/unictype/pr_variation_selector.h: Likewise.
16187         * lib/unictype/pr_white_space.h: Likewise.
16188         * lib/unictype/pr_zero_width.h: Likewise.
16189         * lib/unictype/sy_c_ident.h: Likewise.
16190         * lib/unictype/sy_c_whitespace.h: Likewise.
16191         * lib/unictype/sy_java_whitespace.h: Likewise.
16192         * lib/uninorm/composition-table.gperf: Likewise.
16193         * lib/uninorm/decomposition-table1.h: Likewise.
16194         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16195         LB8.
16196         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16197         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16198         * modules/unictype/*: Bump version number of expected libunistring
16199         version.
16200
16201 2011-01-09  Bruno Haible  <bruno@clisp.org>
16202
16203         Update to Unicode 5.2.0.
16204         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16205         trailing whitespace removed.
16206
16207 2011-01-09  Bruno Haible  <bruno@clisp.org>
16208
16209         New Unicode character properties, from Unicode 5.2.0.
16210         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16211         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16212         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16213         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16214         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16215         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16216         uc_is_property_cased, uc_is_property_case_ignorable,
16217         uc_is_property_changes_when_lowercased,
16218         uc_is_property_changes_when_uppercased,
16219         uc_is_property_changes_when_titlecased,
16220         uc_is_property_changes_when_casefolded,
16221         uc_is_property_changes_when_casemapped): New declarations.
16222         * lib/unictype/pr_byname.gperf: Add the new properties.
16223         * modules/unictype/property-byname (Depends-on): Depend on the new
16224         properties modules.
16225         * modules/unictype/property-all (Depends-on): Likewise.
16226         * MODULES.html.sh (Unicode string functions): Add
16227         unictype/property-case-ignorable, unictype/property-cased,
16228         unictype/property-changes-when-casefolded,
16229         unictype/property-changes-when-casemapped,
16230         unictype/property-changes-when-lowercased,
16231         unictype/property-changes-when-titlecased,
16232         unictype/property-changes-when-uppercased.
16233
16234         New module 'unictype/property-changes-when-casemapped'.
16235         * modules/unictype/property-changes-when-casemapped: New file.
16236         * lib/unictype/pr_changes_when_casemapped.c: New file.
16237         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16238         generated by gen-uni-tables.
16239         * modules/unictype/property-changes-when-casemapped-tests: New file.
16240         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16241         automatically generated by gen-uni-tables.
16242
16243         New module 'unictype/property-changes-when-casefolded'.
16244         * modules/unictype/property-changes-when-casefolded: New file.
16245         * lib/unictype/pr_changes_when_casefolded.c: New file.
16246         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16247         generated by gen-uni-tables.
16248         * modules/unictype/property-changes-when-casefolded-tests: New file.
16249         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16250         automatically generated by gen-uni-tables.
16251
16252         New module 'unictype/property-changes-when-titlecased'.
16253         * modules/unictype/property-changes-when-titlecased: New file.
16254         * lib/unictype/pr_changes_when_titlecased.c: New file.
16255         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16256         generated by gen-uni-tables.
16257         * modules/unictype/property-changes-when-titlecased-tests: New file.
16258         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16259         automatically generated by gen-uni-tables.
16260
16261         New module 'unictype/property-changes-when-uppercased'.
16262         * modules/unictype/property-changes-when-uppercased: New file.
16263         * lib/unictype/pr_changes_when_uppercased.c: New file.
16264         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16265         generated by gen-uni-tables.
16266         * modules/unictype/property-changes-when-uppercased-tests: New file.
16267         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16268         automatically generated by gen-uni-tables.
16269
16270         New module 'unictype/property-changes-when-lowercased'.
16271         * modules/unictype/property-changes-when-lowercased: New file.
16272         * lib/unictype/pr_changes_when_lowercased.c: New file.
16273         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16274         generated by gen-uni-tables.
16275         * modules/unictype/property-changes-when-lowercased-tests: New file.
16276         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16277         automatically generated by gen-uni-tables.
16278
16279         New module 'unictype/property-case-ignorable'.
16280         * modules/unictype/property-case-ignorable: New file.
16281         * lib/unictype/pr_case_ignorable.c: New file.
16282         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16283         by gen-uni-tables.
16284         * modules/unictype/property-case-ignorable-tests: New file.
16285         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16286         generated by gen-uni-tables.
16287
16288         New module 'unictype/property-cased'.
16289         * modules/unictype/property-cased: New file.
16290         * lib/unictype/pr_cased.c: New file.
16291         * lib/unictype/pr_cased.h: New file, automatically generated by
16292         gen-uni-tables.
16293         * modules/unictype/property-cased-tests: New file.
16294         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16295         gen-uni-tables.
16296
16297 2011-01-09  Bruno Haible  <bruno@clisp.org>
16298
16299         Update to Unicode 5.2.0.
16300         * lib/gen-uni-tables.c (output_predicate, output_category,
16301         output_combclass, output_bidi_category, output_decimal_digit_test,
16302         output_decimal_digit, output_digit_test, output_digit,
16303         output_numeric_test, output_numeric, output_mirror, output_scripts,
16304         output_scripts_byname, output_blocks, output_ident_category): Fix
16305         comment header.
16306         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16307         get_wbp.
16308         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16309         items.
16310         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16311         Changes_When_Lowercased, Changes_When_Uppercased,
16312         Changes_When_Titlecased, Changes_When_Casefolded,
16313         Changes_When_Casemapped.
16314         (is_property_alphabetic, is_property_default_ignorable_code_point):
16315         Update for Unicode 5.2.0.
16316         (is_property_cased, is_property_case_ignorable,
16317         is_property_changes_when_lowercased,
16318         is_property_changes_when_uppercased,
16319         is_property_changes_when_titlecased,
16320         is_property_changes_when_casefolded,
16321         is_property_changes_when_casemapped): New functions.
16322         (output_properties): Output also the properties cased, case_ignorable,
16323         changes_when_lowercased, changes_when_uppercased,
16324         changes_when_titlecased, changes_when_casefolded,
16325         changes_when_casemapped.
16326         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16327         Unicode TR#11 revision 17 -> 19.
16328         (LBP_CP): New enumeration value.
16329         (LBP_*): Adjust values accordingly.
16330         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16331         TR#14 revision 22 -> 24.
16332         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16333         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16334         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16335         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16336         is_WBP_MIDLETTER.
16337         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16338         the code1 and code2 of each composition rule.
16339         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16340         * lib/unicase/ignorable.h: Likewise.
16341         * lib/unicase/tocasefold.h: Likewise.
16342         * lib/unicase/tolower.h: Likewise.
16343         * lib/unicase/totitle.h: Likewise.
16344         * lib/unicase/toupper.h: Likewise.
16345         * lib/unictype/bidi_of.h: Likewise.
16346         * lib/unictype/blocks.h: Likewise.
16347         * lib/unictype/categ_C.h: Likewise.
16348         * lib/unictype/categ_Cf.h: Likewise.
16349         * lib/unictype/categ_Cn.h: Likewise.
16350         * lib/unictype/categ_L.h: Likewise.
16351         * lib/unictype/categ_Ll.h: Likewise.
16352         * lib/unictype/categ_Lm.h: Likewise.
16353         * lib/unictype/categ_Lo.h: Likewise.
16354         * lib/unictype/categ_Lu.h: Likewise.
16355         * lib/unictype/categ_M.h: Likewise.
16356         * lib/unictype/categ_Mc.h: Likewise.
16357         * lib/unictype/categ_Mn.h: Likewise.
16358         * lib/unictype/categ_N.h: Likewise.
16359         * lib/unictype/categ_Nd.h: Likewise.
16360         * lib/unictype/categ_Nl.h: Likewise.
16361         * lib/unictype/categ_No.h: Likewise.
16362         * lib/unictype/categ_P.h: Likewise.
16363         * lib/unictype/categ_Pd.h: Likewise.
16364         * lib/unictype/categ_Po.h: Likewise.
16365         * lib/unictype/categ_S.h: Likewise.
16366         * lib/unictype/categ_Sc.h: Likewise.
16367         * lib/unictype/categ_So.h: Likewise.
16368         * lib/unictype/categ_of.h: Likewise.
16369         * lib/unictype/combining.h: Likewise.
16370         * lib/unictype/ctype_alnum.h: Likewise.
16371         * lib/unictype/ctype_alpha.h: Likewise.
16372         * lib/unictype/ctype_graph.h: Likewise.
16373         * lib/unictype/ctype_lower.h: Likewise.
16374         * lib/unictype/ctype_print.h: Likewise.
16375         * lib/unictype/ctype_punct.h: Likewise.
16376         * lib/unictype/ctype_upper.h: Likewise.
16377         * lib/unictype/decdigit.h: Likewise.
16378         * lib/unictype/digit.h: Likewise.
16379         * lib/unictype/numeric.h: Likewise.
16380         * lib/unictype/pr_alphabetic.h: Likewise.
16381         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16382         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16383         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16384         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16385         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16386         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16387         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16388         * lib/unictype/pr_combining.h: Likewise.
16389         * lib/unictype/pr_composite.h: Likewise.
16390         * lib/unictype/pr_currency_symbol.h: Likewise.
16391         * lib/unictype/pr_dash.h: Likewise.
16392         * lib/unictype/pr_decimal_digit.h: Likewise.
16393         * lib/unictype/pr_deprecated.h: Likewise.
16394         * lib/unictype/pr_diacritic.h: Likewise.
16395         * lib/unictype/pr_extender.h: Likewise.
16396         * lib/unictype/pr_grapheme_base.h: Likewise.
16397         * lib/unictype/pr_grapheme_extend.h: Likewise.
16398         * lib/unictype/pr_grapheme_link.h: Likewise.
16399         * lib/unictype/pr_id_continue.h: Likewise.
16400         * lib/unictype/pr_id_start.h: Likewise.
16401         * lib/unictype/pr_ideographic.h: Likewise.
16402         * lib/unictype/pr_ignorable_control.h: Likewise.
16403         * lib/unictype/pr_logical_order_exception.h: Likewise.
16404         * lib/unictype/pr_lowercase.h: Likewise.
16405         * lib/unictype/pr_numeric.h: Likewise.
16406         * lib/unictype/pr_other_alphabetic.h: Likewise.
16407         * lib/unictype/pr_punctuation.h: Likewise.
16408         * lib/unictype/pr_sentence_terminal.h: Likewise.
16409         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16410         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16411         * lib/unictype/pr_unified_ideograph.h: Likewise.
16412         * lib/unictype/pr_uppercase.h: Likewise.
16413         * lib/unictype/pr_xid_continue.h: Likewise.
16414         * lib/unictype/pr_xid_start.h: Likewise.
16415         * lib/unictype/pr_zero_width.h: Likewise.
16416         * lib/unictype/scripts.h: Likewise.
16417         * lib/unictype/scripts_byname.gperf: Likewise.
16418         * lib/unictype/sy_java_ident.h: Likewise.
16419         * lib/unigbrk/gbrkprop.h: Likewise.
16420         * lib/unilbrk/lbrkprop1.h: Likewise.
16421         * lib/unilbrk/lbrkprop2.h: Likewise.
16422         * lib/unilbrk/lbrktables.h: Likewise.
16423         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16424         LBP_CP. Implement rule LB30.
16425         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16426         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16427         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16428         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16429         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16430         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16431         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16432         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16433         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16434         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16435         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16436         bits instead of 16 bits in the code1 and code2 of each composition
16437         rule.
16438         (uc_composition): Update for Unicode 5.2.0.
16439         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16440         * lib/uninorm/decomposition-table2.h: Likewise.
16441         * lib/uniwbrk/wbrkprop.h: Likewise.
16442         * tests/unicase/test-cased.c: Likewise.
16443         * tests/unicase/test-ignorable.c: Likewise.
16444         * tests/unicase/test-uc_tolower.c: Likewise.
16445         * tests/unicase/test-uc_totitle.c: Likewise.
16446         * tests/unicase/test-uc_toupper.c: Likewise.
16447         * tests/unictype/test-categ_C.c: Likewise.
16448         * tests/unictype/test-categ_Cf.c: Likewise.
16449         * tests/unictype/test-categ_Cn.c: Likewise.
16450         * tests/unictype/test-categ_L.c: Likewise.
16451         * tests/unictype/test-categ_Ll.c: Likewise.
16452         * tests/unictype/test-categ_Lm.c: Likewise.
16453         * tests/unictype/test-categ_Lo.c: Likewise.
16454         * tests/unictype/test-categ_Lu.c: Likewise.
16455         * tests/unictype/test-categ_M.c: Likewise.
16456         * tests/unictype/test-categ_Mc.c: Likewise.
16457         * tests/unictype/test-categ_Mn.c: Likewise.
16458         * tests/unictype/test-categ_N.c: Likewise.
16459         * tests/unictype/test-categ_Nd.c: Likewise.
16460         * tests/unictype/test-categ_Nl.c: Likewise.
16461         * tests/unictype/test-categ_No.c: Likewise.
16462         * tests/unictype/test-categ_P.c: Likewise.
16463         * tests/unictype/test-categ_Pd.c: Likewise.
16464         * tests/unictype/test-categ_Po.c: Likewise.
16465         * tests/unictype/test-categ_S.c: Likewise.
16466         * tests/unictype/test-categ_Sc.c: Likewise.
16467         * tests/unictype/test-categ_So.c: Likewise.
16468         * tests/unictype/test-ctype_alnum.c: Likewise.
16469         * tests/unictype/test-ctype_alpha.c: Likewise.
16470         * tests/unictype/test-ctype_graph.c: Likewise.
16471         * tests/unictype/test-ctype_lower.c: Likewise.
16472         * tests/unictype/test-ctype_print.c: Likewise.
16473         * tests/unictype/test-ctype_punct.c: Likewise.
16474         * tests/unictype/test-ctype_upper.c: Likewise.
16475         * tests/unictype/test-decdigit.h: Likewise.
16476         * tests/unictype/test-digit.h: Likewise.
16477         * tests/unictype/test-numeric.h: Likewise.
16478         * tests/unictype/test-pr_alphabetic.c: Likewise.
16479         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16480         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16481         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16482         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16483         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16484         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16485         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16486         * tests/unictype/test-pr_combining.c: Likewise.
16487         * tests/unictype/test-pr_composite.c: Likewise.
16488         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16489         * tests/unictype/test-pr_dash.c: Likewise.
16490         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16491         * tests/unictype/test-pr_deprecated.c: Likewise.
16492         * tests/unictype/test-pr_diacritic.c: Likewise.
16493         * tests/unictype/test-pr_extender.c: Likewise.
16494         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16495         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16496         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16497         * tests/unictype/test-pr_id_continue.c: Likewise.
16498         * tests/unictype/test-pr_id_start.c: Likewise.
16499         * tests/unictype/test-pr_ideographic.c: Likewise.
16500         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16501         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16502         * tests/unictype/test-pr_lowercase.c: Likewise.
16503         * tests/unictype/test-pr_numeric.c: Likewise.
16504         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16505         * tests/unictype/test-pr_punctuation.c: Likewise.
16506         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16507         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16508         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16509         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16510         * tests/unictype/test-pr_uppercase.c: Likewise.
16511         * tests/unictype/test-pr_xid_continue.c: Likewise.
16512         * tests/unictype/test-pr_xid_start.c: Likewise.
16513         * tests/unictype/test-pr_zero_width.c: Likewise.
16514         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16515         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16516         changed behaviour: line breaking is now disallowed between a letter
16517         or '=' and '('.
16518         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16519         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16520         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16521         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16522         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16523         lib/uniwidth/width.c.
16524         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16525         without comments, but with the original copyright notice.
16526         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16527         changes.
16528         * lib/unictype/categ_Cc.h: Likewise.
16529         * lib/unictype/categ_Co.h: Likewise.
16530         * lib/unictype/categ_Cs.h: Likewise.
16531         * lib/unictype/categ_Lt.h: Likewise.
16532         * lib/unictype/categ_Me.h: Likewise.
16533         * lib/unictype/categ_Pc.h: Likewise.
16534         * lib/unictype/categ_Pe.h: Likewise.
16535         * lib/unictype/categ_Pf.h: Likewise.
16536         * lib/unictype/categ_Pi.h: Likewise.
16537         * lib/unictype/categ_Ps.h: Likewise.
16538         * lib/unictype/categ_Sk.h: Likewise.
16539         * lib/unictype/categ_Sm.h: Likewise.
16540         * lib/unictype/categ_Z.h: Likewise.
16541         * lib/unictype/categ_Zl.h: Likewise.
16542         * lib/unictype/categ_Zp.h: Likewise.
16543         * lib/unictype/categ_Zs.h: Likewise.
16544         * lib/unictype/ctype_blank.h: Likewise.
16545         * lib/unictype/ctype_cntrl.h: Likewise.
16546         * lib/unictype/ctype_digit.h: Likewise.
16547         * lib/unictype/ctype_space.h: Likewise.
16548         * lib/unictype/ctype_xdigit.h: Likewise.
16549         * lib/unictype/mirror.h: Likewise.
16550         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16551         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16552         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16553         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16554         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16555         * lib/unictype/pr_bidi_control.h: Likewise.
16556         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16557         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16558         * lib/unictype/pr_bidi_pdf.h: Likewise.
16559         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16560         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16561         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16562         * lib/unictype/pr_format_control.h: Likewise.
16563         * lib/unictype/pr_hex_digit.h: Likewise.
16564         * lib/unictype/pr_hyphen.h: Likewise.
16565         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16566         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16567         * lib/unictype/pr_iso_control.h: Likewise.
16568         * lib/unictype/pr_join_control.h: Likewise.
16569         * lib/unictype/pr_left_of_pair.h: Likewise.
16570         * lib/unictype/pr_line_separator.h: Likewise.
16571         * lib/unictype/pr_math.h: Likewise.
16572         * lib/unictype/pr_non_break.h: Likewise.
16573         * lib/unictype/pr_not_a_character.h: Likewise.
16574         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16575         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16576         * lib/unictype/pr_other_id_continue.h: Likewise.
16577         * lib/unictype/pr_other_id_start.h: Likewise.
16578         * lib/unictype/pr_other_lowercase.h: Likewise.
16579         * lib/unictype/pr_other_math.h: Likewise.
16580         * lib/unictype/pr_other_uppercase.h: Likewise.
16581         * lib/unictype/pr_paired_punctuation.h: Likewise.
16582         * lib/unictype/pr_paragraph_separator.h: Likewise.
16583         * lib/unictype/pr_pattern_syntax.h: Likewise.
16584         * lib/unictype/pr_pattern_white_space.h: Likewise.
16585         * lib/unictype/pr_private_use.h: Likewise.
16586         * lib/unictype/pr_quotation_mark.h: Likewise.
16587         * lib/unictype/pr_radical.h: Likewise.
16588         * lib/unictype/pr_soft_dotted.h: Likewise.
16589         * lib/unictype/pr_space.h: Likewise.
16590         * lib/unictype/pr_titlecase.h: Likewise.
16591         * lib/unictype/pr_variation_selector.h: Likewise.
16592         * lib/unictype/pr_white_space.h: Likewise.
16593         * lib/unictype/sy_c_ident.h: Likewise.
16594         * lib/unictype/sy_c_whitespace.h: Likewise.
16595         * lib/unictype/sy_java_whitespace.h: Likewise.
16596         * modules/uni*/*: Bump version number of expected libunistring version.
16597         Reported by Simon Josefsson.
16598
16599 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16600
16601         useless-if-before-free: fix typo in --help and make the internal,
16602         automatic version date update process work once again.
16603         --help output contained a NUL character instead of the
16604         backslash-zero that was intended.  Also, the "must lie within
16605         the first 8 lines" line is on line 9, and hence not getting
16606         automatically updated.
16607         * build-aux/useless-if-before-free: Fix the former by adding a
16608         backslash, and the latter by condensing the three lines of what-it-does
16609         to a single line, leaving one line of slack for the future.
16610
16611 2011-01-09  Bruno Haible  <bruno@clisp.org>
16612
16613         uniwidth/width: Fix width of U+1D173..U+1D17A.
16614         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16615         symbolic_width, output_width_property_test): New functions.
16616         (main): Invoke output_nonspacing_property, output_width_property_test.
16617         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16618         U+1D173..U+1D17A.
16619         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16620         1.
16621         * modules/uniwidth/*: Bump version number of expected libunistring
16622         version.
16623         * modules/unilbrk/*: Likewise.
16624
16625 2011-01-08  Bruno Haible  <bruno@clisp.org>
16626
16627         uninorm tests: Preserve copyright of Unicode data file.
16628         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16629         Mention modifications.
16630
16631 2011-01-08  Bruno Haible  <bruno@clisp.org>
16632
16633         gen-uni-tables: Prepare for Unicode 5.2.0.
16634         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16635         (debug_output_lbp, output_lbp): Update.
16636
16637 2011-01-08  Bruno Haible  <bruno@clisp.org>
16638
16639         unilbrk: Clarify gen-uni-tables.c code.
16640         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16641         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16642         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16643
16644 2011-01-07  Bruno Haible  <bruno@clisp.org>
16645
16646         strtod: Restore errno when successfully parsing Infinity or NaN.
16647         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16648         restore the original errno.
16649
16650 2011-01-07  Bruno Haible  <bruno@clisp.org>
16651
16652         remove test: Avoid failure on HP-UX 11.
16653         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16654
16655 2011-01-07  Bruno Haible  <bruno@clisp.org>
16656
16657         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16658         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16659         error code.
16660
16661 2011-01-07  Pádraig Brady <P@draigBrady.com>
16662
16663         ignore-value: fixup comments, and add Eric Blake
16664         as an author since he rewrote the macros.
16665         * lib/ignore-value.h (ignore_value):  State that
16666         we now support aggregates.  Also specify exactly
16667         when the GCC warn_unused_result feature was added.
16668
16669 2011-01-06  Eric Blake  <eblake@redhat.com>
16670
16671         ignore-value: support aggregate types
16672         * lib/ignore-value.h (ignore_value): Provide separate gcc
16673         definition.
16674         * modules/ignore-value-tests: New test module.
16675         * tests/test-ignore-value.c: New test.
16676
16677         maint.mk: improve sc_prohibit_strcmp regex
16678         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16679         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16680         definition of STRNEQ.
16681
16682         signal: work around Haiku issue with SIGBUS
16683         * lib/siglist.h: Add comment.
16684         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16685         strsignal's favoring of SIGSEGV.
16686         * tests/test-signal.c (main): Avoid test failure.
16687         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16688         Reported by Scott McCreary.
16689
16690         maint.mk: add pre-release check to ensure submodule commits are public
16691         * top/maint.mk (public-submodule-commit): New rule.
16692         (submodule-checks): New variable.
16693         (alpha beta stable): Depend on the variable.
16694
16695 2011-01-05  Pádraig Brady <P@draigBrady.com>
16696         and Jim Meyering  <meyering@redhat.com>
16697
16698         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16699         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16700         (ATTRIBUTE_DEPRECATED): Define.
16701         (_ignore_case): New function.
16702         (ignore_value): New macro, to replace the old function.
16703         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16704         * modules/ignore-value (Depends-on): Add stdint.
16705
16706 2011-01-04  Eric Blake  <eblake@redhat.com>
16707
16708         doc: regenerate INSTALL
16709         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16710         @firstparagraphindent support, now that autoconf dropped it.
16711         (INSTALL_PRELUDE): Reinstate old macro.
16712         * doc/install.texi: Resync from autoconf.
16713         * doc/INSTALL: Reflect recent autoconf update.
16714         * doc/INSTALL.ISO: Likewise.
16715         * doc/INSTALL.UTF-8: Likewise.
16716         Reported by Karl Berry.
16717
16718 2011-01-04  Bruce Korb  <address@hidden>
16719
16720         git-version-gen: avoid a sub-shell
16721         * build-aux/git-version-gen: Redirect stderr in `...` via
16722         "exec 2>...", rather than via an added sub-shell.
16723
16724 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16725
16726         git-version-gen: use (...) rather than sh -c '...'
16727         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16728         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16729
16730 2011-01-03  Jim Meyering  <meyering@redhat.com>
16731
16732         git-version-gen: convert leading TABs to spaces
16733         * build-aux/git-version-gen: Expand leading TABs.
16734
16735         git-version-gen: handle failed "git rev-list"
16736         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16737         from git and proceeding as if it had succeeded but printed no SHA1
16738         checksums, suppress the diagnostic and handle the failure.
16739         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16740
16741         git-version-gen: include command name in one more diagnostic
16742         * build-aux/git-version-gen: When the required .tarball-version file
16743         was missing or unreadable, you might see the diagnostic from "cat",
16744         but no trace of the name of the invoking script.  Now, you still see
16745         the diagnostic from cat, but also get one from "git-version-gen: ".
16746         Inspired by a patch from Bruce Korb.
16747
16748         update-copyright: adjust test to match changed code
16749         * tests/test-update-copyright.sh: Change test's expected output
16750         to match new actual output.
16751
16752 2011-01-02  Bruno Haible  <bruno@clisp.org>
16753
16754         getlogin_r: Avoid test failure on HP-UX 11.
16755         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16756         ERANGE when the second argument is zero.
16757         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16758         portability problem.
16759
16760 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16761
16762         * build-aux/update-copyright: doc Simon's changes
16763
16764 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16765
16766         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16767         environment variable.
16768
16769 2011-01-02  Bruno Haible  <bruno@clisp.org>
16770
16771         unigbrk: Avoid gcc warnings.
16772         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16773         unused variable.
16774         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16775         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16776         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16777         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16778         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16779         Change type of first argument to 'const char *'.
16780         (main): Remove unused variable.
16781         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16782         type of first argument to 'const char *'.
16783         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16784         Likewise.
16785         (main): Change type of variable 's'.
16786         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16787         to 'int'.
16788
16789 2011-01-02  Bruno Haible  <bruno@clisp.org>
16790
16791         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16792         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16793         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16794         bug.
16795         * lib/pwrite.c: Undo 2010-12-31 patch.
16796         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16797
16798 2011-01-02  Bruno Haible  <bruno@clisp.org>
16799
16800         pread: Fix test whether it works.
16801         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16802
16803 2011-01-02  Bruno Haible  <bruno@clisp.org>
16804
16805         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16806         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16807         ends in "6". Don't require a specific month name. Try also the locale
16808         names found on HP-UX 11 and Solaris 7.
16809
16810 2011-01-02  Bruno Haible  <bruno@clisp.org>
16811
16812         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16813         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16814         C linkage.
16815         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16816
16817 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16818
16819         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16820         for consistency, since the "cluster" term is not used elsewhere.
16821         * lib/unigbrk.in.h: Update name.
16822         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16823         * lib/unigbrk/u16-grapheme-next.c: Update name.
16824         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16825         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16826         * lib/unigbrk/u32-grapheme-next.c: Update name.
16827         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16828         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16829         * lib/unigbrk/u8-grapheme-next.c: Update name.
16830         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16831         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16832         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16833         Suggested by Bruno Haible.
16834
16835 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16836
16837         Remove module 'u8-grapheme-len' as too redundant with
16838         'u8-grapheme-next'.
16839         * modules/unigbrk/u8-grapheme-len: Delete file.
16840         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16841         * lib/unigbrk.in.h: Remove prototype for deleted function.
16842         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16843         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16844
16845         Remove module 'u16-grapheme-len' as too redundant with
16846         'u16-grapheme-next'.
16847         * modules/unigbrk/u16-grapheme-len: Delete file.
16848         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16849         * lib/unigbrk.in.h: Remove prototype for deleted function.
16850         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16851         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16852
16853         Remove module 'u32-grapheme-len' as too redundant with
16854         'u32-grapheme-next'.
16855         * modules/unigbrk/u32-grapheme-len: Delete file.
16856         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16857         * lib/unigbrk.in.h: Remove prototype for deleted function.
16858         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16859         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16860
16861         Suggested by Bruno Haible.
16862
16863 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16864
16865         * unigbrk.in.h: Fix typo: "ben" => "been".
16866         Reported by Bruno Haible.
16867
16868 2011-01-01  Jim Meyering  <meyering@redhat.com>
16869
16870         maint: update almost all copyright ranges to include 2011
16871         Run the new "make update-copyright" rule.
16872
16873 2011-01-01  Jim Meyering  <meyering@redhat.com>
16874
16875         maint: update-copyright: exempt doc/INSTALL*
16876         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16877         since they are generated.  Suggested by Bruno Haible.
16878
16879 2011-01-01  Jim Meyering  <meyering@redhat.com>
16880
16881         maint: refine the update-copyright rule
16882         * Makefile (update-copyright): Also exclude any file that includes
16883         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16884         code that merely generates the comment.
16885
16886 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16887
16888         New module 'u8-grapheme-len'.
16889         * modules/unigbrk/u8-grapheme-len: New file.
16890         * modules/unigbrk/u8-grapheme-len-tests: New file.
16891         * lib/unigbrk.in.h: Add prototype for new function.
16892         * lib/unigbrk/u8-grapheme-len.c: New file.
16893         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16894
16895         New module 'u16-grapheme-len'.
16896         * modules/unigbrk/u16-grapheme-len: New file.
16897         * modules/unigbrk/u16-grapheme-len-tests: New file.
16898         * lib/unigbrk.in.h: Add prototype for new function.
16899         * lib/unigbrk/u16-grapheme-len.c: New file.
16900         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16901
16902         New module 'u32-grapheme-len'.
16903         * modules/unigbrk/u32-grapheme-len: New file.
16904         * modules/unigbrk/u32-grapheme-len-tests: New file.
16905         * lib/unigbrk.in.h: Add prototype for new function.
16906         * lib/unigbrk/u32-grapheme-len.c: New file.
16907         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16908
16909         New module 'u8-grapheme-next'.
16910         * modules/unigbrk/u8-grapheme-next: New file.
16911         * modules/unigbrk/u8-grapheme-next-tests: New file.
16912         * lib/unigbrk.in.h: Add prototype for new function.
16913         * lib/unigbrk/u8-grapheme-next.c: New file.
16914         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16915
16916         New module 'u16-grapheme-next'.
16917         * modules/unigbrk/u16-grapheme-next: New file.
16918         * modules/unigbrk/u16-grapheme-next-tests: New file.
16919         * lib/unigbrk.in.h: Add prototype for new function.
16920         * lib/unigbrk/u16-grapheme-next.c: New file.
16921         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16922
16923         New module 'u32-grapheme-next'.
16924         * modules/unigbrk/u32-grapheme-next: New file.
16925         * modules/unigbrk/u32-grapheme-next-tests: New file.
16926         * lib/unigbrk.in.h: Add prototype for new function.
16927         * lib/unigbrk/u32-grapheme-next.c: New file.
16928         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16929
16930         New module 'u8-grapheme-prev'.
16931         * modules/unigbrk/u8-grapheme-prev: New file.
16932         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16933         * lib/unigbrk.in.h: Add prototype for new function.
16934         * lib/unigbrk/u8-grapheme-prev.c: New file.
16935         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16936
16937         New module 'u16-grapheme-prev'.
16938         * modules/unigbrk/u16-grapheme-prev: New file.
16939         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16940         * lib/unigbrk.in.h: Add prototype for new function.
16941         * lib/unigbrk/u16-grapheme-prev.c: New file.
16942         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16943
16944         New module 'u32-grapheme-prev'.
16945         * modules/unigbrk/u32-grapheme-prev: New file.
16946         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16947         * lib/unigbrk.in.h: Add prototype for new function.
16948         * lib/unigbrk/u32-grapheme-prev.c: New file.
16949         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16950
16951         New module 'u8-grapheme-breaks'.
16952         * modules/unigbrk/u8-grapheme-breaks: New file.
16953         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16954         * lib/unigbrk.in.h: Add prototype for new function.
16955         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16956         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16957
16958         New module 'u16-grapheme-breaks'.
16959         * modules/unigbrk/u16-grapheme-breaks: New file.
16960         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16961         * lib/unigbrk.in.h: Add prototype for new function.
16962         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16963         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16964
16965         New module 'u32-grapheme-breaks'.
16966         * modules/unigbrk/u32-grapheme-breaks: New file.
16967         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16968         * lib/unigbrk.in.h: Add prototype for new function.
16969         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16970         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16971
16972         New module 'ulc-grapheme-breaks'.
16973         * modules/unigbrk/ulc-grapheme-breaks: New file.
16974         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16975         * m4/locale-ar.m4: New file.
16976         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16977         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16978         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16979
16980 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16981
16982         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16983         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16984         modified how this file was generated before I initially submitted
16985         the module, but failed to regenerate it.  This meant that several
16986         of the level2 entries were wrong.
16987         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
16988         Remove the division-by-2 that is folded into the table now that
16989         gbrkprop.h has been regenerated properly.  Now -1 entries are
16990         handled correctly.
16991
16992         New module 'unigbrk/uc-gbrk-prop-tests'.
16993         * modules/unigbrk/uc-gbrk-prop-tests: New file.
16994         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
16995         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
16996         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
16997
16998 2011-01-01  Bruno Haible  <bruno@clisp.org>
16999
17000         Avoid use of hexadecimal escapes.
17001         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17002         instead of hexadecimal escapes.
17003
17004 2011-01-01  Jim Meyering  <meyering@redhat.com>
17005
17006         maint: new rule to update copyright year ranges
17007         * Makefile (update-copyright): New rule.
17008
17009         maint: indent with TABs in Makefile
17010         * Makefile: Expand leading sequences of spaces to TABs
17011
17012         version-etc: update the copyright year it reports
17013         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17014
17015 2010-12-31  Bruno Haible  <bruno@clisp.org>
17016
17017         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17018         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17019         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17020         zero.
17021
17022 2010-12-31  Bruno Haible  <bruno@clisp.org>
17023
17024         pwrite: Work around HP-UX 11.11 bug.
17025         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17026         works and set REPLACE_PWRITE if not.
17027         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17028         function.
17029         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17030
17031 2010-12-31  Bruno Haible  <bruno@clisp.org>
17032
17033         pread: Work around HP-UX 11 bugs.
17034         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17035         and set REPLACE_PREAD if not.
17036         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17037
17038 2010-12-31  Eric Blake  <eblake@redhat.com>
17039
17040         nl_langinfo: fix YESEXPR on Irix 6.5
17041         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17042         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17043         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17044         it.
17045
17046 2010-12-31  Bruno Haible  <bruno@clisp.org>
17047
17048         iconv: Document HP-UX 11 bug.
17049         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17050
17051 2010-12-31  Bruno Haible  <bruno@clisp.org>
17052
17053         ldexpl: Fix link error on HP-UX 11.
17054         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17055         LDEXPL_LIBM, using $ISNANL_LIBM.
17056
17057 2010-12-31  Eric Blake  <eblake@redhat.com>
17058
17059         ftello: avoid compilation failure with SunStudio c89
17060         * lib/ftello.c (ftello): Use lseek, not llseek.
17061
17062         tests: avoid failing coreutils tests on cygwin
17063         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17064         (create_exe_shims_): Return 0 when skipping.
17065
17066 2010-12-31  Bruno Haible  <bruno@clisp.org>
17067
17068         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17069         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17070
17071 2010-12-31  Bruno Haible  <bruno@clisp.org>
17072
17073         waitpid: Fix link error in C++ mode.
17074         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17075
17076 2010-12-31  Bruno Haible  <bruno@clisp.org>
17077
17078         isnan: Use GCC built-ins when possible.
17079         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17080         __builtin_isnan.
17081         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17082         (isnan): Define using GCC built-ins for GCC >= 4.0.
17083
17084 2010-12-31  Bruno Haible  <bruno@clisp.org>
17085
17086         isnand: Fix mistake.
17087         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17088         __builtin_isnand.
17089
17090 2010-12-31  Bruno Haible  <bruno@clisp.org>
17091
17092         open: Avoid C++ error on HP-UX 11.
17093         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17094
17095 2010-12-31  Bruno Haible  <bruno@clisp.org>
17096
17097         time_r: Add missing declarations on HP-UX 11.
17098         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17099         instead of HAVE_LOCALTIME_R.
17100         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17101         HAVE_LOCALTIME_R always.
17102         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17103         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17104         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17105         HAVE_LOCALTIME_R.
17106         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17107         * doc/posix-functions/localtime_r.texi: Likewise.
17108
17109 2010-12-29  Eric Blake  <eblake@redhat.com>
17110
17111         mountlist: tweak previous commit
17112         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17113         Reported by Paul Eggert.
17114
17115         mountlist: fix local drive detection on cygwin
17116         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17117         that works for cygwin.
17118
17119 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17120
17121         ftoastr, snprintf: ftoastr + snprintf module
17122         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17123         since the snprintf module now should be good enough here.
17124         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17125         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17126         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17127         GNULIB_SNPRINTF only for the test directory, and the latter
17128         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17129         seems to suffice by itself.
17130
17131 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17132
17133         alloca: one step towards thread-safety
17134         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17135         need for a static variable.  All callers changed.  This does not
17136         make the alloca replacement thread-safe, but it's one step.
17137
17138         tests: minor indenting change
17139         * tests/init.sh: Sync from coreutils housekeeping patch
17140         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17141         to keep lines within 80 columns.
17142
17143 2010-12-28  Jim Meyering  <meyering@redhat.com>
17144
17145         regex: don't infloop on persistent failing calloc
17146         * lib/regexec.c (build_trtable): Return failure indication upon
17147         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17148         In glibc, this was fixed for version 2.13:
17149         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17150
17151 2010-12-28  Bruno Haible  <bruno@clisp.org>
17152             Paul Eggert <eggert@cs.ucla.edu>
17153
17154         linkat: Make implementation robust against system behaviour variations.
17155         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17156         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17157         way, and to -2 if it needs a generic runtime test.
17158         * lib/linkat.c (solaris_optimized_link_immediate,
17159         solaris_optimized_link_follow): New functions.
17160         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17161         (check_same_link): Use it.
17162
17163 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17164
17165         New module 'unigbrk/base'.
17166         * modules/unigbrk/base: New file.
17167         * lib/unigbrk.in.h: New file.
17168
17169         New module 'unigbrk/uc-gbrk-prop'.
17170         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17171         * modules/unigbrk/uc-gbrk-prop: New file.
17172         * lib/unigbrk/gbrkprop.h: New file.
17173         * lib/unigbrk/uc-gbrk-prop.c: New file.
17174
17175         New module 'unigbrk/uc-is-grapheme-break'.
17176         * modules/unigbrk/uc-is-grapheme-break: New file.
17177         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17178         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17179         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17180         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17181         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17182
17183         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17184
17185 2010-12-27  Bruno Haible  <bruno@clisp.org>
17186
17187         linkat test: Avoid failure on Solaris 11 2010-11.
17188         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17189
17190 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17191
17192         utimens: work around glibc rounding bug on more platforms
17193         * lib/utimens.c (fdutimens): Work around rounding bug even if
17194         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17195         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17196
17197 2010-12-27  Bruno Haible  <bruno@clisp.org>
17198
17199         select tests: Improve comments.
17200         * tests/test-select.c (do_select): Add comments.
17201
17202 2010-12-27  Bruno Haible  <bruno@clisp.org>
17203
17204         select tests: Safer way of handling timeout.
17205         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17206         at every invocation.
17207
17208 2010-12-27  Bruno Haible  <bruno@clisp.org>
17209
17210         select tests: Use 'bool' where appropriate.
17211         * tests/test-select.c (connect_to_socket): Change argument type to
17212         'bool'.
17213
17214 2010-12-27  Bruno Haible  <bruno@clisp.org>
17215
17216         select tests: Use existing modules.
17217         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17218         (configure.ac): Don't test for unistd.h.
17219         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17220         declared in <unistd.h>.
17221
17222 2010-12-27  Bruno Haible  <bruno@clisp.org>
17223
17224         mbrtowc: Work around a Solaris 7 bug.
17225         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17226         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17227         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17228         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17229         MBRTOWC_NULL_ARG1_BUG.
17230         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17231         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17232         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17233         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17234
17235 2010-12-27  Jim Meyering  <meyering@redhat.com>
17236
17237         read-file.c: tweak syntax
17238         * lib/read-file.c (fread_file): Remove space after "*" in function
17239         definitions.
17240
17241 2010-12-27  Bruno Haible  <bruno@clisp.org>
17242
17243         times test: Avoid gcc warnings on OSF/1.
17244         * tests/test-times.c (main): Cast printf arguments from clock_t to
17245         'long int'.
17246
17247 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17248
17249         utimens: work around glibc rounding bug on older Linux kernels
17250         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17251         on Linux with a glibc whose utimes might not work, then work
17252         around a longstanding glibc bug involving rounding rather than
17253         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17254         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17255
17256 2010-12-26  Bruno Haible  <bruno@clisp.org>
17257
17258         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17259         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17260         _GL_CXXALIAS_SYS.
17261         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17262
17263 2010-12-26  Bruno Haible  <bruno@clisp.org>
17264
17265         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17266         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17267         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17268         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17269         looking for the declaration.
17270         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17271         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17272         problem.
17273         * doc/posix-functions/inet_pton.texi: Likewise.
17274
17275 2010-12-26  Bruno Haible  <bruno@clisp.org>
17276
17277         arpa_inet: Use the common idioms with C++ support.
17278         * lib/arpa_inet.in.h: Include c++defs.h.
17279         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17280         support.
17281         * modules/arpa_inet (Depends-on): Add c++defs.
17282         (Makefile.am): Substitute the contents of c++defs.h.
17283         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17284         * modules/arpa_inet-c++-tests: New file.
17285         * tests/test-arpa_inet-c++.cc: New file.
17286
17287 2010-12-25  Bruno Haible  <bruno@clisp.org>
17288
17289         Fix more C++ link errors on Solaris 8.
17290         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17291         $(LIB_EACCESS).
17292         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17293         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17294         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17295         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17296         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17297
17298 2010-12-25  Bruno Haible  <bruno@clisp.org>
17299
17300         printf-posix: Fix link error when a non-GCC compiler is used.
17301         * lib/stdio.in.h (printf): When not using GCC, override printf
17302         correctly.
17303         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17304
17305 2010-12-25  Bruno Haible  <bruno@clisp.org>
17306
17307         strerror_r-posix: Update doc.
17308         * doc/posix-functions/strerror_r.texi: Update doc about the return
17309         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17310
17311 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17312
17313         utimens: simplify the logic of the previous change
17314         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17315         This should not affect whether the test succeeds or fails.
17316
17317         utimens: configure better on hosts with NFS clock skew
17318         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17319         uses the clock of the local host.  It might use the clock of the
17320         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17321         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17322
17323 2010-12-25  Bruno Haible  <bruno@clisp.org>
17324
17325         ptsname test: Avoid failure on Solaris.
17326         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17327         open a pseudo-terminal; don't use BSD-style ptys.
17328         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17329
17330 2010-12-25  Bruno Haible  <bruno@clisp.org>
17331
17332         ptsname: Avoid ERANGE failure on some systems.
17333         * lib/ptsname.c (buffer): Increase size.
17334
17335 2010-12-25  Bruno Haible  <bruno@clisp.org>
17336
17337         rename, renameat: Avoid test failures at NFS mounted locations.
17338         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17339         so that subsequent mkdir calls succeed.
17340
17341 2010-12-25  Bruno Haible  <bruno@clisp.org>
17342
17343         iswblank: Fix C++ link error on Solaris 8.
17344         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17345         _GL_FUNCDECL_SYS.
17346
17347 2010-12-25  Bruno Haible  <bruno@clisp.org>
17348
17349         unistd: Fix C++ link error on Solaris 8.
17350         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17351
17352 2010-12-25  Bruno Haible  <bruno@clisp.org>
17353
17354         readlink doc: Mention an old glibc bug.
17355         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17356
17357 2010-12-25  Bruno Haible  <bruno@clisp.org>
17358
17359         fcntl-h: Fix for use of C++ on glibc systems.
17360         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17361         also on glibc systems in C++ mode.
17362         Reported by Gary V. Vaughan <gary@gnu.org>.
17363
17364 2010-12-25  Bruno Haible  <bruno@clisp.org>
17365
17366         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17367         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17368
17369 2010-12-25  Bruno Haible  <bruno@clisp.org>
17370
17371         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17372         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17373         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17374         test whether truncl works according to ISO C 99 with IEC 60559.
17375         * m4/truncl-ieee.m4: New file.
17376         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17377         m4/signbit.m4.
17378         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17379
17380 2010-12-25  Bruno Haible  <bruno@clisp.org>
17381
17382         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17383         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17384         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17385         test whether ceill works according to ISO C 99 with IEC 60559.
17386         * m4/ceill-ieee.m4: New file.
17387         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17388         m4/signbit.m4.
17389         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17390
17391 2010-12-25  Bruno Haible  <bruno@clisp.org>
17392
17393         Ensure all prerequisites of <wchar.h> are included.
17394         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17395         before <wchar.h>.
17396         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17397         gl_MBRLEN_NUL_RETVAL): Likewise.
17398         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17399         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17400         AC_FUNC_MBRTOWC): Likewise.
17401         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17402         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17403         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17404         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17405         Likewise.
17406         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17407         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17408         (gl_WCHAR_H): Improve comments.
17409         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17410
17411 2010-12-25  Bruno Haible  <bruno@clisp.org>
17412
17413         strtok_r: Fix C syntax error in autoconf macro.
17414         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17415         characters in test program.
17416
17417 2010-12-24  Bruno Haible  <bruno@clisp.org>
17418
17419         ceil, trunc, round: Fix gcc warnings.
17420         * lib/ceil.c (MIN): Undefine before redefining.
17421         * lib/trunc.c (MIN): Likewise.
17422         * lib/round.c (MIN): Likewise.
17423         Include <math.h> first.
17424
17425 2010-12-24  Bruno Haible  <bruno@clisp.org>
17426
17427         select tests: Avoid failures on OSF/1 5.1.
17428         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17429         failure of closing the last socket; it may fail with ECONNRESET.
17430
17431 2010-12-24  Eric Blake  <eblake@redhat.com>
17432
17433         stdint: avoid HP-UX 10.20 preprocessor bug
17434         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17435         than #if.
17436         * tests/test-floor2.c (main): Likewise.
17437         Reported by Peter O'Gorman.
17438
17439         pipe: make obsoletion transition easier
17440         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17441         * modules/pipe (Files): Include revived file.
17442         (Include): Drop reference, to mirror getdate's behavior.
17443
17444 2010-12-24  Bruno Haible  <bruno@clisp.org>
17445
17446         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17447         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17448         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17449         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17450
17451 2010-12-24  Bruno Haible  <bruno@clisp.org>
17452
17453         gethostname: Ensure declaration on NonStop Kernel.
17454         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17455         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17456
17457 2010-12-24  Bruno Haible  <bruno@clisp.org>
17458
17459         sys_select: Ensure all necessary types on NonStop Kernel.
17460         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17461         include <sys/time.h>.
17462         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17463         NonStop Kernel.
17464         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17465
17466 2010-12-24  Bruno Haible  <bruno@clisp.org>
17467
17468         sys_select: Remove unneeded include.
17469         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17470         have <sys/select.h>.
17471
17472 2010-12-24  Bruno Haible  <bruno@clisp.org>
17473
17474         gethostname: Provide a fallback for HOST_NAME_MAX.
17475         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17476         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17477         instead.
17478         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17479
17480 2010-12-24  Bruno Haible  <bruno@clisp.org>
17481
17482         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17483         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17484         (SA_RESTART): Likewise.
17485         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17486
17487 2010-12-24  Bruno Haible  <bruno@clisp.org>
17488
17489         signal: Define NSIG.
17490         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17491         * tests/test-signal.c (nsig): New variable.
17492         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17493
17494 2010-12-24  Bruno Haible  <bruno@clisp.org>
17495
17496         rename, renameat: Avoid test failures on OSF/1 5.1.
17497         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17498         alternative error codes.
17499         * tests/test-renameat.c (main): Likewise.
17500
17501 2010-12-24  Bruno Haible  <bruno@clisp.org>
17502
17503         *printf: Detect large precisions bug on Solaris 10/SPARC.
17504         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17505         by Paul Eggert.
17506         * tests/test-snprintf-posix.h (test_function): Add this test code here
17507         too.
17508         * tests/test-sprintf-posix.h (test_function): Likewise.
17509         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17510         * tests/test-vasprintf-posix.c (test_function): Likewise.
17511         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17512         around by gnulib.
17513         * doc/posix-functions/printf.texi: Likewise.
17514         * doc/posix-functions/snprintf.texi: Likewise.
17515         * doc/posix-functions/sprintf.texi: Likewise.
17516         * doc/posix-functions/vfprintf.texi: Likewise.
17517         * doc/posix-functions/vprintf.texi: Likewise.
17518         * doc/posix-functions/vsnprintf.texi: Likewise.
17519         * doc/posix-functions/vsprintf.texi: Likewise.
17520         * doc/posix-functions/dprintf.texi: Undo last commit.
17521         * doc/posix-functions/vdprintf.texi: Likewise.
17522
17523 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17524
17525         tests: port test-fdutimensat.c to Solaris 8
17526         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17527         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17528         On Solaris 8, it fails with errno == ENOSYS, because there is no
17529         futimens (so it can't use the fd), and there is no lutimens (so it
17530         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17531
17532         vsnprintf: make more consistent with snprintf; doc fixes
17533
17534         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17535         the byte count return problem was promoted from the snprintf-posix
17536         to the snprintf module.
17537         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17538         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17539         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17540         * tests/test-snprintf.c (main): Check the byte count returned.
17541         * tests/test-vsnprintf.c (main): Likewise.
17542
17543 2010-12-23  Eric Blake  <eblake@redhat.com>
17544
17545         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17546         * modules/sigpipe (License): Relax license.
17547
17548 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17549
17550         doc: document Solaris printf bug with large float precisions
17551         * doc/posix-functions/dprintf.texi (dprintf):
17552         * doc/posix-functions/fprintf.texi (fprintf):
17553         * doc/posix-functions/printf.texi (printf):
17554         * doc/posix-functions/snprintf.texi (snprintf):
17555         * doc/posix-functions/sprintf.texi (sprintf):
17556         * doc/posix-functions/vdprintf.texi (vdprintf):
17557         * doc/posix-functions/vfprintf.texi (vfprintf):
17558         * doc/posix-functions/vprintf.texi (vprintf):
17559         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17560         * doc/posix-functions/vsprintf.texi (vsprintf):
17561         Mention that these functions mishandle large floating point
17562         precisions on Solaris 10.  The same bug is also present in Solaris
17563         8, and I assume earlier.  This causes "cd gnulib-tests; make
17564         check" to fail on Solaris 8 (and I assume, later) when building
17565         the latest coreutils, in test-vasprintf-posix's call to
17566         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17567         the wide flavors (e.g., wprintf) so this patch just updates the
17568         documentation for the narrow ones.
17569
17570         test-posixtm.c: add two tests
17571         * tests/test-posixtm.c: Add two tests, to highlight the
17572         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17573         around this bug; this is merely to document it.
17574
17575 2010-12-22  Bruno Haible  <bruno@clisp.org>
17576
17577         getlogin_r: Work around portability problem on OSF/1.
17578         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17579         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17580         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17581         test for a truncated result.
17582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17583         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17584         * modules/getlogin_r (Depends-on): Add memchr.
17585         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17586
17587 2010-12-22  Bruno Haible  <bruno@clisp.org>
17588
17589         ptsname: Avoid test failure on OSF/1 5.1.
17590         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17591         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17592         (same_slave): New function.
17593         (main): Use it to compare ptsname's result with the expected file name.
17594
17595 2010-12-22  Bruno Haible  <bruno@clisp.org>
17596
17597         Port extended stdio modules to HP NonStop Kernel.
17598         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17599         macros.
17600         * lib/fbufmode.c: Update comments.
17601         * lib/fflush.c: Likewise.
17602         * lib/fpurge.c: Likewise.
17603         * lib/freadable.c: Likewise.
17604         * lib/freadahead.c: Likewise.
17605         * lib/freading.c: Likewise.
17606         * lib/freadptr.c: Likewise.
17607         * lib/freadseek.c: Likewise.
17608         * lib/fseeko.c: Likewise.
17609         * lib/fseterr.c: Likewise.
17610         * lib/fwritable.c: Likewise.
17611         * lib/fwriting.c: Likewise.
17612         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17613
17614 2010-12-22  Bruno Haible  <bruno@clisp.org>
17615
17616         ttyname_r: Work around bug on OSF/1 5.1.
17617         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17618         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17619         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17620         present.
17621         * lib/ttyname_r.c (ttyname_r): Update comments.
17622
17623 2010-12-22  Bruno Haible  <bruno@clisp.org>
17624
17625         round: Implement result sign according to IEEE 754.
17626         * lib/round.c (MIN, MINUS_ZERO): New macros.
17627         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17628         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17629         * tests/test-round-ieee.c (main): Likewise.
17630         * tests/test-roundl-ieee.c (main): Likewise.
17631
17632         trunc: Implement result sign according to IEEE 754.
17633         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17634         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17635         * tests/test-trunc2.c: Include minus-zero.h.
17636         (MINUS_ZERO): New macro.
17637         (trunc_reference): Keep in sync with lib/trunc.c.
17638         * tests/test-truncf2.c: Include minus-zero.h.
17639         (MINUS_ZERO): New macro.
17640         (truncf_reference): Keep in sync with lib/trunc.c.
17641         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17642         * tests/test-trunc-ieee.c (main): Likewise.
17643         * tests/test-truncl-ieee.c (main): Likewise.
17644
17645         ceil: Implement result sign according to IEEE 754.
17646         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17647         (FUNC): Return -0.0 for -1 < x < 0.
17648         * tests/test-ceil2.c: Include minus-zero.h.
17649         (MINUS_ZERO): New macro.
17650         (ceil_reference): Keep in sync with lib/ceil.c.
17651         * tests/test-ceilf2.c: Include minus-zero.h.
17652         (MINUS_ZERO): New macro.
17653         (ceilf_reference): Keep in sync with lib/ceil.c.
17654         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17655         * tests/test-ceil-ieee.c (main): Likewise.
17656         * tests/test-ceill-ieee.c (main): Likewise.
17657
17658         floor: Implement result sign according to IEEE 754.
17659         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17660         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17661         * tests/test-floorf2.c (floorf_reference): Likewise.
17662         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17663         * tests/test-floor-ieee.c (main): Likewise.
17664         * tests/test-floorl-ieee.c (main): Likewise.
17665
17666 2010-12-22  Bruno Haible  <bruno@clisp.org>
17667
17668         getaddrinfo: Update doc.
17669         * doc/posix-functions/gai_strerror.texi: Return type is also different
17670         on AIX and HP-UX.
17671
17672 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17673
17674         getaddrinfo, inet_ntop: Update doc for Solaris.
17675         * doc/posix-functions/gai_strerror.texi: Return type is also an
17676         issue on Solaris 9 and earlier.
17677         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17678         on Solaris 10 and earlier.
17679
17680 2010-12-21  Bruno Haible  <bruno@clisp.org>
17681
17682         New module 'roundl-ieee'.
17683         * modules/roundl-ieee: New file.
17684         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17685         test whether roundl works according to ISO C 99 with IEC 60559.
17686         * m4/roundl-ieee.m4: New file.
17687         * modules/roundl-ieee-tests: New file.
17688         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17689         * tests/test-roundl.c (main): Remove signbit tests.
17690         * modules/roundl-tests (Depends-on): Remove signbit.
17691         * doc/posix-functions/roundl.texi: Mention the new module.
17692
17693 2010-12-21  Bruno Haible  <bruno@clisp.org>
17694
17695         New module 'truncl-ieee'.
17696         * modules/truncl-ieee: New file.
17697         * modules/truncl-ieee-tests: New file.
17698         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17699         * tests/test-truncl.c (main): Remove signbit tests.
17700         * modules/truncl-tests (Depends-on): Remove signbit.
17701         * doc/posix-functions/truncl.texi: Mention the new module.
17702
17703 2010-12-21  Bruno Haible  <bruno@clisp.org>
17704
17705         New module 'ceill-ieee'.
17706         * modules/ceill-ieee: New file.
17707         * modules/ceill-ieee-tests: New file.
17708         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17709         * tests/test-ceill.c (main): Remove signbit tests.
17710         * modules/ceill-tests (Depends-on): Remove signbit.
17711         * doc/posix-functions/ceill.texi: Mention the new module.
17712
17713 2010-12-21  Bruno Haible  <bruno@clisp.org>
17714
17715         New module 'floorl-ieee'.
17716         * modules/floorl-ieee: New file.
17717         * modules/floorl-ieee-tests: New file.
17718         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17719         * tests/test-floorl.c (main): Remove signbit tests.
17720         * modules/floorl-tests (Depends-on): Remove signbit.
17721         * doc/posix-functions/floorl.texi: Mention the new module.
17722
17723 2010-12-21  Bruno Haible  <bruno@clisp.org>
17724
17725         New module 'round-ieee'.
17726         * modules/round-ieee: New file.
17727         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17728         whether round works according to ISO C 99 with IEC 60559.
17729         * m4/round-ieee.m4: New file.
17730         * modules/round-ieee-tests: New file.
17731         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17732         * tests/test-round1.c (main): Remove signbit tests.
17733         * modules/round-tests (Depends-on): Remove 'signbit'.
17734         * doc/posix-functions/round.texi: Mention the new module.
17735
17736 2010-12-21  Bruno Haible  <bruno@clisp.org>
17737
17738         New module 'trunc-ieee'.
17739         * modules/trunc-ieee: New file.
17740         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17741         whether trunc works according to ISO C 99 with IEC 60559.
17742         * m4/trunc-ieee.m4: New file.
17743         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17745         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17746         * modules/trunc-ieee-tests: New file.
17747         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17748         * tests/test-trunc1.c (main): Remove signbit tests.
17749         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17750         * doc/posix-functions/trunc.texi: Mention the new module.
17751
17752 2010-12-21  Bruno Haible  <bruno@clisp.org>
17753
17754         New module 'ceil-ieee'.
17755         * modules/ceil-ieee: New file.
17756         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17757         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17758         ISO C 99 with IEC 60559.
17759         * m4/ceil-ieee.m4: New file.
17760         * modules/ceil (Files): Add lib/ceil.c.
17761         (Depends-on): Add 'float'.
17762         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17763         * lib/math.in.h (ceil): New declaration.
17764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17765         REPLACE_CEIL.
17766         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17767         * modules/ceil-ieee-tests: New file.
17768         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17769         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17770         * doc/posix-functions/ceil.texi: Mention the new module.
17771
17772 2010-12-21  Bruno Haible  <bruno@clisp.org>
17773
17774         New module 'floor-ieee'.
17775         * modules/floor-ieee: New file.
17776         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17777         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17778         ISO C 99 with IEC 60559.
17779         * m4/floor-ieee.m4: New file.
17780         * modules/floor (Files): Add lib/floor.c.
17781         (Depends-on): Add 'float'.
17782         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17783         * lib/math.in.h (floor): New declaration.
17784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17785         REPLACE_FLOOR.
17786         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17787         * modules/floor-ieee-tests: New file.
17788         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17789         * tests/test-math-c++.cc: Check the signature of 'floor'.
17790         * doc/posix-functions/floor.texi: Mention the new module.
17791
17792 2010-12-21  Bruno Haible  <bruno@clisp.org>
17793
17794         New module 'roundf-ieee'.
17795         * modules/roundf-ieee: New file.
17796         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17797         test whether roundf works according to ISO C 99 with IEC 60559.
17798         * m4/roundf-ieee.m4: New file.
17799         * modules/roundf-ieee-tests: New file.
17800         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17801         * tests/test-roundf1.c (main): Remove signbit tests.
17802         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17803         * doc/posix-functions/roundf.texi: Mention the new module.
17804
17805 2010-12-21  Bruno Haible  <bruno@clisp.org>
17806
17807         New module 'truncf-ieee'.
17808         * modules/truncf-ieee: New file.
17809         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17810         test whether truncf works according to ISO C 99 with IEC 60559.
17811         * m4/truncf-ieee.m4: New file.
17812         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17814         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17815         * modules/truncf-ieee-tests: New file.
17816         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17817         * tests/test-truncf1.c (main): Remove signbit tests.
17818         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17819         * doc/posix-functions/truncf.texi: Mention the new module.
17820
17821 2010-12-21  Bruno Haible  <bruno@clisp.org>
17822
17823         New module 'ceilf-ieee'.
17824         * modules/ceilf-ieee: New file.
17825         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17826         test whether ceilf works according to ISO C 99 with IEC 60559.
17827         * m4/ceilf-ieee.m4: New file.
17828         * modules/ceilf-ieee-tests: New file.
17829         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17830         * tests/test-ceilf1.c (main): Remove signbit tests.
17831         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17832         * doc/posix-functions/ceilf.texi: Mention the new module.
17833
17834 2010-12-21  Bruno Haible  <bruno@clisp.org>
17835
17836         New module 'floorf-ieee'.
17837         * modules/floorf-ieee: New file.
17838         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17839         test whether floorf works according to ISO C 99 with IEC 60559.
17840         * m4/floorf-ieee.m4: New file.
17841         * modules/floorf-ieee-tests: New file.
17842         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17843         * tests/test-floorf1.c (main): Remove signbit tests.
17844         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17845         * doc/posix-functions/floorf.texi: Mention the new module.
17846
17847 2010-12-21  Bruno Haible  <bruno@clisp.org>
17848
17849         Support for minus zero in autoconf macros.
17850         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17851         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17852         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17853         * tests/minus-zero.h: Update comments.
17854
17855 2010-12-21  Bruno Haible  <bruno@clisp.org>
17856
17857         Tests for module 'ceil'.
17858         * modules/ceil-tests: New file.
17859         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17860         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17861
17862 2010-12-21  Bruno Haible  <bruno@clisp.org>
17863
17864         Tests for module 'floor'.
17865         * modules/floor-tests: New file.
17866         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17867         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17868
17869 2010-12-21  Bruno Haible  <bruno@clisp.org>
17870
17871         math: Fix indentation.
17872         * lib/math.in.h (floorf): Fix indentation.
17873
17874 2010-12-21  Bruno Haible  <bruno@clisp.org>
17875
17876         Fix cross-compilation guesses on Solaris.
17877         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17878         not match "solaris2.10".
17879         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17880         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17881         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17882
17883 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17884
17885         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17886         This fixes a problem observed with the latest coreutils snapshot
17887         that caused a test to fail on Solaris 8.  src/csplit.c's call
17888         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17889         earlier, instead of returning the number of bytes that would have
17890         been generated; this causes csplit to incorrectly report memory
17891         exhaustion.
17892         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17893         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17894         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17895         comments to match.
17896         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17897         Fix typo in matching older versions of Solaris: "solaris2.10"
17898         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17899         only for guessing while cross-compiling.
17900         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17901
17902 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17903
17904         ftoastr: fix comment again
17905         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17906         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17907         Also, simplify example a bit by using flags = 0.
17908
17909 2010-12-20  Bruno Haible  <bruno@clisp.org>
17910
17911         round*, trunc*: Update documentation regarding glibc.
17912         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17913         * doc/posix-functions/round.texi: Likewise.
17914         * doc/posix-functions/roundl.texi: Likewise.
17915         * doc/posix-functions/truncf.texi: Likewise.
17916         * doc/posix-functions/trunc.texi: Likewise.
17917         * doc/posix-functions/truncl.texi: Likewise.
17918
17919 2010-12-20  Bruno Haible  <bruno@clisp.org>
17920
17921         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17922         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17923         * doc/posix-functions/round.texi: Likewise.
17924         * doc/posix-functions/roundl.texi: Likewise.
17925
17926 2010-12-20  Bruno Haible  <bruno@clisp.org>
17927
17928         ttyname_r: Add missing declaration on HP-UX 11.
17929         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17930         HAVE_TTYNAME_R.
17931         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17932         declared. Set HAVE_TTYNAME_R always.
17933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17934         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17935         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17936         HAVE_TTYNAME_R.
17937         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17938
17939 2010-12-20  Bruno Haible  <bruno@clisp.org>
17940
17941         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17942         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17943         * doc/posix-functions/getlogin_r.texi: Likewise.
17944         * tests/test-getlogin.c: Include <errno.h>.
17945         (main): Avoid test failure on HP-UX 11.11.
17946         * tests/test-getlogin_r.c (main): Likewise.
17947
17948 2010-12-20  Bruno Haible  <bruno@clisp.org>
17949
17950         getlogin_r: Add missing declaration on HP-UX 11.
17951         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17952         declared also when it exists as a function.
17953         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17954
17955 2010-12-20  Bruno Haible  <bruno@clisp.org>
17956
17957         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17958         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17959         through wcrtomb.
17960
17961 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17962
17963         ftoastr: fix comment
17964         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17965         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17966
17967 2010-12-19  Bruno Haible  <bruno@clisp.org>
17968
17969         isnan: Ensure it is a macro.
17970         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17971         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17972         Solaris.
17973
17974 2010-12-19  Bruno Haible  <bruno@clisp.org>
17975
17976         ldexpl test: Fix link error on OSF/1 5.1.
17977         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17978
17979 2010-12-19  Bruno Haible  <bruno@clisp.org>
17980
17981         wctype: Make it work in C++ mode on OSF/1 5.1.
17982         * lib/wctype.in.h (iswblank): Declare but not define here.
17983         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17984         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17985         * modules/wctype (Files): Add lib/iswblank.c.
17986
17987 2010-12-19  Bruno Haible  <bruno@clisp.org>
17988
17989         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
17990         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
17991         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
17992
17993 2010-12-19  Bruno Haible  <bruno@clisp.org>
17994
17995         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
17996         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
17997         _POSIX_PII_SOCKET.
17998         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
17999         * doc/posix-functions/recvfrom.texi: Likewise.
18000         * doc/posix-functions/send.texi: Likewise.
18001         * doc/posix-functions/sendto.texi: Likewise.
18002
18003 2010-12-19  Bruno Haible  <bruno@clisp.org>
18004
18005         tcgetsid: Add missing declaration on OSF/1 5.1.
18006         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18007         HAVE_TCGETSID.
18008         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18009         Don't set HAVE_TCGETSID.
18010         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18011         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18012         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18013         HAVE_TCGETSID.
18014         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18015
18016 2010-12-19  Bruno Haible  <bruno@clisp.org>
18017
18018         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18019         * lib/stdio.in.h: During the include_next statement, let recursive
18020         includes of this file include only the system header file.
18021
18022 2010-12-19  Bruno Haible  <bruno@clisp.org>
18023
18024         iconv_open: Fix regression from 2010-12-04.
18025         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18026         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18027
18028 2010-12-19  Bruno Haible  <bruno@clisp.org>
18029
18030         stdbool test: Avoid a gcc warning.
18031         * tests/test-stdbool.c (main): Fail if e1 is false.
18032         Reported by Jim Meyering.
18033
18034 2010-12-19  Jim Meyering  <meyering@redhat.com>
18035
18036         setenv: restore to working order
18037         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18038         mistakenly removed.
18039         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18040         HAVE_SETENV.
18041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18042         HAVE_SETENV.
18043
18044 2010-12-19  Bruno Haible  <bruno@clisp.org>
18045
18046         Document some different function declarations on OSF/1 5.1.
18047         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18048         * doc/posix-functions/inet_ntop.texi: Likewise.
18049         * doc/posix-functions/gethostname.texi: Likewise.
18050         * lib/unistd.in.h (gethostname): Update comment.
18051
18052 2010-12-19  Bruno Haible  <bruno@clisp.org>
18053
18054         doc: Mention vasprintf-posix module.
18055         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18056         the 'vasprintf-posix' module.
18057         * doc/glibc-functions/vasprintf.texi: Likewise.
18058
18059 2010-12-19  Bruno Haible  <bruno@clisp.org>
18060
18061         unsetenv: Add missing declaration on OSF/1 5.1.
18062         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18063         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18064         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18066         not HAVE_UNSETENV.
18067         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18068         HAVE_UNSETENV.
18069         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18070
18071 2010-12-19  Bruno Haible  <bruno@clisp.org>
18072
18073         setenv: Add missing declaration on OSF/1 5.1.
18074         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18075         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18076         declared. Don't set HAVE_SETENV.
18077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18078         not HAVE_SETENV.
18079         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18080         HAVE_SETENV.
18081         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18082
18083 2010-12-19  Bruno Haible  <bruno@clisp.org>
18084
18085         nl_langinfo tests: Avoid gcc warning.
18086         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18087
18088 2010-12-19  Bruno Haible  <bruno@clisp.org>
18089
18090         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18091         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18092         _GL_CXXALIAS_SYS.
18093
18094 2010-12-19  Bruno Haible  <bruno@clisp.org>
18095
18096         stdbool: Relax test.
18097         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18098         address to 'bool' work in static initializer, for compilers other than
18099         GCC.
18100
18101 2010-12-19  Bruno Haible  <bruno@clisp.org>
18102
18103         ftello: Add missing declaration on OSF/1 5.1.
18104         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18105         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18107         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18108         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18109
18110 2010-12-19  Bruno Haible  <bruno@clisp.org>
18111
18112         fseeko: Add missing declaration on OSF/1 5.1.
18113         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18116         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18117         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18118
18119 2010-12-19  Bruno Haible  <bruno@clisp.org>
18120
18121         fchdir: Add missing declaration on OSF/1 5.1.
18122         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18125         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18126         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18127
18128 2010-12-19  Bruno Haible  <bruno@clisp.org>
18129
18130         relocatable-prog-wrapper: Separate from relocatable-prog.
18131         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18132         uninstall-relocwrapper rule here.
18133         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18134         Reported by Ian Beckwith <ianb@erislabs.net>.
18135
18136 2010-12-19  Bruno Haible  <bruno@clisp.org>
18137
18138         unistr/u8-mbsnlen: Add missing dependency.
18139         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18140         Reported by Ian Beckwith <ianb@erislabs.net>.
18141
18142 2010-12-19  Bruno Haible  <bruno@clisp.org>
18143
18144         iconv: Make it possible again to use this module without 'iconv-h'.
18145         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18146         if it is not defined.
18147         Reported by Ian Beckwith <ianb@erislabs.net>.
18148
18149 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18150
18151         acl: port to Solaris 8 when copying from tmpfs to ufs
18152         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18153         error number.  Problem observed on Solaris 8 with latest
18154         coreutils, with "mv A B", where A is on a tmpfs file system and B
18155         is on a ufs file system.  This caused coreutils' mv/part-symlink
18156         test to fail.
18157
18158         tests: set fail=0 at start
18159         * tests/init.sh (setup_): Move fail=0 initialization here ...
18160         (mktempd_): ... from here, so that tests can rely on fail being
18161         set to 0 initially.  This fixes a problem in coreutils; see:
18162         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18163
18164 2010-12-18  Bruno Haible  <bruno@clisp.org>
18165
18166         memmem-simple: Stylistic changes.
18167         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18168         Fix preprocessor directive indentation.
18169
18170 2010-12-15  Pádraig Brady <P@draigBrady.com>
18171
18172         memmem, memmem-simple: reorganize and expand empty needle check
18173         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18174         functional checks to memmem-simple so that one has a fully functional
18175         memmem by using just this module.
18176         Restrict the performance only check to the memmem module.
18177         Also expand the empty needle check to ensure the correct
18178         pointer is returned, not just a non NULL pointer.
18179         * doc/glibc-functions/memmem.texi: Rearrange the portability
18180         documentation to correlate with the rearranged checks.
18181         Clarify exactly how the memmem and memmem-simple modules
18182         relate to each other.
18183
18184 2010-12-15  Pádraig Brady <P@draigBrady.com>
18185             Bruno Haible  <bruno@clisp.org>
18186
18187         Improve cross-compilation guesses for uClibc.
18188         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18189         that uClibc does not have the glibc bug.
18190         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18191         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18192
18193 2010-12-14  Eric Blake  <eblake@redhat.com>
18194
18195         configmake: provide fallbacks for oldest supported autotools
18196         * m4/configmake.m4: New file.
18197         * modules/configmake (Files): Ship it.
18198         (configure.ac): Use it to guarantee fallbacks.
18199
18200 2010-12-13  Pádraig Brady <P@draigBrady.com>
18201
18202         read-file: Improve handling of large files
18203         * lib/read-file.c (fread_file): Minimize realloc()s
18204         for regular files, and better manage sizes around SIZE_MAX.
18205
18206 2010-12-13  Eric Blake  <eblake@redhat.com>
18207
18208         cloexec, fcntl: relax license
18209         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18210         consent from all contributors.
18211         * modules/fcntl (License): Likewise.
18212
18213 2010-12-10  Bruno Haible  <bruno@clisp.org>
18214
18215         Tests for module 'pipe-posix'.
18216         * modules/pipe-posix-tests: New file.
18217         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18218
18219 2010-12-10  Bruno Haible  <bruno@clisp.org>
18220
18221         pipe-posix: Make it work in C++ mode.
18222         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18223         (pipe): Use common idiom, not a macro definition.
18224         * lib/pipe.c: New file.
18225         * m4/pipe.m4: New file.
18226         * modules/pipe-posix (Description): Enhance.
18227         (Files): Add lib/pipe.c, m4/pipe.m4.
18228         (configure.ac): Invoke gl_FUNC_PIPE.
18229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18230         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18231         * tests/test-unistd-c++.cc: Check the signature of pipe.
18232
18233 2010-12-10  Bruno Haible  <bruno@clisp.org>
18234
18235         Rename module 'pipe' to 'spawn-pipe'.
18236         * modules/spawn-pipe: New file, renamed from modules/pipe.
18237         (Files, configure.ac, Makefile.am): Update.
18238         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18239         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18240         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18241         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18242         "spawn-pipe.h" instead of "pipe.h".
18243         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18244         to gl_SPAWN_PIPE.
18245         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18246         (Files, Makefile.am): Update.
18247         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18248         Update.
18249         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18250         Include "spawn-pipe.h" instead of "pipe.h".
18251         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18252         * lib/javacomp.c: Likewise.
18253         * lib/javaversion.c: Likewise.
18254         * lib/pipe-filter-gi.c: Likewise.
18255         * lib/pipe-filter-ii.c: Likewise.
18256         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18257         * modules/javacomp (Depends-on): Likewise.
18258         * modules/javaversion (Depends-on): Likewise.
18259         * modules/pipe-filter-gi (Depends-on): Likewise.
18260         * modules/pipe-filter-ii (Depends-on): Likewise.
18261         * MODULES.html.sh (Executing programs): Update.
18262         * NEWS: Mention the change.
18263
18264 2010-12-10  Eric Blake  <eblake@redhat.com>
18265
18266         pipe-posix: new module
18267         * modules/pipe-posix: New file.
18268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18269         (gl_UNISTD_H): Check for declaration.
18270         * modules/unistd (Makefile.am): Substitute it.
18271         * lib/unistd.in.h (pipe): Provide it for mingw.
18272         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18273         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18274
18275 2010-12-07  Bruno Haible  <bruno@clisp.org>
18276
18277         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18278         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18279         u8_strcmp_gnu.
18280         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18281
18282 2010-12-06  Bruno Haible  <bruno@clisp.org>
18283
18284         Update internal documentation.
18285         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18286
18287 2010-12-04  Bruno Haible  <bruno@clisp.org>
18288
18289         Put more information about failed tests into the test return codes.
18290         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18291         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18292         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18293         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18294         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18295         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18296         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18297         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18298         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18300         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18301         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18302         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18303         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18304         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18305         returns a bit mask.
18306         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18307         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18308         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18309         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18310         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18311         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18312         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18313         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18314         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18315         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18316         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18317         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18318         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18319         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18320         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18321         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18322         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18323         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18324         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18325         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18326         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18327         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18328         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18329         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18330         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18331         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18332         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18333         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18334         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18335         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18336         gl_PRINTF_PRECISION): Likewise.
18337         * m4/regex.m4 (gl_REGEX): Likewise.
18338         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18339         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18340         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18341         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18342         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18343         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18344         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18345         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18346         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18347         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18348         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18349         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18350         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18351         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18352         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18353         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18354         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18355         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18357         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18358         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18359         enumerated value.
18360         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18361
18362 2010-12-04  Bruno Haible  <bruno@clisp.org>
18363
18364         Update for Solaris 11 2010-11.
18365         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18366         Express, released in November 2010.
18367
18368 2010-12-04  Bruno Haible  <bruno@clisp.org>
18369
18370         nproc: Relax license.
18371         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18372         and Paul Eggert.
18373         Requested by Ludovic Courtès <ludo@gnu.org>.
18374
18375 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18376
18377         utimecmp: fine-grained src to nearby coarse-grained dest
18378
18379         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18380         and the source is on a file system with higher-resolution time
18381         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18382         not work, and the time stamps are close together, the algorithm to
18383         determine the exact resolution from the read-back mtime was buggy:
18384         it had a "!=" where it should have had an "==".  This bug has been
18385         in the code ever since it was introduced to gnulib.
18386         Problem reported by Dan Jacobson in
18387         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18388
18389 2010-11-30  Bruno Haible  <bruno@clisp.org>
18390
18391         strerror_r-posix: Fix autoconf test.
18392         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18393
18394 2010-11-28  Bruno Haible  <bruno@clisp.org>
18395             Paul Eggert  <eggert@cs.ucla.edu>
18396
18397         Tests for module 'getdomainname'.
18398         * modules/getdomainname-tests: New file.
18399         * tests/test-getdomainname.c: New file, based on
18400         tests/test-gethostname.c.
18401
18402 2010-11-28  Bruno Haible  <bruno@clisp.org>
18403             Paul Eggert  <eggert@cs.ucla.edu>
18404
18405         getdomainname: Use the system function when possible.
18406         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18407         (getdomainname): Replace if needed. Provide the declaration if it is
18408         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18409         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18410         (getdomainname): When the system has getdomainname, call the system
18411         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18412         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18413         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18414         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18415         the function if its second argument is of type 'int' or if it is found
18416         in libnsl.
18417         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18418         <sys/systeminfo.h> and sysinfo().
18419         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18421         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18422         HAVE_GETDOMAINNAME.
18423         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18424         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18425         * doc/glibc-functions/getdomainname.texi: Document the problems with
18426         the getdomainname declaration.
18427
18428 2010-11-28  Bruno Haible  <bruno@clisp.org>
18429
18430         sys_socket: Ensure ss_family field on AIX.
18431         * lib/sys_socket.in.h (ss_family): New macro definition.
18432         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18433         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18434         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18435         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18436         * modules/sys_socket (Makefile.am): Substitute
18437         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18438         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18439
18440 2010-11-27  Bruno Haible  <bruno@clisp.org>
18441
18442         readline: Improve configure output.
18443         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18444         "checking for readline..." result understandable.
18445
18446 2010-11-27  Bruno Haible  <bruno@clisp.org>
18447
18448         *printf-posix: Detect a bug on Solaris 10/x86.
18449         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18450         for floating-point output.
18451         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18452         directive.
18453         * tests/test-snprintf-posix.h (test_function): Likewise.
18454         * tests/test-sprintf-posix.h (test_function): Likewise.
18455         * tests/test-vasprintf-posix.c (test_function): Likewise.
18456         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18457         * doc/posix-functions/printf.texi: Likewise.
18458         * doc/posix-functions/snprintf.texi: Likewise.
18459         * doc/posix-functions/sprintf.texi: Likewise.
18460         * doc/posix-functions/vfprintf.texi: Likewise.
18461         * doc/posix-functions/vprintf.texi: Likewise.
18462         * doc/posix-functions/vsnprintf.texi: Likewise.
18463         * doc/posix-functions/vsprintf.texi: Likewise.
18464         * doc/glibc-functions/obstack_printf.texi: Likewise.
18465         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18466
18467 2010-11-27  Bruno Haible  <bruno@clisp.org>
18468
18469         Fix link error when module libunistring-optional is in use.
18470         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18471         * modules/striconveha-tests (Makefile.am): Likewise.
18472
18473 2010-11-27  Bruno Haible  <bruno@clisp.org>
18474
18475         regex: Mention link dependencies.
18476         * modules/regex (Link): New section.
18477         * modules/rpmatch (Link): Likewise.
18478         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18479
18480 2010-11-27  Bruno Haible  <bruno@clisp.org>
18481
18482         ftoastr: Fix compilation error on Solaris.
18483         * lib/ftoastr.c: Include <config.h>.
18484
18485 2010-11-27  Bruno Haible  <bruno@clisp.org>
18486
18487         getloadavg: Update documentation.
18488         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18489
18490 2010-11-27  Bruno Haible  <bruno@clisp.org>
18491
18492         sys_socket: Fix test whether the functions are declared.
18493         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18494         not <sys/select.h>.
18495
18496 2010-11-27  Bruno Haible  <bruno@clisp.org>
18497
18498         getpass: Make sure to get system declaration on some platforms.
18499         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18500         gl_USE_SYSTEM_EXTENSIONS.
18501         * modules/getpass (Depends-on): Add extensions.
18502
18503 2010-11-26  Bruno Haible  <bruno@clisp.org>
18504
18505         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18506         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18507         'iconv' module is present.
18508         (ICONV_CONST): New macro.
18509         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18510         ICONV_CONST.
18511         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18512         set ICONV_CONST.
18513         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18514         here.
18515         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18516         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18517         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18518         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18519         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18520         present.
18521
18522 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18523
18524         ftoastr: comment fix
18525         * lib/ftoastr.c: "little" -> "little or no" in comment
18526
18527 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18528
18529         stdint: port to GCC 4.3 + OSX + Octave
18530         On this platform, stdint.h is buggy and defines int64_t to long
18531         long int.  The replacement defined it to long int, causing
18532         problems with C++ style name mangling.  Instead, trust the system
18533         definition if INT64_MAX is defined, and likewise for the unsigned
18534         variant.   Problem reported by Jarno Rajahalme in
18535         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18536         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18537         and don't mess with int64_t and INT64_MAX in this case.
18538         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18539
18540 2010-11-24  Bruno Haible  <bruno@clisp.org>
18541
18542         doc: Corrections regarding MacOS X 10.4 and 10.5.
18543         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18544         MacOS X.
18545         Reported by Simon Josefsson.
18546
18547 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18548
18549         Uninstall ".bin" files installed by relocwrapper.
18550         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18551         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18552         unless it is already there.
18553
18554 2010-11-21  Bruno Haible  <bruno@clisp.org>
18555
18556         Update for NetBSD 5.0.
18557         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18558         NetBSD; the test fails on NetBSD 5.0.
18559         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18560         about NetBSD.
18561
18562 2010-11-21  Bruno Haible  <bruno@clisp.org>
18563
18564         Update for HP-UX 11.23 and HP-UX 11.31.
18565         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18566         HP-UX.
18567
18568 2010-11-21  Bruno Haible  <bruno@clisp.org>
18569
18570         Update for MacOS X 10.5.
18571         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18572         MacOS X; the test fails on MacOS X 10.5.8.
18573         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18574         about MacOS X.
18575
18576 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18577
18578         bootstrap: add bootstrap_sync option.
18579         See discussion at
18580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18581         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18582         * build-aux/bootstrap: Accept --bootstrap-sync to update
18583         bootstrap if it is not identical to the local gnulib's
18584         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18585         enable this by default.  Accept --no-bootstrap-sync to disable
18586         it.
18587
18588 2010-11-20  Bruno Haible  <bruno@clisp.org>
18589
18590         Ensure that <features.h> is included before __GLIBC__ is tested.
18591         * lib/printf-parse.h: Include <features.h>.
18592         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18593         Reported by Mike Frysinger <vapier@gentoo.org>.
18594
18595         Ensure that <features.h> is included before __GLIBC__ is tested.
18596         * lib/wchar.in.h: Include <features.h>.
18597         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18598         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18599         Reported by Mike Frysinger <vapier@gentoo.org>.
18600
18601         Ensure that <features.h> is included before __GLIBC__ is tested.
18602         * lib/arpa_inet.in.h: Include <features.h>.
18603         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18604         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18605         Reported by Mike Frysinger <vapier@gentoo.org>.
18606
18607         Ensure that <features.h> is included before __GLIBC__ is tested.
18608         * build-aux/link-warning.h: Include <features.h>.
18609         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18610         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18611         Reported by Mike Frysinger <vapier@gentoo.org>.
18612
18613         Ensure that <features.h> is included before __GLIBC__ is tested.
18614         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18615         Reported by Mike Frysinger <vapier@gentoo.org>.
18616
18617 2010-11-20  Bruno Haible  <bruno@clisp.org>
18618
18619         memmem: Fix autoconf test.
18620         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18621
18622 2010-11-20  Bruno Haible  <bruno@clisp.org>
18623
18624         Port to uClibc.
18625         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18626         * lib/fcntl.in.h: Likewise.
18627         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18628         * lib/mbrtowc.c (mbrtowc): Likewise.
18629         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18630         * lib/strerror_r.c: Likewise.
18631         * lib/unistr/u8-strnlen.c: Likewise.
18632         * lib/vasnprintf.c (decimal_point_char): Likewise.
18633         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18634         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18635         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18636         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18637         * tests/test-sigaction.c (handler, main): Likewise.
18638         * lib/freading.h: Treat uClibc like a non-glibc platform.
18639         * lib/freading.c: Likewise.
18640         * lib/gettext.h: Likewise.
18641         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18642         Likewise.
18643         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18644         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18645         * lib/propername.c (proper_name_utf8): Likewise.
18646         * lib/spawn.in.h: Likewise.
18647         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18648         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18649         mem_cd_iconveh_internal): Likewise.
18650         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18651         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18652         strstr, strcasestr): Likewise.
18653         * lib/unicodeio.c (unicode_to_mb): Likewise.
18654         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18655         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18656         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18657         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18658         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18659         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18660         * lib/unistr/u8-stpncpy.c: Likewise.
18661         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18662         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18663         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18664         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18665         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18666         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18667         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18670         Likewise.
18671         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18672         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18673         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18674         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18675         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18676         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18677         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18678         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18679         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18680         * tests/test-striconveha.c (main): Likewise.
18681         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18682         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18683         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18684         * doc/posix-functions/getline.texi: Likewise.
18685         Reported by Mike Frysinger <vapier@gentoo.org>.
18686
18687 2010-11-20  Bruno Haible  <bruno@clisp.org>
18688
18689         nproc: Fix condition.
18690         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18691         HAVE_PTHREAD_AFFINITY_NP.
18692
18693 2010-11-20  Bruno Haible  <bruno@clisp.org>
18694
18695         Fix a comment.
18696         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18697
18698 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18699
18700         ftoastr: don't assume snprintf
18701         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18702         Implement a subset of snprintf here, by using sprintf safely.
18703         * modules/ftoastr (Depends-on): Remove snprintf.
18704
18705 2010-11-19  Jim Meyering  <meyering@redhat.com>
18706
18707         test-rename.h: fix compilation failure
18708         * tests/test-rename.h (test_rename): Add omitted "}".
18709
18710 2010-11-17  Jim Meyering  <meyering@redhat.com>
18711
18712         maint.mk: add a URL discussing the no-@acronym policy
18713         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18714
18715 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18716
18717         ftoastr: depend on snprintf, improve comments
18718         * lib/ftoastr.c: Also mention Loitsch's draft.
18719         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18720         needed in the current implementation, but it might simplify
18721         speeding up the code later.
18722         * modules/ftoastr: Depend on snprintf; this improves portability.
18723         Suggested by Bruno Haible in the same email.
18724
18725         ftoastr: port to hosts lacking strtof and strtold
18726         Problem reported by Bruno Haible in
18727         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18728         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18729         environment and strtold (and presumably strtof) are not available.
18730         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18731         (configure.ac): Require gl_C99_STRTOLD.
18732
18733 2010-11-18  Bruno Haible  <bruno@clisp.org>
18734
18735         c-strtold: Avoid link error on AIX 7.
18736         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18737         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18738         (gl_C_STRTOLD): Test whether strtold_l exists.
18739         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18740
18741 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18742
18743         intprops: new macro INT_BITS_STRLEN_BOUND
18744         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18745         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18746         not exposed.  Also, it uses a slightly tighter bound than before;
18747         though this makes no practical difference, we might as well be as
18748         tight as we easily can.
18749
18750         ftoastr: new module, for lossless conversion of floats to short strings
18751         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18752         * modules/ftoastr: New files.
18753
18754 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18755
18756         bootstrap: port to Solaris sed
18757         * build-aux/bootstrap (get_version): Port to Solaris sed.
18758         See Ralf Wildenhues's note in
18759         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18760
18761 2010-11-14  Jim Meyering  <meyering@redhat.com>
18762
18763         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18764         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18765         and move definition closer to sole use.
18766
18767 2010-11-13  Jim Meyering  <meyering@redhat.com>
18768
18769         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18770         Now we require at least autoconf-2.59, which means the work-around
18771         is no longer needed.
18772         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18773         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18774         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18775         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18776         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18777
18778 2010-11-13  Bruno Haible  <bruno@clisp.org>
18779
18780         rename, renameat: Avoid test failures at NFS mounted locations.
18781         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18782         functions.
18783         (test_rename): Use assert_nonexistent.
18784         * tests/test-rename.c: Include <dirent.h>.
18785         * tests/test-renameat.c: Likewise.
18786         Reported by Gary V. Vaughan <gary@gnu.org>.
18787
18788         rename, renameat: Document Linux bug with NFS
18789         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18790         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18791         * doc/posix-functions/renameat.texi: Likewise.
18792         Suggested by Eric Blake.
18793
18794 2010-11-13  Bruno Haible  <bruno@clisp.org>
18795
18796         rename test: Add comments.
18797         * tests/test-rename.h (test_rename): Add structure and comments.
18798
18799 2010-11-13  Eric Blake  <eblake@redhat.com>
18800
18801         maintainer-makefile: cover a few more files
18802         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18803         scripts generated within C files, for libvirt.
18804
18805 2010-11-13  Bruno Haible  <bruno@clisp.org>
18806
18807         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18808         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18809         character, return the number of bytes that belong together, not always
18810         1.
18811         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18812         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18813         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18814         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18815         number of bytes of an invalid character.
18816         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18817         (main): Invoke it.
18818         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18819         results.
18820         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18821         malformed byte sequences.
18822         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18823         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18824         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18825         Reported by Ben Pfaff and Paolo Bonzini.
18826
18827 2010-11-13  Bruno Haible  <bruno@clisp.org>
18828
18829         openat: Work around glibc bug with fchownat() and empty file names.
18830         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18831         (gl_FUNC_FCHOWNAT): Invoke it.
18832         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18833         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18834         Reported by Gary V. Vaughan <gary@gnu.org>.
18835
18836 2010-11-13  Bruno Haible  <bruno@clisp.org>
18837
18838         openat: Ensure autoconf macro ordering.
18839         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18840         gl_USE_SYSTEM_EXTENSIONS.
18841         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18842
18843 2010-11-13  Bruno Haible  <bruno@clisp.org>
18844
18845         Update comments.
18846         * lib/unistr/u8-check.c: Update file name in comments.
18847         * lib/unistr/u8-mblen.c: Likewise.
18848         * lib/unistr/u8-prev.c: Likewise.
18849         * lib/unistr/u8-strmblen.c: Likewise.
18850         * lib/unistr/u8-strmbtouc.c: Likewise.
18851
18852 2010-11-13  Jim Meyering  <meyering@redhat.com>
18853
18854         tests: avoid test failure on Solaris 10 due to lack of PATH export
18855         * tests/test-update-copyright.sh: Don't forget to export PATH.
18856
18857         init.sh: ensure that IFS is defined, just in case...
18858         * tests/init.sh (setup_): Ensure that IFS is defined,
18859         so that saving and restoring it works as expected.  This
18860         appears to be useful at least for an old version of dash
18861         from a long time ago (RH 6).  See here for details:
18862         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18863
18864         maint.mk: tighten "test a == b" check
18865         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18866         test to files that contain something like #!/bin/sh.
18867         Without this, coreutils would get two false positives in
18868         the comments of C source files.
18869
18870 2010-11-12  Eric Blake  <eblake@redhat.com>
18871
18872         bootstrap: fix typo in previous attempt
18873         * build-aux/bootstrap (buildreq): Correct the grouping.
18874         Reported by Paul Eggert.
18875
18876         maintainer-makefile: prohibit test x == x
18877         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18878         Based on a report by Matthias Bolte.
18879
18880         bootstrap: allow FreeBSD gzip
18881         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18882         which has no '.' and goes to stderr.
18883         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18884         Reported by Matthias Bolte.
18885
18886         maintainer-makefile: check for i18n setup
18887         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18888         will likely work.
18889
18890 2010-11-12  Bruno Haible  <bruno@clisp.org>
18891
18892         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18893         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18894         * lib/nanosleep.c (nanosleep): Likewise.
18895
18896 2010-11-11  Bruno Haible  <bruno@clisp.org>
18897
18898         fcntl-h: Fix for use of C++ on glibc systems.
18899         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18900         also on glibc systems in C++ mode.
18901         Reported by Gary V. Vaughan <gary@gnu.org>.
18902
18903 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18904
18905         mknod: avoid false failure with dash
18906         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18907
18908 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18909
18910         unlink: Fix "is it should" typo in diagnostic.
18911         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18912         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18913
18914 2010-11-11  Bruno Haible  <bruno@clisp.org>
18915
18916         Tests for module 'strerror_r-posix'.
18917         * modules/strerror_r-posix-tests: New file.
18918         * tests/test-strerror_r.c: New file.
18919         * tests/test-string-c++.cc: Check the signature of strerror_r.
18920
18921         New module 'strerror_r-posix'.
18922         * lib/string.in.h (strerror_r): New declaration.
18923         * lib/strerror_r.c: New file.
18924         * m4/strerror_r.m4: New file.
18925         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18926         of strerror_r.
18927         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18928         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18929         * modules/strerror_r-posix: New file.
18930         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18931         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18932         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18933         portability problems.
18934
18935 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18936
18937         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18938         line is also considered for output. Quoted function name in shell
18939         command, so temporary files for functions like MyClass::operator()
18940         are removed correctly without errors.
18941
18942 2010-11-09  Bruno Haible  <bruno@clisp.org>
18943
18944         * doc/posix-functions/strerror.texi: List more failing platforms.
18945
18946         * doc/posix-functions/strerror.texi: Add a comment.
18947
18948 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18949
18950         fdopendir: fix bug on MacOS X when low on file descriptors
18951
18952         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18953         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18954         All callers changed.
18955         (fdopendir): Invoke save_cwd at the top level, not after using
18956         multiple dup() calls to use up file descriptors.  Then retry
18957         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18958         less than the maximum number of open file descriptors, because
18959         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18960         on Mac OS X 10.6.4 for tar 1.24
18961         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18962         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18963         and for tar 1.25
18964         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18965
18966 2010-11-07  Bruno Haible  <bruno@clisp.org>
18967
18968         vasnprintf: Support I flag on glibc systems.
18969         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18970         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18971         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18972         snprintf function.
18973         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18974         glibc systems.
18975         * tests/test-vasnprintf-posix3.c: New file.
18976         * modules/vasnprintf-posix-tests (Files): Add it.
18977         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18978
18979 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18980
18981         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18982         * MODULES.html.sh: For compiler warnings, use name
18983         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18984
18985 2010-11-05  Eric Blake  <eblake@redhat.com>
18986
18987         ceil, floor: avoid spurious failure with icc
18988         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
18989         [denormals-as-zero] when optimizing without -mieee-fp option.
18990         * tests/test-floorf2.c (floorf_reference): Likewise.
18991         * tests/test-ceilf1.c (dummy): New function.
18992         (main): Use it to outsmart icc's optimization.
18993         * tests/test-floorf1.c (dummy, main): Likewise.
18994
18995         tests: require working signbit
18996         * modules/ceilf-tests (Depends-on): Add signbit.
18997         * modules/ceill-tests (Depends-on): Likewise.
18998         * modules/floorf-tests (Depends-on): Likewise.
18999         * modules/floorl-tests (Depends-on): Likewise.
19000         * modules/round-tests (Depends-on): Likewise.
19001         * modules/roundf-tests (Depends-on): Likewise.
19002         * modules/roundl-tests (Depends-on): Likewise.
19003         * modules/trunc-tests (Depends-on): Likewise.
19004         * modules/truncf-tests (Depends-on): Likewise.
19005         * modules/truncl-tests (Depends-on): Likewise.
19006
19007         strtod: work around icc bug
19008         * lib/strtod.c (minus_zero): Define to working value.
19009         (strtod): Use it to avoid icc bug.
19010
19011         copysign: enhance tests
19012         * modules/copysign-tests (Files): Add minus-zero.h.
19013         * tests/test-copysign.c (main): Also test zeros.
19014
19015 2010-11-04  Eric Blake  <eblake@redhat.com>
19016
19017         ceil, floor, round, trunc: enhance tests of -0
19018         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19019         * tests/test-ceill.c (main): Likewise.
19020         * tests/test-floorf1.c (main): Likewise.
19021         * tests/test-floorl.c (main): Likewise.
19022         * tests/test-round1.c (main): Likewise.
19023         * tests/test-roundf1.c (main): Likewise.
19024         * tests/test-roundl.c (main): Likewise.
19025         * tests/test-trunc1.c (main): Likewise.
19026         * tests/test-truncf1.c (main): Likewise.
19027         * tests/test-truncl.c (main): Likewise.
19028
19029 2010-11-04  Eric Blake  <eblake@redhat.com>
19030
19031         frexp, tests: work around ICC bug with -zero
19032         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19033         works with more compilers.
19034         * tests/minus-zero.h: New file.
19035         * modules/ceilf-tests (Files): Include it.
19036         * modules/ceill-tests (Files): Likewise.
19037         * modules/floorf-tests (Files): Likewise.
19038         * modules/floorl-tests (Files): Likewise.
19039         * modules/frexp-nolibm-tests (Files): Likewise.
19040         * modules/frexp-tests (Files): Likewise.
19041         * modules/frexpl-nolibm-tests (Files): Likewise.
19042         * modules/frexpl-tests (Files): Likewise.
19043         * modules/isnan-tests (Files): Likewise.
19044         * modules/isnand-nolibm-tests (Files): Likewise.
19045         * modules/isnand-tests (Files): Likewise.
19046         * modules/isnanf-nolibm-tests (Files): Likewise.
19047         * modules/isnanf-tests (Files): Likewise.
19048         * modules/isnanl-nolibm-tests (Files): Likewise.
19049         * modules/isnanl-tests (Files): Likewise.
19050         * modules/round-tests (Files): Likewise.
19051         * modules/roundf-tests (Files): Likewise.
19052         * modules/roundl-tests (Files): Likewise.
19053         * modules/ldexpl-tests (Files): Likewise.
19054         * modules/signbit-tests (Files): Likewise.
19055         * modules/snprintf-posix-tests (Files): Likewise.
19056         * modules/sprintf-posix-tests (Files): Likewise.
19057         * modules/strtod-tests (Files): Likewise.
19058         * modules/trunc-tests (Files): Likewise.
19059         * modules/truncf-tests (Files): Likewise.
19060         * modules/truncl-tests (Files): Likewise.
19061         * modules/vsnprintf-posix-tests (Files): Likewise.
19062         * modules/vsprintf-posix-tests (Files): Likewise.
19063         * modules/vasnprintf-posix-tests (Files): Likewise.
19064         * modules/vasprintf-posix-tests (Files): Likewise.
19065         * tests/test-ceilf1.c (main): Use it.
19066         * tests/test-ceill.c (main): Likewise.
19067         * tests/test-floorf1.c (main): Likewise.
19068         * tests/test-floorl.c (main): Likewise.
19069         * tests/test-frexp.c (main): Likewise.
19070         * tests/test-frexpl.c (main): Likewise.
19071         * tests/test-isnan.c (main): Likewise.
19072         * tests/test-isnand.h (main): Likewise.
19073         * tests/test-isnanf.h (main): Likewise.
19074         * tests/test-isnanl.h (main): Likewise.
19075         * tests/test-ldexpl.c (main): Likewise.
19076         * tests/test-round.c (main): Likewise.
19077         * tests/test-roundf.c (main): Likewise.
19078         * tests/test-roundl.c (main): Likewise.
19079         * tests/test-signbit.c (test_signbitf, test_signbitd)
19080         (test_signbitl): Likewise.
19081         * tests/test-snprintf-posix.h (test_function): Likewise.
19082         * tests/test-sprintf-posix.h (test_function): Likewise.
19083         * tests/test-strtod.c (main): Likewise.
19084         * tests/test-trunc1.c (main): Likewise.
19085         * tests/test-truncf1.c (main): Likewise.
19086         * tests/test-truncl.c (main): Likewise.
19087
19088         isnanl: work around icc bug
19089         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19090
19091 2010-11-03  Eric Blake  <eblake@redhat.com>
19092
19093         tests: fix compiler warnings
19094         * tests/test-getopt.h (test_getopt): Fix condition.
19095         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19096         * tests/test-pipe2.c (main): Likewise.
19097         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19098
19099         utimens: fix broken m4 test
19100         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19101
19102 2010-10-28  Bruno Haible  <bruno@clisp.org>
19103
19104         posix_spawn*, getdtablesize: Relax license.
19105         * modules/posix_spawn (License): Change to LGPLv2+.
19106         * modules/posix_spawnp (License): Likewise.
19107         * modules/posix_spawn-internal (License): Likewise.
19108         * modules/posix_spawnattr_init (License): Likewise.
19109         * modules/posix_spawnattr_getflags (License): Likewise.
19110         * modules/posix_spawnattr_setflags (License): Likewise.
19111         * modules/posix_spawnattr_getpgroup (License): Likewise.
19112         * modules/posix_spawnattr_setpgroup (License): Likewise.
19113         * modules/posix_spawnattr_getschedparam (License): Likewise.
19114         * modules/posix_spawnattr_setschedparam (License): Likewise.
19115         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19116         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19117         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19118         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19119         * modules/posix_spawnattr_getsigmask (License): Likewise.
19120         * modules/posix_spawnattr_setsigmask (License): Likewise.
19121         * modules/posix_spawnattr_destroy (License): Likewise.
19122         * modules/posix_spawn_file_actions_init (License): Likewise.
19123         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19124         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19125         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19126         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19127         * modules/getdtablesize (License): Likewise.
19128         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19129
19130 2010-10-26  Bruno Haible  <bruno@clisp.org>
19131
19132         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19133         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19134         Cygwin and mingw.
19135         Suggested by Eric Blake.
19136
19137 2010-10-26  Bruno Haible  <bruno@clisp.org>
19138
19139         stdio: Work around compilation error due to renameat() on Solaris 10.
19140         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19141         * lib/renameat.c: Don't include <unistd.h> here.
19142         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19143         Reported by Paul Eggert and Eric Blake.
19144
19145 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19146
19147         renameat: port to Solaris 10, which declares renameat in unistd.h
19148
19149         * lib/renameat.c: Include unistd.h before stdio.h, because
19150         Solaris 10 declares renameat in unistd.h.  Problem encountered
19151         when building GNU tar 1.24 on Solaris 10.
19152
19153 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19154
19155         fdopendir: fix C89 compilation
19156         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19157         compilers.
19158
19159 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19160
19161         inttostr: simplify by removing unnecessary redundancy
19162         * lib/anytostr.c: Don't include verify.h.
19163         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19164         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19165         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19166         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19167         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19168         Likewise.
19169         * modules/inttostr (Depends-on): Remove 'verify'.
19170
19171 2010-10-23  Bruno Haible  <bruno@clisp.org>
19172
19173         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19174         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19175         Reported by Eric Blake.
19176
19177 2010-10-23  Bruno Haible  <bruno@clisp.org>
19178
19179         Tests: Fix LOCALE_JA on MirBSD 10.
19180         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19181         to an UTF-8 locale.
19182         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19183         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19184         Reported by Eric Blake.
19185
19186 2010-10-21  Bruno Haible  <bruno@clisp.org>
19187
19188         nl_langinfo test: Avoid test failure on NetBSD 5.
19189         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19190         Reported by Eric Blake.
19191
19192 2010-10-21  Eric Blake  <eblake@redhat.com>
19193
19194         c-stack: work around libsigsegv 2.8 bug
19195         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19196         overflow on at least PowerPC64.
19197
19198 2010-10-17  Bruno Haible  <bruno@clisp.org>
19199
19200         userspec: Drop redundant file.
19201         * modules/userspec (Files): Remove lib/inttostr.h.
19202
19203 2010-10-17  Bruno Haible  <bruno@clisp.org>
19204
19205         nl_langinfo tests: Silence some warnings.
19206         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19207         Reported by Jim Meyering.
19208
19209 2010-10-17  Bruno Haible  <bruno@clisp.org>
19210
19211         Make use of GCC's attribute __alloc_size__.
19212         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19213         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19214         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19215         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19216         __alloc_size__.
19217         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19218         Suggested by Jim Meyering.
19219
19220 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19221
19222         bootstrap: anchor .gitignore entries.
19223         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19224         with...
19225         (insert_vc_ignore): ... this new function, which prepends `/' to
19226         all .gitignore entries before passing them to
19227         insert_sorted_if_absent.
19228
19229 2010-10-16  Bruno Haible  <bruno@clisp.org>
19230
19231         nextafter: Fix configure check.
19232         * modules/nextafter (configure.ac): Correct expected prototype.
19233
19234 2010-10-16  Bruno Haible  <bruno@clisp.org>
19235
19236         termios: Update documentation.
19237         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19238
19239 2010-10-16  Bruno Haible  <bruno@clisp.org>
19240
19241         tests: Make them compile with TinyCC.
19242         * tests/test-strstr.c (main): Remove parentheses around array
19243         initializer.
19244
19245 2010-10-15  Eric Blake  <eblake@redhat.com>
19246
19247         ignore-value: make header idempotent
19248         * lib/ignore-value.h: Add double-inclusion guards.
19249         Reported by Stefan Berger.
19250
19251 2010-10-15  Jim Meyering  <meyering@redhat.com>
19252
19253         GNUmakefile: handle "stable" target, not "major"
19254         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19255         lists in maint.mk and announce-gen.  Without this, "make stable"
19256         would fail to ensure that $(VERSION) is up to date.
19257
19258 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19259
19260         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19261         & co.
19262
19263 2010-10-14  Bruno Haible  <bruno@clisp.org>
19264
19265         vasnprintf: Don't set errno to 0.
19266         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19267         block that sets it to 0.
19268         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19269
19270 2010-10-14  Bruno Haible  <bruno@clisp.org>
19271
19272         socketlib: Fix.
19273         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19274         gl_PREREQ_SYS_H_WINSOCK2.
19275         Reported by Ian Beckwith <ianb@erislabs.net>.
19276
19277 2010-10-13  Jim Meyering  <meyering@redhat.com>
19278
19279         test-select-stdin.c: avoid warn_unused_result warnings
19280         * tests/test-select-stdin.c: Include "macros.h".
19281         ASSERT that read and fflush succeed.
19282
19283 2010-10-13  Jim Meyering  <meyering@redhat.com>
19284
19285         git-version-gen: do require git-VC'd files in cwd
19286         * build-aux/git-version-gen: Reject a git version string
19287         if there are no commits associated with the current directory.
19288         This avoids an unlikely false-positive (unrelated dir whose parent
19289         repository also contains a tag matching v*), as pointed out
19290         by Giuseppe Scrivano in
19291         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19292
19293 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19294
19295         argv-iter: omit nonconforming declaration
19296         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19297         enum arg_iter_err declaration, which doesn't conform to C99.
19298         Solaris 10 cc warns about this.
19299
19300 2010-10-13  Eric Blake  <eblake@redhat.com>
19301
19302         termios: fix compilation on mingw
19303         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19304         (gl_TERMIOS_H): Adjust it on mingw.
19305         * modules/termios (Makefile.am): Substitute new key.
19306         * lib/termios.in.h (includes): Make include_next conditional.
19307         * doc/posix-headers/termios.texi (termios.h): Update
19308         documentation.
19309         Reported by Daniel P. Berrange.
19310
19311 2010-10-13  Jim Meyering  <meyering@redhat.com>
19312
19313         git-version-gen: don't require that .git/ be in the current dir
19314         * build-aux/git-version-gen: Adjust this script so that it works
19315         when run from any working directory beneath the top-level .git/-
19316         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19317         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19318
19319         test-select: avoid warn_unused_result warnings
19320         * tests/test-select.c: Include "macros.h".
19321         ASSERT that each call to read, write, and pipe succeeds.
19322         While not technically required, also check each "close".
19323         * modules/select-tests (Files): Add tests/macros.h.
19324
19325         test-symlinkat: remove declaration of unused local
19326         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19327
19328         test-inttostr: avoid shadowing warnings
19329         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19330         and use malloc rather than the stack for the same reason as
19331         mentioned in the comment justifying the other allocation.
19332
19333 2010-10-11  Bruno Haible  <bruno@clisp.org>
19334
19335         stdlib: Allow multiple gnulib generated replacements to coexist.
19336         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19337         Reported by Sam Steingold <sds@gnu.org>.
19338
19339 2010-10-11  Jim Meyering  <meyering@redhat.com>
19340
19341         fix a documentation typo
19342         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19343
19344 2010-10-11  Eric Blake  <eblake@redhat.com>
19345
19346         futimens: work around Solaris 11 bug
19347         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19348         * tests/test-futimens.h (test_futimens): Enhance, rather than
19349         weaken test.
19350         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19351
19352 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19353
19354         Indentation.
19355         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19356         higher-level operators more to the left.
19357
19358 2010-10-11  Jim Meyering  <meyering@redhat.com>
19359
19360         test-futimens: avoid unwarranted test failure on Solaris 5.11
19361         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19362         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19363         because it tries to dereference the NULL name argument.
19364
19365 2010-10-11  Bruno Haible  <bruno@clisp.org>
19366
19367         Indentation.
19368         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19369         indentation.
19370
19371 2010-10-11  Jim Meyering  <meyering@redhat.com>
19372
19373         spawn.in.h: make indentation consistent with parentheses
19374         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19375         Make indentation consistent with parentheses.
19376
19377 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19378
19379         Fix mismatched parens in previous commit
19380         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19381         parens.
19382
19383 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19384
19385         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19386
19387         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19388         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19389         * lib/malloca.c: Include "verify.h".
19390         (verify1): Remove, replacing with a verify call.
19391         * lib/relocwrapper.c (verify1): Likewise.
19392         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19393         Likewise.
19394         * modules/malloca (Depends-on): Add 'verify'.
19395         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19396         * modules/vasnprintf (Depends-on): Add 'verify'.
19397         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19398         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19399         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19400         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19401         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19402         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19403         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19404
19405         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19406
19407         Formerly the style was sometimes 2*X - 1, because the C standard
19408         was wrongly thought to disallow ?: in integral constant expressions.
19409         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19410         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19411         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19412         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19413         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19414         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19415         verify that time_t cannot be floating.
19416
19417 2010-10-08  Eric Blake  <eblake@redhat.com>
19418
19419         time: enforce recent POSIX ruling that time_t is integral
19420         * lib/time.in.h (__time_t_must_be_integral): Detect any
19421         problematic systems, allowing the rest of gnulib to assume POSIX.
19422
19423 2010-10-08  Jim Meyering  <meyering@redhat.com>
19424
19425         fdopendir: fix a bug on systems lacking openat and /proc support
19426         OpenBSD 4.7 is one such system.  The most noticeable effect was
19427         failure of any application making nontrivial use of fts: rm, du,
19428         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19429           ./rm: traversal failed: `a': Bad file descriptor
19430         Debugging that, you see that even though FD 6 was closed just
19431         prior to the opendir call in fd_clone_opendir, its resulting
19432         dir->dd_fd was 8, rather than the expected value of 6:
19433
19434         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19435         93                close (fd);
19436         (gdb) n
19437         94                dir = fd_clone_opendir (dupfd);
19438         (gdb) n
19439         95                saved_errno = errno;
19440         (gdb) p dir->dd_fd
19441         $11 = 8
19442
19443         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19444         The problem is that on OpenBSD, fd_clone_opendir has to resort
19445         to using the old-style save/restore CWD mechanism, due to its
19446         lack of openat/proc support, and *that* would steal the FD (6)
19447         that opendir was supposed to use.
19448
19449         The fix is to squirrel away the desired FD so that save_cwd uses a
19450         different one, and then free the dest FD right before calling opendir.
19451         That guarantees opendir will use the required file descriptor.
19452
19453         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19454
19455 2010-10-08  Bruno Haible  <bruno@clisp.org>
19456
19457         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19458         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19459
19460 2010-10-08  Bruno Haible  <bruno@clisp.org>
19461
19462         nanosleep: Make replacement POSIX compliant.
19463         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19464         is out of range.
19465         Reported by Jim Meyering.
19466
19467 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19468
19469         bootstrap: add hook for altering gnulib.mk, for Bison
19470         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19471         the Bison bootstrapping process can rewrite file names and variables
19472         in this file before later parts of 'bootstrap' use the file.
19473         Bison wants to include lib/gnulib.mk from the top-level makefile,
19474         so it needs the file names in this file to be relative to the top
19475         level, not relative to lib; plus it needs variable names to be
19476         rewritten.
19477         (slurp): Use the new function.
19478
19479         bootstrap: reformat for readability
19480         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19481
19482 2010-10-08  Eric Blake  <eblake@redhat.com>
19483
19484         docs: update cygwin progress
19485         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19486         1.7.7.
19487         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19488         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19489         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19490         * doc/posix-functions/carg.texi (carg): Likewise.
19491         * doc/posix-functions/cargf.texi (cargf): Likewise.
19492         * doc/posix-functions/casin.texi (casin): Likewise.
19493         * doc/posix-functions/casinf.texi (casinf): Likewise.
19494         * doc/posix-functions/casinh.texi (casinh): Likewise.
19495         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19496         * doc/posix-functions/catan.texi (catan): Likewise.
19497         * doc/posix-functions/catanf.texi (catanf): Likewise.
19498         * doc/posix-functions/catanh.texi (catanh): Likewise.
19499         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19500         * doc/posix-functions/ccos.texi (ccos): Likewise.
19501         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19502         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19503         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19504         * doc/posix-functions/cexp.texi (cexp): Likewise.
19505         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19506         * doc/posix-functions/cimag.texi (cimag): Likewise.
19507         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19508         * doc/posix-functions/clog.texi (clog): Likewise.
19509         * doc/posix-functions/clogf.texi (clogf): Likewise.
19510         * doc/posix-functions/conj.texi (conj): Likewise.
19511         * doc/posix-functions/conjf.texi (conjf): Likewise.
19512         * doc/posix-functions/cpow.texi (cpow): Likewise.
19513         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19514         * doc/posix-functions/cproj.texi (cproj): Likewise.
19515         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19516         * doc/posix-functions/creal.texi (creal): Likewise.
19517         * doc/posix-functions/crealf.texi (crealf): Likewise.
19518         * doc/posix-functions/csin.texi (csin): Likewise.
19519         * doc/posix-functions/csinf.texi (csinf): Likewise.
19520         * doc/posix-functions/csinh.texi (csinh): Likewise.
19521         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19522         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19523         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19524         * doc/posix-functions/ctan.texi (ctan): Likewise.
19525         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19526         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19527         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19528         * doc/posix-headers/complex.texi (complex.h): Likewise.
19529
19530 2010-10-07  Jim Meyering  <meyering@redhat.com>
19531
19532         parse-datetime: avoid compilation failure on OpenBSD 4.7
19533         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19534         This works around a compilation failure on OpenBSD 4.7:
19535         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19536
19537 2010-10-07  Eric Blake  <eblake@redhat.com>
19538
19539         docs: update cygwin progress
19540         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19541         1.7.6.
19542         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19543         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19544         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19545         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19546         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19547         Likewise.
19548         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19549         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19550         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19551         Likewise.
19552         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19553         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19554         Likewise.
19555         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19556         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19557         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19558         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19559         Likewise.
19560         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19561         Likewise.
19562         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19563
19564         docs: update parse-datetime history
19565         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19566         documentation of this function's history and alternatives.
19567
19568         cygwin: use more robust version check
19569         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19570         exclude an eventual cygwin 1.9.1.
19571         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19573         (gl_FUNC_STRCASESTR): Likewise.
19574         Reported by Bruno Haible.
19575
19576 2010-10-06  Bruno Haible  <bruno@clisp.org>
19577
19578         string, sys_select: Avoid #including large headers unless necessary.
19579         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19580         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19581         OSF/1, BeOS, Haiku.
19582         Reported by Jim Meyering.
19583
19584 2010-10-05  Eric Blake  <eblake@redhat.com>
19585
19586         memmem, strstr, strcasestr: fix bug with long periodic needle
19587         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19588         periodic needle having false positive.
19589         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19590         and cygwin 1.7.7.
19591         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19592         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19593         (gl_FUNC_STRCASESTR): Likewise.
19594         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19595         * tests/test-memmem.c (main): Expose the bug.
19596         * tests/test-strcasestr.c (main): Likewise.
19597         * tests/test-strstr.c (main): Likewise.
19598         * tests/test-c-strcasestr.c (main): Likewise.
19599         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19600         * doc/posix-functions/strstr.texi (strstr): Likewise.
19601         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19602         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19603
19604 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19605
19606         parse-datetime: do some more renaming
19607         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19608         parse_datetime, not get_date.  Mention the renaming.
19609         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19610         in comments.
19611         * m4/bison.m4: Likewise.
19612
19613 2010-10-05  Eric Blake  <eblake@redhat.com>
19614
19615         parse-datetime: better name than get_date
19616         * NEWS: Reword the deprecation notice.
19617         * modules/get_date: Rename to modules/parse-datetime.
19618         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19619         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19620         * lib/get_date.y: Rename to lib/parse-datetime.y.
19621         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19622         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19623         * doc/getdate.texi: Provide fallback wrapper.
19624         * lib/getdate.h: Move guts, and wrap...
19625         * lib/parse-datetime.h: ...new file.
19626         * lib/parse-datetime.y (get_date): Rename...
19627         (parse_datetime): ...to this.
19628         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19629         (gl_PARSE_DATETIME): ...to this.
19630         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19631         documentation.
19632         * modules/getdate (Files): Provide fallback docs and header.
19633         (Notice, Depends-on): Update references.
19634         * tests/test-parse-datetime.c: Likewise.
19635         * DEPENDENCIES: Likewise.
19636         * MODULES.html.sh (Date and time <time.h>): Likewise.
19637         * doc/parse-datetime.texi (Date input formats)
19638         (Authors of parse_datetime): Likewise.
19639         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19640         (Include): Likewise.
19641         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19642         * gnulib-tool: Likewise.
19643         * m4/bison.m4 (gl_BISON): Likewise.
19644         Suggested by Bruno Haible.
19645
19646 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19647
19648         more ports to Solaris tr, which needs [] around ranges
19649         * gnulib-tool: Solaris tr needs [] around ranges.
19650         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19651         * tests/test-pipe-filter-gi1.c (main): Likewise.
19652         * tests/test-pipe-filter-ii1.c (main): Likewise.
19653
19654 2010-10-05  Eric Blake  <eblake@redhat.com>
19655
19656         bootstrap: fix Solaris regression
19657         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19658         around ranges.
19659         Reported by Pádraig Brady.
19660
19661         bootstrap: work with pkg-config
19662         * build-aux/bootstrap (check_versions): Also transliterate - in
19663         prerequisite name.
19664         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19665         prerequisites that were already found, to avoid confusion.
19666         Reported by Justin Clift.
19667
19668         faccessat: remove unused wrappers
19669         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19670         presence of these wrappers dragged in -lgen on Solaris.
19671         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19672
19673 2010-10-05  Jim Meyering  <meyering@redhat.com>
19674
19675         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19676         * Makefile (sc_pragma_columns): New syntax-check rule.
19677
19678 2010-10-04  Bruno Haible  <bruno@clisp.org>
19679
19680         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19681         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19682         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19683         Reported by Bruce Korb and Eric Blake.
19684
19685 2010-10-04  Bruno Haible  <bruno@clisp.org>
19686
19687         threadlib: Make option --with-libpth-prefix work.
19688         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19689         use $LIBPTH, not just -lpth.
19690
19691 2010-10-04  Bruno Haible  <bruno@clisp.org>
19692
19693         Avoid line length limitation from HP NonStop system header files.
19694         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19695         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19696         * lib/ctype.in.h: Likewise.
19697         * lib/dirent.in.h: Likewise.
19698         * lib/errno.in.h: Likewise.
19699         * lib/fcntl.in.h: Likewise.
19700         * lib/float.in.h: Likewise.
19701         * lib/getopt.in.h: Likewise.
19702         * lib/iconv.in.h: Likewise.
19703         * lib/inttypes.in.h: Likewise.
19704         * lib/langinfo.in.h: Likewise.
19705         * lib/locale.in.h: Likewise.
19706         * lib/math.in.h: Likewise.
19707         * lib/netdb.in.h: Likewise.
19708         * lib/netinet_in.in.h: Likewise.
19709         * lib/poll.in.h: Likewise.
19710         * lib/pthread.in.h: Likewise.
19711         * lib/pty.in.h: Likewise.
19712         * lib/sched.in.h: Likewise.
19713         * lib/se-selinux.in.h: Likewise.
19714         * lib/search.in.h: Likewise.
19715         * lib/signal.in.h: Likewise.
19716         * lib/spawn.in.h: Likewise.
19717         * lib/stdarg.in.h: Likewise.
19718         * lib/stddef.in.h: Likewise.
19719         * lib/stdint.in.h: Likewise.
19720         * lib/stdio.in.h: Likewise.
19721         * lib/stdlib.in.h: Likewise.
19722         * lib/string.in.h: Likewise.
19723         * lib/strings.in.h: Likewise.
19724         * lib/sys_file.in.h: Likewise.
19725         * lib/sys_ioctl.in.h: Likewise.
19726         * lib/sys_select.in.h: Likewise.
19727         * lib/sys_socket.in.h: Likewise.
19728         * lib/sys_stat.in.h: Likewise.
19729         * lib/sys_time.in.h: Likewise.
19730         * lib/sys_times.in.h: Likewise.
19731         * lib/sys_utsname.in.h: Likewise.
19732         * lib/sys_wait.in.h: Likewise.
19733         * lib/sysexits.in.h: Likewise.
19734         * lib/termios.in.h: Likewise.
19735         * lib/time.in.h: Likewise.
19736         * lib/unistd.in.h: Likewise.
19737         * lib/wchar.in.h: Likewise.
19738         * lib/wctype.in.h: Likewise.
19739         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19740         * modules/ctype (Makefile.am): Likewise.
19741         * modules/dirent (Makefile.am): Likewise.
19742         * modules/errno (Makefile.am): Likewise.
19743         * modules/fcntl-h (Makefile.am): Likewise.
19744         * modules/float (Makefile.am): Likewise.
19745         * modules/getopt-posix (Makefile.am): Likewise.
19746         * modules/iconv-h (Makefile.am): Likewise.
19747         * modules/inttypes (Makefile.am): Likewise.
19748         * modules/langinfo (Makefile.am): Likewise.
19749         * modules/locale (Makefile.am): Likewise.
19750         * modules/math (Makefile.am): Likewise.
19751         * modules/netdb (Makefile.am): Likewise.
19752         * modules/netinet_in (Makefile.am): Likewise.
19753         * modules/poll-h (Makefile.am): Likewise.
19754         * modules/pthread (Makefile.am): Likewise.
19755         * modules/pty (Makefile.am): Likewise.
19756         * modules/sched (Makefile.am): Likewise.
19757         * modules/search (Makefile.am): Likewise.
19758         * modules/selinux-h (Makefile.am): Likewise.
19759         * modules/signal (Makefile.am): Likewise.
19760         * modules/spawn (Makefile.am): Likewise.
19761         * modules/stdarg (Makefile.am): Likewise.
19762         * modules/stddef (Makefile.am): Likewise.
19763         * modules/stdint (Makefile.am): Likewise.
19764         * modules/stdio (Makefile.am): Likewise.
19765         * modules/stdlib (Makefile.am): Likewise.
19766         * modules/string (Makefile.am): Likewise.
19767         * modules/strings (Makefile.am): Likewise.
19768         * modules/sys_file (Makefile.am): Likewise.
19769         * modules/sys_ioctl (Makefile.am): Likewise.
19770         * modules/sys_select (Makefile.am): Likewise.
19771         * modules/sys_socket (Makefile.am): Likewise.
19772         * modules/sys_stat (Makefile.am): Likewise.
19773         * modules/sys_time (Makefile.am): Likewise.
19774         * modules/sys_times (Makefile.am): Likewise.
19775         * modules/sys_utsname (Makefile.am): Likewise.
19776         * modules/sys_wait (Makefile.am): Likewise.
19777         * modules/sysexits (Makefile.am): Likewise.
19778         * modules/termios (Makefile.am): Likewise.
19779         * modules/time (Makefile.am): Likewise.
19780         * modules/unistd (Makefile.am): Likewise.
19781         * modules/wchar (Makefile.am): Likewise.
19782         * modules/wctype (Makefile.am): Likewise.
19783
19784 2010-10-04  Bruno Haible  <bruno@clisp.org>
19785
19786         read-file tests: Avoid a test failure on NonStop Kernel.
19787         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19788         a regular file.
19789         Reported by Joachim Schmitz <schmitz@hp.com>.
19790
19791 2010-10-03  Bruno Haible  <bruno@clisp.org>
19792
19793         gnulib-tool: Fixes for --create-testdir with --libtool.
19794         * gnulib-tool (func_get_automake_snippet): Don't augment
19795         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19796         an executable.
19797         (func_create_testdir): Handle module 'alloca' like func_import.
19798         Reported by Bruce Korb <bruce.korb@gmail.com>.
19799
19800 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19801
19802         Avoid some lines longer than 80 characters.
19803         * lib/stdint.in.h: Break long comment lines.
19804         * lib/math.in.h: Likewise.
19805         (_GL_NUM_UINT_WORDS): New macro, for readability.
19806         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19807         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19808         * lib/stdlib.in.h: Likewise.
19809         * lib/spawn.in.h: Likewise.
19810         * lib/sys_socket.in.h: Update an URL.
19811         * lib/sys_stat.in.h: Break long line.
19812
19813 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19814
19815         Improve pmccabe2html.
19816         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19817         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19818         when the sources change. Remove the line in the HTML about "Used
19819         ranges" (which implied that there might be other unused ranges),
19820         rename "Resume" to "Summary" (easier to understand for more users).
19821         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19822         styles, and some unnecessary blank lines.
19823
19824 2010-10-03  Bruno Haible  <bruno@clisp.org>
19825             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19826
19827         acl: Add support for ACLs on NonStop Kernel.
19828         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19829         Check whether the function aclsort() exists.
19830         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19831         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19832         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19833         (acl_nontrivial [HAVE_ACLSORT]: New function.
19834         (file_has_acl): Implement for NonStop Kernel.
19835         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19836         (qset_acl): Implement for NonStop Kernel.
19837         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19838         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19839         (main): Implement for NonStop Kernel.
19840         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19841         Kernel. Handle this flavor.
19842         * tests/test-set-mode-acl.sh: Likewise.
19843         * tests/test-copy-acl.sh: Likewise.
19844         * tests/test-copy-file.sh: Likewise.
19845
19846 2010-10-03  Bruno Haible  <bruno@clisp.org>
19847
19848         Info about ACLs on NonStop Kernel.
19849         * doc/acl-resources.txt: Add info about NonStop Kernel.
19850         References by Joachim Schmitz <schmitz@hp.com>.
19851
19852 2010-10-02  Bruno Haible  <bruno@clisp.org>
19853
19854         Define missing EDQUOT on NonStop Kernel.
19855         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19856         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19857         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19858         missing.
19859         * doc/posix-headers/errno.texi: Mention the NSK bug.
19860         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19861         Reported by Joachim Schmitz <schmitz@hp.com>.
19862
19863 2010-10-02  Bruno Haible  <bruno@clisp.org>
19864
19865         Update doc for POSIX:2008.
19866         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19867         Update URL of POSIX specification.
19868
19869 2010-10-02  Bruno Haible  <bruno@clisp.org>
19870
19871         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19872         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19873         from gnulib, not from Automake.
19874
19875 2010-10-02  Bruno Haible  <bruno@clisp.org>
19876
19877         New module 'system-posix'.
19878         * modules/system-posix: New file.
19879         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19880         module is present.
19881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19882         GNULIB_SYSTEM_POSIX.
19883         * modules/stdlib (Depends-on): Remove sys_wait.
19884         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19885         * doc/posix-functions/system.texi: Mention the new module.
19886         * doc/posix-headers/stdlib.texi: Likewise.
19887         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19888         define test_sys_wait_macros to a no-op.
19889         Reported by Sam Steingold <sds@gnu.org>.
19890
19891 2010-09-30  Bruno Haible  <bruno@clisp.org>
19892
19893         More renaming from 'getdate' to 'get_date'.
19894         * doc/get_date.texi: Renamed from doc/getdate.texi.
19895         * modules/get_date (Files): Update.
19896         * MODULES.html.sh (Date and time <time.h>): Update.
19897         * DEPENDENCIES: Update.
19898         * gnulib-tool: Update comment.
19899         * m4/bison.m4 (gl_BISON): Likewise.
19900         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19901
19902 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19903
19904         bootstrap: support ACLOCAL_FLAGS during aclocal
19905         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19906         can add additional -I dir for third-party .m4 files.
19907
19908 2010-09-30  Eric Blake  <eblake@redhat.com>
19909
19910         bootstrap: use glibtoolize on MacOS
19911         * build-aux/bootstrap (check_versions): Convert libtool into
19912         libtoolize.
19913         (tool search): Move libtool check earlier, and look for
19914         glibtoolize for MacOS.
19915         (gnulib_tool_options): Auto-add --libtool when appropriate.
19916         Reported by Justin Clift.
19917
19918         poll: fix typo that broke test on MacOS
19919         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19920         Reported by Justin Clift.
19921
19922         getdate: rename to get_date
19923         Note: getdate.h is not renamed, to minimize client impact.
19924         * modules/getdate: Mark obsolete.  Move old contents...
19925         * modules/get_date: ...to new module name.
19926         * modules/getdate-tests: Move...
19927         * modules/get_date-tests: ...here.
19928         * m4/getdate.m4: Move...
19929         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19930         * lib/getdate.y: Move...
19931         * lib/get_date.y: ...here.
19932         * tests/test-getdate.c: Move...
19933         * tests/test-get_date.c: ...here.
19934         * doc/posix-functions/getdate.texi (getdate): Update name.
19935         * NEWS: Mention the change.
19936
19937 2010-09-29  Bruno Haible  <bruno@clisp.org>
19938
19939         Separate the module 'waitpid' from the module 'sys_wait'.
19940         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19941         present.
19942         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19943         gl_MODULE_INDICATOR_FOR_TESTS.
19944         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19945         * modules/sys_wait (Depends-on): Remove waitpid.
19946         (Makefile.am): Substitute GNULIB_WAITPID.
19947         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19948         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19949         signature only if the 'waitpid' module is present.
19950         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19951         * NEWS: Mention the change.
19952         * modules/grantpt (Depends-on): Add waitpid.
19953         * modules/wait-process (Depends-on): Likewise.
19954
19955 2010-09-29  Bruno Haible  <bruno@clisp.org>
19956
19957         More tests for module 'sys_wait'.
19958         * modules/sys_wait-c++-tests: New file.
19959         * tests/test-sys_wait-c++.cc: New file.
19960         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19961         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19962
19963 2010-09-29  Bruno Haible  <bruno@clisp.org>
19964
19965         New module 'waitpid'.
19966         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19967         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19968         Don't include <process.h>.
19969         (waitpid): Declare only, using modern idiom.
19970         * m4/waitpid.m4: New file.
19971         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19972         * modules/waitpid: New file.
19973         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19974         (Makefile.am): Update.
19975         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19976
19977 2010-09-28  Bruno Haible  <bruno@clisp.org>
19978
19979         poll: Assume ANSI C.
19980         * lib/poll.c (poll): Use an ANSI C declaration.
19981
19982 2010-09-28  Bruno Haible  <bruno@clisp.org>
19983
19984         poll-h: Create poll.h on all platforms.
19985         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19986         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19987         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
19988         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
19989         (gl_REPLACE_POLL_H): Don't set POLL_H.
19990         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
19991         * modules/poll-h (Depends-on): Add include_next.
19992         (Makefile.am): Create poll.h unconditionally. Substitute also
19993         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
19994
19995 2010-09-28  Bruno Haible  <bruno@clisp.org>
19996
19997         Tests for module 'poll-h'.
19998         * modules/poll-h-c++-tests: New file.
19999         * tests/test-poll-h-c++.cc: New file.
20000
20001         Tests for module 'poll-h'.
20002         * modules/poll-h-tests: New file.
20003         * tests/test-poll-h.c: New file.
20004
20005 2010-09-28  Bruno Haible  <bruno@clisp.org>
20006
20007         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20008         * modules/poll-h (Depends-on): Add 'extensions'.
20009
20010 2010-09-28  Bruno Haible  <bruno@clisp.org>
20011
20012         New module 'poll-h'.
20013         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20014         (poll): Use modern idiom.
20015         * modules/poll-h: New file.
20016         * modules/poll (Files): Remove lib/poll.in.h.
20017         (Depends-on): Add poll-h.
20018         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20019         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20020         * m4/poll_h.m4: New file.
20021         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20022         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20023         and invoke gl_REPLACE_POLL_H.
20024         * lib/poll.c: Use common idiom.
20025         * tests/test-poll.c: Likewise.
20026         * doc/posix-headers/poll.texi: Mention the poll-h module.
20027         Suggested by Eric Blake.
20028
20029 2010-09-26  Bruno Haible  <bruno@clisp.org>
20030
20031         sys_wait: Implement WSTOPSIG.
20032         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20033         Reported by Simon Josefsson.
20034
20035 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20036
20037         stdlib, sys_wait: Avoid compilation error on mingw.
20038         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20039
20040 2010-09-26  Bruno Haible  <bruno@clisp.org>
20041
20042         stdlib tests: Avoid code duplication.
20043         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20044         * modules/sys_wait-tests (Files): Likewise.
20045         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20046         * tests/test-stdlib.c: Include test-sys_wait.h.
20047         (main): Invoke test_sys_wait_macros.
20048         * tests/test-sys_wait.c: Include test-sys_wait.h.
20049         (main): Invoke test_sys_wait_macros.
20050
20051 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20052
20053         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20054         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20055         sure Windows sockets are working before calling getaddrinfo.
20056         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20057         * doc/gnulib.texi (Windows sockets): Fix typo.
20058
20059 2010-09-25  Bruno Haible  <bruno@clisp.org>
20060
20061         Tests for module 'regex-quote'.
20062         * modules/regex-quote-tests: New file.
20063         * tests/test-regex-quote.c: New file.
20064
20065         New module 'regex-quote'.
20066         * lib/regex-quote.h: New file.
20067         * lib/regex-quote.c: New file.
20068         * modules/regex-quote: New file.
20069         Suggested by Reuben Thomas <rrt@sc3d.org>.
20070
20071 2010-09-24  Bruno Haible  <bruno@clisp.org>
20072
20073         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20074         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20075
20076 2010-09-23  Bruno Haible  <bruno@clisp.org>
20077
20078         setenv: Relax license.
20079         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20080         Blake.
20081         Requested by Eric Blake.
20082
20083 2010-09-22  Bruno Haible  <bruno@clisp.org>
20084
20085         termios: Relax license.
20086         * modules/termios (License): Change to LGPLv2+.
20087         Requested by Eric Blake.
20088
20089 2010-09-22  Bruno Haible  <bruno@clisp.org>
20090
20091         threadlib: Allow the package to change the default to 'no'.
20092         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20093         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20094         Reported by Paul Eggert.
20095
20096 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20097             Bruno Haible  <bruno@clisp.org>
20098
20099         Fix endless loop in mbmemcasecoll.
20100         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20101         byte.
20102         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20103
20104 2010-09-22  Bruno Haible  <bruno@clisp.org>
20105
20106         Tests for module 'memcoll'.
20107         * modules/memcoll-tests: New file.
20108         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20109
20110         memcoll, xmemcoll: Clarify size vs. length.
20111         * modules/memcoll.c (memcoll0): Clarify specification.
20112         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20113         passed to collate_error.
20114
20115 2010-09-22  Bruno Haible  <bruno@clisp.org>
20116
20117         Tests for module 'memcasecmp'.
20118         * modules/memcasecmp-tests: New file.
20119         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20120
20121 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20122
20123         * lib/pthread.in.h: Add split double-inclusion guard, and include
20124         system <pthread.h> if there is one.  Use @@-style as in other
20125         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20126         pthread.h doesn't.
20127         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20128         (pthread_mutexattr_settype, pthread_mutex_trylock):
20129         New static inline functions, if there's no system <pthread.h>.
20130         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20131         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20132         Approximate with mutexes if the system lacks spinlocks, as in
20133         MacOS.
20134         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20135         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20136         @@-style.  Check for spinlocks separately.
20137         (gl_PTHREAD_DEFAULTS): New macro.
20138         * modules/pthread: Redo to use a more typical style for in.h files.
20139
20140 2010-09-21  Eric Blake  <eblake@redhat.com>
20141
20142         net_if: enhance tests
20143         * tests/test-net_if.c (main): Move signature checks earlier.
20144         Print failures to stderr.
20145         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20146         Document the bug that we do not yet fix.
20147
20148 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20149
20150         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20151         about gnulib, not GSS.
20152
20153 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20154
20155         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20156         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20157         for Emacs.
20158         * build-aux/pmccabe2html: Make Makefile.am example code more
20159         cut-and-paste friendly.
20160
20161 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20162
20163         * tests/test-net_if.c: New file.
20164         * modules/net_if-tests: New file.
20165
20166 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20167
20168         pthread: add pthread_spin_destroy
20169         * lib/pthread.in.h (pthread_spin_destroy): New function.
20170
20171 2010-09-19  Bruno Haible  <bruno@clisp.org>
20172
20173         gnulib-tool: Fix --help output.
20174         * gnulib-tool (func_usage): Fix help message.
20175         Reported by Reuben Thomas <rrt@sc3d.org>.
20176
20177 2010-09-18  Jim Meyering  <meyering@redhat.com>
20178
20179         maint.mk: avoid unexpanded \n in two diagnostics
20180         * top/maint.mk (sc_prohibit_always_true_header_tests):
20181         Don't use a literal \n in a halt=... assignment.  It would not be
20182         expanded, and the two \n bytes would appear in the diagnostic output
20183         rather than the desired newline.  Use halt=$$(printf ... instead.
20184         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20185
20186 2010-09-18  Bruno Haible  <bruno@clisp.org>
20187
20188         netinet_in: Doc tweak.
20189         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20190         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20191
20192 2010-09-18  Jim Meyering  <meyering@redhat.com>
20193
20194         init.sh: correct an outdated comment
20195         * tests/init.sh (create_exe_shims_):  s/function/alias/
20196
20197         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20198         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20199         a file named "*.exe" is removed between the glob expansion and the
20200         processing of that oddly named file.
20201
20202 2010-09-17  Eric Blake  <eblake@redhat.com>
20203
20204         mirbsd: add some more support
20205         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20206         in BSD family.
20207         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20208         devices as OpenBSD.
20209         * m4/host-os.m4 (mirbsd): Add MirBSD.
20210
20211         tests: fix unportable assumption on sys/wait.h
20212         * tests/test-sys_wait.c (main): Relax test.
20213         * tests/test-stdlib.c (main): Likewise.
20214
20215         init.sh: accomodate directory with no .exes
20216         * tests/init.sh: Accomodate directory containing only scripts.
20217
20218         tests: avoid compiler warning
20219         * tests/test-stdlib.c (main): Use the variable.
20220
20221         fdutimens, fdutimensat: update signature, again
20222         * lib/utimens.h (gl_futimens): Delete, and move signature...
20223         (fdutimens): ...here.
20224         (fdutimensat): Rearrange signature.
20225         (lutimensat): Rename variable for clarity.
20226         * lib/fdutimensat.c (fdutimensat): Update signature.
20227         * lib/utimens.c (fdutimens): Likewise.
20228         (gl_futimens): Delete.
20229         (utimens, lutimens): Update callers.
20230         * lib/futimens.c (futimens): Likewise.
20231         * tests/test-fdutimensat.c: Likewise.
20232         * tests/test-utimens.c: Likewise.
20233         * tests/test-futimens.h: Update comment.
20234         * NEWS: Mention this.
20235         Suggested by Paul Eggert.
20236
20237 2010-09-17  Bruno Haible  <bruno@clisp.org>
20238
20239         Take over the maintenance of some older macros from Autoconf.
20240         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20241         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20242         GNU Autoconf.
20243         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20244         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20245
20246 2010-09-17  Eric Blake  <eblake@redhat.com>
20247
20248         fdutimensat: drop atflag validation
20249         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20250         with valid fd, to close a race scenario where futimens is
20251         unsupported and FILE was replaced by a symlink.
20252         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20253         accordingly.
20254         Suggested by Paul Eggert.
20255
20256 2010-09-16  Bruno Haible  <bruno@clisp.org>
20257
20258         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20259         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20260
20261 2010-09-16  Bruno Haible  <bruno@clisp.org>
20262
20263         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20264         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20265         login_tty exists.
20266         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20267
20268 2010-09-16  Bruno Haible  <bruno@clisp.org>
20269
20270         login_tty: Make the replacement code work on BSD systems.
20271         * lib/login_tty.c: Include <sys/ioctl.h>.
20272         (login_tty): Use ioctl TIOCSCTTY when available.
20273         * modules/login_tty (Depends-on): Add sys_ioctl.
20274         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20275
20276 2010-09-16  Bruno Haible  <bruno@clisp.org>
20277
20278         login_tty: Stricter unit test.
20279         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20280         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20281         and tcgetsid() after login_tty.
20282         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20283
20284 2010-09-16  Bruno Haible  <bruno@clisp.org>
20285
20286         New module 'tcgetsid'.
20287         * lib/tcgetsid.c: New file.
20288         * m4/tcgetsid.m4: New file.
20289         * modules/tcgetsid: New file.
20290         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20291         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20292         GNULIB_TCGETSID, HAVE_TCGETSID.
20293         * lib/termios.in.h: Include <sys/types.h>.
20294         (tcgetsid): New declaration.
20295         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20296         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20297         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20298         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20299
20300 2010-09-16  Bruno Haible  <bruno@clisp.org>
20301
20302         Tests for module 'termios'.
20303         * modules/termios-c++-tests: New file.
20304         * modules/termios-tests: New file.
20305         * tests/test-termios-c++.cc: New file.
20306         * tests/test-termios.c: New file.
20307
20308         New module 'termios'.
20309         * modules/termios: New file.
20310         * lib/termios.in.h: New file.
20311         * m4/termios_h.m4: New file.
20312         * doc/posix-headers/termios.texi: Mention the new module.
20313
20314 2010-09-16  Eric Blake  <eblake@redhat.com>
20315
20316         fdutimensat: add an atflag parameter
20317         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20318         * lib/utimens.h (fdutimensat): Update prototype.
20319         * tests/test-fdutimensat.c: Adjust test to match.
20320         * NEWS: Document the change.
20321         Suggested by Paul Eggert.
20322
20323 2010-09-16  Bruno Haible  <bruno@clisp.org>
20324
20325         Fix typos in comments.
20326         * lib/striconveh.h: Fix typo in comment.
20327         * lib/login_tty.c (login_tty): Likewise.
20328
20329 2010-09-15  Bruno Haible  <bruno@clisp.org>
20330
20331         stdlib: clarify MirBSD WEXITSTATUS bug
20332         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20333         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20334
20335 2010-09-15  Eric Blake  <eblake@redhat.com>
20336
20337         stdlib: work around MirBSD WEXITSTATUS bug
20338         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20339         * modules/stdlib (Depends-on): Add sys_wait.
20340         * tests/test-sys_wait.c (main): Enhance test.
20341         * tests/test-stdlib.c (main): Likewise.
20342         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20343
20344         docs: mention MacOS issue with WEXITSTATUS(constant)
20345         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20346         issue.
20347         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20348
20349         strnlen: add tests
20350         * modules/strnlen-tests: New file.
20351         * tests/test-strnlen.c: Likewise.
20352
20353 2010-09-14  Bruno Haible  <bruno@clisp.org>
20354
20355         unistr/base: Avoid link errors when module 'libunistring' is also used.
20356         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20357         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20358         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20359         Declare also when HAVE_LIBUNISTRING is set.
20360         Reported by Pádraig Brady <P@draigbrady.com>.
20361
20362 2010-09-14  Eric Blake  <eblake@redhat.com>
20363
20364         test-rawmemchr: make more robust
20365         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20366         (Depends-on, configure.ac): Add needed prerequisites to use it.
20367         * modules/memchr-tests (Files, Depends-on, configure.ac):
20368         Likewise, to avoid implicit reliance on memchr module prereqs.
20369         * tests/test-memchr.c (main): Ensure proper masking.
20370         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20371         reads.
20372
20373         memchr: detect glibc Alpha bug
20374         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20375         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20376         Alpha.
20377         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20378         * tests/test-memchr.c (main): Enhance test.
20379         Reported by Nelson H. F. Beebe.
20380
20381 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20382
20383         fts, getcwd, glob: audit for dirfd returning -1
20384         * lib/fts.c (opendir): Remove #define; no longer used.
20385         (opendirat): New arg PDIR_FD.  All callers changed.
20386         (fts_build, _opendir2): Use new opendirat to avoid the need for
20387         dirfd, or for checking whether dirfd returns a negative value.
20388         Don't use opendir; always use openat followed by fdopendir.
20389         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20390         it.
20391         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20392         returns -1 here.
20393         * modules/fts (Depends-on): Remove dirfd.
20394         * modules/getcwd (Depends-on): Likewise.
20395
20396 2010-09-13  Eric Blake  <eblake@redhat.com>
20397
20398         float: fix broken MirBSD header
20399         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20400         * doc/posix-headers/float.texi (float.h): Document it.
20401
20402 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20403
20404         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20405         * lib/fts.c (opendirat): New arg extra_flags.
20406         (__opendir2): Use it to avoid following symlinks when opening
20407         a directory, if symlinks are not supposed to be followed.  See
20408         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20409
20410         fdopendir: preserve argument fd before returning
20411         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20412         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20413         (fdopendir): Use them, arranging for FD to be open to the same
20414         directory that it was when it started.  (It might be temporarily
20415         closed while fdopendir is running, so this not thread- or
20416         signal-safe.)  Be careful to do the right thing even when file
20417         descriptors are scarce and dup fails with errno == EMFILE.  See
20418         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20419
20420 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20421
20422         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20423         * NEWS: Document change.
20424         * m4/regex.m4: Disable test for regoff_t size.
20425
20426 2010-09-13  Jim Meyering  <meyering@redhat.com>
20427
20428         fts: don't operate on an invalid file descriptor after failed dup
20429         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20430         negative file descriptor.
20431
20432 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20433
20434         savedir: add streamsavedir, deprecate fdsavedir
20435         * NEWS: Mention deprecation of fdsavedir.
20436         * lib/savedir.c (streamsavedir): New extern function, whose name
20437         ends in "savedir" to be consistent with the others.  This differs
20438         from savedirstream in that it doesn't close its argument.  The
20439         next version of GNU tar will use this instead of fdsavedir, to
20440         avoid some race conditions and conserve file descriptors.
20441         (savedirstream): Reimplement as a wrapper around streamsavedir.
20442         (fdsavedir): Add a comment deprecating this function.  As far as
20443         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20444         * lib/savedir.h (streamsavedir): New decl.
20445         (fdsavedir): Add a comment deprecating this.
20446
20447 2010-09-10  Bruno Haible  <bruno@clisp.org>
20448
20449         langinfo: Fix last commit.
20450         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20451         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20452         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20453
20454 2010-09-10  Bruno Haible  <bruno@clisp.org>
20455
20456         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20457         * lib/progreloc.c (O_EXEC): Define fallback.
20458
20459 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20460
20461         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20462         * NEWS: Document recent changes to fcntl-h.
20463         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20464         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20465         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20466         Similarly for O_SEARCH; this last was already true, but not documented.
20467         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20468         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20469         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20470         Likewise.
20471         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20472         is zero, not whether it is defined.
20473         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20474         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20475         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20476
20477 2010-09-10  Bruno Haible  <bruno@clisp.org>
20478
20479         langinfo, nl_langinfo: Fix for IRIX 5.3.
20480         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20481         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20482         HAVE_LANGINFO_YESEXPR.
20483         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20484         HAVE_LANGINFO_YESEXPR.
20485         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20486         HAVE_LANGINFO_T_FMT_AMPM is 0.
20487         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20488         HAVE_LANGINFO_YESEXPR is 0.
20489         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20490         NOEXPR.
20491         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20492         * doc/posix-functions/nl_langinfo.texi: Likewise.
20493         Reported by Eric Blake.
20494
20495 2010-09-10  Bruno Haible  <bruno@clisp.org>
20496
20497         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20498         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20499         on FreeBSD 8.0 and OpenBSD 4.6.
20500         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20501         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20502         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20503         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20504         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20505         ac_includes_default.
20506         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20507
20508 2010-09-09  Eric Blake  <eblake@redhat.com>
20509
20510         strsignal: work around NetBSD bug
20511         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20512         * lib/string.in.h (includes): Likewise.
20513         * doc/posix-functions/strsignal.texi (strsignal): Document the
20514         bug.
20515         Reported by Nelson H. F. Beebe.
20516
20517         gnulib-tool: work with NetBSD /bin/sh
20518         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20519         (func_get_description, func_get_comment, func_get_status)
20520         (func_get_notice, func_get_applicability, func_get_filelist)
20521         (func_get_dependencies, func_get_autoconf_early_snippet)
20522         (func_get_autoconf_snippet, func_get_automake_snippet)
20523         (func_get_include_directive, func_get_link_directive)
20524         (func_get_license, func_get_maintainer, func_import): Avoid
20525         shell syntax errors from parsing syntax extensions.
20526
20527 2010-09-09  Bruno Haible  <bruno@clisp.org>
20528
20529         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20530         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20531         a reliable way to determine whether the 'alias' command works.
20532
20533 2010-09-08  Jim Meyering  <meyering@redhat.com>
20534
20535         init.sh: penalize a set-x-impaired shell; don't disqualify it
20536         * tests/init.sh: Too many shells corrupt application stderr when
20537         you set -x, so we can't afford to disqualify them, since at least
20538         on Irix-6.5, that would disqualify all bourne shells.
20539         Instead, use a two-pass approach.
20540         On the first pass, try to find a shell that meets the stricter
20541         condition that set -x does not corrupt stderr.
20542         If no shell meets the stricter condition, retest each candidate
20543         shell, but without that extra condition.  Finally, when
20544         VERBOSE=yes is requested and set -x might cause trouble, simply
20545         issue a warning and refrain from enabling debug output.
20546
20547 2010-09-08  Eric Blake  <eblake@redhat.com>
20548
20549         unsetenv: fix OpenBSD bug
20550         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20551         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20552         documentation.
20553         Reported by Jim Meyering.
20554
20555         strtod: work around IRIX 6.5 bug
20556         * lib/strtod.c (strtod): Reparse number on shorter string if
20557         exponent parse was invalid.
20558         * tests/test-strtod.c (main): Add check for "0x1p 2".
20559         Reported by Tom G. Christensen.
20560
20561         getopt: optimize previous patch
20562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20563         empty variable.  Speed up awk script.
20564         Reported by Paolo Bonzini.
20565
20566 2010-09-08  Jim Meyering  <meyering@redhat.com>
20567
20568         test.sh: disqualify shells for which set -x corrupts stderr
20569         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20570         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20571         appear in stderr output.  For example, this command:
20572             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20573         prints "P=1" on those two systems:
20574
20575 2010-09-08  Bruno Haible  <bruno@clisp.org>
20576
20577         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20578         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20579         commands, because some shells ignore redirections when there is an
20580         error in the command lookup.
20581         Reported by Eric Blake.
20582
20583 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20584
20585         * lib/regex.h: Fix a mention of `regex_compile' (should be
20586         `re_compile_pattern').
20587         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20588         (re_set_registers): Correct name of parameter in comment.
20589
20590         * doc/regex.texi: Add documentation for missing syntax flags.
20591         Remove commented-out documentation of defunct syntax option
20592         RE_NO_EMPTY_ALTS.
20593         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20594         Add documentation of re_set_registers.
20595         Document trick to re-use a pattern buffer by setting fastmap manually.
20596         Update documentation of struct re_pattern_buffer per public members.
20597         Uncomment documentation of equivalence class operators and
20598         collating symbol operators, since they are now implemented,
20599         Explain leftmost-longest matching in relation to alternatives.
20600         Tidy documentation of substring matching.
20601         Remove POSIX documentation, which is done better in
20602         glibc, and refer the reader there. Keep BSD API documentation, as
20603         that is not readily available elsewhere.
20604
20605 2010-09-07  Eric Blake  <eblake@redhat.com>
20606
20607         getopt: handle POSIXLY_CORRECT set but not exported
20608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20609         export state of POSIXLY_CORRECT, due to bash set -o posix.
20610         Reported by Dustin J. Mitchell.
20611
20612 2010-09-05  Bruno Haible  <bruno@clisp.org>
20613
20614         gnulib-tool: Highlight the changed options.
20615         * gnulib-tool (func_usage): Display the --import, --add-import,
20616         --remove-import explanations in bold font.
20617
20618 2010-09-06  Karl Berry  <karl@gnu.org>
20619
20620         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20621
20622 2010-09-05  Bruno Haible  <bruno@clisp.org>
20623
20624         uniwidth/width: Update comment.
20625         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20626         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20627
20628 2010-09-05  Bruno Haible  <bruno@clisp.org>
20629
20630         isinf, isnan: Relax license.
20631         * modules/isinf (License): Change from GPL to LGPL, with consent from
20632         Ben Pfaff.
20633         * modules/isnan (License): Likewise.
20634         Requested by Ludovic Courtès.
20635
20636 2010-09-04  Bruno Haible  <bruno@clisp.org>
20637
20638         gnulib-tool: Help migration from --import to --add-import or --update.
20639         * gnulib-tool: Emit a verbose error message when --import is used
20640         without any module name.
20641
20642 2010-09-04  Bruno Haible  <bruno@clisp.org>
20643
20644         Update doc about gnulib-tool.
20645         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20646         'gnulib-tool --update' in more detail.
20647         Reported by Eric Blake.
20648
20649 2010-09-04  Bruno Haible  <bruno@clisp.org>
20650
20651         gnulib-tool: Change --import. New options --add/remove-import.
20652         * gnulib-tool: New options --add-import, --remove-import.
20653         (func_usage): Document them.
20654         (have_associative): Define always.
20655         (func_import): In import mode, don't merge the specified settings with
20656         the cached settings. Implement remove-import mode.
20657         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20658         Explain when to use them versus --import.
20659         (Simple update): Use --add-import instead of --import.
20660         * NEWS: Mention the change.
20661
20662 2010-09-04  Bruno Haible  <bruno@clisp.org>
20663
20664         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20665         separate gnulib.mk.
20666
20667 2010-09-04  Bruno Haible  <bruno@clisp.org>
20668
20669         gnulib-tool: Don't talk about CVS any more.
20670         * gnulib-tool (func_usage, func_import): Write "version control"
20671         instead of CVS.
20672
20673 2010-09-04  Jim Meyering  <meyering@redhat.com>
20674
20675         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20676         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20677         false positives (whose names may be ill-chosen) when searching
20678         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20679         would cause a false-positive.
20680
20681         avoid coreutils "make distcheck" failure
20682         Coreutils tests with an absolute build directory name that contains
20683         a space.  Not quoting this directory name caused a failure.
20684         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20685         * tests/test-vc-list-files-cvs.sh: Likewise.
20686
20687 2010-09-04  Bruno Haible  <bruno@clisp.org>
20688
20689         gnulib-tool: Avoid error when run in a package without Makefile.am.
20690         * gnulib-tool: When collecting the m4dirs in a package that does not
20691         have a Makefile.am, eliminate those directories that contain no
20692         gnulib-cache.m4. Fix expression that counts these directories.
20693
20694 2010-09-04  Bruno Haible  <bruno@clisp.org>
20695
20696         update-copyright test: Improve output when perl is missing or too old.
20697         * tests/test-update-copyright.sh: Move test of Perl version down after
20698         the test whether Perl exists. Provide an explanation relating Perl's
20699         error message to Automake's SKIP: message.
20700
20701 2010-09-04  Bruno Haible  <bruno@clisp.org>
20702
20703         Don't augment PATH in TESTS_ENVIRONMENT.
20704         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20705         set abs_aux_dir instead of augmenting PATH.
20706         * modules/vc-list-files-tests (Makefile.am): Likewise.
20707         * tests/test-update-copyright.sh: Augment PATH here.
20708         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20709         path_prepend_.
20710         * tests/test-vc-list-files-git.sh: Likewise.
20711
20712 2010-09-04  Jim Meyering  <meyering@redhat.com>
20713
20714         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20715         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20716
20717 2010-09-04  Bruno Haible  <bruno@clisp.org>
20718
20719         strdup: Fix compilation error in C++ mode.
20720         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20721         the macro.
20722
20723 2010-09-04  Bruno Haible  <bruno@clisp.org>
20724
20725         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20726         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20727         macro into a function.
20728         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20729
20730 2010-09-04  Bruno Haible  <bruno@clisp.org>
20731
20732         Set PATH_SEPARATOR the same way autoconf does.
20733         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20734         the value of PATH_SEPARATOR the same way autoconf-generated configure
20735         scripts do.
20736         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20737         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20738
20739 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20740
20741         Set PATH_SEPARATOR the same way autoconf does.
20742         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20743         the same way autoconf-generated configure scripts do.
20744         * posix-modules: Likewise.
20745
20746 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20747
20748         hash: fix safe_hasher const typo
20749         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20750         const; otherwise, there is a type error later.
20751
20752 2010-09-02  Jim Meyering  <meyering@redhat.com>
20753
20754         test-update-copyright.sh: require perl 5.8.0
20755         * tests/test-update-copyright.sh: Require 5.8.0,
20756         which Tom G. Christensen has confirmed is adequate,
20757         while 5.6.1 is not.
20758
20759 2010-09-02  Eric Blake  <eblake@redhat.com>
20760
20761         tests: init.sh improvements for re-exec'ing with zsh
20762         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20763         -vx through shell re-exec.
20764         Reported by Tom G. Christensen.
20765
20766         wctype: fix typo in previous commit
20767         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20768         Reported by Ludovic Courtès.
20769
20770 2010-09-02  Jim Meyering  <meyering@redhat.com>
20771
20772         test-update-copyright.sh: skip test if Perl is too old
20773         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20774         Reported by Tom G. Christensen.
20775
20776 2010-09-02  Bruno Haible  <bruno@clisp.org>
20777
20778         wctype: Avoid compilation error on IRIX 6.5.30.
20779         * lib/wctype.in.h (iswblank): Declare with a replacement if
20780         REPLACE_ISWBLANK is set.
20781         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20782         declared. Set REPLACE_ISWBLANK.
20783         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20784         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20785         * doc/posix-headers/wctype.texi: Likewise.
20786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20787
20788 2010-09-01  Bruno Haible  <bruno@clisp.org>
20789
20790         New module 'socketlib'.
20791         * modules/socketlib: New file.
20792         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20793         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20794         * modules/sockets (Depends-on): Add socketlib.
20795         Suggested by Sam Steingold <sds@gnu.org>.
20796
20797 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20798
20799         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20800
20801         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20802         when one needs search access to a directory but not read access.
20803         On systems where it is available, it works in some cases where
20804         O_RDONLY does not, namely on directories that are searchable but
20805         not readable, and which need only to be searchable.  If O_SEARCH
20806         is not available, fall back to the traditional method of using
20807         O_RDONLY.
20808
20809         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20810         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20811         when opening a directory that needs only to be searchable.
20812         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20813         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20814         * lib/openat-proc.c (openat_proc_name): Likewise.
20815         * lib/openat.c (openat_needs_fchdir): Likewise.
20816         * lib/save-cwd.c (save_cwd): Likewise.
20817         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20818
20819 2010-08-28  Bruno Haible  <bruno@clisp.org>
20820
20821         New module 'host-cpu-c-abi'.
20822         * modules/host-cpu-c-abi: New file.
20823         * m4/host-cpu-c-abi.m4: New file, based on part of
20824         clisp/src/m4/general.m4.
20825         Requested by Sam Steingold <sds@gnu.org>.
20826
20827 2010-08-31  Eric Blake  <eblake@redhat.com>
20828         and Jim Meyering  <meyering@redhat.com>
20829
20830         hash: factor, and guard against misbehaving hasher function
20831         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20832         of table->hasher's return value.  Also protect against a hash value
20833         so large that adding it to table->bucket results in a NULL pointer.
20834         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20835         Use it in place of open-coded check-and-abort.
20836
20837 2010-08-30  Bruno Haible  <bruno@clisp.org>
20838
20839         hash: silence spurious clang warning
20840         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20841         Reported by Eric Blake.
20842
20843 2010-08-30  Eric Blake  <eblake@redhat.com>
20844
20845         strstr, memmem, strcasestr: avoid leaked shell message
20846         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20847         FreeBSD.
20848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20849         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20850
20851         tests: silence clang warning
20852         * tests/test-malloca.c (do_allocation): Avoid dead store.
20853
20854 2010-08-29  Bruno Haible  <bruno@clisp.org>
20855
20856         gettext: Fix recent mistake.
20857         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20858
20859 2010-08-29  Bruno Haible  <bruno@clisp.org>
20860
20861         selinux-h: Offer a --without-selinux option.
20862         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20863         --without-selinux was specified, skip all tests and define
20864         HAVE_SELINUX_SELINUX_H to 0.
20865         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20866         set LIB_SELINUX to empty.
20867         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20868         gl_LIBSELINUX. If --without-selinux was specified, replace
20869         selinux/context.h.
20870         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20871
20872 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20873             Bruno Haible  <bruno@clisp.org>
20874
20875         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20876         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20877         of HAVE_REALLOC.
20878         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20879         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20880         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20881         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20882
20883 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20884             Bruno Haible  <bruno@clisp.org>
20885
20886         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20887         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20888         HAVE_CALLOC.
20889         * lib/xmalloc.c: Update accordingly.
20890         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20891         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20892         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20893
20894 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20895             Bruno Haible  <bruno@clisp.org>
20896
20897         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20898         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20899         HAVE_MALLOC.
20900         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20901         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20902         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20903
20904 2010-08-29  Bruno Haible  <bruno@clisp.org>
20905
20906         Update modules list.
20907         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20908         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20909         (String handling <string.h>): Add astrxfrm.
20910         (File system functions): Add readlinkat.
20911
20912 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20913
20914         Tests for module 'realloc-gnu'.
20915         * modules/realloc-gnu-tests: New file.
20916         * tests/test-realloc-gnu.c: New file.
20917
20918         Tests for module 'calloc-gnu'.
20919         * modules/calloc-gnu-tests: New file.
20920         * tests/test-calloc-gnu.c: New file.
20921
20922         Tests for module 'malloc-gnu'.
20923         * modules/malloc-gnu-tests: New file.
20924         * tests/test-malloc-gnu.c: New file.
20925
20926 2010-08-28  Bruno Haible  <bruno@clisp.org>
20927
20928         Rename module 'realloc' -> 'realloc-gnu'.
20929         * modules/realloc-gnu: New file, copied from modules/realloc.
20930         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20931         obsolete.
20932         * modules/mgetgroups (Depends-on): Update.
20933         * doc/posix-functions/realloc.texi: Update.
20934         * NEWS: Mention the change.
20935
20936         Rename module 'calloc' -> 'calloc-gnu'.
20937         * modules/calloc-gnu: New file, copied from modules/calloc.
20938         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20939         obsolete.
20940         * doc/posix-functions/calloc.texi: Update.
20941         * NEWS: Mention the change.
20942
20943         Rename module 'malloc' -> 'malloc-gnu'.
20944         * modules/malloc-gnu: New file, copied from modules/malloc.
20945         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20946         obsolete.
20947         * modules/argp (Depends-on): Update.
20948         * modules/regex (Depends-on): Update.
20949         * doc/posix-functions/malloc.texi: Update.
20950         * NEWS: Mention the change.
20951
20952 2010-08-28  Eric Blake  <eblake@redhat.com>
20953
20954         pread, pwrite: add missing dependency
20955         * modules/pread (Depends-on): Add extensions.
20956         * modules/pwrite (Depends-on): Likewise.
20957
20958 2010-08-28  Bruno Haible  <bruno@clisp.org>
20959
20960         unistr/u*-strchr: Fix tests dependencies.
20961         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20962         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20963         Reported by Ian Beckwith <ianb@erislabs.net>.
20964
20965 2010-08-28  Bruno Haible  <bruno@clisp.org>
20966
20967         read-file: Don't occupy too much unused memory.
20968         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20969
20970 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20971             Eric Blake  <eblake@redhat.com>
20972             Bruno Haible  <bruno@clisp.org>
20973
20974         read-file: Avoid memory reallocations with regular files.
20975         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20976         (fread_file): With regular files, use the remaining length as the
20977         initial buffer size.  Check against overflow.
20978         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20979         sys_stat.
20980
20981 2010-08-28  Bruno Haible  <bruno@clisp.org>
20982
20983         ftello: Relax license.
20984         * modules/ftello (License): Relax to LGPLv2+.
20985         Reported by Eric Blake.
20986
20987 2010-08-28  Bruno Haible  <bruno@clisp.org>
20988
20989         Avoid relocwrapper link errors due to gnulib replacement functions.
20990         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
20991         function.
20992         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20993
20994 2010-08-28  Bruno Haible  <bruno@clisp.org>
20995
20996         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
20997         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
20998         defined.
20999         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21000         Suggested by Eric Blake.
21001
21002 2010-08-28  Bruno Haible  <bruno@clisp.org>
21003
21004         sys_socket, netdb: Ensure socklen_t gets defined.
21005         * modules/sys_socket (Depends-on): Add socklen.
21006         * modules/netdb (Depends-on): Likewise.
21007         * modules/getaddrinfo (Depends-on): Remove socklen.
21008         * modules/getsockopt (Depends-on): Likewise.
21009         * modules/setsockopt (Depends-on): Likewise.
21010         * tests/test-sys_socket.c: Check that socklen_t is defined.
21011         * tests/test-netdb.c: Likewise.
21012         * m4/socklen.m4: Update comments.
21013         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21014
21015 2010-08-27  Eric Blake  <eblake@redhat.com>
21016
21017         login_tty: add missing dependency
21018         * modules/login_tty (Depends-on): Add pty.
21019
21020 2010-08-26  Eric Blake  <eblake@redhat.com>
21021
21022         lib-symbol-versions: fix m4 quoting
21023         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21024         format for AC_LINK_IFELSE.
21025
21026         glob: fix compile test
21027         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21028
21029         btowc: fix missing file
21030         * modules/btowc (Files): Also ship locale-fr.m4.
21031
21032         lseek: fix link test
21033         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21034         AC_LINK_IFELSE.
21035
21036         include_next: silence autoconf 2.68 warning
21037         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21038         AC_COMPILE_IFELSE as special.
21039         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21040         autoconf < 2.68.
21041
21042         acl: fix compilation test
21043         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21044         AC_COMPILE_IFELSE.
21045
21046 2010-08-26  Bruno Haible  <bruno@clisp.org>
21047
21048         Modernize AC_TRY_RUN invocations.
21049         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21050         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21051         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21052         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21053         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21054         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21055         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21057         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21058         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21059         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21060         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21061         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21062         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21063         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21064         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21065         gl_MBRLEN_NUL_RETVAL): Likewise.
21066         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21067         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21068         Likewise.
21069         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21070         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21071         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21072         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21073         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21074         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21075         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21076         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21077         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21078         Likewise.
21079         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21080         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21081         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21082         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21083         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21084         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21085         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21086         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21087         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21089
21090 2010-08-26  Bruno Haible  <bruno@clisp.org>
21091
21092         Modernize AC_TRY_LINK invocations.
21093         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21094         AC_TRY_LINK.
21095         * m4/argp.m4 (gl_ARGP): Likewise.
21096         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21097         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21098         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21099         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21100         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21101         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21102         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21103         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21104         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21105         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21106         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21107         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21108         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21109         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21110         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21111         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21112         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21113         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21114         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21115         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21116         Likewise.
21117         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21118         Likewise.
21119         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21120         Likewise.
21121         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21122         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21123         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21124         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21125         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21126         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21127         * m4/servent.m4 (gl_SERVENT): Likewise.
21128         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21129         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21130         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21131         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21132         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21133         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21134         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21135         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21136         * modules/tsearch-tests (configure.ac): Likewise.
21137
21138 2010-08-26  Bruno Haible  <bruno@clisp.org>
21139
21140         Modernize AC_TRY_COMPILE invocations.
21141         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21142         AC_TRY_COMPILE.
21143         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21144         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21145         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21146         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21147         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21148         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21149         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21150         * m4/lock.m4 (gl_LOCK): Likewise.
21151         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21152         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21153         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21154         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21155         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21156         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21157         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21159         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21160         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21161         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21162         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21163         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21164         extraneous semicolon.
21165
21166 2010-08-26  Jim Meyering  <meyering@redhat.com>
21167
21168         stat-time: relax license LGPL
21169         * modules/stat-time (License): Change from GPL to LGPL,
21170         with consent from all contributors, for use in libguile.
21171         Requested by Ludovic Courtès.
21172
21173 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21174
21175         poll: return immediately on POLLHUP.
21176         * lib/poll.c (poll): Always set timeout before wait_timeout is
21177         computed.
21178
21179 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21180
21181         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21182         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21183         rmdir ("dir/.//"), unlinkat.
21184
21185 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21186
21187         stdbool: avoid spurious failure with modern xlc
21188         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21189
21190 2010-08-24  Bruno Haible  <bruno@clisp.org>
21191
21192         getloadavg: simplify code
21193         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21194         gl_have_func. Update comments.
21195
21196 2010-08-24  Eric Blake  <eblake@redhat.com>
21197
21198         getloadavg: don't define SVR4 on cygwin
21199         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21200         only define SVR4 when -lkvm is required.
21201         Reported by Yaakov Selkowitz.
21202
21203 2010-08-24  Bruno Haible  <bruno@clisp.org>
21204
21205         priv-set: fix comment
21206         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21207
21208 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21209
21210         priv-set: fix comments
21211         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21212         to match code, as suggested by David Bartley in:
21213         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21214
21215 2010-08-23  Eric Blake  <eblake@redhat.com>
21216
21217         stdbool: avoid rejecting clang
21218         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21219         * tests/test-stdbool.c: Enable more tests if using the system
21220         <stdbool.h> instead of the gnulib replacement.
21221         (main): Move xlc bug test to a runtime test for all compilers.
21222         Reported by Anders Kaseorg.
21223
21224         argz: fix shell quoting issue
21225         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21226         Reported by Charles Wilson.
21227
21228 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21229             Erik Faye-Lund <kusmabite@gmail.com>
21230
21231         poll, select: handle ERROR_BROKEN_PIPE.
21232         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21233         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21234         * lib/select.c (win32_compute_revents): Do not mark a pipe
21235         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21236
21237 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21238
21239         fts: allow compilation with C++
21240         * lib/fts_.h: Specify extern "C" linkage with C++.
21241
21242 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21243
21244         Fix gnulib-tool sed script de-commentation for AIX sed.
21245         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21246         sed.
21247
21248 2010-08-17  Eric Blake  <eblake@redhat.com>
21249
21250         test-stddef: test for (some) offsetof bugs
21251         * tests/test-stddef.c: Enhance test to ensure correct type of
21252         offsetof.
21253         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21254         that we are not fixing at this time.
21255
21256 2010-08-15  Bruno Haible  <bruno@clisp.org>
21257
21258         stpncpy: Allow stpncpy to be defined as a macro.
21259         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21260         if it's already correctly declared.
21261         * lib/string.in.h (stpncpy): Undefine before redefining.
21262         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21263
21264 2010-08-14  Bruno Haible  <bruno@clisp.org>
21265
21266         Rename module 'memxfrm' to 'amemxfrm'.
21267         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21268         (amemxfrm): Renamed from memxfrm.
21269         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21270         (amemxfrm): Renamed from memxfrm.
21271         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21272         * NEWS: Mention the change.
21273         * MODULES.html.sh (String handling <string.h>): Update.
21274         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21275         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21276         * lib/unicase/u16-casexfrm.c: Likewise.
21277         * lib/unicase/u32-casexfrm.c: Likewise.
21278         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21279         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21280         * lib/uninorm/u16-normxfrm.c: Likewise.
21281         * lib/uninorm/u32-normxfrm.c: Likewise.
21282         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21283         memxfrm.
21284         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21285         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21286         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21287         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21288         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21289         Suggested by Paul Eggert.
21290
21291 2010-08-14  Bruno Haible  <bruno@clisp.org>
21292
21293         Tests for module 'astrxfrm'.
21294         * modules/astrxfrm-tests: New file.
21295         * tests/test-astrxfrm.c: New file.
21296
21297         New module 'astrxfrm'.
21298         * lib/astrxfrm.h: New file.
21299         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21300         * modules/astrxfrm: New file.
21301
21302 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21303
21304         regex: Tweak doc.
21305         * doc/regex.texi (Overview): Don't mention regex.c.
21306         (GNU Regular Expression Compiling): Likewise.
21307         (Match-end-of-line Operator): Mention 'not_eol'.
21308
21309 2010-08-14  Brian Gough  <bjg@gnu.org>
21310             Bruno Haible  <bruno@clisp.org>
21311
21312         git-merge-changelog: add doc relating to use with bzr and hg.
21313         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21314
21315 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21316
21317         pthread: fix pthread.h creation for srcdir != builddir
21318         * modules/pthread (Makefile.am): Fix the rule to work also in a
21319         non-srcdir build.
21320
21321 2010-08-13  Karl Berry  <karl@gnu.org>
21322
21323         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21324         * doc/posix-*/*: force line break before @url of POSIX
21325         specifications.
21326         Suggested by Werner Lemberg.
21327
21328 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21329
21330         strtod: fix const diagnostic
21331         * lib/strtod.c (strtod): Don't assign const char * to char *,
21332         as this elicits a warning from GCC when warnings are enabled.
21333
21334 2010-08-10  Pádraig Brady <P@draigbrady.com>
21335         and Eric Blake  <eblake@redhat.com>
21336
21337         copy-acl: ignore ENOTSUP on HP-UX
21338         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21339         so that it is available for HP-UX.
21340         * lib/copy-acl.c (qcopy_acl): Use it.
21341         Reported by Patrick M. Callahan.
21342
21343 2010-08-10  Eric Blake  <eblake@redhat.com>
21344
21345         open, chown: relax license
21346         * modules/open (License): Change to LGPLv2+, with consent by all
21347         authors, for use in augeas.
21348         * modules/chown (License): Likewise.
21349         * modules/lchown (Likewise): Likewise.
21350         Requested by Adam Stokes.
21351
21352 2010-08-09  Karl Berry  <karl@gnu.org>
21353
21354         * build-aux/ar-lib: new file, import from Automake.
21355         * config/srclist.txt: autocheck for updates.
21356
21357 2010-08-09  Eric Blake  <eblake@redhat.com>
21358
21359         readlinkat: adjust client modules
21360         * modules/areadlinkat (Depends-on): Use readlinkat, not
21361         symlinkat.
21362         * modules/areadlinkat-with-size (Depends-on): Likewise.
21363
21364         mknod: be more vocal about danger of running tests as root
21365         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21366         root, since that is just asking for problems.
21367         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21368
21369         readlinkat: split into its own module
21370         * modules/symlinkat: Split readlinkat...
21371         * modules/readlinkat: ...into separate module.
21372         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21373         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21374         * lib/symlinkat.c (readlinkat): Move...
21375         * lib/readlinkat.c: ...into new file.
21376         * modules/symlinkat-tests: Split readlinkat test...
21377         * modules/readlinkat-tests: ...into separate module.
21378         * tests/test-symlinkat.c: Split...
21379         * tests/test-readlinkat.c: ...into new file.
21380         * NEWS: Document the split.
21381         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21382         * lib/unistd.in.h (readlinkat): Likewise.
21383         Suggested by Bruno Haible.
21384
21385 2010-08-08  Bruno Haible  <bruno@clisp.org>
21386
21387         memxfrm: Speed up.
21388         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21389         that usually only one call to strxfrm is necessary for each string
21390         part.
21391         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21392
21393 2010-08-07  Karl Berry  <karl@gnu.org>
21394
21395         * doc/posix-headers/limits.texi,
21396         * doc/posix-functions/malloc.texi,
21397         * doc/posix-functions/strsignal.texi: missing @item.
21398         * doc/ld-version-script.texi: spurious leading i.
21399         * doc/regex.texi (Interval Operators): no commas inside @var.
21400
21401 2010-08-01  Bruno Haible  <bruno@clisp.org>
21402
21403         Integrate the regex documentation.
21404         * doc/gnulib.texi: Define 'cn' index.
21405         (Regular expressions): New a chapter that includes regex.texi and
21406         regexprops-generic.texi.
21407         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21408         syntax.
21409
21410         Whitespace cleanup.
21411         * doc/regex.texi: Remove trailing spaces.
21412
21413         Add regex documentation.
21414         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21415         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21416         Written by Kathy A. Hargreaves and Karl Berry.
21417
21418 2010-08-01  Bruno Haible  <bruno@clisp.org>
21419
21420         link: Update documentation.
21421         * doc/posix-functions/link.texi: Update regarding Solaris.
21422
21423 2010-07-31  Bruno Haible  <bruno@clisp.org>
21424
21425         Update modules list.
21426         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21427         (String handling <string.h>): Add memcmp2, memxfrm.
21428         (Container data structures): Add xlist, xsublist, xoset.
21429         (Core language properties): Add alignof, unused-parameter.
21430         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21431         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21432         (Unibyte characters <ctype.h>): New section.
21433         (String handling <string.h>): New section.
21434         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21435         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21436         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21437         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21438         tan, tanh, tanl, y0, y1, yn.
21439         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21440         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21441         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21442         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21443         unlockpt, vdprintf, vdprintf-posix.
21444         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21445         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21446         xconcat-filename.
21447         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21448         getdtablesize, pipe2, pipe2-safer.
21449         (Security): New section.
21450         (Networking functions): Add accept4.
21451         (Signal handling): Add sigpipe.
21452         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21453         mbmemcasecoll.
21454         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21455         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21456         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21457         pipe-filter-ii.
21458         (Misc): Add argp-version-etc, login_tty, parse-duration.
21459
21460 2010-07-31  Bruno Haible  <bruno@clisp.org>
21461
21462         Improve doc in MODULES.html.
21463         * modules/linkat (Description): Add the word "function".
21464         * modules/mkfifo (Description): Likewise.
21465         * modules/mknod (Description): Likewise.
21466         * modules/remove (Description): Likewise.
21467         * modules/renameat (Description): Likewise.
21468         * modules/stat (Description): Likewise.
21469         * modules/symlink (Description): Likewise.
21470         * modules/unlink (Description): Likewise.
21471
21472 2010-07-31  Bruno Haible  <bruno@clisp.org>
21473
21474         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21475         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21476         option --enable/disable-c++ instead of --enable/disable-cxx.
21477         * NEWS: Mention the change.
21478
21479 2010-07-31  Bruno Haible  <bruno@clisp.org>
21480
21481         readlink, areadlink: Relax test a bit.
21482         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21483         alternative to ENOTDIR.
21484         * tests/test-areadlink.h (test_areadlink): Likewise.
21485         Reported by Rainer Tammer.
21486
21487 2010-07-31  Bruno Haible  <bruno@clisp.org>
21488
21489         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21490         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21491         character, perform the search using U_STRCHR.
21492         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21493         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21494         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21495         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21496         Suggested by Paolo Bonzini.
21497
21498 2010-07-31  Bruno Haible  <bruno@clisp.org>
21499
21500         unistr/u*-strstr: Fix dependencies.
21501         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21502         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21503         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21504
21505 2010-07-31  Bruno Haible  <bruno@clisp.org>
21506
21507         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21508         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21509         the beginning of the loop.
21510         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21511         cases in 'switch' statement.
21512
21513         unistr/u8-strchr: Fix several bugs.
21514         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21515         the string. When not found, return NULL, not a pointer near the end.
21516
21517         More tests for unistr/u8-strchr.
21518         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21519         that the function does not read past the first occurrence of the byte
21520         being searched.
21521         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21522         * tests/unistr/test-u16-strchr.c (main): New function.
21523         * tests/unistr/test-u32-strchr.c (main): New function.
21524
21525 2010-07-31  Bruno Haible  <bruno@clisp.org>
21526
21527         posix-modules: Ignore backup files of documentation files.
21528         * posix-modules: grep only through files named *.texi.
21529
21530 2010-07-31  Bruno Haible  <bruno@clisp.org>
21531
21532         symlinkat: Fix documentation.
21533         * doc/posix-functions/readlinkat.texi: Fix module name.
21534
21535 2010-07-31  Bruno Haible  <bruno@clisp.org>
21536
21537         fchownat: Replace also when chown has the trailing slash bug.
21538         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21539         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21540         introduced on 2010-04-10.
21541         Reported by Rainer Tammer.
21542
21543 2010-07-31  Bruno Haible  <bruno@clisp.org>
21544
21545         linkat: Work around AIX 7.1 bug.
21546         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21547         whether linkat handles trailing slash correctly. If not, replace linkat
21548         and define LINKAT_TRAILING_SLASH_BUG.
21549         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21550         check whether (fd1,file1) points to a directory if file1 or file2 ends
21551         in a slash. Code taken from lib/link.c.
21552         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21553         Reported by Rainer Tammer.
21554
21555 2010-07-31  Bruno Haible  <bruno@clisp.org>
21556
21557         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21558         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21559         This disables an xlc optimization that was causing wrong test results.
21560         Reported by Rainer Tammer.
21561
21562 2010-07-31  Bruno Haible  <bruno@clisp.org>
21563
21564         iconv: Work around AIX 6.1..7.1 bug.
21565         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21566         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21567         cross-compiling, guess no on all versions of AIX.
21568         Reported by Rainer Tammer.
21569
21570 2010-07-31  Bruno Haible  <bruno@clisp.org>
21571
21572         readlink: Relax test a bit.
21573         * tests/test-readlink.h (test_readlink): Allow different errno value
21574         when readlink is called with a file name that ends in / and refers to
21575         a file.
21576         Suggested by Eric Blake.
21577         Reported by Rainer Tammer.
21578
21579 2010-07-31  Bruno Haible  <bruno@clisp.org>
21580
21581         copysign: Does not require -lm on glibc systems.
21582         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21583         gl_COMMON_DOUBLE_MATHFUNC.
21584         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21585
21586 2010-07-31  Bruno Haible  <bruno@clisp.org>
21587
21588         duplocale: Work around AIX 7.1 bug.
21589         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21590         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21591         * lib/duplocale.c (rpl_duplocale): Update comment.
21592         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21593         Reported by Rainer Tammer.
21594
21595 2010-07-30  Bruno Haible  <bruno@clisp.org>
21596
21597         dirfd: Avoid link error on AIX 7.1.
21598         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21599         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21600         exist, set REPLACE_DIRFD.
21601         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21602         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21603         * doc/posix-functions/dirfd.texi: Update.
21604         Reported by Rainer Tammer.
21605
21606 2010-07-30  Eric Blake  <eblake@redhat.com>
21607
21608         strtod: next round of AIX fixes
21609         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21610         exponent.
21611         * tests/test-strtod.c (main): Enhance tests.
21612         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21613         Reported by Rainer Tammer.
21614
21615         futimens: fix configure check
21616         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21617         Reported by Bruno Haible.
21618
21619 2010-07-30  Bruno Haible  <bruno@clisp.org>
21620
21621         getline: Update regarding AIX.
21622         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21623         Reported by Rainer Tammer.
21624
21625 2010-07-30  Bruno Haible  <bruno@clisp.org>
21626
21627         wcwidth: Drop replacement on AIX 7.
21628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21629         AIX 7.
21630         Reported by Rainer Tammer.
21631
21632 2010-07-30  Bruno Haible  <bruno@clisp.org>
21633
21634         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21635         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21636         a 'char *'.
21637         Reported by Rainer Tammer.
21638
21639 2010-07-30  Bruno Haible  <bruno@clisp.org>
21640
21641         unlink: Update regarding AIX.
21642         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21643         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21644         Reported by Rainer Tammer.
21645
21646 2010-07-30  Bruno Haible  <bruno@clisp.org>
21647
21648         symlink: Update regarding AIX.
21649         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21650         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21651         Reported by Rainer Tammer.
21652
21653 2010-07-30  Bruno Haible  <bruno@clisp.org>
21654
21655         strndup: Update regarding AIX.
21656         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21657         AIX 7.
21658         Reported by Rainer Tammer.
21659
21660 2010-07-30  Bruno Haible  <bruno@clisp.org>
21661
21662         stat: Update regarding AIX.
21663         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21664         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21665         Reported by Rainer Tammer.
21666
21667 2010-07-30  Bruno Haible  <bruno@clisp.org>
21668
21669         truncl: Fix autoconf test.
21670         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21671         whether truncl works.
21672         Reported by Rainer Tammer.
21673
21674 2010-07-30  Bruno Haible  <bruno@clisp.org>
21675
21676         round: Update regarding AIX.
21677         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21678         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21679         Reported by Rainer Tammer.
21680
21681 2010-07-30  Bruno Haible  <bruno@clisp.org>
21682
21683         rename: Update regarding AIX.
21684         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21685         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21686         Reported by Rainer Tammer.
21687
21688 2010-07-30  Bruno Haible  <bruno@clisp.org>
21689
21690         printf.m4: Update regarding AIX.
21691         * m4/printf.m4: Update comments regarding AIX.
21692         Reported by Rainer Tammer.
21693
21694 2010-07-30  Bruno Haible  <bruno@clisp.org>
21695
21696         iconv: Update regarding AIX.
21697         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21698         AIX 7.
21699         Reported by Rainer Tammer.
21700
21701 2010-07-30  Bruno Haible  <bruno@clisp.org>
21702
21703         getopt: Update regarding AIX.
21704         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21705         no on AIX.
21706         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21707         Reported by Rainer Tammer.
21708
21709 2010-07-30  Bruno Haible  <bruno@clisp.org>
21710
21711         ldexpl; Update regarding AIX.
21712         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21713         on AIX 7.
21714         Reported by Rainer Tammer.
21715
21716 2010-07-30  Bruno Haible  <bruno@clisp.org>
21717
21718         frexpl: Update regarding AIX.
21719         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21720         on AIX 7.
21721         Reported by Rainer Tammer.
21722
21723 2010-07-30  Bruno Haible  <bruno@clisp.org>
21724
21725         open, fopen: Update regarding AIX.
21726         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21727         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21728         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21729         * doc/posix-functions/fopen.texi: Likewise.
21730         Reported by Rainer Tammer.
21731
21732 2010-07-30  Bruno Haible  <bruno@clisp.org>
21733
21734         chown: Update doc regarding AIX.
21735         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21736         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21737         Reported by Rainer Tammer.
21738
21739 2010-07-30  Eric Blake  <eblake@redhat.com>
21740
21741         strtod: fix bug in replacement function on AIX
21742         * lib/strtod.c (strtod): Special case broken "0x" parse in
21743         underlying strtod.
21744         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21745         * doc/posix-functions/strtod.texi (strtod): Likewise.
21746         Reported by Rainer Tammer.
21747
21748 2010-07-30  Bruno Haible  <bruno@clisp.org>
21749
21750         mbrlen: Fix cross-compilation guess for AIX.
21751         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21752         guess. Leftover from 2008-12-22.
21753
21754 2010-07-30  Bruno Haible  <bruno@clisp.org>
21755
21756         mbrtowc: Fix cross-compilation guess for AIX.
21757         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21758         guess. Leftover from 2008-12-21.
21759
21760 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21761
21762         init.sh: work around trap limitation of some shells
21763         * tests/init.sh (setup_): Move exit trap outside of shell function.
21764
21765 2010-07-29  Eric Blake  <eblake@redhat.com>
21766
21767         strtod: aid debugging
21768         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21769         understanding why strtod is rejected.
21770
21771 2010-07-28  Bruno Haible  <bruno@clisp.org>
21772
21773         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21774         * lib/unistr/u8-chr.c: Include <string.h>.
21775         * tests/unistr/test-u8-chr.c: Likewise.
21776         * tests/unistr/test-u16-chr.c: Likewise.
21777         * tests/unistr/test-u32-chr.c: Likewise.
21778         * tests/unistr/test-u8-strchr.c: Likewise.
21779         * tests/unistr/test-u16-strchr.c: Likewise.
21780         * tests/unistr/test-u32-strchr.c: Likewise.
21781         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21782         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21783         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21784         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21785
21786 2010-07-28  Bruno Haible  <bruno@clisp.org>
21787
21788         Use spaces for indentation, not tabs.
21789         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21790
21791 2010-07-27  Bruno Haible  <bruno@clisp.org>
21792
21793         mbspcasecmp: Fix function specification.
21794         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21795         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21796         Reported by Eric Blake <eblake@redhat.com>.
21797
21798 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21799
21800         timespec: use cast and not conditional, as truncation isn't possible
21801         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21802         instead of a conditional.  Comment about the situation in more detail.
21803         This undoes most of the 2009-10-29 patch.
21804
21805 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21806
21807         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21808         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21809         * lib/unistr/u8-strchr.c: Likewise.
21810         * modules/unistr/u8-chr: Depend on memchr.
21811
21812         unistr/u*-strchr: add tests
21813         * modules/unistr/u8-strchr-tests: New file.
21814         * modules/unistr/u16-strchr-tests: New file.
21815         * modules/unistr/u32-strchr-tests: New file.
21816         * tests/unistr/test-strchr.h: New file.
21817         * tests/unistr/test-u8-strchr.c: New file.
21818         * tests/unistr/test-u16-strchr.c: New file.
21819         * tests/unistr/test-u32-strchr.c: New file.
21820
21821         unistr/u*-chr: test multibyte sequences more
21822         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21823         test vector.
21824         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21825         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21826         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21827
21828         unistr/u*-chr: test multibyte sequences
21829         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21830
21831         unistr/u*-chr: prepare for multibyte tests
21832         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21833         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21834         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21835         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21836         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21837         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21838
21839 2010-07-18  Bruno Haible  <bruno@clisp.org>
21840
21841         unistr/u8-strchr: Optimize non-ASCII argument case.
21842         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21843         because the first byte often matches anyway.
21844         Reported by Pádraig Brady <P@draigbrady.com>.
21845
21846 2010-07-15  Karl Berry  <karl@gnu.org>
21847
21848         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21849
21850 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21851
21852         getcwd: on Solaris, work better if ancestors are inaccessible
21853         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21854         buffer and size, try again with a large buffer.  This works better
21855         on Solaris, since its getcwd succeeds even if the path to the root
21856         is inaccessible, and this is helpful in common cases such as .zfs
21857         hidden directories.  Problem reported by J Chapman Flack in
21858         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21859         Use system getcwd if it's declared, not merely if it's partly
21860         working; use the partly-working test only to avoid needless effort
21861         if the system getcwd fails.
21862         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21863         comment that was already obsolete and is now even more obsolete.
21864         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21865         now might call strdup.
21866
21867 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21868
21869         pthread: Add enough so that coreutils/src/sort.c compiles.
21870         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21871         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21872         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21873         Include <sys/types.h>, in case it defines pthread_t.
21874         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21875         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21876         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21877         (pthread_rwlockattr_t, pthread_spinlock_t):
21878         New typedefs, if HAVE_PTHREAD_T is not defined.
21879         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21880         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21881         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21882         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21883         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21884         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21885         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21886         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21887         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21888         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21889         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21890         New macros.
21891         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21892         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21893         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21894         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21895         (pthread_spin_unlock): New dummy functions.
21896         (pthread_create): Return EAGAIN; don't set errno.
21897         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21898         require AC_C_INLINE.
21899         * modules/pthread (Depends-on): Add sched, time.
21900         (pthread.h): Use AM_V_GEN.
21901
21902 2010-07-13  Bruno Haible  <bruno@clisp.org>
21903
21904         striconveh: Don't malloc memory if the result buffer is sufficient.
21905         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21906         buffer if its size is sufficient.
21907         Reported by Ludovic Courtès <ludo@gnu.org>.
21908
21909 2010-07-13  Bruno Haible  <bruno@clisp.org>
21910
21911         strtod: Add safety check.
21912         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21913
21914 2010-07-12  Bruno Haible  <bruno@clisp.org>
21915
21916         Unify tests that set gl_cv_func_ldexpl_no_libm.
21917         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21918         gl_FUNC_LDEXPL.
21919         (gl_FUNC_LDEXPL): Invoke it.
21920         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21921
21922 2010-07-12  Bruno Haible  <bruno@clisp.org>
21923
21924         Unify tests that set gl_cv_func_ldexp_no_libm.
21925         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21926         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21927         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21928         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21929         * modules/strtod (Files): Add m4/ldexp.m4.
21930
21931 2010-07-12  Bruno Haible  <bruno@clisp.org>
21932
21933         Unify tests that set gl_cv_func_frexpl_no_libm.
21934         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21935         gl_FUNC_FREXPL_NO_LIBM.
21936         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21937         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21938
21939 2010-07-12  Bruno Haible  <bruno@clisp.org>
21940
21941         Unify tests that set gl_cv_func_frexp_no_libm.
21942         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21943         gl_FUNC_FREXP_NO_LIBM.
21944         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21945         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21946
21947 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21948
21949         memcoll: clarify sizes versus lengths, document better, and tweak perf
21950         * lib/memcoll.c (strcoll_loop, memcoll0):
21951         Improve quality of descriptive comments.  Name variables
21952         consistently as to whether they are lengths (which do not include
21953         terminating null) versus sizes (which do).
21954         * lib/xmemcoll.c (xmemcoll0): Likewise.
21955         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21956         returned when s1size == 0; this is easier to compile and saves
21957         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21958
21959 2010-07-12  Bruno Haible  <bruno@clisp.org>
21960
21961         Tests for module '_Exit'.
21962         * modules/_Exit-tests: New file.
21963         * tests/test-_Exit.sh: New file.
21964         * tests/test-_Exit.c: New file.
21965
21966         New module '_Exit'.
21967         * lib/stdlib.in.h (__attribute__): New macro.
21968         (_Exit): New declaration.
21969         * lib/_Exit.c: New file.
21970         * m4/_Exit.m4: New file.
21971         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21972         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21973         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21974         * modules/_Exit: New file.
21975         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21976         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21977
21978 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21979
21980         strtod: make it more-accurate typically, and don't require libm
21981         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21982         Include limits.h.  Don't include string.h.
21983         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21984         (locale_isspace): New function, so that no casts are needed to
21985         check whether *s is a space.
21986         (ldexp): Provide an unused dummy if not available.
21987         (scale_radix_exp, parse_number, underlying_strtod): New functions.
21988         (strtod): Use them.  This implementation prefers to use the
21989         underlying strtod if available, falling back on our own code
21990         only to fix known bugs.  This is more likely to produce an
21991         accurate result.  Also, it avoids the use of libm functions.
21992         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
21993         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
21994         was absent, but it caused a test failure with coreutils.
21995         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
21996         with libm.
21997         * modules/strtod (Makefile.am, Link): libm is no longer needed.
21998         * modules/strtod-tests (Makefile.am): Likewise.
21999
22000 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22001             Bruno Haible  <bruno@clisp.org>
22002
22003         unistr/u8-strchr: Optimize ASCII argument case.
22004         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22005
22006 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22007
22008         (x)memcoll: minor tweaks
22009         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22010         is after the type that it qualifies.
22011         (memcoll0): Likewise.
22012         * lib/memcoll.h (memcoll0): Likewise.
22013         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22014         * lib/xmemcoll.h (xmemcoll0): Likewise.
22015         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22016         differs from memcoll in that the NUL byte is part of the argument.
22017         Omit the abort-checks, as performance is a real issue here.  Plus,
22018         the checks were wrong anyway (an off-by-one error).  Omit local
22019         variable 'diff', as it's a bit clearer that way.
22020         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22021         no longer needed.
22022
22023 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22024
22025         (x)memcoll: speedup when input is known to be NUL delimited
22026         * lib/memcoll.c: Include stdlib.
22027         (memcoll0): New function.
22028         (strcoll_loop): New function, refactored for use in both memcoll
22029         and memcoll0.
22030         * lib/memcoll.h (memcoll0): Add prototype.
22031         * lib/xmemcoll.c (xmemcoll0): New function.
22032         (collate_error): New function, refactored for use in both xmemcoll
22033         and xmemcoll0.
22034         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22035         * m4/memcoll.m4: add inline invocation.
22036
22037 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22038
22039         * build-aux/bootstrap: Remove any local translations
22040         from the translation project synchronization directory,
22041         so that local only translations are not distributed.
22042
22043 2010-07-04  Bruno Haible  <bruno@clisp.org>
22044
22045         fsusage: Clarify which code applies to which platforms.
22046         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22047         platform.
22048         * lib/fsusage.c (get_fs_usage): Likewise.
22049
22050 2010-07-04  Bruno Haible  <bruno@clisp.org>
22051
22052         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22053         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22054         Reported by Martin Lambers <marlam@marlam.de>.
22055
22056 2010-07-04  Jim Meyering  <meyering@redhat.com>
22057
22058         hash: once again explicitly disallow insertion of NULL
22059         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22060         inserting a NULL pointer cannot work with these functions.
22061         Add a comment with details.
22062         This reverts part of the 2010-07-01 commit, 5bef1a35
22063         "hash: extend module to deal with non-pointer keys".
22064
22065 2010-07-01  Bruno Haible  <bruno@clisp.org>
22066
22067         stdbool: Update doc.
22068         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22069         Info from Christian Weisgerber <naddy@mips.inka.de>.
22070
22071 2010-07-01  Jim Meyering  <meyering@redhat.com>
22072
22073         hash: extend module to deal with non-pointer keys
22074         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22075         but that allows insertion of non-pointer entries.
22076         Do not disallow an ENTRY value of NULL.
22077         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22078         * lib/hash.h (hash_insert0): Declare.
22079
22080 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22081
22082         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22083         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22084         not present (i.e. with autoconf 2.59 and when using gettextize, not
22085         gnulib), require AC_GNU_SOURCE instead.
22086
22087 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22088
22089         idpriv-drop: Fix tests.
22090         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22091         not to the test-idpriv-droptemp program.
22092
22093 2010-06-29  Bruno Haible  <bruno@clisp.org>
22094
22095         string: Fix syntax error with g++ 2.96.
22096         * lib/string.in.h (__pure__): Remove definition.
22097         (_GL_ATTRIBUTE_PURE): New macro.
22098         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22099         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22100         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22101
22102 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22103
22104         unitypes: Fix bug introduced on 2010-05-18.
22105         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22106
22107 2010-06-22  Eric Blake  <eblake@redhat.com>
22108
22109         memmem: slight optimization
22110         * lib/str-two-way.h (critical_factorization): Update comments.
22111         Reduce work during factorization phase.
22112         Reported by Carlos Bueno <carlos@bueno.org>.
22113
22114 2010-06-21  Bruno Haible  <bruno@clisp.org>
22115
22116         Fix HAVE_CALLOC_POSIX misnomer.
22117         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22118         !HAVE_CALLOC_POSIX.
22119         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22120         HAVE_CALLOC_POSIX.
22121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22122         instead of HAVE_CALLOC_POSIX.
22123         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22124         HAVE_CALLOC_POSIX.
22125
22126         Use modern idiom for calloc() replacement.
22127         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22128         AC_FUNC_CALLOC.
22129         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22130         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22131         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22132         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22133         (gl_REPLACE_CALLOC): New macro.
22134
22135 2010-06-21  Bruno Haible  <bruno@clisp.org>
22136
22137         Fix HAVE_REALLOC_POSIX misnomer.
22138         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22139         !HAVE_REALLOC_POSIX.
22140         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22141         HAVE_REALLOC_POSIX.
22142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22143         instead of HAVE_REALLOC_POSIX.
22144         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22145         HAVE_REALLOC_POSIX.
22146
22147         Use modern idiom for realloc() replacement.
22148         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22149         AC_FUNC_REALLOC.
22150         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22151         Autoconf's AC_FUNC_REALLOC.
22152         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22153         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22154         (gl_REPLACE_REALLOC): New macro.
22155         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22156
22157 2010-06-21  Bruno Haible  <bruno@clisp.org>
22158
22159         Fix HAVE_MALLOC_POSIX misnomer.
22160         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22161         !HAVE_MALLOC_POSIX.
22162         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22163         HAVE_MALLOC_POSIX.
22164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22165         instead of HAVE_MALLOC_POSIX.
22166         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22167         HAVE_MALLOC_POSIX.
22168
22169         Use modern idiom for malloc() replacement.
22170         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22171         AC_FUNC_MALLOC.
22172         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22173         Autoconf's AC_FUNC_MALLOC.
22174         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22175         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22176         (gl_REPLACE_MALLOC): New macro.
22177         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22178
22179 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22180
22181         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22182         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22183         This macro takes 3 arguments, not 4.
22184
22185 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22186
22187         ipv6: fix detection under mingw
22188         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22189         in6_addr.
22190
22191 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22192
22193         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22194         that strtod() works when cross-compiling to a glibc version known
22195         to work.
22196
22197 2010-06-15  Bruno Haible  <bruno@clisp.org>
22198
22199         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22200
22201 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22202
22203         select: Correct timeout.
22204         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22205
22206 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22207
22208         git-version-gen: init shell var to avoid env var influence
22209         * build-aux/git-version-gen (v): Init shell var to empty.
22210
22211 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22212
22213         priv-set: Don't assume that priv.h exists merely because getppriv does.
22214         See Jan Andersen's bug report about AIX 5L in
22215         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22216         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22217         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22218         * lib/priv-set.h: Likewise.
22219         * tests/test-priv-set.c: Likewise.
22220
22221 2010-06-13  Bruno Haible  <bruno@clisp.org>
22222
22223         relocatable: Make it easier to test whether to install wrappers.
22224         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22225         RELOCATABLE_VIA_WRAPPER.
22226
22227 2010-06-13  Bruno Haible  <bruno@clisp.org>
22228
22229         gnulib-tool: Display specified modules and dependencies differently.
22230         * gnulib-tool (func_show_module_list): New function.
22231         (func_import, func_create_testdir): Invoke it.
22232         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22233
22234 2010-06-13  Bruno Haible  <bruno@clisp.org>
22235
22236         gnulib-tool: Align code of func_import and func_create_testdir.
22237         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22238         specified_modules.
22239
22240 2010-06-12  Jim Meyering  <meyering@redhat.com>
22241
22242         test-inttostr: avoid spurious failure on Solaris 9
22243         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22244         to accept "%ju".  Reported by Bruno Haible.
22245
22246 2010-06-11  Jim Meyering  <meyering@redhat.com>
22247
22248         test-sys_socket: mark variables as used more readably
22249         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22250         as "used" explicitly via (void) statement casts.  This is more
22251         readable than using them in an artificial return expression.
22252         Suggestion from Bruno Haible.
22253
22254 2010-06-11  Bruno Haible  <bruno@clisp.org>
22255
22256         Avoid some more warnings from "gcc -Wwrite-strings".
22257         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22258         to 'const char *'.
22259         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22260         * tests/test-c-strcasestr.c (main): Likewise.
22261         * tests/test-mbscasestr1.c (main): Likewise.
22262         * tests/test-mbscasestr2.c (main): Likewise.
22263         * tests/test-memmem.c (main): Likewise.
22264         * tests/test-strstr.c (main): Likewise.
22265         * tests/test-strcasestr.c (main): Likewise.
22266
22267 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22268
22269         init.sh: change framework_failure_ to fail with status 99, not 1
22270         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22271         automake's parallel-tests rule that this is an unexpected failure,
22272         even if the test is listed in XFAIL_TESTS.
22273
22274 2010-06-11  Jim Meyering  <meyering@redhat.com>
22275
22276         test-inttostr: avoid warnings about 4-6KB literal strings
22277         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22278         Include "macros.h", for its definition of ASSERT.
22279         (CK): s/assert/ASSERT/
22280         * modules/inttostr-tests (Files): Add macros.h.
22281
22282         init.sh: don't use $ME_ or skip_ before they are defined
22283         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22284         their first uses.  Also hoist their companions: warn_, fail_,
22285         framework_failure_, $stderr_fileno.  Prompted by a patch from
22286         Stefano Lattarini.
22287
22288         test-sys_socket: avoid set-but-not-used warnings from gcc
22289         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22290         avoid warning about set-but-not-used variables.
22291
22292         test-xvasprintf: avoid 'const' discard warnings
22293         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22294         "const" when assigning from literal strings.
22295         (test_xasprintf): Add "void" in function argument list to placate
22296         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22297
22298         tests: avoid compilation warnings in argmatch and exclude tests...
22299         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22300         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22301         Since it always exits, declare with the "noreturn" attribute.
22302         * tests/test-argmatch.c: Likewise.
22303
22304         tests: avoid 'const' discard warnings in mbsstr tests
22305         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22306         * tests/test-mbsstr2.c (main): Likewise.
22307
22308         test-verify: avoid warning from gcc's -Wmissing-declarations
22309         * tests/test-verify.c (function): Declare to be static.
22310
22311         test-inttostr.c: include <string.h> for use of strcmp
22312         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22313
22314         test-linkat: avoid failed assertion on "other" architectures
22315         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22316         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22317         sparc: https://bugs.launchpad.net/bugs/591968
22318
22319 2010-06-11  Jim Meyering  <meyering@redhat.com>
22320
22321         printf.m4: avoid autoconf's "Expanded Before Required" warning
22322         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22323         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22324         autoconf warning.
22325
22326 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22327
22328         Replacement header templates are now named with ".in", not "_".
22329         * doc/gnulib-intro.texi: Correct.
22330
22331 2010-06-10  Jim Meyering  <meyering@redhat.com>
22332
22333         inttostr-tests: depend on snprintf, not snprintf-posix
22334         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22335         snprintf-posix, to avoid this aclocal failure:
22336           missing file gnulib-tests/vasnprintf.c
22337           configure.ac:45: error: expected source file, required through \
22338           AC_LIBSOURCES, not found
22339
22340 2010-06-10  Jim Meyering  <meyering@redhat.com>
22341
22342         inttostr: add a new function, inttostr, and tests
22343         The namesake function was not available.  The existence of the
22344         template file, inttostr.c makes its addition nontrivial.
22345         * lib/anytostr.c: Rename from inttostr.c.
22346         (anytostr): Rename from inttostr.
22347         * lib/inttostr.c: New file.
22348         * modules/inttostr (Files): Add anytostr.c.
22349         (Makefile.am): Set lib_SOURCES instead of ...
22350         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22351         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22352         * lib/offtostr.c: Likewise.
22353         * lib/uinttostr.c: Likewise.
22354         * lib/umaxtostr.c: Likewise.
22355         * modules/inttostr-tests: New file.
22356         * tests/test-inttostr.c: New file.  Test these functions.
22357
22358 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22359             Bruno Haible  <bruno@clisp.org>
22360
22361         Add "Extending Gnulib" chapter to manual.
22362         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22363         chapter.
22364         (Extending Gnulib): New chapter.
22365         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22366         chapter.
22367
22368 2010-06-09  Bruno Haible  <bruno@clisp.org>
22369
22370         Avoid relocwrapper link errors due to gnulib replacement functions.
22371         * lib/areadlink.c: Use the system's malloc, realloc functions.
22372         (areadlink): Set errno to ENOMEM explicitly.
22373         * modules/areadlink (Depends-on): Remove malloc-posix.
22374         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22375
22376 2010-06-09  Bruno Haible  <bruno@clisp.org>
22377
22378         Avoid relocwrapper link errors due to gnulib replacement functions.
22379         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22380         * lib/malloca.c: Likewise.
22381         * lib/relocatable.c: Likewise.
22382         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22383         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22384         * lib/setenv.c: Use the system's malloc, realloc functions.
22385         * lib/strerror.c: Use the system's sprintf function.
22386         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22387
22388 2010-06-04  Bruno Haible  <bruno@clisp.org>
22389
22390         Prefer documented low-level autoconf macro names.
22391         * m4/lib-link.m4: Use m4_translit instead of translit.
22392         * m4/environ.m4: Likewise.
22393         * m4/mathfunc.m4: Likewise.
22394         * m4/onceonly.m4: Likewise.
22395         * m4/stdint.m4: Likewise.
22396         Suggested by Eric Blake.
22397
22398 2010-06-04  Martin Lambers  <marlam@marlam.de>
22399             Bruno Haible  <bruno@clisp.org>
22400
22401         havelib: Allow library names with '+' characters.
22402         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22403         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22404
22405 2010-06-09  Bruno Haible  <bruno@clisp.org>
22406
22407         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22408         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22409         realloc failed.
22410
22411 2010-06-08  Peter Simons  <simons@cryp.to>
22412
22413         maint.mk: make the news-check rule more configurable
22414         * top/maint.mk (news-check-lines-spec): New variable.
22415         (news-check): Use "sed -n 1,10p" in place of "head".
22416
22417 2010-06-07  Jim Meyering  <meyering@redhat.com>
22418
22419         do-release-commit-and-tag: fix typo in --help
22420         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22421
22422         regex: avoid new dead-code warning with gcc-4.6.0
22423         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22424         if-block containing a while-loop.  It's been unused for at least
22425         5 years.
22426
22427 2010-06-05  Bruno Haible  <bruno@clisp.org>
22428
22429         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22430         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22431
22432 2010-06-04  Bruno Haible  <bruno@clisp.org>
22433
22434         Update to GNU gettext 0.18.1.
22435         * modules/gettext (configure.ac): Require gettext infrastructure from
22436         version 0.18.1.
22437
22438 2010-06-03  Bruno Haible  <bruno@clisp.org>
22439
22440         Don't use AC_LIBOBJ with file names in subdirectories.
22441         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22442         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22443         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22444         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22445         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22446         gl_LIBUNISTRING_LIBSOURCE.
22447         (Makefile.am): Augment lib_SOURCES here, conditionally.
22448         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22449
22450 2010-06-03  Bruno Haible  <bruno@clisp.org>
22451
22452         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22453         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22454         expansion does not end with a newline.
22455         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22456         unnecessary newline.
22457
22458 2010-06-03  Bruno Haible  <bruno@clisp.org>
22459
22460         Reduce dependencies.
22461         * tests/test-quotearg.h: New file, extracted from
22462         tests/test-quotearg.c.
22463         * tests/test-quotearg-simple.c: New file, extracted from
22464         tests/test-quotearg.c.
22465         * tests/test-quotearg.c: Don't include <ctype.h>.
22466         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22467         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22468         use_quote_double_quotes, use_quotearg_colon): Moved to
22469         tests/test-quotearg.h.
22470         (results_g, flag_results, custom_quotes, custom_results): Moved
22471         to tests/test-quotearg-simple.c.
22472         (main): Moved the part that does not depend on gettext to
22473         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22474         performed.
22475         * modules/quotearg-simple: New file.
22476         * modules/quotearg-simple-tests: New file.
22477         * modules/quotearg (Depends-on): Add quotearg-simple.
22478         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22479         (Files): Add tests/test-quotearg.h.
22480         Reported by Paolo Bonzini.
22481
22482 2010-06-03  Bruno Haible  <bruno@clisp.org>
22483
22484         Reduce dependencies.
22485         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22486
22487 2010-06-03  Bruno Haible  <bruno@clisp.org>
22488
22489         time: Undefine more broken macros.
22490         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22491         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22492         Reported by Eric Blake.
22493
22494 2010-06-03  Bruno Haible  <bruno@clisp.org>
22495
22496         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22497         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22498         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22499         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22500         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22501         Reported by Ludovic Courtès <ludo@gnu.org>.
22502
22503 2010-06-02  Eric Blake  <eblake@redhat.com>
22504
22505         time: work with mingw + pthreads-win32 library
22506         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22507         if timespec is defined only in pthread.h.
22508         * modules/time (Makefile.am): Substitute it.
22509         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22510         <pthread.h>, when needed.
22511         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22512         from the library.
22513
22514 2010-05-31  Bruno Haible  <bruno@clisp.org>
22515
22516         Avoid expanding two macros in the wrong order.
22517         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22518         gl_LIBUNISTRING if it is defined.
22519         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22520         autoconf >= 2.64.
22521         Reported by Ludovic Courtès <ludo@gnu.org>.
22522
22523 2010-05-27  Jim Meyering  <meyering@redhat.com>
22524
22525         maint.mk: also prohibit "#undef" of always-defined symbols
22526         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22527         Allow more than one space before the symbol name.
22528         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22529         the regexp uses alternation.
22530
22531 2010-05-26  Eric Blake  <eblake@redhat.com>
22532
22533         maint.mk: avoid echo -e
22534         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22535         Convert all uses of echo -* to printf.
22536         Reported by Matthias Bolte.
22537
22538 2010-05-25  Bruno Haible  <bruno@clisp.org>
22539
22540         Update to GNU gettext 0.18, part 2.
22541         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22542         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22543
22544 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22545
22546         Add missing include in test-pwrite.c.
22547         * tests/test-pwrite.c: Include string.h, for strcmp.
22548
22549 2010-05-24  Bruno Haible  <bruno@clisp.org>
22550
22551         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22552
22553 2010-05-24  Bruno Haible  <bruno@clisp.org>
22554
22555         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22556         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22557         iconveh_error argument.
22558         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22559         U_STRCONV_TO_LOCALE.
22560         * lib/unistr/u16-strcoll.c: Likewise.
22561         * lib/unistr/u32-strcoll.c: Likewise.
22562         * modules/unistr/u8-strcoll (Depends-on): Add
22563         uniconv/u8-strconv-to-enc, localcharset. Remove
22564         uniconv/u8-strconv-to-locale.
22565         (configure.ac): Bump version number.
22566         * modules/unistr/u16-strcoll (Depends-on): Add
22567         uniconv/u16-strconv-to-enc, localcharset. Remove
22568         uniconv/u16-strconv-to-locale.
22569         (configure.ac): Bump version number.
22570         * modules/unistr/u32-strcoll (Depends-on): Add
22571         uniconv/u32-strconv-to-enc, localcharset. Remove
22572         uniconv/u32-strconv-to-locale.
22573         (configure.ac): Bump version number.
22574
22575 2010-05-24  Bruno Haible  <bruno@clisp.org>
22576
22577         Avoid a test failure on NetBSD 5.0.
22578         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22579         an iconv() bug.
22580
22581 2010-05-24  Bruno Haible  <bruno@clisp.org>
22582
22583         Adjust #include directive style.
22584         * modules/regex (Includes): Recommend to write <regex.h>.
22585
22586 2010-05-24  Bruno Haible  <bruno@clisp.org>
22587
22588         regex: Don't require alloca.
22589         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22590         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22591         only inside if (0).
22592
22593 2010-05-23  Jim Meyering  <meyering@redhat.com>
22594
22595         test-renameat.c: include <sys/stat.h>
22596         * tests/test-renameat.c: Include <sys/stat.h>; required for
22597         definition of S_IS* macros.
22598
22599 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22600
22601         Update maintainer documentation for 'relocatable-prog' module.
22602         * doc/relocatable-maint.texi: Update.
22603         Comments by Bruno Haible.
22604
22605 2010-05-23  Bruno Haible  <bruno@clisp.org>
22606
22607         git-merge-changelog: Enable --split-merged-entry by default.
22608         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22609         (usage): Don't mention this option any more.
22610         Reported by Ralf Wildenhues.
22611
22612 2010-05-23  Jim Meyering  <meyering@redhat.com>
22613
22614         test-pwrite: do not leave behind a test file named "out"
22615         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22616         The trivial-looking use of init.sh is really necessary.
22617         It ensures that the temporary file, "out", is created in
22618         a temporary directory, and removed upon termination.
22619         * tests/test-pwrite.sh: Re-add file.
22620         * modules/pwrite-tests: Reference it.
22621
22622 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22623
22624         Fix output redirection buglet in init.sh.
22625         * tests/init.sh: Fix redirection of stderr.
22626
22627 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22628
22629         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22630
22631 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22632
22633         * modules/valgrind-tests: New file.
22634         * m4/valgrind-tests.m4: New file.
22635         * doc/valgrind-tests.texi: New file.
22636         * doc/gnulib.texi (Running self-tests under valgrind): New
22637         section.
22638
22639 2010-05-19  Bruno Haible  <bruno@clisp.org>
22640
22641         Clean up dead code in recent commit.
22642         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22643         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22644         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22645         Suggested by Paolo Bonzini.
22646
22647 2010-05-19  Bruno Haible  <bruno@clisp.org>
22648
22649         Avoid valgrind error reports from libunistring.
22650         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22651         * modules/libunistring (Files): Add it.
22652         * modules/libunistring-optional (Files): Likewise.
22653
22654 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22655             Bruno Haible  <bruno@clisp.org>
22656
22657         New module 'libunistring-optional'.
22658         * modules/libunistring-optional: New file.
22659         * m4/libunistring-base.m4: New file.
22660         * m4/libunistring-optional.m4: New file.
22661         * lib/unicase.in.h: Renamed from lib/unicase.h.
22662         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22663         * lib/unictype.in.h: Renamed from lib/unictype.h.
22664         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22665         * lib/uniname.in.h: Renamed from lib/uniname.h.
22666         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22667         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22668         * lib/unistr.in.h: Renamed from lib/unistr.h.
22669         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22670         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22671         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22672         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22673         gl_LIBUNISTRING. If the library was found, determine the installed
22674         version and set LIBUNISTRING_VERSION.
22675         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22676         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22677         handle a configuration option --with-included-libunistring.
22678         * modules/libunistring (Files): Add m4/absolute-header.m4.
22679         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22680         Add m4/libunistring-base.m4.
22681         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22682         (Makefile.am): Build unicase.h from unicase.in.h.
22683         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22684         Add m4/libunistring-base.m4.
22685         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22686         (Makefile.am): Build uniconv.h from uniconv.in.h.
22687         * modules/unictype/base (Files): Use unictype.in.h instead of
22688         unictype.h. Add m4/libunistring-base.m4.
22689         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22690         (Makefile.am): Build unictype.h from unictype.in.h.
22691         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22692         Add m4/libunistring-base.m4.
22693         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22694         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22695         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22696         Add m4/libunistring-base.m4.
22697         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22698         (Makefile.am): Build uniname.h from uniname.in.h.
22699         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22700         Add m4/libunistring-base.m4.
22701         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22702         (Makefile.am): Build uninorm.h from uninorm.in.h.
22703         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22704         unistdio.h. Add m4/libunistring-base.m4.
22705         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22706         (Makefile.am): Build unistdio.h from unistdio.in.h.
22707         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22708         Add m4/libunistring-base.m4.
22709         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22710         (Makefile.am): Build unistr.h from unistr.in.h.
22711         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22712         Add m4/libunistring-base.m4.
22713         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22714         (Makefile.am): Build unitypes.h from unitypes.in.h.
22715         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22716         Add m4/libunistring-base.m4.
22717         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22718         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22719         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22720         uniwidth.h. Add m4/libunistring-base.m4.
22721         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22722         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22723         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22724         instead of augmenting lib_SOURCES.
22725         * modules/unicase/empty-suffix-context: Likewise.
22726         * modules/unicase/locale-language: Likewise.
22727         * modules/unicase/tolower: Likewise.
22728         * modules/unicase/totitle: Likewise.
22729         * modules/unicase/toupper: Likewise.
22730         * modules/unicase/u8-casecmp: Likewise.
22731         * modules/unicase/u8-casecoll: Likewise.
22732         * modules/unicase/u8-casefold: Likewise.
22733         * modules/unicase/u8-casexfrm: Likewise.
22734         * modules/unicase/u8-ct-casefold: Likewise.
22735         * modules/unicase/u8-ct-tolower: Likewise.
22736         * modules/unicase/u8-ct-totitle: Likewise.
22737         * modules/unicase/u8-ct-toupper: Likewise.
22738         * modules/unicase/u8-is-cased: Likewise.
22739         * modules/unicase/u8-is-casefolded: Likewise.
22740         * modules/unicase/u8-is-lowercase: Likewise.
22741         * modules/unicase/u8-is-titlecase: Likewise.
22742         * modules/unicase/u8-is-uppercase: Likewise.
22743         * modules/unicase/u8-prefix-context: Likewise.
22744         * modules/unicase/u8-suffix-context: Likewise.
22745         * modules/unicase/u8-tolower: Likewise.
22746         * modules/unicase/u8-totitle: Likewise.
22747         * modules/unicase/u8-toupper: Likewise.
22748         * modules/unicase/u16-casecmp: Likewise.
22749         * modules/unicase/u16-casecoll: Likewise.
22750         * modules/unicase/u16-casefold: Likewise.
22751         * modules/unicase/u16-casexfrm: Likewise.
22752         * modules/unicase/u16-ct-casefold: Likewise.
22753         * modules/unicase/u16-ct-tolower: Likewise.
22754         * modules/unicase/u16-ct-totitle: Likewise.
22755         * modules/unicase/u16-ct-toupper: Likewise.
22756         * modules/unicase/u16-is-cased: Likewise.
22757         * modules/unicase/u16-is-casefolded: Likewise.
22758         * modules/unicase/u16-is-lowercase: Likewise.
22759         * modules/unicase/u16-is-titlecase: Likewise.
22760         * modules/unicase/u16-is-uppercase: Likewise.
22761         * modules/unicase/u16-prefix-context: Likewise.
22762         * modules/unicase/u16-suffix-context: Likewise.
22763         * modules/unicase/u16-tolower: Likewise.
22764         * modules/unicase/u16-totitle: Likewise.
22765         * modules/unicase/u16-toupper: Likewise.
22766         * modules/unicase/u32-casecmp: Likewise.
22767         * modules/unicase/u32-casecoll: Likewise.
22768         * modules/unicase/u32-casefold: Likewise.
22769         * modules/unicase/u32-casexfrm: Likewise.
22770         * modules/unicase/u32-ct-casefold: Likewise.
22771         * modules/unicase/u32-ct-tolower: Likewise.
22772         * modules/unicase/u32-ct-totitle: Likewise.
22773         * modules/unicase/u32-ct-toupper: Likewise.
22774         * modules/unicase/u32-is-cased: Likewise.
22775         * modules/unicase/u32-is-casefolded: Likewise.
22776         * modules/unicase/u32-is-lowercase: Likewise.
22777         * modules/unicase/u32-is-titlecase: Likewise.
22778         * modules/unicase/u32-is-uppercase: Likewise.
22779         * modules/unicase/u32-prefix-context: Likewise.
22780         * modules/unicase/u32-suffix-context: Likewise.
22781         * modules/unicase/u32-tolower: Likewise.
22782         * modules/unicase/u32-totitle: Likewise.
22783         * modules/unicase/u32-toupper: Likewise.
22784         * modules/unicase/ulc-casecmp: Likewise.
22785         * modules/unicase/ulc-casecoll: Likewise.
22786         * modules/unicase/ulc-casexfrm: Likewise.
22787         * modules/uniconv/u8-conv-from-enc: Likewise.
22788         * modules/uniconv/u8-conv-to-enc: Likewise.
22789         * modules/uniconv/u8-strconv-from-enc: Likewise.
22790         * modules/uniconv/u8-strconv-from-locale: Likewise.
22791         * modules/uniconv/u8-strconv-to-enc: Likewise.
22792         * modules/uniconv/u8-strconv-to-locale: Likewise.
22793         * modules/uniconv/u16-conv-from-enc: Likewise.
22794         * modules/uniconv/u16-conv-to-enc: Likewise.
22795         * modules/uniconv/u16-strconv-from-enc: Likewise.
22796         * modules/uniconv/u16-strconv-from-locale: Likewise.
22797         * modules/uniconv/u16-strconv-to-enc: Likewise.
22798         * modules/uniconv/u16-strconv-to-locale: Likewise.
22799         * modules/uniconv/u32-conv-from-enc: Likewise.
22800         * modules/uniconv/u32-conv-to-enc: Likewise.
22801         * modules/uniconv/u32-strconv-from-enc: Likewise.
22802         * modules/uniconv/u32-strconv-from-locale: Likewise.
22803         * modules/uniconv/u32-strconv-to-enc: Likewise.
22804         * modules/uniconv/u32-strconv-to-locale: Likewise.
22805         * modules/unictype/bidicategory-byname: Likewise.
22806         * modules/unictype/bidicategory-name: Likewise.
22807         * modules/unictype/bidicategory-of: Likewise.
22808         * modules/unictype/bidicategory-test: Likewise.
22809         * modules/unictype/block-list: Likewise.
22810         * modules/unictype/block-test: Likewise.
22811         * modules/unictype/category-C: Likewise.
22812         * modules/unictype/category-Cc: Likewise.
22813         * modules/unictype/category-Cf: Likewise.
22814         * modules/unictype/category-Cn: Likewise.
22815         * modules/unictype/category-Co: Likewise.
22816         * modules/unictype/category-Cs: Likewise.
22817         * modules/unictype/category-L: Likewise.
22818         * modules/unictype/category-Ll: Likewise.
22819         * modules/unictype/category-Lm: Likewise.
22820         * modules/unictype/category-Lo: Likewise.
22821         * modules/unictype/category-Lt: Likewise.
22822         * modules/unictype/category-Lu: Likewise.
22823         * modules/unictype/category-M: Likewise.
22824         * modules/unictype/category-Mc: Likewise.
22825         * modules/unictype/category-Me: Likewise.
22826         * modules/unictype/category-Mn: Likewise.
22827         * modules/unictype/category-N: Likewise.
22828         * modules/unictype/category-Nd: Likewise.
22829         * modules/unictype/category-Nl: Likewise.
22830         * modules/unictype/category-No: Likewise.
22831         * modules/unictype/category-P: Likewise.
22832         * modules/unictype/category-Pc: Likewise.
22833         * modules/unictype/category-Pd: Likewise.
22834         * modules/unictype/category-Pe: Likewise.
22835         * modules/unictype/category-Pf: Likewise.
22836         * modules/unictype/category-Pi: Likewise.
22837         * modules/unictype/category-Po: Likewise.
22838         * modules/unictype/category-Ps: Likewise.
22839         * modules/unictype/category-S: Likewise.
22840         * modules/unictype/category-Sc: Likewise.
22841         * modules/unictype/category-Sk: Likewise.
22842         * modules/unictype/category-Sm: Likewise.
22843         * modules/unictype/category-So: Likewise.
22844         * modules/unictype/category-Z: Likewise.
22845         * modules/unictype/category-Zl: Likewise.
22846         * modules/unictype/category-Zp: Likewise.
22847         * modules/unictype/category-Zs: Likewise.
22848         * modules/unictype/category-and: Likewise.
22849         * modules/unictype/category-and-not: Likewise.
22850         * modules/unictype/category-byname: Likewise.
22851         * modules/unictype/category-name: Likewise.
22852         * modules/unictype/category-none: Likewise.
22853         * modules/unictype/category-of: Likewise.
22854         * modules/unictype/category-or: Likewise.
22855         * modules/unictype/category-test: Likewise.
22856         * modules/unictype/combining-class: Likewise.
22857         * modules/unictype/ctype-alnum: Likewise.
22858         * modules/unictype/ctype-alpha: Likewise.
22859         * modules/unictype/ctype-blank: Likewise.
22860         * modules/unictype/ctype-cntrl: Likewise.
22861         * modules/unictype/ctype-digit: Likewise.
22862         * modules/unictype/ctype-graph: Likewise.
22863         * modules/unictype/ctype-lower: Likewise.
22864         * modules/unictype/ctype-print: Likewise.
22865         * modules/unictype/ctype-punct: Likewise.
22866         * modules/unictype/ctype-space: Likewise.
22867         * modules/unictype/ctype-upper: Likewise.
22868         * modules/unictype/ctype-xdigit: Likewise.
22869         * modules/unictype/decimal-digit: Likewise.
22870         * modules/unictype/digit: Likewise.
22871         * modules/unictype/mirror: Likewise.
22872         * modules/unictype/numeric: Likewise.
22873         * modules/unictype/property-alphabetic: Likewise.
22874         * modules/unictype/property-ascii-hex-digit: Likewise.
22875         * modules/unictype/property-bidi-arabic-digit: Likewise.
22876         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22877         * modules/unictype/property-bidi-block-separator: Likewise.
22878         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22879         * modules/unictype/property-bidi-common-separator: Likewise.
22880         * modules/unictype/property-bidi-control: Likewise.
22881         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22882         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22883         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22884         * modules/unictype/property-bidi-european-digit: Likewise.
22885         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22886         * modules/unictype/property-bidi-left-to-right: Likewise.
22887         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22888         * modules/unictype/property-bidi-other-neutral: Likewise.
22889         * modules/unictype/property-bidi-pdf: Likewise.
22890         * modules/unictype/property-bidi-segment-separator: Likewise.
22891         * modules/unictype/property-bidi-whitespace: Likewise.
22892         * modules/unictype/property-byname: Likewise.
22893         * modules/unictype/property-combining: Likewise.
22894         * modules/unictype/property-composite: Likewise.
22895         * modules/unictype/property-currency-symbol: Likewise.
22896         * modules/unictype/property-dash: Likewise.
22897         * modules/unictype/property-decimal-digit: Likewise.
22898         * modules/unictype/property-default-ignorable-code-point: Likewise.
22899         * modules/unictype/property-deprecated: Likewise.
22900         * modules/unictype/property-diacritic: Likewise.
22901         * modules/unictype/property-extender: Likewise.
22902         * modules/unictype/property-format-control: Likewise.
22903         * modules/unictype/property-grapheme-base: Likewise.
22904         * modules/unictype/property-grapheme-extend: Likewise.
22905         * modules/unictype/property-grapheme-link: Likewise.
22906         * modules/unictype/property-hex-digit: Likewise.
22907         * modules/unictype/property-hyphen: Likewise.
22908         * modules/unictype/property-id-continue: Likewise.
22909         * modules/unictype/property-id-start: Likewise.
22910         * modules/unictype/property-ideographic: Likewise.
22911         * modules/unictype/property-ids-binary-operator: Likewise.
22912         * modules/unictype/property-ids-trinary-operator: Likewise.
22913         * modules/unictype/property-ignorable-control: Likewise.
22914         * modules/unictype/property-iso-control: Likewise.
22915         * modules/unictype/property-join-control: Likewise.
22916         * modules/unictype/property-left-of-pair: Likewise.
22917         * modules/unictype/property-line-separator: Likewise.
22918         * modules/unictype/property-logical-order-exception: Likewise.
22919         * modules/unictype/property-lowercase: Likewise.
22920         * modules/unictype/property-math: Likewise.
22921         * modules/unictype/property-non-break: Likewise.
22922         * modules/unictype/property-not-a-character: Likewise.
22923         * modules/unictype/property-numeric: Likewise.
22924         * modules/unictype/property-other-alphabetic: Likewise.
22925         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22926         * modules/unictype/property-other-grapheme-extend: Likewise.
22927         * modules/unictype/property-other-id-continue: Likewise.
22928         * modules/unictype/property-other-id-start: Likewise.
22929         * modules/unictype/property-other-lowercase: Likewise.
22930         * modules/unictype/property-other-math: Likewise.
22931         * modules/unictype/property-other-uppercase: Likewise.
22932         * modules/unictype/property-paired-punctuation: Likewise.
22933         * modules/unictype/property-paragraph-separator: Likewise.
22934         * modules/unictype/property-pattern-syntax: Likewise.
22935         * modules/unictype/property-pattern-white-space: Likewise.
22936         * modules/unictype/property-private-use: Likewise.
22937         * modules/unictype/property-punctuation: Likewise.
22938         * modules/unictype/property-quotation-mark: Likewise.
22939         * modules/unictype/property-radical: Likewise.
22940         * modules/unictype/property-sentence-terminal: Likewise.
22941         * modules/unictype/property-soft-dotted: Likewise.
22942         * modules/unictype/property-space: Likewise.
22943         * modules/unictype/property-terminal-punctuation: Likewise.
22944         * modules/unictype/property-test: Likewise.
22945         * modules/unictype/property-titlecase: Likewise.
22946         * modules/unictype/property-unassigned-code-value: Likewise.
22947         * modules/unictype/property-unified-ideograph: Likewise.
22948         * modules/unictype/property-uppercase: Likewise.
22949         * modules/unictype/property-variation-selector: Likewise.
22950         * modules/unictype/property-white-space: Likewise.
22951         * modules/unictype/property-xid-continue: Likewise.
22952         * modules/unictype/property-xid-start: Likewise.
22953         * modules/unictype/property-zero-width: Likewise.
22954         * modules/unictype/scripts: Likewise.
22955         * modules/unictype/syntax-c-ident: Likewise.
22956         * modules/unictype/syntax-c-whitespace: Likewise.
22957         * modules/unictype/syntax-java-ident: Likewise.
22958         * modules/unictype/syntax-java-whitespace: Likewise.
22959         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22960         * modules/unilbrk/u8-width-linebreaks: Likewise.
22961         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22962         * modules/unilbrk/u16-width-linebreaks: Likewise.
22963         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22964         * modules/unilbrk/u32-width-linebreaks: Likewise.
22965         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22966         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22967         * modules/uniname/uniname: Likewise.
22968         * modules/uninorm/canonical-decomposition: Likewise.
22969         * modules/uninorm/composition: Likewise.
22970         * modules/uninorm/decomposing-form: Likewise.
22971         * modules/uninorm/decomposition: Likewise.
22972         * modules/uninorm/filter: Likewise.
22973         * modules/uninorm/nfc: Likewise.
22974         * modules/uninorm/nfd: Likewise.
22975         * modules/uninorm/nfkc: Likewise.
22976         * modules/uninorm/nfkd: Likewise.
22977         * modules/uninorm/u8-normalize: Likewise.
22978         * modules/uninorm/u8-normcmp: Likewise.
22979         * modules/uninorm/u8-normcoll: Likewise.
22980         * modules/uninorm/u8-normxfrm: Likewise.
22981         * modules/uninorm/u16-normalize: Likewise.
22982         * modules/uninorm/u16-normcmp: Likewise.
22983         * modules/uninorm/u16-normcoll: Likewise.
22984         * modules/uninorm/u16-normxfrm: Likewise.
22985         * modules/uninorm/u32-normalize: Likewise.
22986         * modules/uninorm/u32-normcmp: Likewise.
22987         * modules/uninorm/u32-normcoll: Likewise.
22988         * modules/uninorm/u32-normxfrm: Likewise.
22989         * modules/unistdio/u8-asnprintf: Likewise.
22990         * modules/unistdio/u8-asprintf: Likewise.
22991         * modules/unistdio/u8-snprintf: Likewise.
22992         * modules/unistdio/u8-sprintf: Likewise.
22993         * modules/unistdio/u8-u8-asnprintf: Likewise.
22994         * modules/unistdio/u8-u8-asprintf: Likewise.
22995         * modules/unistdio/u8-u8-snprintf: Likewise.
22996         * modules/unistdio/u8-u8-sprintf: Likewise.
22997         * modules/unistdio/u8-u8-vasnprintf: Likewise.
22998         * modules/unistdio/u8-u8-vasprintf: Likewise.
22999         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23000         * modules/unistdio/u8-u8-vsprintf: Likewise.
23001         * modules/unistdio/u8-vasnprintf: Likewise.
23002         * modules/unistdio/u8-vasprintf: Likewise.
23003         * modules/unistdio/u8-vsnprintf: Likewise.
23004         * modules/unistdio/u8-vsprintf: Likewise.
23005         * modules/unistdio/u16-asnprintf: Likewise.
23006         * modules/unistdio/u16-asprintf: Likewise.
23007         * modules/unistdio/u16-snprintf: Likewise.
23008         * modules/unistdio/u16-sprintf: Likewise.
23009         * modules/unistdio/u16-u16-asnprintf: Likewise.
23010         * modules/unistdio/u16-u16-asprintf: Likewise.
23011         * modules/unistdio/u16-u16-snprintf: Likewise.
23012         * modules/unistdio/u16-u16-sprintf: Likewise.
23013         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23014         * modules/unistdio/u16-u16-vasprintf: Likewise.
23015         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23016         * modules/unistdio/u16-u16-vsprintf: Likewise.
23017         * modules/unistdio/u16-vasnprintf: Likewise.
23018         * modules/unistdio/u16-vasprintf: Likewise.
23019         * modules/unistdio/u16-vsnprintf: Likewise.
23020         * modules/unistdio/u16-vsprintf: Likewise.
23021         * modules/unistdio/u32-asnprintf: Likewise.
23022         * modules/unistdio/u32-asprintf: Likewise.
23023         * modules/unistdio/u32-snprintf: Likewise.
23024         * modules/unistdio/u32-sprintf: Likewise.
23025         * modules/unistdio/u32-u32-asnprintf: Likewise.
23026         * modules/unistdio/u32-u32-asprintf: Likewise.
23027         * modules/unistdio/u32-u32-snprintf: Likewise.
23028         * modules/unistdio/u32-u32-sprintf: Likewise.
23029         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23030         * modules/unistdio/u32-u32-vasprintf: Likewise.
23031         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23032         * modules/unistdio/u32-u32-vsprintf: Likewise.
23033         * modules/unistdio/u32-vasnprintf: Likewise.
23034         * modules/unistdio/u32-vasprintf: Likewise.
23035         * modules/unistdio/u32-vsnprintf: Likewise.
23036         * modules/unistdio/u32-vsprintf: Likewise.
23037         * modules/unistdio/ulc-asnprintf: Likewise.
23038         * modules/unistdio/ulc-asprintf: Likewise.
23039         * modules/unistdio/ulc-fprintf: Likewise.
23040         * modules/unistdio/ulc-snprintf: Likewise.
23041         * modules/unistdio/ulc-sprintf: Likewise.
23042         * modules/unistdio/ulc-vasnprintf: Likewise.
23043         * modules/unistdio/ulc-vasprintf: Likewise.
23044         * modules/unistdio/ulc-vfprintf: Likewise.
23045         * modules/unistdio/ulc-vsnprintf: Likewise.
23046         * modules/unistdio/ulc-vsprintf: Likewise.
23047         * modules/unistr/u8-check: Likewise.
23048         * modules/unistr/u8-chr: Likewise.
23049         * modules/unistr/u8-cmp: Likewise.
23050         * modules/unistr/u8-cmp2: Likewise.
23051         * modules/unistr/u8-cpy: Likewise.
23052         * modules/unistr/u8-cpy-alloc: Likewise.
23053         * modules/unistr/u8-endswith: Likewise.
23054         * modules/unistr/u8-mblen: Likewise.
23055         * modules/unistr/u8-mbsnlen: Likewise.
23056         * modules/unistr/u8-mbtouc: Likewise.
23057         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23058         * modules/unistr/u8-mbtoucr: Likewise.
23059         * modules/unistr/u8-move: Likewise.
23060         * modules/unistr/u8-next: Likewise.
23061         * modules/unistr/u8-prev: Likewise.
23062         * modules/unistr/u8-set: Likewise.
23063         * modules/unistr/u8-startswith: Likewise.
23064         * modules/unistr/u8-stpcpy: Likewise.
23065         * modules/unistr/u8-stpncpy: Likewise.
23066         * modules/unistr/u8-strcat: Likewise.
23067         * modules/unistr/u8-strchr: Likewise.
23068         * modules/unistr/u8-strcmp: Likewise.
23069         * modules/unistr/u8-strcoll: Likewise.
23070         * modules/unistr/u8-strcpy: Likewise.
23071         * modules/unistr/u8-strcspn: Likewise.
23072         * modules/unistr/u8-strdup: Likewise.
23073         * modules/unistr/u8-strlen: Likewise.
23074         * modules/unistr/u8-strmblen: Likewise.
23075         * modules/unistr/u8-strmbtouc: Likewise.
23076         * modules/unistr/u8-strncat: Likewise.
23077         * modules/unistr/u8-strncmp: Likewise.
23078         * modules/unistr/u8-strncpy: Likewise.
23079         * modules/unistr/u8-strnlen: Likewise.
23080         * modules/unistr/u8-strpbrk: Likewise.
23081         * modules/unistr/u8-strrchr: Likewise.
23082         * modules/unistr/u8-strspn: Likewise.
23083         * modules/unistr/u8-strstr: Likewise.
23084         * modules/unistr/u8-strtok: Likewise.
23085         * modules/unistr/u8-to-u16: Likewise.
23086         * modules/unistr/u8-to-u32: Likewise.
23087         * modules/unistr/u8-uctomb: Likewise.
23088         * modules/unistr/u16-check: Likewise.
23089         * modules/unistr/u16-chr: Likewise.
23090         * modules/unistr/u16-cmp: Likewise.
23091         * modules/unistr/u16-cmp2: Likewise.
23092         * modules/unistr/u16-cpy: Likewise.
23093         * modules/unistr/u16-cpy-alloc: Likewise.
23094         * modules/unistr/u16-endswith: Likewise.
23095         * modules/unistr/u16-mblen: Likewise.
23096         * modules/unistr/u16-mbsnlen: Likewise.
23097         * modules/unistr/u16-mbtouc: Likewise.
23098         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23099         * modules/unistr/u16-mbtoucr: Likewise.
23100         * modules/unistr/u16-move: Likewise.
23101         * modules/unistr/u16-next: Likewise.
23102         * modules/unistr/u16-prev: Likewise.
23103         * modules/unistr/u16-set: Likewise.
23104         * modules/unistr/u16-startswith: Likewise.
23105         * modules/unistr/u16-stpcpy: Likewise.
23106         * modules/unistr/u16-stpncpy: Likewise.
23107         * modules/unistr/u16-strcat: Likewise.
23108         * modules/unistr/u16-strchr: Likewise.
23109         * modules/unistr/u16-strcmp: Likewise.
23110         * modules/unistr/u16-strcoll: Likewise.
23111         * modules/unistr/u16-strcpy: Likewise.
23112         * modules/unistr/u16-strcspn: Likewise.
23113         * modules/unistr/u16-strdup: Likewise.
23114         * modules/unistr/u16-strlen: Likewise.
23115         * modules/unistr/u16-strmblen: Likewise.
23116         * modules/unistr/u16-strmbtouc: Likewise.
23117         * modules/unistr/u16-strncat: Likewise.
23118         * modules/unistr/u16-strncmp: Likewise.
23119         * modules/unistr/u16-strncpy: Likewise.
23120         * modules/unistr/u16-strnlen: Likewise.
23121         * modules/unistr/u16-strpbrk: Likewise.
23122         * modules/unistr/u16-strrchr: Likewise.
23123         * modules/unistr/u16-strspn: Likewise.
23124         * modules/unistr/u16-strstr: Likewise.
23125         * modules/unistr/u16-strtok: Likewise.
23126         * modules/unistr/u16-to-u32: Likewise.
23127         * modules/unistr/u16-to-u8: Likewise.
23128         * modules/unistr/u16-uctomb: Likewise.
23129         * modules/unistr/u32-check: Likewise.
23130         * modules/unistr/u32-chr: Likewise.
23131         * modules/unistr/u32-cmp: Likewise.
23132         * modules/unistr/u32-cmp2: Likewise.
23133         * modules/unistr/u32-cpy: Likewise.
23134         * modules/unistr/u32-cpy-alloc: Likewise.
23135         * modules/unistr/u32-endswith: Likewise.
23136         * modules/unistr/u32-mblen: Likewise.
23137         * modules/unistr/u32-mbsnlen: Likewise.
23138         * modules/unistr/u32-mbtouc: Likewise.
23139         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23140         * modules/unistr/u32-mbtoucr: Likewise.
23141         * modules/unistr/u32-move: Likewise.
23142         * modules/unistr/u32-next: Likewise.
23143         * modules/unistr/u32-prev: Likewise.
23144         * modules/unistr/u32-set: Likewise.
23145         * modules/unistr/u32-startswith: Likewise.
23146         * modules/unistr/u32-stpcpy: Likewise.
23147         * modules/unistr/u32-stpncpy: Likewise.
23148         * modules/unistr/u32-strcat: Likewise.
23149         * modules/unistr/u32-strchr: Likewise.
23150         * modules/unistr/u32-strcmp: Likewise.
23151         * modules/unistr/u32-strcoll: Likewise.
23152         * modules/unistr/u32-strcpy: Likewise.
23153         * modules/unistr/u32-strcspn: Likewise.
23154         * modules/unistr/u32-strdup: Likewise.
23155         * modules/unistr/u32-strlen: Likewise.
23156         * modules/unistr/u32-strmblen: Likewise.
23157         * modules/unistr/u32-strmbtouc: Likewise.
23158         * modules/unistr/u32-strncat: Likewise.
23159         * modules/unistr/u32-strncmp: Likewise.
23160         * modules/unistr/u32-strncpy: Likewise.
23161         * modules/unistr/u32-strnlen: Likewise.
23162         * modules/unistr/u32-strpbrk: Likewise.
23163         * modules/unistr/u32-strrchr: Likewise.
23164         * modules/unistr/u32-strspn: Likewise.
23165         * modules/unistr/u32-strstr: Likewise.
23166         * modules/unistr/u32-strtok: Likewise.
23167         * modules/unistr/u32-to-u16: Likewise.
23168         * modules/unistr/u32-to-u8: Likewise.
23169         * modules/unistr/u32-uctomb: Likewise.
23170         * modules/uniwbrk/u8-wordbreaks: Likewise.
23171         * modules/uniwbrk/u16-wordbreaks: Likewise.
23172         * modules/uniwbrk/u32-wordbreaks: Likewise.
23173         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23174         * modules/uniwbrk/wordbreak-property: Likewise.
23175         * modules/uniwidth/u8-strwidth: Likewise.
23176         * modules/uniwidth/u8-width: Likewise.
23177         * modules/uniwidth/u16-strwidth: Likewise.
23178         * modules/uniwidth/u16-width: Likewise.
23179         * modules/uniwidth/u32-strwidth: Likewise.
23180         * modules/uniwidth/u32-width: Likewise.
23181         * modules/uniwidth/width: Likewise.
23182         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23183         with $(LIBUNISTRING).
23184         * modules/unicase/ignorable-tests: Likewise.
23185         * modules/unicase/locale-language-tests: Likewise.
23186         * modules/unicase/tolower-tests: Likewise.
23187         * modules/unicase/totitle-tests: Likewise.
23188         * modules/unicase/toupper-tests: Likewise.
23189         * modules/unicase/u8-casecmp-tests: Likewise.
23190         * modules/unicase/u8-casecoll-tests: Likewise.
23191         * modules/unicase/u8-casefold-tests: Likewise.
23192         * modules/unicase/u8-is-cased-tests: Likewise.
23193         * modules/unicase/u8-is-casefolded-tests: Likewise.
23194         * modules/unicase/u8-is-lowercase-tests: Likewise.
23195         * modules/unicase/u8-is-titlecase-tests: Likewise.
23196         * modules/unicase/u8-is-uppercase-tests: Likewise.
23197         * modules/unicase/u8-tolower-tests: Likewise.
23198         * modules/unicase/u8-totitle-tests: Likewise.
23199         * modules/unicase/u8-toupper-tests: Likewise.
23200         * modules/unicase/u16-casecmp-tests: Likewise.
23201         * modules/unicase/u16-casecoll-tests: Likewise.
23202         * modules/unicase/u16-casefold-tests: Likewise.
23203         * modules/unicase/u16-is-cased-tests: Likewise.
23204         * modules/unicase/u16-is-casefolded-tests: Likewise.
23205         * modules/unicase/u16-is-lowercase-tests: Likewise.
23206         * modules/unicase/u16-is-titlecase-tests: Likewise.
23207         * modules/unicase/u16-is-uppercase-tests: Likewise.
23208         * modules/unicase/u16-tolower-tests: Likewise.
23209         * modules/unicase/u16-totitle-tests: Likewise.
23210         * modules/unicase/u16-toupper-tests: Likewise.
23211         * modules/unicase/u32-casecmp-tests: Likewise.
23212         * modules/unicase/u32-casecoll-tests: Likewise.
23213         * modules/unicase/u32-casefold-tests: Likewise.
23214         * modules/unicase/u32-is-cased-tests: Likewise.
23215         * modules/unicase/u32-is-casefolded-tests: Likewise.
23216         * modules/unicase/u32-is-lowercase-tests: Likewise.
23217         * modules/unicase/u32-is-titlecase-tests: Likewise.
23218         * modules/unicase/u32-is-uppercase-tests: Likewise.
23219         * modules/unicase/u32-tolower-tests: Likewise.
23220         * modules/unicase/u32-totitle-tests: Likewise.
23221         * modules/unicase/u32-toupper-tests: Likewise.
23222         * modules/unicase/ulc-casecmp-tests: Likewise.
23223         * modules/unicase/ulc-casecoll-tests: Likewise.
23224         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23225         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23226         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23227         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23228         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23229         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23230         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23231         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23232         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23233         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23234         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23235         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23236         * modules/unictype/bidicategory-byname-tests: Likewise.
23237         * modules/unictype/bidicategory-name-tests: Likewise.
23238         * modules/unictype/bidicategory-of-tests: Likewise.
23239         * modules/unictype/bidicategory-test-tests: Likewise.
23240         * modules/unictype/block-list-tests: Likewise.
23241         * modules/unictype/block-of-tests: Likewise.
23242         * modules/unictype/block-test-tests: Likewise.
23243         * modules/unictype/category-C-tests: Likewise.
23244         * modules/unictype/category-Cc-tests: Likewise.
23245         * modules/unictype/category-Cf-tests: Likewise.
23246         * modules/unictype/category-Cn-tests: Likewise.
23247         * modules/unictype/category-Co-tests: Likewise.
23248         * modules/unictype/category-Cs-tests: Likewise.
23249         * modules/unictype/category-L-tests: Likewise.
23250         * modules/unictype/category-Ll-tests: Likewise.
23251         * modules/unictype/category-Lm-tests: Likewise.
23252         * modules/unictype/category-Lo-tests: Likewise.
23253         * modules/unictype/category-Lt-tests: Likewise.
23254         * modules/unictype/category-Lu-tests: Likewise.
23255         * modules/unictype/category-M-tests: Likewise.
23256         * modules/unictype/category-Mc-tests: Likewise.
23257         * modules/unictype/category-Me-tests: Likewise.
23258         * modules/unictype/category-Mn-tests: Likewise.
23259         * modules/unictype/category-N-tests: Likewise.
23260         * modules/unictype/category-Nd-tests: Likewise.
23261         * modules/unictype/category-Nl-tests: Likewise.
23262         * modules/unictype/category-No-tests: Likewise.
23263         * modules/unictype/category-P-tests: Likewise.
23264         * modules/unictype/category-Pc-tests: Likewise.
23265         * modules/unictype/category-Pd-tests: Likewise.
23266         * modules/unictype/category-Pe-tests: Likewise.
23267         * modules/unictype/category-Pf-tests: Likewise.
23268         * modules/unictype/category-Pi-tests: Likewise.
23269         * modules/unictype/category-Po-tests: Likewise.
23270         * modules/unictype/category-Ps-tests: Likewise.
23271         * modules/unictype/category-S-tests: Likewise.
23272         * modules/unictype/category-Sc-tests: Likewise.
23273         * modules/unictype/category-Sk-tests: Likewise.
23274         * modules/unictype/category-Sm-tests: Likewise.
23275         * modules/unictype/category-So-tests: Likewise.
23276         * modules/unictype/category-Z-tests: Likewise.
23277         * modules/unictype/category-Zl-tests: Likewise.
23278         * modules/unictype/category-Zp-tests: Likewise.
23279         * modules/unictype/category-Zs-tests: Likewise.
23280         * modules/unictype/category-and-not-tests: Likewise.
23281         * modules/unictype/category-and-tests: Likewise.
23282         * modules/unictype/category-byname-tests: Likewise.
23283         * modules/unictype/category-name-tests: Likewise.
23284         * modules/unictype/category-none-tests: Likewise.
23285         * modules/unictype/category-of-tests: Likewise.
23286         * modules/unictype/category-or-tests: Likewise.
23287         * modules/unictype/category-test-withtable-tests: Likewise.
23288         * modules/unictype/combining-class-tests: Likewise.
23289         * modules/unictype/ctype-alnum-tests: Likewise.
23290         * modules/unictype/ctype-alpha-tests: Likewise.
23291         * modules/unictype/ctype-blank-tests: Likewise.
23292         * modules/unictype/ctype-cntrl-tests: Likewise.
23293         * modules/unictype/ctype-digit-tests: Likewise.
23294         * modules/unictype/ctype-graph-tests: Likewise.
23295         * modules/unictype/ctype-lower-tests: Likewise.
23296         * modules/unictype/ctype-print-tests: Likewise.
23297         * modules/unictype/ctype-punct-tests: Likewise.
23298         * modules/unictype/ctype-space-tests: Likewise.
23299         * modules/unictype/ctype-upper-tests: Likewise.
23300         * modules/unictype/ctype-xdigit-tests: Likewise.
23301         * modules/unictype/decimal-digit-tests: Likewise.
23302         * modules/unictype/digit-tests: Likewise.
23303         * modules/unictype/mirror-tests: Likewise.
23304         * modules/unictype/numeric-tests: Likewise.
23305         * modules/unictype/property-alphabetic-tests: Likewise.
23306         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23307         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23308         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23309         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23310         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23311         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23312         * modules/unictype/property-bidi-control-tests: Likewise.
23313         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23314         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23315         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23316         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23317         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23318         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23319         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23320         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23321         * modules/unictype/property-bidi-pdf-tests: Likewise.
23322         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23323         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23324         * modules/unictype/property-byname-tests: Likewise.
23325         * modules/unictype/property-combining-tests: Likewise.
23326         * modules/unictype/property-composite-tests: Likewise.
23327         * modules/unictype/property-currency-symbol-tests: Likewise.
23328         * modules/unictype/property-dash-tests: Likewise.
23329         * modules/unictype/property-decimal-digit-tests: Likewise.
23330         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23331         * modules/unictype/property-deprecated-tests: Likewise.
23332         * modules/unictype/property-diacritic-tests: Likewise.
23333         * modules/unictype/property-extender-tests: Likewise.
23334         * modules/unictype/property-format-control-tests: Likewise.
23335         * modules/unictype/property-grapheme-base-tests: Likewise.
23336         * modules/unictype/property-grapheme-extend-tests: Likewise.
23337         * modules/unictype/property-grapheme-link-tests: Likewise.
23338         * modules/unictype/property-hex-digit-tests: Likewise.
23339         * modules/unictype/property-hyphen-tests: Likewise.
23340         * modules/unictype/property-id-continue-tests: Likewise.
23341         * modules/unictype/property-id-start-tests: Likewise.
23342         * modules/unictype/property-ideographic-tests: Likewise.
23343         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23344         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23345         * modules/unictype/property-ignorable-control-tests: Likewise.
23346         * modules/unictype/property-iso-control-tests: Likewise.
23347         * modules/unictype/property-join-control-tests: Likewise.
23348         * modules/unictype/property-left-of-pair-tests: Likewise.
23349         * modules/unictype/property-line-separator-tests: Likewise.
23350         * modules/unictype/property-logical-order-exception-tests: Likewise.
23351         * modules/unictype/property-lowercase-tests: Likewise.
23352         * modules/unictype/property-math-tests: Likewise.
23353         * modules/unictype/property-non-break-tests: Likewise.
23354         * modules/unictype/property-not-a-character-tests: Likewise.
23355         * modules/unictype/property-numeric-tests: Likewise.
23356         * modules/unictype/property-other-alphabetic-tests: Likewise.
23357         * modules/unictype/property-other-default-ignorable-code-point-tests:
23358         Likewise.
23359         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23360         * modules/unictype/property-other-id-continue-tests: Likewise.
23361         * modules/unictype/property-other-id-start-tests: Likewise.
23362         * modules/unictype/property-other-lowercase-tests: Likewise.
23363         * modules/unictype/property-other-math-tests: Likewise.
23364         * modules/unictype/property-other-uppercase-tests: Likewise.
23365         * modules/unictype/property-paired-punctuation-tests: Likewise.
23366         * modules/unictype/property-paragraph-separator-tests: Likewise.
23367         * modules/unictype/property-pattern-syntax-tests: Likewise.
23368         * modules/unictype/property-pattern-white-space-tests: Likewise.
23369         * modules/unictype/property-private-use-tests: Likewise.
23370         * modules/unictype/property-punctuation-tests: Likewise.
23371         * modules/unictype/property-quotation-mark-tests: Likewise.
23372         * modules/unictype/property-radical-tests: Likewise.
23373         * modules/unictype/property-sentence-terminal-tests: Likewise.
23374         * modules/unictype/property-soft-dotted-tests: Likewise.
23375         * modules/unictype/property-space-tests: Likewise.
23376         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23377         * modules/unictype/property-test-tests: Likewise.
23378         * modules/unictype/property-titlecase-tests: Likewise.
23379         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23380         * modules/unictype/property-unified-ideograph-tests: Likewise.
23381         * modules/unictype/property-uppercase-tests: Likewise.
23382         * modules/unictype/property-variation-selector-tests: Likewise.
23383         * modules/unictype/property-white-space-tests: Likewise.
23384         * modules/unictype/property-xid-continue-tests: Likewise.
23385         * modules/unictype/property-xid-start-tests: Likewise.
23386         * modules/unictype/property-zero-width-tests: Likewise.
23387         * modules/unictype/scripts-tests: Likewise.
23388         * modules/unictype/syntax-c-ident-tests: Likewise.
23389         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23390         * modules/unictype/syntax-java-ident-tests: Likewise.
23391         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23392         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23393         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23394         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23395         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23396         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23397         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23398         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23399         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23400         * modules/uniname/uniname-tests: Likewise.
23401         * modules/uninorm/canonical-decomposition-tests: Likewise.
23402         * modules/uninorm/compat-decomposition-tests: Likewise.
23403         * modules/uninorm/composition-tests: Likewise.
23404         * modules/uninorm/decomposing-form-tests: Likewise.
23405         * modules/uninorm/decomposition-tests: Likewise.
23406         * modules/uninorm/filter-tests: Likewise.
23407         * modules/uninorm/nfc-tests: Likewise.
23408         * modules/uninorm/nfd-tests: Likewise.
23409         * modules/uninorm/nfkc-tests: Likewise.
23410         * modules/uninorm/nfkd-tests: Likewise.
23411         * modules/uninorm/u8-normcmp-tests: Likewise.
23412         * modules/uninorm/u8-normcoll-tests: Likewise.
23413         * modules/uninorm/u16-normcmp-tests: Likewise.
23414         * modules/uninorm/u16-normcoll-tests: Likewise.
23415         * modules/uninorm/u32-normcmp-tests: Likewise.
23416         * modules/uninorm/u32-normcoll-tests: Likewise.
23417         * modules/unistdio/u8-asnprintf-tests: Likewise.
23418         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23419         * modules/unistdio/u8-vasprintf-tests: Likewise.
23420         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23421         * modules/unistdio/u8-vsprintf-tests: Likewise.
23422         * modules/unistdio/u16-asnprintf-tests: Likewise.
23423         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23424         * modules/unistdio/u16-vasprintf-tests: Likewise.
23425         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23426         * modules/unistdio/u16-vsprintf-tests: Likewise.
23427         * modules/unistdio/u32-asnprintf-tests: Likewise.
23428         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23429         * modules/unistdio/u32-vasprintf-tests: Likewise.
23430         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23431         * modules/unistdio/u32-vsprintf-tests: Likewise.
23432         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23433         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23434         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23435         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23436         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23437         * modules/unistr/u8-check-tests: Likewise.
23438         * modules/unistr/u8-chr-tests: Likewise.
23439         * modules/unistr/u8-cmp-tests: Likewise.
23440         * modules/unistr/u8-cmp2-tests: Likewise.
23441         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23442         * modules/unistr/u8-cpy-tests: Likewise.
23443         * modules/unistr/u8-mblen-tests: Likewise.
23444         * modules/unistr/u8-mbsnlen-tests: Likewise.
23445         * modules/unistr/u8-mbtouc-tests: Likewise.
23446         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23447         * modules/unistr/u8-mbtoucr-tests: Likewise.
23448         * modules/unistr/u8-move-tests: Likewise.
23449         * modules/unistr/u8-next-tests: Likewise.
23450         * modules/unistr/u8-prev-tests: Likewise.
23451         * modules/unistr/u8-set-tests: Likewise.
23452         * modules/unistr/u8-stpcpy-tests: Likewise.
23453         * modules/unistr/u8-stpncpy-tests: Likewise.
23454         * modules/unistr/u8-strcat-tests: Likewise.
23455         * modules/unistr/u8-strcmp-tests: Likewise.
23456         * modules/unistr/u8-strcoll-tests: Likewise.
23457         * modules/unistr/u8-strcpy-tests: Likewise.
23458         * modules/unistr/u8-strdup-tests: Likewise.
23459         * modules/unistr/u8-strlen-tests: Likewise.
23460         * modules/unistr/u8-strmblen-tests: Likewise.
23461         * modules/unistr/u8-strmbtouc-tests: Likewise.
23462         * modules/unistr/u8-strncat-tests: Likewise.
23463         * modules/unistr/u8-strncmp-tests: Likewise.
23464         * modules/unistr/u8-strncpy-tests: Likewise.
23465         * modules/unistr/u8-strnlen-tests: Likewise.
23466         * modules/unistr/u8-to-u16-tests: Likewise.
23467         * modules/unistr/u8-to-u32-tests: Likewise.
23468         * modules/unistr/u8-uctomb-tests: Likewise.
23469         * modules/unistr/u16-check-tests: Likewise.
23470         * modules/unistr/u16-chr-tests: Likewise.
23471         * modules/unistr/u16-cmp-tests: Likewise.
23472         * modules/unistr/u16-cmp2-tests: Likewise.
23473         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23474         * modules/unistr/u16-cpy-tests: Likewise.
23475         * modules/unistr/u16-mblen-tests: Likewise.
23476         * modules/unistr/u16-mbsnlen-tests: Likewise.
23477         * modules/unistr/u16-mbtouc-tests: Likewise.
23478         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23479         * modules/unistr/u16-mbtoucr-tests: Likewise.
23480         * modules/unistr/u16-move-tests: Likewise.
23481         * modules/unistr/u16-next-tests: Likewise.
23482         * modules/unistr/u16-prev-tests: Likewise.
23483         * modules/unistr/u16-set-tests: Likewise.
23484         * modules/unistr/u16-stpcpy-tests: Likewise.
23485         * modules/unistr/u16-stpncpy-tests: Likewise.
23486         * modules/unistr/u16-strcat-tests: Likewise.
23487         * modules/unistr/u16-strcmp-tests: Likewise.
23488         * modules/unistr/u16-strcoll-tests: Likewise.
23489         * modules/unistr/u16-strcpy-tests: Likewise.
23490         * modules/unistr/u16-strdup-tests: Likewise.
23491         * modules/unistr/u16-strlen-tests: Likewise.
23492         * modules/unistr/u16-strmblen-tests: Likewise.
23493         * modules/unistr/u16-strmbtouc-tests: Likewise.
23494         * modules/unistr/u16-strncat-tests: Likewise.
23495         * modules/unistr/u16-strncmp-tests: Likewise.
23496         * modules/unistr/u16-strncpy-tests: Likewise.
23497         * modules/unistr/u16-strnlen-tests: Likewise.
23498         * modules/unistr/u16-to-u32-tests: Likewise.
23499         * modules/unistr/u16-to-u8-tests: Likewise.
23500         * modules/unistr/u16-uctomb-tests: Likewise.
23501         * modules/unistr/u32-check-tests: Likewise.
23502         * modules/unistr/u32-chr-tests: Likewise.
23503         * modules/unistr/u32-cmp-tests: Likewise.
23504         * modules/unistr/u32-cmp2-tests: Likewise.
23505         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23506         * modules/unistr/u32-cpy-tests: Likewise.
23507         * modules/unistr/u32-mblen-tests: Likewise.
23508         * modules/unistr/u32-mbsnlen-tests: Likewise.
23509         * modules/unistr/u32-mbtouc-tests: Likewise.
23510         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23511         * modules/unistr/u32-mbtoucr-tests: Likewise.
23512         * modules/unistr/u32-move-tests: Likewise.
23513         * modules/unistr/u32-next-tests: Likewise.
23514         * modules/unistr/u32-prev-tests: Likewise.
23515         * modules/unistr/u32-set-tests: Likewise.
23516         * modules/unistr/u32-stpcpy-tests: Likewise.
23517         * modules/unistr/u32-stpncpy-tests: Likewise.
23518         * modules/unistr/u32-strcat-tests: Likewise.
23519         * modules/unistr/u32-strcmp-tests: Likewise.
23520         * modules/unistr/u32-strcoll-tests: Likewise.
23521         * modules/unistr/u32-strcpy-tests: Likewise.
23522         * modules/unistr/u32-strdup-tests: Likewise.
23523         * modules/unistr/u32-strlen-tests: Likewise.
23524         * modules/unistr/u32-strmblen-tests: Likewise.
23525         * modules/unistr/u32-strmbtouc-tests: Likewise.
23526         * modules/unistr/u32-strncat-tests: Likewise.
23527         * modules/unistr/u32-strncmp-tests: Likewise.
23528         * modules/unistr/u32-strncpy-tests: Likewise.
23529         * modules/unistr/u32-strnlen-tests: Likewise.
23530         * modules/unistr/u32-to-u16-tests: Likewise.
23531         * modules/unistr/u32-to-u8-tests: Likewise.
23532         * modules/unistr/u32-uctomb-tests: Likewise.
23533         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23534         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23535         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23536         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23537         * modules/uniwidth/u8-strwidth-tests: Likewise.
23538         * modules/uniwidth/u8-width-tests: Likewise.
23539         * modules/uniwidth/u16-strwidth-tests: Likewise.
23540         * modules/uniwidth/u16-width-tests: Likewise.
23541         * modules/uniwidth/u32-strwidth-tests: Likewise.
23542         * modules/uniwidth/u32-width-tests: Likewise.
23543         * modules/uniwidth/width-tests: Likewise.
23544
23545 2010-05-18  Richard Jones  <rjones@redhat.com>
23546
23547         doc: users.txt: list hivex
23548         * users.txt: Add hivex.
23549
23550 2010-05-18  Richard Jones  <rjones@redhat.com>
23551
23552         doc: users.txt: list febootstrap
23553         * users.txt: Add febootstrap.
23554
23555 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23556
23557         bootstrap: fix an error when gnulib is not used as a git submodule
23558         * build-aux/bootstrap (gnulib_path): If its length is zero then
23559         assign "gnulib" to it.
23560         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23561
23562 2010-05-16  Bruno Haible  <bruno@clisp.org>
23563
23564         Avoid autoconf warnings about AM_ICONV.
23565         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23566         2.64.
23567
23568 2010-05-16  Bruno Haible  <bruno@clisp.org>
23569
23570         absolute-header: Make the macro usable in more situations.
23571         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23572         from gl_ABSOLUTE_HEADER.
23573         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23574
23575 2010-05-16  James Youngman  <jay@gnu.org>
23576
23577         doc: update users.txt
23578         * users.txt: Add CSSC.
23579
23580 2010-05-16  Jim Meyering  <meyering@redhat.com>
23581
23582         init.sh: fix an error in the previous change; add more comments
23583         * tests/init.sh: Compare exit code in loop against 9, not 2.
23584         Patch by Bruno Haible.
23585         Make the two tests more similar by adding an empty "then" clause.
23586         Add comments.
23587
23588         init.sh: avoid unnecessary shell re-exec
23589         * tests/init.sh: Improve the re-exec-required check to first test the
23590         current shell.  If it passes the test, do not search for a shell that
23591         does pass, and do not re-exec.  This test is particularly contorted to
23592         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23593         of $(...) evokes a syntax error and causes immediate shell exit with
23594         status 2.  Bruno Haible reported that the re-exec made it impossible
23595         to single-step through any init.sh-using script.
23596
23597 2010-05-16  Bruno Haible  <bruno@clisp.org>
23598
23599         Fix collision between gnulib's and libintl's printf replacements.
23600         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23601         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23602         (printf): When using GNU C, map the __printf__ function to rpl_printf
23603         via __asm__. When not using GNU C, define rpl_printf instead of
23604         __printf__.
23605         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23606         commit.
23607         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23608         commit.
23609         * m4/asm-underscore.m4: New file.
23610         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23611         * modules/stdio (Files): Add m4/asm-underscore.m4.
23612         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23613         Reported by Ben Pfaff.
23614
23615 2010-05-16  Bruno Haible  <bruno@clisp.org>
23616
23617         verify: Avoid skipping the test on openSUSE 11.0.
23618         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23619
23620 2010-05-13  Bruno Haible  <bruno@clisp.org>
23621
23622         Avoid useless warnings from G++.
23623         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23624         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23625         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23626
23627 2010-05-11  Jim Meyering  <meyering@redhat.com>
23628
23629         maint.mk: tweak preceding change
23630         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23631         regexps tighter by anchoring at EOL, and make the new group "shy"
23632         for slightly decreased overhead.
23633
23634 2010-05-11  Eric Blake  <eblake@redhat.com>
23635
23636         maint.mk: gnulib doesn't guarantee NSIG
23637         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23638
23639 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23640
23641         test-pwrite.c: Remove unused variable declaration.
23642         * tests/test-pwrite.c (main): Remove read_buf declaration.
23643
23644         Remove useless test-pwrite.sh file.
23645         * tests/test-pwrite.sh: Delete file.
23646         * modules/pwrite-tests: Remove references.
23647         Reported by Bruno Haible.
23648
23649 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23650
23651         init.sh: fix a typo
23652         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23653
23654 2010-05-10  Jim Meyering  <meyering@redhat.com>
23655
23656         maint.mk: avoid using a temporary file in the always-defined-macros check
23657         * top/maint.mk (.re-defmac): Remove rule.
23658         (gl_trap_): Remove definition.
23659         (sc_prohibit_always-defined_macros): Rewrite not to create and
23660         depend on a temporary file.  Instead, depend on GNU grep's ability
23661         to read a list of regular expressions from stdin when given "-f -".
23662
23663 2010-05-09  Bruno Haible  <bruno@clisp.org>
23664
23665         Update to GNU gettext 0.18, part 1.
23666         * m4/gettext.m4: Update to GNU gettext 0.18.
23667         * m4/intl.m4: Likewise.
23668         * m4/po.m4: Likewise.
23669         * modules/gettext (Files): Add m4/fcntl-o.m4.
23670         (configure.ac): Require gettext infrastructure from version 0.18.
23671
23672 2010-05-09  Jim Meyering  <meyering@redhat.com>
23673
23674         init.sh: enable MALLOC_PERTURB_
23675         * tests/init.sh: Enable glibc's malloc-perturbing option.
23676
23677         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23678         With my recent change in init.sh from the two-line form:
23679             -#   : ${srcdir=.}
23680             -#   . "$srcdir/init.sh"; path_prepend_ .
23681             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23682         I noticed that using the one-line form would cause this test
23683         to fail with a false-positive, or to stop working altogether,
23684         depending on whether help-version changed or all the tests did.
23685         * top/maint.mk (_hv_regex): Remove this definition.
23686         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23687         (_hv_regex_strong): Use a stronger regex to check for conformance.
23688         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23689         Give a separate diagnostic for lack of conforming use.
23690
23691         maint.mk: prohibit definition of symbols defined by gnulib
23692         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23693         definition of symbols defined by gnulib.
23694
23695 2010-05-09  Bruno Haible  <bruno@clisp.org>
23696
23697         acl: Avoid test failure on Cygwin-hosted mingw.
23698         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23699
23700 2010-05-09  Bruno Haible  <bruno@clisp.org>
23701
23702         error: Use system's fcntl function.
23703         * lib/error.c (fcntl): Undefine.
23704
23705 2010-05-09  Jim Meyering  <meyering@redhat.com>
23706
23707         verify: adjust formatting to be more consistent
23708         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23709         argument-list '('s, and after one comma.
23710
23711 2010-05-09  Bruno Haible  <bruno@clisp.org>
23712
23713         error: More reliable output on mingw.
23714         * lib/error.c: Include <windows.h>.
23715         (is_open): New function.
23716         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23717         defined.
23718
23719 2010-05-09  Bruno Haible  <bruno@clisp.org>
23720
23721         vasnprintf: Fix syntax errors in libintl build on mingw.
23722         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23723         pad_ourselves and prec_ourselves after use.
23724
23725 2010-05-08  Bruno Haible  <bruno@clisp.org>
23726
23727         * lib/config.charset: Update comments for Cygwin 1.7.
23728         * lib/localcharset.c: Likewise.
23729
23730 2010-05-07  Jim Meyering  <meyering@redhat.com>
23731
23732         init.sh: improve comments
23733         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23734         . "${srcdir=.}/init.sh"; path_prepend_ .
23735         Add a note about path_prepend_ and the alternative of using
23736         TESTS_ENVIRONMENT.
23737
23738 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23739
23740         exclude: Unescape hashed patterns in wildcard mode.
23741         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23742         to the hash list.
23743         * tests/test-exclude8.sh: New test case.
23744         * modules/exclude-tests: Add new test.
23745
23746 2010-05-05  Eric Blake  <eblake@redhat.com>
23747
23748         verify: automate tests
23749         * modules/verify-tests: New module.
23750         * tests/test-verify.sh: New file.
23751         * tests/test-verify.c: Guard each negative test with a unique id.
23752         Also avoid warning about unused left hand of comma expressions.
23753
23754 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23755
23756         Further improvements to verify.h, suggested by Eric Blake.
23757         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23758         the GL_* versions, to avoid collision with OpenGL.
23759         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23760         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23761         than testing merely whether it's defined.
23762
23763         Modify verify.h to pacify gcc -Wredundant_decls.
23764         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23765         These use the prefix "GL_" since they're likely to be useful elsewhere.
23766         We may need to break them out into a different .h file.
23767         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23768         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23769         of verify_function__.
23770
23771 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23772
23773         Tests for module pwrite.
23774         * modules/pwrite-tests: New file.
23775         * tests/test-pwrite.sh: New file.
23776         * tests/test-pwrite.c: New file.
23777
23778         New module pwrite.
23779         * lib/unistd.in.h (pwrite): New declaration.
23780         * lib/pwrite.c: New file, from glibc with modifications.
23781         * m4/pwrite.m4: New file.
23782         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23783         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23784         REPLACE_PWRITE.
23785         * modules/pwrite: New file.
23786         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23787         REPLACE_PWRITE.
23788         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23789         * doc/posix-functions/pwrite.texi: Mention the new module.
23790
23791 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23792
23793         pread: Update documentation.
23794         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23795
23796 2010-05-04  Eric Blake  <eblake@redhat.com>
23797
23798         docs: update cygwin progress
23799         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23800         this bug.
23801         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23802         Added in cygwin 1.7.2.
23803         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23804         Likewise.
23805         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23806         Likewise.
23807         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23808         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23809         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23810         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23811         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23812         Mention nproc module.
23813         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23814         bug in cygwin 1.7.5 addition.
23815         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23816         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23817         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23818         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23819         1.7.5.
23820         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23821         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23822         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23823         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23824         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23825         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23826         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23827         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23828         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23829         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23830         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23831         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23832         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23833         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23834         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23835         Likewise.
23836         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23837         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23838         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23839         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23840         Likewise.
23841         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23842         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23843         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23844         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23845         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23846         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23847         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23848         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23849         Likewise.
23850         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23851         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23852         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23853         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23854         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23855         Likewise.
23856         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23857         Likewise.
23858         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23859         Likewise.
23860         * doc/glibc-functions/xdrrec_endofrecord.texi
23861         (xdrrec_endofrecord): Likewise.
23862         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23863         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23864         Likewise.
23865         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23866         Likewise.
23867
23868 2010-05-04  Jim Meyering  <meyering@redhat.com>
23869
23870         gendocs.sh: make its "-s FILE" option more useful
23871         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23872         $PACKAGE to reflect the probably-different basename of "FILE".
23873
23874 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23875
23876         bootstrap: don't ignore download_po_files failure
23877         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23878         failure.
23879
23880 2010-05-03  Jim Meyering  <meyering@redhat.com>
23881
23882         maint.mk: allow to pass options to gendocs.sh
23883         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23884         (gendocs_options_): New overridable variable.
23885
23886         gnu-web-doc-update: don't ignore configure or build failure
23887         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23888
23889         announce-gen: backslash-escape '@'s in --help output
23890         * build-aux/announce-gen: Fix syntax errors.
23891
23892         maint.mk, announce-gen: allow project-specific announcement mail headers
23893         * top/maint.mk (translation_project_): Define default.
23894         (announcement_Cc_, announcement_mail_headers_): Likewise.
23895         (announcement): Invoke announce-gen with new --mail-headers option.
23896         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23897
23898         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23899         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23900         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23901         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23902         line in the "err2" output file when running "make check" in verbose
23903         mode (i.e., with set -x enabled).
23904
23905 2010-05-03  Bruno Haible  <bruno@clisp.org>
23906
23907         wctob: Fix for weird platforms.
23908         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23909         argument value.
23910
23911 2010-05-03  Jim Meyering  <meyering@redhat.com>
23912
23913         maint.mk: prohibit unwarranted use of <strings.h>
23914         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23915         strings.h in a file that does not also use strcasecmp, strncasecmp,
23916         ffs or ffsll.
23917
23918         maint.mk: remove obsolete comments
23919         * top/maint.mk: Remove stale, commented-out rules.
23920
23921 2010-05-02  Bruno Haible  <bruno@clisp.org>
23922
23923         wcwidth: Declare also when it's aliased.
23924         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23925         macro.
23926
23927 2010-05-02  Bruno Haible  <bruno@clisp.org>
23928
23929         Fix regression from 2010-04-25.
23930         * gnulib-tool (func_modules_transitive_closure): Check the status of
23931         all modules, not only of the tests that are of the form foo-tests where
23932         foo is a module.
23933
23934 2010-05-02  Bruno Haible  <bruno@clisp.org>
23935
23936         wctob: Work around nasty Cygwin 1.7.2 bug.
23937         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23938         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23939
23940 2010-05-01  Bruno Haible  <bruno@clisp.org>
23941
23942         fpurge: Sharper test.
23943         * tests/test-fpurge.c (main): Add one more ftell check.
23944         * modules/fpurge-tests (Depends-on): Add ftell.
23945         Suggested by Eric Blake.
23946
23947 2010-05-01  Bruno Haible  <bruno@clisp.org>
23948
23949         ftello: Another test.
23950         * tests/test-ftello3.c: New file.
23951         * modules/ftello-tests (Files): Add it.
23952         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23953         MOSTLYCLEANFILES.
23954
23955         ftell: Another test.
23956         * tests/test-ftell3.c: New file.
23957         * modules/ftell-tests (Files): Add it.
23958         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23959         MOSTLYCLEANFILES.
23960
23961 2010-05-01  Bruno Haible  <bruno@clisp.org>
23962
23963         ftell, ftello: Work around Solaris bug.
23964         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23965         * lib/ftello.c: Include stdio-impl.h.
23966         (ftello): On Solaris, when _IOWRT is set, compute the result without
23967         looking at _IOREAD.
23968         * modules/ftello (Files): Add lib/stdio-impl.h.
23969         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23970         * doc/posix-functions/ftello.texi: Likewise.
23971         Reported by Eric Blake.
23972
23973 2010-05-01  Bruno Haible  <bruno@clisp.org>
23974
23975         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23976         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23977         the _IOWRT flag is also set.
23978
23979 2010-05-01  Bruno Haible  <bruno@clisp.org>
23980
23981         Fix doc about a HP-UX stdio bug.
23982         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23983         * doc/posix-functions/ftello.texi: Likewise.
23984
23985 2010-05-01  Bruno Haible  <bruno@clisp.org>
23986
23987         lseek test: Fix failure on Solaris.
23988         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
23989         output.
23990
23991 2010-04-30  Jim Meyering  <meyering@redhat.com>
23992
23993         bootstrap: don't ignore failure to generate po*/Makevars
23994         * build-aux/bootstrap (with_gettext): Don't ignore failure
23995         to create po/Makevars or runtime-po/Makevars.
23996
23997 2010-04-29  Eric Blake  <eblake@redhat.com>
23998
23999         headers: relax license to LGPLv2+
24000         * modules/fcntl-h (License): Relax license.
24001         * modules/getopt-posix (License): Likewise.
24002         * modules/locale (License): Likewise.
24003         * modules/math (License): Likewise.
24004         * modules/pty (License): Likewise.
24005         * modules/sched (License): Likewise.
24006         * modules/search (License): Likewise.
24007         * modules/spawn (License): Likewise.
24008         * modules/stdarg (License): Likewise.
24009         * modules/sysexits (License): Likewise.
24010
24011 2010-04-29  Jim Meyering  <meyering@redhat.com>
24012
24013         inttypes: relax license to LGPLv2+
24014         * modules/inttypes (License): Relax license.
24015
24016 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24017
24018         * top/maint.mk (indent): Run twice to produce idempotent results.
24019
24020 2010-04-28  Bruno Haible  <bruno@clisp.org>
24021
24022         getdate: Generate getdate.c in the source directory.
24023         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24024         MOSTLYCLEANFILES.
24025         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24026
24027 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24028
24029         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24030         is not declared as a const *; avoid warnings in that case.
24031
24032 2010-04-28  Eric Blake  <eblake@redhat.com>
24033
24034         canonicalize-lgpl: avoid compiler warning
24035         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24036         declaration' / 'extraneous semicolon' warning with some compilers.
24037         Reported by Andreas Gruenbacher.
24038
24039 2010-04-28  Jim Meyering  <meyering@redhat.com>
24040
24041         init.sh: ensure a more reliable exit status when exiting via trap
24042         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24043         Inspired by patches from Dmitry V. Levin.
24044         Also trap on signal 3 (SIGQUIT).
24045
24046 2010-04-27  Bruno Haible  <bruno@clisp.org>
24047
24048         Update doc about utimes().
24049         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24050         'utimens' module.
24051         Reported by Andreas Gruenbacher <agruen@suse.de>.
24052
24053 2010-04-27  Eric Blake  <eblake@redhat.com>
24054
24055         full-read, full-write: relax license
24056         * modules/full-read (License): Drop to LGPLv2+.
24057         * modules/full-write (License): Likewise.
24058         * modules/safe-read (License): Likewise.
24059         * modules/safe-write (License): Likewise.
24060
24061         pthread: mention library for linking
24062         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24063
24064 2010-04-27  Jim Meyering  <meyering@redhat.com>
24065
24066         maint.mk: fix a bug introduced in last change
24067         * top/maint.mk (gl_assured_headers_): Now that all names are on
24068         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24069         is not anchored to end of word, it should be adequate.
24070
24071         maint.mk: avoid side-effect in latest syntax-check
24072         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24073         to run commands via $(shell...), and hence to incur cost only when
24074         the new rule is actually run.
24075
24076         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24077         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24078         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24079         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24080         (gl_assured_headers_, az_, AZ_): Define.
24081         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24082
24083 2010-04-26  Jim Meyering  <jim@meyering.net>
24084             Bruno Haible  <bruno@clisp.org>
24085
24086         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24087         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24088         Prompted by an exchange with Gilles Espinasse.
24089
24090 2010-04-26  Jim Meyering  <meyering@redhat.com>
24091
24092         git-version-gen: aesthetic tweak
24093         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24094         so that the command remains on a single line.
24095
24096 2010-04-26  Eric Blake  <eblake@redhat.com>
24097
24098         git-version-gen: allow use on EBCDIC hosts
24099         * build-aux/git-version-gen (dirty): Use literal rather than tying
24100         ourselves to ascii.
24101         Reported by Steve Goetze.
24102
24103 2010-04-25  Bruno Haible  <bruno@clisp.org>
24104
24105         netdb: Add support for GNULIB_POSIXCHECK.
24106         * lib/netdb.in.h: Include warn-on-use.h.
24107         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24108         functions are used when GNULIB_POSIXCHECK is defined and the
24109         getaddrinfo module is not in use.
24110         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24111         freeaddrinfo, gai_strerror, getnameinfo are declared.
24112         * modules/netdb (Depends-on): Add warn-on-use.
24113         (Makefile.am): Include warn-on-use.h in netdb.h.
24114
24115 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24116
24117         build: avoid "make check" failure without .git/ directory
24118         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24119         there is no .git/ directory.
24120
24121 2010-04-25  Bruno Haible  <bruno@clisp.org>
24122
24123         ptsname: Fix misuse of ttyname_r.
24124         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24125         of errno.
24126
24127 2010-04-25  Bruno Haible  <bruno@clisp.org>
24128
24129         ttyname_r: Make it work on Solaris 10.
24130         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24131         if the system function has the POSIX declaration. Test whether the
24132         function fails if the buffer is less than 128 bytes large.
24133         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24134         system's ttyname_r function. Provide a reasonably large buffer.
24135         * modules/ttyname_r (Depends-on): Add extensions.
24136         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24137
24138 2010-04-25  Bruno Haible  <bruno@clisp.org>
24139
24140         Use the 'extensions' module for some more functions on Solaris.
24141         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24142         module.
24143         * doc/posix-functions/ctime_r.texi: Likewise.
24144         * doc/posix-functions/getgrgid_r.texi: Likewise.
24145         * doc/posix-functions/getgrnam_r.texi: Likewise.
24146         * doc/posix-functions/getpwnam_r.texi: Likewise.
24147         * doc/posix-functions/getpwuid_r.texi: Likewise.
24148         * doc/posix-functions/readdir_r.texi: Likewise.
24149         * doc/posix-functions/sigwait.texi: Likewise.
24150         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24151         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24152
24153 2010-04-25  Bruno Haible  <bruno@clisp.org>
24154
24155         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24156         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24157         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24158         * lib/ttyname_r.c: Include <limits.h>.
24159         (ttyname_r): Define using the system's ttyname_r function, if it exists
24160         and not on Solaris.
24161         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24162         set.
24163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24164         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24165         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24166         Reported by Simon Josefsson.
24167
24168 2010-04-25  Bruno Haible  <bruno@clisp.org>
24169
24170         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24171         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24172         * doc/posix-functions/ctime_r.texi: Likewise.
24173         * doc/posix-functions/getgrgid_r.texi: Likewise.
24174         * doc/posix-functions/getgrnam_r.texi: Likewise.
24175         * doc/posix-functions/getlogin_r.texi: Likewise.
24176         * doc/posix-functions/getpwnam_r.texi: Likewise.
24177         * doc/posix-functions/getpwuid_r.texi: Likewise.
24178         * doc/posix-functions/readdir_r.texi: Likewise.
24179         * doc/posix-functions/sigwait.texi: Likewise.
24180         * doc/posix-functions/ttyname_r.texi: Likewise.
24181         Reported by Simon Josefsson.
24182
24183 2010-04-25  Bruno Haible  <bruno@clisp.org>
24184
24185         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24186         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24187         also to --create-testdir.
24188         (func_acceptable): Don't consider the status of *-tests modules here.
24189         (func_modules_transitive_closure): Consider it here, before including a
24190         test module.
24191         (func_import, func_create_testdir): Set inc_all_direct_tests,
24192         inc_all_indirect_tests.
24193         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24194         --create-testdir and --create-megatestdir.
24195
24196 2010-04-25  Bruno Haible  <bruno@clisp.org>
24197
24198         gnulib-tool: Add --without-*-tests options.
24199         * gnulib-tool (func_usage): Document the --without-*-tests options.
24200         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24201         excl_unportable_tests): New variables.
24202         Fail if they are specified with --import or --update.
24203         (func_acceptable): Respect the excl_*_tests variables.
24204         (func_import): Set the excl_*_tests variables to empty.
24205
24206 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24207             Bruno Haible  <bruno@clisp.org>
24208
24209         Work around a MacOS X 10.4 bug with openpty.
24210         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24211         * tests/test-openpty.c (main): Close the master side explicitly.
24212
24213 2010-04-25  Bruno Haible  <bruno@clisp.org>
24214
24215         strnlen: Fix a C++ test error on MacOS X and Solaris.
24216         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24217         the function is not declared.
24218         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24219         Simon Josefsson.
24220
24221 2010-04-24  Bruno Haible  <bruno@clisp.org>
24222
24223         Avoid a gcc warning.
24224         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24225         of correct type for %08lx directive.
24226         Reported by Eric Blake.
24227
24228 2010-04-24  Bruno Haible  <bruno@clisp.org>
24229
24230         vasnprintf: Correct errno value in case of out-of-memory.
24231         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24232         or sprintf. Use the errno value from SNPRINTF or sprintf.
24233         Reported by Ian Beckwith <ianb@erislabs.net>.
24234
24235 2010-04-24  Bruno Haible  <bruno@clisp.org>
24236
24237         ansi-c++-opt: Find correct compiler when cross-compiling.
24238         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24239         AC_CHECK_PROGS.
24240         Reported by Simon Josefsson.
24241
24242 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24243
24244         vc-list-files: Add support for subversion
24245         * build-aux/vc-list-files: Use "svn list" to generate the list of
24246         files controlled by subversion.
24247
24248 2010-04-23  Jim Meyering  <meyering@redhat.com>
24249
24250         vc-list-files tests: convert to use init.sh
24251         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24252         path_prepend_.
24253         Use Exit, not exit.
24254         Use skip_ rather than open coding it.
24255         Remove trap set-up and compare definitions.
24256         * tests/test-vc-list-files-git.sh: Likewise.
24257         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24258
24259 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24260
24261         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24262         backup files.
24263
24264 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24265
24266         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24267
24268 2010-04-20  Eric Blake  <eblake@redhat.com>
24269
24270         tests: be robust to ignored SIGPIPE
24271         * tests/test-select-in.sh: Consume all output.
24272         * tests/test-lseek.sh: Check correct exit status, while avoiding
24273         EPIPE.
24274
24275 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24276             Bruno Haible  <bruno@clisp.org>
24277
24278         visibility: Don't use -fvisibility if it leads to a warning.
24279         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24280         yes, don't pretend that visibility works if it leads to a warning.
24281         Reported by Mike Gran <spk121@yahoo.com>.
24282
24283 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24284
24285         * build-aux/bootstrap: Use "git -h" for testing for supported options
24286         instead of "git --help".  The short-form option only shows a summary,
24287         and doesn't layout the full man page.  Grep for the full option name
24288         in the summary, too.
24289
24290 2010-04-19  Bruno Haible  <bruno@clisp.org>
24291
24292         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24293         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24294         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24295         mention of RELOCATABLE_STRIP.
24296         Reported by Sylvain Beucler <beuc@beuc.net>.
24297
24298 2010-04-19  Bruno Haible  <bruno@clisp.org>
24299
24300         * lib/diffseq.h: Fix typo in comment.
24301         Reported by Eric Blake.
24302
24303 2010-04-19  Bruno Haible  <bruno@clisp.org>
24304
24305         ioctl: Move autoconf macro to a .m4 file.
24306         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24307         * modules/ioctl (Files): Add it.
24308         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24309         Reported by Ian Beckwith <ianb@erislabs.net>.
24310
24311 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24312             Bruno Haible  <bruno@clisp.org>
24313
24314         diffseq: Accommodate use-case with abstract arrays.
24315         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24316         is not defined.
24317         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24318         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24319
24320 2010-04-18  Bruno Haible  <bruno@clisp.org>
24321
24322         * doc/posix-headers/stdbool.texi: More precise wording.
24323
24324 2010-04-17  Jim Meyering  <meyering@redhat.com>
24325
24326         maint.mk: use gnu-style indentation in an embedded perl script
24327         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24328         Rename variable: s/two/last_two_bytes/
24329
24330 2010-04-16  Eric Blake  <eblake@redhat.com>
24331
24332         test-stdbool: skip test that fails with Solaris CC
24333         * tests/test-stdbool.c (f): Skip test that causes compilation
24334         error under buggy C++ compiler.
24335         * lib/stdbool.in.h: Document the limitation.
24336         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24337
24338         setenv: allow compilation with C++
24339         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24340         register keyword.
24341
24342         stdint: allow test to pass with C++
24343         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24344
24345         getopt: allow compilation with C++
24346         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24347         struct.
24348         * lib/getopt.c (_getopt_internal_r): Use correct type.
24349         Reported by Dagobert Michelson, via Joel E. Denny.
24350
24351 2010-04-16  Bruno Haible  <bruno@clisp.org>
24352
24353         Override netdb.h always.
24354         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24355         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24356         Reported by Ludovic Courtès <ludo@gnu.org>.
24357
24358 2010-04-15  Bruno Haible  <bruno@clisp.org>
24359
24360         openpty: Fix mistake from 2010-03-21.
24361         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24362         Reported by Simon Josefsson.
24363
24364 2010-04-15  Eric Blake  <eblake@redhat.com>
24365
24366         test-forkpty: fix expected signature
24367         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24368         Reported by Simon Josefsson.
24369
24370 2010-04-15  Jim Meyering  <meyering@redhat.com>
24371
24372         maint.mk: texinfo_suffix_re_: correct the default regexp
24373         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24374
24375         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24376         make it configurable via texinfo_suffix_re_.
24377
24378 2010-04-14  Eric Blake  <eblake@redhat.com>
24379
24380         strtok_r: relax license to LGPLv2+
24381         * modules/strtok_r (License): Relax license.
24382         Reported by Matthias Bolte.
24383
24384 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24385
24386         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24387         version 1.4.4 by default instead of requiring the libgcrypt
24388         version used during build.  This makes it possible to use the
24389         application with older but still binary compatible libgcrypt
24390         versions.
24391
24392 2010-04-13  Eric Blake  <eblake@redhat.com>
24393
24394         getopt-gnu: match recent glibc fixes and posix ruling
24395         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24396         '+' handling, when requesting extensions.
24397         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24398         'W;' handling.
24399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24400         * doc/posix-functions/getopt.texi (getopt): Document this.
24401         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24402         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24403         Likewise.
24404
24405         getopt: merge bug fixes from glibc
24406         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24407         diagnostics.  Honor '+:' correctly.  Reject ';'.
24408
24409         getopt-posix: detect MacOS bug
24410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24411         optind when missing a required argument.
24412         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24413         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24414         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24415         Likewise.
24416
24417         getopt-posix: avoid spurious failure on Solaris
24418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24419         an indicator that setting optind=1 is sufficient for reset.
24420
24421         getopt-posix: avoid spurious failure on FreeBSD
24422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24423         in POSIX mode, since the m4 test uses it.
24424
24425         gnulib-tool: silence warning on BSD sh
24426         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24427
24428 2010-04-13  Jim Meyering  <meyering@redhat.com>
24429
24430         doc: users.txt: GNU patch now uses gnulib
24431         * users.txt: Add patch.
24432
24433 2010-04-12  Jim Meyering  <meyering@redhat.com>
24434
24435         maint.mk: generate more concise timing data for syntax-check rules
24436         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24437         " done" from each line that reports a syntax-check test duration.
24438
24439 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24440
24441         git-version-gen: use "git update-index..." rather than "git status"
24442         * build-aux/git-version-gen: Use git update-index --refresh, not
24443         "git status".  With some versions of git, "git status" would fail
24444         to update the index and result in an unwarranted "-dirty" suffix.
24445
24446 2010-04-11  Jim Meyering  <meyering@redhat.com>
24447
24448         openat: correct formatting (no semantic change)
24449         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24450         Suggested by Bruno Haible.
24451
24452 2010-04-11  Bruno Haible  <bruno@clisp.org>
24453
24454         Stricter declaration checking in testdirs.
24455         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24456         If for_tests is true, augment AM_CPPFLAGS to define
24457         GNULIB_STRICT_CHECKING.
24458         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24459         GNULIB_STRICT_CHECKING is defined, verify that the function is
24460         declared.
24461
24462 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24463             Bruno Haible  <bruno@clisp.org>
24464
24465         libunistring: Improve configure output.
24466         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24467         Don't say "consider installing GNU libunistring" when checking again
24468         with libiconv.
24469
24470 2010-04-11  Bruno Haible  <bruno@clisp.org>
24471
24472         libunistring: Correct value of $LTLIBUNISTRING.
24473         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24474         correct the value of $LTLIBUNISTRING.
24475
24476 2010-04-11  Bruno Haible  <bruno@clisp.org>
24477
24478         havelib: Add static libraries to LIBS in the right order.
24479         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24480         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24481
24482 2010-04-11  Bruno Haible  <bruno@clisp.org>
24483
24484         libunistring: Detect libunistring also when it depends on libiconv.
24485         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24486         the second AC_LIB_HAVE_LINKFLAGS invocation.
24487
24488 2010-04-11  James Youngman  <jay@gnu.org>
24489
24490         close-stream: declare local scalars to be "const"
24491         * lib/close-stream.c (close_stream): Make boolean variables const
24492         to document the fact that we set but do not change them.
24493
24494 2010-04-11  Bruno Haible  <bruno@clisp.org>
24495
24496         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24497
24498 2010-04-11  Jim Meyering  <meyering@redhat.com>
24499
24500         maint.mk: don't include dist-check.mk
24501         * top/maint.mk: Remove bogus include directive.
24502
24503         maint.mk: improve empty-line-at-EOF check
24504         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24505         solution, rather than tail+Perl-based one.  The latter would read
24506         a few kilobytes from the end of each file, and did not handle empty
24507         files properly.
24508
24509         maint.mk: print the elapsed time for each syntax-check rule
24510         * top/maint.mk (sc_m_rules_): Save start time in a file.
24511         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24512         (local-check): Interpose the .z rules
24513
24514 2010-04-11  Jim Meyering  <meyering@redhat.com>
24515
24516         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24517         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24518         empty file with one that ends in an empty line.
24519
24520 2010-04-10  Bruno Haible  <bruno@clisp.org>
24521
24522         mkdir: Make it work on mingw64.
24523         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24524         * lib/mkdir.c: Update comment.
24525         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24526
24527 2010-04-10  Bruno Haible  <bruno@clisp.org>
24528
24529         Don't override improved macro from newer autoconf.
24530         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24531         autoconf >= 2.62.
24532         Reported by Joel E. Denny <jdenny@clemson.edu>.
24533
24534 2010-04-10  Jim Meyering  <meyering@redhat.com>
24535
24536         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24537         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24538
24539         maint.mk: correct a diagnostic
24540         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24541         in diagnostic; now use $prohibit.
24542
24543 2010-04-10  Bruno Haible  <address@hidden>
24544
24545         fchownat: Fix a C++ test error on Solaris 8.
24546         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24547         the function does not exist.
24548
24549 2010-04-10  Bruno Haible  <bruno@clisp.org>
24550
24551         vasnprintf: Add more tests.
24552         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24553         (test_function): Test converting an invalid wide string.
24554
24555         vasnprintf: Correct handling of unconvertible wide string arguments.
24556         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24557         VASNPRINTF.
24558         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24559         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24560         smaller than the expected maximum need for the directive. Set errno to
24561         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24562         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24564         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24565         * modules/vasnprintf (Files): Add m4/printf.m4.
24566         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24567
24568 2010-04-10  Bruno Haible  <bruno@clisp.org>
24569
24570         vasnprintf: Fix crash in %ls directive.
24571         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24572         string is passed as argument to %ls, with no precision and no width.
24573         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24574
24575 2010-04-10  Bruno Haible  <bruno@clisp.org>
24576
24577         vasnprintf: Fix multiple test failures on mingw.
24578         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24579         _snprintf, or snwprintf, not _snwprintf.
24580
24581 2010-04-10  Bruno Haible  <bruno@clisp.org>
24582
24583         write: Fix a C++ test error on mingw.
24584         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24585
24586 2010-04-10  Bruno Haible  <bruno@clisp.org>
24587
24588         vasnprintf test: Reduce code duplication.
24589         * tests/test-vasnprintf.c (test_function): New function, extracted from
24590         test_vasnprintf.
24591         (test_vasnprintf, test_asnprintf): Invoke it.
24592
24593 2010-04-10  Bruno Haible  <bruno@clisp.org>
24594
24595         strnlen: Fix warning in C++ mode on MacOS X.
24596         * lib/string.in.h (strnlen): Use the modern idiom.
24597         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24598         defining strnlen as a macro already in <config.h>.
24599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24600         REPLACE_STRNLEN.
24601         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24602         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24603
24604 2010-04-08  James Youngman  <jay@gnu.org>
24605
24606         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24607         the example.
24608
24609 2010-04-09  Jim Meyering  <meyering@redhat.com>
24610
24611         maint.mk: print better diagnostic when there is no $(_hv_file)
24612         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24613         announce that when $(_hv_file) (aka help-version) does not exist.
24614
24615         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24616         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24617         not try to interpret its random input bytes.  Jarno Rajahalme reported
24618         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24619         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24620         (mktempd_): Likewise, just in case.
24621
24622         ftruncate: add two years to projected module removal date: 2012
24623         * m4/ftruncate.m4: Adjust comments.
24624
24625         ftruncate: mark module as obsolete; even MinGW provides it, now
24626         * modules/ftruncate (Status): Obsolete.
24627         (Notice): Say that.
24628         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24629         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24630
24631 2010-04-08  Bruno Haible  <bruno@clisp.org>
24632
24633         Fix side effects from tests-related modules.
24634         * modules/dprintf-posix (Comment): New section.
24635         * modules/fprintf-posix (Comment): Likewise.
24636         * modules/obstack-printf-posix (Comment): Likewise.
24637         * modules/printf-posix (Comment): Likewise.
24638         * modules/snprintf-posix (Comment): Likewise.
24639         * modules/sprintf-posix (Comment): Likewise.
24640         * modules/vasnprintf-posix (Comment): Likewise.
24641         * modules/vasprintf-posix (Comment): Likewise.
24642         * modules/vdprintf-posix (Comment): Likewise.
24643         * modules/vfprintf-posix (Comment): Likewise.
24644         * modules/vprintf-posix (Comment): Likewise.
24645         * modules/vsnprintf-posix (Comment): Likewise.
24646         * modules/vsprintf-posix (Comment): Likewise.
24647         * modules/xprintf-posix (Comment): Likewise.
24648         * modules/xvasprintf-posix (Comment): Likewise.
24649         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24650         * modules/floorf-tests (Depends-on): Likewise.
24651         * modules/round-tests (Depends-on): Likewise.
24652         * modules/roundf-tests (Depends-on): Likewise.
24653         * modules/trunc-tests (Depends-on): Likewise.
24654         * modules/truncf-tests (Depends-on): Likewise.
24655         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24656         'fprintf-posix' module is not present.
24657         * tests/test-floorf2.c (check): Likewise.
24658         * tests/test-trunc2.c (check): Likewise.
24659         * tests/test-truncf2.c (check): Likewise.
24660         * tests/test-round2.c (equal): Likewise.
24661         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24662
24663 2010-04-07  Karl Berry  <karl@gnu.org>
24664
24665         * config/srclist.txt,
24666         * config/srclistvars.sh,
24667         * config/srclist-update: doc fixes.
24668
24669 2010-04-07  Jim Meyering  <meyering@redhat.com>
24670
24671         maint.mk: add a PATH crosschecking syntax-check rule
24672         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24673         Useful if you use a test like the one in help-version (coreutils,
24674         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24675         printed by prog --version.
24676
24677 2010-04-06  Bruno Haible  <bruno@clisp.org>
24678
24679         Fix link error on mingw.
24680         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24681         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24682
24683 2010-04-06  Bruno Haible  <bruno@clisp.org>
24684
24685         Assume rmdir exists.
24686         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24687
24688 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24689
24690         doc: update users.txt
24691         * users.txt: Add gcal.
24692
24693 2010-04-06  Jim Meyering  <meyering@redhat.com>
24694
24695         init.sh: simply unset TMPDIR rather than risking env -i
24696         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24697         although it probably works fine on all Unix-based systems, some
24698         systems (Cygwin?) cannot tolerate a totally cleared environment.
24699         Suggestion from Eric Blake.
24700
24701 2010-04-06  Jim Meyering  <meyering@redhat.com>
24702
24703         init.sh: portability fix: use env's POSIX-specified -i option not -u
24704         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24705         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24706
24707 2010-04-05  Bruno Haible  <bruno@clisp.org>
24708
24709         btowc: Work around Cygwin 1.7.2 bug.
24710         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24711         does not map NUL to 0.
24712         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24713
24714 2010-04-05  Bruno Haible  <bruno@clisp.org>
24715
24716         Make the multithread modules work on Cygwin 1.7.2.
24717         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24718         imported symbols can be declared weak, so that it returns "no" on
24719         Cygwin 1.7.2.
24720
24721 2010-04-05  Bruno Haible  <bruno@clisp.org>
24722
24723         Use the module 'strncat'.
24724         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24725
24726         Tests for module 'strncat'.
24727         * modules/strncat-tests: New file.
24728         * tests/test-strncat.c: New file.
24729
24730         New module 'strncat'.
24731         * lib/string.in.h (strncat): New declaration.
24732         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24733         * m4/strncat.m4: New file, based on m4/memchr.m4.
24734         * modules/strncat: New file.
24735         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24736         is declared.
24737         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24738         REPLACE_STRNCAT.
24739         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24740         REPLACE_STRNCAT.
24741         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24742         module.
24743         * tests/test-string-c++.cc: Check signature of strncat.
24744
24745 2010-04-05  Jim Meyering  <meyering@redhat.com>
24746
24747         xstrtoumax-tests: convert to use init.sh
24748         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24749         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24750         Use Exit, not exit.
24751         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24752
24753         xstrtoimax-tests: convert to use init.sh
24754         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24755         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24756         Use Exit, not exit.
24757         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24758
24759 2010-04-05  Bruno Haible  <bruno@clisp.org>
24760
24761         sys_socket: Avoid #define replacements in C++ mode.
24762         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24763         warning to the function if possible, rather than #defining the symbol
24764         to a dysfunctional alias.
24765
24766 2010-04-05  Bruno Haible  <bruno@clisp.org>
24767
24768         fseeko: Fix C++ test error on mingw.
24769         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24770         gl_FUNC_FSEEKO.
24771         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24772         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24773         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24774         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24775
24776 2010-04-05  Bruno Haible  <bruno@clisp.org>
24777
24778         duplocale: Improve test output.
24779         * tests/test-duplocale.c (main): Print reason for skipped test.
24780
24781 2010-04-05  Bruno Haible  <bruno@clisp.org>
24782
24783         Assume rmdir exists.
24784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24785         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24786
24787 2010-04-05  Bruno Haible  <bruno@clisp.org>
24788
24789         Fix link error on Solaris 8 with cc.
24790         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24791
24792 2010-04-05  Bruno Haible  <bruno@clisp.org>
24793
24794         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24795         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24796
24797 2010-04-05  Bruno Haible  <bruno@clisp.org>
24798
24799         vasprintf: Update documentation.
24800         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24801
24802 2010-04-05  Bruno Haible  <bruno@clisp.org>
24803
24804         ptsname: Improve test.
24805         * tests/test-ptsname.c (main): Also try the various master names of BSD
24806         systems.
24807
24808 2010-04-05  Bruno Haible  <bruno@clisp.org>
24809
24810         memchr: Avoid a possible C++ test error.
24811         * lib/string.in.h (memchr): Provide declaration if function is missing.
24812         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24813         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24814         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24815         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24816
24817 2010-04-05  Bruno Haible  <bruno@clisp.org>
24818
24819         strtok_r: Improve idiom.
24820         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24821         AC_LIBOBJ is used.
24822
24823 2010-04-05  Bruno Haible  <bruno@clisp.org>
24824
24825         strdup: Improve idiom.
24826         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24827         AC_LIBOBJ is used.
24828         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24829         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24830         when AC_LIBOBJ is used.
24831
24832 2010-04-05  Bruno Haible  <bruno@clisp.org>
24833
24834         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24835         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24836         don't set REPLACE_MBSINIT to 1.
24837         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24838         don't set REPLACE_MBRTOWC to 1.
24839         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24840         exist, don't set REPLACE_MBSRTOWCS to 1.
24841         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24842         exist, don't set REPLACE_MBSNRTOWCS to 1.
24843         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24844         don't set REPLACE_WCRTOMB to 1.
24845         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24846         exist, don't set REPLACE_WCSRTOMBS to 1.
24847         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24848         exist, don't set REPLACE_WCSNRTOMBS to 1.
24849
24850 2010-04-05  Bruno Haible  <bruno@clisp.org>
24851
24852         ldexpl: Improve idiom.
24853         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24854         make sure to set HAVE_DECL_LDEXPL to 0.
24855
24856 2010-04-05  Jim Meyering  <meyering@redhat.com>
24857
24858         xstrtol-tests: convert to use init.sh
24859         * modules/xstrtol-tests (Files): Add tests/init.sh.
24860         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24861         Use Exit, not exit.
24862         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24863
24864         atexit-tests: convert to use init.sh
24865         * modules/atexit-tests (Files): Add tests/init.sh.
24866         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24867         Use Exit, not exit.
24868         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24869
24870         init.sh: fix typo
24871         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24872
24873         init.sh: make it easier for a test script to write to the tty, ...
24874         when using automake's parallel-tests mode.
24875         * tests/init.sh (stderr_fileno_): Define overridable variable.
24876         (warn_): New function, to use it.
24877         (fail_, skip_, framework_failure_): Use warn_.
24878
24879 2010-04-04  Bruno Haible  <bruno@clisp.org>
24880
24881         btowc: Avoid warning.
24882         * lib/btowc.c: Include <stdlib.h>.
24883         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24884
24885 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24886             Bruno Haible  <bruno@clisp.org>
24887
24888         wchar: Port to NetBSD 1.5.
24889         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24890         * lib/wctype.in.h (WEOF): Likewise.
24891
24892 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24893             Bruno Haible  <bruno@clisp.org>
24894
24895         Port extended stdio to NetBSD 1.5.
24896         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24897         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24898         older.
24899
24900 2010-04-04  Bruno Haible  <bruno@clisp.org>
24901
24902         string: Remove unused substitution.
24903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24904         HAVE_DECL_STRERROR.
24905         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24906
24907 2010-04-04  Bruno Haible  <bruno@clisp.org>
24908
24909         strtod: Avoid a possible C++ test error.
24910         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24911         set REPLACE_STRTOD.
24912
24913 2010-04-04  Bruno Haible  <bruno@clisp.org>
24914
24915         strerror: Update documentation.
24916         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24917
24918 2010-04-04  Bruno Haible  <bruno@clisp.org>
24919
24920         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24921         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24922         _GL_CXXALIAS_SYS_CAST.
24923
24924 2010-04-04  Bruno Haible  <bruno@clisp.org>
24925
24926         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24927         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24928         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24929         REPLACE_FREXPL to 1.
24930         * doc/posix-functions/frexpl.texi: Update documentation.
24931
24932 2010-04-04  Bruno Haible  <bruno@clisp.org>
24933
24934         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24935         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24936
24937 2010-04-04  Bruno Haible  <bruno@clisp.org>
24938
24939         Implement nanosleep for native Windows.
24940         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24941
24942 2010-04-04  Bruno Haible  <bruno@clisp.org>
24943
24944         math: Fix some C++ test errors on Solaris 8.
24945         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24946
24947 2010-04-04  Bruno Haible  <bruno@clisp.org>
24948
24949         math: Fix some C++ test errors on Cygwin.
24950         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24951         truncl): Provide declaration if the system does not have it.
24952         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24953         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24954         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24955         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24956         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24957         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24958         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24959         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24960         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24961         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24962         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24963         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24964         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24965         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24966         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24967         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24969         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24970         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24971         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24972         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24973         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24974
24975 2010-04-04  Bruno Haible  <bruno@clisp.org>
24976
24977         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24978         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24979         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24980         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24981         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24982         * m4/isinf.m4 (gl_ISINF): Likewise.
24983         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24984
24985 2010-04-04  Bruno Haible  <bruno@clisp.org>
24986
24987         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
24988         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
24989
24990 2010-04-04  Bruno Haible  <bruno@clisp.org>
24991
24992         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
24993         * modules/tmpfile (configure.ac): Update.
24994
24995         tmpfile: Fix C++ test error on mingw.
24996         * lib/stdio.in.h (tmpfile): New declaration.
24997         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
24998         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
24999         * modules/tmpfile (Depends-on): Add stdio.
25000         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25001         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25002         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25003         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25004         REPLACE_TMPFILE.
25005         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25006
25007 2010-04-04  Bruno Haible  <bruno@clisp.org>
25008
25009         ioctl: Fix C++ test error on mingw.
25010         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25011         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25012         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25013
25014 2010-04-03  Bruno Haible  <bruno@clisp.org>
25015
25016         wcwidth: Fix C++ test error on mingw.
25017         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25019         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25020
25021 2010-04-03  Bruno Haible  <bruno@clisp.org>
25022
25023         nanosleep: Fix C++ test error on mingw.
25024         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25025         * lib/time.in.h (nanosleep): Use modern idiom.
25026         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25027         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25028         REPLACE_NANOSLEEP to 1.
25029         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25030         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25031
25032 2010-04-03  Bruno Haible  <bruno@clisp.org>
25033
25034         strptime: Fix C++ test error on mingw.
25035         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25036         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25037         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25038         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25039         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25040         not REPLACE_STRPTIME.
25041         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25042         REPLACE_STRPTIME.
25043
25044 2010-04-03  Bruno Haible  <bruno@clisp.org>
25045
25046         timegm: Fix C++ test error on mingw.
25047         * lib/time.in.h (timegm): Use modern idiom.
25048         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25049         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25050         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25051         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25052
25053 2010-04-03  Bruno Haible  <bruno@clisp.org>
25054
25055         timegm: Assume declaration if function exists.
25056         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25057         if it exists. Don't clobber ac_cv_func_timegm.
25058
25059 2010-04-03  Bruno Haible  <bruno@clisp.org>
25060
25061         time_r: Fix C++ test error on mingw.
25062         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25063         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25064         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25065         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25066         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25067
25068 2010-04-03  Bruno Haible  <bruno@clisp.org>
25069
25070         time_r: Minor updates.
25071         * modules/time_r (Description): Mention the provided functions.
25072         * lib/time_r.c: Don't include <string.h>.
25073         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25074         * doc/posix-functions/localtime_r.texi: Likewise.
25075
25076 2010-04-03  Bruno Haible  <bruno@clisp.org>
25077
25078         time: Fix regression introduced on 2010-03-08.
25079         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25080         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25081
25082 2010-04-03  Jim Meyering  <meyering@redhat.com>
25083
25084         maint.mk: don't silently disable project-specific syntax-check rules
25085         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25086         that they need to convert their project-specific syntax-check rules
25087         to use the new _sc_search_regexp.
25088
25089 2010-04-03  Bruno Haible  <bruno@clisp.org>
25090
25091         fchdir: Fix regression introduced on 2010-03-08.
25092         * lib/unistd.in.h (fchdir): Fix declaration.
25093         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25095         REPLACE_FCHDIR.
25096         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25097         REPLACE_FCHDIR.
25098
25099 2010-04-03  Bruno Haible  <bruno@clisp.org>
25100
25101         getpagesize: Fix C++ test error on mingw.
25102         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25103         system does not declare the function.
25104         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25105         declared.
25106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25107         HAVE_DECL_GETPAGESIZE.
25108         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25109
25110 2010-04-03  Bruno Haible  <bruno@clisp.org>
25111
25112         stdio: Make C++ tests work on mingw.
25113         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25114         does not declare the function.
25115
25116 2010-04-03  Bruno Haible  <bruno@clisp.org>
25117
25118         ftello: Fix C++ test error on mingw.
25119         * lib/stdio.in.h (ftello): Use modern idiom.
25120         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25121         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25122         is missing and that it needs to be replaced.
25123         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25125         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25126
25127 2010-04-03  Bruno Haible  <bruno@clisp.org>
25128
25129         fseeko: Fix C++ test error on mingw.
25130         * lib/stdio.in.h (fseeko): Use modern idiom.
25131         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25132         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25133         is missing and that it needs to be replaced.
25134         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25136         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25137
25138 2010-04-03  Bruno Haible  <bruno@clisp.org>
25139
25140         mkstemp: Fix C++ test error on mingw.
25141         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25142         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25143         function is missing and that it needs to be replaced.
25144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25145         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25146
25147 2010-04-03  Bruno Haible  <bruno@clisp.org>
25148
25149         stpncpy: Fix C++ test error on mingw.
25150         * lib/string.in.h (stpncpy): Use modern idiom.
25151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25152         function is missing and that it needs to be replaced.
25153         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25154         REPLACE_STPNCPY.
25155         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25156
25157 2010-04-03  Bruno Haible  <bruno@clisp.org>
25158
25159         sys_stat: Fix C++ test error on mingw.
25160         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25161         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25162
25163 2010-04-03  Bruno Haible  <bruno@clisp.org>
25164
25165         pty: Update doc.
25166         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25167
25168 2010-04-03  Bruno Haible  <bruno@clisp.org>
25169
25170         unistd: Fix C++ test error on mingw.
25171         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25172
25173 2010-04-03  Bruno Haible  <bruno@clisp.org>
25174
25175         Update doc regarding mingw.
25176         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25177         * doc/glibc-functions/login_tty.texi: Likewise.
25178         * doc/glibc-functions/forkpty.texi: Likewise.
25179
25180 2010-04-03  Bruno Haible  <bruno@clisp.org>
25181
25182         stdlib: Avoid compilation failure of c-strtold on mingw.
25183         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25184
25185 2010-04-03  Bruno Haible  <bruno@clisp.org>
25186
25187         locale: Make C++ tests work on Cygwin and mingw.
25188         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25189         cannot provide the function.
25190         Reported by Simon Josefsson.
25191
25192 2010-04-03  Bruno Haible  <bruno@clisp.org>
25193
25194         localename: Port to MacOS X 10.6.
25195         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25196         memory layout of the locales in MacOS X 10.6 as well.
25197         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25198
25199 2010-04-02  Bruno Haible  <bruno@clisp.org>
25200
25201         gnulib-tool: Ensure that long-running tests are executed last.
25202         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25203         running tests after the one for the other tests.
25204
25205 2010-04-02  Bruno Haible  <bruno@clisp.org>
25206
25207         gnulib-tool: Ensure the tests in the main directory are executed first.
25208         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25209         start with the current directory.
25210
25211 2010-04-02  Bruno Haible  <bruno@clisp.org>
25212
25213         Tests for module 'havelib', moved here from GNU gettext.
25214         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25215         modifications.
25216         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25217         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25218         with modifications.
25219         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25220         modifications.
25221         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25222         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25223         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25224         with modifications.
25225         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25226         with modifications.
25227         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25228         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25229         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25230         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25231         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25232         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25233         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25234         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25235         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25236         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25237         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25238         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25239         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25240         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25241         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25242         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25243         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25244         with modifications.
25245         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25246         with modifications.
25247         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25248         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25249         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25250         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25251         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25252         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25253         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25254         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25255         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25256         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25257         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25258         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25259         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25260         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25261         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25262         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25263         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25264         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25265         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25266         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25267         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25268         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25269         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25270         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25271         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25272         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25273         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25274         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25275         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25276         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25277         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25278         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25279         * tests/havelib/rpathx/rpathx.c: New file, from
25280         gettext/autoconf-lib-link.
25281         * tests/havelib/rpathx/Makefile.am: New file, from
25282         gettext/autoconf-lib-link.
25283         * tests/havelib/rpathx/configure.ac: New file, from
25284         gettext/autoconf-lib-link with modifications.
25285         * tests/havelib/rpathy/rpathy.c: New file, from
25286         gettext/autoconf-lib-link.
25287         * tests/havelib/rpathy/Makefile.am: New file, from
25288         gettext/autoconf-lib-link.
25289         * tests/havelib/rpathy/configure.ac: New file, from
25290         gettext/autoconf-lib-link with modifications.
25291         * tests/havelib/rpathz/rpathz.c: New file, from
25292         gettext/autoconf-lib-link.
25293         * tests/havelib/rpathz/Makefile.am: New file, from
25294         gettext/autoconf-lib-link.
25295         * tests/havelib/rpathz/configure.ac: New file, from
25296         gettext/autoconf-lib-link with modifications.
25297         * tests/havelib/rpathlx/usex.c: New file, from
25298         gettext/autoconf-lib-link.
25299         * tests/havelib/rpathlx/Makefile.am: New file, from
25300         gettext/autoconf-lib-link.
25301         * tests/havelib/rpathlx/configure.ac: New file, from
25302         gettext/autoconf-lib-link with modifications.
25303         * tests/havelib/rpathly/usey.c: New file, from
25304         gettext/autoconf-lib-link.
25305         * tests/havelib/rpathly/Makefile.am: New file, from
25306         gettext/autoconf-lib-link.
25307         * tests/havelib/rpathly/configure.ac: New file, from
25308         gettext/autoconf-lib-link with modifications.
25309         * tests/havelib/rpathlz/usez.c: New file, from
25310         gettext/autoconf-lib-link.
25311         * tests/havelib/rpathlz/Makefile.am: New file, from
25312         gettext/autoconf-lib-link.
25313         * tests/havelib/rpathlz/configure.ac: New file, from
25314         gettext/autoconf-lib-link with modifications.
25315         * tests/havelib/rpathlyx/usey.c: New file, from
25316         gettext/autoconf-lib-link.
25317         * tests/havelib/rpathlyx/Makefile.am: New file, from
25318         gettext/autoconf-lib-link.
25319         * tests/havelib/rpathlyx/configure.ac: New file, from
25320         gettext/autoconf-lib-link with modifications.
25321         * tests/havelib/rpathlzyx/usez.c: New file, from
25322         gettext/autoconf-lib-link.
25323         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25324         gettext/autoconf-lib-link.
25325         * tests/havelib/rpathlzyx/configure.ac: New file, from
25326         gettext/autoconf-lib-link with modifications.
25327         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25328         with modifications.
25329
25330 2010-04-02  Bruno Haible  <bruno@clisp.org>
25331
25332         gnulib-tool: Create distributed built sources also for the tests.
25333         * gnulib-tool (func_create_testdir): Also generate distributed built
25334         sources in the tests directory.
25335
25336 2010-04-02  Bruno Haible  <bruno@clisp.org>
25337
25338         gnulib-tool: Obey user's environment variables.
25339         * gnulib-tool (func_create_testdir): When creating built sources,
25340         respect the environment variables for autoconf, automake, etc. given by
25341         the user.
25342
25343 2010-04-02  Bruno Haible  <bruno@clisp.org>
25344
25345         gnulib-tool: Provide the value of --m4-base to modules.
25346         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25347         of gl_m4_base.
25348
25349 2010-04-02  Eric Blake  <eblake@redhat.com>
25350
25351         maint.mk: fix some fallout
25352         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25353         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25354
25355 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25356
25357         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25358         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25359         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25360         (sc_cast_of_x_alloc_return_value): Likewise.
25361         (sc_cast_of_alloca_return_value): Likewise.
25362         (sc_space_tab): Likewise.
25363         (sc_prohibit_atoi_atof): Likewise.
25364         (sc_prohibit_magic_number_exit): Likewise.
25365         (sc_error_exit_success): Likewise.
25366         (sc_file_system): Likewise.
25367         (sc_prohibit_have_config_h): Likewise.
25368         (sc_require_config_h): Likewise.
25369         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25370         (sc_obsolete_symbols): Likewise.
25371         (sc_changelog): Likewise.
25372         (sc_program_name): Likewise.
25373         (sc_the_the): Likewise.
25374         (sc_trailing_blank): Likewise.
25375         (sc_two_space_separator_in_usage): Likewise.
25376         (sc_useless_cpp_parens): Likewise.
25377         (sc_GPL_version): Likewise.
25378         (sc_GFDL_version): Likewise.
25379         (sc_texinfo_acronym): Likewise.
25380         (sc_prohibit_cvs_keyword): Likewise.
25381         (sc_prohibit_stat_st_blocks): Likewise.
25382         (sc_prohibit_S_IS_definition): Likewise.
25383         (sc_redundant_const): Likewise.
25384         (sc_makefile_TAB_only_indentation): Likewise.
25385         (sc_m4_quote_check): Likewise.
25386         (sc_makefile_path_separator_check): Likewise.
25387         (sc_copyright_check): Likewise.
25388         (sc_Wundef_boolean): Likewise.
25389         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25390
25391         maint.mk: match 0 or more whitespace-before-function-call '('
25392         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25393         that have zero or two-and-more spaces between the function name
25394         and the open parenthesis.
25395         (sc_error_message_warn_fatal): Likewise.
25396         (sc_error_message_uppercase): Likewise.
25397         (sc_error_message_period): Likewise.
25398
25399 2010-03-31  Eric Blake  <eblake@redhat.com>
25400
25401         maint.mk: check for [ as well as test
25402         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25403         Based on a libvirt report by Matthias Bolte.
25404
25405         gnumakefile: don't squelch _version output
25406         * top/GNUmakefile (_version): Create one-shot dependency rather
25407         than using $(shell) when version must be regenerated.
25408         (_autoreconf): Run verbosely, by default.
25409
25410         sys_time: avoid compiler warnings
25411         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25412         unconditional, fixing regression from 2010-03-29.
25413         Reported by Simon Josefsson.
25414
25415 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25416
25417         maint.mk: s/_header_without_use/_sc_header_without_use/
25418         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25419         (sc_prohibit_assert_without_use): Use the new name.
25420         (sc_prohibit_close_stream_without_use): Likewise.
25421         (sc_prohibit_getopt_without_use): Likewise.
25422         (sc_prohibit_quotearg_without_use): Likewise.
25423         (sc_prohibit_quote_without_use): Likewise.
25424         (sc_prohibit_long_options_without_use): Likewise.
25425         (sc_prohibit_inttostr_without_use): Likewise.
25426         (sc_prohibit_ignore_value_without_use): Likewise.
25427         (sc_prohibit_error_without_use): Likewise.
25428         (sc_prohibit_xalloc_without_use): Likewise.
25429         (sc_prohibit_hash_without_use): Likewise.
25430         (sc_prohibit_hash_pjw_without_use): Likewise.
25431         (sc_prohibit_safe_read_without_use): Likewise.
25432         (sc_prohibit_argmatch_without_use): Likewise.
25433         (sc_prohibit_canonicalize_without_use): Likewise.
25434         (sc_prohibit_root_dev_ino_without_use): Likewise.
25435         (sc_prohibit_openat_without_use): Likewise.
25436         (sc_prohibit_c_ctype_without_use): Likewise.
25437         (sc_prohibit_signal_without_use): Likewise.
25438         (sc_prohibit_intprops_without_use): Likewise.
25439
25440 2010-03-30  Eric Blake  <eblake@redhat.com>
25441
25442         maint: improve module indicators
25443         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25444         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25445         columns, and avoid extra macro expansion.
25446
25447         fdopendir: work around FreeBSD bug
25448         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25449         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25450         * modules/dirent (Makefile.am): Substitute it.
25451         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25452         declaration.
25453         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25454         fix.
25455         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25456
25457 2010-03-29  Bruno Haible  <bruno@clisp.org>
25458
25459         Emit #pragma system_header after the inclusion guard, not before.
25460         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25461         guard that spans the entire file, not before. This enables an
25462         optimization in GCC's preprocessor.
25463         * lib/ctype.in.h: Likewise.
25464         * lib/dirent.in.h: Likewise.
25465         * lib/errno.in.h: Likewise.
25466         * lib/float.in.h: Likewise.
25467         * lib/getopt.in.h: Likewise.
25468         * lib/iconv.in.h: Likewise.
25469         * lib/langinfo.in.h: Likewise.
25470         * lib/locale.in.h: Likewise.
25471         * lib/math.in.h: Likewise.
25472         * lib/netdb.in.h: Likewise.
25473         * lib/netinet_in.in.h: Likewise.
25474         * lib/pty.in.h: Likewise.
25475         * lib/sched.in.h: Likewise.
25476         * lib/se-selinux.in.h: Likewise.
25477         * lib/search.in.h: Likewise.
25478         * lib/spawn.in.h: Likewise.
25479         * lib/stdarg.in.h: Likewise.
25480         * lib/stdint.in.h: Likewise.
25481         * lib/string.in.h: Likewise.
25482         * lib/strings.in.h: Likewise.
25483         * lib/sys_file.in.h: Likewise.
25484         * lib/sys_ioctl.in.h: Likewise.
25485         * lib/sys_time.in.h: Likewise.
25486         * lib/sys_times.in.h: Likewise.
25487         * lib/sys_utsname.in.h: Likewise.
25488         * lib/sys_wait.in.h: Likewise.
25489         * lib/sysexits.in.h: Likewise.
25490         * lib/wctype.in.h: Likewise.
25491
25492 2010-03-28  James Youngman  <jay@gnu.org>
25493
25494         save-cwd: don't leak a file descriptor when the caller execs.
25495         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25496         saved file descriptor.
25497         * modules/save-cwd (Depends-on): Depend on cloexec.
25498
25499 2010-03-29  Bruno Haible  <bruno@clisp.org>
25500
25501         Remove vestiges of fts-lgpl module.
25502         * lib/fts_.h: Assume GNULIB_FTS is 1.
25503         * lib/fts.c: Likewise.
25504         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25505
25506 2010-03-28  Bruno Haible  <bruno@clisp.org>
25507
25508         Fix definition of tests witness macro.
25509         * gnulib-tool (func_import): Fix definition of witness macro.
25510
25511 2010-03-28  Bruno Haible  <bruno@clisp.org>
25512
25513         Fix ioctl's protoype on glibc systems.
25514         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25515         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25516         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25517         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25518         signature. If not, arrange to replace the ioctl function.
25519         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25520         REPLACE_IOCTL.
25521         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25522         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25523         Reported by Ludovic Courtès <ludo@gnu.org>.
25524
25525 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25526
25527         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25528         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25529         made it so grep -r --include=GLOB* ... did not work.
25530
25531 2010-03-26  Jim Meyering  <meyering@redhat.com>
25532             Eric Blake  <eblake@redhat.com>
25533
25534         maint.mk: prohibit use of test's -o and -a operators
25535         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25536
25537 2010-03-28  Bruno Haible  <bruno@clisp.org>
25538
25539         Remove unused GNULIB_XYZ macro definitions.
25540         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25541         invocation.
25542
25543 2010-03-28  Bruno Haible  <bruno@clisp.org>
25544
25545         Mark privileged tests modules.
25546         * modules/idpriv-drop-tests (Status): New section.
25547         * modules/idpriv-droptemp-tests (Status): New section.
25548
25549 2010-03-28  Bruno Haible  <bruno@clisp.org>
25550
25551         Split C++ tests into separate tests modules.
25552         * modules/dirent-c++-tests: New file, extracted from
25553         modules/dirent-tests.
25554         * modules/dirent-tests: Depend on it.
25555         * modules/fcntl-h-c++-tests: New file, extracted from
25556         modules/fcntl-h-tests.
25557         * modules/fcntl-h-tests: Depend on it.
25558         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25559         * modules/glob-tests: Depend on it.
25560         * modules/iconv-h-c++-tests: New file, extracted from
25561         modules/iconv-h-tests.
25562         * modules/iconv-h-tests: Depend on it.
25563         * modules/langinfo-c++-tests: New file, extracted from
25564         modules/langinfo-tests.
25565         * modules/langinfo-tests: Depend on it.
25566         * modules/locale-c++-tests: New file, extracted from
25567         modules/locale-tests.
25568         * modules/locale-tests: Depend on it.
25569         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25570         * modules/math-tests: Depend on it.
25571         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25572         * modules/pty-tests: Depend on it.
25573         * modules/search-c++-tests: New file, extracted from
25574         modules/search-tests.
25575         * modules/search-tests: Depend on it.
25576         * modules/signal-c++-tests: New file, extracted from
25577         modules/signal-tests.
25578         * modules/signal-tests: Depend on it.
25579         * modules/spawn-c++-tests: New file, extracted from
25580         modules/spawn-tests.
25581         * modules/spawn-tests: Depend on it.
25582         * modules/stdio-c++-tests: New file, extracted from
25583         modules/stdio-tests.
25584         * modules/stdio-tests: Depend on it.
25585         * modules/stdlib-c++-tests: New file, extracted from
25586         modules/stdlib-tests.
25587         * modules/stdlib-tests: Depend on it.
25588         * modules/string-c++-tests: New file, extracted from
25589         modules/string-tests.
25590         * modules/string-tests: Depend on it.
25591         * modules/sys_ioctl-c++-tests: New file, extracted from
25592         modules/sys_ioctl-tests.
25593         * modules/sys_ioctl-tests: Depend on it.
25594         * modules/sys_select-c++-tests: New file, extracted from
25595         modules/sys_select-tests.
25596         * modules/sys_select-tests: Depend on it.
25597         * modules/sys_socket-c++-tests: New file, extracted from
25598         modules/sys_socket-tests.
25599         * modules/sys_socket-tests: Depend on it.
25600         * modules/sys_stat-c++-tests: New file, extracted from
25601         modules/sys_stat-tests.
25602         * modules/sys_stat-tests: Depend on it.
25603         * modules/sys_time-c++-tests: New file, extracted from
25604         modules/sys_time-tests.
25605         * modules/sys_time-tests: Depend on it.
25606         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25607         * modules/time-tests: Depend on it.
25608         * modules/unistd-c++-tests: New file, extracted from
25609         modules/unistd-tests.
25610         * modules/unistd-tests: Depend on it.
25611         * modules/wchar-c++-tests: New file, extracted from
25612         modules/wchar-tests.
25613         * modules/wchar-tests: Depend on it.
25614         * modules/wctype-c++-tests: New file, extracted from
25615         modules/wctype-tests.
25616         * modules/wctype-tests: Depend on it.
25617         Reported by Simon Josefsson.
25618
25619 2010-03-28  Bruno Haible  <bruno@clisp.org>
25620
25621         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25622         * gnulib-tool (func_exists_module): New function, extracted from
25623         func_verify_module.
25624         (func_verify_module): Use it.
25625         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25626         'foo' only if 'foo' exists.
25627         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25628         module.
25629
25630 2010-03-28  Bruno Haible  <bruno@clisp.org>
25631
25632         gnulib-tool: Add support for special categories of tests.
25633         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25634         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25635         (func_usage): Document them.
25636         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25637         inc_unportable_tests, inc_all_tests): New variables.
25638         (func_acceptable): Consider these variables.
25639         (func_modules_transitive_closure): Make it work when the 'Status' field
25640         consists of multiple words.
25641         (func_import): Store and restore the values of inc_cxx_tests,
25642         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25643         inc_all_tests in gnulib-comp.m4.
25644         (func_create_testdir): Set inc_all_tests to true.
25645         * doc/gnulib.texi (Extra tests modules): New section.
25646         Suggested by Jim Meyering.
25647
25648 2010-03-28  Bruno Haible  <bruno@clisp.org>
25649
25650         ansi-c++-opt: Allow turning off the C++ build by default.
25651         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25652         gl_CXX_CHOICE_DEFAULT_NO is defined.
25653         Requested by Eric Blake.
25654
25655 2010-03-28  Bruno Haible  <bruno@clisp.org>
25656
25657         unistd: Avoid #define replacements in C++ mode.
25658         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25659         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25660         setsockopt, shutdown, select): In C++, attach a warning to the function
25661         if possible, rather than #defining the symbol to a dysfunctional alias.
25662         Reported by John W. Eaton <jwe@gnu.org>.
25663
25664 2010-03-28  Bruno Haible  <bruno@clisp.org>
25665
25666         Fix link errors on mingw.
25667         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25668         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25669         $(LIBSOCKET).
25670         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25671         $(LIBSOCKET).
25672
25673 2010-03-28  Bruno Haible  <bruno@clisp.org>
25674             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25675
25676         lib-ignore: Determine different options for different compilers.
25677         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25678         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25679         Add comments.
25680         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25681         * NEWS: Mention the change.
25682
25683 2010-03-27  Bruno Haible  <bruno@clisp.org>
25684
25685         Remove unused GNULIB_XYZ macro definitions.
25686         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25687         * modules/fseek (configure.ac): Likewise.
25688         * modules/ioctl (configure.ac): Likewise.
25689         * modules/open (configure.ac): Likewise.
25690         * modules/stdlib-safer (configure.ac): Likewise.
25691
25692 2010-03-27  Bruno Haible  <bruno@clisp.org>
25693
25694         Add a remark about certain modules.
25695         * modules/malloc (Comment): New section.
25696         * modules/realloc (Comment): Likewise.
25697         * modules/sigpipe (Comment): Likewise.
25698
25699 2010-03-27  Bruno Haible  <bruno@clisp.org>
25700
25701         Resolve conflict between the two kinds of module indicators.
25702         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25703         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25704         * modules/canonicalize (configure.ac): Invoke
25705         gl_MODULE_INDICATOR_FOR_TESTS.
25706         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25707         GNULIB_XYZ.
25708         * tests/test-dirent-c++.cc: Likewise.
25709         * tests/test-dirent-safer.c: Likewise.
25710         * tests/test-dup2.c: Likewise.
25711         * tests/test-fchdir.c: Likewise.
25712         * tests/test-fcntl-h-c++.cc: Likewise.
25713         * tests/test-getopt.c: Likewise.
25714         * tests/test-getopt.h: Likewise.
25715         * tests/test-langinfo-c++.cc: Likewise.
25716         * tests/test-locale-c++.cc: Likewise.
25717         * tests/test-math-c++.cc: Likewise.
25718         * tests/test-pty-c++.cc: Likewise.
25719         * tests/test-search-c++.cc: Likewise.
25720         * tests/test-signal-c++.cc: Likewise.
25721         * tests/test-spawn-c++.cc: Likewise.
25722         * tests/test-stdio-c++.cc: Likewise.
25723         * tests/test-stdlib-c++.cc: Likewise.
25724         * tests/test-string-c++.cc: Likewise.
25725         * tests/test-sys_ioctl-c++.cc: Likewise.
25726         * tests/test-sys_select-c++.cc: Likewise.
25727         * tests/test-sys_socket-c++.cc: Likewise.
25728         * tests/test-sys_stat-c++.cc: Likewise.
25729         * tests/test-sys_time-c++.cc: Likewise.
25730         * tests/test-time-c++.cc: Likewise.
25731         * tests/test-unistd-c++.cc: Likewise.
25732         * tests/test-wchar-c++.cc: Likewise.
25733         * tests/uninorm/test-u8-nfc.c: Likewise.
25734         * tests/uninorm/test-u8-nfd.c: Likewise.
25735         * tests/uninorm/test-u8-nfkc.c: Likewise.
25736         * tests/uninorm/test-u8-nfkd.c: Likewise.
25737         * tests/uninorm/test-u16-nfc.c: Likewise.
25738         * tests/uninorm/test-u16-nfd.c: Likewise.
25739         * tests/uninorm/test-u16-nfkc.c: Likewise.
25740         * tests/uninorm/test-u16-nfkd.c: Likewise.
25741         * tests/uninorm/test-u32-nfc.c: Likewise.
25742         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25743         * tests/uninorm/test-u32-nfd.c: Likewise.
25744         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25745         * tests/uninorm/test-u32-nfkc.c: Likewise.
25746         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25747         * tests/uninorm/test-u32-nfkd.c: Likewise.
25748         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25749         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25750
25751 2010-03-27  Bruno Haible  <bruno@clisp.org>
25752
25753         Distinguish two kinds of module indicators.
25754         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25755         gl_MODULE_INDICATOR.
25756         (gl_MODULE_INDICATOR): New macro.
25757         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25758         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25759         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25760         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25761         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25762         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25763         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25764         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25765         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25766         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25767         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25768         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25769         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25770         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25771         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25772         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25773         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25774         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25775         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25776         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25777         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25778         * modules/cloexec (configure.ac): Likewise.
25779         * modules/getopt-gnu (configure.ac): Likewise.
25780         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25781         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25782         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25783         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25784
25785 2010-03-27  Bruno Haible  <bruno@clisp.org>
25786
25787         New module description field 'Comment'.
25788         * gnulib-tool: New option --extract-comment.
25789         (func_usage): Document it.
25790         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25791         (func_get_comment): New function.
25792         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25793
25794 2010-03-27  Bruno Haible  <bruno@clisp.org>
25795
25796         Addendum to 2010-02-07 commit.
25797         * gnulib-tool (func_usage): Document --extract-applicability option.
25798
25799 2010-03-27  Bruno Haible  <bruno@clisp.org>
25800
25801         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25802         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25803         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25804         rather than link errors.
25805
25806 2010-03-27  Bruno Haible  <bruno@clisp.org>
25807
25808         Avoid side effects from tests-related modules on the compilation of lib.
25809         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25810         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25811         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25812         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25813         macro.
25814         (func_import): Define a witness macro. Assign it a value that depends
25815         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25816         tests-related modules.
25817         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25818         Reported by Jim Meyering.
25819
25820 2010-03-27  Bruno Haible  <bruno@clisp.org>
25821
25822         Factorize common .m4 code.
25823         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25824         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25825         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25826         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25827         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25828         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25829         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25830         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25831         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25832         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25833         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25834         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25835         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25836         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25837         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25838         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25839         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25840         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25841         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25842         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25843         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25844         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25845         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25846         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25847         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25848         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25849         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25850         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25851         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25852         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25853         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25854         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25855
25856 2010-03-27  Bruno Haible  <bruno@clisp.org>
25857
25858         Fix a compilation error on Cygwin with g++ >= 4.3.
25859         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25860         if it is undefined or if we alias it to chmod.
25861         (lstat): Don't warn about the use of this function if it is undefined
25862         or if we alias it to stat.
25863         Reported by Simon Josefsson.
25864
25865 2010-03-27  Bruno Haible  <bruno@clisp.org>
25866
25867         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25868         * modules/getlogin (configure.ac): Update.
25869
25870         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25871         * modules/getlogin_r (configure.ac): Update.
25872
25873         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25874         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25875         * modules/inet_ntop (configure.ac): Update.
25876
25877         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25878         * modules/inet_pton (configure.ac): Update.
25879
25880         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25881         * modules/mbslen (configure.ac): Update.
25882
25883         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25884         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25885         * modules/forkpty (configure.ac): Update.
25886         * modules/openpty (configure.ac): Update.
25887
25888 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25889
25890         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25891         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25892
25893 2010-03-25  Eric Blake  <eblake@redhat.com>
25894
25895         maint: use pragma consistently across replacement headers
25896         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25897         * lib/dirent.in.h (system_header): Likewise.
25898         * lib/errno.in.h (system_header): Likewise.
25899         * lib/float.in.h (system_header): Likewise.
25900         * lib/getopt.in.h (system_header): Likewise.
25901         * lib/iconv.in.h (system_header): Likewise.
25902         * lib/inttypes.in.h (system_header): Likewise.
25903         * lib/langinfo.in.h (system_header): Likewise.
25904         * lib/locale.in.h (system_header): Likewise.
25905         * lib/math.in.h (system_header): Likewise.
25906         * lib/netdb.in.h (system_header): Likewise.
25907         * lib/netinet_in.in.h (system_header): Likewise.
25908         * lib/pty.in.h (system_header): Likewise.
25909         * lib/sched.in.h (system_header): Likewise.
25910         * lib/se-selinux.in.h (system_header): Likewise.
25911         * lib/search.in.h (system_header): Likewise.
25912         * lib/spawn.in.h (system_header): Likewise.
25913         * lib/stdarg.in.h (system_header): Likewise.
25914         * lib/stdint.in.h (system_header): Likewise.
25915         * lib/string.in.h (system_header): Likewise.
25916         * lib/strings.in.h (system_header): Likewise.
25917         * lib/sys_file.in.h (system_header): Likewise.
25918         * lib/sys_ioctl.in.h (system_header): Likewise.
25919         * lib/sys_socket.in.h (system_header): Likewise.
25920         * lib/sys_times.in.h (system_header): Likewise.
25921         * lib/sys_utsname.in.h (system_header): Likewise.
25922         * lib/sys_wait.in.h (system_header): Likewise.
25923         * lib/sysexits.in.h (system_header): Likewise.
25924         * lib/unistd.in.h (system_header): Likewise.
25925         * lib/wctype.in.h (system_header): Likewise.
25926
25927         arpa/inet: fix mingw compilation warning
25928         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25929         Reported by Matthew Bolte.
25930
25931 2010-03-25  Bruno Haible  <bruno@clisp.org>
25932
25933         Avoid collision between gnulib wrapper and libintl wrapper.
25934         * lib/printf.c (printf): Don't define if a printf wrapper is already
25935         defined in intl/printf.c.
25936         Reported by Michel Boaventura <michel@michelboaventura.com>.
25937
25938 2010-03-25  Bruno Haible  <bruno@clisp.org>
25939
25940         Use ANSI C.
25941         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25942
25943 2010-03-25  Bruno Haible  <bruno@clisp.org>
25944
25945         Minor formatting changes.
25946         * lib/acosl.c: Insert space before function argument list.
25947         * lib/argz.c: Likewise.
25948         * lib/asinl.c: Likewise.
25949         * lib/expl.c: Likewise.
25950         * lib/gen-uni-tables.c: Likewise.
25951         * lib/gettext.h: Likewise.
25952         * lib/glthread/lock.h: Likewise.
25953         * lib/tanl.c: Likewise.
25954         * lib/uniname/uniname.c: Likewise.
25955         * tests/test-idpriv-drop.c: Likewise.
25956         * tests/test-idpriv-droptemp.c: Likewise.
25957         * tests/test-lock.c: Likewise.
25958         * tests/test-tls.c: Likewise.
25959         * lib/argp-help.c: Insert space before function-like macro argument
25960         list.
25961         * lib/memcmp.c: Likewise.
25962         * tests/test-base64.c: Likewise.
25963         * lib/localename.c: Insert space before sizeof's argument list.
25964         * lib/safe-alloc.h: Likewise.
25965         * lib/file-set.h: Insert space before macro argument list.
25966         * tests/test-argp.c: Likewise.
25967         * lib/argp-namefrob.h: Insert space before function parameter list.
25968         * lib/getaddrinfo.c: Likewise.
25969         * lib/netdb.in.h: Likewise.
25970         * lib/parse-duration.h: Likewise.
25971         * lib/parse-duration.c: Likewise.
25972         * lib/poll.c: Likewise.
25973         * lib/select.c: Likewise.
25974         * lib/trim.h: Likewise.
25975         * tests/test-usleep.c: Likewise.
25976         * lib/ldexpl.c: Insert space before function parameter list and before
25977         function argument list.
25978         * lib/logl.c: Likewise.
25979         * lib/sqrtl.c: Likewise.
25980         * lib/trim.c: Likewise.
25981         * lib/cosl.c: Use GNU style indentation. Insert space before function
25982         argument list.
25983         * lib/sinl.c: Likewise.
25984         * lib/tsearch.c: Insert space after 'for'.
25985         Reported by Jim Meyering.
25986
25987 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
25988
25989         * maint.mk (sc_Wundef_boolean): Check for the presence of the
25990         config header before grepping, as it's not present before
25991         autoreconf/configure are run.  Reported by Simon Josefsson.
25992
25993 2010-03-23  Bruno Haible  <bruno@clisp.org>
25994
25995         pt_chown: Make it work with automake < 1.11.
25996         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
25997         Reported by Simon Josefsson.
25998
25999 2010-03-23  Bruno Haible  <bruno@clisp.org>
26000
26001         pt_chown: Don't depend on GPLed modules.
26002         * lib/pt_chown.c: Don't include idpriv.h.
26003         (main): Don't drop privileges.
26004         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26005         Reported by Simon Josefsson.
26006
26007 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26008
26009         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26010         suggestions from karl@freefriends.org (Karl Berry).
26011
26012 2010-03-22  Eric Blake  <eblake@redhat.com>
26013
26014         gethostname: further tweaks
26015         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26016         are overriding gethostname.
26017         Suggested by Bruno Haible.
26018
26019 2010-03-21  Bruno Haible  <bruno@clisp.org>
26020
26021         Fix comments.
26022         * lib/forkpty.c (rpl_forkpty): Fix comment.
26023         * lib/openpty.c (rpl_openpty): Likewise.
26024         Reported by Eric Blake.
26025
26026 2010-03-22  Eric Blake  <eblake@redhat.com>
26027
26028         gethostname: fix build on mingw
26029         * lib/unistd.in.h (includes): Work around fact that mingw
26030         <winsock2.h> re-includes <unistd.h>, by avoiding any
26031         redeclarations if we are being included by <winsock2.h>.
26032         Reported by Matthias Bolte.
26033
26034 2010-03-21  Bruno Haible  <bruno@clisp.org>
26035
26036         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26037         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26038         modifications.
26039         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26040         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26041         provide the replacement.
26042         * modules/forkpty (Depends-on): Add openpty, login_tty.
26043         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26044         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26045         * doc/glibc-functions/forkpty.texi: More supported platforms.
26046         * config/srclist.txt: Add forkpty.c (commented).
26047
26048 2010-03-21  Bruno Haible  <bruno@clisp.org>
26049
26050         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26051         (Makefile.am): Verify that PTY_LIB is defined.
26052
26053         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26054
26055 2010-03-21  Bruno Haible  <bruno@clisp.org>
26056
26057         Tests for module 'login_tty'.
26058         * modules/login_tty-tests: New file.
26059         * tests/test-login_tty.c: New file.
26060
26061         New module 'login_tty'.
26062         * lib/login_tty.c: New file.
26063         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26064         * modules/login_tty: New file.
26065         * doc/glibc-functions/login_tty.texi: Mention the new module.
26066
26067 2010-03-21  Bruno Haible  <bruno@clisp.org>
26068
26069         login_tty: Documentation.
26070         * doc/glibc-functions/login_tty.texi: New file.
26071         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26072
26073 2010-03-21  Bruno Haible  <bruno@clisp.org>
26074
26075         pty: Consistent macro naming.
26076         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26077         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26078         * modules/pty (configure.ac): Update.
26079
26080 2010-03-21  Bruno Haible  <bruno@clisp.org>
26081
26082         Tests for openpty: Make stricter.
26083         * tests/test-openpty.c (main): Add test of canonical processing and
26084         erase.
26085         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26086
26087         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26088         * lib/openpty.c (openpty): New replacement function.
26089         * lib/pty.in.h: Include <termios.h>.
26090         (openpty): Update declaration. Add comments.
26091         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26092         is not declared, arrange to provide the replacement. Check for _getpty
26093         and posix_openpt.
26094         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26095         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26096         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26097         * modules/pty-tests (test_pty_c___LDADD): New variable.
26098         * doc/glibc-functions/openpty.texi: More supported platforms.
26099
26100 2010-03-21  Bruno Haible  <bruno@clisp.org>
26101
26102         setenv: Tweaks.
26103         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26104         the test program.
26105         * doc/posix-functions/setenv.texi: Update platforms list.
26106
26107 2010-03-21  Bruno Haible  <bruno@clisp.org>
26108
26109         New module 'unlockpt'.
26110         * lib/unlockpt.c: New file, from glibc with modifications.
26111         * m4/unlockpt.m4: New file.
26112         * modules/unlockpt: New file.
26113         * lib/stdlib.in.h (unlockpt): New declaration.
26114         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26115         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26116         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26117         HAVE_UNLOCKPT.
26118         * doc/posix-functions/unlockpt.texi: Mention the new module.
26119         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26120         * config/srclist.txt: Add unlockpt.c (commented).
26121
26122 2010-03-21  Jim Meyering  <meyering@redhat.com>
26123
26124         maint.mk: prohibit inclusion of "intprops.h" without use
26125         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26126
26127 2010-03-21  Bruno Haible  <bruno@clisp.org>
26128
26129         New module 'grantpt'.
26130         * lib/grantpt.c: New file, from glibc with modifications.
26131         * m4/grantpt.m4: New file.
26132         * modules/grantpt: New file.
26133         * lib/stdlib.in.h (grantpt): New declaration.
26134         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26135         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26136         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26137         HAVE_GRANTPT.
26138         * doc/posix-functions/grantpt.texi: Mention the new module.
26139         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26140         * config/srclist.txt: Add grantpt.c (commented).
26141
26142 2010-03-21  Bruno Haible  <bruno@clisp.org>
26143
26144         New module 'pt_chown'.
26145         * lib/pt_chown.c: New file, from glibc with modifications.
26146         * lib/pty-private.h: New file, from glibc with modifications.
26147         * modules/pt_chown: New file.
26148         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26149
26150 2010-03-21  Bruno Haible  <bruno@clisp.org>
26151
26152         Tests for module 'ptsname'.
26153         * modules/ptsname-tests: New file.
26154         * tests/test-ptsname.c: New file.
26155
26156         New module 'ptsname'.
26157         * lib/ptsname.c: New file, from glibc with modifications.
26158         * m4/ptsname.m4: New file.
26159         * modules/ptsname: New file.
26160         * lib/stdlib.in.h (ptsname): New declaration.
26161         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26162         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26163         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26164         HAVE_PTSNAME.
26165         * doc/posix-functions/ptsname.texi: Mention the new module.
26166         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26167         * config/srclist.txt: Add ptsname.c (commented).
26168
26169 2010-03-21  Bruno Haible  <bruno@clisp.org>
26170
26171         Tests for module 'ttyname_r'.
26172         * modules/ttyname_r-tests: New file.
26173         * tests/test-ttyname_r.c: New file.
26174
26175         New module 'ttyname_r'.
26176         * lib/ttyname_r.c: New file.
26177         * m4/ttyname_r.m4: New file.
26178         * modules/ttyname_r: New file.
26179         * lib/unistd.in.h (ttyname_r): New declaration.
26180         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26181         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26182         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26183         HAVE_TTYNAME_R.
26184         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26185         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26186
26187 2010-03-20  Bruno Haible  <bruno@clisp.org>
26188
26189         signal: Undefine macro definitions in C++ mode.
26190         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26191         sigfillset): Undefine macro definitions from the system header in C++
26192         mode.
26193         Reported by John W. Eaton <jwe@gnu.org>.
26194
26195 2010-03-20  Bruno Haible  <bruno@clisp.org>
26196
26197         Ensure no #include statements inside extern "C" { ... }.
26198         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26199         contain #include statements.
26200         * lib/time.in.h: Likewise.
26201
26202 2010-03-20  Bruno Haible  <bruno@clisp.org>
26203
26204         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26205         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26206         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26207         Reported by John W. Eaton <jwe@gnu.org>.
26208
26209 2010-03-20  Bruno Haible  <bruno@clisp.org>
26210
26211         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26212         Reported by Jim Meyering.
26213
26214 2010-03-20  Bruno Haible  <bruno@clisp.org>
26215
26216         pipe: Set errno upon failure.
26217         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26218         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26219         errno value in error message.
26220
26221 2010-03-20  Bruno Haible  <bruno@clisp.org>
26222             Jim Meyering  <meyering@redhat.com>
26223
26224         lchown: Avoid "unused variable" warning.
26225         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26226
26227 2010-03-20  Bruno Haible  <bruno@clisp.org>
26228
26229         Work around unlink() bug on MacOS X 10.5.6.
26230         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26231         attempting to unlink a parent directory.
26232         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26233         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26234         activate for the replacement function.
26235         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26236
26237 2010-03-20  Bruno Haible  <bruno@clisp.org>
26238
26239         Fix link errors on Solaris 8.
26240         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26241         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26242
26243 2010-03-19  Jim Meyering  <meyering@redhat.com>
26244
26245         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26246         The _LIBC implementation of build_range_exp correctly honors the
26247         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26248         However, the non-_LIBC implementation would ignore that syntax-bit
26249         flag and return REG_ERANGE unconditionally.
26250         This change makes it honor that flag.
26251         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26252         Make two pointer parameters "const".
26253         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26254         (parse_bracket_exp): Update caller.
26255
26256         regex.m4: correct the reversed range endpoint ([b-a]) test
26257         * m4/regex.m4: When requiring that [b-a] evoke failure,
26258         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26259         test pass once again for x86-based systems.
26260
26261 2010-03-19  Bruno Haible  <bruno@clisp.org>
26262
26263         scandir: Fix link error on Solaris 8.
26264         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26265         macros.
26266
26267 2010-03-19  Bruno Haible  <bruno@clisp.org>
26268
26269         getusershell: Fix documentation.
26270         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26271         module.
26272         * doc/glibc-functions/setusershell.texi: Likewise.
26273
26274         getusershell: Provide declaration, missing on Solaris 9.
26275         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26276         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26277         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26278         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26280         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26281         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26282         HAVE_GETUSERSHELL.
26283         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26284
26285 2010-03-19  Bruno Haible  <bruno@clisp.org>
26286
26287         wctype: Provide iswblank function.
26288         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26289         exists and is fine.
26290         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26291         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26292         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26293         * doc/posix-functions/iswblank.texi: Update.
26294
26295 2010-03-19  Bruno Haible  <bruno@clisp.org>
26296
26297         Tests of module 'pty' in C++ mode.
26298         * modules/pty-tests: New file.
26299         * tests/test-pty-c++.cc: New file.
26300         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26301
26302 2010-03-19  Eric Blake  <eblake@redhat.com>
26303
26304         logb: fix documentation
26305         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26306         1.5 declaration bug.
26307
26308         forkpty, openpty: prefer glibc's const-safe prototype
26309         * lib/forkpty.c (rpl_forkpty): New file.
26310         * lib/openpty.c (rpl_openpty): Likewise.
26311         * modules/forkpty (Files): Distribute it.
26312         * modules/openpty (Files): Likewise.
26313         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26314         check...
26315         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26316         replacement for for non-const BSD signature.
26317         * modules/pty (Makefile.am): Substitute witnesses.
26318         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26319         * tests/test-forkpty.c: Update signature check.
26320         * tests/test-openpty.c: Likewise.
26321         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26322         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26323
26324         forkpty, openpty: split functions into new modules
26325         * modules/pty (Makefile.am): Substitute new witnesses.
26326         (Libraries): Move library detection...
26327         * modules/forkpty: ...into new module.
26328         * modules/openpty: Another new module.
26329         * modules/pty-tests: Rename and split...
26330         * modules/forkpty-tests: ...to this...
26331         * modules/openpty-tests: ...and this.
26332         * tests/test-pty.c: Rename and split...
26333         * tests/test-forkpty.c: ...to this...
26334         * tests/test-openpty.c: ...and this.
26335         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26336         (gl_PTY): Split library searching...
26337         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26338         (gl_FORKPTY, gl_OPENPTY): New macros.
26339         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26340         * NEWS: Mention the split.
26341         * MODULES.html.sh (Misc): Document the modules.
26342         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26343         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26344
26345         pty: improve replacement header
26346         * lib/pty.in.h: New file.
26347         * modules/pty (Files): Ship it.
26348         (Makefile.am): Always build replacement.
26349         * m4/pty.m4: Rename...
26350         * m4/pty_h.m4: ...to this.
26351         (gl_PTY): Modernize setting of witness macros; update check of
26352         forkpty to take proper advantage of cache.
26353         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26354
26355         getopt: avoid compiler warning
26356         * lib/getopt.c (attribute_hidden): Remove unused macro.
26357
26358 2010-03-18  Bruno Haible  <bruno@clisp.org>
26359
26360         Fix link errors on Solaris 8.
26361         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26362         * modules/search-tests (test_search_c___LDADD): Likewise.
26363         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26364         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26365         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26366         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26367         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26368         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26369         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26370
26371 2010-03-18  Bruno Haible  <bruno@clisp.org>
26372
26373         Fix bug introduced on 2010-03-14.
26374         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26375         (gl_SPAWN_H): Require it.
26376         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26377         Reported by Simon Josefsson.
26378
26379 2010-03-18  Bruno Haible  <bruno@clisp.org>
26380
26381         Fix typo introduced on 2009-12-31.
26382         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26383         posix_spawn_file_actions_adddup2.
26384
26385 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26386         and Eric Blake  <eblake@redhat.com>
26387
26388         test-vc-list-files-git: make more robust
26389         * tests/test-vc-list-files-git.sh: Unset problematic environment
26390         variables.  Chain commands together.
26391
26392 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26393
26394         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26395         `AC_CHECK_DECL' invocation.
26396
26397 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26398
26399         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26400         appears before executable statements. Suggested by Petr Sumbera
26401         <Petr.Sumbera@Sun.COM>.
26402
26403 2010-03-14  Bruno Haible  <bruno@clisp.org>
26404
26405         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26406         portability problems. Instead use a simpler test.
26407         (main): Check that invalid arguments are rejected only on Linux.
26408
26409 2010-03-14  Bruno Haible  <bruno@clisp.org>
26410
26411         Fix bug introduced on 2009-12-31.
26412         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26413         gl_PREREQ_SYS_H_WINSOCK2 always.
26414         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26415         SYS_SOCKET_H variable.
26416         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26417         Update comments.
26418         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26419         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26420         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26421         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26422         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26423
26424 2010-03-14  Bruno Haible  <bruno@clisp.org>
26425
26426         Fix values returned by sinl, cosl.
26427         * lib/trigl.h: Add specification comments.
26428         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26429         that combines the values from the precomputed table with the values of
26430         the Chebyshev polynomials.
26431
26432 2010-03-14  Bruno Haible  <bruno@clisp.org>
26433
26434         Fix compilation error when modules 'posix_spawn[p]' are not used.
26435         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26436         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26437
26438 2010-03-14  Bruno Haible  <bruno@clisp.org>
26439
26440         Fix compilation error on mingw when module 'time_r' is not used.
26441         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26442         is 1.
26443         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26444         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26445         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26446         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26447
26448 2010-03-14  Bruno Haible  <bruno@clisp.org>
26449
26450         Fix compilation error with Sun C.
26451         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26452         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26453         instead of GCC specific ULONG_LONG_MAX.
26454         * lib/xstrtoll.c: Likewise.
26455         * lib/xstrtoull.c: Likewise.
26456
26457 2010-03-13  Bruno Haible  <bruno@clisp.org>
26458
26459         Allow the user to disable C++ code and tests.
26460         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26461         (gl_PROG_ANSI_CXX): Require it.
26462
26463 2010-03-13  Bruno Haible  <bruno@clisp.org>
26464
26465         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26466         cases.
26467
26468 2010-03-13  Bruno Haible  <bruno@clisp.org>
26469
26470         Test that gnulib does not break the standard C++ headers.
26471         * tests/test-locale-c++2.cc: New file.
26472         * modules/locale-tests (Files): Add it.
26473         (Makefile.am): Compile it for test-locale-c++.
26474         * tests/test-math-c++2.cc: New file.
26475         * modules/math-tests (Files): Add it.
26476         (Makefile.am): Compile it for test-math-c++.
26477         * tests/test-signal-c++2.cc: New file.
26478         * modules/signal-tests (Files): Add it.
26479         (Makefile.am): Compile it for test-signal-c++.
26480         * tests/test-stdio-c++2.cc: New file.
26481         * modules/stdio-tests (Files): Add it.
26482         (Makefile.am): Compile it for test-stdio-c++.
26483         * tests/test-stdlib-c++2.cc: New file.
26484         * modules/stdlib-tests (Files): Add it.
26485         (Makefile.am): Compile it for test-stdlib-c++.
26486         * tests/test-string-c++2.cc: New file.
26487         * modules/string-tests (Files): Add it.
26488         (Makefile.am): Compile it for test-string-c++.
26489         * tests/test-time-c++2.cc: New file.
26490         * modules/time-tests (Files): Add it.
26491         (Makefile.am): Compile it for test-time-c++.
26492         Reported by John W. Eaton <jwe@gnu.org>.
26493
26494 2010-03-13  Bruno Haible  <bruno@clisp.org>
26495
26496         * gnulib-tool (func_usage): Clarify which options are available for
26497         --create-testdir and --create-megatestdir.
26498
26499 2010-03-13  Bruno Haible  <bruno@clisp.org>
26500
26501         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26502         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26503         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26504         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26505         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26506         when appropriate.
26507         Reported by Jim Meyering.
26508
26509 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26510
26511         * gnulib-tool (func_import): Explain origin of code.
26512
26513 2010-03-12  Bruno Haible  <bruno@clisp.org>
26514
26515         Fix problem with automake's definition of CXXLINK.
26516         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26517         Reported by Simon Josefsson and Ludovic Courtès.
26518
26519 2010-03-12  Bruno Haible  <bruno@clisp.org>
26520
26521         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26522         stable releases.
26523
26524 2010-03-11  Bruno Haible  <bruno@clisp.org>
26525
26526         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26527         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26528         whether the system provides one variant or multiple variants of the
26529         function.
26530         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26531         C++ compilers.
26532         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26533         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26534         Reported by Jim Meyering.
26535
26536 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26537
26538         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26539
26540 2010-03-08  Bruno Haible  <bruno@clisp.org>
26541
26542         gnulib-tool: Add support for --libtool in --create-testdir.
26543         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26544         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26545
26546 2010-03-08  Eric Blake  <eblake@redhat.com>
26547
26548         gnulib-tool.texi: mention possibility of git submodule
26549         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26550         submodules.
26551         * doc/.gitignore: Ignore another generated file.
26552
26553 2010-03-08  Karl Berry  <karl@gnu.org>
26554
26555         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26556         of committing gnulib files while skipping others.
26557
26558 2010-03-07  Bruno Haible  <bruno@clisp.org>
26559
26560         Tests of module 'wctype' in C++ mode.
26561         * tests/test-wctype-c++.cc: New file.
26562         * modules/wctype-tests (Files): Add it and tests/signature.h.
26563         (Depends-on): Add ansi-c++-opt.
26564         (Makefile.am): Arrange to compile and run test-wctype-c++.
26565
26566         Tests of module 'wchar' in C++ mode.
26567         * tests/test-wchar-c++.cc: New file.
26568         * modules/wchar-tests (Files): Add it and tests/signature.h.
26569         (Depends-on): Add ansi-c++-opt.
26570         (Makefile.am): Arrange to compile and run test-wchar-c++.
26571         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26572         gl_MODULE_INDICATOR.
26573
26574         Tests of module 'unistd' in C++ mode.
26575         * tests/test-unistd-c++.cc: New file.
26576         * modules/unistd-tests (Files): Add it and tests/signature.h.
26577         (Depends-on): Add ansi-c++-opt.
26578         (Makefile.am): Arrange to compile and run test-unistd-c++.
26579         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26580         gl_MODULE_INDICATOR.
26581
26582         Tests of module 'time' in C++ mode.
26583         * tests/test-time-c++.cc: New file.
26584         * modules/time-tests (Files): Add it and tests/signature.h.
26585         (Depends-on): Add ansi-c++-opt.
26586         (Makefile.am): Arrange to compile and run test-time-c++.
26587         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26588
26589         Tests of module 'sys_time' in C++ mode.
26590         * tests/test-sys_time-c++.cc: New file.
26591         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26592         (Depends-on): Add ansi-c++-opt.
26593         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26594         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26595         gl_MODULE_INDICATOR.
26596
26597         Tests of module 'sys_stat' in C++ mode.
26598         * tests/test-sys_stat-c++.cc: New file.
26599         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26600         (Depends-on): Add ansi-c++-opt.
26601         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26602         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26603         gl_MODULE_INDICATOR.
26604
26605         Tests of module 'sys_socket' in C++ mode.
26606         * tests/test-sys_socket-c++.cc: New file.
26607         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26608         (Depends-on): Add ansi-c++-opt.
26609         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26610         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26611         gl_MODULE_INDICATOR.
26612
26613         Tests of module 'sys_select' in C++ mode.
26614         * tests/test-sys_select-c++.cc: New file.
26615         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26616         (Depends-on): Add ansi-c++-opt.
26617         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26618         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26619         gl_MODULE_INDICATOR.
26620
26621         Tests of module 'sys_ioctl' in C++ mode.
26622         * tests/test-sys_ioctl-c++.cc: New file.
26623         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26624         (Depends-on): Add ansi-c++-opt.
26625         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26626         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26627         gl_MODULE_INDICATOR.
26628
26629         Tests of module 'string' in C++ mode.
26630         * tests/test-string-c++.cc: New file.
26631         * modules/string-tests (Files): Add it and tests/signature.h.
26632         (Depends-on): Add ansi-c++-opt.
26633         (Makefile.am): Arrange to compile and run test-string-c++.
26634         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26635         gl_MODULE_INDICATOR.
26636
26637         Tests of module 'stdlib' in C++ mode.
26638         * tests/test-stdlib-c++.cc: New file.
26639         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26640         (Depends-on): Add ansi-c++-opt.
26641         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26642         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26643         gl_MODULE_INDICATOR.
26644
26645         Tests of module 'stdio' in C++ mode.
26646         * tests/test-stdio-c++.cc: New file.
26647         * modules/stdio-tests (Files): Add it and tests/signature.h.
26648         (Depends-on): Add ansi-c++-opt.
26649         (Makefile.am): Arrange to compile and run test-stdio-c++.
26650         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26651         gl_MODULE_INDICATOR.
26652
26653         Tests of module 'spawn' in C++ mode.
26654         * tests/test-spawn-c++.cc: New file.
26655         * modules/spawn-tests (Files): Add it and tests/signature.h.
26656         (Depends-on): Add ansi-c++-opt.
26657         (Makefile.am): Arrange to compile and run test-spawn-c++.
26658         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26659         gl_MODULE_INDICATOR.
26660
26661         Tests of module 'signal' in C++ mode.
26662         * tests/test-signal-c++.cc: New file.
26663         * modules/signal-tests (Files): Add it and tests/signature.h.
26664         (Depends-on): Add ansi-c++-opt.
26665         (Makefile.am): Arrange to compile and run test-signal-c++.
26666         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26667         gl_MODULE_INDICATOR.
26668
26669         Tests of module 'search' in C++ mode.
26670         * tests/test-search-c++.cc: New file.
26671         * modules/search-tests (Files): Add it and tests/signature.h.
26672         (Depends-on): Add ansi-c++-opt.
26673         (Makefile.am): Arrange to compile and run test-search-c++.
26674         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26675         gl_MODULE_INDICATOR.
26676
26677         Tests of module 'math' in C++ mode.
26678         * tests/test-math-c++.cc: New file.
26679         * modules/math-tests (Files): Add it and tests/signature.h.
26680         (Depends-on): Add ansi-c++-opt.
26681         (Makefile.am): Arrange to compile and run test-math-c++.
26682         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26683
26684         Tests of module 'locale' in C++ mode.
26685         * tests/test-locale-c++.cc: New file.
26686         * modules/locale-tests (Files): Add it and tests/signature.h.
26687         (Depends-on): Add ansi-c++-opt.
26688         (Makefile.am): Arrange to compile and run test-locale-c++.
26689         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26690         gl_MODULE_INDICATOR.
26691
26692         Tests of module 'langinfo' in C++ mode.
26693         * tests/test-langinfo-c++.cc: New file.
26694         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26695         (Depends-on): Add ansi-c++-opt.
26696         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26697         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26698         gl_MODULE_INDICATOR.
26699
26700         Tests of module 'iconv-h' in C++ mode.
26701         * tests/test-iconv-h-c++.cc: New file.
26702         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26703         (Depends-on): Add ansi-c++-opt.
26704         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26705
26706         Tests of module 'glob' in C++ mode.
26707         * tests/test-glob-c++.cc: New file.
26708         * modules/glob-tests (Files): Add it.
26709         (Depends-on): Add ansi-c++-opt.
26710         (Makefile.am): Arrange to compile and run test-glob-c++.
26711
26712         Tests of module 'fcntl-h' in C++ mode.
26713         * tests/test-fcntl-h-c++.cc: New file.
26714         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26715         (Depends-on): Add ansi-c++-opt.
26716         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26717         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26718         gl_MODULE_INDICATOR.
26719
26720         Tests of module 'dirent' in C++ mode.
26721         * tests/test-dirent-c++.cc: New file.
26722         * modules/dirent-tests (Files): Add it and tests/signature.h.
26723         (Depends-on): Add ansi-c++-opt.
26724         (Makefile.am): Arrange to compile and run test-dirent-c++.
26725         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26726         gl_MODULE_INDICATOR.
26727
26728         New module 'ansi-c++-opt'.
26729         * modules/ansi-c++-opt: New file.
26730         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26731
26732         Document C++ namespace mode.
26733         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26734
26735         wctype: Avoid #define replacements in C++ mode.
26736         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26737         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26738         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26739         In C++, define a namespaced alias symbol.
26740         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26741         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26742         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26743         rule.
26744
26745         wchar: Avoid #define replacements in C++ mode.
26746         * lib/wchar.in.h: Include c++defs.h.
26747         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26748         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26749         symbol.
26750         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26751         * modules/wchar (Depends-on): Add c++defs.
26752         (Makefile.am): Update wchar.h rule.
26753
26754         unistd: Avoid #define replacements in C++ mode.
26755         * lib/unistd.in.h: Include c++defs.h.
26756         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26757         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26758         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26759         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26760         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26761         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26762         symbol.
26763         (environ): Update.
26764         * modules/unistd (Depends-on): Add c++defs.
26765         (Makefile.am): Update unistd.h rule.
26766
26767         time: Avoid #define replacements in C++ mode.
26768         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26769         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26770         define a namespaced alias symbol.
26771         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26772         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26773         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26774         * modules/time (Depends-on): Add c++defs, warn-on-use.
26775         (Makefile.am): Update time.h rule.
26776         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26777         * modules/nanosleep (configure.ac): Likewise.
26778         * modules/strptime (configure.ac): Likewise.
26779         * modules/timegm (configure.ac): Likewise.
26780
26781         sys_time: Avoid #define replacements in C++ mode.
26782         * lib/sys_time.in.h: Include c++defs.h.
26783         (gettimeofday): In C++, define a namespaced alias symbol.
26784         * modules/sys_time (Depends-on): Add c++defs.
26785         (Makefile.am): Update sys/time.h rule.
26786
26787         sys_stat: Avoid #define replacements in C++ mode.
26788         * lib/sys_stat.in.h: Include c++defs.h.
26789         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26790         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26791         namespaced alias symbol.
26792         In C++, define a namespaced alias symbol.
26793         * modules/sys_stat (Depends-on): Add c++defs.
26794         (Makefile.am): Update sys/stat.h rule.
26795
26796         sys_socket: Avoid #define replacements in C++ mode.
26797         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26798         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26799         definitions also when the system has a <sys/socket.h>.
26800         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26801         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26802         In C++, define a namespaced alias symbol.
26803         * modules/sys_socket (Depends-on): Add c++defs.
26804         (Makefile.am): Update sys/socket.h rule.
26805
26806         sys_select: Avoid #define replacements in C++ mode.
26807         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26808         definitions also when the system has a <sys/select.h>.
26809         (select): In C++, define a namespaced alias symbol.
26810         * modules/sys_select (Depends-on): Add c++defs.
26811         (Makefile.am): Update sys/select.h rule.
26812
26813         sys_ioctl: Avoid #define replacements in C++ mode.
26814         * lib/sys_ioctl.in.h: Include c++defs.h.
26815         (ioctl): In C++, define a namespaced alias symbol.
26816         * modules/sys_ioctl (Depends-on): Add c++defs.
26817         (Makefile.am): Update sys/ioctl.h rule.
26818
26819         string: Avoid #define replacements in C++ mode.
26820         * lib/string.in.h: Include c++defs.h.
26821         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26822         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26823         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26824         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26825         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26826         * modules/string (Depends-on): Add c++defs.
26827         (Makefile.am): Update string.h rule.
26828
26829         stdlib: Avoid #define replacements in C++ mode.
26830         * lib/stdlib.in.h: Include c++defs.h.
26831         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26832         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26833         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26834         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26835         symbol.
26836         * modules/stdlib (Depends-on): Add c++defs.
26837         (Makefile.am): Update stdlib.h rule.
26838
26839         stdio: Avoid #define replacements in C++ mode.
26840         * lib/stdio.in.h: Include c++defs.h.
26841         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26842         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26843         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26844         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26845         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26846         namespaced alias symbol.
26847         * modules/stdio (Depends-on): Add c++defs.
26848         (Makefile.am): Update stdio.h rule.
26849
26850         spawn: Avoid #define replacements in C++ mode.
26851         * lib/spawn.in.h: Include c++defs.h.
26852         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26853         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26854         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26855         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26856         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26857         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26858         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26859         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26860         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26861         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26862         In C++, define a namespaced alias symbol.
26863         * modules/spawn (Depends-on): Add c++defs.
26864         (Makefile.am): Update spawn.h rule.
26865
26866         signal: Avoid #define replacements in C++ mode.
26867         * lib/signal.in.h: Include c++defs.h.
26868         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26869         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26870         namespaced alias symbol.
26871         * modules/signal (Depends-on): Add c++defs.
26872         (Makefile.am): Update signal.h rule.
26873
26874         search: Avoid #define replacements in C++ mode.
26875         * lib/search.in.h: Include c++defs.h.
26876         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26877         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26878         symbol.
26879         * modules/search (Depends-on): Add c++defs.
26880         (Makefile.am): Update search.h rule.
26881
26882         math: Avoid #define replacements in C++ mode.
26883         * lib/math.in.h: Include c++defs.h.
26884         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26885         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26886         trunc, truncl): In C++, define a namespaced alias symbol.
26887         * modules/math (Depends-on): Add c++defs.
26888         (Makefile.am): Update math.h rule.
26889
26890         locale: Avoid #define replacements in C++ mode.
26891         * lib/locale.in.h: Include c++defs.h.
26892         (duplocale): In C++, define a namespaced alias symbol.
26893         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26894         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26895         * modules/locale (Depends-on): Add c++defs.
26896         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26897
26898         langinfo: Avoid #define replacements in C++ mode.
26899         * lib/langinfo.in.h: Include c++defs.h.
26900         (nl_langinfo): In C++, define a namespaced alias symbol.
26901         * modules/langinfo (Depends-on): Add c++defs.
26902         (Makefile.am): Update langinfo.h rule.
26903
26904         iconv-h: Avoid #define replacements in C++ mode.
26905         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26906         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26907         symbol.
26908         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26909         whenever iconv is present.
26910         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26911         (Makefile.am): Update iconv.h rule.
26912
26913         glob: Avoid #define replacements in C++ mode.
26914         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26915         (_gl_glob_errfunc_fn): New type.
26916         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26917         symbol.
26918         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26919         (Makefile.am): Update glob.h rule.
26920
26921         fcntl-h: Avoid #define replacements in C++ mode.
26922         * lib/fcntl.in.h: Include c++defs.h.
26923         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26924         * modules/fcntl-h (Depends-on): Add c++defs.
26925         (Makefile.am): Update fcntl.h rule.
26926
26927         dirent: Avoid #define replacements in C++ mode.
26928         * lib/dirent.in.h: Include c++defs.h.
26929         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26930         namespaced alias symbol.
26931         (dirfd): Update declaration.
26932         * modules/dirent (Depends-on): Add c++defs.
26933         (Makefile.am): Update dirent.h rule.
26934
26935         ctype: Make it usable in C++ code.
26936         * lib/ctype.in.h: Include c++defs.h.
26937         (isblank): Declare as extern "C".
26938         * modules/ctype (Depends-on): Add c++defs.
26939         (Makefile.am): Update ctype.h rule.
26940
26941         New module 'c++defs'.
26942         * modules/c++defs: New file.
26943         * build-aux/c++defs.h: New file.
26944         Reported by John W. Eaton <jwe@gnu.org>.
26945
26946 2010-03-07  Bruno Haible  <bruno@clisp.org>
26947
26948         logb: Provide missing declaration for Cygwin.
26949         * lib/math.in.h (logb): New declaration.
26950         * m4/logb.m4: New file.
26951         * modules/logb (Files): Add m4/logb.m4.
26952         (Depends-on): Add math.
26953         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26954         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26955         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26956         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26957         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26958
26959 2010-03-07  Bruno Haible  <bruno@clisp.org>
26960
26961         Fix test-cond link error.
26962         * tests/test-cond.c: Include <stdio.h>.
26963
26964 2010-03-07  Bruno Haible  <bruno@clisp.org>
26965
26966         Fix test-dirent-safer link error.
26967         * modules/dirent-safer-tests (Makefile.am): Define
26968         test_dirent_safer_LDADD.
26969
26970 2010-03-07  Bruno Haible  <bruno@clisp.org>
26971
26972         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26973         among default module list.
26974
26975 2010-03-07  Bruno Haible  <bruno@clisp.org>
26976
26977         Fix link error on platforms with GNU libiconv.
26978         * modules/unistr/u8-strcoll-tests (Makefile): Define
26979         test_u8_strcoll_LDADD.
26980         * modules/unistr/u16-strcoll-tests (Makefile): Define
26981         test_u16_strcoll_LDADD.
26982         * modules/unistr/u32-strcoll-tests (Makefile): Define
26983         test_u32_strcoll_LDADD.
26984
26985 2010-03-07  Bruno Haible  <bruno@clisp.org>
26986
26987         Use POSIX declarations for socket functions.
26988         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
26989         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
26990         rpl_sendto): Change declaration to match POSIX.
26991         * lib/connect.c (rpl_connect): Likewise.
26992         * lib/accept.c (rpl_accept): Likewise.
26993         * lib/bind.c (rpl_bind): Likewise.
26994         * lib/getpeername.c (rpl_getpeername): Likewise.
26995         * lib/getsockname.c (rpl_getsockname): Likewise.
26996         * lib/recv.c (rpl_recv): Likewise.
26997         * lib/send.c (rpl_send): Likewise.
26998         * lib/recvfrom.c (rpl_recvfrom): Likewise.
26999         * lib/sendto.c (rpl_sendto): Likewise.
27000
27001 2010-03-06  Bruno Haible  <bruno@clisp.org>
27002
27003         Clarify access, euidaccess, faccessat.
27004         * doc/posix-functions/faccessat.texi: Mention security problem under
27005         "Other problems", not "Portability problems".
27006         * doc/posix-functions/access.texi: Likewise. Mention a related security
27007         problem.
27008         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27009         * lib/euidaccess.c: Add comments about platforms.
27010         * lib/unistd.in.h (access, euidaccess): Add warnings.
27011
27012 2010-03-07  Bruno Haible  <bruno@clisp.org>
27013
27014         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27015         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27016         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27017         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27018         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27019         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27020         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27021         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27022         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27023         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27024         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27025         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27026         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27027         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27028         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27029         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27030         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27031         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27032         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27033         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27034         Likewise.
27035         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27036         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27037         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27038         Likewise.
27039         * tests/test-spawn.c (main): Make it work when
27040         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27041
27042 2010-03-07  Bruno Haible  <bruno@clisp.org>
27043
27044         Fix incorrect Makefile.am generation in German locale.
27045         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27046         Execute sed command with character range in C locale.
27047
27048 2010-03-06  Bruno Haible  <bruno@clisp.org>
27049
27050         Tests for module 'iconv-h'.
27051         * modules/iconv-h-tests: New file.
27052         * tests/test-iconv-h.c: New file.
27053
27054         New module 'iconv-h'.
27055         * modules/iconv-h: New file.
27056         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27057         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27058         (configure.ac): Remove gl_ICONV_H.
27059         (Makefile.am): Remove rule for iconv.h.
27060
27061 2010-03-06  Bruno Haible  <bruno@clisp.org>
27062
27063         More consistent naming of *.m4 files.
27064         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27065         * modules/wctype (Files): Update.
27066
27067         More consistent naming of *.m4 files.
27068         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27069         * modules/wchar (Files): Update.
27070
27071 2010-03-06  Jim Meyering  <meyering@redhat.com>
27072
27073         euidaccess: relax license to LGPLv2+
27074         * modules/euidaccess (License): Relax to LGPLv2+.
27075
27076 2010-03-06  Bruno Haible  <bruno@clisp.org>
27077
27078         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27079         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27080         (Makefile.am): Augment lib_SOURCES instead.
27081
27082 2010-03-04  Jim Meyering  <meyering@redhat.com>
27083
27084         utime: remove obsolete module
27085         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27086         unnecessary for years, and has been marked as obsolete for 10 months.
27087         * modules/utime: Remove file.
27088         * lib/utime.c: Remove file.
27089         * m4/utime.m4: Remove file.
27090         * m4/utimes-null.m4: Remove file.
27091         * doc/posix-functions/utime.texi (utime): Remove reference to
27092         the module.  Move the sole "fixed by gnulib" item into the
27093         "problems not fixed by Gnulib" list.
27094         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27095
27096 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27097
27098         * modules/exit (License): Relax license to LGPLv2+.
27099         (Status): Mark as obsolete.
27100         * NEWS: Mention deprecated 'exit' module.
27101         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27102         of now obsolete 'exit'.
27103
27104 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27105
27106         fts-lgpl: remove unused module
27107         * modules/fts-lgpl: Remove.
27108         * MODULES.html.sh (func_all_modules): Adjust.
27109         * check-module (find_included_lib_files): Adjust.
27110         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27111
27112 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27113
27114         copy-acl: enhance Solaris ACL error handling
27115         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27116         * lib/set-mode-acl.c (qset_acl): Likewise.
27117
27118 2010-03-02  Bruno Haible  <bruno@clisp.org>
27119
27120         spawn: Don't override the system defined values on FreeBSD 8.
27121         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27122         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27123         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27124         if HAVE_POSIX_SPAWN is 1.
27125         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27126
27127 2010-03-01  Bruno Haible  <bruno@clisp.org>
27128
27129         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27130         regarding Automake.
27131
27132 2010-02-25  Bruno Haible  <bruno@clisp.org>
27133
27134         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27135         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27136         setting, not afterwards.
27137         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27138
27139 2010-02-24  Eric Blake  <eblake@redhat.com>
27140
27141         bootstrap, git-version-gen: use timestamp
27142         * build-aux/git-version-gen (scriptversion): Force UTC.
27143         * build-aux/bootstrap (scriptversion): New variable.
27144
27145         bootstrap: allow older git
27146         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27147         older than 1.6.4.  Requested by the libvirt project.
27148
27149 2010-02-23  Eric Blake  <eblake@redhat.com>
27150
27151         warn-on-use: work with old autoconf
27152         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27153         AS_VAR semantics of autoconf 2.60.
27154         Reported by Bruno Haible.
27155
27156         bootstrap: improve some comments
27157         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27158         clarification comments.
27159
27160         gettimeofday: provide correct function
27161         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27162         when replacement is declared, otherwise provide gettimeofday.
27163         Reported by Michael Goffioul.
27164
27165 2010-02-23  Jim Meyering  <meyering@redhat.com>
27166
27167         lib-ignore: relax license to "unlimited", not LGPLv2+
27168         * modules/lib-ignore (License): Relax to "unlimited".
27169
27170 2010-02-23  Jim Meyering  <meyering@redhat.com>
27171
27172         lib-ignore: relax license to LGPLv2+
27173         * modules/lib-ignore (License): Relax to LGPLv2+.
27174
27175 2010-02-22  Eric Blake  <eblake@redhat.com>
27176
27177         lseek: avoid bash 3.2 broken pipe bug
27178         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27179         warning from bash 3.2.
27180         Reported by Ben Pfaff, with analysis from Bruno Haible.
27181
27182         bootstrap: support non-FSF copyright holder
27183         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27184         bootstrap.conf override of COPYRIGHT_HOLDER.
27185         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27186
27187         bootstrap: interoperate with gettext 0.14.1
27188         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27189
27190         bootstrap: allow for alternate submodule location
27191         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27192         hardcoding submodule location.
27193         (gnulib_mk): Allow direct use of Makefile.am.
27194
27195         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27196         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27197         rather than reconfiguring where the submodule points.
27198
27199         gettimeofday: restore support for platforms that lack function
27200         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27201         replacement if function is missing.
27202         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27203         * modules/sys_time (Makefile.am): Substitute it.
27204         * lib/sys_time.in.h (gettimeofday): Check it.
27205         Reported by Michael Goffioul.
27206
27207 2010-02-21  Bruno Haible  <bruno@clisp.org>
27208
27209         * lib/stdio.in.h (obstack_printf): Fix typo.
27210
27211 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27212
27213         vc-list-files: use bzr ls's -R option
27214         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27215         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27216
27217 2010-02-21  Jim Meyering  <meyering@redhat.com>
27218
27219         init.sh: fix EXEEXT shims to work also for names like test-prog
27220         * tests/init.sh: Re-exec a better shell, when needed.
27221         If the current shell lacks support for posix $(...), an init.sh-using
27222         test will now try to find a shell that supports that.  If EXEEXT is
27223         nonempty, we also require support for hyphen-in-alias-name and shell
27224         substitutions like ${var#glob}.  Failure to find such a shell results
27225         in a skipped test.
27226
27227 2010-02-21  Bruno Haible  <bruno@clisp.org>
27228
27229         Really work around around "broken pipe" error message from bash 3.2.
27230         * gnulib-tool (func_reset_sigpipe): Remove function.
27231         (echo): In bash 3.2, define to a function that uses printf.
27232         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27233
27234 2010-02-20  Bruno Haible  <bruno@clisp.org>
27235
27236         Restore support for automake 1.9.6 with autoconf 2.61.
27237         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27238         Reported by James Youngman <jay@gnu.org>.
27239
27240 2010-02-20  Bruno Haible  <bruno@clisp.org>
27241
27242         Improve *printf warning condition.
27243         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27244         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27245         and the function is overridden due to SIGPIPE emulation.
27246
27247 2010-02-20  Bruno Haible  <bruno@clisp.org>
27248
27249         * lib/stdio.in.h: Tweak comments.
27250
27251 2010-02-19  Bruno Haible  <bruno@clisp.org>
27252
27253         Make it easier to find modules. New gnulib-tool option '--find'.
27254         * gnulib-tool: New option --find.
27255         (func_usage): Document it.
27256         (func_sanitize_modulelist): New function, extracted from
27257         func_all_modules.
27258         (func_all_modules): Invoke it.
27259         * doc/gnulib-tool.texi (Which modules?): New node.
27260
27261 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27262
27263         * lib/sys_select.in.h: Provide select replacement even if
27264         sys/select.h exists on a system, for Interix.
27265
27266 2010-02-18  Jim Meyering  <meyering@redhat.com>
27267
27268         init.sh: don't use $(...) just yet
27269         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27270         to accommodate e.g., Solaris' /bin/sh.
27271
27272 2010-02-17  Bruno Haible  <bruno@clisp.org>
27273
27274         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27275         Reported by Ludovic Courtès <ludo@gnu.org>.
27276
27277 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27278
27279         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27280         linking with -lintl.
27281
27282 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27283
27284         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27285         if not provided by the system's netdb.h.  Reported by
27286         ludo@gnu.org (Ludovic Courtès).
27287
27288 2010-02-15  Jim Meyering  <meyering@redhat.com>
27289
27290         init.sh: improve portability and efficiency
27291         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27292         "dummy" in a for loop.
27293         Use '!', not '^' to select the complement of a character set used
27294         in a "case" statement.
27295         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27296         Suggestions from Eric Blake.
27297
27298         init.sh: automatically accommodate programs with the .exe suffix
27299         Automatically arrange for an invocation of "prog" to execute the
27300         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27301         may use the simpler "prog", yet still work when built on a system
27302         that requires specifying the added suffix.
27303         Do this by constructing a function named "prog" that invokes
27304         "prog.exe" for each .exe file in selected directories.
27305         * tests/init.sh (find_exe_basenames_): New function.
27306         (create_exe_shim_functions_): New function.
27307         (path_prepend_): Use it.
27308
27309         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27310         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27311         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27312
27313 2010-02-14  Jim Meyering  <meyering@redhat.com>
27314
27315         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27316         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27317         (sc_prohibit_hash_pjw_without_use): New rule.
27318
27319         maint.mk: allow the default upload destination dir to be overridden
27320         * top/maint.mk (upload_dest_dir_): Define with a default that
27321         preserves the status quo.
27322         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27323         Reported by Peter Simons.
27324
27325         maint.mk: prohibit inclusion of "hash.h" without_use
27326         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27327
27328 2010-02-10  Jim Meyering  <meyering@redhat.com>
27329
27330         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27331         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27332
27333 2010-02-09  Eric Blake  <ebb9@byu.net>
27334         and Bruno Haible  <bruno@clisp.org>
27335
27336         obstack-printf-posix: ensure declaration
27337         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27338         extracted from gl_FUNC_OBSTACK_PRINTF.
27339         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27340         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27341         Likewise.
27342         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27343         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27344         0.
27345
27346 2010-02-08  Bruno Haible  <bruno@clisp.org>
27347
27348         gnulib-tool: Fix typo in 2010-02-07 commit.
27349         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27350         Reported by Eric Blake.
27351
27352 2010-02-07  Bruno Haible  <bruno@clisp.org>
27353
27354         gnulib-tool: Fix up caching patches.
27355         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27356         option --no-cache. Use associative arrays when supported by the shell.
27357         (sed_comments): New variable.
27358         (modcache): Renamed from do_cache.
27359         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27360         abbreviate unnecessarily.
27361         (have_associative): New variable.
27362         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27363         way also for ksh and zsh.
27364         (func_init_sed_convert_to_cache_statements): New function, extracted
27365         from func_cache_lookup_module. Add support for associative arrays.
27366         Don't set the c_MODULE_cached variable here. Ignore all lines before
27367         the first field header. Remove only the final newline, not all trailing
27368         newlines. Support empty fields correctly. Limit the use of 'eval' to
27369         assignments.
27370         (func_get_description, func_get_status, func_get_notice,
27371         func_get_applicability, func_get_filelist, func_get_dependencies,
27372         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27373         func_get_automake_snippet, func_get_include_directive,
27374         func_get_link_directive, func_get_license, func_get_maintainer):
27375         Update documentation. List the unoptimized code first. Add support for
27376         associative arrays. Limit the use of 'eval' to assignments.
27377         (func_get_applicability): Undo stylistic pessimisations.
27378         (func_get_automake_snippet, func_get_include_directive): Reduce code
27379         duplication.
27380         (func_modules_transitive_closure, func_modules_add_dummy,
27381         func_modules_notice, func_modules_to_filelist, func_add_file,
27382         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27383         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27384         func_create_testdir, func_create_megatestdir): Update documentation.
27385
27386 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27387
27388         * gnulib-tool (func_cache_lookup_module): Store the module name
27389         belonging to the cache variable; error out if two different
27390         module names map to the same cache variable name.
27391
27392 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27393
27394         gnulib-tool: Make caching optional.
27395         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27396         Update matching short versions of --no-changelog.
27397         (func_usage): Update.
27398         (sed_extract_cache_prog): Renamed from ...
27399         (sed_extract_prog): ... this; revert to old extraction script.
27400         (func_get_description, func_get_status)
27401         (func_get_notice, func_get_applicability, func_get_filelist)
27402         (func_get_dependencies, func_get_autoconf_early_snippet)
27403         (func_get_autoconf_snippet, func_get_automake_snippet)
27404         (func_get_include_directive, func_get_link_directive)
27405         (func_get_license, func_get_maintainer): If $do_cache is false,
27406         use old, non-caching extraction scripts.
27407         Suggestion by Bruno Haible.
27408
27409 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27410
27411         gnulib-tool: cache module metainformation.
27412         * gnulib-tool (sed_extract_prog): Match newline before each
27413         header, and rewrite header to a shell variable suffix.
27414         (func_cache_var, func_cache_lookup_module): New functions,
27415         to turn a module name into a cache variable prefix, and to
27416         look up and cache module metainformation.
27417         (func_get_description, func_get_status)
27418         (func_get_notice, func_get_applicability, func_get_filelist)
27419         (func_get_dependencies, func_get_autoconf_early_snippet)
27420         (func_get_autoconf_snippet, func_get_automake_snippet)
27421         (func_get_include_directive, func_get_link_directive)
27422         (func_get_license, func_get_maintainer): Use
27423         func_cache_lookup_module.
27424
27425 2010-02-07  Bruno Haible  <bruno@clisp.org>
27426
27427         fnctl: Fix missing dependency.
27428         * modules/fcntl (Depends-on): Add getdtablesize.
27429         Reported by John W. Eaton <jwe@gnu.org>.
27430
27431 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27432
27433         Argp: fix recognition of short alias options.
27434
27435         * lib/argp-parse.c (convert_options): Fix improper use of
27436         `|' between character values.
27437         * tests/test-argp.c (group1_option): New alias option
27438         --read (-r).
27439         (group1_parser): Special handling for 'r'.
27440         (test15): New test case.
27441         (test_fun): Add test15.
27442         * tests/test-argp-2.sh: Update expected --help and --usage
27443         outputs.
27444
27445 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27446
27447         * tests/test-argp.c: Fix indentation.
27448
27449 2010-02-04  Eric Blake  <ebb9@byu.net>
27450
27451         gettimeofday: expose type of second argument
27452         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27453         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27454         * tests/test-gettimeofday.c: Use it to silence warning.
27455         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27456         the issue.
27457
27458 2010-02-03  Jim Meyering  <meyering@redhat.com>
27459
27460         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27461         * lib/regcomp.c (TYPE_SIGNED): Define.
27462         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27463
27464         regcomp.c: avoid a new -Wshadow warning
27465         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27466
27467 2010-02-01  Jim Meyering  <meyering@redhat.com>
27468
27469         removing useless parentheses in cpp #define directives
27470         For motivation, see commit c0221df4, "define STREQ(a,b)
27471         consistently, removing useless parentheses"
27472         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27473         * lib/mountlist.c (MNT_IGNORE): Likewise.
27474         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27475
27476 2010-02-01  Eric Blake  <ebb9@byu.net>
27477
27478         sys_time: use link-warning
27479         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27480         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27481         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27482         * modules/sys_time (Depends-on): Add warn-on-use.
27483         (Makefile.am): Always build replacement.
27484         (configure.ac): Update substitutions.
27485         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27486         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27487         bother with SYS_TIME_H.
27488         * modules/gettimeofday (configure.ac): Declare indicator.
27489         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27490         in use.
27491
27492         closein-tests: silence compiler warning
27493         * tests/test-closein.c (main): Ignore fread result.
27494         * modules/closein-tests (Depends-on): Add ignore-value.
27495
27496         tests: silence warning about system return
27497         * tests/test-areadlink-with-size.c (main): Ignore system result.
27498         * tests/test-areadlink.c (main): Likewise.
27499         * tests/test-areadlinkat-with-size.c (main): Likewise.
27500         * tests/test-areadlinkat.c (main): Likewise.
27501         * tests/test-canonicalize-lgpl.c (main): Likewise.
27502         * tests/test-canonicalize.c (main): Likewise.
27503         * tests/test-chown.c (main): Likewise.
27504         * tests/test-fchownat.c (main): Likewise.
27505         * tests/test-fdutimensat.c (main): Likewise.
27506         * tests/test-fstatat.c (main): Likewise.
27507         * tests/test-futimens.c (main): Likewise.
27508         * tests/test-lchown.c (main): Likewise.
27509         * tests/test-link.c (main): Likewise.
27510         * tests/test-linkat.c (main): Likewise.
27511         * tests/test-lstat.c (main): Likewise.
27512         * tests/test-mkdir.c (main): Likewise.
27513         * tests/test-mkdirat.c (main): Likewise.
27514         * tests/test-mkfifo.c (main): Likewise.
27515         * tests/test-mkfifoat.c (main): Likewise.
27516         * tests/test-mknod.c (main): Likewise.
27517         * tests/test-readlink.c (main): Likewise.
27518         * tests/test-remove.c (main): Likewise.
27519         * tests/test-rename.c (main): Likewise.
27520         * tests/test-renameat.c (main): Likewise.
27521         * tests/test-rmdir.c (main): Likewise.
27522         * tests/test-symlink.c (main): Likewise.
27523         * tests/test-symlinkat.c (main): Likewise.
27524         * tests/test-unlink.c (main): Likewise.
27525         * tests/test-unlinkat.c (main): Likewise.
27526         * tests/test-utimens.c (main): Likewise.
27527         * tests/test-utimensat.c (main): Likewise.
27528         * modules/areadlink-tests (Depends-on): Add ignore-value.
27529         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27530         * modules/areadlinkat-tests (Depends-on): Likewise.
27531         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27532         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27533         * modules/canonicalize-tests (Depends-on): Likewise.
27534         * modules/chown-tests (Depends-on): Likewise.
27535         * modules/fdutimensat-tests (Depends-on): Likewise.
27536         * modules/futimens-tests (Depends-on): Likewise.
27537         * modules/lchown-tests (Depends-on): Likewise.
27538         * modules/link-tests (Depends-on): Likewise.
27539         * modules/linkat-tests (Depends-on): Likewise.
27540         * modules/lstat-tests (Depends-on): Likewise.
27541         * modules/mkdir-tests (Depends-on): Likewise.
27542         * modules/mkfifo-tests (Depends-on): Likewise.
27543         * modules/mkfifoat-tests (Depends-on): Likewise.
27544         * modules/mknod-tests (Depends-on): Likewise.
27545         * modules/openat-tests (Depends-on): Likewise.
27546         * modules/readlink-tests (Depends-on): Likewise.
27547         * modules/remove-tests (Depends-on): Likewise.
27548         * modules/rename-tests (Depends-on): Likewise.
27549         * modules/renameat-tests (Depends-on): Likewise.
27550         * modules/rmdir-tests (Depends-on): Likewise.
27551         * modules/symlink-tests (Depends-on): Likewise.
27552         * modules/symlinkat-tests (Depends-on): Likewise.
27553         * modules/unlink-tests (Depends-on): Likewise.
27554         * modules/utimens-tests (Depends-on): Likewise.
27555         * modules/utimensat-tests (Depends-on): Likewise.
27556
27557 2010-01-31  Bruno Haible  <bruno@clisp.org>
27558
27559         Perform the same test for many <math.h> functions.
27560         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27561         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27562         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27563         of gl_MATHFUNC.
27564         * modules/acos (configure.ac): Likewise.
27565         * modules/asin (configure.ac): Likewise.
27566         * modules/atan (configure.ac): Likewise.
27567         * modules/atan2 (configure.ac): Likewise.
27568         * modules/cbrt (configure.ac): Likewise.
27569         * modules/copysign (configure.ac): Likewise.
27570         * modules/cos (configure.ac): Likewise.
27571         * modules/cosh (configure.ac): Likewise.
27572         * modules/erf (configure.ac): Likewise.
27573         * modules/erfc (configure.ac): Likewise.
27574         * modules/exp (configure.ac): Likewise.
27575         * modules/fmod (configure.ac): Likewise.
27576         * modules/hypot (configure.ac): Likewise.
27577         * modules/j0 (configure.ac): Likewise.
27578         * modules/j1 (configure.ac): Likewise.
27579         * modules/jn (configure.ac): Likewise.
27580         * modules/lgamma (configure.ac): Likewise.
27581         * modules/log (configure.ac): Likewise.
27582         * modules/log10 (configure.ac): Likewise.
27583         * modules/log1p (configure.ac): Likewise.
27584         * modules/pow (configure.ac): Likewise.
27585         * modules/remainder (configure.ac): Likewise.
27586         * modules/sin (configure.ac): Likewise.
27587         * modules/sinh (configure.ac): Likewise.
27588         * modules/tan (configure.ac): Likewise.
27589         * modules/tanh (configure.ac): Likewise.
27590         * modules/y0 (configure.ac): Likewise.
27591         * modules/y1 (configure.ac): Likewise.
27592         * modules/yn (configure.ac): Likewise.
27593         Suggested by Paolo Bonzini.
27594
27595 2010-01-31  Bruno Haible  <bruno@clisp.org>
27596
27597         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27598
27599 2010-01-31  Bruno Haible  <bruno@clisp.org>
27600
27601         Work around getdelim() bug on FreeBSD 8.0.
27602         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27603         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27604         not work.
27605         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27606         is 1.
27607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27608         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27609         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27610         a non-zero size.
27611         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27612
27613 2010-01-31  Bruno Haible  <bruno@clisp.org>
27614
27615         Work around getline() bug on FreeBSD 8.0.
27616         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27617         and a non-zero size.
27618         * tests/test-getline.c (main): Likewise.
27619         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27620         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27621
27622 2010-01-28  Eric Blake  <ebb9@byu.net>
27623
27624         regex: fix build failure
27625         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27626         platforms.
27627
27628 2010-01-28  Jim Meyering  <meyering@redhat.com>
27629
27630         regex: do not ignore memory allocation failure
27631         * lib/regex_internal.c (create_cd_newstate): Detect
27632         re_node_set_init_copy failure.   Extracted from glibc commit
27633         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27634
27635         regex: sync more white-space changes from libc
27636         * lib/regex_internal.c: White-space only changes.
27637         * lib/regexec.c: Likewise.
27638
27639         regex: add many uses of __attribute_warn_unused_result__
27640         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27641         * lib/regexec.c: Likewise.
27642         Extracted from a messy glibc commit.
27643
27644         regcomp.c: spelling and merge-artifact from glibc
27645         * lib/regcomp.c: Merge remainder of glibc's
27646         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27647
27648         regcomp.c: sync white-space changes from glibc
27649         * lib/regcomp.c: Merge to accommodate white space
27650         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27651
27652         regcomp.c: do not ignore internal return values
27653         * lib/regcomp.c: Do not ignore internal return values.
27654         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27655         but without its white-space changes and spelling fixes.
27656
27657         regex_internal.h: define __attribute_warn_unused_result__
27658         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27659
27660         maint: add a syntax-check rule to check for vulnerable Makefile.in
27661         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27662
27663 2010-01-27  Jim Meyering  <meyering@redhat.com>
27664
27665         ncftpput-ftp: clean up spaces
27666         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27667         Remove trailing blanks.
27668
27669 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27670
27671         * build-aux/git-version-gen: Fix copyright statement.
27672         * build-aux/gnupload: Likewise.
27673         * tests/test-arcfour.c: Likewise.
27674         * tests/test-arctwo.c: Likewise.
27675         * tests/test-count-one-bits.c: Likewise.
27676         * tests/test-crc.c: Likewise.
27677         * tests/test-des.c: Likewise.
27678         * tests/test-gc-arcfour.c: Likewise.
27679         * tests/test-gc-arctwo.c: Likewise.
27680         * tests/test-gc-des.c: Likewise.
27681         * tests/test-gc-hmac-md5.c: Likewise.
27682         * tests/test-gc-hmac-sha1.c: Likewise.
27683         * tests/test-gc-md2.c: Likewise.
27684         * tests/test-gc-md4.c: Likewise.
27685         * tests/test-gc-md5.c: Likewise.
27686         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27687         * tests/test-gc-rijndael.c: Likewise.
27688         * tests/test-gc-sha1.c: Likewise.
27689         * tests/test-gc.c: Likewise.
27690         * tests/test-gethostname.c: Likewise.
27691         * tests/test-gettimeofday.c: Likewise.
27692         * tests/test-hash.c: Likewise.
27693         * tests/test-hmac-md5.c: Likewise.
27694         * tests/test-hmac-sha1.c: Likewise.
27695         * tests/test-md2.c: Likewise.
27696         * tests/test-md4.c: Likewise.
27697         * tests/test-md5.c: Likewise.
27698         * tests/test-memchr.c: Likewise.
27699         * tests/test-memchr2.c: Likewise.
27700         * tests/test-memcmp.c: Likewise.
27701         * tests/test-memmem.c: Likewise.
27702         * tests/test-memrchr.c: Likewise.
27703         * tests/test-rawmemchr.c: Likewise.
27704         * tests/test-read-file.c: Likewise.
27705         * tests/test-rijndael.c: Likewise.
27706         * tests/test-sockets.c: Likewise.
27707         * tests/test-strchrnul.c: Likewise.
27708         * tests/test-strstr.c: Likewise.
27709         * tests/test-strtod.c: Likewise.
27710         * build-aux/ncftpput-ftp: Likewise.
27711
27712 2010-01-26  Eric Blake  <ebb9@byu.net>
27713
27714         ignore-value: update recommended header name
27715         * modules/ignore-value (Include): Only use <> for headers that
27716         exist in glibc.
27717
27718 2010-01-26  Jim Meyering  <meyering@redhat.com>
27719
27720         test-userspec.c: avoid compiler warnings
27721         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27722         and "initialization discards qualifiers..." warnings.
27723         Put the first "uid" in its own scope, and make char* members "const".
27724
27725 2010-01-25  Bruno Haible  <bruno@clisp.org>
27726
27727         gnulib-tool: Make warning diagnostics consistent.
27728         * gnulib-tool (func_warning): New function.
27729         Use it everywhere where gnulib-tool produces output to stderr and it is
27730         not a fatal error.
27731
27732 2010-01-25  Bruno Haible  <bruno@clisp.org>
27733
27734         Fix test dependencies.
27735         * modules/xstrtol-tests (Depends-on): Add inttypes.
27736         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27737
27738 2010-01-25 Pádraig Brady <P@draigBrady.com>
27739
27740         syntax-check: detect incorrect boolean macro values in config.h
27741         * modules/maintainer-makefile (configure.ac): Parameterize the location
27742         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27743         The logic is from Eric Blake and the location indicated by Jim Meyering.
27744         Note the more natural CONFIG_HEADER name is prohibited by automake
27745         for backwards compatibility reasons.
27746         * top/maint.mk (sc_Wundef_boolean): New rule.
27747
27748 2010-01-25  Jim Meyering  <meyering@redhat.com>
27749
27750         bootstrap: detect MacOS 10.6's shasum, too
27751         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27752         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27753
27754 2010-01-23  Jim Meyering  <meyering@redhat.com>
27755
27756         xstrtoll: new module
27757         * modules/xstrtoll: New file.
27758         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27759         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27760         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27761         ./configure fails if you use this module and lack "long long".
27762         * modules/xstrtoll-tests: New module.
27763         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27764         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27765         new init.sh-based test framework.
27766
27767 2010-01-24  Bruno Haible  <bruno@clisp.org>
27768
27769         Tests for module 'yn'.
27770         * modules/yn-tests: New file.
27771         * tests/test-yn.c: New file.
27772
27773         Tests for module 'y1'.
27774         * modules/y1-tests: New file.
27775         * tests/test-y1.c: New file.
27776
27777         Tests for module 'y0'.
27778         * modules/y0-tests: New file.
27779         * tests/test-y0.c: New file.
27780
27781         Tests for module 'tanh'.
27782         * modules/tanh-tests: New file.
27783         * tests/test-tanh.c: New file.
27784
27785         Tests for module 'tan'.
27786         * modules/tan-tests: New file.
27787         * tests/test-tan.c: New file.
27788
27789         Tests for module 'sqrt'.
27790         * modules/sqrt-tests: New file.
27791         * tests/test-sqrt.c: New file.
27792
27793         Tests for module 'sinh'.
27794         * modules/sinh-tests: New file.
27795         * tests/test-sinh.c: New file.
27796
27797         Tests for module 'sin'.
27798         * modules/sin-tests: New file.
27799         * tests/test-sin.c: New file.
27800
27801         Tests for module 'rint'.
27802         * modules/rint-tests: New file.
27803         * tests/test-rint.c: New file.
27804
27805         Tests for module 'remainder'.
27806         * modules/remainder-tests: New file.
27807         * tests/test-remainder.c: New file.
27808
27809         Tests for module 'pow'.
27810         * modules/pow-tests: New file.
27811         * tests/test-pow.c: New file.
27812
27813         Tests for module 'nextafter'.
27814         * modules/nextafter-tests: New file.
27815         * tests/test-nextafter.c: New file.
27816
27817         Tests for module 'modf'.
27818         * modules/modf-tests: New file.
27819         * tests/test-modf.c: New file.
27820
27821         Tests for module 'logb'.
27822         * modules/logb-tests: New file.
27823         * tests/test-logb.c: New file.
27824
27825         Tests for module 'log1p'.
27826         * modules/log1p-tests: New file.
27827         * tests/test-log1p.c: New file.
27828
27829         Tests for module 'log10'.
27830         * modules/log10-tests: New file.
27831         * tests/test-log10.c: New file.
27832
27833         Tests for module 'log'.
27834         * modules/log-tests: New file.
27835         * tests/test-log.c: New file.
27836
27837         Tests for module 'lgamma'.
27838         * modules/lgamma-tests: New file.
27839         * tests/test-lgamma.c: New file.
27840
27841         Tests for module 'ldexp'.
27842         * modules/ldexp-tests: New file.
27843         * tests/test-ldexp.c: New file.
27844
27845         Tests for module 'jn'.
27846         * modules/jn-tests: New file.
27847         * tests/test-jn.c: New file.
27848
27849         Tests for module 'j1'.
27850         * modules/j1-tests: New file.
27851         * tests/test-j1.c: New file.
27852
27853         Tests for module 'j0'.
27854         * modules/j0-tests: New file.
27855         * tests/test-j0.c: New file.
27856
27857         Tests for module 'hypot'.
27858         * modules/hypot-tests: New file.
27859         * tests/test-hypot.c: New file.
27860
27861         Tests for module 'fmod'.
27862         * modules/fmod-tests: New file.
27863         * tests/test-fmod.c: New file.
27864
27865         Tests for module 'fabs'.
27866         * modules/fabs-tests: New file.
27867         * tests/test-fabs.c: New file.
27868
27869         Tests for module 'exp'.
27870         * modules/exp-tests: New file.
27871         * tests/test-exp.c: New file.
27872
27873         Tests for module 'erfc'.
27874         * modules/erfc-tests: New file.
27875         * tests/test-erfc.c: New file.
27876
27877         Tests for module 'erf'.
27878         * modules/erf-tests: New file.
27879         * tests/test-erf.c: New file.
27880
27881         Tests for module 'cosh'.
27882         * modules/cosh-tests: New file.
27883         * tests/test-cosh.c: New file.
27884
27885         Tests for module 'cos'.
27886         * modules/cos-tests: New file.
27887         * tests/test-cos.c: New file.
27888
27889         Tests for module 'copysign'.
27890         * modules/copysign-tests: New file.
27891         * tests/test-copysign.c: New file.
27892
27893         Tests for module 'cbrt'.
27894         * modules/cbrt-tests: New file.
27895         * tests/test-cbrt.c: New file.
27896
27897         Tests for module 'atan2'.
27898         * modules/atan2-tests: New file.
27899         * tests/test-atan2.c: New file.
27900
27901         Tests for module 'atan'.
27902         * modules/atan-tests: New file.
27903         * tests/test-atan.c: New file.
27904
27905         Tests for module 'asin'.
27906         * modules/asin-tests: New file.
27907         * tests/test-asin.c: New file.
27908
27909         Tests for module 'acos'.
27910         * modules/acos-tests: New file.
27911         * tests/test-acos.c: New file.
27912
27913 2010-01-24  Bruno Haible  <bruno@clisp.org>
27914
27915         Fix tests for common <math.h> functions.
27916         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27917         code snippet that references the function pointer, rather than merely
27918         calling the function. Substitute the FUNC_LIBM variable.
27919         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27920         * modules/acos (configure.ac): Likewise.
27921         * modules/asin (configure.ac): Likewise.
27922         * modules/atan (configure.ac): Likewise.
27923         * modules/atan2 (configure.ac): Likewise.
27924         * modules/cbrt (configure.ac): Likewise.
27925         * modules/copysign (configure.ac): Likewise.
27926         * modules/cos (configure.ac): Likewise.
27927         * modules/cosh (configure.ac): Likewise.
27928         * modules/erf (configure.ac): Likewise.
27929         * modules/erfc (configure.ac): Likewise.
27930         * modules/exp (configure.ac): Likewise.
27931         * modules/fabs (configure.ac): Likewise.
27932         * modules/fmod (configure.ac): Likewise.
27933         * modules/hypot (configure.ac): Likewise.
27934         * modules/j0 (configure.ac): Likewise.
27935         * modules/j1 (configure.ac): Likewise.
27936         * modules/jn (configure.ac): Likewise.
27937         * modules/ldexp (configure.ac): Likewise.
27938         * modules/lgamma (configure.ac): Likewise.
27939         * modules/log (configure.ac): Likewise.
27940         * modules/log10 (configure.ac): Likewise.
27941         * modules/log1p (configure.ac): Likewise.
27942         * modules/logb (configure.ac): Likewise.
27943         * modules/modf (configure.ac): Likewise.
27944         * modules/nextafter (configure.ac): Likewise.
27945         * modules/pow (configure.ac): Likewise.
27946         * modules/remainder (configure.ac): Likewise.
27947         * modules/rint (configure.ac): Likewise.
27948         * modules/sin (configure.ac): Likewise.
27949         * modules/sinh (configure.ac): Likewise.
27950         * modules/tan (configure.ac): Likewise.
27951         * modules/tanh (configure.ac): Likewise.
27952         * modules/y0 (configure.ac): Likewise.
27953         * modules/y1 (configure.ac): Likewise.
27954         * modules/yn (configure.ac): Likewise.
27955
27956 2010-01-24  Bruno Haible  <bruno@clisp.org>
27957
27958         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27959         * tests/test-acosl.c (x): New variable.
27960         (main): Store argument in x and fetch it from x.
27961         * tests/test-asinl.c (x): New variable.
27962         (main): Store argument in x and fetch it from x.
27963         * tests/test-atanl.c (x): New variable.
27964         (main): Store argument in x and fetch it from x.
27965         * tests/test-cosl.c (x): New variable.
27966         (main): Store argument in x and fetch it from x.
27967         * tests/test-expl.c (x): New variable.
27968         (main): Store argument in x and fetch it from x.
27969         * tests/test-logl.c (x): New variable.
27970         (main): Store argument in x and fetch it from x.
27971         * tests/test-sinl.c (x): New variable.
27972         (main): Store argument in x and fetch it from x.
27973         * tests/test-sqrtl.c (x): New variable.
27974         (main): Store argument in x and fetch it from x.
27975         * tests/test-tanl.c (x): New variable.
27976         (main): Store argument in x and fetch it from x.
27977
27978 2010-01-24  Bruno Haible  <bruno@clisp.org>
27979
27980         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27981         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27982         assignments to the initial TESTS_ENVIRONMENT.
27983         * doc/gnulib.texi (Unit test modules): Document it.
27984         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27985         TESTS_ENVIRONMENT.
27986         * modules/btowc-tests (Makefile.am): Likewise.
27987         * modules/c-stack-tests (Makefile.am): Likewise.
27988         * modules/c-strcase-tests (Makefile.am): Likewise.
27989         * modules/copy-file-tests (Makefile.am): Likewise.
27990         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
27991         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
27992         * modules/mbrtowc-tests (Makefile.am): Likewise.
27993         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27994         * modules/mbscasestr-tests (Makefile.am): Likewise.
27995         * modules/mbschr-tests (Makefile.am): Likewise.
27996         * modules/mbscspn-tests (Makefile.am): Likewise.
27997         * modules/mbsinit-tests (Makefile.am): Likewise.
27998         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27999         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28000         * modules/mbspbrk-tests (Makefile.am): Likewise.
28001         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28002         * modules/mbsrchr-tests (Makefile.am): Likewise.
28003         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28004         * modules/mbsspn-tests (Makefile.am): Likewise.
28005         * modules/mbsstr-tests (Makefile.am): Likewise.
28006         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28007         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28008         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28009         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28010         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28011         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28012         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28013         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28014         * modules/wcrtomb-tests (Makefile.am): Likewise.
28015         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28016         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28017         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28018         assignments from TESTS_ENVIRONMENT.
28019         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28020         augmentation.
28021         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28022         * modules/atexit-tests (Makefile.am): Likewise.
28023         * modules/binary-io-tests (Makefile.am): Likewise.
28024         * modules/closein-tests (Makefile.am): Likewise.
28025         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28026         * modules/exclude-tests (Makefile.am): Likewise.
28027         * modules/fflush-tests (Makefile.am): Likewise.
28028         * modules/fpending-tests (Makefile.am): Likewise.
28029         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28030         * modules/freadahead-tests (Makefile.am): Likewise.
28031         * modules/freadptr-tests (Makefile.am): Likewise.
28032         * modules/freadseek-tests (Makefile.am): Likewise.
28033         * modules/fseek-tests (Makefile.am): Likewise.
28034         * modules/fseeko-tests (Makefile.am): Likewise.
28035         * modules/ftell-tests (Makefile.am): Likewise.
28036         * modules/ftello-tests (Makefile.am): Likewise.
28037         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28038         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28039         * modules/lseek-tests (Makefile.am): Likewise.
28040         * modules/parse-duration-tests (Makefile.am): Likewise.
28041         * modules/perror-tests (Makefile.am): Likewise.
28042         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28043         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28044         * modules/pipe-tests (Makefile.am): Likewise.
28045         * modules/pread-tests (Makefile.am): Likewise.
28046         * modules/printf-posix-tests (Makefile.am): Likewise.
28047         * modules/select-tests (Makefile.am): Likewise.
28048         * modules/sigpipe-tests (Makefile.am): Likewise.
28049         * modules/tsearch-tests (Makefile.am): Likewise.
28050         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28051         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28052         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28053         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28054         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28055         * modules/version-etc-tests (Makefile.am): Likewise.
28056         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28057         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28058         * modules/xalloc-die-tests (Makefile.am): Likewise.
28059         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28060         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28061         * modules/xstrtol-tests (Makefile.am): Likewise.
28062         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28063         * modules/yesno-tests (Makefile.am): Likewise.
28064         Suggested by Jim Meyering.
28065
28066 2010-01-24  Bruno Haible  <bruno@clisp.org>
28067
28068         More documentation.
28069         * doc/gnulib.texi (Writing modules): New chapter.
28070         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28071         the new chapter.
28072
28073 2010-01-24  Jim Meyering  <meyering@redhat.com>
28074
28075         maint.mk: do not prepend "./" after filtering
28076         * top/maint.mk (_prepend_srcdir_prefix): New variable
28077         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28078         "./" when $(srcdir) is ".".
28079
28080         define STREQ(a,b) consistently, removing useless parentheses
28081         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28082         since the only risk is that "a" or "b" contains an unparenthesized
28083         comma, but if either did that, STREQ would have 3 or more arguments.
28084         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28085         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28086         * lib/hash-triple.c (STREQ): Likewise.
28087         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28088         * lib/getugroups.c (STREQ): Likewise.
28089
28090 2010-01-23  Jim Meyering  <meyering@redhat.com>
28091
28092         maint.mk: fix syntax-check in a non-srcdir build directory
28093         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28094         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28095
28096 2010-01-22  Jim Meyering  <meyering@redhat.com>
28097
28098         userspec: add unit tests
28099         * tests/test-userspec.c: New file.
28100         * modules/userspec-tests: Likewise.
28101
28102 2010-01-21  Jim Meyering  <meyering@redhat.com>
28103
28104         maint.mk: handle source file names containing "." robustly
28105         * top/maint.mk (_dot_escaped_srcdir): Define.
28106         (VC_LIST): Use it in LHS of sed substitution.
28107
28108 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28109
28110         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28111         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28112         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28113         from a non-srcdir build.
28114
28115 2010-01-20  Eric Blake  <ebb9@byu.net>
28116
28117         warn-on-use: use instead of link-warning
28118         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28119         * modules/unistd (Depends-on, Makefile.am): Likewise.
28120         * modules/arpa_inet (Depends-on): Replace link-warning with
28121         warn-on-use.
28122         (Makefile.am): Update rules accordingly.
28123         * modules/ctype (Depends-on, Makefile.am): Likewise.
28124         * modules/dirent (Depends-on, Makefile.am): Likewise.
28125         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28126         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28127         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28128         * modules/locale (Depends-on, Makefile.am): Likewise.
28129         * modules/math (Depends-on, Makefile.am): Likewise.
28130         * modules/search (Depends-on, Makefile.am): Likewise.
28131         * modules/signal (Depends-on, Makefile.am): Likewise.
28132         * modules/spawn (Depends-on, Makefile.am): Likewise.
28133         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28134         * modules/string (Depends-on, Makefile.am): Likewise.
28135         * modules/strings (Depends-on, Makefile.am): Likewise.
28136         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28137         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28138         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28139         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28140         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28141         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28142         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28143         * modules/wchar (Depends-on, Makefile.am): Likewise.
28144         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28145         should be poisoned.
28146         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28147         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28148         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28149         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28150         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28151         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28152         * m4/math_h.m4 (gl_MATH_H): Likewise.
28153         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28154         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28155         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28156         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28157         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28158         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28159         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28160         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28161         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28163         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28164         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28165         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28166         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28167         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28168         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28169         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28170         GL_LINK_WARNING.
28171         * lib/ctype.in.h: Likewise.
28172         * lib/dirent.in.h: Likewise.
28173         * lib/fcntl.in.h: Likewise.
28174         * lib/inttypes.in.h: Likewise.
28175         * lib/langinfo.in.h: Likewise.
28176         * lib/locale.in.h: Likewise.
28177         * lib/math.in.h: Likewise.
28178         * lib/search.in.h: Likewise.
28179         * lib/signal.in.h: Likewise.
28180         * lib/spawn.in.h: Likewise.
28181         * lib/stdio.in.h: Likewise.
28182         * lib/stdlib.in.h: Likewise.
28183         * lib/string.in.h: Likewise.
28184         * lib/strings.in.h: Likewise.
28185         * lib/sys_file.in.h: Likewise.
28186         * lib/sys_ioctl.in.h: Likewise.
28187         * lib/sys_select.in.h: Likewise.
28188         * lib/sys_socket.in.h: Likewise.
28189         * lib/sys_stat.in.h: Likewise.
28190         * lib/sys_times.in.h: Likewise.
28191         * lib/sys_utsname.in.h: Likewise.
28192         * lib/unistd.in.h: Likewise.
28193         * lib/wchar.in.h: Likewise.
28194
28195 2010-01-20  Bruno Haible  <bruno@clisp.org>
28196
28197         Avoid duplicate -lm.
28198         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28199         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28200         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28201         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28202         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28203         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28204         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28205         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28206         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28207         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28208         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28209         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28210         Reported by Paolo Bonzini.
28211
28212 2010-01-19  Bruno Haible  <bruno@clisp.org>
28213
28214         langinfo, nl_langinfo: Relicense under LGPLv2+.
28215         * modules/langinfo (License): Change to LGPLv2+.
28216         * modules/nl_langinfo (License): Likewise.
28217         Patch by David Lutterkort <lutter@redhat.com>.
28218
28219 2010-01-19  Bruno Haible  <bruno@clisp.org>
28220
28221         Avoid compilation error with cc on OSF/1 5.1.
28222         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28223         statement, not before.
28224         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28225
28226 2010-01-18  Bruno Haible  <bruno@clisp.org>
28227
28228         Avoid a link error due to the __printf__ symbol.
28229         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28230         and 2.6.x.
28231         (__format__, __printf__): Remove definitions.
28232         * lib/argp-fmtstream.h: Likewise.
28233         * lib/argp.h: Likewise.
28234         * lib/error.h: Likewise.
28235         * lib/vasnprintf.h: Likewise.
28236         * lib/xprintf.h: Likewise.
28237         * lib/xvasprintf.h: Likewise.
28238         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28239
28240 2010-01-18  Bruno Haible  <bruno@clisp.org>
28241
28242         Tests for module 'tanl'.
28243         * modules/tanl-tests: New file.
28244         * tests/test-tanl.c: New file.
28245
28246         Tests for module 'sqrtl'.
28247         * modules/sqrtl-tests: New file.
28248         * tests/test-sqrtl.c: New file.
28249
28250         Tests for module 'sinl'.
28251         * modules/sinl-tests: New file.
28252         * tests/test-sinl.c: New file.
28253
28254         Tests for module 'logl'.
28255         * modules/logl-tests: New file.
28256         * tests/test-logl.c: New file.
28257
28258         Tests for module 'expl'.
28259         * modules/expl-tests: New file.
28260         * tests/test-expl.c: New file.
28261
28262         Tests for module 'cosl'.
28263         * modules/cosl-tests: New file.
28264         * tests/test-cosl.c: New file.
28265
28266         Tests for module 'atanl'.
28267         * modules/atanl-tests: New file.
28268         * tests/test-atanl.c: New file.
28269
28270         Tests for module 'asinl'.
28271         * modules/asinl-tests: New file.
28272         * tests/test-asinl.c: New file.
28273
28274         Tests for module 'acosl'.
28275         * modules/acosl-tests: New file.
28276         * tests/test-acosl.c: New file.
28277
28278         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28279         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28280         tanl): Use the standard gnulib idiom.
28281         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28282         * lib/sinl.c: Likewise.
28283         * lib/tanl.c: Don't include trigl.c.
28284         (kernel_tanl): Make static.
28285         * lib/sincosl.c: Include trigl.h first.
28286         * lib/trigl.c: Likewise.
28287         * m4/acosl.m4: New file.
28288         * m4/asinl.m4: New file.
28289         * m4/atanl.m4: New file.
28290         * m4/cosl.m4: New file.
28291         * m4/expl.m4: New file.
28292         * m4/logl.m4: New file.
28293         * m4/sinl.m4: New file.
28294         * m4/sqrtl.m4: New file.
28295         * m4/tanl.m4: New file.
28296         * m4/mathl.m4: Remove file.
28297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28298         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28299         Don't initialize GNULIB_MATHL.
28300         * modules/acosl: New file.
28301         * modules/asinl: New file.
28302         * modules/atanl: New file.
28303         * modules/cosl: New file.
28304         * modules/expl: New file.
28305         * modules/logl: New file.
28306         * modules/sinl: New file.
28307         * modules/sqrtl: New file.
28308         * modules/tanl: New file.
28309         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28310         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28311         substitute GNULIB_MATHL.
28312         * modules/mathl: Rewritten.
28313         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28314         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28315         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28316         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28317         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28318         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28319         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28320         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28321         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28322
28323 2010-01-18  Bruno Haible  <bruno@clisp.org>
28324
28325         sqrt: Make gl_FUNC_SQRT requirable.
28326         * m4/sqrt.m4: New file.
28327         * modules/sqrt (Files): Add it.
28328         (configure.ac): Invoke gl_FUNC_SQRT.
28329
28330 2010-01-18  Bruno Haible  <bruno@clisp.org>
28331
28332         New modules for common <math.h> functions.
28333         * m4/mathfunc.m4: New file.
28334         * modules/acos: New file.
28335         * modules/asin: New file.
28336         * modules/atan: New file.
28337         * modules/atan2: New file.
28338         * modules/cbrt: New file.
28339         * modules/copysign: New file.
28340         * modules/cos: New file.
28341         * modules/cosh: New file.
28342         * modules/erf: New file.
28343         * modules/erfc: New file.
28344         * modules/exp: New file.
28345         * modules/fabs: New file.
28346         * modules/fmod: New file.
28347         * modules/hypot: New file.
28348         * modules/j0: New file.
28349         * modules/j1: New file.
28350         * modules/jn: New file.
28351         * modules/ldexp: New file.
28352         * modules/lgamma: New file.
28353         * modules/log: New file.
28354         * modules/log10: New file.
28355         * modules/log1p: New file.
28356         * modules/logb: New file.
28357         * modules/modf: New file.
28358         * modules/nextafter: New file.
28359         * modules/pow: New file.
28360         * modules/remainder: New file.
28361         * modules/rint: New file.
28362         * modules/sin: New file.
28363         * modules/sinh: New file.
28364         * modules/sqrt: New file.
28365         * modules/tan: New file.
28366         * modules/tanh: New file.
28367         * modules/y0: New file.
28368         * modules/y1: New file.
28369         * modules/yn: New file.
28370         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28371         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28372         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28373         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28374         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28375         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28376         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28377         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28378         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28379         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28380         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28381         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28382         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28383         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28384         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28385         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28386         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28387         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28388         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28389         * doc/posix-functions/log.texi: Mention the 'log' module.
28390         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28391         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28392         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28393         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28394         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28395         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28396         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28397         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28398         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28399         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28400         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28401         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28402         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28403         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28404         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28405         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28406
28407 2010-01-18  Jim Meyering  <meyering@redhat.com>
28408
28409         ignore-value: relax license to LGPLv2+
28410         * modules/ignore-value (License): Relax to LGPLv2+.
28411
28412         getdate: don't leak when TZ contains two or more '"'s
28413         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28414         double quote in TZ after the first one.
28415
28416         readtokens: do not leak internal token_lengths buffer
28417         * lib/readtokens.c (readtokens): Free the local, lengths,
28418         when the supplied "token_lengths" parameter is NULL.
28419
28420 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28421
28422         Fix a couple of missing LIBTHREAD link failures on AIX.
28423         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28424         $(LIBTHREAD).
28425         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28426
28427         Link test-poll against INET_PTON_LIB.
28428         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28429         for inet_pton on Solaris 10.
28430
28431 2010-01-17  Bruno Haible  <bruno@clisp.org>
28432
28433         unistdio/*-sprintf: Fix typo in module description.
28434         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28435         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28436         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28437         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28438         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28439         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28440         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28441         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28442
28443 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28444
28445         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28446         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28447         variables in shell case patterns, for AIX and HP-UX ksh.
28448
28449         Split large sed scripts, for HP-UX sed.
28450         * modules/stdio: Split sed scripts around 50 sed commands,
28451         to avoid HP-UX limit of 99 commands, in the near future.
28452         * modules/string: Likewise.
28453         * modules/unistd: Likewise.
28454
28455         gnulib-tool: avoid writing in the current directory.
28456         * gnulib-tool (func_emit_lib_Makefile_am)
28457         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28458         not in the current directory, so concurrent gnulib-tool
28459         instances do not interfere.
28460
28461 2010-01-16  Jim Meyering  <meyering@redhat.com>
28462
28463         doc: update users.txt
28464         * users.txt: Add grep.
28465         (diffutils, gzip): Update URLs.
28466
28467 2010-01-12  Bruno Haible  <bruno@clisp.org>
28468
28469         posix_spawn: Avoid test failure on Cygwin.
28470         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28471         characters.
28472         Reported by Simon Josefsson.
28473
28474 2010-01-12  Bruno Haible  <bruno@clisp.org>
28475
28476         * tests/test-cond.c (main): When skipping the test, show the reason.
28477
28478 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28479
28480         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28481
28482 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28483
28484         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28485         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28486
28487 2010-01-12  Eric Blake  <ebb9@byu.net>
28488
28489         build: guarantee AS_VAR_IF
28490         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28491         (gl_AS_VAR_IF): Move...
28492         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28493         Reported by Simon Josefsson.
28494
28495 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28496
28497         * lib/stdio.in.h: Fix typo.
28498
28499 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28500
28501         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28502         libgpg-error.
28503
28504 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28505
28506         * tests/test-xalloc-die.sh: Use $EXEEXT.
28507
28508 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28509             Bruno Haible  <bruno@clisp.org>
28510
28511         getlogin, getlogin_r: Avoid test failure.
28512         * tests/test-getlogin.c: Include <stdio.h>.
28513         (main): Skip the test when the function fails because stdin is not a
28514         tty.
28515         * tests/test-getlogin_r.c: Include <stdio.h>.
28516         (main): Skip the test when the function fails because stdin is not a
28517         tty.
28518
28519 2010-01-11  Eric Blake  <ebb9@byu.net>
28520
28521         tests: avoid more large file warnings
28522         * tests/test-fflush.c: Avoid warning about ftell use.
28523         * tests/test-fseek.c: Avoid warning about fseek use.
28524
28525 2010-01-10  Bruno Haible  <bruno@clisp.org>
28526
28527         nproc: Work better on Linux when /proc and /sys are not mounted.
28528         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28529         as lower bound when, on glibc/Linux systems,
28530         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28531         Suggested by Pádraig Brady <P@draigbrady.com>.
28532         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28533
28534         nproc: Refactor.
28535         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28536         extracted from num_processors.
28537         (num_processors): Call it.
28538
28539 2010-01-11  Jim Meyering  <meyering@redhat.com>
28540
28541         utimecmp: avoid new warning from upcoming gcc-4.5.0
28542         * lib/utimecmp.c (BILLION): Define using #define rather than an
28543         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28544
28545 2010-01-11  Eric Blake  <ebb9@byu.net>
28546
28547         math: add portability warnings for classification macros
28548         * modules/math (Depends-on): Add warn-on-use.
28549         (Makefile.am): Provide new substitutions.
28550         * m4/math_h.m4 (gl_MATH_H): Require inline.
28551         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28552         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28553         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28554         implement warnings.
28555
28556         unistd: warn on use of environ without module
28557         * modules/unistd (Depends-on): Add warn-on-use.
28558         (Makefile.am): Provide new substitutions.
28559         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28560         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28561
28562         stdio: warn on suspicious uses
28563         * modules/stdio (Depends-on): Add warn-on-use.
28564         (Makefile.am): Provide new substitutions.
28565         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28566         fseeko.
28567         * lib/stdio.in.h (gets): Always warn on use.
28568         (fseek, ftell): Adjust when warnings are issued, and honor
28569         _GL_NO_LARGE_FILES as a way to silence the warning.
28570         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28571         any warning about large file offsets.
28572         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28573         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28574         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28575         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28576         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28577         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28578         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28579         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28580
28581         warn-on-use: new module
28582         * modules/warn-on-use: New file.
28583         * build-aux/warn-on-use.h: Likewise.
28584         * m4/warn-on-use.m4: Likewise.
28585         * MODULES.html.sh (Support for building): Mention it.
28586
28587 2010-01-10  Bruno Haible  <bruno@clisp.org>
28588
28589         Tests for module 'unistr/u32-strdup'.
28590         * modules/unistr/u32-strdup-tests: New file.
28591         * tests/unistr/test-u32-strdup.c: New file.
28592
28593         Tests for module 'unistr/u16-strdup'.
28594         * modules/unistr/u16-strdup-tests: New file.
28595         * tests/unistr/test-u16-strdup.c: New file.
28596
28597         Tests for module 'unistr/u8-strdup'.
28598         * modules/unistr/u8-strdup-tests: New file.
28599         * tests/unistr/test-u8-strdup.c: New file.
28600         * tests/unistr/test-strdup.h: New file.
28601
28602         Tests for module 'unistr/u32-strncmp'.
28603         * modules/unistr/u32-strncmp-tests: New file.
28604         * tests/unistr/test-u32-strncmp.c: New file.
28605
28606         Tests for module 'unistr/u16-strncmp'.
28607         * modules/unistr/u16-strncmp-tests: New file.
28608         * tests/unistr/test-u16-strncmp.c: New file.
28609
28610         Tests for module 'unistr/u8-strncmp'.
28611         * modules/unistr/u8-strncmp-tests: New file.
28612         * tests/unistr/test-u8-strncmp.c: New file.
28613         * tests/unistr/test-strncmp.h: New file.
28614
28615         Tests for module 'unistr/u32-strcoll'.
28616         * modules/unistr/u32-strcoll-tests: New file.
28617         * tests/unistr/test-u32-strcoll.c: New file.
28618
28619         Tests for module 'unistr/u16-strcoll'.
28620         * modules/unistr/u16-strcoll-tests: New file.
28621         * tests/unistr/test-u16-strcoll.c: New file.
28622
28623         Tests for module 'unistr/u8-strcoll'.
28624         * modules/unistr/u8-strcoll-tests: New file.
28625         * tests/unistr/test-u8-strcoll.c: New file.
28626
28627         Tests for module 'unistr/u32-strcmp'.
28628         * modules/unistr/u32-strcmp-tests: New file.
28629         * tests/unistr/test-u32-strcmp.c: New file.
28630         * tests/unistr/test-u32-strcmp.h: New file.
28631
28632         Tests for module 'unistr/u16-strcmp'.
28633         * modules/unistr/u16-strcmp-tests: New file.
28634         * tests/unistr/test-u16-strcmp.c: New file.
28635         * tests/unistr/test-u16-strcmp.h: New file.
28636
28637         Tests for module 'unistr/u8-strcmp'.
28638         * modules/unistr/u8-strcmp-tests: New file.
28639         * tests/unistr/test-u8-strcmp.c: New file.
28640         * tests/unistr/test-u8-strcmp.h: New file.
28641         * tests/unistr/test-strcmp.h: New file.
28642
28643         Tests for module 'unistr/u32-strncat'.
28644         * modules/unistr/u32-strncat-tests: New file.
28645         * tests/unistr/test-u32-strncat.c: New file.
28646
28647         Tests for module 'unistr/u16-strncat'.
28648         * modules/unistr/u16-strncat-tests: New file.
28649         * tests/unistr/test-u16-strncat.c: New file.
28650
28651         Tests for module 'unistr/u8-strncat'.
28652         * modules/unistr/u8-strncat-tests: New file.
28653         * tests/unistr/test-u8-strncat.c: New file.
28654         * tests/unistr/test-strncat.h: New file.
28655
28656         Tests for module 'unistr/u32-strcat'.
28657         * modules/unistr/u32-strcat-tests: New file.
28658         * tests/unistr/test-u32-strcat.c: New file.
28659
28660         Tests for module 'unistr/u16-strcat'.
28661         * modules/unistr/u16-strcat-tests: New file.
28662         * tests/unistr/test-u16-strcat.c: New file.
28663
28664         Tests for module 'unistr/u8-strcat'.
28665         * modules/unistr/u8-strcat-tests: New file.
28666         * tests/unistr/test-u8-strcat.c: New file.
28667         * tests/unistr/test-strcat.h: New file.
28668
28669         Tests for module 'unistr/u32-stpncpy'.
28670         * modules/unistr/u32-stpncpy-tests: New file.
28671         * tests/unistr/test-u32-stpncpy.c: New file.
28672
28673         Tests for module 'unistr/u16-stpncpy'.
28674         * modules/unistr/u16-stpncpy-tests: New file.
28675         * tests/unistr/test-u16-stpncpy.c: New file.
28676
28677         Tests for module 'unistr/u8-stpncpy'.
28678         * modules/unistr/u8-stpncpy-tests: New file.
28679         * tests/unistr/test-u8-stpncpy.c: New file.
28680         * tests/unistr/test-stpncpy.h: New file.
28681
28682         Tests for module 'unistr/u32-strncpy'.
28683         * modules/unistr/u32-strncpy-tests: New file.
28684         * tests/unistr/test-u32-strncpy.c: New file.
28685
28686         Tests for module 'unistr/u16-strncpy'.
28687         * modules/unistr/u16-strncpy-tests: New file.
28688         * tests/unistr/test-u16-strncpy.c: New file.
28689
28690         Tests for module 'unistr/u8-strncpy'.
28691         * modules/unistr/u8-strncpy-tests: New file.
28692         * tests/unistr/test-u8-strncpy.c: New file.
28693         * tests/unistr/test-strncpy.h: New file.
28694
28695         Tests for module 'unistr/u32-stpcpy'.
28696         * modules/unistr/u32-stpcpy-tests: New file.
28697         * tests/unistr/test-u32-stpcpy.c: New file.
28698
28699         Tests for module 'unistr/u16-stpcpy'.
28700         * modules/unistr/u16-stpcpy-tests: New file.
28701         * tests/unistr/test-u16-stpcpy.c: New file.
28702
28703         Tests for module 'unistr/u8-stpcpy'.
28704         * modules/unistr/u8-stpcpy-tests: New file.
28705         * tests/unistr/test-u8-stpcpy.c: New file.
28706         * tests/unistr/test-stpcpy.h: New file.
28707
28708         Tests for module 'unistr/u32-strcpy'.
28709         * modules/unistr/u32-strcpy-tests: New file.
28710         * tests/unistr/test-u32-strcpy.c: New file.
28711
28712         Tests for module 'unistr/u16-strcpy'.
28713         * modules/unistr/u16-strcpy-tests: New file.
28714         * tests/unistr/test-u16-strcpy.c: New file.
28715
28716         Tests for module 'unistr/u8-strcpy'.
28717         * modules/unistr/u8-strcpy-tests: New file.
28718         * tests/unistr/test-u8-strcpy.c: New file.
28719         * tests/unistr/test-strcpy.h: New file.
28720
28721         Tests for module 'unistr/u32-strnlen'.
28722         * modules/unistr/u32-strnlen-tests: New file.
28723         * tests/unistr/test-u32-strnlen.c: New file.
28724
28725         Tests for module 'unistr/u16-strnlen'.
28726         * modules/unistr/u16-strnlen-tests: New file.
28727         * tests/unistr/test-u16-strnlen.c: New file.
28728
28729         Tests for module 'unistr/u8-strnlen'.
28730         * modules/unistr/u8-strnlen-tests: New file.
28731         * tests/unistr/test-u8-strnlen.c: New file.
28732         * tests/unistr/test-strnlen.h: New file.
28733
28734         Tests for module 'unistr/u32-strlen'.
28735         * modules/unistr/u32-strlen-tests: New file.
28736         * tests/unistr/test-u32-strlen.c: New file.
28737
28738         Tests for module 'unistr/u16-strlen'.
28739         * modules/unistr/u16-strlen-tests: New file.
28740         * tests/unistr/test-u16-strlen.c: New file.
28741
28742         Tests for module 'unistr/u8-strlen'.
28743         * modules/unistr/u8-strlen-tests: New file.
28744         * tests/unistr/test-u8-strlen.c: New file.
28745
28746         Tests for module 'unistr/u32-prev'.
28747         * modules/unistr/u32-prev-tests: New file.
28748         * tests/unistr/test-u32-prev.c: New file.
28749
28750         Tests for module 'unistr/u16-prev'.
28751         * modules/unistr/u16-prev-tests: New file.
28752         * tests/unistr/test-u16-prev.c: New file.
28753
28754         Tests for module 'unistr/u8-prev'.
28755         * modules/unistr/u8-prev-tests: New file.
28756         * tests/unistr/test-u8-prev.c: New file.
28757
28758         Tests for module 'unistr/u32-next'.
28759         * modules/unistr/u32-next-tests: New file.
28760         * tests/unistr/test-u32-next.c: New file.
28761
28762         Tests for module 'unistr/u16-next'.
28763         * modules/unistr/u16-next-tests: New file.
28764         * tests/unistr/test-u16-next.c: New file.
28765
28766         Tests for module 'unistr/u8-next'.
28767         * modules/unistr/u8-next-tests: New file.
28768         * tests/unistr/test-u8-next.c: New file.
28769
28770         Tests for module 'unistr/u32-strmbtouc'.
28771         * modules/unistr/u32-strmbtouc-tests: New file.
28772         * tests/unistr/test-u32-strmbtouc.c: New file.
28773
28774         Tests for module 'unistr/u16-strmbtouc'.
28775         * modules/unistr/u16-strmbtouc-tests: New file.
28776         * tests/unistr/test-u16-strmbtouc.c: New file.
28777
28778         Tests for module 'unistr/u8-strmbtouc'.
28779         * modules/unistr/u8-strmbtouc-tests: New file.
28780         * tests/unistr/test-u8-strmbtouc.c: New file.
28781
28782         Tests for module 'unistr/u32-strmblen'.
28783         * modules/unistr/u32-strmblen-tests: New file.
28784         * tests/unistr/test-u32-strmblen.c: New file.
28785
28786         Tests for module 'unistr/u16-strmblen'.
28787         * modules/unistr/u16-strmblen-tests: New file.
28788         * tests/unistr/test-u16-strmblen.c: New file.
28789
28790         Tests for module 'unistr/u8-strmblen'.
28791         * modules/unistr/u8-strmblen-tests: New file.
28792         * tests/unistr/test-u8-strmblen.c: New file.
28793
28794         Tests for module 'unistr/u32-cpy-alloc'.
28795         * modules/unistr/u32-cpy-alloc-tests: New file.
28796         * tests/unistr/test-u32-cpy-alloc.c: New file.
28797
28798         Tests for module 'unistr/u16-cpy-alloc'.
28799         * modules/unistr/u16-cpy-alloc-tests: New file.
28800         * tests/unistr/test-u16-cpy-alloc.c: New file.
28801
28802         Tests for module 'unistr/u8-cpy-alloc'.
28803         * modules/unistr/u8-cpy-alloc-tests: New file.
28804         * tests/unistr/test-u8-cpy-alloc.c: New file.
28805         * tests/unistr/test-cpy-alloc.h: New file.
28806
28807         Tests for module 'unistr/u32-mbsnlen'.
28808         * modules/unistr/u32-mbsnlen-tests: New file.
28809         * tests/unistr/test-u32-mbsnlen.c: New file.
28810
28811         Tests for module 'unistr/u16-mbsnlen'.
28812         * modules/unistr/u16-mbsnlen-tests: New file.
28813         * tests/unistr/test-u16-mbsnlen.c: New file.
28814
28815         Tests for module 'unistr/u8-mbsnlen'.
28816         * modules/unistr/u8-mbsnlen-tests: New file.
28817         * tests/unistr/test-u8-mbsnlen.c: New file.
28818
28819         Tests for module 'unistr/u32-chr'.
28820         * modules/unistr/u32-chr-tests: New file.
28821         * tests/unistr/test-u32-chr.c: New file.
28822
28823         Tests for module 'unistr/u16-chr'.
28824         * modules/unistr/u16-chr-tests: New file.
28825         * tests/unistr/test-u16-chr.c: New file.
28826
28827         Tests for module 'unistr/u8-chr'.
28828         * modules/unistr/u8-chr-tests: New file.
28829         * tests/unistr/test-u8-chr.c: New file.
28830         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28831
28832         Tests for module 'unistr/u32-cmp2'.
28833         * modules/unistr/u32-cmp2-tests: New file.
28834         * tests/unistr/test-u32-cmp2.c: New file.
28835
28836         Tests for module 'unistr/u16-cmp2'.
28837         * modules/unistr/u16-cmp2-tests: New file.
28838         * tests/unistr/test-u16-cmp2.c: New file.
28839
28840         Tests for module 'unistr/u8-cmp2'.
28841         * modules/unistr/u8-cmp2-tests: New file.
28842         * tests/unistr/test-u8-cmp2.c: New file.
28843         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28844
28845         Tests for module 'unistr/u32-cmp'.
28846         * modules/unistr/u32-cmp-tests: New file.
28847         * tests/unistr/test-u32-cmp.c: New file.
28848
28849         Tests for module 'unistr/u16-cmp'.
28850         * modules/unistr/u16-cmp-tests: New file.
28851         * tests/unistr/test-u16-cmp.c: New file.
28852
28853         Tests for module 'unistr/u8-cmp'.
28854         * modules/unistr/u8-cmp-tests: New file.
28855         * tests/unistr/test-u8-cmp.c: New file.
28856         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28857
28858         Tests for module 'unistr/u32-set'.
28859         * modules/unistr/u32-set-tests: New file.
28860         * tests/unistr/test-u32-set.c: New file.
28861
28862         Tests for module 'unistr/u16-set'.
28863         * modules/unistr/u16-set-tests: New file.
28864         * tests/unistr/test-u16-set.c: New file.
28865
28866         Tests for module 'unistr/u8-set'.
28867         * modules/unistr/u8-set-tests: New file.
28868         * tests/unistr/test-u8-set.c: New file.
28869         * tests/unistr/test-set.h: New file.
28870
28871         Tests for module 'unistr/u32-move'.
28872         * modules/unistr/u32-move-tests: New file.
28873         * tests/unistr/test-u32-move.c: New file.
28874
28875         Tests for module 'unistr/u16-move'.
28876         * modules/unistr/u16-move-tests: New file.
28877         * tests/unistr/test-u16-move.c: New file.
28878
28879         Tests for module 'unistr/u8-move'.
28880         * modules/unistr/u8-move-tests: New file.
28881         * tests/unistr/test-u8-move.c: New file.
28882         * tests/unistr/test-move.h: New file.
28883
28884         Tests for module 'unistr/u32-cpy'.
28885         * modules/unistr/u32-cpy-tests: New file.
28886         * tests/unistr/test-u32-cpy.c: New file.
28887
28888         Tests for module 'unistr/u16-cpy'.
28889         * modules/unistr/u16-cpy-tests: New file.
28890         * tests/unistr/test-u16-cpy.c: New file.
28891
28892         Tests for module 'unistr/u8-cpy'.
28893         * modules/unistr/u8-cpy-tests: New file.
28894         * tests/unistr/test-u8-cpy.c: New file.
28895         * tests/unistr/test-cpy.h: New file.
28896
28897 2010-01-09  Bruno Haible  <bruno@clisp.org>
28898
28899         Tests for module 'unistr/u32-uctomb'.
28900         * modules/unistr/u32-uctomb-tests: New file.
28901         * tests/unistr/test-u32-uctomb.c: New file.
28902
28903         Tests for module 'unistr/u16-uctomb'.
28904         * modules/unistr/u16-uctomb-tests: New file.
28905         * tests/unistr/test-u16-uctomb.c: New file.
28906
28907         Tests for module 'unistr/u8-uctomb'.
28908         * modules/unistr/u8-uctomb-tests: New file.
28909         * tests/unistr/test-u8-uctomb.c: New file.
28910
28911         Tests for module 'unistr/u32-mbtoucr'.
28912         * modules/unistr/u32-mbtoucr-tests: New file.
28913         * tests/unistr/test-u32-mbtoucr.c: New file.
28914
28915         Tests for module 'unistr/u16-mbtoucr'.
28916         * modules/unistr/u16-mbtoucr-tests: New file.
28917         * tests/unistr/test-u16-mbtoucr.c: New file.
28918
28919         Tests for module 'unistr/u8-mbtoucr'.
28920         * modules/unistr/u8-mbtoucr-tests: New file.
28921         * tests/unistr/test-u8-mbtoucr.c: New file.
28922
28923         Tests for module 'unistr/u32-mbtouc'.
28924         * modules/unistr/u32-mbtouc-tests: New file.
28925         * tests/unistr/test-u32-mbtouc.c: New file.
28926
28927         Tests for module 'unistr/u16-mbtouc'.
28928         * modules/unistr/u16-mbtouc-tests: New file.
28929         * tests/unistr/test-u16-mbtouc.c: New file.
28930
28931         Tests for module 'unistr/u8-mbtouc'.
28932         * modules/unistr/u8-mbtouc-tests: New file.
28933         * tests/unistr/test-u8-mbtouc.c: New file.
28934
28935         Tests for module 'unistr/u32-mbtouc-unsafe'.
28936         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28937         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28938         * tests/unistr/test-u32-mbtouc.h: New file.
28939
28940         Tests for module 'unistr/u16-mbtouc-unsafe'.
28941         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28942         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28943         * tests/unistr/test-u16-mbtouc.h: New file.
28944
28945         Tests for module 'unistr/u8-mbtouc-unsafe'.
28946         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28947         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28948         * tests/unistr/test-u8-mbtouc.h: New file.
28949
28950         Tests for module 'unistr/u32-mblen'.
28951         * modules/unistr/u32-mblen-tests: New file.
28952         * tests/unistr/test-u32-mblen.c: New file.
28953
28954         Tests for module 'unistr/u16-mblen'.
28955         * modules/unistr/u16-mblen-tests: New file.
28956         * tests/unistr/test-u16-mblen.c: New file.
28957
28958         Tests for module 'unistr/u8-mblen'.
28959         * modules/unistr/u8-mblen-tests: New file.
28960         * tests/unistr/test-u8-mblen.c: New file.
28961
28962         Tests for module 'unistr/u32-to-u16'.
28963         * modules/unistr/u32-to-u16-tests: New file.
28964         * tests/unistr/test-u32-to-u16.c: New file.
28965
28966         Tests for module 'unistr/u32-to-u8'.
28967         * modules/unistr/u32-to-u8-tests: New file.
28968         * tests/unistr/test-u32-to-u8.c: New file.
28969
28970         Tests for module 'unistr/u16-to-u32'.
28971         * modules/unistr/u16-to-u32-tests: New file.
28972         * tests/unistr/test-u16-to-u32.c: New file.
28973
28974         Tests for module 'unistr/u16-to-u8'.
28975         * modules/unistr/u16-to-u8-tests: New file.
28976         * tests/unistr/test-u16-to-u8.c: New file.
28977
28978         Tests for module 'unistr/u8-to-u32'.
28979         * modules/unistr/u8-to-u32-tests: New file.
28980         * tests/unistr/test-u8-to-u32.c: New file.
28981
28982         Tests for module 'unistr/u8-to-u16'.
28983         * modules/unistr/u8-to-u16-tests: New file.
28984         * tests/unistr/test-u8-to-u16.c: New file.
28985
28986         Tests for module 'unistr/u32-check'.
28987         * modules/unistr/u32-check-tests: New file.
28988         * tests/unistr/test-u32-check.c: New file.
28989
28990         Tests for module 'unistr/u16-check'.
28991         * modules/unistr/u16-check-tests: New file.
28992         * tests/unistr/test-u16-check.c: New file.
28993
28994         Tests for module 'unistr/u8-check'.
28995         * modules/unistr/u8-check-tests: New file.
28996         * tests/unistr/test-u8-check.c: New file.
28997
28998         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
28999         (category_equals): New function.
29000         (main): Add more tests.
29001         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29002
29003         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29004
29005 2010-01-10  Bruno Haible  <bruno@clisp.org>
29006
29007         unistr/u*-strcoll: Try harder to distinguish different strings.
29008         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29009         compare s1 and s2 to see if they are different.
29010
29011 2010-01-10  Bruno Haible  <bruno@clisp.org>
29012
29013         unistr/u*-stpncpy: Fix the return value.
29014         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29015         description of the return value consistent with stpncpy in glibc.
29016         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29017         written non-NUL unit.
29018
29019 2010-01-10  Bruno Haible  <bruno@clisp.org>
29020
29021         unistr/u*-next: Add missing dependencies.
29022         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29023         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29024         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29025
29026 2010-01-10  Bruno Haible  <bruno@clisp.org>
29027
29028         unistr/u8-mbsnlen: Fix return value for incomplete character.
29029         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29030         u8_mblen.
29031         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29032         Remove unistr/u8-mblen.
29033         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29034         u16_mblen.
29035         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29036         Remove unistr/u16-mblen.
29037
29038 2010-01-10  Bruno Haible  <bruno@clisp.org>
29039
29040         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29041         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29042         Reported by Brian Gough <bjg@gnu.org> and
29043         Chris Clayton <chris2553@googlemail.com> via
29044         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29045
29046 2010-01-09  Bruno Haible  <bruno@clisp.org>
29047
29048         unistr/u16-to-u32: Reject invalid input.
29049         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29050         u16_mbtouc.
29051         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29052         Remove unistr/u16-mbtouc.
29053
29054         unistr/u16-to-u8: Reject invalid input.
29055         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29056         u16_mbtouc.
29057         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29058         Remove unistr/u16-mbtouc.
29059
29060         unistr/u8-to-u32: Reject invalid input.
29061         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29062         u8_mbtouc.
29063         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29064         Remove unistr/u8-mbtouc.
29065
29066         unistr/u8-to-u16: Reject invalid input.
29067         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29068         u8_mbtouc.
29069         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29070         Remove unistr/u8-mbtouc.
29071
29072 2010-01-09  Bruno Haible  <bruno@clisp.org>
29073
29074         Tests for module 'getlogin'.
29075         * modules/getlogin-tests: New file.
29076         * tests/test-getlogin.c: New file.
29077
29078         New module 'getlogin'.
29079         * lib/unistd.in.h (getlogin): New declaration.
29080         * lib/getlogin.c: New file.
29081         * m4/getlogin.m4: New file.
29082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29083         HAVE_GETLOGIN.
29084         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29085         HAVE_GETLOGIN.
29086         * modules/getlogin: New file.
29087         * doc/posix-functions/getlogin.texi: Mention the new module.
29088         Reported by John W. Eaton <jwe@gnu.org>.
29089
29090 2010-01-09  Bruno Haible  <bruno@clisp.org>
29091
29092         getlogin_r: Support for native Windows.
29093         * lib/getlogin_r.c: Include <windows.h>
29094         (getlogin_r): Implement for native Windows.
29095         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29096         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29097         via John W. Eaton <jwe@gnu.org>.
29098
29099 2010-01-09  Bruno Haible  <bruno@clisp.org>
29100
29101         getlogin_r: Small fixes.
29102         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29103         succeeds.
29104         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29105         before testing whether getlogin_r is declared. No need to set
29106         HAVE_DECL_GETLOGIN_R to 1.
29107         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29108
29109 2010-01-09  Bruno Haible  <bruno@clisp.org>
29110
29111         * lib/unistd.in.h (getlogin_r): Add comment.
29112
29113 2010-01-09  Bruno Haible  <bruno@clisp.org>
29114
29115         Tests for module 'getlogin_r'.
29116         * modules/getlogin_r-tests: New file.
29117         * tests/test-getlogin_r.c: New file.
29118
29119 2010-01-09  Jim Meyering  <meyering@redhat.com>
29120
29121         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29122         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29123         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29124
29125 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29126
29127         * lib/dup2.c (rpl_dup2): Improve comment.
29128
29129 2010-01-08  Eric Blake  <ebb9@byu.net>
29130
29131         maint.mk: allow packages to add makefile @@ exceptions
29132         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29133         (sc_makefile_check): Rename...
29134         (sc_makefile_at_at_check): ...to this, and use hook.
29135
29136         dup2: work around mingw bug
29137         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29138         Reported by Simon Josefsson.
29139
29140 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29141
29142         glob: Fix C++ compilation.
29143         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29144         C++.
29145
29146 2010-01-07  Bruno Haible  <bruno@clisp.org>
29147
29148         Fix indentation of wctype.in.h, broken since 2007-01-06.
29149         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29150
29151 2010-01-07  Bruno Haible  <bruno@clisp.org>
29152
29153         mbslen: Avoid collision with system function.
29154         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29155         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29156         * m4/mbslen.m4: New file.
29157         * modules/mbslen (Files): Add it.
29158         (configure.ac): Invoke gl_MBSLEN.
29159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29160         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29161         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29162         via Ian Beckwith <ianb@erislabs.net>.
29163
29164 2010-01-07  Bruno Haible  <bruno@clisp.org>
29165
29166         dirent: Document the last fix.
29167         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29168
29169 2010-01-07  Bruno Haible  <bruno@clisp.org>
29170
29171         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29172         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29173         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29174         va_list are defined.
29175         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29176         Reported by Eric Blake.
29177
29178 2010-01-07  Bruno Haible  <bruno@clisp.org>
29179
29180         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29181         * modules/xlist (Depends-on): Add 'list',
29182         * modules/xoset (Depends-on): Add 'oset'.
29183         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29184
29185 2010-01-07  Bruno Haible  <bruno@clisp.org>
29186
29187         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29188         * doc/posix-functions/strncasecmp.texi: Likewise.
29189
29190 2010-01-07  Bruno Haible  <bruno@clisp.org>
29191
29192         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29193
29194 2010-01-07  John W. Eaton  <jwe@octave.org>
29195
29196         wctype: allow C++ use
29197         * lib/wctype.in.h: Add extern "C" block for C++.
29198
29199 2010-01-06  Eric Blake  <ebb9@byu.net>
29200
29201         maint.mk: detect incorrect GFDL usage
29202         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29203
29204 2010-01-06  Jim Meyering  <meyering@redhat.com>
29205         and Eric Blake  <ebb9@byu.net>
29206
29207         maint.mk: ignore multi-line copyright in NEWS
29208         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29209
29210 2010-01-06  Eric Blake  <ebb9@byu.net>
29211
29212         select: add missing dependency
29213         * modules/select-tests (Depends-on): Move sockets dependency...
29214         * modules/select (Depends-on): ...here.
29215         Reported by Ian Beckwith.
29216
29217         doc: regenerate INSTALL
29218         * doc/INSTALL: Reflect recent autoconf update.
29219         * doc/INSTALL.ISO: Likewise.
29220         * doc/INSTALL.UTF-8: Likewise.
29221
29222         pread: fix compilation on glibc
29223         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29224         Reported by Ralf Wildenhues.
29225
29226         dirent: fix test failure
29227         * lib/dirent.in.h (includes): Guarantee ino_t.
29228         Reported by Ralf Wildenhues.
29229
29230 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29231
29232         linkat, renameat: avoid bad free
29233         * lib/at-func2.c (at_func2): Fix typo.
29234         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29235
29236 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29237
29238         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29239         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29240         to avoid failure of symlink test later.
29241
29242 2010-01-06  Eric Blake  <ebb9@byu.net>
29243
29244         stdio, unistd: guarantee ssize_t
29245         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29246         2008 are exposed when needed.
29247         * lib/stdio.in.h (includes): Likewise.
29248         Reported by Ralf Wildenhues.
29249
29250 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29251
29252         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29253         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29254         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29255
29256 2010-01-06  Jim Meyering  <meyering@redhat.com>
29257
29258         readtokens: this module *does* require xalloc.h
29259         It uses only functions that were omitted by the old syntax-check rule.
29260         * lib/readtokens.c: Include "xalloc.h" once again.
29261         * modules/readtokens (Depends-on): Add xalloc.
29262         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29263
29264 2010-01-05  Eric Blake  <ebb9@byu.net>
29265
29266         maint: support 'make announcement' from a VPATH build
29267         * top/maint.mk (announcement): Look for correct NEWS file.
29268
29269 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29270
29271         utimens (fdutimens): ignore a negative FD, per contract
29272         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29273         when we have a valid file descriptor.  Otherwise, using a brand
29274         new glibc (with just-patched futimens that now fails with EBADF)
29275         would cause this function to fail with ENOSYS.
29276         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29277         See also http://bugzilla.redhat.com/552320.
29278
29279 2010-01-05  Eric Blake  <ebb9@byu.net>
29280
29281         strcase: document what it provides
29282         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29283         gnulib module.
29284         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29285         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29286
29287 2010-01-05  Jim Meyering  <meyering@redhat.com>
29288
29289         maint: remove useless inclusions of "xalloc.h"
29290         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29291         * lib/readtokens.c: Likewise.
29292         * lib/same.c: Likewise.
29293         * modules/getloadavg (Depends-on): Remove xalloc.
29294         * modules/readtokens: Likewise.
29295         * modules/same: Likewise.
29296
29297         maint.mk: include 4 more function names in alloca.h-checking regexp
29298         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29299         regexp.  Before, we would give a false-positive (saying alloca.h
29300         is included unnecessarily) when the only uses involved omitted symbols.
29301
29302         xalloc.h: use consistent formatting
29303         * lib/xalloc.h: Move declarations to start in the first column.
29304
29305 2010-01-05  Eric Blake  <ebb9@byu.net>
29306
29307         mkdir: avoid xalloc
29308         * lib/mkdir.c (includes): Drop unused header.
29309         Reported by John W. Eaton.
29310
29311 2010-01-04  Jim Meyering  <meyering@redhat.com>
29312
29313         nl_langinfo: avoid configure-time syntax error
29314         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29315         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29316         the empty string.  Don't let that provoke a shell syntax error.
29317
29318         regcomp, regexec, fnmatch: avoid array bounds read error
29319         * lib/regcomp.c (build_equiv_class): From glibc:
29320         Use only the low 24 bits of a findidx return value as an index
29321         into the weights array.  Patch by Ulrich Drepper:
29322         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29323         * lib/regexec.c (check_node_accept_bytes): Likewise.
29324         * lib/fnmatch_loop.c (FCT): Likewise.
29325
29326         regcomp: skip collseq lookup when there are no rules
29327         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29328         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29329
29330         regcomp: recognize ill-formed { } expressions
29331         * lib/regcomp.c (parse_dup_op): From glibc:
29332         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29333
29334         regcomp: fix typo in comment
29335         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29336         s/satisfy/satisfies/.
29337
29338         regcomp: sync from glibc: remove dead store
29339         * lib/regcomp.c (duplicate_node_closure): Remove useless
29340         search_duplicated_node call and dead store.
29341
29342         regcomp: sync from glibc; always use nl_langinfo
29343         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29344         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29345         * modules/regex (Depends-on): Add nl_langinfo.
29346
29347 2010-01-04  Eric Blake  <ebb9@byu.net>
29348
29349         fdopendir: fix configure test
29350         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29351
29352 2010-01-01  Bruno Haible  <bruno@clisp.org>
29353
29354         wchar: Remove unused configure check.
29355         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29356
29357 2010-01-01  Eric Blake  <ebb9@byu.net>
29358
29359         headers: make check of system header explicit
29360         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29361         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29362         ourselves.
29363         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29364         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29365         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29366         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29367         internals.
29368         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29369         missing.
29370         Suggested by Bruno Haible.
29371
29372 2010-01-01  Jim Meyering  <meyering@redhat.com>
29373
29374         ChangeLog: tweak to eliminate unnecessary copyright line
29375         * ChangeLog: Remove a copyright line that was mistakenly updated
29376         by today's update-copyright run.  Reported by Eric Blake.
29377
29378         test-update-copyright: don't let envvar setting cause test failure
29379         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29380
29381 2010-01-01  Bruno Haible  <bruno@clisp.org>
29382
29383         localename: Avoid gcc warning.
29384         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29385         function if it is not used.
29386
29387 2010-01-01  Jim Meyering  <meyering@redhat.com>
29388
29389         update nearly all FSF copyright year lists to include 2010
29390         Use the same procedure as for 2009, outlined in
29391         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29392
29393         version-etc: set COPYRIGHT_YEAR to 2010
29394         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29395
29396 2009-12-31  Eric Blake  <ebb9@byu.net>
29397
29398         doc: correct availability of cygwin 1.5.x getopt
29399         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29400         variables.
29401         * doc/posix-functions/opterr.texi (opterr): Likewise.
29402         * doc/posix-functions/optind.texi (optind): Likewise.
29403         * doc/posix-functions/optopt.texi (optopt): Likewise.
29404         * doc/posix-functions/tzname.texi (tzname): Likewise.
29405
29406         openat: update maintainer
29407         * modules/openat (Maintainer): Add myself.
29408
29409         utimens: avoid shadowing warning
29410         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29411         buffers into one, to avoid shadowing, as well as avoiding a
29412         redundant stat.
29413         Reported by Jim Meyering.
29414
29415         test-dup2: avoid compiler warning
29416         * tests/test-dup2.c (is_inheritable): Only define if used.
29417
29418 2010-01-01  Bruno Haible  <bruno@clisp.org>
29419
29420         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29421         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29422         defined, use wctomb instead of wcrtomb.
29423
29424 2010-01-01  Bruno Haible  <bruno@clisp.org>
29425
29426         iconv: Reject native Solaris iconv.
29427         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29428         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29429
29430 2009-12-31  Bruno Haible  <bruno@clisp.org>
29431
29432         * tests/test-signal.c (main): Remove test of 'SIG'.
29433
29434 2009-12-31  Bruno Haible  <bruno@clisp.org>
29435
29436         spawn: Fix incomplete fix.
29437         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29438         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29439         warnings for GNULIB_POSIXCHECK again.
29440         Reported by Eric Blake.
29441
29442 2009-12-31  Bruno Haible  <bruno@clisp.org>
29443
29444         Avoid namespace pollution on glibc systems.
29445         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29446         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29447         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29448         glibc systems.
29449
29450 2009-12-31  Bruno Haible  <bruno@clisp.org>
29451
29452         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29453         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29454         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29455         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29456         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29457         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29458         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29459
29460 2009-12-31  Bruno Haible  <bruno@clisp.org>
29461
29462         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29463         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29464         afterwards.
29465
29466 2009-12-31  Bruno Haible  <bruno@clisp.org>
29467
29468         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29469         SYS_UTSNAME_H.
29470
29471 2009-12-31  Bruno Haible  <bruno@clisp.org>
29472
29473         spawn: Fix misapplied patch.
29474         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29475         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29476         warnings for GNULIB_POSIXCHECK.
29477
29478 2009-12-31  Bruno Haible  <bruno@clisp.org>
29479
29480         times: Update after sys_times changed.
29481         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29482         * modules/times (Files): Add it.
29483         (configure.ac): Invoke gl_FUNC_TIMES.
29484
29485 2009-12-31  Bruno Haible  <bruno@clisp.org>
29486
29487         Use AC_C_INLINE where necessary.
29488         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29489         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29490         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29491         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29492         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29493         * m4/mbiter.m4 (gl_MBITER): Likewise.
29494         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29495         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29496         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29497         * modules/u64 (configure.ac): Likewise.
29498
29499 2009-12-31  Bruno Haible  <bruno@clisp.org>
29500
29501         Use AC_C_INLINE instead of module 'inline' where possible.
29502         * modules/inline (Description): Clarify purpose.
29503         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29504         * modules/count-one-bits (Depends-on): Remove inline.
29505         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29506         * modules/openat (Depends-on): Remove inline.
29507         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29508         instead of depending on module 'inline'.
29509         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29510         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29511         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29512         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29513         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29514         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29515         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29516         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29517         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29518         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29519         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29520         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29521         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29522         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29523         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29524         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29525         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29526         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29527         Likewise.
29528         * modules/unictype/property-ascii-hex-digit (Depends-on,
29529         configure.ac): Likewise.
29530         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29531         configure.ac): Likewise.
29532         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29533         configure.ac): Likewise.
29534         * modules/unictype/property-bidi-block-separator (Depends-on,
29535         configure.ac): Likewise.
29536         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29537         configure.ac): Likewise.
29538         * modules/unictype/property-bidi-common-separator (Depends-on,
29539         configure.ac): Likewise.
29540         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29541         Likewise.
29542         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29543         configure.ac): Likewise.
29544         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29545         configure.ac): Likewise.
29546         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29547         configure.ac): Likewise.
29548         * modules/unictype/property-bidi-european-digit (Depends-on,
29549         configure.ac): Likewise.
29550         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29551         configure.ac): Likewise.
29552         * modules/unictype/property-bidi-left-to-right (Depends-on,
29553         configure.ac): Likewise.
29554         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29555         configure.ac): Likewise.
29556         * modules/unictype/property-bidi-other-neutral (Depends-on,
29557         configure.ac): Likewise.
29558         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29559         Likewise.
29560         * modules/unictype/property-bidi-segment-separator (Depends-on,
29561         configure.ac): Likewise.
29562         * modules/unictype/property-bidi-whitespace (Depends-on,
29563         configure.ac): Likewise.
29564         * modules/unictype/property-combining (Depends-on, configure.ac):
29565         Likewise.
29566         * modules/unictype/property-composite (Depends-on, configure.ac):
29567         Likewise.
29568         * modules/unictype/property-currency-symbol (Depends-on,
29569         configure.ac): Likewise.
29570         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29571         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29572         Likewise.
29573         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29574         configure.ac): Likewise.
29575         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29576         Likewise.
29577         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29578         Likewise.
29579         * modules/unictype/property-extender (Depends-on, configure.ac):
29580         Likewise.
29581         * modules/unictype/property-format-control (Depends-on, configure.ac):
29582         Likewise.
29583         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29584         Likewise.
29585         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29586         Likewise.
29587         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29588         Likewise.
29589         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29590         Likewise.
29591         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29592         Likewise.
29593         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29594         Likewise.
29595         * modules/unictype/property-id-start (Depends-on, configure.ac):
29596         Likewise.
29597         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29598         Likewise.
29599         * modules/unictype/property-ids-binary-operator (Depends-on,
29600         configure.ac): Likewise.
29601         * modules/unictype/property-ids-trinary-operator (Depends-on,
29602         configure.ac): Likewise.
29603         * modules/unictype/property-ignorable-control (Depends-on,
29604         configure.ac): Likewise.
29605         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29606         Likewise.
29607         * modules/unictype/property-join-control (Depends-on, configure.ac):
29608         Likewise.
29609         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29610         Likewise.
29611         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29612         Likewise.
29613         * modules/unictype/property-logical-order-exception (Depends-on,
29614         configure.ac): Likewise.
29615         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29616         Likewise.
29617         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29618         * modules/unictype/property-non-break (Depends-on, configure.ac):
29619         Likewise.
29620         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29621         Likewise.
29622         * modules/unictype/property-numeric (Depends-on, configure.ac):
29623         Likewise.
29624         * modules/unictype/property-other-alphabetic (Depends-on,
29625         configure.ac): Likewise.
29626         * modules/unictype/property-other-default-ignorable-code-point
29627         (Depends-on, configure.ac): Likewise.
29628         * modules/unictype/property-other-grapheme-extend (Depends-on,
29629         configure.ac): Likewise.
29630         * modules/unictype/property-other-id-continue (Depends-on,
29631         configure.ac): Likewise.
29632         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29633         Likewise.
29634         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29635         Likewise.
29636         * modules/unictype/property-other-math (Depends-on, configure.ac):
29637         Likewise.
29638         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29639         Likewise.
29640         * modules/unictype/property-paired-punctuation (Depends-on,
29641         configure.ac): Likewise.
29642         * modules/unictype/property-paragraph-separator (Depends-on,
29643         configure.ac): Likewise.
29644         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29645         Likewise.
29646         * modules/unictype/property-pattern-white-space (Depends-on,
29647         configure.ac): Likewise.
29648         * modules/unictype/property-private-use (Depends-on, configure.ac):
29649         Likewise.
29650         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29651         Likewise.
29652         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29653         Likewise.
29654         * modules/unictype/property-radical (Depends-on, configure.ac):
29655         Likewise.
29656         * modules/unictype/property-sentence-terminal (Depends-on,
29657         configure.ac): Likewise.
29658         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29659         Likewise.
29660         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29661         * modules/unictype/property-terminal-punctuation (Depends-on,
29662         configure.ac): Likewise.
29663         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29664         Likewise.
29665         * modules/unictype/property-unassigned-code-value (Depends-on,
29666         configure.ac): Likewise.
29667         * modules/unictype/property-unified-ideograph (Depends-on,
29668         configure.ac): Likewise.
29669         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29670         Likewise.
29671         * modules/unictype/property-variation-selector (Depends-on,
29672         configure.ac): Likewise.
29673         * modules/unictype/property-white-space (Depends-on, configure.ac):
29674         Likewise.
29675         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29676         Likewise.
29677         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29678         Likewise.
29679         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29680         Likewise.
29681         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29682         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29683         Likewise.
29684
29685 2009-12-31  Bruno Haible  <bruno@clisp.org>
29686
29687         Remove unnecessary AC_C_INLINE invocation.
29688         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29689         since 2009-08-21.
29690
29691 2009-12-31  Jim Meyering  <meyering@redhat.com>
29692
29693         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29694         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29695         With this change, we can all remove the gpg_key_ID = ... definition
29696         from our respective cfg.mk files.
29697
29698         maint.mk: create announcement template in ~/, not in /tmp
29699         * top/maint.mk (emit_upload_commands): Adjust.
29700         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29701         Remove temporary file, .ci-msg.
29702
29703 2009-12-31  Eric Blake  <ebb9@byu.net>
29704
29705         link-warning: always build headers with link warnings
29706         * modules/arpa_inet (Makefile.am): Always build replacement
29707         header.
29708         * modules/ctype (Makefile.am): Likewise.
29709         * modules/dirent (Makefile.am): Likewise.
29710         * modules/inttypes (Makefile.am): Likewise.
29711         * modules/langinfo (Makefile.am): Likewise.
29712         * modules/locale (Makefile.am): Likewise.
29713         * modules/spawn (Makefile.am): Likewise.
29714         * modules/sys_file (Makefile.am): Likewise.
29715         * modules/sys_ioctl (Makefile.am): Likewise.
29716         * modules/sys_select (Makefile.am): Likewise.
29717         * modules/sys_socket (Makefile.am): Likewise.
29718         * modules/sys_times (Makefile.am): Likewise.
29719         * modules/sys_utsname (Makefile.am): Likewise.
29720         * modules/sys_wait (Makefile.am): Likewise.
29721         * modules/wchar (Makefile.am): Likewise.
29722         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29723         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29724         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29725         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29726         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29727         Likewise.
29728         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29729         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29730         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29731         Likewise.
29732         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29733         Likewise.
29734         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29735         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29736         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29737         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29738         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29739         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29740         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29741         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29742         (gl_WCHAR_H_DEFAULTS): Likewise.
29743
29744 2009-12-31  Eric Blake  <ebb9@byu.net>
29745
29746         signal, spawn: use link warnings
29747         * lib/signal.in.h (sigset_t): Make unconditional.
29748         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29749         (sigpending, sigprocmask, sigaction): Add link warnings.
29750         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29751         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29752         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29753         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29754         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29755         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29756         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29757         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29758         (posix_spawn_file_actions_destroy)
29759         (posix_spawn_file_actions_addopen)
29760         (posix_spawn_file_actions_addclose)
29761         (posix_spawn_file_actions_adddup2): Likewise.
29762         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29763         * tests/test-signal.c (main): Enhance test.
29764
29765         spawn: improve wrapper support
29766         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29767         (gl_SPAWN_H_DEFAULTS): New defaults.
29768         * modules/spawn (Makefile.am): Substitute them.
29769         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29770         Only declare if missing or broken.
29771
29772         sys_times, sys_utsname: use include_next
29773         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29774         header.
29775         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29776         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29777         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29778         * modules/sys_times (Depends-on): Add include_next.
29779         (Makefile.am): Substitute additional values.
29780         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29781         * lib/sys_times.in.h (includes): Include native header, if
29782         available.
29783         * lib/sys_utsname.in.h (includes): Likewise.
29784         * tests/test-sys_times.c (main): Enhance test.
29785
29786         fdutimensat: revert prior patch
29787         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29788         utimens.h.
29789         Reported by Bruno Haible.
29790
29791 2009-12-30  Eric Blake  <ebb9@byu.net>
29792
29793         sys_wait: drop link-warning dependency
29794         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29795         link-warning efforts.
29796         * lib/sys_wait.in.h: Likewise.
29797
29798         fdutimensat: remove bogus dependency
29799         * modules/fdutimensat (Depends-on): Drop inline.
29800
29801         unistd: fix typo
29802         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29803
29804 2009-12-30  Bruno Haible  <bruno@clisp.org>
29805
29806         Fix compilation error with Solaris cc.
29807         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29808         * lib/unicase/u16-is-invariant.c: Likewise.
29809         * lib/unicase/u32-is-invariant.c: Likewise.
29810         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29811
29812 2009-12-30  Bruno Haible  <bruno@clisp.org>
29813
29814         Fix test crash.
29815         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29816         locales.
29817         Reported by Simon Josefsson <simon@josefsson.org>.
29818
29819 2009-12-30  Bruno Haible  <bruno@clisp.org>
29820
29821         Fix compilation error on most platforms.
29822         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29823         Reported by Simon Josefsson <simon@josefsson.org>
29824         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29825
29826 2009-12-30  Eric Blake  <ebb9@byu.net>
29827
29828         futimens, utimensat: work around ntfs-3g bug
29829         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29830         a ctime bug is present, and expand workaround to cover ntfs-3g.
29831         * lib/utimens.c (fdutimens, lutimens): Likewise.
29832         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29833         (validate_timespec): Adjust return value.
29834         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29835         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29836         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29837
29838 2009-12-29  Eric Blake  <ebb9@byu.net>
29839
29840         link-warning: make usage consistent
29841         * modules/ctype (Depends-on): Add link-warning.
29842         (Makefile.am): Update rules accordingly.
29843         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29844         * modules/locale (Depends-on, Makefile.am): Likewise.
29845         * modules/sys_file (Makefile.am): Likewise.
29846         * modules/getopt-posix (Makefile.am): Delete unused link warning
29847         efforts.
29848         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29849         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29850         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29851         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29852
29853         stdio: remove unused variables
29854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29855         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29856         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29857
29858         tests: test more substitute headers
29859         * modules/ctype-tests: New file.
29860         * modules/dirent-tests: Likewise.
29861         * modules/spawn-tests: Likewise.
29862         * modules/sys_file-tests: Likewise.
29863         * modules/sys_ioctl-tests: Likewise.
29864         * modules/sys_wait-tests: Likewise.
29865         * tests/test-ctype.c: Likewise.
29866         * tests/test-dirent.c: Likewise.
29867         * tests/test-spawn.c: Likewise.
29868         * tests/test-sys_file.c: Likewise.
29869         * tests/test-sys_ioctl.c: Likewise.
29870         * tests/test-sys_wait.c: Likewise.
29871         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29872         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29873         whether or not flock is in use.
29874
29875         tests: remove License section from module
29876         * modules/arpa_inet-tests: Remove unneeded section.
29877         * modules/byteswap-tests: Likewise.
29878         * modules/ceilf-tests: Likewise.
29879         * modules/ceill-tests: Likewise.
29880         * modules/crypto/des-tests: Likewise.
29881         * modules/crypto/gc-arcfour-tests: Likewise.
29882         * modules/crypto/gc-arctwo-tests: Likewise.
29883         * modules/crypto/gc-des-tests: Likewise.
29884         * modules/crypto/gc-hmac-md5-tests: Likewise.
29885         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29886         * modules/crypto/gc-md2-tests: Likewise.
29887         * modules/crypto/gc-md4-tests: Likewise.
29888         * modules/crypto/gc-md5-tests: Likewise.
29889         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29890         * modules/crypto/gc-rijndael-tests: Likewise.
29891         * modules/crypto/gc-sha1-tests: Likewise.
29892         * modules/crypto/gc-tests: Likewise.
29893         * modules/crypto/md2-tests: Likewise.
29894         * modules/crypto/md4-tests: Likewise.
29895         * modules/fcntl-h-tests: Likewise.
29896         * modules/floorf-tests: Likewise.
29897         * modules/floorl-tests: Likewise.
29898         * modules/frexp-nolibm-tests: Likewise.
29899         * modules/frexp-tests: Likewise.
29900         * modules/frexpl-nolibm-tests: Likewise.
29901         * modules/frexpl-tests: Likewise.
29902         * modules/getaddrinfo-tests: Likewise.
29903         * modules/inttypes-tests: Likewise.
29904         * modules/isfinite-tests: Likewise.
29905         * modules/isinf-tests: Likewise.
29906         * modules/ldexpl-tests: Likewise.
29907         * modules/locale-tests: Likewise.
29908         * modules/math-tests: Likewise.
29909         * modules/netdb-tests: Likewise.
29910         * modules/netinet_in-tests: Likewise.
29911         * modules/printf-frexp-tests: Likewise.
29912         * modules/printf-frexpl-tests: Likewise.
29913         * modules/priv-set-tests: Likewise.
29914         * modules/random_r-tests: Likewise.
29915         * modules/round-tests: Likewise.
29916         * modules/roundf-tests: Likewise.
29917         * modules/roundl-tests: Likewise.
29918         * modules/search-tests: Likewise.
29919         * modules/select-tests: Likewise.
29920         * modules/signal-tests: Likewise.
29921         * modules/stdbool-tests: Likewise.
29922         * modules/stddef-tests: Likewise.
29923         * modules/stdint-tests: Likewise.
29924         * modules/stdio-tests: Likewise.
29925         * modules/stdlib-tests: Likewise.
29926         * modules/string-tests: Likewise.
29927         * modules/strings-tests: Likewise.
29928         * modules/sys_select-tests: Likewise.
29929         * modules/sys_socket-tests: Likewise.
29930         * modules/sys_stat-tests: Likewise.
29931         * modules/sys_time-tests: Likewise.
29932         * modules/sys_utsname-tests: Likewise.
29933         * modules/sysexits-tests: Likewise.
29934         * modules/time-tests: Likewise.
29935         * modules/trunc-tests: Likewise.
29936         * modules/truncf-tests: Likewise.
29937         * modules/truncl-tests: Likewise.
29938         * modules/tsearch-tests: Likewise.
29939         * modules/unistd-tests: Likewise.
29940         * modules/wchar-tests: Likewise.
29941         * modules/wctype-tests: Likewise.
29942
29943         tests: fix license on several tests
29944         * tests/test-des.c: Update to GPLv3+.
29945         * tests/test-flock.c: Likewise.
29946         * tests/test-fsync.c: Likewise.
29947         * tests/test-futimens.h: Likewise.
29948         * tests/test-gc-arcfour.c: Likewise.
29949         * tests/test-gc-arctwo.c: Likewise.
29950         * tests/test-gc-des.c: Likewise.
29951         * tests/test-gc-hmac-md5.c: Likewise.
29952         * tests/test-gc-hmac-sha1.c: Likewise.
29953         * tests/test-gc-md2.c: Likewise.
29954         * tests/test-gc-md4.c: Likewise.
29955         * tests/test-gc-md5.c: Likewise.
29956         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29957         * tests/test-gc-rijndael.c: Likewise.
29958         * tests/test-gc-sha1.c: Likewise.
29959         * tests/test-gc.c: Likewise.
29960         * tests/test-getcwd.c: Likewise.
29961         * tests/test-link.c: Likewise.
29962         * tests/test-link.h: Likewise.
29963         * tests/test-lutimens.h: Likewise.
29964         * tests/test-md2.c: Likewise.
29965         * tests/test-md4.c: Likewise.
29966         * tests/test-mkdir.h: Likewise.
29967         * tests/test-rename.c: Likewise.
29968         * tests/test-rename.h: Likewise.
29969         * tests/test-safe-alloc.c: Likewise.
29970         * tests/test-utimens-common.h: Likewise.
29971         * tests/test-utimens.h: Likewise.
29972
29973         maint: sync license texts
29974         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29975         * doc/gpl-3.0.texi: Revert copyright year update.
29976         * doc/lgpl-3.0.texi: Likewise.
29977
29978 2009-12-29  Jim Meyering  <meyering@redhat.com>
29979
29980         update nearly all FSF copyright year lists to include 2009
29981         The files named by the following are exempted:
29982             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29983               test -f "$dst" && { echo "$dst"; continue; }
29984               test -d "$dst" || continue
29985               echo "$dst"/$(basename "$src")
29986             done > exempt
29987             git ls-files tests/unictype >> exempt
29988         In the remaining files, convert to all-interval notation if
29989         - there is already at least one year interval like 2000-2003
29990         - the file is maintained by me
29991         - the file is in lib/uni*/, where that style already prevails
29992         Otherwise, use update-copyright's default.
29993
29994 2009-12-29  Simon Josefsson  <simon@josefsson.org>
29995         and Eric Blake  <ebb9@byu.net>
29996
29997         tests: don't require debug system() to pass
29998         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
29999         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30000         * tests/test-unlink.h (test_unlink_func): Likewise.
30001         * tests/test-fstatat.c (main): ...into callers.
30002         * tests/test-lstat.c (main): Likewise.
30003         * tests/test-rmdir.c (main): Likewise.
30004         * tests/test-unlink.c (main): Likewise.
30005         * tests/test-unlinkat.c (main): Likewise.
30006         * tests/test-areadlink-with-size.c (main): Don't require a
30007         debug-only system call to pass, aiding cross-testing to mingw.
30008         * tests/test-areadlink.c (main): Likewise.
30009         * tests/test-areadlinkat-with-size.c (main): Likewise.
30010         * tests/test-areadlinkat.c (main): Likewise.
30011         * tests/test-canonicalize-lgpl.c (main): Likewise.
30012         * tests/test-canonicalize.c (main): Likewise.
30013         * tests/test-chown.c (main): Likewise.
30014         * tests/test-fchownat.c (main): Likewise.
30015         * tests/test-lchown.c (main): Likewise.
30016         * tests/test-fdutimensat.c (main): Likewise.
30017         * tests/test-futimens.c (main): Likewise.
30018         * tests/test-link.c (main): Likewise.
30019         * tests/test-linkat.c (main): Likewise.
30020         * tests/test-mkdir.c (main): Likewise.
30021         * tests/test-mkdirat.c (main): Likewise.
30022         * tests/test-mkfifo.c (main): Likewise.
30023         * tests/test-mkfifoat.c (main): Likewise.
30024         * tests/test-mknod.c (main): Likewise.
30025         * tests/test-readlink.c (main): Likewise.
30026         * tests/test-remove.c (main): Likewise.
30027         * tests/test-rename.c (main): Likewise.
30028         * tests/test-renameat.c (main): Likewise.
30029         * tests/test-symlink.c (main): Likewise.
30030         * tests/test-symlinkat.c (main): Likewise.
30031         * tests/test-utimens.c (main): Likewise.
30032         * tests/test-utimensat.c (main): Likewise.
30033
30034 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30035
30036         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30037         on $(UNUSED_PARAMETER_H) to avoid build failure.
30038
30039 2009-12-28  Jim Meyering  <meyering@redhat.com>
30040
30041         update-copyright: you may specify a max. line length other than 72
30042         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30043
30044         maint: use consistent FSF copyright line syntax
30045         * lib/posixtm.c: Add missing comma in FSF copyright line.
30046         * lib/posixtm.h: Likewise.
30047         * lib/getugroups.c: Add missing ", Inc.".
30048
30049         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30050         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30051         FSF copyright line.  Remove trailing blanks.
30052
30053 2009-12-28  Eric Blake  <ebb9@byu.net>
30054
30055         test-dup2: reduce dependencies
30056         * modules/cloexec (Configure.ac): Set witness.
30057         * modules/dup2-tests (Depends-on): Drop cloexec.
30058         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30059         not present.
30060         Suggested by Bruno Haible.
30061
30062 2009-12-26  Bruno Haible  <bruno@clisp.org>
30063
30064         Remove an unneeded dependency.
30065         * modules/fseterr (Depends-on): Remove dup2.
30066
30067 2009-12-26  Eric Blake  <ebb9@byu.net>
30068
30069         tests: use macros.h in more places
30070         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30071         (ASSERT_STREAM): Provide default of stderr.
30072         * tests/test-dirent-safer.c: Include macros.h, using alternate
30073         stream for assertions.
30074         * tests/test-dup-safer.c: Likewise.
30075         * tests/test-freopen-safer.c: Likewise.
30076         * tests/test-getopt.c: Likewise.
30077         * tests/test-openat-safer.c: Likewise.
30078         * tests/test-pipe.c: Likewise.
30079         * tests/test-popen-safer.c: Likewise.
30080         * modules/dirent-safer-tests (Files): Include macros.h.
30081         * modules/unistd-safer-tests (Files): Likewise.
30082         * modules/freopen-safer-tests (Files): Likewise.
30083         * modules/getopt-posix-tests (Files): Likewise.
30084         * modules/openat-safer-tests (Files): Likewise.
30085         * modules/pipe-tests (Files): Likewise.
30086
30087 2009-12-26  Bruno Haible  <bruno@clisp.org>
30088
30089         javacomp: Portability fix.
30090         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30091         that it also works on Solaris.
30092
30093 2009-12-26  Bruno Haible  <bruno@clisp.org>
30094
30095         localename: Fix storage allocation of gl_locale_name_thread's result.
30096         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30097         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30098         all platforms that have 'uselocale'.
30099         (gl_locale_name_thread_unsafe): New function, extracted from
30100         gl_locale_name_thread.
30101         (gl_locale_name_thread): Call struniq on all platforms that have
30102         'uselocale'.
30103         * tests/test-localename.c (test_locale_name_thread): Check that the
30104         resulting strings are permanently allocated.
30105         * modules/localename-tests (Depends-on): Add strdup.
30106
30107 2009-12-26  Bruno Haible  <bruno@clisp.org>
30108
30109         * tests/test-localename.c (categories): Fill in the strings.
30110
30111 2009-12-26  Jim Meyering  <meyering@redhat.com>
30112
30113         isdir: complete the removal of m4/isdir.m4
30114         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30115
30116         isdir: clean up, since at least grep still uses it
30117         * lib/isdir.c: Include "isdir.h".
30118         (S_ISDIR): Remove now-unneeded definition.
30119         * modules/isdir (Files): Add lib/isdir.h.
30120         * lib/isdir.h: New file, with declaration.
30121         * m4/isdir.m4: Remove file -- unneeded.
30122
30123 2009-12-25  Bruno Haible  <bruno@clisp.org>
30124
30125         selinux-h: Make generated .h files standalone.
30126         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30127         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30128         * lib/se-selinux.in.h: Likewise.
30129         * modules/selinux-h (Depends-on): Add unused-parameter.
30130         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30131         selinux/selinux.h and selinux/context.h.
30132         Suggested by Eric Blake.
30133
30134 2009-12-25  Bruno Haible  <bruno@clisp.org>
30135
30136         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30137         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30138         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30139         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30140         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30141
30142 2009-12-24  Bruno Haible  <bruno@clisp.org>
30143
30144         openat: Fix warning.
30145         * lib/openat-proc.c: Include <unistd.h>.
30146
30147 2009-12-24  Bruno Haible  <bruno@clisp.org>
30148
30149         New module 'unused-parameter'.
30150         * build-aux/unused-parameter.h: New file, extracted from earlier
30151         gnulib-common.m4.
30152         * modules/unused-parameter: New file.
30153         * lib/unistr.h: Include unused-parameter.h.
30154         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30155         _GL_UNUSED.
30156         * modules/unistr/base (Depends-on): Add unused-parameter.
30157
30158 2009-12-24  Bruno Haible  <bruno@clisp.org>
30159
30160         Add missing dependencies to 'extensions' module.
30161         * m4/extensions.m4: Add comment.
30162         * modules/accept4 (Depends-on): Add extensions.
30163         * modules/dup3 (Depends-on): Likewise.
30164         * modules/fcntl (Depends-on): Likewise.
30165         * modules/futimens (Depends-on): Likewise.
30166         * modules/mknod (Depends-on): Likewise.
30167         * modules/pipe2 (Depends-on): Likewise.
30168         * modules/stat-time (Depends-on): Likewise.
30169         * modules/strcasestr-simple (Depends-on): Likewise.
30170         * modules/strsignal (Depends-on): Likewise.
30171         * modules/utimensat (Depends-on): Likewise.
30172         * modules/localcharset (Depends-on): Likewise. Needed because of
30173         gl_FCNTL_O_FLAGS.
30174         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30175         AC_TYPE_MBSTATE_T.
30176         * modules/wcsnrtombs (Depends-on): Likewise.
30177         * modules/wcsrtombs (Depends-on): Likewise.
30178
30179 2009-12-24  Bruno Haible  <bruno@clisp.org>
30180
30181         binary-io: Avoid gcc warning due to SET_BINARY.
30182         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30183         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30184
30185 2009-12-24  Bruno Haible  <bruno@clisp.org>
30186
30187         Avoid future namespace pollution on glibc systems.
30188         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30189         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30190         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30191         glibc systems.
30192
30193 2009-12-24  Bruno Haible  <bruno@clisp.org>
30194
30195         Refactor common macros used in tests.
30196         * tests/macros.h: New file.
30197         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30198         and/or <stdlib.h>, if appropriate.
30199         (ASSERT, SIZEOF): Remove macros.
30200         * tests/test-areadlink-with-size.c: Likewise.
30201         * tests/test-areadlinkat.c: Likewise.
30202         * tests/test-areadlinkat-with-size.c: Likewise.
30203         * tests/test-argmatch.c: Likewise.
30204         * tests/test-argv-iter.c: Likewise.
30205         * tests/test-array-mergesort.c: Likewise.
30206         * tests/test-array_list.c: Likewise.
30207         * tests/test-array_oset.c: Likewise.
30208         * tests/test-avltree_list.c: Likewise.
30209         * tests/test-avltree_oset.c: Likewise.
30210         * tests/test-avltreehash_list.c: Likewise.
30211         * tests/test-base64.c: Likewise.
30212         * tests/test-binary-io.c: Likewise.
30213         * tests/test-bitrotate.c: Likewise.
30214         * tests/test-btowc.c: Likewise.
30215         * tests/test-byteswap.c: Likewise.
30216         * tests/test-c-ctype.c: Likewise.
30217         * tests/test-c-stack.c: Likewise.
30218         * tests/test-c-strcasecmp.c: Likewise.
30219         * tests/test-c-strcasestr.c: Likewise.
30220         * tests/test-c-strncasecmp.c: Likewise.
30221         * tests/test-c-strstr.c: Likewise.
30222         * tests/test-canonicalize-lgpl.c: Likewise.
30223         * tests/test-canonicalize.c: Likewise.
30224         * tests/test-carray_list.c: Likewise.
30225         * tests/test-ceilf1.c: Likewise.
30226         * tests/test-ceilf2.c: Likewise.
30227         * tests/test-ceill.c: Likewise.
30228         * tests/test-chown.c: Likewise.
30229         * tests/test-cloexec.c: Likewise.
30230         * tests/test-copy-acl.c: Likewise.
30231         * tests/test-copy-file.c: Likewise.
30232         * tests/test-count-one-bits.c: Likewise.
30233         * tests/test-dprintf-posix.c: Likewise.
30234         * tests/test-dup2.c: Likewise.
30235         * tests/test-dup3.c: Likewise.
30236         * tests/test-duplocale.c: Likewise.
30237         * tests/test-fbufmode.c: Likewise.
30238         * tests/test-fchdir.c: Likewise.
30239         * tests/test-fchownat.c: Likewise.
30240         * tests/test-fcntl-safer.c: Likewise.
30241         * tests/test-fcntl.c: Likewise.
30242         * tests/test-fdopendir.c: Likewise.
30243         * tests/test-fdutimensat.c: Likewise.
30244         * tests/test-fflush2.c: Likewise.
30245         * tests/test-file-has-acl.c: Likewise.
30246         * tests/test-filevercmp.c: Likewise.
30247         * tests/test-flock.c: Likewise.
30248         * tests/test-floorf1.c: Likewise.
30249         * tests/test-floorf2.c: Likewise.
30250         * tests/test-floorl.c: Likewise.
30251         * tests/test-fnmatch.c: Likewise.
30252         * tests/test-fopen.h: Likewise.
30253         * tests/test-fpending.c: Likewise.
30254         * tests/test-fprintf-posix.c: Likewise.
30255         * tests/test-fpurge.c: Likewise.
30256         * tests/test-freadable.c: Likewise.
30257         * tests/test-freadahead.c: Likewise.
30258         * tests/test-freading.c: Likewise.
30259         * tests/test-freadptr.c: Likewise.
30260         * tests/test-freadptr2.c: Likewise.
30261         * tests/test-freadseek.c: Likewise.
30262         * tests/test-freopen.c: Likewise.
30263         * tests/test-frexp.c: Likewise.
30264         * tests/test-frexpl.c: Likewise.
30265         * tests/test-fseek.c: Likewise.
30266         * tests/test-fseeko.c: Likewise.
30267         * tests/test-fstatat.c: Likewise.
30268         * tests/test-fstrcmp.c: Likewise.
30269         * tests/test-fsync.c: Likewise.
30270         * tests/test-ftell.c: Likewise.
30271         * tests/test-ftello.c: Likewise.
30272         * tests/test-func.c: Likewise.
30273         * tests/test-futimens.c: Likewise.
30274         * tests/test-fwritable.c: Likewise.
30275         * tests/test-fwriting.c: Likewise.
30276         * tests/test-getcwd.c: Likewise.
30277         * tests/test-getdate.c: Likewise.
30278         * tests/test-getdelim.c: Likewise.
30279         * tests/test-getdtablesize.c: Likewise.
30280         * tests/test-getgroups.c: Likewise.
30281         * tests/test-getline.c: Likewise.
30282         * tests/test-getndelim2.c: Likewise.
30283         * tests/test-glob.c: Likewise.
30284         * tests/test-hash.c: Likewise.
30285         * tests/test-i-ring.c: Likewise.
30286         * tests/test-iconv-utf.c: Likewise.
30287         * tests/test-iconv.c: Likewise.
30288         * tests/test-idpriv-drop.c: Likewise.
30289         * tests/test-idpriv-droptemp.c: Likewise.
30290         * tests/test-inet_ntop.c: Likewise.
30291         * tests/test-inet_pton.c: Likewise.
30292         * tests/test-isblank.c: Likewise.
30293         * tests/test-isfinite.c: Likewise.
30294         * tests/test-isinf.c: Likewise.
30295         * tests/test-isnan.c: Likewise.
30296         * tests/test-isnand.h: Likewise.
30297         * tests/test-isnanf.h: Likewise.
30298         * tests/test-isnanl.h: Likewise.
30299         * tests/test-lchown.c: Likewise.
30300         * tests/test-ldexpl.c: Likewise.
30301         * tests/test-link.c: Likewise.
30302         * tests/test-linkat.c: Likewise.
30303         * tests/test-linked_list.c: Likewise.
30304         * tests/test-linkedhash_list.c: Likewise.
30305         * tests/test-localename.c: Likewise.
30306         * tests/test-lseek.c: Likewise.
30307         * tests/test-lstat.c: Likewise.
30308         * tests/test-mbmemcasecmp.c: Likewise.
30309         * tests/test-mbmemcasecoll.c: Likewise.
30310         * tests/test-mbrtowc.c: Likewise.
30311         * tests/test-mbscasecmp.c: Likewise.
30312         * tests/test-mbscasestr1.c: Likewise.
30313         * tests/test-mbscasestr2.c: Likewise.
30314         * tests/test-mbscasestr3.c: Likewise.
30315         * tests/test-mbscasestr4.c: Likewise.
30316         * tests/test-mbschr.c: Likewise.
30317         * tests/test-mbscspn.c: Likewise.
30318         * tests/test-mbsinit.c: Likewise.
30319         * tests/test-mbsncasecmp.c: Likewise.
30320         * tests/test-mbsnrtowcs.c: Likewise.
30321         * tests/test-mbspbrk.c: Likewise.
30322         * tests/test-mbspcasecmp.c: Likewise.
30323         * tests/test-mbsrchr.c: Likewise.
30324         * tests/test-mbsrtowcs.c: Likewise.
30325         * tests/test-mbsspn.c: Likewise.
30326         * tests/test-mbsstr1.c: Likewise.
30327         * tests/test-mbsstr2.c: Likewise.
30328         * tests/test-mbsstr3.c: Likewise.
30329         * tests/test-memchr.c: Likewise.
30330         * tests/test-memchr2.c: Likewise.
30331         * tests/test-memcmp.c: Likewise.
30332         * tests/test-memmem.c: Likewise.
30333         * tests/test-memrchr.c: Likewise.
30334         * tests/test-mkdir.c: Likewise.
30335         * tests/test-mkdirat.c: Likewise.
30336         * tests/test-mkfifo.c: Likewise.
30337         * tests/test-mkfifoat.c: Likewise.
30338         * tests/test-mknod.c: Likewise.
30339         * tests/test-nanosleep.c: Likewise.
30340         * tests/test-nl_langinfo.c: Likewise.
30341         * tests/test-obstack-printf.c: Likewise.
30342         * tests/test-open.c: Likewise.
30343         * tests/test-openat.c: Likewise.
30344         * tests/test-pipe-filter-gi1.c: Likewise.
30345         * tests/test-pipe-filter-gi2-main.c: Likewise.
30346         * tests/test-pipe-filter-ii1.c: Likewise.
30347         * tests/test-pipe-filter-ii2-main.c: Likewise.
30348         * tests/test-pipe2.c: Likewise.
30349         * tests/test-popen.h: Likewise.
30350         * tests/test-posixtm.c: Likewise.
30351         * tests/test-pread.c: Likewise.
30352         * tests/test-printf-frexp.c: Likewise.
30353         * tests/test-printf-frexpl.c: Likewise.
30354         * tests/test-printf-posix.c: Likewise.
30355         * tests/test-priv-set.c: Likewise.
30356         * tests/test-quotearg.c: Likewise.
30357         * tests/test-random_r.c: Likewise.
30358         * tests/test-rawmemchr.c: Likewise.
30359         * tests/test-rbtree_list.c: Likewise.
30360         * tests/test-rbtree_oset.c: Likewise.
30361         * tests/test-rbtreehash_list.c: Likewise.
30362         * tests/test-readlink.c: Likewise.
30363         * tests/test-remove.c: Likewise.
30364         * tests/test-rename.c: Likewise.
30365         * tests/test-renameat.c: Likewise.
30366         * tests/test-rmdir.c: Likewise.
30367         * tests/test-round1.c: Likewise.
30368         * tests/test-roundf1.c: Likewise.
30369         * tests/test-roundl.c: Likewise.
30370         * tests/test-safe-alloc.c: Likewise.
30371         * tests/test-sameacls.c: Likewise.
30372         * tests/test-set-mode-acl.c: Likewise.
30373         * tests/test-setenv.c: Likewise.
30374         * tests/test-sigaction.c: Likewise.
30375         * tests/test-signbit.c: Likewise.
30376         * tests/test-sleep.c: Likewise.
30377         * tests/test-snprintf-posix.c: Likewise.
30378         * tests/test-snprintf.c: Likewise.
30379         * tests/test-sprintf-posix.c: Likewise.
30380         * tests/test-stat-time.c: Likewise.
30381         * tests/test-stat.c: Likewise.
30382         * tests/test-strcasestr.c: Likewise.
30383         * tests/test-strchrnul.c: Likewise.
30384         * tests/test-strerror.c: Likewise.
30385         * tests/test-striconv.c: Likewise.
30386         * tests/test-striconveh.c: Likewise.
30387         * tests/test-striconveha.c: Likewise.
30388         * tests/test-strsignal.c: Likewise.
30389         * tests/test-strstr.c: Likewise.
30390         * tests/test-strtod.c: Likewise.
30391         * tests/test-strverscmp.c: Likewise.
30392         * tests/test-symlink.c: Likewise.
30393         * tests/test-symlinkat.c: Likewise.
30394         * tests/test-trunc1.c: Likewise.
30395         * tests/test-trunc2.c: Likewise.
30396         * tests/test-truncf1.c: Likewise.
30397         * tests/test-truncf2.c: Likewise.
30398         * tests/test-truncl.c: Likewise.
30399         * tests/test-uname.c: Likewise.
30400         * tests/test-unlink.c: Likewise.
30401         * tests/test-unlinkat.c: Likewise.
30402         * tests/test-unsetenv.c: Likewise.
30403         * tests/test-usleep.c: Likewise.
30404         * tests/test-utimens.c: Likewise.
30405         * tests/test-utimensat.c: Likewise.
30406         * tests/test-vasnprintf-posix.c: Likewise.
30407         * tests/test-vasnprintf-posix2.c: Likewise.
30408         * tests/test-vasnprintf.c: Likewise.
30409         * tests/test-vasprintf-posix.c: Likewise.
30410         * tests/test-vasprintf.c: Likewise.
30411         * tests/test-vdprintf-posix.c: Likewise.
30412         * tests/test-vfprintf-posix.c: Likewise.
30413         * tests/test-vprintf-posix.c: Likewise.
30414         * tests/test-vsnprintf-posix.c: Likewise.
30415         * tests/test-vsnprintf.c: Likewise.
30416         * tests/test-vsprintf-posix.c: Likewise.
30417         * tests/test-wcrtomb.c: Likewise.
30418         * tests/test-wcsnrtombs.c: Likewise.
30419         * tests/test-wcsrtombs.c: Likewise.
30420         * tests/test-wctype.c: Likewise.
30421         * tests/test-wcwidth.c: Likewise.
30422         * tests/test-xfprintf-posix.c: Likewise.
30423         * tests/test-xmemdup0.c: Likewise.
30424         * tests/test-xprintf-posix.c: Likewise.
30425         * tests/test-xvasprintf.c: Likewise.
30426         * tests/unicase/test-locale-language.c: Likewise.
30427         * tests/unicase/test-mapping-part1.h: Likewise.
30428         * tests/unicase/test-predicate-part1.h: Likewise.
30429         * tests/unicase/test-u8-casecmp.c: Likewise.
30430         * tests/unicase/test-u8-casecoll.c: Likewise.
30431         * tests/unicase/test-u8-casefold.c: Likewise.
30432         * tests/unicase/test-u8-is-cased.c: Likewise.
30433         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30434         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30435         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30436         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30437         * tests/unicase/test-u8-tolower.c: Likewise.
30438         * tests/unicase/test-u8-totitle.c: Likewise.
30439         * tests/unicase/test-u8-toupper.c: Likewise.
30440         * tests/unicase/test-u16-casecmp.c: Likewise.
30441         * tests/unicase/test-u16-casecoll.c: Likewise.
30442         * tests/unicase/test-u16-casefold.c: Likewise.
30443         * tests/unicase/test-u16-is-cased.c: Likewise.
30444         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30445         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30446         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30447         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30448         * tests/unicase/test-u16-tolower.c: Likewise.
30449         * tests/unicase/test-u16-totitle.c: Likewise.
30450         * tests/unicase/test-u16-toupper.c: Likewise.
30451         * tests/unicase/test-u32-casecmp.c: Likewise.
30452         * tests/unicase/test-u32-casecoll.c: Likewise.
30453         * tests/unicase/test-u32-casefold.c: Likewise.
30454         * tests/unicase/test-u32-is-cased.c: Likewise.
30455         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30456         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30457         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30458         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30459         * tests/unicase/test-u32-tolower.c: Likewise.
30460         * tests/unicase/test-u32-totitle.c: Likewise.
30461         * tests/unicase/test-u32-toupper.c: Likewise.
30462         * tests/unicase/test-ulc-casecmp.c: Likewise.
30463         * tests/unicase/test-ulc-casecoll.c: Likewise.
30464         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30465         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30466         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30467         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30468         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30469         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30470         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30471         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30472         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30473         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30474         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30475         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30476         * tests/unictype/test-bidi_byname.c: Likewise.
30477         * tests/unictype/test-bidi_name.c: Likewise.
30478         * tests/unictype/test-bidi_of.c: Likewise.
30479         * tests/unictype/test-bidi_test.c: Likewise.
30480         * tests/unictype/test-block_list.c: Likewise.
30481         * tests/unictype/test-block_of.c: Likewise.
30482         * tests/unictype/test-block_test.c: Likewise.
30483         * tests/unictype/test-categ_and.c: Likewise.
30484         * tests/unictype/test-categ_and_not.c: Likewise.
30485         * tests/unictype/test-categ_byname.c: Likewise.
30486         * tests/unictype/test-categ_name.c: Likewise.
30487         * tests/unictype/test-categ_none.c: Likewise.
30488         * tests/unictype/test-categ_of.c: Likewise.
30489         * tests/unictype/test-categ_or.c: Likewise.
30490         * tests/unictype/test-categ_test_withtable.c: Likewise.
30491         * tests/unictype/test-combining.c: Likewise.
30492         * tests/unictype/test-decdigit.c: Likewise.
30493         * tests/unictype/test-digit.c: Likewise.
30494         * tests/unictype/test-mirror.c: Likewise.
30495         * tests/unictype/test-numeric.c: Likewise.
30496         * tests/unictype/test-pr_byname.c: Likewise.
30497         * tests/unictype/test-pr_test.c: Likewise.
30498         * tests/unictype/test-predicate-part1.h: Likewise.
30499         * tests/unictype/test-scripts.c: Likewise.
30500         * tests/unictype/test-sy_c_ident.c: Likewise.
30501         * tests/unictype/test-sy_java_ident.c: Likewise.
30502         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30503         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30504         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30505         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30506         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30507         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30508         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30509         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30510         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30511         * tests/uninorm/test-compat-decomposition.c: Likewise.
30512         * tests/uninorm/test-composition.c: Likewise.
30513         * tests/uninorm/test-decomposing-form.c: Likewise.
30514         * tests/uninorm/test-decomposition.c: Likewise.
30515         * tests/uninorm/test-u8-nfc.c: Likewise.
30516         * tests/uninorm/test-u8-nfd.c: Likewise.
30517         * tests/uninorm/test-u8-nfkc.c: Likewise.
30518         * tests/uninorm/test-u8-nfkd.c: Likewise.
30519         * tests/uninorm/test-u8-normcmp.c: Likewise.
30520         * tests/uninorm/test-u8-normcoll.c: Likewise.
30521         * tests/uninorm/test-u16-nfc.c: Likewise.
30522         * tests/uninorm/test-u16-nfd.c: Likewise.
30523         * tests/uninorm/test-u16-nfkc.c: Likewise.
30524         * tests/uninorm/test-u16-nfkd.c: Likewise.
30525         * tests/uninorm/test-u16-normcmp.c: Likewise.
30526         * tests/uninorm/test-u16-normcoll.c: Likewise.
30527         * tests/uninorm/test-u32-nfc.c: Likewise.
30528         * tests/uninorm/test-u32-nfd.c: Likewise.
30529         * tests/uninorm/test-u32-nfkc.c: Likewise.
30530         * tests/uninorm/test-u32-nfkd.c: Likewise.
30531         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30532         * tests/uninorm/test-u32-normcmp.c: Likewise.
30533         * tests/uninorm/test-u32-normcoll.c: Likewise.
30534         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30535         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30536         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30537         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30538         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30539         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30540         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30541         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30542         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30543         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30544         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30545         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30546         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30547         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30548         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30549         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30550         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30551         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30552         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30553         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30554         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30555         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30556         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30557         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30558         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30559         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30560         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30561         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30562         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30563         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30564         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30565         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30566         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30567         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30568         * tests/uniwidth/test-u8-width.c: Likewise.
30569         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30570         * tests/uniwidth/test-u16-width.c: Likewise.
30571         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30572         * tests/uniwidth/test-u32-width.c: Likewise.
30573         * tests/uniwidth/test-uc_width.c: Likewise.
30574         * tests/uniwidth/test-uc_width2.c: Likewise.
30575         * modules/acl-tests (Files): Add tests/macros.h.
30576         * modules/areadlink-tests (Files): Likewise.
30577         * modules/areadlink-with-size-tests (Files): Likewise.
30578         * modules/areadlinkat-tests (Files): Likewise.
30579         * modules/areadlinkat-with-size-tests (Files): Likewise.
30580         * modules/argmatch-tests (Files): Likewise.
30581         * modules/argv-iter-tests (Files): Likewise.
30582         * modules/array-list-tests (Files): Likewise.
30583         * modules/array-mergesort-tests (Files): Likewise.
30584         * modules/array-oset-tests (Files): Likewise.
30585         * modules/avltree-list-tests (Files): Likewise.
30586         * modules/avltree-oset-tests (Files): Likewise.
30587         * modules/avltreehash-list-tests (Files): Likewise.
30588         * modules/base64-tests (Files): Likewise.
30589         * modules/binary-io-tests (Files): Likewise.
30590         * modules/bitrotate-tests (Files): Likewise.
30591         * modules/btowc-tests (Files): Likewise.
30592         * modules/byteswap-tests (Files): Likewise.
30593         * modules/c-ctype-tests (Files): Likewise.
30594         * modules/c-stack-tests (Files): Likewise.
30595         * modules/c-strcase-tests (Files): Likewise.
30596         * modules/c-strcasestr-tests (Files): Likewise.
30597         * modules/c-strstr-tests (Files): Likewise.
30598         * modules/canonicalize-lgpl-tests (Files): Likewise.
30599         * modules/canonicalize-tests (Files): Likewise.
30600         * modules/carray-list-tests (Files): Likewise.
30601         * modules/ceilf-tests (Files): Likewise.
30602         * modules/ceill-tests (Files): Likewise.
30603         * modules/chown-tests (Files): Likewise.
30604         * modules/cloexec-tests (Files): Likewise.
30605         * modules/copy-file-tests (Files): Likewise.
30606         * modules/count-one-bits-tests (Files): Likewise.
30607         * modules/dprintf-posix-tests (Files): Likewise.
30608         * modules/dup2-tests (Files): Likewise.
30609         * modules/dup3-tests (Files): Likewise.
30610         * modules/duplocale-tests (Files): Likewise.
30611         * modules/fbufmode-tests (Files): Likewise.
30612         * modules/fchdir-tests (Files): Likewise.
30613         * modules/fcntl-safer-tests (Files): Likewise.
30614         * modules/fcntl-tests (Files): Likewise.
30615         * modules/fdopendir-tests (Files): Likewise.
30616         * modules/fdutimensat-tests (Files): Likewise.
30617         * modules/fflush-tests (Files): Likewise.
30618         * modules/filevercmp-tests (Files): Likewise.
30619         * modules/flock-tests (Files): Likewise.
30620         * modules/floorf-tests (Files): Likewise.
30621         * modules/floorl-tests (Files): Likewise.
30622         * modules/fnmatch-tests (Files): Likewise.
30623         * modules/fopen-safer-tests (Files): Likewise.
30624         * modules/fopen-tests (Files): Likewise.
30625         * modules/fpending-tests (Files): Likewise.
30626         * modules/fprintf-posix-tests (Files): Likewise.
30627         * modules/fpurge-tests (Files): Likewise.
30628         * modules/freadable-tests (Files): Likewise.
30629         * modules/freadahead-tests (Files): Likewise.
30630         * modules/freading-tests (Files): Likewise.
30631         * modules/freadptr-tests (Files): Likewise.
30632         * modules/freadseek-tests (Files): Likewise.
30633         * modules/freopen-tests (Files): Likewise.
30634         * modules/frexp-nolibm-tests (Files): Likewise.
30635         * modules/frexp-tests (Files): Likewise.
30636         * modules/frexpl-nolibm-tests (Files): Likewise.
30637         * modules/frexpl-tests (Files): Likewise.
30638         * modules/fseek-tests (Files): Likewise.
30639         * modules/fseeko-tests (Files): Likewise.
30640         * modules/fstrcmp-tests (Files): Likewise.
30641         * modules/fsync-tests (Files): Likewise.
30642         * modules/ftell-tests (Files): Likewise.
30643         * modules/ftello-tests (Files): Likewise.
30644         * modules/func-tests (Files): Likewise.
30645         * modules/futimens-tests (Files): Likewise.
30646         * modules/fwritable-tests (Files): Likewise.
30647         * modules/fwriting-tests (Files): Likewise.
30648         * modules/getcwd-tests (Files): Likewise.
30649         * modules/getdate-tests (Files): Likewise.
30650         * modules/getdelim-tests (Files): Likewise.
30651         * modules/getdtablesize-tests (Files): Likewise.
30652         * modules/getgroups-tests (Files): Likewise.
30653         * modules/getline-tests (Files): Likewise.
30654         * modules/getndelim2-tests (Files): Likewise.
30655         * modules/glob-tests (Files): Likewise.
30656         * modules/hash-tests (Files): Likewise.
30657         * modules/i-ring-tests (Files): Likewise.
30658         * modules/iconv-tests (Files): Likewise.
30659         * modules/iconv_open-utf-tests (Files): Likewise.
30660         * modules/idpriv-drop-tests (Files): Likewise.
30661         * modules/idpriv-droptemp-tests (Files): Likewise.
30662         * modules/inet_ntop-tests (Files): Likewise.
30663         * modules/inet_pton-tests (Files): Likewise.
30664         * modules/isblank-tests (Files): Likewise.
30665         * modules/isfinite-tests (Files): Likewise.
30666         * modules/isinf-tests (Files): Likewise.
30667         * modules/isnan-tests (Files): Likewise.
30668         * modules/isnand-nolibm-tests (Files): Likewise.
30669         * modules/isnand-tests (Files): Likewise.
30670         * modules/isnanf-nolibm-tests (Files): Likewise.
30671         * modules/isnanf-tests (Files): Likewise.
30672         * modules/isnanl-nolibm-tests (Files): Likewise.
30673         * modules/isnanl-tests (Files): Likewise.
30674         * modules/lchown-tests (Files): Likewise.
30675         * modules/ldexpl-tests (Files): Likewise.
30676         * modules/link-tests (Files): Likewise.
30677         * modules/linkat-tests (Files): Likewise.
30678         * modules/linked-list-tests (Files): Likewise.
30679         * modules/linkedhash-list-tests (Files): Likewise.
30680         * modules/localename-tests (Files): Likewise.
30681         * modules/lseek-tests (Files): Likewise.
30682         * modules/lstat-tests (Files): Likewise.
30683         * modules/mbmemcasecmp-tests (Files): Likewise.
30684         * modules/mbmemcasecoll-tests (Files): Likewise.
30685         * modules/mbrtowc-tests (Files): Likewise.
30686         * modules/mbscasecmp-tests (Files): Likewise.
30687         * modules/mbscasestr-tests (Files): Likewise.
30688         * modules/mbschr-tests (Files): Likewise.
30689         * modules/mbscspn-tests (Files): Likewise.
30690         * modules/mbsinit-tests (Files): Likewise.
30691         * modules/mbsncasecmp-tests (Files): Likewise.
30692         * modules/mbsnrtowcs-tests (Files): Likewise.
30693         * modules/mbspbrk-tests (Files): Likewise.
30694         * modules/mbspcasecmp-tests (Files): Likewise.
30695         * modules/mbsrchr-tests (Files): Likewise.
30696         * modules/mbsrtowcs-tests (Files): Likewise.
30697         * modules/mbsspn-tests (Files): Likewise.
30698         * modules/mbsstr-tests (Files): Likewise.
30699         * modules/memchr-tests (Files): Likewise.
30700         * modules/memchr2-tests (Files): Likewise.
30701         * modules/memcmp-tests (Files): Likewise.
30702         * modules/memmem-tests (Files): Likewise.
30703         * modules/memrchr-tests (Files): Likewise.
30704         * modules/mkdir-tests (Files): Likewise.
30705         * modules/mkfifo-tests (Files): Likewise.
30706         * modules/mkfifoat-tests (Files): Likewise.
30707         * modules/mknod-tests (Files): Likewise.
30708         * modules/nanosleep-tests (Files): Likewise.
30709         * modules/nl_langinfo-tests (Files): Likewise.
30710         * modules/obstack-printf-tests (Files): Likewise.
30711         * modules/open-tests (Files): Likewise.
30712         * modules/openat-tests (Files): Likewise.
30713         * modules/pipe-filter-gi-tests (Files): Likewise.
30714         * modules/pipe-filter-ii-tests (Files): Likewise.
30715         * modules/pipe2-tests (Files): Likewise.
30716         * modules/popen-safer-tests (Files): Likewise.
30717         * modules/popen-tests (Files): Likewise.
30718         * modules/posixtm-tests (Files): Likewise.
30719         * modules/pread-tests (Files): Likewise.
30720         * modules/printf-frexp-tests (Files): Likewise.
30721         * modules/printf-frexpl-tests (Files): Likewise.
30722         * modules/printf-posix-tests (Files): Likewise.
30723         * modules/priv-set-tests (Files): Likewise.
30724         * modules/quotearg-tests (Files): Likewise.
30725         * modules/random_r-tests (Files): Likewise.
30726         * modules/rawmemchr-tests (Files): Likewise.
30727         * modules/rbtree-list-tests (Files): Likewise.
30728         * modules/rbtree-oset-tests (Files): Likewise.
30729         * modules/rbtreehash-list-tests (Files): Likewise.
30730         * modules/readlink-tests (Files): Likewise.
30731         * modules/remove-tests (Files): Likewise.
30732         * modules/rename-tests (Files): Likewise.
30733         * modules/renameat-tests (Files): Likewise.
30734         * modules/rmdir-tests (Files): Likewise.
30735         * modules/round-tests (Files): Likewise.
30736         * modules/roundf-tests (Files): Likewise.
30737         * modules/roundl-tests (Files): Likewise.
30738         * modules/safe-alloc-tests (Files): Likewise.
30739         * modules/setenv-tests (Files): Likewise.
30740         * modules/sigaction-tests (Files): Likewise.
30741         * modules/signbit-tests (Files): Likewise.
30742         * modules/sleep-tests (Files): Likewise.
30743         * modules/snprintf-posix-tests (Files): Likewise.
30744         * modules/snprintf-tests (Files): Likewise.
30745         * modules/sprintf-posix-tests (Files): Likewise.
30746         * modules/stat-tests (Files): Likewise.
30747         * modules/stat-time-tests (Files): Likewise.
30748         * modules/strcasestr-tests (Files): Likewise.
30749         * modules/strchrnul-tests (Files): Likewise.
30750         * modules/strerror-tests (Files): Likewise.
30751         * modules/striconv-tests (Files): Likewise.
30752         * modules/striconveh-tests (Files): Likewise.
30753         * modules/striconveha-tests (Files): Likewise.
30754         * modules/strsignal-tests (Files): Likewise.
30755         * modules/strstr-tests (Files): Likewise.
30756         * modules/strtod-tests (Files): Likewise.
30757         * modules/strverscmp-tests (Files): Likewise.
30758         * modules/symlink-tests (Files): Likewise.
30759         * modules/symlinkat-tests (Files): Likewise.
30760         * modules/trunc-tests (Files): Likewise.
30761         * modules/truncf-tests (Files): Likewise.
30762         * modules/truncl-tests (Files): Likewise.
30763         * modules/uname-tests (Files): Likewise.
30764         * modules/unicase/cased-tests (Files): Likewise.
30765         * modules/unicase/ignorable-tests (Files): Likewise.
30766         * modules/unicase/locale-language-tests (Files): Likewise.
30767         * modules/unicase/tolower-tests (Files): Likewise.
30768         * modules/unicase/totitle-tests (Files): Likewise.
30769         * modules/unicase/toupper-tests (Files): Likewise.
30770         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30771         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30772         * modules/unicase/u8-casefold-tests (Files): Likewise.
30773         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30774         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30775         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30776         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30777         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30778         * modules/unicase/u8-tolower-tests (Files): Likewise.
30779         * modules/unicase/u8-totitle-tests (Files): Likewise.
30780         * modules/unicase/u8-toupper-tests (Files): Likewise.
30781         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30782         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30783         * modules/unicase/u16-casefold-tests (Files): Likewise.
30784         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30785         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30786         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30787         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30788         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30789         * modules/unicase/u16-tolower-tests (Files): Likewise.
30790         * modules/unicase/u16-totitle-tests (Files): Likewise.
30791         * modules/unicase/u16-toupper-tests (Files): Likewise.
30792         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30793         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30794         * modules/unicase/u32-casefold-tests (Files): Likewise.
30795         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30796         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30797         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30798         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30799         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30800         * modules/unicase/u32-tolower-tests (Files): Likewise.
30801         * modules/unicase/u32-totitle-tests (Files): Likewise.
30802         * modules/unicase/u32-toupper-tests (Files): Likewise.
30803         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30804         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30805         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30806         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30807         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30808         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30809         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30810         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30811         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30812         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30813         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30814         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30815         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30816         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30817         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30818         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30819         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30820         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30821         * modules/unictype/block-list-tests (Files): Likewise.
30822         * modules/unictype/block-of-tests (Files): Likewise.
30823         * modules/unictype/block-test-tests (Files): Likewise.
30824         * modules/unictype/category-C-tests (Files): Likewise.
30825         * modules/unictype/category-Cc-tests (Files): Likewise.
30826         * modules/unictype/category-Cf-tests (Files): Likewise.
30827         * modules/unictype/category-Cn-tests (Files): Likewise.
30828         * modules/unictype/category-Co-tests (Files): Likewise.
30829         * modules/unictype/category-Cs-tests (Files): Likewise.
30830         * modules/unictype/category-L-tests (Files): Likewise.
30831         * modules/unictype/category-Ll-tests (Files): Likewise.
30832         * modules/unictype/category-Lm-tests (Files): Likewise.
30833         * modules/unictype/category-Lo-tests (Files): Likewise.
30834         * modules/unictype/category-Lt-tests (Files): Likewise.
30835         * modules/unictype/category-Lu-tests (Files): Likewise.
30836         * modules/unictype/category-M-tests (Files): Likewise.
30837         * modules/unictype/category-Mc-tests (Files): Likewise.
30838         * modules/unictype/category-Me-tests (Files): Likewise.
30839         * modules/unictype/category-Mn-tests (Files): Likewise.
30840         * modules/unictype/category-N-tests (Files): Likewise.
30841         * modules/unictype/category-Nd-tests (Files): Likewise.
30842         * modules/unictype/category-Nl-tests (Files): Likewise.
30843         * modules/unictype/category-No-tests (Files): Likewise.
30844         * modules/unictype/category-P-tests (Files): Likewise.
30845         * modules/unictype/category-Pc-tests (Files): Likewise.
30846         * modules/unictype/category-Pd-tests (Files): Likewise.
30847         * modules/unictype/category-Pe-tests (Files): Likewise.
30848         * modules/unictype/category-Pf-tests (Files): Likewise.
30849         * modules/unictype/category-Pi-tests (Files): Likewise.
30850         * modules/unictype/category-Po-tests (Files): Likewise.
30851         * modules/unictype/category-Ps-tests (Files): Likewise.
30852         * modules/unictype/category-S-tests (Files): Likewise.
30853         * modules/unictype/category-Sc-tests (Files): Likewise.
30854         * modules/unictype/category-Sk-tests (Files): Likewise.
30855         * modules/unictype/category-Sm-tests (Files): Likewise.
30856         * modules/unictype/category-So-tests (Files): Likewise.
30857         * modules/unictype/category-Z-tests (Files): Likewise.
30858         * modules/unictype/category-Zl-tests (Files): Likewise.
30859         * modules/unictype/category-Zp-tests (Files): Likewise.
30860         * modules/unictype/category-Zs-tests (Files): Likewise.
30861         * modules/unictype/category-and-not-tests (Files): Likewise.
30862         * modules/unictype/category-and-tests (Files): Likewise.
30863         * modules/unictype/category-byname-tests (Files): Likewise.
30864         * modules/unictype/category-name-tests (Files): Likewise.
30865         * modules/unictype/category-none-tests (Files): Likewise.
30866         * modules/unictype/category-of-tests (Files): Likewise.
30867         * modules/unictype/category-or-tests (Files): Likewise.
30868         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30869         * modules/unictype/combining-class-tests (Files): Likewise.
30870         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30871         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30872         * modules/unictype/ctype-blank-tests (Files): Likewise.
30873         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30874         * modules/unictype/ctype-digit-tests (Files): Likewise.
30875         * modules/unictype/ctype-graph-tests (Files): Likewise.
30876         * modules/unictype/ctype-lower-tests (Files): Likewise.
30877         * modules/unictype/ctype-print-tests (Files): Likewise.
30878         * modules/unictype/ctype-punct-tests (Files): Likewise.
30879         * modules/unictype/ctype-space-tests (Files): Likewise.
30880         * modules/unictype/ctype-upper-tests (Files): Likewise.
30881         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30882         * modules/unictype/decimal-digit-tests (Files): Likewise.
30883         * modules/unictype/digit-tests (Files): Likewise.
30884         * modules/unictype/mirror-tests (Files): Likewise.
30885         * modules/unictype/numeric-tests (Files): Likewise.
30886         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30887         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30888         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30889         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30890         Likewise.
30891         * modules/unictype/property-bidi-block-separator-tests (Files):
30892         Likewise.
30893         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30894         Likewise.
30895         * modules/unictype/property-bidi-common-separator-tests (Files):
30896         Likewise.
30897         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30898         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30899         Likewise.
30900         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30901         Likewise.
30902         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30903         Likewise.
30904         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30905         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30906         Likewise.
30907         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30908         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30909         Likewise.
30910         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30911         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30912         * modules/unictype/property-bidi-segment-separator-tests (Files):
30913         Likewise.
30914         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30915         * modules/unictype/property-byname-tests (Files): Likewise.
30916         * modules/unictype/property-combining-tests (Files): Likewise.
30917         * modules/unictype/property-composite-tests (Files): Likewise.
30918         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30919         * modules/unictype/property-dash-tests (Files): Likewise.
30920         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30921         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30922         Likewise.
30923         * modules/unictype/property-deprecated-tests (Files): Likewise.
30924         * modules/unictype/property-diacritic-tests (Files): Likewise.
30925         * modules/unictype/property-extender-tests (Files): Likewise.
30926         * modules/unictype/property-format-control-tests (Files): Likewise.
30927         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30928         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30929         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30930         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30931         * modules/unictype/property-hyphen-tests (Files): Likewise.
30932         * modules/unictype/property-id-continue-tests (Files): Likewise.
30933         * modules/unictype/property-id-start-tests (Files): Likewise.
30934         * modules/unictype/property-ideographic-tests (Files): Likewise.
30935         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30936         * modules/unictype/property-ids-trinary-operator-tests (Files):
30937         Likewise.
30938         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30939         * modules/unictype/property-iso-control-tests (Files): Likewise.
30940         * modules/unictype/property-join-control-tests (Files): Likewise.
30941         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30942         * modules/unictype/property-line-separator-tests (Files): Likewise.
30943         * modules/unictype/property-logical-order-exception-tests (Files):
30944         Likewise.
30945         * modules/unictype/property-lowercase-tests (Files): Likewise.
30946         * modules/unictype/property-math-tests (Files): Likewise.
30947         * modules/unictype/property-non-break-tests (Files): Likewise.
30948         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30949         * modules/unictype/property-numeric-tests (Files): Likewise.
30950         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30951         * modules/unictype/property-other-default-ignorable-code-point-tests
30952         (Files): Likewise.
30953         * modules/unictype/property-other-grapheme-extend-tests (Files):
30954         Likewise.
30955         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30956         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30957         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30958         * modules/unictype/property-other-math-tests (Files): Likewise.
30959         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30960         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30961         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30962         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30963         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30964         * modules/unictype/property-private-use-tests (Files): Likewise.
30965         * modules/unictype/property-punctuation-tests (Files): Likewise.
30966         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30967         * modules/unictype/property-radical-tests (Files): Likewise.
30968         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30969         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30970         * modules/unictype/property-space-tests (Files): Likewise.
30971         * modules/unictype/property-terminal-punctuation-tests (Files):
30972         Likewise.
30973         * modules/unictype/property-test-tests (Files): Likewise.
30974         * modules/unictype/property-titlecase-tests (Files): Likewise.
30975         * modules/unictype/property-unassigned-code-value-tests (Files):
30976         Likewise.
30977         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30978         * modules/unictype/property-uppercase-tests (Files): Likewise.
30979         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30980         * modules/unictype/property-white-space-tests (Files): Likewise.
30981         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30982         * modules/unictype/property-xid-start-tests (Files): Likewise.
30983         * modules/unictype/property-zero-width-tests (Files): Likewise.
30984         * modules/unictype/scripts-tests (Files): Likewise.
30985         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30986         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30987         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
30988         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
30989         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
30990         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
30991         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
30992         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
30993         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
30994         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
30995         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
30996         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
30997         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
30998         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
30999         * modules/uninorm/composition-tests (Files): Likewise.
31000         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31001         * modules/uninorm/decomposition-tests (Files): Likewise.
31002         * modules/uninorm/filter-tests (Files): Likewise.
31003         * modules/uninorm/nfc-tests (Files): Likewise.
31004         * modules/uninorm/nfd-tests (Files): Likewise.
31005         * modules/uninorm/nfkc-tests (Files): Likewise.
31006         * modules/uninorm/nfkd-tests (Files): Likewise.
31007         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31008         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31009         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31010         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31011         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31012         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31013         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31014         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31015         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31016         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31017         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31018         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31019         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31020         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31021         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31022         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31023         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31024         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31025         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31026         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31027         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31028         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31029         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31030         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31031         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31032         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31033         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31034         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31035         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31036         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31037         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31038         * modules/uniwidth/u8-width-tests (Files): Likewise.
31039         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31040         * modules/uniwidth/u16-width-tests (Files): Likewise.
31041         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31042         * modules/uniwidth/u32-width-tests (Files): Likewise.
31043         * modules/uniwidth/width-tests (Files): Likewise.
31044         * modules/unlink-tests (Files): Likewise.
31045         * modules/unsetenv-tests (Files): Likewise.
31046         * modules/usleep-tests (Files): Likewise.
31047         * modules/utimens-tests (Files): Likewise.
31048         * modules/utimensat-tests (Files): Likewise.
31049         * modules/vasnprintf-posix-tests (Files): Likewise.
31050         * modules/vasnprintf-tests (Files): Likewise.
31051         * modules/vasprintf-posix-tests (Files): Likewise.
31052         * modules/vasprintf-tests (Files): Likewise.
31053         * modules/vdprintf-posix-tests (Files): Likewise.
31054         * modules/vfprintf-posix-tests (Files): Likewise.
31055         * modules/vprintf-posix-tests (Files): Likewise.
31056         * modules/vsnprintf-posix-tests (Files): Likewise.
31057         * modules/vsnprintf-tests (Files): Likewise.
31058         * modules/vsprintf-posix-tests (Files): Likewise.
31059         * modules/wcrtomb-tests (Files): Likewise.
31060         * modules/wcsnrtombs-tests (Files): Likewise.
31061         * modules/wcsrtombs-tests (Files): Likewise.
31062         * modules/wctype-tests (Files): Likewise.
31063         * modules/wcwidth-tests (Files): Likewise.
31064         * modules/xmemdup0-tests (Files): Likewise.
31065         * modules/xprintf-posix-tests (Files): Likewise.
31066         * modules/xvasprintf-tests (Files): Likewise.
31067
31068 2009-12-24  Eric Blake  <ebb9@byu.net>
31069
31070         test-nanosleep: fix typo
31071         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31072         patch.
31073         Reported by Bruno Haible.
31074
31075 2009-12-24  Bruno Haible  <bruno@clisp.org>
31076
31077         Reduce namespace pollution on glibc systems.
31078         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31079         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31080         systems.
31081         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31082         <getopt.h> on glibc systems.
31083         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31084         systems.
31085         * lib/fcntl.c: Include <unistd.h> here instead.
31086
31087 2009-12-24  Bruno Haible  <bruno@clisp.org>
31088
31089         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31090
31091 2009-12-24  Eric Blake  <ebb9@byu.net>
31092
31093         tests: add signature checks
31094         * tests/signature.h (SIGNATURE_CHECK): New file.
31095         * modules/atexit-tests (Files): Use it.
31096         * modules/btowc-tests (Files): Likewise.
31097         * modules/canonicalize-lgpl-tests (Files): Likewise.
31098         * modules/ceilf-tests (Files): Likewise.
31099         * modules/ceill-tests (Files): Likewise.
31100         * modules/chown-tests (Files): Likewise.
31101         * modules/dprintf-posix-tests (Files): Likewise.
31102         * modules/dup2-tests (Files): Likewise.
31103         * modules/dup3-tests (Files): Likewise.
31104         * modules/duplocale-tests (Files): Likewise.
31105         * modules/fchdir-tests (Files): Likewise.
31106         * modules/fcntl-tests (Files): Likewise.
31107         * modules/fdopendir-tests (Files): Likewise.
31108         * modules/fflush-tests (Files): Likewise.
31109         * modules/flock-tests (Files): Likewise.
31110         * modules/floorf-tests (Files): Likewise.
31111         * modules/floorl-tests (Files): Likewise.
31112         * modules/fnmatch-tests (Files): Likewise.
31113         * modules/fopen-tests (Files): Likewise.
31114         * modules/fprintf-posix-tests (Files): Likewise.
31115         * modules/freopen-tests (Files): Likewise.
31116         * modules/frexp-nolibm-tests (Files): Likewise.
31117         * modules/frexp-tests (Files): Likewise.
31118         * modules/frexpl-nolibm-tests (Files): Likewise.
31119         * modules/frexpl-tests (Files): Likewise.
31120         * modules/fseek-tests (Files): Likewise.
31121         * modules/fseeko-tests (Files): Likewise.
31122         * modules/fsync-tests (Files): Likewise.
31123         * modules/ftell-tests (Files): Likewise.
31124         * modules/ftello-tests (Files): Likewise.
31125         * modules/futimens-tests (Files): Likewise.
31126         * modules/getaddrinfo-tests (Files): Likewise.
31127         * modules/getcwd-tests (Files): Likewise.
31128         * modules/getdelim-tests (Files): Likewise.
31129         * modules/getdtablesize-tests (Files): Likewise.
31130         * modules/getgroups-tests (Files): Likewise.
31131         * modules/gethostname-tests (Files): Likewise.
31132         * modules/getline-tests (Files): Likewise.
31133         * modules/getopt-posix-tests (Files): Likewise.
31134         * modules/gettimeofday-tests (Files): Likewise.
31135         * modules/glob-tests (Files): Likewise.
31136         * modules/iconv-tests (Files): Likewise.
31137         * modules/inet_ntop-tests (Files): Likewise.
31138         * modules/inet_pton-tests (Files): Likewise.
31139         * modules/isblank-tests (Files): Likewise.
31140         * modules/lchown-tests (Files): Likewise.
31141         * modules/ldexpl-tests (Files): Likewise.
31142         * modules/link-tests (Files): Likewise.
31143         * modules/linkat-tests (Files): Likewise.
31144         * modules/lseek-tests (Files): Likewise.
31145         * modules/lstat-tests (Files): Likewise.
31146         * modules/mbrtowc-tests (Files): Likewise.
31147         * modules/mbsinit-tests (Files): Likewise.
31148         * modules/mbsnrtowcs-tests (Files): Likewise.
31149         * modules/mbsrtowcs-tests (Files): Likewise.
31150         * modules/memchr-tests (Files): Likewise.
31151         * modules/memcmp-tests (Files): Likewise.
31152         * modules/memmem-tests (Files): Likewise.
31153         * modules/memrchr-tests (Files): Likewise.
31154         * modules/mkdir-tests (Files): Likewise.
31155         * modules/mkfifo-tests (Files): Likewise.
31156         * modules/mkfifoat-tests (Files): Likewise.
31157         * modules/mknod-tests (Files): Likewise.
31158         * modules/nanosleep-tests (Files): Likewise.
31159         * modules/nl_langinfo-tests (Files): Likewise.
31160         * modules/obstack-printf-tests (Files): Likewise.
31161         * modules/open-tests (Files): Likewise.
31162         * modules/openat-tests (Files): Likewise.
31163         * modules/perror-tests (Files): Likewise.
31164         * modules/pipe2-tests (Files): Likewise.
31165         * modules/poll-tests (Files): Likewise.
31166         * modules/popen-tests (Files): Likewise.
31167         * modules/posix_spawn-tests (Files): Likewise.
31168         * modules/posix_spawnp-tests (Files): Likewise.
31169         * modules/pread-tests (Files): Likewise.
31170         * modules/printf-posix-tests (Files): Likewise.
31171         * modules/pty-tests (Files): Likewise.
31172         * modules/random_r-tests (Files): Likewise.
31173         * modules/rawmemchr-tests (Files): Likewise.
31174         * modules/readlink-tests (Files): Likewise.
31175         * modules/remove-tests (Files): Likewise.
31176         * modules/rename-tests (Files): Likewise.
31177         * modules/renameat-tests (Files): Likewise.
31178         * modules/rmdir-tests (Files): Likewise.
31179         * modules/round-tests (Files): Likewise.
31180         * modules/roundf-tests (Files): Likewise.
31181         * modules/roundl-tests (Files): Likewise.
31182         * modules/select-tests (Files): Likewise.
31183         * modules/setenv-tests (Files): Likewise.
31184         * modules/sigaction-tests (Files): Likewise.
31185         * modules/sleep-tests (Files): Likewise.
31186         * modules/snprintf-posix-tests (Files): Likewise.
31187         * modules/snprintf-tests (Files): Likewise.
31188         * modules/sprintf-posix-tests (Files): Likewise.
31189         * modules/stat-tests (Files): Likewise.
31190         * modules/strcasestr-tests (Files): Likewise.
31191         * modules/strchrnul-tests (Files): Likewise.
31192         * modules/strerror-tests (Files): Likewise.
31193         * modules/strsignal-tests (Files): Likewise.
31194         * modules/strstr-tests (Files): Likewise.
31195         * modules/strtod-tests (Files): Likewise.
31196         * modules/strverscmp-tests (Files): Likewise.
31197         * modules/symlink-tests (Files): Likewise.
31198         * modules/symlinkat-tests (Files): Likewise.
31199         * modules/times-tests (Files): Likewise.
31200         * modules/trunc-tests (Files): Likewise.
31201         * modules/truncf-tests (Files): Likewise.
31202         * modules/truncl-tests (Files): Likewise.
31203         * modules/tsearch-tests (Files): Likewise.
31204         * modules/uname-tests (Files): Likewise.
31205         * modules/unlink-tests (Files): Likewise.
31206         * modules/unsetenv-tests (Files): Likewise.
31207         * modules/usleep-tests (Files): Likewise.
31208         * modules/utimensat-tests (Files): Likewise.
31209         * modules/vasprintf-tests (Files): Likewise.
31210         * modules/vdprintf-posix-tests (Files): Likewise.
31211         * modules/vfprintf-posix-tests (Files): Likewise.
31212         * modules/vprintf-posix-tests (Files): Likewise.
31213         * modules/vsnprintf-posix-tests (Files): Likewise.
31214         * modules/vsnprintf-tests (Files): Likewise.
31215         * modules/vsprintf-posix-tests (Files): Likewise.
31216         * modules/wcrtomb-tests (Files): Likewise.
31217         * modules/wcsnrtombs-tests (Files): Likewise.
31218         * modules/wcsrtombs-tests (Files): Likewise.
31219         * modules/wcwidth-tests (Files): Likewise.
31220         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31221         * tests/test-isinf.c (isinf): Likewise.
31222         * tests/test-isnan.c (isnan): Likewise.
31223         * tests/test-signbit.c (signbit): Likewise.
31224         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31225         declaration, either as macro or with correct signature.
31226         (select): Ensure function under test is declared with correct
31227         signature in correct header.
31228         * tests/test-atexit.c (atexit): Likewise.
31229         * tests/test-btowc.c (btowc): Likewise.
31230         * tests/test-canonicalize-lgpl.c (realpath)
31231         (canonicalize_file_name): Likewise.
31232         * tests/test-ceilf1.c (ceilf): Likewise.
31233         * tests/test-ceill.c (ceill): Likewise.
31234         * tests/test-chown.c (chown): Likewise.
31235         * tests/test-dprintf-posix.c (dprintf): Likewise.
31236         * tests/test-dup2.c (dup2): Likewise.
31237         * tests/test-dup3.c (dup3): Likewise.
31238         * tests/test-duplocale.c (duplocale): Likewise.
31239         * tests/test-fchdir.c (fchdir): Likewise.
31240         * tests/test-fchownat.c (fchownat): Likewise.
31241         * tests/test-fcntl.c (fcntl): Likewise.
31242         * tests/test-fdopendir.c (fdopendir): Likewise.
31243         * tests/test-fflush.c (fflush): Likewise.
31244         * tests/test-flock.c (flock): Likewise.
31245         * tests/test-floorf1.c (floorf): Likewise.
31246         * tests/test-floorl.c (floorl): Likewise.
31247         * tests/test-fnmatch.c (fnmatch): Likewise.
31248         * tests/test-fopen.c (fopen): Likewise.
31249         * tests/test-fprintf-posix.c (fprintf): Likewise.
31250         * tests/test-freopen.c (freopen): Likewise.
31251         * tests/test-frexp.c (frexp): Likewise.
31252         * tests/test-frexpl.c (frexpl): Likewise.
31253         * tests/test-fseek.c (fseek): Likewise.
31254         * tests/test-fseeko.c (fseeko): Likewise.
31255         * tests/test-fstatat.c (fstatat): Likewise.
31256         * tests/test-fsync.c (fsync): Likewise.
31257         * tests/test-ftell.c (ftell): Likewise.
31258         * tests/test-ftello.c (ftello): Likewise.
31259         * tests/test-futimens.c (futimens): Likewise.
31260         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31261         (gai_strerror): Likewise.
31262         * tests/test-getcwd.c (getcwd): Likewise.
31263         * tests/test-getdelim.c (getdelim): Likewise.
31264         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31265         * tests/test-getgroups.c (getgroups): Likewise.
31266         * tests/test-gethostname.c (gethostname): Likewise.
31267         * tests/test-getline.c (getline): Likewise.
31268         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31269         Likewise.
31270         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31271         * tests/test-glob.c (glob, globfree): Likewise.
31272         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31273         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31274         * tests/test-inet_pton.c (inet_pton): Likewise.
31275         * tests/test-isblank.c (isblank): Likewise.
31276         * tests/test-lchown.c (lchown): Likewise.
31277         * tests/test-ldexpl.c (ldexpl): Likewise.
31278         * tests/test-link.c (link): Likewise.
31279         * tests/test-linkat.c (linkat): Likewise.
31280         * tests/test-lseek.c (lseek): Likewise.
31281         * tests/test-lstat.c (lstat): Likewise.
31282         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31283         * tests/test-mbsinit.c (mbsinit): Likewise.
31284         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31285         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31286         * tests/test-memchr.c (memchr): Likewise.
31287         * tests/test-memcmp.c (memcmp): Likewise.
31288         * tests/test-memmem.c (memmem): Likewise.
31289         * tests/test-memrchr.c (memrchr): Likewise.
31290         * tests/test-mkdir.c (mkdir): Likewise.
31291         * tests/test-mkdirat.c (mkdirat): Likewise.
31292         * tests/test-mkfifo.c (mkfifo): Likewise.
31293         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31294         * tests/test-mknod.c (mknod): Likewise.
31295         * tests/test-nanosleep.c (nanosleep): Likewise.
31296         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31297         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31298         Likewise.
31299         * tests/test-open.c (open): Likewise.
31300         * tests/test-openat.c (openat): Likewise.
31301         * tests/test-perror.c (perror): Likewise.
31302         * tests/test-pipe2.c (pipe2): Likewise.
31303         * tests/test-poll.c (poll): Likewise.
31304         * tests/test-popen.c (popen, pclose): Likewise.
31305         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31306         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31307         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31308         (posix_spawn_file_actions_destroy)
31309         (posix_spawn_file_actions_addclose)
31310         (posix_spawn_file_actions_addopen)
31311         (posix_spawn_file_actions_adddup2): Likewise.
31312         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31313         * tests/test-pread.c (pread): Likewise.
31314         * tests/test-printf-posix.c (printf): Likewise.
31315         * tests/test-pty.c (openpty, forkpty): Likewise.
31316         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31317         (random_r): Likewise.
31318         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31319         * tests/test-readlink.c (readlink): Likewise.
31320         * tests/test-remove.c (remove): Likewise.
31321         * tests/test-rename.c (rename): Likewise.
31322         * tests/test-renameat.c (renameat): Likewise.
31323         * tests/test-rmdir.c (rmdir): Likewise.
31324         * tests/test-round1.c (round): Likewise.
31325         * tests/test-roundf1.c (roundf): Likewise.
31326         * tests/test-roundl.c (roundl): Likewise.
31327         * tests/test-setenv.c (setenv): Likewise.
31328         * tests/test-sigaction.c (sigaction): Likewise.
31329         * tests/test-sleep.c (sleep): Likewise.
31330         * tests/test-snprintf.c (snprintf): Likewise.
31331         * tests/test-sprintf-posix.c (sprintf): Likewise.
31332         * tests/test-stat.c (stat): Likewise.
31333         * tests/test-stpncpy.c (stpncpy): Likewise.
31334         * tests/test-strcasestr.c (strcasestr): Likewise.
31335         * tests/test-strchrnul.c (strchrnul): Likewise.
31336         * tests/test-strerror.c (strerror): Likewise.
31337         * tests/test-strsignal.c (strsignal): Likewise.
31338         * tests/test-strstr.c (strstr): Likewise.
31339         * tests/test-strtod.c (strtod): Likewise.
31340         * tests/test-strverscmp.c (strverscmp): Likewise.
31341         * tests/test-symlink.c (symlink): Likewise.
31342         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31343         * tests/test-times.c (times): Likewise.
31344         * tests/test-trunc1.c (trunc): Likewise.
31345         * tests/test-truncf1.c (truncf): Likewise.
31346         * tests/test-truncl.c (truncl): Likewise.
31347         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31348         Likewise.
31349         * tests/test-uname.c (uname): Likewise.
31350         * tests/test-unlink.c (unlink): Likewise.
31351         * tests/test-unlinkat.c (unlinkat): Likewise.
31352         * tests/test-unsetenv.c (unsetenv): Likewise.
31353         * tests/test-usleep.c (usleep): Likewise.
31354         * tests/test-utimensat.c (utimensat): Likewise.
31355         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31356         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31357         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31358         * tests/test-vprintf-posix.c (vprintf): Likewise.
31359         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31360         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31361         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31362         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31363         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31364         * tests/test-wcwidth.c (wcwidth): Likewise.
31365
31366         build: pull in conditional headers during GNULIB_POSIXCHECK
31367         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31368         definitions from any conditionally-included headers.
31369         * lib/stdlib.in.h (includes): Likewise.
31370         * lib/unistd.in.h (includes): Likewise.
31371
31372 2009-12-24  Bruno Haible  <bruno@clisp.org>
31373
31374         * tests/test-argv-iter.c: Include header file being tested immediately
31375         after config.h.
31376         * tests/test-base64.c: Likewise.
31377         * tests/test-flock.c: Likewise.
31378         * tests/test-fsync.c: Likewise.
31379         * tests/test-getdate.c: Likewise.
31380         * tests/test-getndelim2.c: Likewise.
31381         * tests/test-isfinite.c: Likewise.
31382         * tests/test-isinf.c: Likewise.
31383         * tests/test-strerror.c: Likewise.
31384         * tests/test-strsignal.c: Likewise.
31385
31386 2009-12-23  Eric Blake  <ebb9@byu.net>
31387
31388         unistd: work around cygwin bug
31389         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31390         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31391         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31392
31393 2009-12-23  Bruno Haible  <bruno@clisp.org>
31394
31395         localename: More tests.
31396         * tests/test-localename.c (SIZEOF): New macro.
31397         (categories): New variable.
31398         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31399         test_locale_name_default): Add test w.r.t. thread locale.
31400         (test_locale_name_thread): New function.
31401         (main): Invoke it.
31402
31403         localename: Make aware of thread locale.
31404         * lib/localename.h (gl_locale_name_thread): New declaration.
31405         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31406         behaviour with respect to thread locale.
31407         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31408         <langinfo.h>, glthread/lock.h.
31409         (SIZE_BITS): New macro.
31410         (string_hash): New function.
31411         (struct hash_node): New type.
31412         (HASH_TABLE_SIZE): New macro.
31413         (struniq_hash_table, struniq_lock): New variables.
31414         (struniq): New function.
31415         (gl_locale_name_thread): New function.
31416         (gl_locale_name): Invoke it.
31417         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31418         * modules/localename (Depends-on): Add lock.
31419         Reported by Mike Gran <spk121@yahoo.com>.
31420
31421 2009-12-23  Eric Blake  <ebb9@byu.net>
31422
31423         va-args: new module
31424         * modules/va-args: New file.
31425         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31426         * MODULES.html.sh (Core language properties): Mention it.
31427
31428         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31429         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31430         named alias for __attribute__((__unused__)).
31431         * lib/chown.c: Update client.
31432         * lib/fchmodat.c: Likewise.
31433         * lib/fts.c: Likewise.
31434         * lib/getdate.y: Likewise.
31435         * lib/getgroups.c: Likewise.
31436         * lib/getopt.c: Likewise.
31437         * lib/getugroups.c: Likewise.
31438         * lib/mkdir.c: Likewise.
31439         * lib/mkfifo.c: Likewise.
31440         * lib/mkfifoat.c: Likewise.
31441         * lib/mknod.c: Likewise.
31442         * lib/mknodat.c: Likewise.
31443         * lib/readlink.c: Likewise.
31444         * lib/se-context.in.h: Likewise.
31445         * lib/se-selinux.in.h: Likewise.
31446         * lib/sockets.c: Likewise.
31447         * lib/symlink.c: Likewise.
31448         * lib/symlinkat.c: Likewise.
31449         * lib/unicodeio.c: Likewise.
31450         * lib/unistr.h: Likewise.
31451         * tests/test-areadlink.c: Likewise.
31452         * tests/test-areadlinkat.c: Likewise.
31453         * tests/test-filenamecat.c: Likewise.
31454         * tests/test-fseeko.c: Likewise.
31455         * tests/test-ftello.c: Likewise.
31456         * tests/test-getdate.c: Likewise.
31457         * tests/test-getgroups.c: Likewise.
31458         * tests/test-gethostname.c: Likewise.
31459         * tests/test-quotearg.c: Likewise.
31460         * tests/test-version-etc.c: Likewise.
31461         * tests/test-xalloc-die.c: Likewise.
31462         * tests/test-xfprintf-posix.c: Likewise.
31463         * tests/test-xprintf-posix.c: Likewise.
31464         * tests/test-xvasprintf.c: Likewise.
31465
31466         tests: avoid compiler warnings
31467         * tests/test-fcntl.c (main): Delete unused parameters.
31468         * tests/test-freopen-safer.c (main): Likewise.
31469         * tests/test-xalloc-die.c (main): Mark unused parameters.
31470         * tests/test-fseeko.c (main): Likewise.
31471         * tests/test-ftello.c (main): Likewise.
31472         * tests/test-nanosleep.c (main): Avoid declaration warning.
31473         * tests/test-sleep.c (main): Likewise.
31474         * tests/test-unsetenv.c (main): Silence warning about string
31475         literal.
31476         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31477
31478 2009-12-23  Bruno Haible  <bruno@clisp.org>
31479
31480         * tests/test-localename.c (test_locale_name): New function, extracted
31481         from main. Also test mixed situations.
31482         (test_locale_name_posix, test_locale_name_environ,
31483         test_locale_name_default): New functions.
31484         (main): Invoke them all.
31485         * modules/localename-tests (configure.ac): Test for newlocale.
31486
31487 2009-12-23  Bruno Haible  <bruno@clisp.org>
31488
31489         unistd: Ensure getcwd gets declared before being overridden.
31490         * lib/unistd.in.h: Conditionally include <io.h>.
31491
31492 2009-12-22  Bruno Haible  <bruno@clisp.org>
31493
31494         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31495         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31496         (gl_WCHAR_H): Invoke it.
31497         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31498         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31499         Reported by Karl Berry <karl@freefriends.org>.
31500
31501 2009-12-22  Eric Blake  <ebb9@byu.net>
31502
31503         math, unistd: avoid redundant includes
31504         * lib/math.in.h (isnan): No need to re-include <math.h>.
31505         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31506
31507         getsubopt: work around cygwin bug
31508         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31509         avoid conflicting with system getsubopt.
31510         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31511         bug.
31512
31513         getopt: synchronize from glibc
31514         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31515         parameter order.  Adjust all callers.
31516         (_getopt_internal_r, main): Adjust quoting in error messages.
31517         Drop considerations for outdated POSIX 1003.2 error message.
31518         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31519         callers.
31520         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31521
31522         test-getopt: test stderr behavior
31523         * modules/getopt-posix-tests (Depends-on): Add dup2.
31524         * tests/test-getopt.c (ASSERT): Avoid stderr.
31525         (main): Move stderr to a temporary file.
31526         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31527         Instead, add parameter to inform caller if output occurred.
31528         (test_getopt): Adjust all existing tests to expect silence, and
31529         add new tests of leading ":".
31530         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31531         glibc shortcomings with leading "-:" or "+:" in optstring.
31532         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31533         Likewise.
31534         * doc/posix-functions/getopt.texi (getopt): Likewise.
31535
31536         test-getopt: enhance test
31537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31538         supports optind=0.
31539         * tests/test-getopt.c (OPTIND_MIN): Move...
31540         * tests/test-getopt.h (OPTIND_MIN): ...here.
31541         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31542         Require that optind=0 works, since modern BSD supports it in
31543         addition to optreset, and since coreutils expects it.
31544         (test_getopt_long_only): New test.
31545         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31546         glibc shortcomings with 'W;', and enforcement of optind=0.
31547         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31548         Likewise.
31549
31550 2009-12-21  Bruno Haible  <bruno@clisp.org>
31551
31552         localename: Improvements for MacOS X and Cygwin.
31553         * lib/localename.h (gl_locale_name_environ): New declaration.
31554         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31555         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31556         (gl_locale_name_posix): Invoke it.
31557         (gl_locale_name_default): Add comments. Use Windows native API also on
31558         Cygwin.
31559
31560 2009-12-21  Bruno Haible  <bruno@clisp.org>
31561
31562         Update list of Win32 locale ids.
31563         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31564         (LANG_SAMI): Renamed from LANG_SAAMI.
31565         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31566         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31567         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31568         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31569         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31570         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31571         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31572         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31573         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31574         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31575         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31576         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31577         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31578         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31579         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31580         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31581         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31582         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31583         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31584         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31585         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31586         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31587         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31588         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31589         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31590         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31591         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31592         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31593         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31594         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31595         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31596         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31597         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31598         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31599         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31600         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31601         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31602         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31603         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31604         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31605         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31606         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31607         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31608         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31609         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31610         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31611         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31612         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31613         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31614         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31615         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31616         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31617         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31618         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31619         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31620         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31621         Add more languages and countries for Sami, Sorbian. Add more countries
31622         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31623         for Pashto. Change country for Syriac, Tswana.
31624
31625 2009-12-21  Eric Blake  <ebb9@byu.net>
31626
31627         test-utimens: avoid spurious failure
31628         * tests/test-chown.h (nap): Factor...
31629         * tests/nap.h: ...into new file.
31630         * tests/test-lchown.h (nap): Avoid duplication.
31631         * tests/test-utimens-common.h (nap): Use shared implementation,
31632         necessary on file systems with 1-second resolution.
31633         * modules/chown-tests (Files): Include new file.
31634         * modules/fdutimensat-tests (Files): Likewise.
31635         * modules/futimens-tests (Files): Likewise.
31636         * modules/lchown-tests (Files): Likewise.
31637         * modules/openat-tests (Files): Likewise.
31638         * modules/utimens-tests (Files): Likewise.
31639         * modules/utimensat-tests (Files): Likewise.
31640
31641 2009-12-19  Eric Blake  <ebb9@byu.net>
31642
31643         futimens, utimensat: work around Linux bug
31644         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31645         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31646         * lib/utimensat.c (rpl_utimensat): Work around it.
31647         * lib/futimens.c (rpl_futimens): Adjust comment.
31648
31649         utimens: work around Linux ctime bug
31650         * lib/utimens.c (detect_ctime_bug): New helper function.
31651         (update_timespec): Differentiate between workaround needed for
31652         this bug vs. what is needed for systems that lack utimensat.
31653         (fdutimens, lutimens): Work around bug.
31654
31655         utimens: check for ctime update
31656         * tests/test-utimens-common.h (check_ctime): Define.
31657         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31658         * tests/test-futimens.h (test_futimens): Likewise.
31659         * tests/test-lutimens.h (test_lutimens): Likewise.
31660         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31661         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31662
31663 2009-12-19  Bruno Haible  <bruno@clisp.org>
31664
31665         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31666         * tests/test-dprintf-posix2.sh: New file.
31667         * tests/test-dprintf-posix2.c: New file.
31668         * modules/dprintf-posix-tests (Files): Add them.
31669         (configure.ac): Check for getrlimit and setrlimit.
31670         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31671
31672 2009-12-19  Bruno Haible  <bruno@clisp.org>
31673
31674         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31675         * tests/test-fprintf-posix3.sh: New file.
31676         * tests/test-fprintf-posix3.c: New file.
31677         * modules/fprintf-posix-tests (Files): Add them.
31678         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31679
31680 2009-12-19  Eric Blake  <ebb9@byu.net>
31681
31682         dirfd: fix prototype
31683         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31684         * lib/dirfd.c (dirfd): Likewise.
31685
31686         canonicalize: reduce memory usage
31687         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31688         allocation to size.
31689         Reported by Solar Designer <solar@openwall.com>.
31690
31691 2009-12-19  Bruno Haible  <bruno@clisp.org>
31692
31693         New module attribute 'Applicability'.
31694         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31695         * gnulib-tool: New option --extract-applicability.
31696         (func_usage): Document it.
31697         (sed_extract_prog): Recognize it.
31698         (func_get_applicability): New function.
31699         (func_import): Generalize handling of 'link-warning' module.
31700         * modules/link-warning (Applicability): New section.
31701         * modules/arg-nonnull (Applicability): New section.
31702         Repoted by Simon Josefsson <simon@josefsson.org>.
31703
31704 2009-12-19  Bruno Haible  <bruno@clisp.org>
31705
31706         fflush: tweak
31707         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31708         * lib/fseeko.c (rpl_fseeko): Likewise.
31709
31710 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31711
31712         * lib/gl_list.h: Fix typo in comment.
31713
31714 2009-12-16  Eric Blake  <ebb9@byu.net>
31715
31716         fcntl: use to simplify other modules
31717         * modules/cloexec (Depends-on): Add fcntl.
31718         * modules/fchdir (Depends-on): Likewise.
31719         * modules/fd-safer-flag (Depends-on): Likewise.
31720         * modules/unistd-safer (Depends-on): Likewise.
31721         * modules/dup3 (configure.ac): Set module indicator.
31722         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31723         missing.
31724         * lib/fchdir.c (_gl_register_dup): Fix comment.
31725         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31726         * lib/dup-safer.c (dup_safer): Likewise.
31727         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31728         * lib/dup3.c (dup3): Likewise.
31729         * tests/test-fchdir.c (main): Enhance test.
31730         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31731
31732         fcntl: port portions of fcntl to mingw
31733         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31734         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31735         replacement for mingw.
31736         * modules/fcntl (Description): Update.
31737         (Depends-on): Add dup2.
31738         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31739         * modules/fcntl-h (Makefile.am): Substitute it.
31740         * lib/fcntl.in.h (fcntl): Update declaration.
31741         (F_DUPFD, F_GETFD): New macros, when needed.
31742         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31743         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31744         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31745         we now guarantee.
31746
31747         fcntl: work around cygwin bug in F_DUPFD
31748         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31749         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31750         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31751         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31752         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31753
31754         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31755         * modules/fcntl (Files): List new files.
31756         (configure.ac): Run a test.
31757         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31758         * lib/fcntl.c (rpl_fcntl): Likewise.
31759         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31760         (gl_FCNTL_H): Always replace fcntl.h.
31761         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31762         * lib/fcntl.in.h (fcntl): Declare replacement.
31763         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31764         needed, plus a witness.
31765         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31766         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31767         * tests/test-fcntl.c: New file.
31768         * modules/fcntl-tests: Likewise.
31769
31770         binary-io: avoid potential compilation warning
31771         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31772         directives.
31773
31774         fflush: avoid compilation error on NetBSD
31775         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31776         between off_t and fpos_t, since the latter is sometimes a struct.
31777         * lib/fseeko.c (rpl_fseeko): Likewise.
31778         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31779
31780 2009-12-15  Eric Blake  <ebb9@byu.net>
31781
31782         fcntl-h, stdio, sys_ioctl: fix declarations
31783         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31784         function must not take arguments.
31785         * lib/sys_ioctl.in.h (ioctl): Likewise.
31786         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31787         (open): Add a link warning.
31788
31789 2009-12-15  Jim Meyering  <meyering@redhat.com>
31790
31791         areadlink, areadlink-with-size: relax license to LGPLv2+
31792         * modules/areadlink (License): Relax to LGPLv2+.
31793         * modules/areadlink-with-size (License): Likewise.
31794
31795 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31796             Bruno Haible  <bruno@clisp.org>
31797
31798         *printf: Fix memory leak.
31799         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31800         * lib/vfprintf.c (vfprintf): Likewise.
31801         * lib/dprintf.c (dprintf): Likewise.
31802         * lib/vdprintf.c (vdprintf): Likewise.
31803
31804 2009-12-14  Eric Blake  <ebb9@byu.net>
31805
31806         accept4: adjust module dependencies
31807         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31808
31809         utimens: one more try at avoiding compiler warning
31810         * lib/utimens.c (lutimens): Lower scope of result.
31811
31812 2009-12-13  Bruno Haible  <bruno@clisp.org>
31813
31814         Move the malloc checking from module 'list' to new module 'xlist'.
31815         * modules/xlist: New file.
31816         * lib/gl_xlist.h: New file.
31817         * lib/gl_xlist.c: New file.
31818         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31819         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31820         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31821         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31822         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31823         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31824         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31825         gl_sortedlist_nx_add): New declarations.
31826         (struct gl_list_implementation): Rename and change methods accordingly.
31827         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31828         (gl_list_nx_create): Renamed from gl_list_create.
31829         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31830         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31831         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31832         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31833         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31834         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31835         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31836         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31837         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31838         gl_list_create_empty.
31839         (gl_list_nx_create): Renamed from gl_list_create.
31840         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31841         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31842         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31843         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31844         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31845         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31846         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31847         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31848         * lib/gl_array_list.c: Don't include xalloc.h.
31849         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31850         NULL upon out-of-memory.
31851         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31852         out-of-memory.
31853         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31854         Change return type to 'int'.
31855         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31856         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31857         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31858         upon out-of-memory.
31859         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31860         upon out-of-memory.
31861         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31862         upon out-of-memory.
31863         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31864         upon out-of-memory.
31865         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31866         out-of-memory.
31867         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31868         Update.
31869         (gl_array_list_implementation): Update.
31870         * lib/gl_carray_list.c: Don't include xalloc.h.
31871         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31872         Return NULL upon out-of-memory.
31873         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31874         out-of-memory.
31875         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31876         Change return type to 'int'.
31877         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31878         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31879         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31880         upon out-of-memory.
31881         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31882         upon out-of-memory.
31883         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31884         out-of-memory.
31885         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31886         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31887         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31888         Update.
31889         (gl_carray_list_implementation): Update.
31890         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31891         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31892         gl_linked_create_empty. Return NULL upon out-of-memory.
31893         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31894         out-of-memory.
31895         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31896         Change return type to 'int'. Return -1 upon out-of-memory.
31897         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31898         out-of-memory.
31899         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31900         upon out-of-memory.
31901         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31902         upon out-of-memory.
31903         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31904         NULL upon out-of-memory.
31905         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31906         upon out-of-memory.
31907         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31908         out-of-memory.
31909         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31910         Update.
31911         * lib/gl_linked_list.c: Don't include xalloc.h.
31912         (gl_linked_list_implementation): Update.
31913         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31914         (add_to_bucket): Change return type to 'int'.
31915         (gl_linkedhash_list_implementation): Update.
31916         * lib/gl_anytree_list1.h (free_subtree): New function.
31917         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31918         gl_tree_create_empty. Return NULL upon out-of-memory.
31919         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31920         Change return type to 'int'. Return -1 upon out-of-memory.
31921         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31922         out-of-memory.
31923         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31924         (gl_tree_remove_node): New function, moved here from
31925         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31926         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31927         Update.
31928         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31929         malloc, not xmalloc. Return NULL upon out-of-memory.
31930         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31931         out-of-memory.
31932         (gl_tree_remove_node_from_tree): New function, extracted from
31933         gl_tree_remove_node.
31934         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31935         upon out-of-memory.
31936         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31937         out-of-memory.
31938         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31939         upon out-of-memory.
31940         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31941         upon out-of-memory.
31942         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31943         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31944         not xmalloc. Return NULL upon out-of-memory.
31945         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31946         out-of-memory.
31947         (gl_tree_remove_node_from_tree): New function, extracted from
31948         gl_tree_remove_node.
31949         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31950         upon out-of-memory.
31951         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31952         out-of-memory.
31953         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31954         upon out-of-memory.
31955         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31956         upon out-of-memory.
31957         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31958         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31959         gl_anytree_list1.h before gl_anyavltree_list2.h.
31960         (gl_avltree_list_implementation): Update.
31961         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31962         gl_anytree_list1.h before gl_anyavltree_list2.h.
31963         (gl_rbtree_list_implementation): Update.
31964         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31965         Change return type to 'int'. Return -1 upon out-of-memory. Use
31966         __builtin_expect.
31967         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31968         (gl_avltreehash_list_implementation): Update.
31969         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31970         (gl_rbtreehash_list_implementation): Update.
31971         * modules/array-list (Depends-on): Remove xalloc.
31972         * modules/carray-list (Depends-on): Likewise.
31973         * modules/linked-list (Depends-on): Likewise.
31974         * modules/linkedhash-list (Depends-on): Likewise.
31975         * modules/avltree-list (Depends-on): Likewise.
31976         * modules/rbtree-list (Depends-on): Likewise.
31977         * modules/avltreehash-list (Depends-on): Likewise.
31978         * modules/rbtreehash-list (Depends-on): Likewise.
31979
31980         * modules/xsublist: New file.
31981         * lib/gl_xsublist.h: New file.
31982         * lib/gl_xsublist.c: New file.
31983         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31984         (gl_sublist_nx_create): New declaration.
31985         * lib/gl_sublist.c: Don't include xalloc.h.
31986         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31987         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
31988         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
31989         Change return type to 'int'. Return -1 upon out-of-memory.
31990         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
31991         upon out-of-memory.
31992         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
31993         NULL upon out-of-memory.
31994         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
31995         upon out-of-memory.
31996         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
31997         NULL upon out-of-memory.
31998         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
31999         NULL upon out-of-memory.
32000         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32001         upon out-of-memory.
32002         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32003         (gl_sublist_list_implementation): Update.
32004         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32005         upon out-of-memory.
32006         * modules/sublist (Depends-on): Remove xalloc.
32007
32008         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32009         * tests/test-carray_list.c: Likewise.
32010         * tests/test-linked_list.c: Likewise.
32011         * tests/test-linkedhash_list.c: Likewise.
32012         * tests/test-avltree_list.c: Likewise.
32013         * tests/test-rbtree_list.c: Likewise.
32014         * tests/test-avltreehash_list.c: Likewise.
32015         * tests/test-rbtreehash_list.c: Likewise.
32016         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32017         * modules/carray-list-tests (Makefile.am): Likewise.
32018         * modules/linked-list-tests (Makefile.am): Likewise.
32019         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32020         * modules/avltree-list-tests (Makefile.am): Likewise.
32021         * modules/rbtree-list-tests (Makefile.am): Likewise.
32022         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32023         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32024
32025         * NEWS: Mention the changes.
32026
32027         * lib/clean-temp.c: Include gl_xlist.h.
32028         * modules/clean-temp (Depends-on): Add xlist.
32029
32030         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32031         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32032
32033         * tests/test-array_oset.c: Include gl_xlist.h.
32034         * modules/array-oset-tests (Depends-on): Add xlist.
32035
32036         Reported by José E. Marchesi <jemarch@gnu.org>.
32037
32038 2009-12-13  Bruno Haible  <bruno@clisp.org>
32039
32040         Move the malloc checking from module 'oset' to new module 'xoset'.
32041         * modules/xoset: New file.
32042         * lib/gl_xoset.h: New file.
32043         * lib/gl_xoset.c: New file.
32044         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32045         declarations.
32046         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32047         (struct gl_oset_implementation): Rename and change methods accordingly.
32048         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32049         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32050         'int'. Mark as __warn_unused_result__.
32051         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32052         gl_oset_create_empty.
32053         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32054         'int'.
32055         * lib/gl_array_oset.c: Don't include xalloc.h.
32056         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32057         malloc, not xmalloc.
32058         (grow): Change return type to 'int'. Don't call xalloc_die.
32059         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32060         to 'int'.
32061         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32062         'int'.
32063         (gl_array_oset_implementation): Update.
32064         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32065         gl_tree_create_empty.
32066         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32067         'int'.
32068         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32069         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32070         xmalloc.
32071         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32072         not xmalloc.
32073         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32074         xmalloc.
32075         (gl_avltree_oset_implementation): Update.
32076         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32077         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32078         xmalloc.
32079         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32080         not xmalloc.
32081         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32082         xmalloc.
32083         (gl_rbtree_oset_implementation): Update.
32084         * modules/array-oset (Depends-on): Remove xalloc.
32085         * modules/avltree-oset (Depends-on): Likewise.
32086         * modules/rbtree-oset (Depends-on): Likewise.
32087         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32088         * tests/test-avltree_oset.c: Likewise.
32089         * tests/test-rbtree_oset.c: Likewise.
32090         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32091         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32092         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32093         * NEWS: Mention the change.
32094
32095 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32096
32097         maint.mk: allow a project to override release-prep commands
32098         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32099         commands into a new rule.
32100         (release-prep): New rule.
32101         (release-prep-hook): New overridable variable.
32102
32103 2009-12-13  Bruno Haible  <bruno@clisp.org>
32104
32105         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32106
32107 2009-12-13  Jim Meyering  <meyering@redhat.com>
32108
32109         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32110         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32111
32112 2009-12-12  Bruno Haible  <bruno@clisp.org>
32113
32114         duplocale: Tweak.
32115         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32116
32117 2009-12-12  Karl Berry  <karl@gnu.org>
32118
32119         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32120
32121 2009-12-12  Bruno Haible  <bruno@clisp.org>
32122
32123         * m4/po.m4: Undo incorrect untabification.
32124
32125 2009-12-12  Bruno Haible  <bruno@clisp.org>
32126
32127         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32128         * modules/c-strtod (Depends-on): Add locale.
32129         * modules/c-strtold (Depends-on): Likewise.
32130
32131 2009-12-12  Bruno Haible  <bruno@clisp.org>
32132
32133         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32134
32135 2009-12-11  Eric Blake  <ebb9@byu.net>
32136
32137         setenv: relax requirement in light of POSIX ruling
32138         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32139         not NULL.
32140         * tests/test-setenv.c (main): Relax test.
32141         * tests/test-unsetenv.c (main): Likewise.
32142         * doc/posix-functions/setenv.texi (setenv): Document this.
32143         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32144
32145 2009-12-11  Bruno Haible  <bruno@clisp.org>
32146
32147         New module 'fd-safer-flag'.
32148         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32149         * lib/dup-safer.c (dup_safer_flag): Remove function.
32150         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32151         * lib/fd-safer.c (fd_safer_flag): Remove function.
32152         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32153         * modules/cloexec (configure.ac): Drop indicator macro.
32154         * modules/fd-safer-flag: New file.
32155         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32156         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32157         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32158
32159 2009-12-11  Bruno Haible  <bruno@clisp.org>
32160
32161         Tests for module 'nl_langinfo'.
32162         * modules/nl_langinfo-tests: New file.
32163         * tests/test-nl_langinfo.sh: New file.
32164         * tests/test-nl_langinfo.c: New file.
32165
32166         New module 'nl_langinfo'.
32167         * lib/nl_langinfo.c: New file.
32168         * m4/nl_langinfo.m4: New file.
32169         * modules/nl_langinfo: New file.
32170         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32171
32172 2009-12-11  Bruno Haible  <bruno@clisp.org>
32173
32174         Tests for module 'langinfo'.
32175         * modules/langinfo-tests: New file.
32176         * tests/test-langinfo.c: New file.
32177
32178         New module 'langinfo'.
32179         * lib/langinfo.in.h: New file.
32180         * m4/langinfo_h.m4: New file.
32181         * modules/langinfo: New file.
32182         * doc/posix-headers/langinfo.texi: Mention the new module.
32183
32184 2009-12-11  Bruno Haible  <bruno@clisp.org>
32185
32186         * lib/config.charset: Untabify.
32187
32188 2009-12-11  Bruno Haible  <bruno@clisp.org>
32189
32190         * modules/unistd-safer (configure.ac): Drop indicator macro.
32191
32192 2009-12-11  Bruno Haible  <bruno@clisp.org>
32193
32194         Move pipe2-safer code to its own file.
32195         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32196         * lib/pipe-safer.c (pipe2_safer): Remove function.
32197         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32198         (Makefile.am): Add it to lib_SOURCES.
32199
32200 2009-12-10  Bruno Haible  <bruno@clisp.org>
32201
32202         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32203
32204 2009-12-10  Bruno Haible  <bruno@clisp.org>
32205
32206         Declare which arguments expect non-NULL values, for GCC and clang.
32207         * build-aux/arg-nonnull.h: New file.
32208         * modules/arg-nonnull: New file.
32209         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32210         (inet_ntop, inet_pton): Use it.
32211         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32212         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32213         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32214         (open, openat): Use it.
32215         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32216         (fnmatch): Use it.
32217         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32218         (getopt, getopt_long, getopt_long_only): Use it.
32219         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32220         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32221         Use it.
32222         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32223         (iconv_open): Use it.
32224         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32225         (strtoimax, strtoumax): Use it.
32226         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32227         (duplocale): Use it.
32228         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32229         (frexp, frexpl): Use it.
32230         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32231         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32232         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32233         (tsearch, tfind, tdelete, twalk): Use it.
32234         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32235         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32236         sigpending): Use it.
32237         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32238         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32239         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32240         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32241         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32242         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32243         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32244         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32245         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32246         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32247         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32248         Use it.
32249         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32250         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32251         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32252         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32253         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32254         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32255         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32256         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32257         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32258         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32259         strtoull, unsetenv): Use it.
32260         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32261         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32262         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32263         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32264         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32265         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32266         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32267         (strcasecmp, strncasecmp): Use it.
32268         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32269         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32270         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32271         rpl_setsockopt): Use it.
32272         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32273         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32274         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32275         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32276         (gettimeofday): Use it.
32277         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32278         (times): Use it.
32279         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32280         (uname): Use it.
32281         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32282         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32283         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32284         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32285         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32286         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32287         unlinkat, write): Use it.
32288         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32289         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32290         * lib/argv-iter.h: Include arg-nonnull.h.
32291         (_ATTRIBUTE_NONNULL_): Remove macro.
32292         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32293         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32294         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32295         optimization.
32296         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32297         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32298         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32299         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32300         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32301         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32302         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32303         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32304         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32305         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32306         * modules/dirent (Depends-on): Add arg-nonnull.
32307         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32308         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32309         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32310         * modules/fnmatch (Depends-on): Add arg-nonnull.
32311         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32312         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32313         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32314         * modules/glob (Depends-on): Add arg-nonnull.
32315         (Makefile.am): Insert arg-nonnull.h into glob.h.
32316         * modules/iconv_open (Depends-on): Add arg-nonnull.
32317         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32318         * modules/inttypes (Depends-on): Add arg-nonnull.
32319         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32320         * modules/locale (Depends-on): Add arg-nonnull.
32321         (Makefile.am): Insert arg-nonnull.h into locale.h.
32322         * modules/math (Depends-on): Add arg-nonnull.
32323         (Makefile.am): Insert arg-nonnull.h into math.h.
32324         * modules/netdb (Depends-on): Add arg-nonnull.
32325         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32326         * modules/search (Depends-on): Add arg-nonnull.
32327         (Makefile.am): Insert arg-nonnull.h into search.h.
32328         * modules/signal (Depends-on): Add arg-nonnull.
32329         (Makefile.am): Insert arg-nonnull.h into signal.h.
32330         * modules/spawn (Depends-on): Add arg-nonnull.
32331         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32332         * modules/stdio (Depends-on): Add arg-nonnull.
32333         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32334         * modules/stdlib (Depends-on): Add arg-nonnull.
32335         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32336         * modules/string (Depends-on): Add arg-nonnull.
32337         (Makefile.am): Insert arg-nonnull.h into string.h.
32338         * modules/strings (Depends-on): Add arg-nonnull.
32339         (Makefile.am): Insert arg-nonnull.h into strings.h.
32340         * modules/sys_socket (Depends-on): Add arg-nonnull.
32341         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32342         * modules/sys_stat (Depends-on): Add arg-nonnull.
32343         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32344         * modules/sys_time (Depends-on): Add arg-nonnull.
32345         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32346         * modules/sys_times (Depends-on): Add arg-nonnull.
32347         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32348         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32349         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32350         * modules/time (Depends-on): Add arg-nonnull.
32351         (Makefile.am): Insert arg-nonnull.h into time.h.
32352         * modules/unistd (Depends-on): Add arg-nonnull.
32353         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32354         * modules/wchar (Depends-on): Add arg-nonnull.
32355         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32356         * modules/argv-iter (Depends-on): Add arg-nonnull.
32357         * tests/test-canonicalize.c (null_ptr): New function.
32358         (main): Use it.
32359         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32360         (main): Use it.
32361         * tests/test-memmem.c (null_ptr): New function.
32362         (main): Use it.
32363         Reported by Jim Meyering.
32364
32365 2009-12-10  Bruno Haible  <bruno@clisp.org>
32366
32367         Use spaces for indentation, not tabs.
32368         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32369         * m4/*.m4: Untabify.
32370         * build-aux/*.h: Untabify.
32371         * tests/**/*.[hc]: Untabify.
32372         * README: New section "Indent with spaces, not TABs", based on
32373         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32374         * NEWS: Mention the change.
32375
32376 2009-12-10  Bruno Haible  <bruno@clisp.org>
32377
32378         pty test: Fix link error.
32379         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32380         test_pty_LDADD.
32381
32382 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32383
32384         * modules/pty: New file.
32385         * modules/pty-tests: New file.
32386         * m4/pty.m4: New file.
32387         * tests/test-pty.c: New file.
32388         * doc/glibc-headers/pty.texi: Modified.
32389         * doc/glibc-functions/forkpty.texi: Modified.
32390         * doc/glibc-functions/openpty.texi: Modified.
32391
32392 2009-12-10  Bruno Haible  <bruno@clisp.org>
32393
32394         Avoid syntax error in C++ mode.
32395         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32396
32397 2009-12-10  Bruno Haible  <bruno@clisp.org>
32398
32399         Use sed with option -e.
32400         * gnulib-tool (func_version, func_emit_copyright_notice,
32401         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32402         option -e to sed.
32403         * modules/link-warning (Makefile.am): Likewise.
32404
32405 2009-12-10  Jim Meyering  <meyering@redhat.com>
32406
32407         mgetgroups: do not write bytes beyond end of malloc'd buffer
32408         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32409         username, we call getgroups with a one-element-shorter buffer,
32410         but still told it the length was original, max_n_groups.
32411
32412 2009-12-09  Eric Blake  <ebb9@byu.net>
32413
32414         cloexec: relax license
32415         * modules/cloexec (Maintainer): Add myself.
32416         (License): Use LGPL, not GPL.
32417
32418         link-warning: optimize generation
32419         * modules/link-warning (Makefile.am): Reduce process usage.
32420
32421 2009-12-09  Bruno Haible  <bruno@clisp.org>
32422
32423         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32424         workaround was added on 2009-11-17.
32425
32426 2009-12-09  Jim Meyering  <meyering@redhat.com>
32427             Bruno Haible  <bruno@clisp.org>
32428
32429         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32430         * modules/link-warning (Makefile.am): Make the comment-removing sed
32431         command more robust in the face of bootstrap-prepended comment lines.
32432
32433 2009-12-09  Bruno Haible  <bruno@clisp.org>
32434
32435         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32436         most one group.
32437
32438 2009-12-09  Simon Josefsson <simon@josefsson.org>
32439             Bruno Haible  <bruno@clisp.org>
32440
32441         * build-aux/link-warning.h: Add copyright notice.
32442         * modules/link-warning (Makefile.am): Generate link-warning.h from
32443         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32444         * NEWS: Mention change in link-warning module.
32445         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32446         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32447         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32448         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32449         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32450         * modules/math (Makefile.am): Add dependency to math.h.
32451         * modules/search (Makefile.am): Add dependency to search.h.
32452         * modules/signal (Makefile.am): Add dependency to signal.h.
32453         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32454         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32455         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32456         * modules/string (Makefile.am): Add dependency to string.h.
32457         * modules/strings (Makefile.am): Add dependency to strings.h.
32458         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32459         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32460         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32461         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32462         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32463         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32464         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32465         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32466         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32467
32468 2009-12-09  Bruno Haible  <bruno@clisp.org>
32469
32470         fchdir: Optimize away rpl_fstat when possible.
32471         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32472         REPLACE_OPEN_DIRECTORY.
32473         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32474
32475 2009-12-09  Bruno Haible  <bruno@clisp.org>
32476
32477         * lib/fchdir.c: Update comment.
32478
32479 2009-12-09  Bruno Haible  <bruno@clisp.org>
32480
32481         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32482
32483 2009-12-08  Eric Blake  <ebb9@byu.net>
32484
32485         fchdir: avoid memory leak on re-registration.
32486         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32487
32488 2009-12-08  Jim Meyering  <meyering@redhat.com>
32489
32490         init.sh: avoid Solaris 10 /bin/sh portability problem
32491         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32492         sourced script:
32493           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32494           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32495           bar
32496         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32497         and two tests used that idiom.
32498         * tests/init.sh: Update suggested usage comments.
32499         (path_prepend_): New function, to be used in place
32500         of the --src-path=DIR option.
32501         (setup_): Move PATH-prepending code into path_prepend_.
32502         * tests/test-pread.sh: Adapt to new usage.
32503         * tests/test-xalloc-die.sh: Likewise.
32504
32505 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32506
32507         * doc/gnulib.texi (Glibc pty.h): Add.
32508         * doc/glibc-functions/forkpty.texi: Add.
32509         * doc/glibc-functions/openpty.texi: Add.
32510         Suggested by Bruno Haible.
32511
32512 2009-12-08  Eric Blake  <ebb9@byu.net>
32513
32514         fchdir: fix logic bugs
32515         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32516         * tests/test-fchdir.c (main): Enhance test.
32517         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32518         is in use.
32519
32520         dup2: fix logic bugs
32521         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32522         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32523         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32524         exists.
32525         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32526
32527 2009-12-07  Eric Blake  <ebb9@byu.net>
32528
32529         unlink: fix m4 detection
32530         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32531
32532         unistd-safer: add unit test
32533         * modules/unistd-safer-tests: New file.
32534         * tests/test-dup-safer.c: Likewise.
32535         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32536         * tests/test-dup2.c (setmode): Likewise.
32537         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32538
32539         cloexec: preserve text vs. binary across dup_cloexec
32540         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32541         mode.
32542         * modules/dup2-tests (Depends-on): Add binary-io.
32543         * modules/cloexec-tests (Depends-on): Likewise.
32544         * tests/test-dup2.c (setmode, is_mode): New helpers.
32545         (main): Add tests that translation mode is preserved.
32546         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32547         Reported by Bruno Haible.
32548
32549         mgetgroups: reduce duplicate listings
32550         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32551         resulting array.
32552         * tests/test-chown.h (test_chown): Simplify client.
32553         * tests/test-lchown.h (test_lchown): Likewise.
32554
32555 2009-12-06  Bruno Haible  <bruno@clisp.org>
32556
32557         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32558         value.
32559
32560 2009-12-06  Bruno Haible  <bruno@clisp.org>
32561
32562         * lib/progname.c: Include stdio.h, stdlib.h.
32563         (set_program_name): Reject a NULL argument.
32564
32565 2009-12-05  Eric Blake  <ebb9@byu.net>
32566
32567         pipe2-safer: new module
32568         * modules/pipe2-safer: New file.
32569         * lib/unistd-safer.h (pipe2_safer): New prototype.
32570         * lib/unistd--.h (pipe2): New wrapper.
32571         * lib/pipe-safer.c (pipe2_safer): New function.
32572         * modules/pipe (Depends-on): Add pipe2-safer.
32573         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32574
32575         stdlib-safer: preserve cloexec flag for mkostemp[s]
32576         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32577         fd_safer_flag.
32578
32579         unistd-safer: allow preservation of cloexec status via flag
32580         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32581         prototypes.
32582         * lib/dup-safer.c (dup_safer_flag): New function.
32583         * lib/fd-safer.c (fd_safer_flag): Likewise.
32584         * modules/cloexec (configure.ac): Set witness.
32585
32586         test-dup2: enhance test
32587         * modules/dup2-tests (Depends-on): Add cloexec.
32588         * tests/test-dup2.c (main): Enhance test.
32589
32590         cloexec: add dup_cloexec
32591         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32592         header and comments.
32593         * lib/cloexec.c (set_cloexec_flag): Add comments.
32594         (dup_cloexec): New function, with mingw implementation borrowed
32595         from...
32596         * lib/w32spawn.h (dup_noinherit): ...here.
32597         * modules/execute (Depends-on): Add cloexec.
32598         * modules/pipe (Depends-on): Likewise.
32599         * modules/cloexec (Depends-on): Add dup2.
32600         * modules/cloexec-tests (Files): New file.
32601         * tests/test-cloexec.c: Likewise.
32602
32603         test-xalloc-die: fix test for mingw
32604         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32605         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32606         directory and .exe suffix off argv[0] output.
32607
32608         test-fseeko: fix test for mingw
32609         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32610         than undefining fseek, so test will pass on mingw.
32611
32612 2009-12-05  Bruno Haible  <bruno@clisp.org>
32613
32614         * lib/progname.h (set_program_name): Clarify specification.
32615         * lib/progname.c (set_program_name): Likewise.
32616         Reported by Jim Meyering.
32617
32618 2009-12-05  Jim Meyering  <meyering@redhat.com>
32619
32620         maint.mk: backslash-escape parens in default regexp
32621         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32622         backslash-escape the literal parentheses.
32623
32624         maint.mk: news-date-check: use grep -E
32625         * top/maint.mk (today): Define a Make variable, not a...
32626         (news-date-check): ...shell variable.
32627         (news-date-regexp): Use the Make variable.
32628         Use grep's -E option.  Change the failing diagnostic to mention
32629         the variable, $(news-date-regexp).
32630
32631 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32632
32633         maintainer-makefile: allow customization of NEWS entry format
32634         * top/maint.mk (news-date-regexp): New overridable variable.
32635         (news-date-check): Use it.
32636
32637 2009-12-04  Eric Blake  <ebb9@byu.net>
32638
32639         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32640         * lib/mgetgroups.h (xgetgroups): New prototype.
32641         * lib/mgetgroups.c (xgetgroups): New wrapper.
32642         (mgetgroups): Handle ENOSYS.
32643         * modules/mgetgroups (Depends-on): Add realloc.
32644         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32645
32646         mgetgroups: avoid argument promotion issues with -1
32647         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32648         for invalid gid_t.
32649         * tests/test-chown.h (getegid, test_chown): Likewise.
32650         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32651
32652 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32653
32654         exclude: Fix header file problems.
32655         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32656
32657 2009-12-01  Jim Meyering  <meyering@redhat.com>
32658
32659         fts: fts_open: do not let an empty string cause immediate failure
32660         This is required in support of GNU rm, for which the command
32661         "rm A '' B" must process and remove both A and B, in spite of
32662         the empty string argument.
32663         * lib/fts.c (fts_open): Do not let the presence of an empty string
32664         cause fts_open to fail immediately.  Most fts-using tools must be
32665         able to process all arguments, in order, and can be expected to
32666         diagnose such arguments themselves.
32667
32668 2009-11-30  Eric Blake  <ebb9@byu.net>
32669
32670         utimens: fix compilation error
32671         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32672         Declare variable at right scope.
32673
32674 2009-11-29  Jim Meyering  <meyering@redhat.com>
32675
32676         bootstrap: handle perl-5.11's changed --version output
32677         * build-aux/bootstrap (get_version): Handle perl separately,
32678         since perl-5.11's --version output is different.
32679
32680 2009-11-28  Jim Meyering  <meyering@redhat.com>
32681
32682         userspec: depend on the inttostr module, too
32683         * modules/userspec (Depends-on): Add inttostr.
32684
32685         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32686         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32687         number of MAXUID when it evaluates to (uid_t) -1.
32688         Likewise for group ID.  Reported by Matt McCutchen in
32689         <http://savannah.gnu.org/bugs/?28113>
32690
32691         userspec: reformat to use spaces, not TABs
32692         * lib/userspec.c: Expand TABs to spaces.
32693         Add Emacs' "indent-tabs-mode: nil" hint.
32694
32695 2009-11-27  Eric Blake  <ebb9@byu.net>
32696
32697         getopt-gnu: flush out another BSD bug
32698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32699         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32700         flush out BSD bug.
32701         * tests/test-getopt.h (test_getopt): End lists with NULL.
32702         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32703         (test_getopt_long_posix): Enhance test.
32704         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32705         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32706         getopt-gnu.
32707         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32708         Likewise.
32709
32710 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32711
32712         * modules/idpriv-droptemp-tests (Notice): Fix text.
32713
32714 2009-11-27  Jim Meyering  <meyering@redhat.com>
32715
32716         test-xalloc-die: avoid spurious failure due to libtool argv difference
32717         In a libtool-enabled project, this test would fail due to a difference
32718         in the emitted program name, e.g.,
32719         -test-xalloc-die: memory exhausted
32720         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32721         Use program to avoid that.
32722         * modules/xalloc-die-tests (Depends-on): Add progname.
32723         * tests/test-xalloc-die.c: Include progname.h".
32724         (program_name): Remove decl.
32725         (main): Call set_program_name.
32726         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32727
32728 2009-11-26  Richard Jones  <rjones@redhat.com>
32729
32730         w32sock: leave win32 error in place.
32731         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32732
32733 2009-11-26  Eric Blake  <ebb9@byu.net>
32734
32735         init.sh: suggest to use skip_ and fail_ functions in comments
32736         * tests/init.sh: Add a sentence.
32737
32738 2009-11-25  Bruno Haible  <bruno@clisp.org>
32739
32740         init.sh: add documentation in comments
32741         * tests/init.sh: Add some developer and user documentation.
32742
32743 2009-11-26  Jim Meyering  <meyering@redhat.com>
32744
32745         init.sh: accommodate even those who specify bogus srcdir manually
32746         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32747         configure-time tests to be sanitized, so that there is no need to
32748         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32749         (with no double quotes) suffices.  However, since tests may be
32750         invoked manually, and since you may explicitly set srcdir to the
32751         name of a directory containing spaces, do quote its uses here.
32752         * tests/test-pread.sh: Likewise.
32753         Suggested by Bruno Haible.
32754
32755         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32756         * tests/test-pread.sh: Write no data into the pipe, because
32757         test-pread actually reads none.  This avoids a diagnostic,
32758         "bash: echo: write error: Broken pipe", that arises in the unusual
32759         event something is ignoring SIGPIPE, and might be interpreted
32760         as some sort of failure.  Reported by Bruno Haible.
32761
32762 2009-11-25  Jim Meyering  <meyering@redhat.com>
32763
32764         test-pread: cover failure with ESPIPE and EINVAL
32765         * tests/test-pread.c (main): Test for failure, too.
32766         * tests/test-pread.sh: Invoke with stdin on a pipe.
32767         Suggested by Eric Blake.
32768
32769         pread: improvement and fix
32770         * modules/pread (Depends-on): Depend on lseek, for portability to
32771         e.g., mingw.  Suggested by Eric Blake.
32772         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32773
32774         unistd.in.h: correct declaration of pread
32775         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32776         Reported by Richard W.M. Jones.
32777
32778         test-pread.sh: distribute the test script
32779         * modules/pread-tests (Files): Include test-pread.sh.
32780
32781         test-pread.sh: clean up
32782         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32783         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32784         That is unnecessary, since it's always ".".
32785         Suggestion from Eric Blake.
32786
32787         test-pread.sh: make executable
32788         * tests/test-pread.sh: Set executable bit.
32789         Reported by Eric Blake.
32790
32791         correct typo in test-pread.sh
32792         * tests/test-pread.sh: Add #! line.
32793
32794         test pread
32795         * tests/test-pread.c: New file.
32796         * tests/test-pread.sh: Likewise.
32797         * modules/pread-tests: Likewise.
32798
32799         pread: new module
32800         * modules/pread: New file.
32801         * lib/unistd.in.h (pread): Define/declare.
32802         * lib/pread.c (pread): New file.
32803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32804         * modules/unistd (Makefile.am): Substitute witnesses.
32805         * doc/posix-functions/pread.texi (pread): Update.
32806         * MODULES.html.sh: Add pread.
32807
32808 2009-11-25  Jim Meyering  <meyering@redhat.com>
32809
32810         tests/init.sh: new file to be used via most *.sh tests
32811         * tests/init.sh: New file.
32812
32813 2009-11-25  Eric Blake  <ebb9@byu.net>
32814
32815         utimens: work around older Linux failure with symlinks
32816         * lib/utimens.c (lutimensat_works_really): New variable.
32817         (fdutimens, lutimens): Use it to manage kernels that support
32818         nanosecond times on files, but not on symlinks.
32819         Reported by OndÅ™ej Vašík.
32820
32821         utimes: fix configure grammar
32822         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32823
32824 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32825
32826         regex: Fix fastmap for multibyte character ranges.
32827         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32828         characters when a multibyte character range is included.
32829
32830 2009-11-22  Andy Wingo  <wingo@pobox.com>
32831
32832         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32833         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32834
32835 2009-11-24  Bruno Haible  <bruno@clisp.org>
32836
32837         doc: Most *_l functions exist in MacOS X 10.5.
32838         * doc/posix-functions/duplocale.texi: Update platforms list.
32839         * doc/posix-functions/freelocale.texi: Likewise.
32840         * doc/posix-functions/newlocale.texi: Likewise.
32841         * doc/posix-functions/uselocale.texi: Likewise.
32842         * doc/posix-functions/isalnum_l.texi: Likewise.
32843         * doc/posix-functions/isalpha_l.texi: Likewise.
32844         * doc/posix-functions/isblank_l.texi: Likewise.
32845         * doc/posix-functions/iscntrl_l.texi: Likewise.
32846         * doc/posix-functions/isdigit_l.texi: Likewise.
32847         * doc/posix-functions/isgraph_l.texi: Likewise.
32848         * doc/posix-functions/islower_l.texi: Likewise.
32849         * doc/posix-functions/isprint_l.texi: Likewise.
32850         * doc/posix-functions/ispunct_l.texi: Likewise.
32851         * doc/posix-functions/isspace_l.texi: Likewise.
32852         * doc/posix-functions/isupper_l.texi: Likewise.
32853         * doc/posix-functions/iswalnum_l.texi: Likewise.
32854         * doc/posix-functions/iswalpha_l.texi: Likewise.
32855         * doc/posix-functions/iswblank_l.texi: Likewise.
32856         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32857         * doc/posix-functions/iswctype_l.texi: Likewise.
32858         * doc/posix-functions/iswdigit_l.texi: Likewise.
32859         * doc/posix-functions/iswgraph_l.texi: Likewise.
32860         * doc/posix-functions/iswlower_l.texi: Likewise.
32861         * doc/posix-functions/iswprint_l.texi: Likewise.
32862         * doc/posix-functions/iswpunct_l.texi: Likewise.
32863         * doc/posix-functions/iswspace_l.texi: Likewise.
32864         * doc/posix-functions/iswupper_l.texi: Likewise.
32865         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32866         * doc/posix-functions/isxdigit_l.texi: Likewise.
32867         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32868         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32869         * doc/posix-functions/strcoll_l.texi: Likewise.
32870         * doc/posix-functions/strfmon_l.texi: Likewise.
32871         * doc/posix-functions/strftime_l.texi: Likewise.
32872         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32873         * doc/posix-functions/strxfrm_l.texi: Likewise.
32874         * doc/posix-functions/tolower_l.texi: Likewise.
32875         * doc/posix-functions/toupper_l.texi: Likewise.
32876         * doc/posix-functions/towctrans_l.texi: Likewise.
32877         * doc/posix-functions/towlower_l.texi: Likewise.
32878         * doc/posix-functions/towupper_l.texi: Likewise.
32879         * doc/posix-functions/wcscoll_l.texi: Likewise.
32880         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32881         * doc/posix-functions/wctrans_l.texi: Likewise.
32882         * doc/posix-functions/wctype_l.texi: Likewise.
32883         * doc/glibc-functions/strptime_l.texi: Likewise.
32884         * doc/glibc-functions/strtod_l.texi: Likewise.
32885         * doc/glibc-functions/strtof_l.texi: Likewise.
32886         * doc/glibc-functions/strtol_l.texi: Likewise.
32887         * doc/glibc-functions/strtold_l.texi: Likewise.
32888         * doc/glibc-functions/strtoll_l.texi: Likewise.
32889         * doc/glibc-functions/strtoul_l.texi: Likewise.
32890         * doc/glibc-functions/strtoull_l.texi: Likewise.
32891         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32892         * doc/glibc-functions/wcstod_l.texi: Likewise.
32893         * doc/glibc-functions/wcstof_l.texi: Likewise.
32894         * doc/glibc-functions/wcstol_l.texi: Likewise.
32895         * doc/glibc-functions/wcstold_l.texi: Likewise.
32896         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32897         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32898         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32899
32900 2009-11-24  Bruno Haible  <bruno@clisp.org>
32901
32902         duplocale: Fix logic bug.
32903         * lib/duplocale.c: Don't include <langinfo.h>.
32904         (_NL_LOCALE_NAME): Remove macro.
32905         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32906         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32907
32908 2009-11-23  Jim Meyering  <meyering@redhat.com>
32909
32910         test-update-copyright: don't hard-code /usr/bin/perl
32911         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32912         perl to print the current year.  Gilles Espinasse reported that
32913         the replaced use of perl was hard-coded as /usr/bin/perl.
32914
32915 2009-11-23  Bruno Haible  <bruno@clisp.org>
32916
32917         duplocale: Add support for glibc 2.3.x.
32918         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32919
32920 2009-11-22  Bruno Haible  <bruno@clisp.org>
32921
32922         vasnprintf: Tiny optimization.
32923         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32924         MacOS X.
32925
32926 2009-11-22  Bruno Haible  <bruno@clisp.org>
32927
32928         Tests for module 'duplocale'.
32929         * modules/duplocale-tests: New file.
32930         * tests/test-duplocale.c: New file.
32931
32932         New module 'duplocale'.
32933         * m4/duplocale.m4: New file.
32934         * lib/locale.in.h (duplocale): New declaration.
32935         * lib/duplocale.c: New file.
32936         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32937         gl_LOCALE_H_DEFAULTS): New macros.
32938         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32939         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32940         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32941         REPLACE_DUPLOCALE.
32942         * modules/duplocale: New file.
32943         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32944
32945 2009-11-22  Bruno Haible  <bruno@clisp.org>
32946
32947         * modules/locale-tests (configure.ac): Test for newlocale function.
32948         * tests/test-locale.c: When the system has extended locale functions,
32949         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32950
32951         locale: Make locale_t available when possible.
32952         * lib/locale.in.h: Include <xlocale.h> when it exists.
32953         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32954         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32955         * modules/locale (Depends-on): Add extensions.
32956         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32957         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32958
32959 2009-11-22  Bruno Haible  <bruno@clisp.org>
32960
32961         Add comments.
32962         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32963         invocation.
32964         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32965         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32966         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32967
32968 2009-11-22  Bruno Haible  <bruno@clisp.org>
32969
32970         error: account for the possibility of freopen (stdout).
32971         * lib/error.c: Include <unistd.h>.
32972         (flush_stdout): New function, extracted from error and error_at_line.
32973         Determine stdout's fd dynamically.
32974         (error, error_at_line): Invoke flush_stdout.
32975         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32976         * modules/error (Depends-on): Add unistd.
32977
32978 2009-11-22  Bruno Haible  <bruno@clisp.org>
32979
32980         diffseq: Add comment.
32981         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32982
32983 2009-11-22  Jim Meyering  <meyering@redhat.com>
32984
32985         c-stack: avoid defining an unused static function
32986         * lib/c-stack.c (find_stack_direction): Do not define this function
32987         when it will not be used.
32988
32989         diffseq: avoid spurious gcc warnings
32990         * lib/diffseq.h (IF_LINT2): Define.
32991         (compareseq): Use it to initialize two members of "part".
32992         This avoids two used-uninitialized warnings.
32993
32994 2009-11-21  Jim Meyering  <meyering@redhat.com>
32995
32996         c-stack: avoid "ignoring return value of `write'" warning
32997         * lib/c-stack.c: Include "ignore-value.h".
32998         (die): Explicitly ignore each write return value.
32999         * modules/c-stack (Depends-on): Add ignore-value.
33000
33001 2009-11-21  Bruno Haible  <bruno@clisp.org>
33002
33003         diffseq: reduce scope of variable 'best'.
33004         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33005         variable, earlier used for two different purposes.
33006
33007 2009-11-21  Jim Meyering  <meyering@redhat.com>
33008
33009         diffseq: remove useless assignment to "best"
33010         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33011         assignment.  At that point "best" is already guaranteed to be zero.
33012
33013 2009-11-20  Eric Blake  <ebb9@byu.net>
33014
33015         build: mention ftp redirector in release announcements
33016         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33017         values that used to come from cfg.mk; mention FTP redirect URL.
33018         * build-aux/announce-gen: Mention the mirror list.
33019         Suggested by Karl Berry.
33020
33021         nanosleep: improve port to mingw
33022         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33024         LIB_NANOSLEEP, but only when needed.
33025         * modules/select (Link): Document LIBSOCKET.
33026         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33027         enough.
33028
33029         nanosleep: work around cygwin bug
33030         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33031         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33032         bug.
33033         (getnow): Delete, not needed.
33034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33035         LIB_CLOCK_GETTIME.
33036         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33037         clock-time, gettime.
33038         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33039         bug.
33040         * modules/nanosleep-tests: New test.
33041         * tests/test-nanosleep.c: New file.
33042
33043         sleep: work around cygwin bug
33044         * lib/sleep.c (rpl_sleep): Work around the bug.
33045         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33046         (gl_PREREQ_SLEEP): Delete unused macro.
33047         * modules/sleep (Depends-on): Add verify.
33048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33049         * modules/unistd (Makefile.am): Substitute witness.
33050         * lib/unistd.in.h (sleep): Update prototype.
33051         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33052         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33053         * modules/sleep-tests (Depends-on): Check for alarm.
33054
33055 2009-11-20  Jim Meyering  <meyering@redhat.com>
33056
33057         maint.mk: improve sc_prohibit_magic_number_exit
33058         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33059         so it does not match uses like System.exit(1).
33060         Add comments showing how to correct all offenders.
33061
33062 2009-11-19  Eric Blake  <ebb9@byu.net>
33063
33064         xalloc-die-tests: add missing library
33065         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33066
33067         test-xvasprintf: silence compiler warnings
33068         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33069         empty string from gcc.
33070
33071 2009-11-19  Jim Meyering  <meyering@redhat.com>
33072
33073         xfreopen: new module, from coreutils
33074         * modules/xfreopen: New module.
33075         * lib/xfreopen.c: New file.
33076         * lib/xfreopen.h: New file.
33077         * MODULES.html.sh (File stream based Input/Output"): Add it.
33078
33079 2009-11-19  Eric Blake  <ebb9@byu.net>
33080
33081         manywarnings: depend on warnings
33082         * modules/manywarnings (Depends-on): Add warnings.
33083
33084         build: avoid compiler warnings
33085         * lib/select.c (rpl_select): Delete unused variable.
33086         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33087
33088 2009-11-18  Eric Blake  <ebb9@byu.net>
33089
33090         tests: avoid false negative with --with-packager
33091         * tests/test-version-etc.sh: Discard packager information.
33092         * tests/test-argp-version-etc-1.sh: Likewise.
33093         Reported by Mike Frysinger.
33094
33095         utimens: fix regression on Solaris
33096         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33097         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33098         can only change fd timestamps via futimesat.  Instead, use an
33099         additional witness macro to avoid BSD bug.
33100         Reported by Jim Meyering.
33101
33102 2009-11-17  Eric Blake  <ebb9@byu.net>
33103
33104         usleep: use it to simplify tests
33105         * modules/stat-time-tests (Depends-on): Add usleep.
33106         (configure.ac): Drop usleep check.
33107         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33108         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33109         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33110         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33111         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33112         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33113         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33114         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33115         Likewise.
33116         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33117         * tests/test-lchown.h (nap): Likewise.
33118         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33119         * tests/test-stat-time.c (nap): Likewise.
33120         * tests/test-utimens-common.h (nap): Update comments.
33121
33122         usleep: new module
33123         * modules/usleep: New file.
33124         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33125         * lib/usleep.c (usleep): Likewise.
33126         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33127         * modules/unistd (Makefile.am): Substitute witnesses.
33128         * lib/unistd.in.h (usleep): Add declaration.
33129         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33130         * MODULES.html.sh (Date and time): Likewise.
33131         * modules/usleep-tests (Depends-on): New test.
33132         * tests/test-usleep.c: New file.
33133
33134         chown: work around OpenBSD bug
33135         * lib/chown.c (rpl_chown): Work around the bug.
33136         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33137         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33138         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33139         * modules/chown (Depends-on): Add stdbool.
33140         * modules/lchown (Depends-on): Likewise.
33141         * doc/posix-functions/chown.texi (chown): Document the bug.
33142         * doc/posix-functions/lchown.texi (lchown): Likewise.
33143         * tests/test-lchown.h (test_chown): Relax test.
33144
33145         mkstemp: avoid conflict with C++ keyword template
33146         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33147         * lib/mkostemp.c (mkostemp): Likewise.
33148         * lib/mkostemps.c (mkostemps): Likewise.
33149         * lib/mkstemp.c (mkstemp): Likewise.
33150         * lib/mkstemps.c (mkstemps): Likewise.
33151
33152         xalloc-die-tests: optimize
33153         * tests/test-xalloc-die.sh: Reduce number of processes.
33154
33155 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33156
33157         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33158         patch from ludo@gnu.org (Ludovic Courtès).
33159
33160 2009-11-17  Jim Meyering  <meyering@redhat.com>
33161
33162         version-etc: use proper license string
33163         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33164         * modules/version-etc-fsf: Likewise.
33165
33166 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33167
33168         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33169         printed to stdout.  Deal with EOL differences.
33170
33171 2009-11-17  Eric Blake  <ebb9@byu.net>
33172
33173         unsetenv: work around Solaris bug
33174         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33175         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33176         Reported by Jim Meyering.
33177
33178         vasnprintf: avoid compiler warnings
33179         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33180         variables.
33181         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33182
33183 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33184
33185         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33186         settings since xalloc-die is no longer the self test,
33187         xalloc-die.sh is.
33188
33189 2009-11-17  Jim Meyering  <meyering@redhat.com>
33190
33191         test-xalloc-die.sh: make the code agree with the commit log
33192         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33193         at the end, just in case you happen to have a test-xalloc-die
33194         program in some other PATH directory.
33195
33196         test-xalloc-die.sh: fix a portability bug
33197         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33198         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33199         Otherwise, argv[0] (as often seen in diagnostics) would be too
33200         system-dependent, sometimes with, and sometimes without the leading "./".
33201
33202         version-etc-fsf: relax license to LGPLv3+
33203         * modules/version-etc-fsf (License): Relax license.
33204
33205 2009-11-16  Eric Blake  <ebb9@byu.net>
33206
33207         xalloc-die-tests: avoid printing null pointer
33208         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33209         shell script.
33210         * tests/test-xalloc-die.c (program_name): Declare.
33211         * tests/test-xalloc-die.sh (tmpfiles): New file.
33212
33213         setenv, unsetenv: work around various bugs
33214         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33215         (setenv) [HAVE_SETENV]: Work around bugs.
33216         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33217         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33218         for bugs.
33219         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33220         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33222         * modules/stdlib (Makefile.am): Update substitutions.
33223         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33224         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33225         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33226         * modules/setenv-tests: New test.
33227         * modules/unsetenv-tests: Likewise.
33228         * tests/test-setenv.c: New file.
33229         * tests/test-unsetenv.c: Likewise.
33230
33231 2009-11-16  Jim Meyering  <meyering@redhat.com>
33232
33233         version-etc: relax license to LGPLv3+
33234         * modules/version-etc (License): Relax license.
33235
33236         better AC_REQUIRE expanded-before-required-warning avoidance
33237         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33238         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33239         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33240         which is no longer needed.
33241
33242 2009-11-16  Eric Blake  <ebb9@byu.net>
33243
33244         test-freading: clean up temporary file
33245         * tests/test-freading.c (main): Remove file on success, and use
33246         ASSERT more liberally.
33247         Reported by Jim Meyering.
33248
33249 2009-11-16  Jim Meyering  <meyering@redhat.com>
33250
33251         avoid new AC_REQUIRE expanded-before-required warnings
33252         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33253         merely using it.
33254         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33255         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33256
33257 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33258
33259         * tests/test-xalloc-die.c: New file.
33260         * modules/xalloc-die-tests: New file.
33261         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33262         XFAIL_TESTS so it can be appended by modules.
33263
33264 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33265
33266         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33267         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33268
33269 2009-11-14  Eric Blake  <ebb9@byu.net>
33270
33271         fnmatch: avoid compiler warning
33272         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33273         to silence compiler warning about mismatch signedness in ?:.
33274         Reported by Robert Millan.
33275
33276         intprops: add double-inclusion guard
33277         * lib/intprops.h: Allow idempotent includes.
33278         Suggested by Bruce Korb.
33279
33280         openat: detect Solaris fchownat bug
33281         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33282         penalizing glibc chownat when only lchownat is broken.
33283         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33284         trailing slash bugs.
33285         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33286         * modules/openat-tests (Files): Include more files.
33287         (Depends-on): Add mgetgroups, sleep, stat-time.
33288         (configure.ac): Add additional checks.
33289         (Makefile.am): Build new test.
33290         * tests/test-fchownat.c: New file.
33291
33292         lchown: detect Solaris and FreeBSD bug
33293         * lib/lchown.c (rpl_lchown): Work around bug.
33294         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33295         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33296         * modules/unistd (Makefile.am): Populate it.
33297         * lib/unistd.in.h (lchown): Update declaration.
33298         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33299         * modules/lchown-tests: New file.
33300         * tests/test-lchown.h (test_lchown): Likewise.
33301         * tests/test-lchown.c (main): Likewise.
33302
33303         chown: detect Solaris and FreeBSD bug
33304         * lib/chown.c (rpl_chown): Work around bug.
33305         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33306         (gl_PREREQ_CHOWN): Delete.
33307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33308         * modules/unistd (Makefile.am): Populate it.
33309         * lib/unistd.in.h (chown): Update declaration.
33310         * lib/lchown.c (chown): Update client.
33311         * modules/lchown (Depends-on): Add lstat.
33312         * doc/posix-functions/chown.texi (chown): Document the bug.
33313         * doc/posix-functions/getgroups.texi (getgroups): Document
33314         getgroups pitfall.
33315         * modules/chown-tests: New file.
33316         * tests/test-chown.h (test_chown): Likewise.
33317         * tests/test-chown.c (main): Likewise.
33318
33319 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33320
33321         gnulib-tool: correctly detect absence of m4 directories
33322         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33323
33324 2009-11-14  Jim Meyering  <meyering@redhat.com>
33325
33326         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33327         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33328
33329 2009-11-14  John W. Eaton  <jwe@gnu.org>
33330
33331         strftime.h: wrap funtion declaration in extern "C" block
33332         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33333
33334 2009-11-13  Eric Blake  <ebb9@byu.net>
33335
33336         getgroups: avoid compiler warning
33337         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33338
33339         getgroups: work around FreeBSD bug
33340         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33341         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33342         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33343         * tests/test-getgroups.c (main): Fix buffer overrun.
33344
33345         getgroups: avoid compilation failure
33346         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33347         * modules/getgroups (Depends-on): Add stdint.
33348
33349 2009-11-13  Jim Meyering  <meyering@redhat.com>
33350
33351         test-getgroups: avoid compilation failure
33352         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33353
33354 2009-11-13  Eric Blake  <ebb9@byu.net>
33355
33356         mgetgroups: new module, taken from coreutils
33357         * modules/mgetgroups: New file.
33358         * lib/mgetgroups.h: Likewise.
33359         * lib/mgetgroups.c (mgetgroups): Likewise.
33360         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33361         * MODULES.html.sh (Users and groups): Mention it.
33362
33363         getgroups: don't expose GETGROUPS_T to user
33364         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33365         an element at a time if GETGROUPS_T is wrong size.
33366         * lib/getugroups.h (getugroups): Change signature.
33367         * lib/unistd.in.h (getgroups): Likewise.
33368         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33369         signature needs fixing.
33370         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33371         AC_TYPE_GETGROUPS.
33372         * modules/group-member (Depends-on): Add getgroups.
33373         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33374         (group_member): Rely on getgroups replacement.
33375         * lib/getugroups.c (getugroups): Use gid_t.
33376         * tests/test-getgroups.c (main): Likewise.
33377         * NEWS: Mention the signature change.
33378         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33379         problem with signature.
33380         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33381         GETGROUPS_T is still useful for setgroups.
33382
33383         getgroups, getugroups: provide stubs for mingw
33384         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33385         * lib/getugroups.c (getugroups): Likewise.
33386         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33387         function.  Modernize replacement scheme.
33388         (gl_PREREQ_GETGROUPS): Delete.
33389         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33390         * modules/getgroups (configure.ac): Declare witness.
33391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33392         * modules/unistd (Depends-on): Substitute witness.
33393         * lib/unistd.in.h (getgroups): Declare replacement.
33394
33395         getgroups: avoid calling exit
33396         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33397         drop xalloc.
33398         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33399         dependencies.
33400         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33401         exiting, in the rare case of malloc failure.
33402
33403         getgroups: fix logic error
33404         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33405         has more than 20 groups.
33406         * modules/getgroups-tests: New test.
33407         * tests/test-getgroups.c: New file.
33408
33409 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33410
33411         * tests/test-base64.c: Improve.
33412
33413 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33414
33415         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33416         Blake <ebb9@byu.net>.
33417
33418 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33419
33420         * tests/test-xvasprintf.c: Add %s%s related checks.
33421
33422 2009-11-12  Eric Blake  <ebb9@byu.net>
33423
33424         version-etc: match standards.texi style
33425         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33426         and use <> only for URLs.
33427
33428 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33429
33430         fts: do not fail on a submount during traversal
33431         * lib/fts.c (fts_build): Read the stat info again after opening
33432         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33433         Original report at http://bugzilla.redhat.com/501848.
33434
33435 2009-11-12  Jim Meyering  <meyering@redhat.com>
33436
33437         bootstrap: sync from coreutils
33438         * build-aux/bootstrap (bootstrap_epilogue): New function.
33439         Use git_modules_config in one more place.  This make bootstrap's
33440         --gnulib-srcdir option more useful for testing.
33441
33442         bootstrap: generalize autoheader check
33443         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33444         AC_CONFIG_HEADERS.
33445
33446 2009-11-11  Eric Blake  <ebb9@byu.net>
33447
33448         mkfifoat: use new modules for Solaris and BSD bugs
33449         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33450         * lib/mkfifoat.c (mknodat): Split...
33451         * lib/mknodat.c (mknodat): ...into new file.
33452         * modules/mkfifoat (Files): Ship new file.
33453         (Depends-on): Add mkfifo, mknod.
33454         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33455         (Depends-on): Add symlink.
33456         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33457         redundant with test_mkfifo.h.
33458         (do_mkfifoat, do_mknodat): New helpers.
33459
33460         mknod: new module
33461         * modules/mknod: New file.
33462         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33463         * lib/mknod.c (mknod): Likewise.
33464         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33465         defaults.
33466         * modules/sys_stat (Makefile.am): Substitute them.
33467         * lib/sys_stat.in.h (mknod): Declare replacement.
33468         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33469         Document it.
33470         * doc/posix-functions/mknod.texi (mknod): Likewise.
33471         * modules/mknod-tests: New test.
33472         * tests/test-mknod.c: Likewise.
33473
33474         mkfifo: new module
33475         * modules/mkfifo: New file.
33476         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33477         * lib/mkfifo.c (mkfifo): Likewise.
33478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33479         defaults.
33480         * modules/sys_stat (Makefile.am): Substitute them.
33481         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33482         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33483         Document it.
33484         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33485         * modules/mkfifo-tests: New test.
33486         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33487         from test-mkfifoat.c.
33488         * tests/test-mkfifo.c: New file.
33489
33490         readlink: detect FreeBSD bug
33491         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33492         slash on symlink.
33493         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33494         * tests/test-readlink.h (test_readlink): Enhance test.
33495
33496         symlink: detect FreeBSD bug
33497         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33498         slash on symlink.
33499         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33500         * tests/test-symlink.h (test_symlink): Enhance test.
33501
33502 2009-11-10  Eric Blake  <ebb9@byu.net>
33503
33504         link: detect FreeBSD bug
33505         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33506         symlink.
33507         * doc/posix-functions/link.texi (link): Document the bug.
33508         * tests/test-link.h (test_link): Enhance test.
33509         * tests/test-linkat.c (main): Update caller.
33510
33511         unlink, remove: detect FreeBSD bug
33512         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33513         slash on symlink.
33514         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33515         * doc/posix-functions/remove.texi (remove): Likewise.
33516         * tests/test-unlink.h (test_unlink): Enhance test.
33517         * tests/test-remove.c (main): Likewise.
33518
33519 2009-11-09  Eric Blake  <ebb9@byu.net>
33520
33521         rename: detect FreeBSD bug
33522         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33523         slash on symlink.
33524         * modules/renameat-tests (Depends-on): Add filenamecat.
33525         * tests/test-rename.h (test_rename): Allow one more errno.
33526         * tests/test-renameat.c (main): Likewise.
33527         * doc/posix-functions/rename.texi (rename): Document the bug.
33528
33529         open: detect FreeBSD bug
33530         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33531         symlink.
33532         * doc/posix-functions/open.texi (open): Document the bug.
33533         * doc/posix-functions/utimes.texi (utimes): Likewise.
33534         * tests/test-open.h (test_open): Add parameters, and test symlink
33535         handling.
33536         * tests/test-open.c (main): Adjust caller.
33537         * tests/test-fcntl-safer.c (main): Likewise.
33538         * modules/open-tests (Depends-on): Add stdbool, symlink.
33539         * modules/fcntl-safer-tests (Depends-on): Likewise.
33540         * tests/test-openat.c (main): Add test-open tests.
33541
33542         stat: detect FreeBSD bug
33543         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33544         symlink.
33545         * doc/posix-functions/stat.texi (stat): Document the bug.
33546         * tests/test-stat.h (test_stat_func): Add argument.
33547         * tests/test-stat.c (main): Adjust caller.
33548         * tests/test-fstatat.c (main): Likewise.
33549         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33550         Reported by Jim Meyering.
33551
33552 2009-11-09  James Youngman  <jay@gnu.org>
33553
33554         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33555         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33556
33557 2009-11-08  Jim Meyering  <meyering@redhat.com>
33558
33559         utimens: remove invalid futimesat call
33560         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33561         It used the file descriptor of the target file as the DIR_FD
33562         parameter and NULL as the file name.  That caused failure with
33563         errno == EFAULT on FreeBSD-8.0-rc2
33564
33565 2009-11-07  Eric Blake  <ebb9@byu.net>
33566
33567         fflush, freadseek: use fseeko, not fseek
33568         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33569         (clear_ungetc_buffer): Avoid potential problems on large files.
33570         * lib/freadseek.c (freadseek): Likewise.
33571         * modules/freadseek (Depends-on): Add fseeko.
33572         * modules/fseek (configure.ac): Set a witness.
33573         * tests/test-fflush.c (main): Use fseeko.
33574         * tests/test-fpurge.c (fseek): Disable link warning.
33575         * tests/test-freadable.c (fseek): Likewise.
33576         * tests/test-freading.c (fseek): Likewise.
33577         * tests/test-fseeko.c (fseek): Likewise.
33578         * tests/test-ftell.c (fseek): Likewise.
33579         * tests/test-ftello.c (fseek): Likewise.
33580         * tests/test-fwritable.c (fseek): Likewise.
33581         * tests/test-fwriting.c (fseek): Likewise.
33582
33583 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33584
33585         * modules/memchr (Depends-on): Drop getpagesize dependency.
33586
33587 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33588
33589         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33590         Reported by Ludovic Courtès.
33591         * build-aux/pmccabe2html: Improve example usage.
33592         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33593
33594 2009-11-06  Jim Meyering  <meyering@redhat.com>
33595
33596         do-release-commit-and-tag: New module.
33597         Automate the release-commit and tag process.
33598         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33599         * modules/do-release-commit-and-tag: New file.
33600         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33601
33602 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33603
33604         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33605         because test-select.c uses inet_pton.
33606
33607 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33608
33609         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33610         GETADDRINFO_LIB.  Bump serial number.
33611         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33612         Suggested by Eric Blake <ebb9@byu.net>.
33613
33614 2009-11-05  Eric Blake  <ebb9@byu.net>
33615
33616         strtod: detect darwin bug
33617         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33618         Reported by Leo Davis.
33619
33620         freopen-safer: new module
33621         * modules/freopen-safer: New module.
33622         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33623         * lib/freopen-safer.c (freopen_safer): New file.
33624         * lib/stdio-safer.h (freopen_safer): New declaration.
33625         * lib/stdio--.h (freopen): New override.
33626         * MODULES.html.sh (File stream based Input/Output): Mention it.
33627         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33628         freopen-safer module.
33629         * doc/posix-functions/stderr.texi (stderr): Likewise.
33630         * doc/posix-functions/stdin.texi (stdin): Likewise.
33631         * doc/posix-functions/stdout.texi (stdout): Likewise.
33632         * modules/freopen-safer-tests: New test.
33633         * tests/test-reopen-safer.c: New file.
33634
33635 2009-11-05  Jim Meyering  <meyering@redhat.com>
33636
33637         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33638         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33639
33640 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33641
33642         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33643
33644 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33645
33646         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33647
33648 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33649
33650         Fix link error.
33651         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33652         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33653
33654 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33655
33656         * tests/test-func.c: Also test value of __func__.
33657
33658 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33659
33660         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33661         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33662
33663 2009-11-05  Bruno Haible  <bruno@clisp.org>
33664
33665         Fix link error.
33666         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33667         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33668         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33669
33670 2009-11-05  Bruno Haible  <bruno@clisp.org>
33671
33672         Tests for module 'inet_pton'.
33673         * modules/inet_pton-tests: New file.
33674         * tests/test-inet_pton.c: New file.
33675
33676 2009-11-05  Bruno Haible  <bruno@clisp.org>
33677
33678         Tests for module 'inet_ntop'.
33679         * modules/inet_ntop-tests: New file.
33680         * tests/test-inet_ntop.c: New file.
33681
33682 2009-11-04  Eric Blake  <ebb9@byu.net>
33683
33684         stdlib-safer: wrap all mkstemp variants
33685         * modules/mkostemp (configure.ac): Set witness.
33686         * modules/mkostemps (configure.ac): Likewise.
33687         * modules/mkstemps (configure.ac): Likewise.
33688         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33689         (mkstemps_safer): Wrap more functions.
33690         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33691         wrapping.
33692         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33693         (mkstemps_safer): Implement the wrappers.
33694
33695         mkstemps, mkostemps: new modules
33696         * modules/mkostemps: New module.
33697         * modules/mkstemps: Likewise.
33698         * lib/mkostemps.c (mkostemps): New file.
33699         * lib/mkstemps.c (mkstemps): Likewise.
33700         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33701         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33703         * modules/stdlib (Makefile.am): Substitute them.
33704         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33705         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33706         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33707         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33708         * MODULES.html.sh (File system functions): Mention them.
33709
33710         tempname: resync from glibc
33711         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33712         same values for __GT_FILE as glibc.  Abort even when assertions
33713         are disabled.
33714         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33715         match its value otherwise.  Allow idempotent inclusion.
33716         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33717         * lib/mkostemp.c (mkostemp): Likewise.
33718         * lib/mkstemp.c (mkstemp): Likewise.
33719         * lib/tmpfile.c (tmpfile): Likewise.
33720         * NEWS: Document this.
33721
33722         utimens: fix use of futimens on older Linux
33723         * lib/utimens.c (fdutimens): Use updated, rather than original,
33724         timespec to avoid bug in older Linux kernel.
33725         Reported by Simon Josefsson.
33726
33727 2009-11-04  Bruno Haible  <bruno@clisp.org>
33728
33729         Make num_processors more flexible and consistent.
33730         * lib/nproc.h (enum nproc_query): New type.
33731         (num_processors): Add a 'query' argument.
33732         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33733         (num_processors): Add a 'query' argument. Test the value of the
33734         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33735         mingw, count the number of CPUs available for the current process.
33736         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33737         Check for sched_getaffinity and sched_getaffinity_np.
33738         * modules/nproc (Depends-on): Add c-ctype, extensions.
33739         * NEWS: Mention the change.
33740
33741 2009-11-03  Bruno Haible  <bruno@clisp.org>
33742
33743         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33744
33745 2009-11-03  Jim Meyering  <meyering@redhat.com>
33746
33747         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33748         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33749         if it is defined.
33750
33751 2009-11-02  Eric Blake  <ebb9@byu.net>
33752
33753         mktime, timegm: share common declaration
33754         * lib/mktime-internal.h: New file.
33755         * lib/mktime.c: Use it rather than open-coding a declaration.
33756         * lib/timegm.c: Likewise.
33757         * modules/mktime (Files): Ship it.
33758         * modules/timegm (Files): Likewise.
33759         Suggested by Bruno Haible.
33760
33761         test-update-copyright: update test to match script changes
33762         * tests/test-update-copyright.sh: Avoid hard-coding perl
33763         location.  Don't update *.bak created by earlier runs.
33764
33765 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33766             Simon Josefsson  <simon@josefsson.org>
33767             Bruno Haible  <bruno@clisp.org>
33768
33769         Fix link error on Solaris 8.
33770         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33771         also in libnsl. Define also INET_PTON_LIB.
33772         * modules/inet_pton (Link): New section.
33773
33774 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33775             Bruno Haible  <bruno@clisp.org>
33776
33777         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33778         * modules/inet_ntop (Link): New section.
33779         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33780
33781 2009-11-02  Eric Blake  <ebb9@byu.net>
33782
33783         maint: avoid compiler warnings in m4 macros
33784         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33785         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33786
33787 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33788
33789         * m4/pmccabe2html.m4: Remove file.
33790         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33791         function.  Change maintainer.
33792         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33793         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33794         Courtès).
33795
33796 2009-10-31  Eric Blake  <ebb9@byu.net>
33797
33798         fseeko: fix m4 regression
33799         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33800         regression from 2009-10-27.
33801         Reported by Ralf Wildenhues.
33802
33803 2009-10-31  Jim Meyering  <meyering@redhat.com>
33804
33805         inttostr: aesthetics and improved (compile-time) safety
33806         Define inttype_is_signed rather than inttype_is_unsigned,
33807         since the sole use is via "#if inttype_is_signed".
33808         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33809         inttype_is_unsigned.
33810         * lib/offtostr.c (inttype_is_signed): Likewise.
33811         * lib/uinttostr.c (inttype_is_signed): Likewise.
33812         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33813         * lib/inttostr.c (inttostr): Use verify to cross-check the
33814         inttype_is_signed value and the signedness of the actual type.
33815         * modules/inttostr (Depends-on): Add verify.
33816
33817 2009-10-30  Eric Blake  <ebb9@byu.net>
33818
33819         build: avoid compiler warnings
33820         * lib/fchmodat.c (lchmod): Mark unused variables.
33821         * lib/getopt.c (_getopt_initialize): Likewise.
33822         * lib/mktime.c (__mktime_internal): Provide prototype.
33823         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33824         older gcc that do not understand #pragma GCC diagnostic.
33825         * lib/uinttostr.c (inttype_is_unsigned): Define.
33826         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33827
33828 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33829
33830         stat: fix compilation on AIX
33831         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33832         only see struct stat64.
33833
33834 2009-10-30  Eric Blake  <ebb9@byu.net>
33835
33836         exclude: make more robust
33837         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33838         rather than masking a coding bug.
33839         Suggested by Bruno Haible.
33840
33841 2009-10-30  Jim Meyering  <meyering@redhat.com>
33842
33843         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33844         Rather than putting #!/usr/bin/perl on the first line,
33845         start with a variant of what's recommended by "man perlrun" that
33846         invokes the first "perl" program from your shell's search path.
33847         * build-aux/gitlog-to-changelog: Replace #!... as above.
33848         Add a "Local Variables" perl mode setting.
33849         Prompted by a patch from Ludovic Courtès.
33850         Improved by Eric Blake.
33851         * build-aux/useless-if-before-free: Likewise.
33852         * build-aux/announce-gen: Likewise.
33853         * build-aux/update-copyright: Likewise.
33854
33855 2009-10-29  Eric Blake  <ebb9@byu.net>
33856
33857         filenamecat-lgpl: adjust clients
33858         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33859         filenamecat.
33860         * modules/renameat (Depends-on): Likewise.
33861
33862         filenamecat: split into filenamecat-lgpl
33863         * modules/filenamecat-lgpl: New module.
33864         * modules/filenamecat (Files): Move library-safe files into
33865         filenamecat-lgpl.
33866         (Depends-on): Add filenamecat-lgpl.
33867         (configure.ac): Declare witness.
33868         * lib/filenamecat.h (file_name_concat): Only declare when using
33869         GPL module.
33870         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33871         Move...
33872         * lib/filenamecat-lgpl.c: ...into new file.
33873         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33874         (gl_FILE_NAME_CONCAT): Use it.
33875         * MODULES.html.sh (File system functions): Mention new module.
33876
33877         argp: avoid memory leak
33878         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33879         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33880         base_name, since the latter malloc()s and can call exit().
33881         Leak introduced 2006-07-03.
33882
33883         dirname-lgpl: adjust clients that don't need full dirname
33884         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33885         * modules/filenamecat (Depends-on): Likewise.
33886         * modules/linkat (Depends-on): Likewise.
33887         * modules/mkancesdirs (Depends-on): Likewise.
33888         * modules/mkdir (Depends-on): Likewise.
33889         * modules/openat (Depends-on): Likewise.
33890         * modules/savewd (Depends-on): Likewise.
33891         * modules/rename (Depends-on): Likewise.
33892         (License): Relax license.
33893         * modules/mkdir-tests (Depends-on): Drop progname.
33894         (Makefile.am): Delete unneeded LDADD.
33895         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33896
33897         dirname: split into dirname-lgpl
33898         * modules/dirname-lgpl: New module.
33899         * modules/dirname (Files): Move library-safe files into
33900         dirname-lgpl.
33901         (Depends-on): Add dirname-lgpl.
33902         (configure.ac): Declare witness.
33903         * modules/double-slash-root (License): Relax license.
33904         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33905         module.
33906         * lib/dirname.c (dir_len, mdir_name): Move...
33907         * lib/dirname-lgpl.c: ...into new file.
33908         * lib/basename.c (last_component, base_len): Move...
33909         * lib/basename-lgpl.c: ...into new file.
33910         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33911         (gl_DIRNAME): Use it.
33912         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33913         Mention new module.
33914         * modules/dirname-tests (Depends-on): Add progname.
33915         * tests/test-dirname.c (program_name): Delete.
33916
33917         mkdir: make safe for libraries
33918         * modules/mkdir (Depends-on): Drop xalloc.
33919         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33920         exit.
33921
33922         tests: avoid some compiler warnings
33923         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33924         literals.
33925         * tests/test-memchr.c (main): Avoid type mismatch.
33926         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33927         * tests/test-base64.c (main): Likewise.
33928         * tests/test-getdelim.c (main): Likewise.
33929         * tests/test-gethostname.c (main): Likewise.
33930         * tests/test-getline.c (main): Likewise.
33931         * tests/test-netinet_in.c (main): Likewise.
33932         * tests/test-select.c (open_server_socket, main): Likewise.
33933         * tests/test-select-stdin.c (main): Likewise.
33934         * tests/test-sockets.c (main): Likewise.
33935         * tests/test-strsignal.c (main): Likewise.
33936         * tests/test-sys_select.c (main): Likewise.
33937         * tests/test-sys_socket.c (main): Likewise.
33938         * tests/test-u64.c (main): Likewise.
33939         * tests/test-xfprintf-posix.c (main): Likewise.
33940         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33941
33942         sockets: avoid compiler warning
33943         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33944
33945         maint: detect usage(1) and other suspicious exits
33946         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33947
33948 2009-10-29  Jim Meyering  <meyering@redhat.com>
33949
33950         timespec: long-to-int truncation could make timespec_cmp malfunction
33951         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33952         a multiple of 2^32 nanoseconds as no difference.
33953
33954 2009-10-28  Jim Meyering  <meyering@redhat.com>
33955
33956         fprintftime: wrap macro code argument in "do {...} while(0)"
33957         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33958         cpy macro must be a statement that can be followed by a semicolon.
33959         Now that the else clause contains a comment and is hence longer
33960         than one line, I require curly braces.  That in turn requires
33961         that we wrap this code block in the standard do...while(0).
33962
33963         fprintftime: remove stray semicolon from previous change
33964         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33965
33966         fprintftime: avoid a warning about ignored fwrite return value
33967         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33968         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33969         that is unsafe.
33970         * modules/fprintftime (Depends-on): Add ignore-value.
33971
33972         exclude: avoid an unwarranted warning
33973         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33974
33975 2009-10-27  Eric Blake  <ebb9@byu.net>
33976
33977         fseek: avoid compilation failure when fflush is replaced
33978         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33979         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33980         module is in use.
33981         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33982         module is not in use; since REPLACE_FSEEK worked otherwise.
33983         (GNULIB_FTELLO): Likewise for ftell.
33984         Reported by Ian Beckwith and others.
33985
33986 2009-10-27  Bruno Haible  <bruno@clisp.org>
33987
33988         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
33989         Reported by Jim Meyering.
33990
33991 2009-10-27  Jim Meyering  <jim@meyering.net>
33992             Bruno Haible  <bruno@clisp.org>
33993
33994         Avoid warning despite dropping the return value of fwrite.
33995         * lib/unicodeio.c: Include ignore-value.h.
33996         (fwrite_success_callback): Explicitly ignore fwrite's return value.
33997         * modules/unicodeio (Depends-on): Add ignore-value.
33998
33999 2009-10-26  Eric Blake  <ebb9@byu.net>
34000
34001         areadlinkat: fix fallback path
34002         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34003         pointer and zero.
34004
34005 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34006
34007         Use a better IO block size for modern systems
34008         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34009         * lib/md2.c: Likewise.
34010         * lib/md4.c: Likewise.
34011         * lib/md5.c: Likewise.
34012         * lib/sha1.c: Likewise.
34013         * lib/sha256.c: Likewise.
34014         * lib/sha512.c: Likewise.
34015
34016 2009-10-22  Eric Blake  <ebb9@byu.net>
34017
34018         tests: avoid several compiler warnings
34019         * tests/test-getcwd.c (main): Avoid buffer underflow.
34020         * tests/test-getdate.c (main): String literals are not safe with
34021         putenv, so use setenv.  Declare unused argument.
34022         * modules/getdate-tests (Depends-on): Add setenv.
34023         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34024         problems with string literals in char *.
34025         * tests/test-hash.c (main): Avoid shadowing declaration.
34026         (insert_new): Treat string literals as char const *.
34027         * tests/test-getopt.h (test_getopt): Likewise.
34028         (getopt_loop): Alter types to minimize casting elsewhere.
34029         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34030         (test_getopt_long_posix): Likewise.
34031         (do_getopt_long): Add wrapper to minimize casting.
34032         * tests/test-atexit.c (clear_temp_file): Use void.
34033         * tests/test-areadlink-with-size.c (main): Declare unused
34034         arguments.
34035         * tests/test-areadlink.c (main): Likewise.
34036         * tests/test-areadlinkat-with-size.c (main): Likewise.
34037         * tests/test-areadlinkat.c (main): Likewise.
34038         * tests/test-canonicalize-lgpl.c (main): Likewise.
34039         * tests/test-canonicalize.c (main): Likewise.
34040         * tests/test-dirent-safer.c (main): Likewise.
34041         * tests/test-dirname.c (main): Likewise.
34042         * tests/test-dup2.c (main): Likewise.
34043         * tests/test-fchdir.c (main): Likewise.
34044         * tests/test-fcntl-h.c (main): Likewise.
34045         * tests/test-fcntl-safer.c (main): Likewise.
34046         * tests/test-fdopendir.c (main): Likewise.
34047         * tests/test-fdutimensat.c (main): Likewise.
34048         * tests/test-fflush.c (main): Likewise.
34049         * tests/test-filenamecat.c (main): Likewise.
34050         * tests/test-filevercmp.c (main): Likewise.
34051         * tests/test-fopen-safer.c (main): Likewise.
34052         * tests/test-fopen.c (main): Likewise.
34053         * tests/test-fpending.c (main): Likewise.
34054         * tests/test-fpurge.c (main): Likewise.
34055         * tests/test-freading.c (main): Likewise.
34056         * tests/test-fstatat.c (main): Likewise.
34057         * tests/test-fsync.c (main): Likewise.
34058         * tests/test-futimens.c (main): Likewise.
34059         * tests/test-getndelim2.c (main): Likewise.
34060         * tests/test-gettimeofday.c (main): Likewise.
34061         * tests/test-getopt.c (main): Likewise.
34062         * tests/test-i-ring.c (main): Likewise.
34063         * tests/test-inttypes.c (main): Likewise.
34064         * tests/test-link.c (main): Likewise.
34065         * tests/test-lstat.c (main): Likewise.
34066         * tests/test-math.c (main): Likewise.
34067         * tests/test-md5.c (main): Likewise.
34068         * tests/test-memchr2.c (main): Likewise.
34069         * tests/test-memrchr.c (main): Likewise.
34070         * tests/test-mkdir.c (main): Likewise.
34071         * tests/test-mkdirat.c (main): Likewise.
34072         * tests/test-mkfifoat.c (main): Likewise.
34073         * tests/test-open.c (main): Likewise.
34074         * tests/test-openat-safer.c (main): Likewise.
34075         * tests/test-openat.c (main): Likewise.
34076         * tests/test-quotearg.c (main): Likewise.
34077         * tests/test-rawmemchr.c (main): Likewise.
34078         * tests/test-readlink.c (main): Likewise.
34079         * tests/test-remove.c (main): Likewise.
34080         * tests/test-rename.c (main): Likewise.
34081         * tests/test-renameat.c (main): Likewise.
34082         * tests/test-rmdir.c (main): Likewise.
34083         * tests/test-sha1.c (main): Likewise.
34084         * tests/test-signal.c (main): Likewise.
34085         * tests/test-sigaction.c (main): Likewise.
34086         * tests/test-stat.c (main): Likewise.
34087         * tests/test-stat-time.c (main): Likewise.
34088         * tests/test-stddef.c (main): Likewise.
34089         * tests/test-stdint.c (main): Likewise.
34090         * tests/test-stdio.c (main): Likewise.
34091         * tests/test-stdlib.c (main): Likewise.
34092         * tests/test-strchrnul.c (main): Likewise.
34093         * tests/test-strerror.c (main): Likewise.
34094         * tests/test-string.c (main): Likewise.
34095         * tests/test-strtod.c (main): Likewise.
34096         * tests/test-strverscmp.c (main): Likewise.
34097         * tests/test-symlink.c (main): Likewise.
34098         * tests/test-symlinkat.c (main): Likewise.
34099         * tests/test-sys_stat.c (main): Likewise.
34100         * tests/test-sys_time.c (main): Likewise.
34101         * tests/test-time.c (main): Likewise.
34102         * tests/test-unistd.c (main): Likewise.
34103         * tests/test-unlink.c (main): Likewise.
34104         * tests/test-unlinkat.c (main): Likewise.
34105         * tests/test-utimens.c (main): Likewise.
34106         * tests/test-utimensat.c (main): Likewise.
34107         * tests/test-version-etc.c (main): Likewise.
34108         * tests/test-wchar.c (main): Likewise.
34109         * tests/test-wctype.c (main): Likewise.
34110         * tests/test-xprintf-posix.c (main): Likewise.
34111         * tests/test-posixtm.c (main): Likewise.
34112         (STREQ): Delete unused macro.
34113         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34114         shadowed variables.
34115         * tests/test-memchr.c (main): Likewise.
34116
34117 2009-10-21  Eric Blake  <ebb9@byu.net>
34118
34119         areadlinkat: avoid failure on older glibc
34120         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34121         rather than mis-comparing 0 against FUNC_RESULT of char*.
34122
34123 2009-10-21  Bruno Haible  <bruno@clisp.org>
34124
34125         * modules/stpncpy (License): Relicense under LGPLv2+.
34126         Reported by David Lutterkort <lutter@redhat.com>.
34127
34128 2009-10-20  Eric Blake  <ebb9@byu.net>
34129
34130         utimensat: work around Solaris 9 bug
34131         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34132         has trailing slash bugs.
34133         * tests/test-lutimens.h (test_lutimens): Enhance test.
34134         * tests/test-utimens.h (test_utimens): Likewise.
34135         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34136         * doc/posix-functions/utimes.texi (utimes): Likewise.
34137         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34138         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34139         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34140         * doc/posix-functions/futimens.texi (futimens): Likewise.
34141
34142         fdutimensat: new module
34143         * modules/fdutimensat: New file.
34144         * lib/fdutimensat.c (fdutimensat): Likewise.
34145         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34146         * MODULES.html.sh (File system functions): Mention module.
34147         * modules/fdutimensat-tests: New test.
34148         * tests/test-fdutimensat.c: Likewise.
34149
34150         doc: regenerate INSTALL
34151         * doc/INSTALL: Reflect recent autoconf update.
34152         * doc/INSTALL.ISO: Likewise.
34153         * doc/INSTALL.UTF-8: Likewise.
34154
34155 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34156
34157         acl: warn if ACL support is not detected
34158         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34159
34160 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34161
34162         * lib/nproc.h: Add extern "C" block for C++.
34163
34164 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34165             Bruno Haible  <bruno@clisp.org>
34166
34167         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34168         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34169         * doc/posix-functions/isalpha.texi: Likewise.
34170         * doc/posix-functions/isblank.texi: Likewise.
34171         * doc/posix-functions/iscntrl.texi: Likewise.
34172         * doc/posix-functions/isdigit.texi: Likewise.
34173         * doc/posix-functions/isgraph.texi: Likewise.
34174         * doc/posix-functions/islower.texi: Likewise.
34175         * doc/posix-functions/isprint.texi: Likewise.
34176         * doc/posix-functions/ispunct.texi: Likewise.
34177         * doc/posix-functions/isspace.texi: Likewise.
34178         * doc/posix-functions/isupper.texi: Likewise.
34179         * doc/posix-functions/isxdigit.texi: Likewise.
34180
34181 2009-10-18  Bruno Haible  <bruno@clisp.org>
34182
34183         Tests for module 'isblank'.
34184         * modules/isblank-tests: New file.
34185         * tests/test-isblank.c: New file.
34186
34187         New module 'isblank'.
34188         * lib/isblank.c: New file.
34189         * m4/isblank.m4: New file.
34190         * modules/isblank: New file.
34191         * doc/posix-functions/isblank.texi: Mention the new module.
34192
34193 2009-10-18  Bruno Haible  <bruno@clisp.org>
34194
34195         New module 'ctype'.
34196         * lib/ctype.in.h: New file.
34197         * m4/ctype.m4: New file.
34198         * modules/ctype: New file.
34199         * doc/posix-headers/ctype.texi: Mention the new module.
34200
34201 2009-10-18  Jim Meyering  <meyering@redhat.com>
34202
34203         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34204         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34205         right after its initialization, rather than farther down.
34206         Keeping these in close proximity makes it easier to ensure
34207         that each such variable is initialized.  E.g.,
34208
34209             LIB_CLOCK_GETTIME=
34210             AC_SUBST([LIB_CLOCK_GETTIME])
34211
34212         This change also increments these serial numbers.
34213         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34214         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34216
34217 2009-10-18  Bruno Haible  <bruno@clisp.org>
34218
34219         Don't let environment variables perturb build.
34220         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34221         (gl_PREREQ_GETHRXTIME): ... not here.
34222
34223 2009-10-18  Bruno Haible  <bruno@clisp.org>
34224
34225         Avoid symlink attack in localcharset module.
34226         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34227         (O_NOFOLLOW): Define fallback.
34228         (get_charset_aliases): Don't open the file if it is a symbolic link.
34229         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34230         gl_FCNTL_H.
34231         (gl_FCNTL_H): Require it.
34232         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34233         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34234         Reported by Fergal Glynn <fglynn@veracode.com>.
34235
34236 2009-10-18  Bruno Haible  <bruno@clisp.org>
34237
34238         Implement nproc for mingw.
34239         * lib/nproc.c: Include <windows.h>
34240         (num_processors): On native Windows platforms, try GetSystemInfo.
34241
34242 2009-10-18  Bruno Haible  <bruno@clisp.org>
34243
34244         Implement nproc for IRIX.
34245         * lib/nproc.c: Include <sys/sysmp.h>.
34246         (num_processors): On IRIX systems, try sysmp.
34247         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34248
34249 2009-10-18  Bruno Haible  <bruno@clisp.org>
34250
34251         Implement nproc for HP-UX.
34252         * lib/nproc.c: Include <sys/pstat.h>
34253         (num_processors): On HP-UX systems, try pstat_getdynamic.
34254         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34255         pstat_getdynamic.
34256
34257 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34258             Bruno Haible  <bruno@clisp.org>
34259
34260         Implement nproc for NetBSD, OpenBSD.
34261         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34262         (ARRAY_SIZE): New macro.
34263         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34264         * m4/nproc.m4: New file.
34265         * modules/nproc (Files): Add m4/nproc.m4.
34266         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34267         (Makefile.am): Instead, augment lib_SOURCES.
34268
34269 2009-10-18  Bruno Haible  <bruno@clisp.org>
34270
34271         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34272         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34273         sys/param.h.
34274
34275 2009-10-16  Eric Blake  <ebb9@byu.net>
34276
34277         utimensat: new module
34278         * modules/utimensat: New file.
34279         * lib/utimensat.c (utimensat): Likewise.
34280         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34281         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34282         so we can work around Linux bugs.
34283         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34284         * modules/sys_stat (Makefile.am): Substitute them.
34285         * lib/sys_stat.in.h (utimensat): Declare it.
34286         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34287         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34288         * modules/utimensat-tests: New test.
34289         * tests/test-utimensat.c: Likewise.
34290
34291         utimens: let lutimens work on non-symlinks
34292         * lib/utimens.c (lutimens): Fall back to utimens rather than
34293         failing with ENOSYS, when file is not a symlink.
34294         (utimens): Reduce redirection.
34295         * tests/test-lutimens.h (test_lutimens): Update test to cover
34296         non-symlinks.
34297         * tests/test-utimens.h (test_utimens): Update test to cover
34298         symlinks.
34299         * tests/test-utimens.c (main): Update caller.
34300
34301         utimens: cache whether utimensat syscall works
34302         * lib/utimens.c (utimensat_works_really): New cache variable.
34303         (fdutimens, lutimens): Use it to avoid failing syscall.
34304
34305         test-stat-time, test-utimens: improve portability
34306         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34307         ext4 on alpha, and for cygwin.
34308         * tests/test-utimens-common.h: New file.
34309         (nap): Factor delays into single function.
34310         * tests/test-lutimens.h (test_lutimens): Use new header.
34311         * tests/test-futimens.h (test_futimens): Likewise.
34312         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34313         timestamps to occur from same machine, as was done previously for
34314         test_utimens.
34315         * modules/utimens-tests (Files): Ship new file.
34316         * modules/futimens-tests (Files): Likewise.
34317         Reported in part by Jim Meyering.
34318
34319         sys_stat: sort replacement declarations
34320         * lib/sys_stat.in.h: Sort declarations.
34321         * lib/futimens.c (futimens): Fix typo.
34322
34323 2009-10-15  Jim Meyering  <meyering@redhat.com>
34324
34325         don't let environment settings perturb build
34326         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34327         could cause a configure-time and/or build-time malfunction.
34328         Typically, a configure-time function-in-library test is performed
34329         via code like this:
34330
34331           LIB_VAR=
34332           AC_SUBST([LIB_VAR])
34333           prefix_saved_LIBS=$LIBS
34334             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34335                        [test "$ac_cv_search_FUNC" = "none required" ||
34336                         LIB_VAR=$ac_cv_search_FUNC])
34337           LIBS=$prefix_saved_LIBS
34338
34339         However, in each of the files affected by this change, the LIB_VAR=
34340         initialization was omitted.  Thus, when set in the environment, its
34341         value would propagate into generated Makefiles when FUNC is not found
34342         in LIB_NAME.
34343         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34344         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34345         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34346
34347 2009-10-14  Eric Blake  <ebb9@byu.net>
34348
34349         fchdir: avoid infinite recursion in mingw
34350         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34351         recursing.
34352
34353         test-stat-time: port to mingw
34354         * tests/test-stat-time.c (force_unlink): Return a value.
34355         (test_ctime) [W32]: Fix compilation error.
34356         (nap): Don't call usleep with too large an argument.  Use
34357         force_unlink.
34358         * doc/pastposix-functions/usleep.texi (usleep): Document the
34359         portability issue.
34360
34361 2009-10-13  Jim Meyering  <meyering@redhat.com>
34362
34363         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34364         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34365         * modules/pipe-filter-ii: Likewise.
34366         * modules/sys_socket-tests: Likewise.
34367         * modules/tsearch-tests: Likewise.
34368         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34369         (check): Depend on it.
34370
34371 2009-10-12  Eric Blake  <ebb9@byu.net>
34372
34373         utimens-tests: port to NFS file systems
34374         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34375         comparisons to avoid spurious failures from timestamp drift
34376         between NFS machines.
34377
34378 2009-10-12  Eric Blake  <ebb9@byu.net>
34379
34380         stat-time-tests: minor cleanups
34381         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34382         * tests/test-stat-time.c (nap): Separate assignment from call.
34383         Suggested by Paolo Bonzini and Bruno Haible.
34384
34385         sys_stat: guarantee struct timespec
34386         * lib/sys_stat.in.h (includes): Always include <time.h>
34387         * modules/sys_stat (Depends-on): Add time.
34388         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34389         mode_t permission values.
34390         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34391         get at subsecond timestamps.
34392
34393 2009-10-10  Eric Blake  <ebb9@byu.net>
34394
34395         futimens: new module
34396         * modules/futimens: New file.
34397         * lib/futimens.c (futimens): Likewise.
34398         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34399         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34400         we can work around Linux bugs.
34401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34402         * modules/sys_stat (Makefile.am): Substitute them.
34403         * lib/sys_stat.in.h (futimens): Declare it.
34404         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34405         * doc/posix-functions/futimens.texi (futimens): Likewise.
34406         * modules/futimens-tests: New test.
34407         * tests/test-futimens.c: Likewise.
34408
34409         utimens: introduce fdutimens
34410         * lib/utimens.h (fdutimens): New prototype.
34411         * lib/utimens.c (gl_futimens): Move guts...
34412         (fdutimens): ...to new interface.
34413         * tests/test-utimens.c (do_fdutimens): Use it.
34414
34415         utimens: add UTIME_NOW and UTIME_OMIT support
34416         * lib/utimens.c (validate_timespec, update_timespec): New helper
34417         functions.
34418         (gl_futimens, lutimens): Use them.
34419         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34420         stdbool, sys_stat.
34421         (Link): Mention resulting library dependency.
34422         * modules/utimecmp (Link): Likewise.
34423         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34424         (Makefile.am): Pick up library dependency.
34425         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34426         definition.
34427         * tests/test-sys_stat.c: Test the definitions.
34428         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34429         * NEWS: Document library dependency.
34430
34431         utimecmp: support symlink timestamps
34432         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34433         hashing when possible.  Use pathconf when available.
34434         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34435         * modules/utimecmp (Depends-on): Add lstat.
34436
34437         utimens: add lutimens interface
34438         * lib/utimens.c (lutimens): New function.
34439         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34440         * lib/utimens.h (lutimens): Declare new interface.
34441         * tests/test-utimens.c (main): Enhance test.
34442         * tests/test-lutimens.h (test_lutimens): New file.
34443         * modules/utimens-tests (Files): Distribute it.
34444         (Depends-on): Add symlink.
34445         (configure.ac): Check for usleep.
34446
34447         utimens: validate futimens usage
34448         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34449         fewer syscalls on failure later on.  Avoid compiler warning on
34450         mingw.
34451         * modules/utimens (Depends-on): Add dup2.
34452
34453         utimens: add test
34454         * modules/utimens-tests: New test.
34455         * tests/test-utimens.h: New file.
34456         * tests/test-futimens.h: Likewise.
34457         * tests/test-utimens.c: Likewise.
34458
34459         doc: mention timestamp portability issues
34460         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34461         instead.
34462         * doc/posix-functions/utime.texi (utime): Likewise.
34463         * doc/posix-functions/utimes.texi (utimes): Likewise.
34464         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34465         instead.
34466         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34467         module.
34468         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34469         Mention weakness with symlink timestamps.
34470         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34471         to utimensat/futimens instead.
34472         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34473
34474         test-dup2: enhance test
34475         * tests/test-dup2.c (main): Also check AT_FDCWD.
34476
34477         test-stat-time: avoid more spurious failures
34478         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34479         xfs; and avoid race if the two timestamps cross quantization edge.
34480
34481         relocatable: prefer 'file system' over 'filesystem'
34482         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34483         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34484         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34485         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34486         * lib/relocatable.c (compute_curr_prefix): Likewise.
34487
34488 2009-10-10  Jim Meyering  <meyering@redhat.com>
34489
34490         stat-time-tests: check for the usleep function
34491         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34492
34493 2009-10-10  Bruno Haible  <bruno@clisp.org>
34494
34495         * modules/xnanosleep: Put the Link section after the Include section.
34496
34497 2009-10-09  Eric Blake  <ebb9@byu.net>
34498
34499         dup2: work around FreeBSD 6.1 bug
34500         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34501         * doc/posix-functions/dup2.texi (dup2): Document it.
34502         Reported by Nelson H. F. Beebe and Jim Meyering.
34503
34504         test-stat-time: port to buggy NFS clients
34505         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34506         (test_ctime): Also skip test if mtime and ctime are skewed.
34507
34508         maint: prefer 'file system' over 'filesystem'
34509         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34510         * doc/posix-functions/lstat.texi (lstat): Likewise.
34511         * lib/file-has-acl.c (file_has_acl): Likewise.
34512         * lib/fwriteerror.c [TEST]: Likewise.
34513         * tests/test-areadlink.h (test_areadlink): Likewise.
34514         * tests/test-areadlinkat-with-size.c (main): Likewise.
34515         * tests/test-areadlinkat.c (main): Likewise.
34516         * tests/test-canonicalize-lgpl.c (main): Likewise.
34517         * tests/test-canonicalize.c (main): Likewise.
34518         * tests/test-fstatat.c (main): Likewise.
34519         * tests/test-linkat.c (main): Likewise.
34520         * tests/test-lstat.h (test_lstat_func): Likewise.
34521         * tests/test-mkdir.h (test_mkdir): Likewise.
34522         * tests/test-readlink.h (test_readlink): Likewise.
34523         * tests/test-remove.c (main): Likewise.
34524         * tests/test-rename.h (test_rename): Likewise.
34525         * tests/test-renameat.c (main): Likewise.
34526         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34527         * tests/test-symlink.h (test_symlink): Likewise.
34528         * tests/test-symlinkat.c (main): Likewise.
34529         * tests/test-unlink.h (test_unlink_func): Likewise.
34530         * tests/test-unlinkat.c (main): Likewise.
34531
34532         maint: make realtime library usage explicit
34533         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34534         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34535         * modules/settime (Link): Likewise.
34536         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34537
34538         test-stat-time: speed up execution
34539         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34540         warning on mingw.
34541         (nap): New helper function.
34542         (prepare_test): Use it to reduce sleep time.
34543         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34544         execution.
34545         * modules/stat-time-tests (configure.ac): Check for usleep.
34546
34547 2009-10-09  Jim Meyering  <meyering@redhat.com>
34548
34549         selinux-h: always use getfilecon wrappers
34550         * lib/getfilecon.c: New file.
34551         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34552         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34553         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34554         (fgetfilecon): Provide a stub.
34555         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34556         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34557         file unconditionally.
34558         When <selinux/selinux.h> is found, arrange to use wrappers.
34559         * modules/selinux-h (Files): Add getfilecon.c.
34560         (Makefile.am): Substitute include-next-related bits
34561         into the now-always-generated selinux/selinux.h file.
34562         * doc/glibc-functions/lgetfilecon.texi: New file.
34563         * doc/glibc-functions/fgetfilecon.texi: New file.
34564         * doc/glibc-functions/getfilecon.texi: New file.
34565         * doc/glibc-functions/getfilecon-desc.texi: New file.
34566         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34567         which to pull in the new files.
34568         * MODULES.html.sh (Misc): Add selinux-h.
34569
34570 2009-10-08  Jim Meyering  <meyering@redhat.com>
34571
34572         unistd: fix comment typo
34573         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34574
34575 2009-10-08  Eric Blake  <ebb9@byu.net>
34576
34577         areadlink: use SIZE_MAX consistently
34578         * modules/areadlink (Depends-on): Add stdint.
34579         * modules/areadlink-with-size (Depends-on): Likewise.
34580         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34581         gives NULL; drop sys/types, since unistd gives size_t; and add
34582         stdint for SIZE_MAX.
34583         (SIZE_MAX): Rely on headers.
34584         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34585         and add stdint.
34586         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34587         (SIZE_MAX): Likewise.
34588         (INITIAL_BUF_SIZE): Turn into enum.
34589         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34590
34591 2009-10-08  Jim Meyering  <meyering@redhat.com>
34592
34593         areadlinkat: avoid compilation failure
34594         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34595         Fix typo in comment.
34596
34597 2009-10-07  Eric Blake  <ebb9@byu.net>
34598
34599         areadlinkat-with-size: new module
34600         * modules/areadlinkat-with-size: New module.
34601         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34602         * lib/areadlink.h (areadlinkat): Declare it.
34603         * MODULES.html.sh (File system functions): Mention it.
34604         * modules/areadlinkat-with-size-tests: New test.
34605         * tests/test-areadlinkat-with-size.c: New file.
34606
34607         xreadlinkat: new module
34608         * modules/xreadlinkat: New module.
34609         * lib/xreadlinkat.c (xreadlinkat): New file.
34610         * lib/xreadlink.h (xreadlinkat): Declare it.
34611         * MODULES.html.sh (File system functions): Mention it.
34612
34613         areadlinkat: new module
34614         * lib/at-func.c (FUNC_FAIL): New define.
34615         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34616         * modules/areadlinkat: New module.
34617         * lib/linkat.c (areadlinkat): Move...
34618         * lib/areadlinkat.c (areadlinkat): ...to new file.
34619         * lib/areadlink.h (areadlinkat): Declare it.
34620         * modules/linkat (Depends-on): Add areadlinkat.
34621         * MODULES.html.sh (File system functions): Mention it.
34622         * modules/areadlinkat-tests: New test.
34623         * tests/test-areadlinkat.c: New file.
34624
34625         areadlink, areadlink-with-size: add tests
34626         * modules/areadlink-tests: New test.
34627         * modules/areadlink-with-size-tests: Likewise.
34628         * tests/test-areadlink.h: New file.
34629         * tests/test-areadlink.c: Likewise.
34630         * tests/test-areadlink-with-size.c: Likewise.
34631
34632         maint: minor cleanups
34633         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34634         _UNUSED_PARAMETER_ instead.
34635         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34636         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34637         * modules/linkat-tests (Files): Distribute test-link.h.
34638
34639         openat, utimens: whitespace cleanup
34640         * lib/openat.c: Prefer space throughout, rather than mix of 8
34641         spaces vs. tabs.
34642         * lib/at-func.c: Likewise.
34643         * lib/utimens.c: Likewise.
34644
34645         openat: avoid using wrong fd
34646         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34647         working directory chooses same fd.
34648         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34649
34650         mkdir, mkdirat: fix cygwin 1.5.x bug
34651         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34652         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34653         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34654         bug.
34655         (gl_PREREQ_MKDIR): Delete unused macro.
34656         * modules/mkdir (Files): Track file rename.
34657         (configure.ac): Update macro name.
34658         * modules/openat (Depends-on): Add mkdir.
34659         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34660
34661         mkdir, mkdirat: add tests
34662         * modules/mkdir-tests: New test.
34663         * tests/test-mkdir.h: New file.
34664         * tests/test-mkdir.c: Likewise.
34665         * tests/test-mkdirat.c: Likewise.
34666         * modules/openat-tests (Files): Add new files.
34667         (Makefile.am): Run new test.
34668
34669 2009-10-06  Eric Blake  <ebb9@byu.net>
34670
34671         doc: tweak *at function documentation
34672         * doc/posix-functions/faccessat.texi (faccessat): Mention
34673         known issue with replacement.
34674         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34675         * doc/posix-functions/linkat.texi (linkat): Likewise.
34676         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34677         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34678         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34679         * doc/posix-functions/renameat.texi (renameat): Likewise.
34680         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34681
34682         openat: fix GNU/Hurd bug in unlinkat
34683         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34684         broken.
34685         * doc/posix-functions/unlink.texi (unlink): Document this.
34686         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34687
34688         fdopendir: fix GNU/Hurd bug
34689         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34690         allowing non-directory fds.
34691         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34692         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34693         * modules/dirent (Makefile.am): Substitute it.
34694         * lib/dirent.in.h (fdopendir): Declare replacement.
34695         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34696         * tests/test-fdopendir.c (main): Test something other than
34697         /dev/null, since on Hurd that behaves like a directory.
34698
34699         test-symlink: port to GNU/Hurd
34700         * tests/test-symlink.h (test_symlink): Relax expected errno.
34701
34702         doc: tweak more cygwin information
34703         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34704         now compatible with glibc.
34705         * doc/posix-functions/getopt.texi (getopt): Likewise.
34706
34707         getopt-gnu: add another test
34708         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34709         guarantee behavior relied on by m4.
34710         * tests/test-getopt.c (main): Use it.
34711         * modules/getopt-posix-tests (Depends-on): Add setenv.
34712         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34713
34714         getopt: fix compilation on darwin
34715         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34716         include.
34717         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34718         Reported by Ludovic Courtès.
34719
34720 2009-10-06  Bruno Haible  <bruno@clisp.org>
34721
34722         * modules/size_max (Description): Discourage its use.
34723         Reported by Simon Josefsson.
34724
34725 2009-10-06  Jim Meyering  <meyering@redhat.com>
34726
34727         linkat: avoid compilation failure
34728         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34729
34730 2009-10-05  Eric Blake  <ebb9@byu.net>
34731
34732         linkat: support Linux 2.6.17
34733         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34734         linkat on Linux, but allow cache variable override.
34735         * lib/linkat.c (rpl_linkat): Define override.
34736         * modules/linkat (Depends-on): Add symlinkat.
34737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34738         * modules/unistd (Makefile.am): Substitute it.
34739         * lib/unistd.in.h (linkat): Declare replacement.
34740         Reported by Pádraig Brady.
34741
34742         quotearg: port test to systems with C.UTF-8 locale
34743         * tests/test-quotearg.c (struct result_strings): Add another
34744         member, differentiating between C.ASCII and C.UTF-8 handling.
34745         (compare_strings): Add parameter.
34746         (main): Adjust all callers.
34747
34748         getopt: avoid clash with FreeBSD _getopt_internal
34749         * lib/getopt.in.h (_getopt_internal): Override the name.
34750         * lib/getopt_int.h (includes): Pick up any overrides.
34751         Reported by Reuben Thomas.
34752
34753         hash: allow C89 compilation
34754         * lib/hash.c (check_tuning): Move declaration before statement.
34755         Reported by Reuben Thomas.
34756
34757 2009-10-05  Karl Berry  <karl@gnu.org>
34758
34759         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34760
34761 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34762             Bruno Haible  <bruno@clisp.org>
34763
34764         * lib/uname.c (uname): Use a table-driven algorithm to compute
34765         Windows NT versions.
34766
34767 2009-10-04  Bruno Haible  <bruno@clisp.org>
34768
34769         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34770         program_invocation_short_name.
34771         * modules/progname (configure.ac): Test for presence of
34772         program_invocation_short_name.
34773         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34774
34775 2009-10-04  Bruno Haible  <bruno@clisp.org>
34776
34777         * lib/progname.c (set_program_name): Fix comment.
34778         Reported by Jim Meyering.
34779
34780 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34781             Bruno Haible  <bruno@clisp.org>
34782
34783         * lib/uname.c: Include <string.h>.
34784         (uname): Do only one call to GetVersionEx in the common case.
34785
34786 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34787             Bruno Haible  <bruno@clisp.org>
34788
34789         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34790         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34791         (uname): Add support for Windows CE and various non-x86 CPU types.
34792
34793 2009-10-03  Bruno Haible  <bruno@clisp.org>
34794
34795         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34796         invocation to tests/configure.ac.
34797         Reported by Ian Beckwith <ianb@erislabs.net>.
34798
34799 2009-10-02  Eric Blake  <ebb9@byu.net>
34800
34801         fchdir: avoid compiler warning
34802         * lib/fchdir.c (canonicalize_file_name)
34803         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34804
34805         test-open: support mingw errno values
34806         * tests/test-open.h (test_open): Relax test.
34807         * tests/test-fopen.h (test_fopen): Likewise.
34808         * tests/test-openat-safer.c (main): Likewise.
34809
34810         open: fix opening directory on mingw
34811         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34812
34813         test-open: on GNU/Hurd, /dev/null is a directory
34814         * tests/test-fopen.h (main): Rename...
34815         (test_fopen): ...to this.  Use a guaranteed non-directory when
34816         confirming open behavior on trailing slash.
34817         * tests/test-openat-safer.c (main): Likewise.
34818         * tests/test-open.h (main): Likewise....
34819         (test_open): ...to this.
34820         * tests/test-fopen.c (main): Adjust caller.
34821         * tests/test-fopen-safer.c (main): Likewise.
34822         * tests/test-open.c (main): Likewise.
34823         * tests/test-fcntl-safer.c (main): Likewise.
34824         Reported by Samuel Thibault.
34825
34826         rename, fchdir: don't ignore chdir failure
34827         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34828         * lib/rename.c (rpl_rename) [W32]: Likewise.
34829         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34830         an empty destination directory if source cannot be renamed,
34831         although there is still possibility for failure.
34832         * doc/posix-functions/rename.texi (rename): Document the race.
34833         Reported by Jim Meyering.
34834
34835         maint: cleanup whitespace in recent commits
34836         * lib/rename.c (rpl_rename): Remove tabs.
34837         * tests/test-link.h (test_link): Likewise.
34838         * lib/fchdir.c (get_name): Likewise.
34839         Reported by Jim Meyering.
34840
34841 2009-10-02  Ben Pfaff  <blp@gnu.org>
34842
34843         relocatable-prog-wrapper: Add missing dependency on
34844         double-slash-root.
34845         * modules/relocatable-prog-wrapper: Add dependency.
34846         Reported by Ian Beckwith <ianb@erislabs.net>.
34847
34848 2009-10-02  Eric Blake  <ebb9@byu.net>
34849
34850         renameat: fix Solaris bugs
34851         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34852         needed fixing.
34853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34854         * modules/stdio (Makefile.am): Substitute it.
34855         * lib/stdio.in.h (renameat): Declare replacement.
34856         * lib/renameat.c (rpl_renameat): Implement fix.
34857
34858         renameat: new module
34859         * modules/renameat: New file.
34860         * lib/renameat.c (renameat): Likewise.
34861         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34862         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34863         * modules/stdio (Makefile.am): Substitute them.
34864         * lib/stdio.in.h (renameat): Declare it.
34865         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34866         * doc/posix-functions/renameat.texi (renameat): Likewise.
34867         * modules/renameat-tests: New test.
34868         * tests/test-renameat.c: Likewise.
34869
34870         rename: fix mingw bugs
34871         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34872         directory overwrite bugs.
34873
34874         rename: fix another cygwin 1.5 bug
34875         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34876         checks.
34877         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34878         unnecessary cygwin workarounds.  Also work around bug with moving
34879         full directory onto an empty one.
34880         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34881
34882         rename-dest-slash: merge into rename module
34883         * modules/rename-dest-slash (Status): Mark obsolete.
34884         (Depends-on): Add rename.
34885         (Files): Let rename do it all.
34886         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34887         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34888         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34889         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34890         * lib/rename.c (rpl_rename): Update comments.
34891
34892         rename: fix cygwin 1.5.x bugs
34893         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34894         * lib/rename.c (rpl_rename): Work around them.
34895         * modules/rename (Depends-on): Add same-inode.
34896
34897         rename: fix Solaris 10 bug
34898         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34899         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34900         was the only bug.
34901
34902         rename: fix Solaris 9 bug
34903         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34904         on non-directory.  Avoid calling exit.
34905         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34906         strdup.
34907         * modules/rename-tests (Depends-on): Drop lstat.
34908         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34909         (gl_PREREQ_RENAME): Delete unused macro.
34910
34911         rename-dest-slash: fix NetBSD bug
34912         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34913         links.
34914         * modules/rename-dest-slash (Depends-on): Add same-inode.
34915
34916         rename-tests: new test, exposes several platform bugs
34917         * modules/rename-tests: New file.
34918         * tests/test-rename.h: Likewise.
34919         * tests/test-rename.c: Likewise.
34920         * doc/posix-functions/rename.texi (rename): Improve documentation,
34921         including bugs that will eventually be fixed in gnulib.
34922
34923 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34924
34925         * lib/uname.c: Include <stdlib.h>
34926         (uname): Assume version info is available.
34927
34928 2009-10-02  Jim Meyering  <meyering@redhat.com>
34929
34930         gnu-web-doc-update: correct --help output
34931         * build-aux/gnu-web-doc-update: Make --help output relevant.
34932
34933         gnu-web-doc-update: add standard options
34934         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34935
34936         gnu-web-doc-update: New module.
34937         Use this script to automatically update the on-line web documentation
34938         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34939         * modules/gnu-web-doc-update: New file, from coreutils.
34940         * build-aux/gnu-web-doc-update: New script.
34941
34942 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34943
34944         link: LoadLibrary is not needed.
34945         * lib/link.c: Use GetModuleHandle.
34946
34947 2009-10-01  Eric Blake  <ebb9@byu.net>
34948
34949         getopt: bump serial number
34950         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34951         change.
34952
34953         tests: tighten link, rmdir, and remove tests
34954         * tests/test-link.h (includes): No need to use <config.h> here.
34955         Clean up if directory hard link was created, otherwise test for
34956         trailing '.'.
34957         * tests/test-linkat.c (main): Simplify.
34958         * tests/test-remove.c (main): Enhance test for trailing '.'.
34959         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34960
34961 2009-10-01  Jim Meyering  <meyering@redhat.com>
34962
34963         maint.mk: requiring "make major" was annoying, for a "minor" release.
34964         What is intended is "stable", to contrast with alpha and beta,
34965         so require "make stable", not "make major".
34966         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34967         (get_tool_versions): Likewise.
34968         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34969
34970 2009-09-30  Ben Pfaff  <blp@gnu.org>
34971
34972         Fix broken build of replacement for Windows tmpfile().
34973         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34974         flags argument added along with the 'mkostemp' module.
34975
34976 2009-09-28  Bruno Haible  <bruno@clisp.org>
34977
34978         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34979         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34980         to 'remove_elt'.
34981         (gl_list_remove): Update.
34982         * lib/gl_list.c (gl_list_remove): Update.
34983         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34984         to 'remove_elt'.
34985         (gl_oset_remove): Update.
34986         * lib/gl_list.c (gl_oset_remove): Update.
34987         Reported by Eric Blake.
34988
34989 2009-09-28  Eric Blake  <ebb9@byu.net>
34990
34991         doc: mention yet more cygwin 1.7 status
34992         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
34993         cygwin.
34994         * doc/glibc-functions/execvpe.texi (execvpe): New file.
34995         * doc/gnulib.texi (Glibc unistd.h): Mention it.
34996
34997         argp: fix test failure
34998         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
34999         that are not upper-case.  Pass correct range to tolower.
35000
35001 2009-09-27  Jim Meyering  <meyering@redhat.com>
35002
35003         test-yesno: work around sparc-dash here-document infelicity
35004         Without this change, the literal \177 byte in a here document
35005         would make dash 0.5.5.1-3 access uninitialized memory.
35006         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35007         Instead, use a marker, "@", and filter through tr to create the desired
35008         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35009
35010 2009-09-27  Bruno Haible  <bruno@clisp.org>
35011
35012         Disable untested support for new flavours of ACLs on AIX.
35013         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35014         progress.
35015         * lib/set-mode-acl.c (qset_acl): Likewise.
35016
35017 2008-12-07  Bruno Haible  <bruno@clisp.org>
35018
35019         Add support for new flavours of ACLs on AIX. (Untested.)
35020         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35021         (file_has_acl): Add support for newer AIX.
35022         * lib/set-mode-acl.c (qset_acl): Likewise.
35023         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35024         Rainer Tammer <tammer@tammer.net>.
35025
35026 2009-09-26  Eric Blake  <ebb9@byu.net>
35027
35028         argp: fix compilation of getopt
35029         * lib/getopt.in.h (includes): Use different guard than glibc.
35030         Reported by Sergey Poznyakoff.
35031
35032         doc: mention more cygwin 1.7 status
35033         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35034         bug.
35035         * doc/posix-functions/execl.texi (execl): Likewise.
35036         * doc/posix-functions/execle.texi (execle): Likewise.
35037         * doc/posix-functions/execlp.texi (execlp): Likewise.
35038         * doc/posix-functions/execv.texi (execv): Likewise.
35039         * doc/posix-functions/execve.texi (execve): Likewise.
35040         * doc/posix-functions/execvp.texi (execvp): Likewise.
35041         * doc/glibc-functions/canonicalize_file_name.texi
35042         (canonicalize_file_name): Cygwin 1.7 now provides this.
35043         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35044         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35045         on AT_SYMLINK_NOFOLLOW.
35046
35047 2009-09-24  Eric Blake  <ebb9@byu.net>
35048
35049         test-linkat: make test more robust
35050         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35051
35052         getopt: fix inclusion guards for cygwin
35053         * modules/getopt-posix (Depends-on): Add include-next.
35054         (Makefile.am): Substitute more items in replacement header.
35055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35056         <getopt.h>.
35057         * lib/getopt.in.h (includes): Use split inclusion guard, and
35058         prefer <getopt.h> over include <unistd.h> when one is present.
35059         (option): Also override name of 'struct option'.
35060
35061         same-inode: revert prior change; it is not yet ready
35062         * NEWS: Undo mention of this change.
35063         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35064         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35065         * lib/cycle-check.c (cycle_check): Likewise.
35066         * lib/same.c (same_name): Likewise.
35067         * lib/at-func2.c (at_func2): Likewise.
35068
35069 2009-09-23  Eric Blake  <ebb9@byu.net>
35070
35071         linkat: new module
35072         * modules/linkat: New file.
35073         * lib/at-func2.c (at_func2): Likewise.
35074         * lib/linkat.c (linkat): Likewise.
35075         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35076         * lib/openat-priv.h (at_func2): Add declaration.
35077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35078         * modules/unistd (Makefile.am): Substitute them.
35079         * lib/unistd.in.h (linkat): Declare it.
35080         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35081         * doc/posix-functions/linkat.texi (linkat): Likewise.
35082         * doc/posix-functions/link.texi (link): Tweak wording.
35083         * tests/test-link.c (main): Move guts...
35084         * tests/test-link.h (test_link): ...into new file.
35085         * modules/linkat-tests: New test.
35086         * tests/test-linkat.c: Likewise.
35087         * modules/link-tests (Files): Ship new file.
35088         (Depends-on): Add stdbool.
35089
35090         dirname: add library-safe mdir_name
35091         * lib/dirname.h (mdir_name): New prototype.
35092         * lib/dirname.c (dir_name): Move guts...
35093         (mdir_name): ...to new function that avoids xalloc_die.
35094
35095         fchdir: another mingw fix
35096         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35097         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35098         on mingw (where it has not yet been ported), and make it optional
35099         elsewhere.
35100         (_gl_register_fd): Use it.
35101
35102         same-inode: make SAME_INODE tri-state, to port to mingw
35103         * NEWS: Mention this change.
35104         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35105         st_ino always being 0.
35106         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35107         * lib/cycle-check.c (cycle_check): Likewise.
35108         * lib/same.c (same_name): Likewise.
35109
35110         lstat: avoid mingw compilation error
35111         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35112         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35113         lstat ourselves.
35114         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35115         was adequate.
35116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35117         the checks for lstat.
35118         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35119
35120         link: fix test failure on Solaris 9
35121         * lib/link.c (rpl_link): Don't assume link will catch bogus
35122         trailing slash on source.
35123
35124         test-symlinkat: enhance test
35125         * tests/test-readlink.c (main): Move guts...
35126         * tests/test-readlink.h (test_readlink): ...into new file.
35127         * tests/test-symlink.c (main): Move guts...
35128         * tests/test-symlink.h (test_symlink): ...into new file.
35129         * tests/test-symlinkat.c (main): Use new files for further
35130         coverage.
35131         (do_symlink, do_readlink): New helper functions.
35132         * modules/symlink-tests (Files): Ship new file.
35133         (Depends-on): Add stdbool.
35134         * modules/readlink-tests (Files): Ship new file.
35135         (Depends-on): Add stdbool.
35136         * modules/symlinkat-tests (Files): Use new files.
35137
35138 2009-09-23  Eric Blake  <ebb9@byu.net>
35139
35140         readlink: document portability issue with symlink length
35141         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35142         systems have bogus st_size on symlinks, and mention the
35143         areadlink-with-size module.
35144         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35145         * doc/posix-functions/readlink.texi (readlink): Mention the
35146         areadlink module, and ERANGE failure.
35147         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35148         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35149
35150         readlink: fix Solaris 9 bug with trailing slash
35151         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35152         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35153         * doc/posix-functions/readlink.texi (readlink): Document this.
35154         * modules/readlink-tests: New test.
35155         * tests/test-readlink.c: Likewise.
35156
35157         readlink: fix cygwin 1.5.x bug with return type
35158         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35159         * lib/unistd.in.h (readlink): Use ssize_t.
35160         * lib/readlink.c (readlink): Likewise.
35161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35162         * modules/unistd (Makefile.am): Substitute it.
35163         * lib/unistd.in.h (readlink): Declare replacement.
35164         * doc/posix-functions/readlink.texi (readlink): Document this.
35165
35166         symlink: use throughout gnulib
35167         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35168         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35169         symlink is not used.
35170         * modules/symlinkat (Depends-on): Add symlink.
35171         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35172         * modules/canonicalize-tests (Depends-on): Likewise.
35173         * modules/lstat-tests (Depends-on): Likewise.
35174         * modules/openat-tests (Depends-on): Likewise.
35175         * modules/remove-tests (Depends-on): Likewise.
35176         * modules/rmdir-tests (Depends-on): Likewise.
35177         * modules/unlink-tests (Depends-on): Likewise.
35178         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35179         * tests/test-canonicalize.c (symlink): Likewise.
35180         * tests/test-fstatat.c (symlink): Likewise.
35181         * tests/test-lstat.c (symlink): Likewise.
35182         * tests/test-remove.c (symlink): Likewise.
35183         * tests/test-rmdir.c (symlink): Likewise.
35184         * tests/test-unlink.c (symlink): Likewise.
35185         * tests/test-unlinkat.c (symlink): Likewise.
35186
35187         symlink: new module, for Solaris 9 bug
35188         * modules/symlink: New file.
35189         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35190         * lib/symlink.c: Likewise.
35191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35192         * modules/unistd (Makefile.am): Substitute them.
35193         * lib/unistd.in.h (symlink): Declare replacement.
35194         * MODULES.html.sh (File system functions): Mention it.
35195         * doc/posix-functions/symlink.texi (symlink): Likewise.
35196         * modules/symlink-tests: New test.
35197         * tests/test-symlink.c: Likewise.
35198
35199 2009-09-23  Bruno Haible  <bruno@clisp.org>
35200
35201         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35202         when needed.
35203         Test case: gnulib-tool --import --with-tests atexit inttypes.
35204         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35205
35206 2009-09-23  Bruno Haible  <bruno@clisp.org>
35207
35208         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35209         subcommand, not in a subshell.
35210
35211 2009-09-22  Eric Blake  <ebb9@byu.net>
35212
35213         unistd: sort replacement declarations
35214         * lib/unistd.in.h: Sort declarations.
35215
35216         open, openat: minor optimization
35217         * lib/open.c (open): If open succeeded, len is non-zero.
35218         * lib/openat.c (rpl_openat): Likewise.
35219
35220         link-follow: ensure correct result
35221         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35222         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35223         distinguish between possible failures.
35224
35225 2009-09-21  Eric Blake  <ebb9@byu.net>
35226
35227         fts: avoid compiler warning
35228         * lib/fts.c (dirent_inode_sort_may_be_useful)
35229         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35230
35231 2009-09-19  Bruno Haible  <bruno@clisp.org>
35232
35233         * lib/progreloc.c (canonicalize_file_name): New declaration.
35234
35235 2009-09-19  Eric Blake  <ebb9@byu.net>
35236
35237         link: fix quoting
35238         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35239
35240         openat: fix openat bugs on Solaris 9
35241         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35242         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35243         * modules/openat (Depends-on): Add open.
35244         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35245         * modules/fcntl-h (Makefile.am): Substitute it.
35246         * lib/fcntl.in.h (openat): Declare replacement.
35247         * doc/posix-functions/openat.texi (openat): Document this.
35248
35249         openat: move fstatat and unlinkat into correct files
35250         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35251         compiled.
35252         * lib/openat.c (fstatat, unlinkat): Move...
35253         * lib/fstatat.c (fstatat): ...into correct files.
35254         * lib/unlinkat.c (unlinkat): Likewise.
35255
35256         openat: fix unlinkat bugs on Solaris 9
35257         * lib/unlinkat.c (unlinkat): New file.
35258         * modules/openat (Depends-on): Add unlink.
35259         (Files): Distribute it.
35260         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35261         trailing slash behavior is broken.
35262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35263         * modules/unistd (Makefile.am): Substitute it.
35264         * lib/unistd.in.h (unlinkat): Declare replacement.
35265         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35266
35267         openat: fix fstatat bugs on Solaris 9
35268         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35269         stat.
35270         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35271
35272         test-unlinkat: enhance test, to expose Solaris 9 bug
35273         * tests/test-unlink.c (main): Factor guts...
35274         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35275         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35276         * tests/test-rmdir.c (main): Adjust caller.
35277         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35278         (unlinker): New helper function.
35279         (rmdirat): Enhance check.
35280         * modules/rmdir-tests (Depends-on): Add stdbool.
35281         * modules/unlink-tests (Depends-on): Likewise.
35282         (Files): Add test-unlink.h.
35283         * modules/openat-tests (Files): Likewise.
35284         (Depends-on): Add unlinkdir.
35285
35286         test-fstatat: new test, to expose Solaris 9 bugs
35287         * tests/test-stat.c (main): Factor guts...
35288         * tests/test-stat.h (test_stat_func): ...into new file.
35289         * tests/test-lstat.c (main): Factor guts...
35290         * tests/test-lstat.h (test_lstat_func): ...into new file.
35291         * tests/test-fstatat.c: New file.
35292         * modules/stat-tests (Files): Add test-stat.h.
35293         * modules/lstat-tests (Files): Add test-lstat.h.
35294         (Depends-on): Add stdbool.
35295         * modules/openat-tests (Depends-on): Add pathmax.
35296         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35297         (Makefile.am): Run new test.
35298
35299         remove: new module, for mingw and Solaris 9 bugs
35300         * modules/remove: New file.
35301         * lib/remove.c: Likewise.
35302         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35304         * modules/stdio (Makefile.am): Use them.
35305         * lib/stdio.in.h (remove): Declare replacement.
35306         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35307         * doc/posix-functions/remove.texi (remove): Likewise.
35308         * modules/remove-tests: New test.
35309         * tests/test-remove.c: Likewise.
35310
35311         unlink: new module, for Solaris 9 bug
35312         * modules/unlink: New file.
35313         * lib/unlink.c: Likewise.
35314         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35316         * modules/unistd (Makefile.am): Use them.
35317         * lib/unistd.in.h (stat): Declare replacement.
35318         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35319         * doc/posix-functions/unlink.texi (unlink): Likewise.
35320         * modules/unlink-tests: New test.
35321         * tests/test-unlink.c: Likewise.
35322
35323         lstat: fix Solaris 9 bug
35324         * lib/lstat.c (lstat): Also check for trailing slash on
35325         non-symlink, non-directories.  Use stat module to simplify logic.
35326         * doc/posix-functions/lstat.texi (lstat): Document it.
35327         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35328         (configure.ac): Check for symlink.
35329         * tests/test-lstat.c (main): Add more tests.
35330
35331         stat: add as dependency to other modules
35332         * modules/chown (Depends-on): Add stat.
35333         * modules/euidaccess (Depends-on): Likewise.
35334         * modules/fchdir (Depends-on): Likewise.
35335         * modules/isdir (Depends-on): Likewise.
35336         * modules/link (Depends-on): Likewise.
35337         * modules/lstat (Depends-on): Likewise.
35338         * modules/mkdir-p (Depends-on): Likewise.
35339         * modules/modechange (Depends-on): Likewise.
35340         * modules/open (Depends-on): Likewise.
35341         * modules/readlink (Depends-on): Likewise.
35342         * modules/same (Depends-on): Likewise.
35343
35344         stat: fix Solaris 9 bug
35345         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35346         slash.
35347         * lib/stat.c (rpl_stat): Work around it.
35348         * doc/posix-functions/stat.texi (stat): Update documentation.
35349
35350         stat: new module, for mingw bug
35351         * modules/stat: New file.
35352         * lib/stat.c: Likewise.
35353         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35354         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35355         * modules/sys_stat (Makefile.am): Use them.
35356         * lib/sys_stat.in.h (stat): Declare replacement.
35357         * lib/openat.c (fstatat): Deal with lstat and stat being function
35358         macros.
35359         * modules/openat (Depends-on): Add inline.
35360         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35361         * doc/posix-functions/stat.texi (stat): Likewise.
35362         * modules/stat-tests: New test.
35363         * tests/test-stat.c: Likewise.
35364
35365 2009-09-19  Jim Meyering  <meyering@redhat.com>
35366
35367         syntax-check: detect unnecessary inclusion of canonicalize.h
35368         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35369
35370 2009-09-19  Eric Blake  <ebb9@byu.net>
35371
35372         canonicalize-lgpl: adjust clients to use correct header
35373         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35374         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35375         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35376         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35377         * lib/progreloc.c (includes): Likewise.
35378
35379 2009-09-19  Jim Meyering  <meyering@redhat.com>
35380
35381         test-posixtm.c: correct a comment
35382         * tests/test-posixtm.c: Correct first-line comment.
35383         Spotted by Eric Blake.
35384
35385 2009-09-16  Jim Meyering  <meyering@redhat.com>
35386
35387         posixtm-tests: make T const-correct; add a test case
35388         * tests/test-posixtm.c (T): Declare const.
35389         Add a test for -(2^31+1).
35390         Remove useless can-succeed-only-in-2002 test.
35391
35392         posixtm-tests: adjust the sole failing test
35393         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35394         expected output matches what mktime now produces.  Cross-checked via
35395         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35396
35397         posixtm: move #ifdef'd tests into a new module
35398         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35399         * tests/test-posixtm.c: ... this new file.
35400         * modules/posixtm-tests: New module.
35401
35402 2009-09-19  Eric Blake  <ebb9@byu.net>
35403
35404         openat: simplify use of at-func.c
35405         * lib/at-func.c (includes): Include prerequisites here, to
35406         simplify requirements on client files.
35407         * lib/openat-priv.h: Add double-inclusion guard.
35408         * lib/faccessat.c (includes): Simplify.
35409         * lib/fchmodat.c (includes): Likewise.
35410         * lib/fchownat.c (includes): Likewise.
35411         * lib/mkdirat.c (includes): Likewise.
35412         * lib/mkfifoat.c (includes): Likewise.
35413         * lib/symlinkat.c (includes): Likewise.
35414
35415         openat: allow return of fd 0
35416         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35417         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35418         unistd-safer.
35419         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35420         <fcntl.h>; this module does not leak fds.
35421         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35422         must be allowed to return 0, leaving openat_safer to add the
35423         safety.
35424         (openat_permissive): Avoid writing to just-opened fd 2 if
35425         restoring the current directory fails.
35426         * lib/openat-die.c (openat_restore_fail): Add comment.
35427         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35428         (save_cwd): Guarantee safe fd, but without use of open_safer.
35429         * tests/test-openat.c: New test.
35430         * modules/openat-tests (Files, Makefile.am): Distribute and build
35431         new file.
35432
35433         relocatable-prog-wrapper: fix build
35434         * modules/relocatable-prog-wrapper (Files): Update name of
35435         canonicalize m4 file, broken on 2009-09-17.
35436         Reported by emad hajjar <aleppos@hotmail.com>.
35437
35438 2009-09-19  Bruno Haible  <bruno@clisp.org>
35439
35440         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35441         * lib/safe-alloc.c: Likewise.
35442         Reported by Ian Beckwith <ianb@erislabs.net>.
35443
35444 2009-09-18  Bruno Haible  <bruno@clisp.org>
35445
35446         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35447         Reported by <erobles@sensacd.com.mx>.
35448
35449 2009-09-17  Eric Blake  <ebb9@byu.net>
35450
35451         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35452         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35453         slashes when checking if last component is missing.
35454         * tests/test-canonicalize.c (main): Test this.
35455
35456         canonicalize, canonicalize-lgpl: honor // if distinct from /
35457         * modules/canonicalize (Files): Add double-slash-root.m4.
35458         * modules/canonicalize-lgpl (Files): Likewise.
35459         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35460         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35461         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35462         fallback definition.
35463         (canonicalize_filename_mode): Use it to protect //.
35464         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35465         (__realpath): Likewise.
35466         * tests/test-canonicalize.c (main): Test this.
35467         * tests/test-canonicalize-lgpl.c (main): Likewise.
35468         * modules/canonicalize-tests (Depends-on): Add same-inode.
35469         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35470
35471         canonicalize-lgpl: fix glibc bug with trailing slash
35472         * m4/canonicalize-lgpl.m4: Move contents...
35473         * m4/canonicalize.m4: ...here.
35474         (gl_CANONICALIZE_LGPL): Factor realpath check...
35475         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35476         glibc 2.3.5 bug, fixed 2005-04-27.
35477         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35478         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35479         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35480         * modules/canonicalize-lgpl (Files): Manage file rename.
35481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35482         * modules/stdlib (Makefile.am): Substitute witness.
35483         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35484         is needed.
35485         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35486         replacement is required.
35487         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35488         * doc/glibc-functions/canonicalize_file_name.texi
35489         (canonicalize_file_name): Document this.
35490         * doc/posix-functions/realpath.texi (realpath): Likewise.
35491
35492         canonicalize-lgpl: reject non-directory with trailing slash
35493         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35494         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35495         catches failures in glibc 2.3.5.
35496         * tests/test-canonicalize.c (main): Likewise.
35497
35498         canonicalize-lgpl: use native realpath if it works
35499         * lib/canonicalize-lgpl.c (realpath): Guard with
35500         FUNC_REALPATH_WORKS.
35501         * lib/stdlib.in.h (realpath): Make declaration optional based on
35502         HAVE_REALPATH.
35503         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35504         native realpath works.
35505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35506         * modules/stdlib (Makefile.am): Substitute witness.
35507
35508         canonicalize, canonicalize-lgpl: use <stdlib.h>
35509         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35510         (Include): Mention <stdlib.h>.
35511         (configure.ac): Mention functions we provide.
35512         * modules/canonicalize (configure.ac): Likewise.
35513         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35514         realpath if canonicalize_file_name is missing.
35515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35516         * modules/stdlib (Makefile.am): Substitute witnesses.
35517         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35518         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35519         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35520         * NEWS: Document this.
35521         * doc/glibc-functions/canonicalize_file_name.texi
35522         (canonicalize_file_name): Likewise.
35523         * doc/posix-functions/realpath.texi (realpath): Likewise.
35524         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35525
35526         test-canonicalize: consolidate into single C program
35527         * tests/test-canonicalize.sh: Delete; move setup into...
35528         * tests/test-canonicalize.c (main): ...the program, making it
35529         easier to run in debugger.  Add some tests.
35530         * modules/canonicalize-tests (Files): Remove unused file.
35531         (Depends-on): Add progname.
35532         (configure.ac, Makefile.am): Simplify.
35533
35534         test-canonicalize-lgpl: consolidate into single C program
35535         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35536         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35537         easier to run in debugger.  Add some tests.
35538         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35539         (configure.ac, Makefile.am): Simplify.
35540
35541         canonicalize: avoid resolvepath
35542         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35543         unnecessary checks.
35544         * lib/canonicalize.c (includes): Simplify.
35545         (canonicalize_file_name): Drop resolvepath implementation.
35546         * modules/canonicalize (Depends-on): Drop filenamecat.
35547
35548         canonicalize: don't lose errno
35549         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35550         over calls to free.
35551
35552         canonicalize: simplify errno handling
35553         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35554         assignment.
35555
35556         canonicalize, canonicalize-lgpl: update module dependencies
35557         * modules/canonicalize (Depends-on): Add extensions, lstat,
35558         pathmax, stdlib.
35559         (Files): Drop pathmax.h.
35560         (configure.ac): Adjust macro name.
35561         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35562         lstat, stdlib, sys_stat.
35563         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35564         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35565         extensions.
35566         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35567         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35568         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35569         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35570         declaration, if available.
35571         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35572         we can rely on the readlink module.
35573         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35574         (includes): Use <unistd.h> unconditionally.
35575
35576 2009-09-17  Eric Blake  <ebb9@byu.net>
35577
35578         maint: make Include sections of modules consistent
35579         * modules/alloca: Use only header name; no need to list #include.
35580         * modules/alloca-opt: Likewise.
35581         * modules/arpa_inet: Likewise.
35582         * modules/canon-host: Likewise.
35583         * modules/configmake: Likewise.
35584         * modules/dirent: Likewise.
35585         * modules/eealloc: Likewise.
35586         * modules/environ: Likewise.
35587         * modules/fchdir: Likewise.
35588         * modules/fcntl: Likewise.
35589         * modules/fcntl-h: Likewise.
35590         * modules/gethrxtime: Likewise.
35591         * modules/gettime: Likewise.
35592         * modules/ignore-value: Likewise.
35593         * modules/inet_ntop: Likewise.
35594         * modules/inet_pton: Likewise.
35595         * modules/inttypes: Likewise.
35596         * modules/isnand-nolibm: Likewise.
35597         * modules/isnanf-nolibm: Likewise.
35598         * modules/mbchar: Likewise.
35599         * modules/mbfile: Likewise.
35600         * modules/mbiter: Likewise.
35601         * modules/mbuiter: Likewise.
35602         * modules/netdb: Likewise.
35603         * modules/netinet_in: Likewise.
35604         * modules/nproc: Likewise.
35605         * modules/pagealign_alloc: Likewise.
35606         * modules/poll: Likewise.
35607         * modules/printf-frexp: Likewise.
35608         * modules/pthread: Likewise.
35609         * modules/putenv: Likewise.
35610         * modules/random_r: Likewise.
35611         * modules/relocatable-prog: Likewise.
35612         * modules/search: Likewise.
35613         * modules/select: Likewise.
35614         * modules/selinux-h: Likewise.
35615         * modules/settime: Likewise.
35616         * modules/signal: Likewise.
35617         * modules/size_max: Likewise.
35618         * modules/socklen: Likewise.
35619         * modules/ssize_t: Likewise.
35620         * modules/stdarg: Likewise.
35621         * modules/stdbool: Likewise.
35622         * modules/stddef: Likewise.
35623         * modules/stdint: Likewise.
35624         * modules/stdio: Likewise.
35625         * modules/stdlib: Likewise.
35626         * modules/string: Likewise.
35627         * modules/strings: Likewise.
35628         * modules/sys_file: Likewise.
35629         * modules/sys_ioctl: Likewise.
35630         * modules/sys_select: Likewise.
35631         * modules/sys_socket: Likewise.
35632         * modules/sys_stat: Likewise.
35633         * modules/sys_time: Likewise.
35634         * modules/sys_times: Likewise.
35635         * modules/sys_utsname: Likewise.
35636         * modules/sys_wait: Likewise.
35637         * modules/sysexits: Likewise.
35638         * modules/time: Likewise.
35639         * modules/times: Likewise.
35640         * modules/tmpfile: Likewise.
35641         * modules/trim: Likewise.
35642         * modules/unistd: Likewise.
35643         * modules/wchar: Likewise.
35644         * modules/wctype: Likewise.
35645
35646 2009-09-17  Bruno Haible  <bruno@clisp.org>
35647
35648         Make getdate.y compile on QNX and NetBSD 5 / i386.
35649         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35650         TIME_T_FITS_IN_LONG_INT.
35651         * lib/getdate.y (long_time_t): New type.
35652         (relative_time): Change type of 'seconds' field to long_time_t.
35653         (get_date): Update types of local variables. Check against overflow
35654         during conversion from long_time_t to time_t.
35655         Reported by Matt Kraai <kraai@ftbfs.org>
35656         and Hasso Tepper <hasso@netbsd.org>.
35657
35658 2009-09-17  Bruno Haible  <bruno@clisp.org>
35659
35660         * modules/COPYING: Update copyright years.
35661         * modules/README: Likeiwse.
35662         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35663         Reported by Ian Beckwith <ianb@erislabs.net>.
35664
35665 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35666
35667         * users.txt: Update references for gnuit package.
35668
35669 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35670
35671         * m4/getdelim.m4: Fix typo in copyright line.
35672
35673 2009-09-17  Bruno Haible  <bruno@clisp.org>
35674
35675         * lib/atoll.c: Use the standard header with GPL copyright.
35676         * lib/argz.in.h: Likewise.
35677         * lib/glob.c: Likewise.
35678         * lib/glob-libc.h: Likewise.
35679         * lib/random_r.c: Likewise.
35680         * lib/siglist.h: Likewise.
35681         * lib/strsignal.c: Likewise.
35682         Reported by Ian Beckwith <ianb@erislabs.net>.
35683
35684 2009-09-17  Eric Blake  <ebb9@byu.net>
35685
35686         rmdir: ensure correct dependency order
35687         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35688
35689 2009-09-17  Bruno Haible  <bruno@clisp.org>
35690
35691         Disable assertion that fails on NetBSD 5 / i386.
35692         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35693         Reported by Sam Steingold <sds@gnu.org>
35694         and Hasso Tepper <hasso@netbsd.org>.
35695
35696 2009-09-16  Eric Blake  <ebb9@byu.net>
35697
35698         unlinkdir: port to mingw
35699         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35700         on which no one can unlink a directory.
35701
35702         stdlib: sort witness names
35703         * modules/stdlib (Makefile.am): Sort replacements.
35704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35705         * lib/stdlib.in.h: Likewise.
35706
35707         parse-duration-tests: avoid link failure
35708         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35709         LIBINTL.
35710         Reported by Tom G. Christensen.
35711
35712         openat-tests: ensure unlinkat behaves like rmdir
35713         * tests/test-rmdir.c (main): Factor guts...
35714         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35715         * modules/rmdir-tests (Files): Ship new file.
35716         * modules/openat-tests: New test.
35717         * tests/test-unlinkat.c: Likewise.
35718
35719         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35720         * modules/rmdir-errno (Status, Notice): Now obsolete.
35721
35722         rmdir: work around cygwin 1.5.x and mingw bugs
35723         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35724         * lib/rmdir.c (rmdir): Work around it.
35725         * modules/rmdir (Status, Notice): No longer obsolete.
35726         (Files): Add dos.m4.
35727         (Depends-on): Add unistd.
35728         (configure.ac): Set witnesses.
35729         (License): Relax to LGPLv2+.
35730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35731         * modules/unistd (Makefile.am): Substitute witnesses.
35732         * lib/unistd.in.h (rmdir): Declare replacement.
35733         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35734         * modules/rmdir-tests: New tests.
35735         * tests/test-rmdir.c: Likewise.
35736
35737 2009-09-15  Eric Blake  <ebb9@byu.net>
35738
35739         fchdir: improve use of replacement functions
35740         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35741         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35742         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35743         REPLACE_CLOSEDIR.
35744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35745         * modules/sys_stat (Makefile.am): Substitute correct witness.
35746         * modules/dirent (Makefile.am): Likewise.
35747         * modules/unistd (Makefile.am): Likewise.
35748         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35749         * lib/unistd.in.h (dup): Likewise.
35750         * lib/sys_stat.in.h (fstat): Likewise.
35751
35752         maint: ignore gnulib-tool temp files
35753         * .gitignore: Ignore files created during gnulib-tool --test.
35754
35755 2009-09-13  Jim Meyering  <meyering@redhat.com>
35756
35757         posixtm: don't reject a time that specify "60" as the number of seconds
35758         * lib/posixtm.c (posixtime): The code to reject invalid dates
35759         would also reject a time specified with the .60 suffix.
35760         But POSIX allows that, in order to accommodate leap seconds.
35761         So don't reject it.
35762         (main): Adjust tests accordingly.
35763         * modules/posixtm (Depends-on): Add stpcpy.
35764
35765 2009-09-11  Jim Meyering  <meyering@redhat.com>
35766
35767         announce-gen: include [$release_type] in emitted Subject:
35768         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35769         e.g., [stable] in the emitted Subject: line.
35770
35771 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35772
35773         Remove obsolete macros from several modules.
35774         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35775         obsolete Autoconf macros with their modern counterparts.
35776         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35777         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35779         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35780         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35781         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35782         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35783         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35784         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35785         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35786         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35788         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35789         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35790         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35791         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35792         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35793         * m4/time_r.m4 (gl_TIME_R): Likewise.
35794         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35795         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35796         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35797
35798         Fix copyright header in build-aux scripts.
35799         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35800         recommendation.
35801         * build-aux/ncftpput-ftp: Likewise.
35802         * build-aux/update-copyright: Likewise.
35803
35804 2009-09-09  Eric Blake  <ebb9@byu.net>
35805
35806         test-link: allow Linux choice of errno
35807         * tests/test-link.c (main): Relax test for alternate error.
35808
35809         strndup: fix improper m4 caching
35810         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35811         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35812         (gl_PREREQ_STRNDUP): Delete.
35813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35814         * modules/string (Makefile.am): Substitute it.
35815         * lib/string.in.h (strndup): Modernize prototype.
35816
35817         getcwd: port to mingw
35818         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35819         different from the POSIX assumptions made throughout the getcwd
35820         module; fortunately, the mingw getcwd does not need replacement.
35821         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35822         * modules/getcwd-tests: New test.
35823         * tests/test-getcwd.c: Likewise.
35824
35825         link: fix platform bugs
35826         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35827         * lib/link.c (link): Work around them.  Fix related mingw bug.
35828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35829         * modules/unistd (Makefile.am): Substitute it.
35830         * lib/unistd.in.h (link): Declare replacement.
35831         * doc/posix-functions/link.texi (link): Document this.
35832         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35833
35834         test-link: consolidate into single C program, test more cases
35835         * tests/test-link.sh: Delete.
35836         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35837         at least Cygwin and Solaris.
35838         * modules/link-tests (Files): Remove unused file.
35839         (Depends-on): Add errno, sys_stat.
35840         (Makefile.am): Simplify.
35841
35842 2009-09-08  Bruno Haible  <bruno@clisp.org>
35843
35844         Work around towlower, towupper bug on mingw.
35845         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35846         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35847         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35848         * doc/posix-functions/towupper.texi: Likewise.
35849         Reported by Eric Blake.
35850
35851 2009-09-08  Jim Meyering  <meyering@redhat.com>
35852
35853         build: don't try to run autoheader if we don't use it
35854         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35855         is not used in configure.ac.
35856
35857 2009-09-08  Eric Blake  <ebb9@byu.net>
35858
35859         euidaccess: fix compilation error
35860         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35861
35862         rawmemchr: relax license
35863         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35864         okay.
35865         Reported by Jim Meyering.
35866
35867         mkfifoat: new module
35868         * modules/mkfifoat: New file.
35869         * lib/mkfifoat.c: Likewise.
35870         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35871         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35872         * modules/sys_stat (Makefile.am): Use them.
35873         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35874         * MODULES.html.sh (File system functions): Mention module.
35875         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35876         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35877         * modules/mkfifoat-tests: New test.
35878         * tests/test-mkfifoat.c: Likewise.
35879
35880         strchrnul: relax license
35881         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35882         okay.
35883         Reported by Jim Meyering.
35884
35885 2009-09-08  Eric Blake  <ebb9@byu.net>
35886
35887         fstatat: fix compilation on Solaris
35888         * lib/fstatat.c (includes): Add fcntl.h.
35889         Reported by Pádraig Brady.
35890
35891 2009-09-07  Eric Blake  <ebb9@byu.net>
35892
35893         rename: modernize replacement
35894         * modules/rename (Depends-on): Add stdio.
35895         (configure.ac): Declare witness.
35896         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35897         stdio take care of replacement.
35898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35899         * modules/stdio (Makefile.am): Substitute them.
35900         * lib/stdio.in.h (rename): Declare replacement.
35901         * lib/rename.c (includes): Allow cross-compilation to non-windows
35902         machines.
35903         * doc/posix-functions/rename.texi (rename): Improve
35904         documentation.
35905
35906         stdio: sort witness names
35907         * modules/stdio (Makefile.am): Sort replacements.
35908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35909         * lib/stdio.in.h: Likewise.
35910
35911         getcwd: minor cleanups
35912         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35913         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35914
35915         openat: provide more convenience names
35916         * modules/faccessat (configure.ac): Add C witness.
35917         * lib/unistd.in.h (readlinkat): Fix typo.
35918         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35919         convenience wrappers.
35920         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35921         wrappers in syntax checks.
35922
35923 2009-09-06  Eric Blake  <ebb9@byu.net>
35924
35925         doc: fix comments in recent patches
35926         * lib/faccessat.c: Mention correct function.
35927         * lib/fchmodat.c: Likewise.
35928         * lib/fchownat.c: Likewise.
35929         * lib/symlinkat.c: Likewise.
35930         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35931         constants.
35932
35933         faccessat, symlinkat: continue cleanup of previous patch
35934         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35935         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35936         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35938         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35939         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35940         set.
35941
35942 2009-09-06  Bruno Haible  <bruno@clisp.org>
35943
35944         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35945         (fstatat): Declare if GNULIB_FSTATAT is set.
35946         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35947         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35948         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35949         * modules/fcntl-h (Files): Remove m4/openat.m4.
35950         * modules/sys_stat (Files): Remove m4/openat.m4.
35951         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35952         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35953         * modules/unistd (Files): Remove m4/openat.m4.
35954         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35955         GNULIB_OPENAT.
35956         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35957         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35958         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35959         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35960         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35961         gl_OPENAT_DEFAULTS.
35962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35963         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35964         Don't require gl_OPENAT_DEFAULTS.
35965         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35966         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35967         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35968         (gl_OPENAT_DEFAULTS): Remove macro.
35969
35970 2009-09-06  Bruno Haible  <bruno@clisp.org>
35971
35972         * modules/openat (configure.ac): Remove unneeded witness.
35973
35974 2009-09-06  Bruno Haible  <bruno@clisp.org>
35975
35976         Set errno to ENOSYS when a function is entirely unsupported.
35977         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35978         EOPNOTSUPP.
35979         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35980         * modules/chown (Depends-on): Remove errno.
35981
35982 2009-09-06  Bruno Haible  <bruno@clisp.org>
35983
35984         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35985
35986 2009-09-06  Bruno Haible  <bruno@clisp.org>
35987
35988         * lib/sys_stat.in.h: Fix preprocessor command indentation.
35989
35990 2009-09-06  Ben Pfaff  <blp@gnu.org>
35991             Bruno Haible  <bruno@clisp.org>
35992
35993         Work around a glibc bug in strtok_r.
35994         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
35995         Undefine if UNDEFINE_STRTOK_R is set.
35996         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
35997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35998         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
35999         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36000         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36001         UNDEFINE_STRTOK_R.
36002         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36003
36004 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36005
36006         exclude: minor fix
36007         * lib/exclude.c: Include wctype.h
36008
36009 2009-09-06  Akim Demaille  <demaille@gostai.com>
36010
36011         bootstrap: improve error message
36012         * build-aux/bootstrap (find_tool): Upon failure, report the list
36013         of candidates.
36014         Honor the initial value of the envvar.
36015
36016 2009-09-05  Eric Blake  <ebb9@byu.net>
36017
36018         symlinkat: new module
36019         * modules/symlinkat: New file.
36020         * lib/symlinkat.c: Likewise.
36021         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36023         * modules/unistd (Makefile.am): Use them.
36024         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36025         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36026         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36027         * MODULES.html.sh (File system functions): Mention module.
36028         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36029         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36030         * modules/symlinkat-tests: New test.
36031         * tests/test-symlinkat.c: Likewise.
36032
36033         test-openat-safer: add more checks
36034         * tests/test-openat-safer.c (main): Check more code paths.
36035
36036 2009-09-05  Jim Meyering  <meyering@redhat.com>
36037
36038         syntax-check: detect unnecessary inclusion of openat.h
36039         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36040
36041 2009-09-05  Bruno Haible  <bruno@clisp.org>
36042
36043         Support towlower, towupper.
36044         * doc/posix-functions/towlower.texi: Mention module wctype.
36045         * doc/posix-functions/towupper.texi: Likewise.
36046         * lib/wctype.in.h (towlower, towupper): New functions.
36047         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36048         (ASSERT): New macro.
36049         (e): New variable.
36050         (main): Test also towlower, towupper. Test WEOF argument.
36051         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36052
36053 2009-09-05  Bruno Haible  <bruno@clisp.org>
36054
36055         Fix conversion behaviour when the input is invalid.
36056         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36057         mark occurring in first pass of indirect conversion.
36058         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36059         input.
36060         Found by clang's static analyzer.
36061
36062 2009-09-05  Bruno Haible  <bruno@clisp.org>
36063
36064         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36065         where direct conversion is possible.
36066
36067 2009-09-04  Eric Blake  <ebb9@byu.net>
36068
36069         openat: fail with ENOENT on empty name
36070         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36071         buffer.
36072
36073         link-follow: fix logic bug in prior patch
36074         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36075         reversed sense of yes and no in prior patch.  Avoid confusing
36076         compilation failure with desired semantics.
36077
36078         link-follow: accomodate mingw and cross-compilation
36079         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36080         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36081         cross-compilation results to -1, to make linkat easier to
36082         implement when cross-compiling.  Trivially support mingw.
36083         * modules/link-follow (configure.ac): Call new name.
36084         * NEWS: Mention this.
36085
36086 2009-09-03  Eric Blake  <ebb9@byu.net>
36087
36088         faccessat: compile replacement
36089         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36090         needed.
36091
36092         fts: fix compilation error
36093         * lib/fts.c (includes): Re-add "openat.h", for
36094         openat_needs_fchdir.
36095
36096         faccessat: new module
36097         * modules/faccessat: New file.
36098         * lib/faccessat.c: Likewise.
36099         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36101         * modules/unistd (Makefile.am): Use it.
36102         * lib/unistd.in.h (faccessat): Declare it.
36103         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36104         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36105         * MODULES.html.sh (File system functions): Mention it.
36106         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36107         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36108
36109         euidaccess: prefer POSIX over non-standard implementation
36110         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36111         * lib/euidaccess.c (euidaccess): Use it if available.
36112
36113         openat: make template easier to use
36114         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36115         AT_FUNC_F2 to be undefined.
36116         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36117         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36118         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36119         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36120         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36121         Likewise.
36122         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36123         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36124         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36125         Likewise.
36126
36127         openat: declare in POSIX headers
36128         * NEWS: Mention this.
36129         * modules/openat (configure.ac): Declare witnesses.
36130         (Depends-on): Add fcntl-h, sys_stat, unistd.
36131         (Include): Mention correct headers.
36132         * modules/fcntl-h (Depends-on): Add link-warning.
36133         (Files): Add openat.m4.
36134         (Makefile.am): Substitute witnesses.
36135         * modules/sys_stat (Files, Makefile.am): Likewise.
36136         * modules/unistd (Files, Makefile.am): Likewise.
36137         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36138         (gl_OPENAT_DEFAULTS): New macro.
36139         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36141         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36142         (SYS_STAT_H): Remove unused variable.
36143         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36144         * lib/fcntl--.h (includes): Remove unneeded header.
36145         * lib/openat-safer.c (includes): Likewise.
36146         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36147         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36148         appropriate headers.
36149         (__OPENAT_PREFIX): Delete.
36150         * lib/fcntl.in.h (openat): Provide declaration.
36151         (AT_FDCWD): Fix Solaris bug.
36152         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36153         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36154         * lib/fchmodat.c (includes):  Adjust to find declaration.
36155         * lib/fchownat.c (includes): Likewise.
36156         * lib/mkdirat.c (includes): Likewise.
36157         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36158         still visible.
36159
36160 2009-09-02  Eric Blake  <ebb9@byu.net>
36161
36162         errno: use consistently
36163         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36164         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36165         * lib/canonicalize.c (ELOOP): Likewise.
36166         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36167         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36168         * lib/lchown.c (EOPNOTSUPP): Likewise.
36169         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36170         * lib/savewd.c (ESTALE): Likewise.
36171         * lib/settime.c (ENOSYS): Likewise.
36172         * lib/utimens.c (ENOSYS): Likewise.
36173         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36174         * lib/chdir-safer.c (ELOOP): Likewise.
36175         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36176         * modules/c-stack (Depends-on): Add errno.
36177         * modules/canonicalize (Depends-on): Likewise.
36178         * modules/chdir-safer (Depends-on): Likewise.
36179         * modules/fdopendir (Depends-on): Likewise.
36180         * modules/inet_ntop (Depends-on): Likewise.
36181         * modules/inet_pton (Depends-on): Likewise.
36182         * modules/lchown (Depends-on): Likewise.
36183         * modules/openat (Depends-on): Likewise.
36184         * modules/savewd (Depends-on): Likewise.
36185         * modules/settime (Depends-on): Likewise.
36186         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36187
36188         fts: avoid leaking fds
36189         * modules/fts (Depends-on): Add cloexec.
36190         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36191         flag.
36192
36193         fts: make directory fds more robust
36194         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36195         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36196
36197         backupfile, chdir-long, fts, savedir: make safer
36198         * lib/backupfile.c (includes): Use "dirent--.h", since
36199         numbered_backup can write to stderr during readdir.
36200         * lib/savedir.c (includes): Likewise.
36201         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36202         emulation can write to stderr on failure.
36203         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36204         * lib/getcwd.c: Document why opendir_safer is unused.
36205         * lib/glob.c: Likewise.
36206         * lib/scandir.c: Likewise.
36207         * lib/openat-proc.c: Likewise, for open_safer.
36208         * modules/backupfile (Depends-on): Add dirent-safer.
36209         * modules/savedir (Depends-on): Likewise.
36210         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36211         * modules/chdir-long (Depends-on): Add openat-safer.
36212
36213         openat-safer: new module
36214         * modules/openat-safer: New file.
36215         * lib/openat-safer.c: Likewise.
36216         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36217         * lib/fcntl-safer.h (openat_safer): Declare.
36218         * lib/fcntl--.h (openat): Override.
36219         * MODULES.html.sh (File descriptor based I/O): Mention it.
36220         * lib/openat.h: Add double-inclusion guards.
36221         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36222         "fcntl--.h", so we can implement openat.
36223         * modules/openat-safer-tests: New test.
36224         * tests/test-openat-safer.c: New file.
36225
36226         dirent-safer: new module
36227         * modules/dirent-safer: New file.
36228         * lib/dirent--.h: Likewise.
36229         * lib/dirent-safer.h: Likewise.
36230         * lib/opendir-safer.c: Likewise.
36231         * m4/dirent-safer.m4: Likewise.
36232         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36233         * modules/dirent-safer-tests: New test.
36234         * tests/test-dirent-safer.c: New file.
36235         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36236
36237         fdopendir: optimize on mingw
36238         * lib/unistd.in.h (_gl_directory_name): New prototype.
36239         * lib/fchdir.c (_gl_directory_name): Implement it.
36240         (fchdir): Use it to simplify implementation.
36241         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36242         fchdir, when available, to avoid calling [f]chdir().
36243
36244         fdopendir: split into its own module
36245         * lib/openat.c (fdopendir): Move...
36246         * lib/fdopendir.c: ...into new file.
36247         * modules/fdopendir: New module.
36248         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36249         * modules/openat (Depends-on): Add fdopendir.
36250         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36251         fdopendir here.
36252         * modules/savedir (Depends-on): Only need fdopendir, not full
36253         openat.
36254         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36255         * lib/openat.h (fdopendir): Drop prototype.
36256         * lib/dirent.in.h (fdopendir): Provide prototype.
36257         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36258         * modules/dirent (Makefile.am): Substitute them.
36259         * MODULES.html.sh (File system functions): Mention it.
36260         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36261         * modules/fdopendir-tests: New file.
36262         * tests/test-fdopendir.c: Likewise.
36263
36264         fchdir: use more consistent macro convention
36265         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36266         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36267         REPLACE_FCHDIR, rather than relying on config.h macros.
36268         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36269         inside a single make-time REPLACE_FCHDIR block, rather than using
36270         the config.h FCHDIR_REPLACEMENT.
36271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36272         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36273         Manage fstat replacement.
36274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36275         REPLACE_FCHDIR.
36276         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36277         (Makefile.am): Substitute REPLACE_FCHDIR.
36278         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36279         FCHDIR_REPLACEMENT.
36280         * lib/dup-safer.c (dup_safer): Likewise.
36281         * lib/dup2.c (rpl_dup2): Likewise.
36282         * lib/dup3.c (rpl_dup3): Likewise.
36283         * lib/open.c (rpl_open): Likewise.
36284
36285         fchdir: simplify error handling, and support dup3
36286         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36287         stdbool, malloc-posix, realloc-posix.
36288         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36289         (ensure_dirs_slot): Return false on allocation failure.
36290         (rpl_dup2): Delete.
36291         (_gl_register_dup): New function.
36292         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36293         (_gl_register_fd): Close fd on allocation failure.
36294         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36295         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36296         prototype.
36297         (rpl_dup2_fchdir): Delete prototype.
36298         * lib/open.c (open): Update caller.
36299         * lib/dup2.c (dup2): Track fchdir metadata.
36300         * lib/dup3.c (dup3): Likewise.
36301         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36303
36304 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36305
36306         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36307         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36308         don't pass arguments to AC_OUTPUT.
36309
36310 2009-09-02  Bruno Haible  <bruno@clisp.org>
36311
36312         * modules/mkdtemp (License): Relicense under LGPLv2+.
36313         Reported by Paolo Bonzini.
36314
36315 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36316
36317         Replace uses of obsolete autoconf macros in Jim's modules.
36318         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36319         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36320         can evoke a warning from autoconf when run with -Wobsolete
36321         enabled.  They were declared obsolete for good reasons (see
36322         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36323         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36324         should not continue using the deprecated macros.
36325         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36326         obsolete Autoconf macros with modern counterparts.
36327         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36328         * m4/dos.m4 (gl_AC_DOS): Likewise.
36329         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36330         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36331         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36332         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36333         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36334         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36335         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36336         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36337         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36338         Likewise.
36339         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36340         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36341         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36342         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36343         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36344         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36345
36346 2009-09-01  Eric Blake  <ebb9@byu.net>
36347
36348         fchdir: fix off-by-one bug in previous patch
36349         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36350         (_gl_unregister_fd): Delete useless if.
36351
36352 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36353
36354         maint.mk: sort the list of syntax-check rules
36355         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36356         easier to get a sense of progress when the rules are run sequentially
36357         and take a long time.
36358
36359 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36360
36361         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36362         * modules/netinet_in: Likewise.
36363         * modules/sys_file: Likewise.
36364         * modules/sys_ioctl: Likewise.
36365         * modules/sys_select: Likewise.
36366         * modules/sys_socket: Likewise.
36367         * modules/sys_stat: Likewise.
36368         * modules/sys_time: Likewise.
36369         * modules/sys_times: Likewise.
36370         * modules/sys_utsname: Likewise.
36371         * modules/sys_wait: Likewise.
36372
36373 2009-09-01  Jim Meyering  <meyering@redhat.com>
36374
36375         fts: help ensure that return values are not ignored
36376         * lib/fts_.h (__GNUC_PREREQ): Define.
36377         (__attribute_warn_unused_result__): Define.
36378         (fts_children, fts_close, fts_open, fts_read): Declare with
36379         __attribute_warn_unused_result__.
36380
36381         fts: fts_close now fails also when closing a dir file descriptor fails
36382         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36383         and propagate to caller, along with errno.
36384
36385         announce-gen: correct formatting in --help output
36386         * build-aux/announce-gen (usage): Move the one-line description in
36387         --help output "up", to where it belongs, just after Usage:.
36388
36389 2009-08-31  Eric Blake  <ebb9@byu.net>
36390
36391         fchdir: port to mingw
36392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36393         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36394         opened, then use a substitute.
36395         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36396         replacement.
36397         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36398         (_gl_register_fd): No need to check stat if open already filters
36399         all directories.
36400         (fchdir): Fix error condition to match POSIX.
36401         * modules/fchdir (Depends-on): Add sys_stat.
36402         * doc/posix-functions/open.texi (open): Document the limitation.
36403         * modules/fchdir-tests: New file.
36404         * tests/test-fchdir.c: Likewise.
36405
36406         canonicalize: allow cross-testing from cygwin to mingw
36407         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36408         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36409         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36410         Likewise.
36411         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36412         target does not support symlinks.
36413         * tests/test-canonicalize-lgpl.sh: Likewise.
36414
36415         chown: avoid compilation warning on mingw
36416         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36417         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36418         mingw.
36419         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36420         * modules/chown (Depends-on): Add errno.
36421
36422 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36423
36424         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36425         command.
36426
36427 2009-08-31  Jim Meyering  <meyering@redhat.com>
36428
36429         canonicalize: remove useless initialization
36430         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36431         initialization of local, "end".
36432
36433 2009-08-30  Bruno Haible  <bruno@clisp.org>
36434
36435         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36436         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36437         ENOSYS.
36438
36439 2009-08-30  Bruno Haible  <bruno@clisp.org>
36440
36441         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36442         /usr/xpg4/bin/tr when it exists.
36443         * tests/test-pipe-filter-gi1.sh: Likewise.
36444
36445 2009-08-30  Bruno Haible  <bruno@clisp.org>
36446
36447         Work around deficient /usr/bin/id program on Solaris.
36448         * tests/test-file-has-acl.sh (ID): New variable.
36449         * tests/test-set-mode-acl.sh (ID): Likewise.
36450         * tests/test-copy-acl.sh (ID): Likewise.
36451         * tests/test-copy-file.sh (ID): Likewise.
36452
36453 2009-08-30  Bruno Haible  <bruno@clisp.org>
36454
36455         New module 'xstriconveh'.
36456         * lib/xstriconveh.h: New file.
36457         * lib/xstriconveh.c: New file.
36458         * modules/xstriconveh: New file.
36459
36460 2009-08-30  Bruno Haible  <bruno@clisp.org>
36461
36462         Make it easier to use mem_cd_iconveh.
36463         * lib/striconveh.h (iconveh_t): New type.
36464         (iconveh_open, iconveh_close): New declarations.
36465         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36466         with a single 'const iconveh_t *' argument.
36467         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36468         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36469         with a single 'const iconveh_t *' argument.
36470         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36471         * tests/test-striconveh.c (main): Update.
36472         * NEWS: Mention the change.
36473
36474 2009-08-30  Bruno Haible  <bruno@clisp.org>
36475
36476         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36477         problem.
36478
36479 2009-08-30  Bruno Haible  <bruno@clisp.org>
36480
36481         Work around iconv_open problem on Solaris.
36482         * lib/iconv_open-solaris.gperf: New file.
36483         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36484         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36485         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36486         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36487         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36488         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36489
36490 2009-08-29  Jim Meyering  <meyering@redhat.com>
36491
36492         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36493         * top/maint.mk (cvs-check): Remove target; it was just an alias
36494         to the better-named vc-diff-check.
36495         (maintainer-distcheck): Remove rule.  It was used only from
36496         the (alpha/beta/major) target, and all of its commands but one
36497         were coreutils-specific.
36498         (vc-dist): Remove rule.
36499         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36500         Run vc-diff-check, not vc-dist.
36501         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36502
36503 2009-08-27  Bruno Haible  <bruno@clisp.org>
36504
36505         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36506         of 0.
36507
36508 2009-08-27  Bruno Haible  <bruno@clisp.org>
36509
36510         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36511         compilers.
36512         * doc/func.texi: Document the SunPRO C bug.
36513
36514 2009-08-27  Bruno Haible  <bruno@clisp.org>
36515
36516         Fix link error on Solaris.
36517         * tests/test-parse-duration.c (xstrdup): Remove function.
36518
36519 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36520
36521         ignore-value: handle pointer types, too
36522         * lib/ignore-value.h (__attribute__): Remove definition.
36523         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36524         of a more concise and more-often effective "(void) i" statement.
36525         (ignore_ptr): New function to suppress warnings from functions that
36526         return pointers, and to make it explicit that one function doesn't
36527         handle all cases.
36528
36529 2009-08-25  Bruno Haible  <bruno@clisp.org>
36530
36531         dup2: work around a Linux bug.
36532         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36533         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36534         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36535         Reported by Simon Josefsson.
36536
36537 2009-08-25  Jim Meyering  <meyering@redhat.com>
36538
36539         libguestfs uses gnulib
36540         * users.txt: Add libguestfs.
36541
36542 2009-08-24  Eric Blake  <ebb9@byu.net>
36543
36544         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36545         * lib/pipe2.c (includes): Add binary-io.h.
36546         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36547
36548 2009-08-24  Bruno Haible  <bruno@clisp.org>
36549
36550         Tolerate declared but missing accept4 syscall.
36551         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36552         available.
36553         * lib/sys_socket.in.h (accept4): If the function is already present,
36554         override it.
36555         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36556         * modules/accept4 (Makefile.am): Compile accept4.c always.
36557         Reported by Paolo Bonzini and Eric Blake.
36558
36559 2009-08-23  Bruno Haible  <bruno@clisp.org>
36560
36561         New module 'accept4'.
36562         * lib/sys_socket.in.h (accept4): New declaration.
36563         * lib/accept4.c: New file.
36564         * m4/accept4.m4: New file.
36565         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36566         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36567         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36568         HAVE_ACCEPT4.
36569         * modules/accept4: New file.
36570         * doc/glibc-functions/accept4.texi: Mention the new module.
36571
36572 2009-08-24  Jim Meyering  <meyering@redhat.com>
36573
36574         progname: also set global program_invocation_name, when possible
36575         Before this change, a libtool-enabled program that calls glibc's
36576         error function would report the program name as
36577         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36578         * modules/progname (configure.ac): Check for a declaration of
36579         program_invocation_name.
36580         * lib/progname.c:  Include <errno.h>.
36581         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36582         Set program_invocation_name.
36583
36584 2009-08-23  Bruno Haible  <bruno@clisp.org>
36585
36586         * lib/dup3.c: Include <string.h>.
36587
36588 2009-08-23  Bruno Haible  <bruno@clisp.org>
36589
36590         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36591         * lib/pipe2.c (pipe2): Likewise.
36592         Suggested by Eric Blake.
36593
36594 2009-08-23  Bruno Haible  <bruno@clisp.org>
36595
36596         Tolerate declared but missing dup3 syscall.
36597         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36598         * lib/unistd.in.h (dup3): If the function is already present,
36599         override it.
36600         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36601         * modules/dup3 (Makefile.am): Compile dup3.c always.
36602         Reported by Paolo Bonzini.
36603
36604 2009-08-23  Bruno Haible  <bruno@clisp.org>
36605
36606         Tolerate declared but missing pipe2 syscall.
36607         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36608         available.
36609         * lib/unistd.in.h (pipe2): If the function is already present,
36610         override it.
36611         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36612         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36613         Reported by Paolo Bonzini.
36614
36615 2009-08-23  Bruno Haible  <bruno@clisp.org>
36616
36617         * lib/pipe2.c (pipe2): Move #ifs inside function.
36618
36619 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36620
36621         quotearg: document limitations of quote_these_too
36622         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36623         those limitations are created.
36624         * lib/quotearg.h (set_char_quoting): Document that digits and
36625         letters that are special after backslash are not permitted.
36626         (quotearg_char): Cross-reference set_char_quoting documentation.
36627
36628 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36629
36630         quotearg: implement custom_quoting_style
36631         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36632         right_quote fields.
36633         (set_custom_quoting): New public function.
36634         (quotearg_buffer_restyled): Add left_quote and right_quote
36635         arguments, handle them very much like locale quoting, and update
36636         all uses.
36637         (quotearg_n_custom): New public function.
36638         (quotearg_n_custom_mem): New public function.
36639         (quotearg_custom): New public function.
36640         (quotearg_custom_mem): New public function.
36641         * lib/quotearg.h: Prototype and document new public functions.
36642         (enum quoting_style): For escape_quoting_style and
36643         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36644         ignored even though they're otherwise like c_quoting_style.
36645         Add custom_quoting_style member and document with comparison to
36646         clocale_quoting_style.
36647         * tests/test-quotearg.c (custom_quotes): New array.
36648         (custom_results): New array.
36649         (main): Extend to test custom quoting.
36650
36651 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36652
36653         quotearg: fix right quote escaping when it's in quote_these_too
36654         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36655         quote, be sure to prepend only one backslash.
36656         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36657         (main): Test it.
36658
36659 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36660
36661         quotearg-tests: test escaping of embedded locale quotes
36662         * tests/test-quotearg.c (struct result_strings): Add member for
36663         new input.
36664         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36665         (inputs): Add new input.
36666         (results_g): Add expected results.
36667         (flag_results): Likewise.
36668         (locale_results): Likewise.
36669         (compare_strings): Check those.
36670
36671 2009-08-23  Bruno Haible  <bruno@clisp.org>
36672
36673         Tests for module 'dup3'.
36674         * modules/dup3-tests: New file.
36675         * tests/test-dup3.c: New file.
36676
36677         New module 'dup3'.
36678         * lib/unistd.in.h (dup3): New declaration.
36679         * lib/dup3.c: New file.
36680         * m4/dup3.m4: New file.
36681         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36682         HAVE_DUP3.
36683         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36684         * modules/dup3: New file.
36685         * doc/glibc-functions/dup3.texi: Mention the new module.
36686
36687 2009-08-23  Bruno Haible  <bruno@clisp.org>
36688
36689         Tweak the dup2 test.
36690         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36691         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36692         the test file is still empty. Fix argument order of lseek.
36693
36694 2009-08-23  Bruno Haible  <bruno@clisp.org>
36695
36696         Avoid test link errors when the modules getopt-gnu, gettext are used.
36697         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36699
36700 2009-08-23  Bruno Haible  <bruno@clisp.org>
36701
36702         Fix getdtablesize() on mingw.
36703         * lib/getdtablesize.c (getdtablesize): Implement differently.
36704         * lib/unistd.in.h (getdtablesize): Improve comment.
36705
36706 2009-08-23  Bruno Haible  <bruno@clisp.org>
36707
36708         New module 'mkostemp'.
36709         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36710         * lib/stdlib.in.h (mksotemp): New declaration.
36711         * lib/mkostemp.c: New file, from glibc with modifications.
36712         * lib/tempname.h (GT_FILE): Remove outdated comment.
36713         (gen_tempname): Add flags argument.
36714         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36715         (__GT_FILE): Map to 1.
36716         (small_open, large_open): Remove macros.
36717         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36718         * lib/mkstemp.c (mkstemp): Update.
36719         * lib/mkdtemp.c (mkdtemp): Likewise.
36720         * m4/mkostemp.m4: New file.
36721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36722         HAVE_MKOSTEMP.
36723         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36724         HAVE_MKOSTEMP.
36725         * modules/mkostemp: New file, based on modules/mkstemp.
36726         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36727         * NEWS: Mention the change.
36728
36729 2009-08-23  Bruno Haible  <bruno@clisp.org>
36730
36731         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36732         Reported by Eric Blake.
36733
36734 2009-08-23  Bruno Haible  <bruno@clisp.org>
36735
36736         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36737         Reported by Eric Blake.
36738
36739 2009-08-23  Bruno Haible  <bruno@clisp.org>
36740
36741         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36742         * modules/pipe2 (Depends-on): Likewise.
36743
36744 2009-08-23  Eric Blake  <ebb9@byu.net>
36745
36746         fcntl-h: add O_TTY_INIT support
36747         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36748         * tests/test-fcntl-h.c (o): Test it.
36749         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36750
36751         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36752         * modules/fcntl: Move <fcntl.h> header replacement...
36753         * modules/fcntl-h: ...to new name, so as not to collide with
36754         like-named function.
36755         * tests/test-fcntl.c: Rename...
36756         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36757         * modules/fcntl-tests: Rename...
36758         * modules/fcntl-h-tests: ...to this.  Update test file name.
36759         * modules/chdir-long (Depends-on): Update clients.
36760         * modules/chdir-safer (Depends-on): Likewise.
36761         * modules/fcntl-safer (Depends-on): Likewise.
36762         * modules/fts (Depends-on): Likewise.
36763         * modules/mkancesdirs (Depends-on): Likewise.
36764         * modules/mkdir-p (Depends-on): Likewise.
36765         * modules/open (Depends-on): Likewise.
36766         * modules/savewd (Depends-on): Likewise.
36767         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36768         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36769
36770 2009-08-22  Bruno Haible  <bruno@clisp.org>
36771
36772         * modules/binary-io (License): Relicense under LGPL.
36773         * modules/pipe2 (License): Likewise.
36774
36775 2009-08-22  Bruno Haible  <bruno@clisp.org>
36776
36777         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36778         return value.
36779         * lib/pipe-filter-gi.c (filter_init): Likewise.
36780         Reported by Eric Blake.
36781
36782 2009-08-22  Bruno Haible  <bruno@clisp.org>
36783
36784         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36785         * modules/pipe (Depends-on): Add pipe2.
36786
36787 2009-08-22  Bruno Haible  <bruno@clisp.org>
36788
36789         Tests for module 'pipe2'.
36790         * modules/pipe2-tests: New file.
36791         * tests/test-pipe2.c: New file.
36792
36793         New module 'pipe2'.
36794         * lib/unistd.in.h (pipe2): New declaration.
36795         * lib/pipe2.c: New file.
36796         * m4/pipe2.m4: New file.
36797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36798         HAVE_PIPE2.
36799         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36800         * modules/pipe2: New file.
36801         * doc/glibc-functions/pipe2.texi: Mention the new module.
36802
36803 2009-08-22  Bruno Haible  <bruno@clisp.org>
36804
36805         Reference some new glibc functions.
36806         * doc/glibc-functions/accept4.texi: New file.
36807         * doc/glibc-functions/dup3.texi: New file.
36808         * doc/glibc-functions/mkostemp.texi: New file.
36809         * doc/glibc-functions/pipe2.texi: New file.
36810         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36811         (Glibc sys/socket.h): Refer to accept4.
36812         (Glibc unistd.h): Refer to dup3, pipe2.
36813         Reported by Eric Blake.
36814
36815 2009-08-22  Jim Meyering  <meyering@redhat.com>
36816             Bruno Haible  <bruno@clisp.org>
36817
36818         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36819         This makes it so packages using automake-1.11's silent-rules option
36820         can print e.g., a single "GEN    configmake.h" line, rather than
36821         the 30+ statements that perform the job.  If you want to see the
36822         actual commands, you can still run "make V=1".
36823         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36824         so that make output is abbreviated when those variables are defined
36825         appropriately.
36826         * modules/argz: Likewise.
36827         * modules/arpa_inet: Likewise.
36828         * modules/byteswap: Likewise.
36829         * modules/configmake: Likewise.
36830         * modules/dirent: Likewise.
36831         * modules/errno: Likewise.
36832         * modules/fcntl: Likewise.
36833         * modules/float: Likewise.
36834         * modules/fnmatch: Likewise.
36835         * modules/getopt-posix: Likewise.
36836         * modules/glob: Likewise.
36837         * modules/iconv_open: Likewise.
36838         * modules/inttypes: Likewise.
36839         * modules/localcharset: Likewise.
36840         * modules/locale: Likewise.
36841         * modules/math: Likewise.
36842         * modules/netdb: Likewise.
36843         * modules/netinet_in: Likewise.
36844         * modules/poll: Likewise.
36845         * modules/posix_spawnp-tests: Likewise.
36846         * modules/sched: Likewise.
36847         * modules/search: Likewise.
36848         * modules/selinux-h: Likewise.
36849         * modules/signal: Likewise.
36850         * modules/spawn: Likewise.
36851         * modules/stdarg: Likewise.
36852         * modules/stdbool: Likewise.
36853         * modules/stddef: Likewise.
36854         * modules/stdint: Likewise.
36855         * modules/stdio: Likewise.
36856         * modules/stdlib: Likewise.
36857         * modules/string: Likewise.
36858         * modules/strings: Likewise.
36859         * modules/sys_file: Likewise.
36860         * modules/sys_ioctl: Likewise.
36861         * modules/sys_select: Likewise.
36862         * modules/sys_socket: Likewise.
36863         * modules/sys_stat: Likewise.
36864         * modules/sys_time: Likewise.
36865         * modules/sys_times: Likewise.
36866         * modules/sys_utsname: Likewise.
36867         * modules/sys_wait: Likewise.
36868         * modules/sysexits: Likewise.
36869         * modules/time: Likewise.
36870         * modules/unistd: Likewise.
36871         * modules/wchar: Likewise.
36872         * modules/wctype: Likewise.
36873
36874 2009-08-22  Jim Meyering  <meyering@redhat.com>
36875
36876         announce-gen: detect write failure
36877         * build-aux/announce-gen: Add Coda at end.
36878         Remove equivalent-but-more-verbose block at top.
36879
36880 2009-08-19  Akim Demaille  <demaille@gostai.com>
36881
36882         bootstrap: --help to stdout.
36883         * bootstrap (usage): Don't send --help to stderr.
36884         Use a here doc instead of a long string.
36885
36886 2009-08-21  Eric Blake  <ebb9@byu.net>
36887
36888         test-popen-safer: split from test-popen
36889         * tests/test-popen.c (main): Move...
36890         * tests/test-popen.h: ...into new file.
36891         * tests/test-popen-safer2.c: New file.
36892         * modules/popen-tests (Files): Add test-popen.h.
36893         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36894         Suggested by Bruno Haible.
36895
36896         test-fcntl-safer: split from test-open
36897         * tests/test-open.c (main): Move...
36898         * tests/test-open.h: ...into new file.
36899         * tests/test-fcntl-safer.c: New file.
36900         * modules/open-tests (Files): Add test-open.h.
36901         * modules/fcntl-safer-tests: New file.
36902         Suggested by Bruno Haible.
36903
36904         test-fopen-safer: split from test-fopen
36905         * tests/test-fopen.c (main): Move...
36906         * tests/test-fopen.h: ...into new file.
36907         * tests/test-fopen-safer.c: New file.
36908         * modules/fopen-tests (Files): Add test-fopen.h.
36909         * modules/fopen-safer-tests: New file.
36910         Suggested by Bruno Haible.
36911
36912 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36913
36914         popen-safer: test O_CLOEXEC at run-time.
36915         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36916
36917 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36918
36919         fcntl: move more flags to the header
36920         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36921         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36922         * lib/fcntl.in.h: Do both things here.
36923
36924 2009-08-21  Jim Meyering  <meyering@redhat.com>
36925
36926         consistently remove $@-t before redirecting to it
36927         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36928         * modules/alloca-opt: Likewise.
36929         * modules/byteswap: Likewise.
36930         * modules/fnmatch: Likewise.
36931         * modules/getopt-posix: Likewise.
36932         * modules/glob: Likewise.
36933         * modules/poll: Likewise.
36934         * modules/posix_spawnp-tests: Likewise.
36935         * modules/sys_socket: Likewise.
36936         * modules/sysexits: Likewise.
36937
36938 2009-08-21  Eric Blake  <ebb9@byu.net>
36939
36940         popen: simplify access to original popen
36941         * lib/popen.c (rpl_popen): No need to worry about popen being a
36942         macro.
36943         Reported by Bruno Haible.
36944
36945 2009-08-20  Eric Blake  <ebb9@byu.net>
36946
36947         build: avoid some compiler warnings
36948         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36949         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36950         type.
36951         (new_exclude_segment, excluded_file_pattern_p)
36952         (excluded_file_name_p): Reduce scope.
36953         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36954         old-style declaration.
36955
36956 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36957
36958         * tests/test-exclude1.sh: Handle Windows EOL.
36959         * tests/test-exclude2.sh: Likewise.
36960         * tests/test-exclude3.sh: Likewise.
36961         * tests/test-exclude4.sh: Likewise.
36962         * tests/test-exclude5.sh: Likewise.
36963         * tests/test-exclude6.sh: Likewise.
36964         * tests/test-exclude7.sh: Likewise.
36965
36966 2009-08-19  Akim Demaille  <demaille@gostai.com>
36967
36968         bootstrap: find sha1sum when named gsha1sum.
36969         * bootstrap (find_tool): New.
36970         ($SHA1SUM): New.
36971         Use it.
36972
36973 2009-08-20  Jim Meyering  <meyering@redhat.com>
36974
36975         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36976         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36977         expression that converts "." in a file name to "\." in the resulting
36978         regexp.  Start with a dummy statement, so that prior shell variable
36979         definitions are expanded portably.  Reported by Simon Josefsson.
36980
36981 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36982
36983         Fix polling for writeability of a screen buffer.
36984         * lib/poll.c: Distinguish input and screen buffers for the
36985         Win32 implementation.
36986         * lib/select.c: Likewise.
36987
36988 2009-08-19  Eric Blake  <ebb9@byu.net>
36989
36990         popen-safer: prevent popen from clobbering std descriptors
36991         * modules/popen-safer: New file.
36992         * lib/popen-safer.c: Likewise.
36993         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
36994         * lib/stdio--.h (popen): Provide override.
36995         * lib/stdio-safer.h (popen_safer): Provide declaration.
36996         * tests/test-popen.c (includes): Partially test this.
36997         * modules/popen-safer-tests: New file, for more tests.
36998         * tests/test-popen-safer.c: Likewise.
36999         * MODULES.html.sh (file stream based Input/Output): Mention it.
37000
37001         tests: test some of the *-safer modules
37002         * modules/fopen-safer (Depends-on): Add fopen.
37003         * modules/fcntl-safer (Depends-on): Add fcntl.
37004         * modules/stdlib-safer (Depends-on): Add stdlib.
37005         (configure.ac): Set indicator.
37006         * modules/unistd-safer (configure.ac): Likewise.
37007         * modules/tmpfile-safer (configure.ac): Likewise.
37008         (Depends-on): Add tmpfile.
37009         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37010         active.
37011         * tests/test-fopen.c (includes): Test safer versions when they are
37012         in use.
37013         * tests/test-open.c (includes): Likewise.
37014
37015         popen: fix cygwin 1.5 bug when stdin closed
37016         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37017         * modules/popen: New file.
37018         * modules/popen-tests: Likewise.
37019         * tests/test-popen.c: Likewise.
37020         * m4/popen.m4: Likewise.
37021         * lib/popen.c: Likewise.
37022         * lib/stdio.in.h (popen): New declaration.
37023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37024         * modules/stdio (Makefile.am): Likewise.
37025         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37026
37027 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37028
37029         maint.mk: give full control over update-copyright exclusions
37030         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37031         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37032         (update-copyright): Don't force inclusion of top-level
37033         ChangeLog.  Don't force exclusion of all COPYING files, but make
37034         them the default exclusion instead.
37035
37036 2009-08-16  Bruno Haible  <bruno@clisp.org>
37037
37038         Fix test failures on Solaris 10.
37039         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37040         tests when Solaris iconv() is used.
37041         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37042         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37043         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37044         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37045         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37046
37047 2009-08-16  Bruno Haible  <bruno@clisp.org>
37048
37049         Fix test failures on Solaris 10.
37050         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37051         'tr' program and pass it as first argument.
37052         * tests/test-pipe-filter-gi1.sh: Likewise.
37053         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37054         program as first argument.
37055         * tests/test-pipe-filter-gi1.c (main): Likewise.
37056
37057 2009-08-16  Eric Blake  <ebb9@byu.net>
37058
37059         fpurge: fix previous commits
37060         * modules/fpurge (Makefile.am): Make replacement conditional,
37061         partially reverting 2007-04-29 change; missed in previous
37062         attempt.
37063         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37064         is missing.
37065
37066 2009-08-16  Bruno Haible  <bruno@clisp.org>
37067
37068         Clarify fpurge's effect on the file position.
37069         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37070         * tests/test-fpurge.c (main): Make a second pass for checking the file
37071         position.
37072
37073 2009-08-16  Bruno Haible  <bruno@clisp.org>
37074
37075         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37076         declaration of fpurge is missing.
37077         * tests/test-fpurge.c (main): Check that the file has not more contents
37078         than expected. Close the file before removing it.
37079
37080 2009-08-15  Eric Blake  <ebb9@byu.net>
37081
37082         fpurge: don't wrap working cygwin implementation
37083         * lib/fpurge.c (fpurge): Fix comment typo.
37084         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37085         1.7 to avoid replacement.
37086         * tests/test-fpurge.c (main): Enhance test.
37087
37088 2009-08-15  Eric Blake  <ebb9@byu.net>
37089         and Jim Meyering  <meyering@redhat.com>
37090
37091         test-update-copyright: skip if perl is insufficient
37092         * tests/test-update-copyright.sh: Failure to run maintainer tool
37093         should not cause testsuite failure on cygwin 1.5.
37094
37095 2009-08-14  Eric Blake  <ebb9@byu.net>
37096
37097         doc: mention more functions added in cygwin 1.7.0
37098         * doc/posix-headers/limits.texi (limits.h): Update for recent
37099         cygwin additions.
37100         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37101         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37102         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37103         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37104         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37105
37106 2009-08-14  Eric Blake  <ebb9@byu.net>
37107
37108         maint.mk: simplify update-copyright rule
37109         * top/maint.mk (update-copyright-local): Delete, and document how
37110         to do it in cfg.mk instead.
37111         (update-copyright-exclude-regexp): Delete, and document how to do
37112         it in .x-update-copyright instead.
37113         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37114         exclude ChangeLog.
37115
37116 2009-08-14  Bruno Haible  <bruno@clisp.org>
37117
37118         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37119
37120 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37121
37122         maint.mk: support update-copyright-env
37123         * top/maint.mk (update-copyright-env): Define place-holder.
37124         (update-copyright): Expand $(update-copyright-env) before
37125         invoking update-copyright.
37126
37127 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37128
37129         update-copyright: implement forced reformatting
37130         * build-aux/update-copyright: Implement and document
37131         UPDATE_COPYRIGHT_FORCE.
37132         * tests/test-update-copyright.sh: Test it.
37133
37134 2009-08-14  Eric Blake  <ebb9@byu.net>
37135         and Bruno Haible  <bruno@clisp.org>
37136
37137         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37138         * tests/test-locale.c: Revert previous patch related to NULL.
37139         * tests/test-stdio.c: Likewise.
37140         * tests/test-stdlib.c: Likewise.
37141         * tests/test-string.c: Likewise.
37142         * tests/test-unistd.c: Likewise.
37143         * modules/time-tests (Depends-on): Add verify.
37144         * modules/wchar-tests (Depends-on): Likewise.
37145         * tests/test-time.c: Test for NULL compliance.
37146         * tests/test-wchar.c: Likewise.
37147         * modules/locale (Depends-on): Add stddef.
37148         * modules/stdio (Depends-on): Likewise.
37149         * modules/stdlib (Depends-on): Likewise.
37150         * modules/string (Depends-on): Likewise.
37151         * modules/time (Depends-on): Likewise.
37152         * modules/unistd (Depends-on): Likewise.
37153         * modules/wchar (Depends-on): Likewise.
37154         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37155         * lib/stdlib.in.h (includes): Likewise.
37156         * lib/string.in.h (includes): Likewise.
37157         * lib/time.in.h (includes): Likewise.
37158         * lib/unistd.in.h (includes): Likewise.
37159         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37160         replaced.
37161         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37162         * m4/stddef_h.m4: New file.
37163         * modules/stddef: Likewise.
37164         * lib/stddef.in.h: Likewise.
37165         * modules/stddef-tests: Likewise.
37166         * tests/test-stddef.c: Likewise.
37167         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37168         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37169         * doc/posix-headers/locale.texi (locale.h): Likewise.
37170         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37171         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37172         * doc/posix-headers/string.texi (string.h): Likewise.
37173         * doc/posix-headers/time.texi (time.h): Likewise.
37174         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37175         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37176
37177 2009-08-14  Eric Blake  <ebb9@byu.net>
37178
37179         doc: improve git diff of texinfo files
37180         * .gitattributes: Add rule for *.texi files, with hint on how to
37181         use it.
37182         Copied from m4, and based on a report by Bruno Haible.
37183
37184 2009-08-14  Bruno Haible  <bruno@clisp.org>
37185
37186         Disable multithread support by default on Cygwin 1.5.x for real.
37187         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37188
37189 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37190
37191         update-copyright: much ado about intervals
37192         * build-aux/update-copyright: Implement and document
37193         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37194         of copyright year intervals.
37195         Also, document UPDATE_COPYRIGHT_YEAR.
37196         * tests/test-update-copyright.sh: Test it.
37197
37198         update-copyright: convert 2-digit to 4-digit years
37199         * build-aux/update-copyright: Implement and document.
37200         * tests/test-update-copyright.sh: Update.
37201
37202 2009-08-14  Jim Meyering  <meyering@redhat.com>
37203
37204         test-exclude: avoid coreutils "make check" failure
37205         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37206         just as in test-argmatch.c.
37207
37208 2009-08-13  Eric Blake  <ebb9@byu.net>
37209
37210         test-dup2: fix bad assumption
37211         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37212         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37213
37214         test-version-etc: fix CRLF portability issue
37215         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37216         recognize \r.
37217         * tests/test-argp-version-etc-1.sh: Likewise.
37218
37219         getopt: update client modules
37220         * modules/argp (Depends-on): Use getopt-gnu.
37221         * modules/git-merge-changelog (Depends-on): Likewise.
37222         * modules/long-options (Depends-on): Likewise.
37223         * modules/xstrtol (Depends-on): Likewise.
37224
37225 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37226
37227         * tests/test-version-etc.sh: Don't fail on different
37228         project/version.  Don't fail on CRLF differences.  Rewrite to use
37229         multiple -e instead of multiple sed forks, suggested by Eric Blake
37230         <ebb9@byu.net>.
37231         * tests/test-argp-version-etc-1.sh: Likewise.
37232
37233 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37234
37235         * tests/test-version-etc.sh: Don't fail on different
37236         project/version.
37237
37238 2009-08-12  Bruno Haible  <bruno@clisp.org>
37239
37240         Tests for modules 'getopt-posix', 'getopt-gnu'.
37241         * modules/getopt-posix-tests: New file.
37242         * tests/test-getopt.c: New file.
37243         * tests/test-getopt.h: New file.
37244         * tests/test-getopt_long.h: New file.
37245
37246         New modules 'getopt-posix', 'getopt-gnu'.
37247         * modules/getopt-gnu: New file, renamed from modules/getopt.
37248         * modules/getopt-posix: New file.
37249         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37250         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37251         (gl_GETOPT): Remove macro.
37252         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37253         Disable the test against BSD systems that declare optreset. Test
37254         against mingw bug. Test against lack of support of optional arguments
37255         on many platforms.
37256         * doc/glibc-headers/getopt.texi: Update module name and list of
37257         relevant platforms.
37258         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37259         'getopt-gnu' and more portability problems.
37260         * NEWS: Mention the changes.
37261
37262 2009-08-12  Bruno Haible  <bruno@clisp.org>
37263
37264         Ensure that optarg etc. get declared by <unistd.h>.
37265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37266         AC_USE_SYSTEM_EXTENSIONS.
37267         * modules/getopt (Depends-on): Add 'extensions'.
37268
37269 2009-08-12  Bruno Haible  <bruno@clisp.org>
37270
37271         Avoid test link errors.
37272         * modules/pipe-filter-ii-tests (Makefile.am): Define
37273         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37274         * modules/pipe-filter-gi-tests (Makefile.am): Define
37275         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37276         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37277
37278 2009-08-12  Bruno Haible  <bruno@clisp.org>
37279
37280         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37281         gl_GETOPT_SUBSTITUTE before.
37282         (gl_GETOPT): Use it.
37283         * m4/argp.m4 (gl_ARGP): Update.
37284         Reported by Sergey Poznyakoff.
37285
37286         * m4/getopt.m4: Reorder macros.
37287         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37288         (gl_GETOPT_SUBSTITUTE): Remove macro.
37289
37290 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37291
37292         Minor improvement in gitlog-to-changelog
37293
37294         * build-aux/gitlog-to-changelog: New option `--format' makes
37295         output format string configurable.
37296
37297 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37298
37299         Optimize exclude: use hash tables for non-wildcard patterns.
37300
37301         * lib/exclude.c: Include hash.h and mbuiter.h
37302         (struct exclude_pattern, exclude_segment): New data types.
37303         (struct exclude): Rewrite.
37304         (fnmatch_pattern_has_wildcards): New function.
37305         (new_exclude_segment, free_exclude_segment): New functions.
37306         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37307         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37308         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37309         * modules/exclude: Depend on hash and mbuiter.
37310
37311         * modules/exclude-tests: New file.
37312         * tests/test-exclude.c: New file.
37313         * tests/test-exclude1.sh: New file.
37314         * tests/test-exclude2.sh: New file.
37315         * tests/test-exclude3.sh: New file.
37316         * tests/test-exclude4.sh: New file.
37317         * tests/test-exclude5.sh: New file.
37318         * tests/test-exclude6.sh: New file.
37319         * tests/test-exclude7.sh: New file.
37320
37321 2009-08-12  Bruno Haible  <bruno@clisp.org>
37322
37323         Ensure that getopt() gets declared by <unistd.h>.
37324         * lib/unistd.in.h: Conditionally include getopt.h.
37325         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37326         Set GNULIB_UNISTD_H_GETOPT.
37327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37328         GNULIB_UNISTD_H_GETOPT.
37329         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37330
37331 2009-08-12  Bruno Haible  <bruno@clisp.org>
37332
37333         Clarify logic.
37334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37335         gl_replace_getopt instead of GETOPT_H.
37336
37337 2009-08-12  Bruno Haible  <bruno@clisp.org>
37338
37339         * m4/getopt.m4: Add comments.
37340
37341 2009-08-12  Bruno Haible  <bruno@clisp.org>
37342
37343         Disable multithread support by default on Cygwin 1.5.x.
37344         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37345         set gl_use_threads=no if not specified otherwise.
37346
37347 2009-08-11  Bruno Haible  <bruno@clisp.org>
37348
37349         Avoid compilation error on NetBSD 5.0.
37350         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37351         * tests/test-stdio.c: Likewise.
37352         * tests/test-stdlib.c: Likewise.
37353         * tests/test-string.c: Likewise.
37354         * tests/test-unistd.c: Likewise.
37355         Reported by Greg Troxel <gdt@ir.bbn.com>
37356         at <https://savannah.gnu.org/support/?106973>.
37357
37358 2009-08-11  Bruno Haible  <bruno@clisp.org>
37359
37360         * modules/dup2-tests (Depends-on): Remove close.
37361
37362         Undo 2009-07-19 commit.
37363         * modules/acl-tests (Depends-on): Remove close.
37364         * modules/binary-io-tests (Depends-on): Likewise.
37365         * modules/closein-tests (Depends-on): Likewise.
37366         * modules/flock-tests (Depends-on): Likewise.
37367         * modules/fsync-tests (Depends-on): Likewise.
37368         * modules/lseek-tests (Depends-on): Likewise.
37369         * modules/pipe-tests (Depends-on): Likewise.
37370         * modules/posix_spawn-tests (Depends-on): Likewise.
37371         * modules/posix_spawnp-tests (Depends-on): Likewise.
37372         * modules/stat-time-tests (Depends-on): Likewise.
37373         * modules/yesno-tests (Depends-on): Likewise.
37374
37375 2009-08-10  Bruno Haible  <bruno@clisp.org>
37376
37377         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37378
37379 2009-08-10  Bruno Haible  <bruno@clisp.org>
37380
37381         Fix a gcc warning.
37382         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37383
37384 2009-08-10  Bruno Haible  <bruno@clisp.org>
37385
37386         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37387         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37388         not only the first time.
37389         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37390         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37391         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37392         is 1, not only the the first time.
37393
37394 2009-08-10  Bruno Haible  <bruno@clisp.org>
37395
37396         Make it possible to use module 'gethostname' without module 'close'.
37397         * lib/unistd.in.h (close): Evoke a link error only if
37398         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37400         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37401         * modules/unistd (Makefile.am): Substitute
37402         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37403         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37404         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37405         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37406         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37407         * modules/sys_ioctl (Makefile.am): Substitute
37408         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37409         * modules/socket (configure.ac): On native Windows, set
37410         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37411         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37412         Reported by Sam Steingold <sds@gnu.org>.
37413
37414 2009-08-10  Bruno Haible  <bruno@clisp.org>
37415
37416         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37417         * modules/ioctl (configure.ac): Likewise.
37418
37419 2009-08-10  Bruno Haible  <bruno@clisp.org>
37420
37421         Avoid collision between gnulib wrapper and libintl wrapper.
37422         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37423         already defined in intl/printf.c.
37424         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37425         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37426
37427 2009-08-09  Bruno Haible  <bruno@clisp.org>
37428
37429         Make <sys/select.h> really self-contained, also on Solaris 10.
37430         * lib/sys_select.in.h: Include <string.h>.
37431         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37432         Solaris 10 problem.
37433         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37434         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37435         Reported by Jim Meyering.
37436
37437 2009-08-09  Bruno Haible  <bruno@clisp.org>
37438
37439         Avoid warnings from 'aclocal' that are due to a use of macro name
37440         AM_XGETTEXT_OPTION that is not defined in automake.
37441         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37442         automake.
37443         * modules/error (configure.ac): Likewise.
37444         * modules/propername (configure.ac): Likewise.
37445         * modules/vasprintf (configure.ac): Likewise.
37446         * modules/verror (configure.ac): Likewise.
37447         * modules/xprintf (configure.ac): Likewise.
37448         * modules/xvasprintf (configure.ac): Likewise.
37449
37450 2009-08-08  Bruno Haible  <bruno@clisp.org>
37451
37452         Avoid compilation error in C++ mode.
37453         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37454         Reported by Sam Steingold <sds@gnu.org>.
37455
37456 2009-08-08  Bruno Haible  <bruno@clisp.org>
37457
37458         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37459         for the various Unix platforms.
37460         * doc/posix-headers/limits.texi: Update platforms list regarding
37461         HOST_NAME_MAX.
37462         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37463
37464 2009-08-07  Jim Meyering  <meyering@redhat.com>
37465
37466         selinux-at: fix typo in a comment
37467         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37468         Spotted by Paolo Bonzini.
37469
37470         selinux-at: remove redundant m4 code, add documentation
37471         * modules/selinux-at (configure.ac): Remove redundant code.
37472         LIB_SELINUX is already set via the dependent module, selinux-h.
37473         (Include): Add quotes around selinux-at.h.
37474         * lib/selinux-at.h: Add documentation.
37475         Reported by Bruno Haible in
37476         http://marc.info/?l=gnulib-bug&m=124958988300749
37477
37478 2009-08-07  Bruno Haible  <bruno@clisp.org>
37479
37480         Avoid link error on MacOS X 10.3 and 10.4.
37481         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37482         on non-ELF systems.
37483         * lib/argp-pv.c (argp_program_version): Likewise.
37484         Reported by Simon Josefsson.
37485
37486 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37487
37488         * tests/test-version-etc.sh: Use $EXEEXT.
37489
37490 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37491
37492         update-copyright: update documentation to point to maint.mk
37493         * build-aux/update-copyright: Here.
37494
37495 2009-08-06  Jim Meyering  <meyering@redhat.com>
37496
37497         maint.mk: support update-copyright-local
37498         * top/maint.mk (update-copyright-local): Define place-holder.
37499         (update-copyright): Depend on $(update-copyright-local).
37500
37501 2009-08-06  Jim Meyering  <meyering@redhat.com>
37502
37503         selinux-at: new module
37504         Initially written for coreutils, this module will soon be
37505         used by findutils, too.
37506         * MODULES.html.sh [Misc]: Add selinux-at.
37507         * lib/selinux-at.h: New file, from coreutils.
37508         * lib/selinux-at.c: Likewise.
37509         * modules/selinux-at: Likewise.
37510         (License): Change from LGPL to GPL, since it depends
37511         on the GPL'd openat module.
37512
37513         doc: update README
37514         * README: Remove references to cogito.
37515         Remove cvs-repo-updating instructions from 2007.
37516         Don't imply that CVS is better if you have limited disk space.
37517
37518 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37519
37520         update-copyright: support C-style comments
37521         * build-aux/update-copyright: Implement and document.
37522         * tests/test-update-copyright.sh: Test.
37523
37524 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37525
37526         update-copyright: support omitted "(C)"
37527         * build-aux/update-copyright: Implement and document.  Also,
37528         allow variable whitespace before "(C)".
37529         * tests/test-update-copyright.sh: Test.
37530
37531 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37532
37533         update-copyright: don't trip on non-FSF copyright statements
37534         * build-aux/update-copyright: Fix so that the first correctly
37535         formatted FSF copyright statement is recognized no matter what
37536         appears before it.  Update documentation.
37537         * tests/test-update-copyright.sh: Test that.
37538
37539 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37540
37541         update-copyright: clean up code a little
37542         * build-aux/update-copyright: Append "_re" to the name of any
37543         variable holding a regular expression.
37544         Replace "old" and "new" with "stmt" in variable names.
37545         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37546         handled correctly.
37547         Format code more consistently.
37548
37549 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37550
37551         update-copyright-tests: improve portability
37552         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37553         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37554
37555 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37556
37557         update-copyright: support @copyright{} and &copy;
37558         * build-aux/update-copyright: Implement and document.
37559         * tests/test-update-copyright.sh: Test.
37560
37561 2009-08-04  Jim Meyering  <meyering@redhat.com>
37562
37563         update-copyright-tests: correctly test EOL=\r\n handling
37564         * tests/test-update-copyright.sh: Put \r at the end of some lines
37565         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37566
37567         maint.mk: make update-copyright exclusion list more configurable
37568         * top/maint.mk (update-copyright): Default to excluding COPYING,
37569         but allow an override, in case someone does want to update that file.
37570
37571         maint.mk: don't update copyright date in COPYING
37572         * top/maint.mk (update-copyright): Exclude COPYING.
37573
37574         maint.mk: add a copyright-updating rule
37575         * top/maint.mk (update-copyright): New rule.
37576         Derived from coreutils/Makefile.am.
37577
37578         update-copyright: rename some variables
37579         * build-aux/update-copyright: Rename a few variables for clarity.
37580         Tweak syntax.  List Joel E. Denny as coauthor.
37581
37582 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37583
37584         update-copyright: fix bug for 2-digit last year and add tests
37585         * build-aux/update-copyright: Fix bug.
37586         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37587         specified.
37588         * modules/update-copyright-tests: New
37589         * tests/test-update-copyright.sh: New.
37590
37591 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37592
37593         update-copyright: handle leading tabs in line prefix
37594         * build-aux/update-copyright: Count leading tabs as 8 spaces
37595         when computing margin.  This helps with the formatting of
37596         ChangeLogs, for example.
37597         Fix documentation a little.
37598
37599 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37600
37601         update-copyright: support EOL=\r\n
37602         * build-aux/update-copyright: Implement that.
37603
37604 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37605
37606         update-copyright: automatically format copyright statements
37607         * build-aux/update-copyright: Implement that.
37608         Also, be a little more predictable and safer by always failing
37609         when the full copyright format is not perfectly recognized as an
37610         unbroken whole.  Discussed at
37611         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37612         Rewrite documentation.
37613
37614 2009-08-03  Bruno Haible  <bruno@clisp.org>
37615
37616         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37617
37618 2009-08-02  Bruno Haible  <bruno@clisp.org>
37619
37620         Tests for module 'uname'.
37621         * modules/uname-tests: New file.
37622         * tests/test-uname.c: New file.
37623
37624         New module 'uname'.
37625         * lib/uname.c: New file.
37626         * m4/uname.m4: New file.
37627         * modules/uname: New file.
37628         * doc/posix-functions/uname.texi: Mention the new module.
37629
37630 2009-08-02  Bruno Haible  <bruno@clisp.org>
37631
37632         Tests for module 'sys_utsname'.
37633         * modules/sys_utsname-tests: New file.
37634         * tests/test-sys_utsname.c: New file.
37635
37636         New module 'sys_utsname'.
37637         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37638         * m4/sys_utsname_h.m4: New file.
37639         * modules/sys_utsname: New file.
37640         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37641
37642 2009-08-02  Bruno Haible  <bruno@clisp.org>
37643
37644         Implicitly initialize the sockets library.
37645         * lib/gethostname.c: Include sockets.h.
37646         (rpl_gethostname): Invoke gl_sockets_startup.
37647         * lib/socket.c: Include sockets.h.
37648         (rpl_socket): Invoke gl_sockets_startup.
37649         * modules/gethostname (Depends-on): Add sockets.
37650         * modules/socket (Depends-on): Likewise.
37651         * tests/test-poll.c: Don't include sockets.h.
37652         (main): Don't invoke gl_sockets_startup.
37653         * tests/test-select.c: Don't include sockets.h.
37654         (main): Don't invoke gl_sockets_startup.
37655
37656 2009-08-02  Bruno Haible  <bruno@clisp.org>
37657
37658         Allow multiple calls to gl_sockets_startup.
37659         * lib/sockets.c (initialized_sockets_version): New variable.
37660         (gl_sockets_startup): Do nothing if already called for this or a higher
37661         version.
37662         (gl_sockets_cleanup): Reset initialized_sockets_version.
37663
37664 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37665
37666         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37667         different project/version.
37668
37669 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37670             Bruno Haible  <bruno@clisp.org>
37671
37672         Tests for module 'pipe-filter-gi'.
37673         * modules/pipe-filter-gi-tests: New file.
37674         * tests/test-pipe-filter-gi1.sh: New file.
37675         * tests/test-pipe-filter-gi1.c: New file.
37676         * tests/test-pipe-filter-gi2.sh: New file.
37677         * tests/test-pipe-filter-gi2-main.c: New file.
37678         * tests/test-pipe-filter-gi2-child.c: New file.
37679
37680         New module 'pipe-filter-gi'.
37681         * lib/pipe-filter-gi.c: New file.
37682         * modules/pipe-filter-gi: New file.
37683
37684 2009-08-02  Bruno Haible  <bruno@clisp.org>
37685             Paolo Bonzini  <bonzini@gnu.org>
37686
37687         Tests for module 'pipe-filter-ii'.
37688         * modules/pipe-filter-ii-tests: New file.
37689         * tests/test-pipe-filter-ii1.sh: New file.
37690         * tests/test-pipe-filter-ii1.c: New file.
37691         * tests/test-pipe-filter-ii2.sh: New file.
37692         * tests/test-pipe-filter-ii2-main.c: New file.
37693         * tests/test-pipe-filter-ii2-child.c: New file.
37694
37695         New module 'pipe-filter-ii'.
37696         * lib/pipe-filter.h: New file.
37697         * lib/pipe-filter-ii.c: New file.
37698         * lib/pipe-filter-aux.h: New file.
37699         * modules/pipe-filter-ii: New file.
37700
37701 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37702
37703         * lib/gc-libgcrypt.c: Change copyright to FSF.
37704         * lib/gc-gnulib.c: Likewise.
37705
37706 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37707
37708         * lib/gethostname.c: Include limits.h.
37709
37710 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37711             Bruno Haible  <bruno@clisp.org>
37712
37713         Ensure HOST_NAME_MAX as part of the gethostname module.
37714         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37715         define also HOST_NAME_MAX.
37716         * tests/test-gethostname.c: Include <limits.h>.
37717         (main): Check also HOST_NAME_MAX.
37718         * doc/posix-headers/limits.texi: Document the mingw problem.
37719
37720 2009-08-02  Bruno Haible  <bruno@clisp.org>
37721
37722         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37723         Add comments.
37724
37725 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37726
37727         * lib/gethostname.c: Add Windows wrapper.
37728         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37729         * modules/gethostname: Depend on sys_socket & errno, for also
37730         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37731         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37732
37733 2009-07-31  Jim Meyering  <meyering@redhat.com>
37734
37735         getloadavg: fix symbol name in comment
37736         * lib/getloadavg.c: Correct a typo I introduced when adding
37737         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37738         Matt Kraai spotted the problem.
37739
37740 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37741
37742         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37743         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37744         code also if ! defined N_NAME_POINTER.
37745         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37746         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37747         but the n_name member is a 12-byte array.
37748
37749 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37750
37751         update-copyright: generalize comment handling
37752         * build-aux/update-copyright: Handle copyright statements
37753         within more comment styles.
37754         Document usage.
37755         Report any file with an external copyright holder or parse failure.
37756
37757 2009-07-29  Jim Meyering  <meyering@redhat.com>
37758
37759         mktime: correct setting of REPLACE_MKTIME
37760         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37761
37762         update-copyright: new module
37763         * modules/update-copyright: New file.
37764         * build-aux/update-copyright: New file.
37765         * MODULES.html.sh (maint+release support): Add update-copyright.
37766
37767 2009-07-27  Bruno Haible  <bruno@clisp.org>
37768
37769         Fix compilation error when <ctime> is used and mktime is replaced.
37770         * lib/time.in.h (mktime): New declaration.
37771         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37772         REPLACE_MKTIME instead of defining mktime in config.h.
37773         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37774         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37775         Reported by Ross McFarland <rwmcfa1@neces.com>.
37776
37777 2009-07-27  Bruno Haible  <bruno@clisp.org>
37778
37779         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37780         Reported by Matt Kraai <mkraai@beckman.com>.
37781
37782 2009-07-25  Jim Meyering  <meyering@redhat.com>
37783
37784         maint.mk: avoid warnings about missing files
37785         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37786         diagnostic when .prev-version does not exist.
37787         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37788         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37789         nonexistent cfg.mk.
37790         Suggestions from Simon Josefsson.
37791
37792 2009-07-25  Bruno Haible  <bruno@clisp.org>
37793
37794         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37795         defined as macros. Needed on QNX 6.4.1.
37796         Reported by Matt Kraai <mkraai@beckman.com>.
37797
37798 2009-07-23  Jim Meyering  <meyering@redhat.com>
37799
37800         maint.mk: invoke "make dist" with a working value of XZ_OPT
37801         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37802
37803 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37804
37805         Make fseeko.c compile on QNX.
37806         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37807
37808 2009-07-22  Peter Simons  <simons@cryp.to>
37809
37810         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37811         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37812         * lib/md4.h: Likewise.
37813         * lib/md5.h: Likewise.
37814         * lib/sha1.h: Likewise.
37815         * lib/sha256.h: Likewise.
37816         * lib/sha512.h: Likewise.
37817
37818         tests-sha1: don't assign literal string to 'char *' variable
37819         * tests/test-sha1.c (main): Declare locals with "const" to match
37820         attributes of the right hand side.
37821
37822 2009-07-21  Eric Blake  <ebb9@byu.net>
37823
37824         dup2: fix more mingw problems
37825         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37826         fd to itself.
37827         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37828         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37829         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37830         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37831         care of mingw bugs.
37832
37833 2009-07-21  Jim Meyering  <meyering@redhat.com>
37834
37835         vc-list-files: avoid failure when /bin/sh is dash
37836         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37837         On some Debian based systems, /bin/sh is a symlink to dash, and running
37838         this command would omit the "/" following each 'tests' prefix:
37839           dash -x build-aux/vc-list-files -C . tests
37840         That is because bash and dash work differently:
37841           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37842           bash ok
37843           dash odd
37844
37845 2009-07-21  Eric Blake  <ebb9@byu.net>
37846
37847         dup2-tests: test previous patch
37848         * modules/dup2-tests: New file.
37849         * tests/test-dup2.c: Likewise.
37850         * tests/test-open.c (main): Avoid unspecified behavior.
37851         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37852         test.
37853
37854         dup2: work around mingw and cygwin 1.5 bug
37855         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37857         * modules/unistd (Makefile.am): Substitute it.
37858         * lib/unistd.in.h (dup2): Declare the replacement.
37859         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37860         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37861         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37862         * modules/execute (Depends-on): Add dup2.
37863         * modules/fseterr (Depends-on): Likewise.
37864         * modules/pipe (Depends-on): Likewise.
37865         * modules/posix_spawn-internal (Depends-on): Likewise.
37866
37867 2009-07-21  Bruno Haible  <bruno@clisp.org>
37868
37869         * modules/.gitattributes: New file.
37870
37871 2009-07-20  Bruno Haible  <bruno@clisp.org>
37872
37873         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37874         (main): Use it.
37875
37876 2009-07-20  Eric Blake  <ebb9@byu.net>
37877
37878         test-pipe: make a bit more robust.
37879         * tests/test-pipe.c (myerr): Allow error messages regardless of
37880         what we do to stderr.
37881         (test_pipe): Rearrange to avoid deadlock.
37882         (child_main): Try a larger read, to ensure we avoided deadlock.
37883         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37884         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37885         if misused.
37886
37887 2009-07-19  Jim Meyering  <meyering@redhat.com>
37888
37889         fts: avoid false-positive cycle-detection
37890         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37891         for each new command line argument.
37892
37893 2009-07-19  Bruno Haible  <bruno@clisp.org>
37894
37895         Fix build error on mingw with the modules sys_select and unistd.
37896         * modules/acl-tests (Depends-on): Add close.
37897         * modules/binary-io-tests (Depends-on): Likewise.
37898         * modules/closein-tests (Depends-on): Likewise.
37899         * modules/flock-tests (Depends-on): Likewise.
37900         * modules/fsync-tests (Depends-on): Likewise.
37901         * modules/lseek-tests (Depends-on): Likewise.
37902         * modules/pipe-tests (Depends-on): Likewise.
37903         * modules/posix_spawn-tests (Depends-on): Likewise.
37904         * modules/posix_spawnp-tests (Depends-on): Likewise.
37905         * modules/stat-time-tests (Depends-on): Likewise.
37906         * modules/yesno-tests (Depends-on): Likewise.
37907
37908 2009-07-19  Bruno Haible  <bruno@clisp.org>
37909
37910         Unify conditionals.
37911         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37912         macros, not at the compiler macros.
37913         * lib/pipe.c: Likewise.
37914         * lib/execute.c: Likewise.
37915         * lib/spawni.c: Likewise.
37916
37917 2009-07-19  Bruno Haible  <bruno@clisp.org>
37918
37919         Fix handling of closed stdin/stdout/stderr on mingw.
37920         * lib/w32spawn.h: Include unistd.h.
37921         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37922         file descriptor with O_NOINHERIT flag.
37923         (fd_safer_noinherit): New function, based on fd-safer.c.
37924         (dup_safer_noinherit): New function, based on dup-safer.c.
37925         (undup_safer_noinherit): New function.
37926         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37927         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37928         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37929         instead of fd_safer.
37930         * tests/test-pipe.c: Include <windows.h>.
37931         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37932         result.
37933
37934         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37935         from main.
37936         (test_pipe): Pass an extra argument for disambiguation.
37937         (main): Invoke parent_main or child_main.
37938
37939         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37940         consistently.
37941
37942 2009-07-18  Eric Blake  <ebb9@byu.net>
37943
37944         test-pipe: fix mingw build
37945         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37946
37947 2009-07-18  Bruno Haible  <bruno@clisp.org>
37948
37949         * modules/pipe-tests (Makefile.am): Fix typo.
37950
37951 2009-07-18  Eric Blake  <ebb9@byu.net>
37952
37953         error: fix mingw build
37954         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37955         Reported by Bruno Haible.
37956
37957         error: avoid undefined use of stdout
37958         * lib/error.c (error, error_at_line): Check that fd 1 is open
37959         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37960         is handling faults and the close_stdout module wants to report the
37961         detection of closed stdout as an error.
37962
37963 2009-07-17  Eric Blake  <ebb9@byu.net>
37964
37965         pipe: be robust in face of closed fds
37966         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37967         should cause child to misbehave.
37968         * modules/pipe-tests: New module.
37969         * tests/test-pipe.c: New file.
37970         * tests/test-pipe.sh: New file.
37971         Reported by Akim Demaille.
37972
37973 2009-07-14  Bruno Haible  <bruno@clisp.org>
37974
37975         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37976         Reported by anonymous kc.
37977
37978 2009-07-07  Jim Meyering  <meyering@redhat.com>
37979
37980         maint.mk: don't look for translatable strings in *.m4 or *.mk
37981         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37982         when searching for translatable strings.
37983
37984 2009-07-05  Jim Meyering  <meyering@redhat.com>
37985
37986         remove superfluous parentheses in STREQ definition
37987         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
37988         * lib/getugroups.c (STREQ): Likewise.
37989         * lib/fnmatch.c (STREQ): Likewise.
37990         Spotted by Bruno Haible.
37991
37992 2009-07-04  Jim Meyering  <meyering@redhat.com>
37993
37994         argv-iter: new module
37995         * MODULES.html.sh: Add argv-iter.
37996         * lib/argv-iter.c, lib/argv-iter.h: New files.
37997         * modules/argv-iter: New file.
37998         * modules/argv-iter-tests: New file.
37999         * tests/test-argv-iter.c: Test it.
38000
38001 2009-07-04  Bruno Haible  <bruno@clisp.org>
38002
38003         Fix assertion.
38004         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38005         contains more exact copies of a given entry than file2, leave the extra
38006         copies unpaired rather than aborting.
38007         Reported by Eric Blake.
38008
38009 2009-07-02  Bruno Haible  <bruno@clisp.org>
38010
38011         Speedup git-merge-changelog for git cherry-pick.
38012         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38013         (entries_mapping_get): New function, extracted from compute_mapping.
38014         (entries_mapping_reverse_get): New function.
38015         (compute_mapping): Add a 'full' argument. Return the result in a
38016         'struct entries_mapping'.
38017         (main): Update. Access the mappings through entries_mapping_get.
38018         Reported by Eric Blake.
38019
38020 2009-07-02  Bruno Haible  <bruno@clisp.org>
38021
38022         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38023         best_i.
38024
38025 2009-07-02  Bruno Haible  <bruno@clisp.org>
38026
38027         Speed up approximate search for matching ChangeLog entries.
38028         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38029         argument. Call fstrcmp_bounded instead of fstrcmp.
38030         (compute_mapping, try_split_merged_entry, main): Update callers.
38031
38032 2009-07-02  Bruno Haible  <bruno@clisp.org>
38033
38034         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38035
38036 2009-06-30  Bruno Haible  <bruno@clisp.org>
38037
38038         Reduce the number of uc_is_cased calls.
38039         * lib/unicase.h (casing_suffix_context_t): Add
38040         'first_char_except_ignorable' field.
38041         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38042         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38043         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38044         Update initializer.
38045         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38046         case-ignorable characters.
38047         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38048         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38049         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38050         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38051         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38052
38053 2009-06-30  Bruno Haible  <bruno@clisp.org>
38054
38055         Tests for module 'unicase/ignorable'.
38056         * modules/unicase/ignorable-tests: New file.
38057         * tests/unicase/test-ignorable.c: New file, generated by
38058         gen-uni-tables.
38059
38060         Tests for module 'unicase/cased'.
38061         * modules/unicase/cased-tests: New file.
38062         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38063         * tests/unicase/test-predicate-part1.h: New file, derived from
38064         tests/unictype/test-predicate-part1.h.
38065         * tests/unicase/test-predicate-part2.h: New file, same as
38066         tests/unictype/test-predicate-part2.h.
38067
38068         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38069         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38070         (output_casing_properties): New function.
38071         (main): Call it.
38072         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38073         * lib/unicase/cased.c: Include unictype/bitmap.h.
38074         (uc_is_cased): Define through a bitmap lookup.
38075         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38076         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38077         (uc_is_case_ignorable): Define through a bitmap lookup.
38078         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38079         lib/unictype/bitmap.h.
38080         (Depends-on): Add inline. Clean up.
38081         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38082         lib/unictype/bitmap.h.
38083         (Depends-on): Add inline. Clean up.
38084         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38085         recognition.
38086         * tests/unicase/test-u16-tolower.c (main): Likewise.
38087         * tests/unicase/test-u32-tolower.c (main): Likewise.
38088
38089 2009-06-30  Bruno Haible  <bruno@clisp.org>
38090
38091         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38092         * lib/unicase/u16-casemap.c: Likewise.
38093         * lib/unicase/u32-casemap.c: Likewise.
38094
38095 2009-06-29  Bruno Haible  <bruno@clisp.org>
38096
38097         Define u32_casefold as a wrapper around u32_ct_casefold.
38098         * lib/unicase/u32-casefold.c: Update.
38099         * modules/unicase/u32-casefold (Depends-on): Add
38100         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38101         unicase/empty-suffix-context. Clean up.
38102
38103         Define u16_casefold as a wrapper around u16_ct_casefold.
38104         * lib/unicase/u16-casefold.c: Update.
38105         * modules/unicase/u16-casefold (Depends-on): Add
38106         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38107         unicase/empty-suffix-context. Clean up.
38108
38109         Define u8_casefold as a wrapper around u8_ct_casefold.
38110         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38111         * lib/unicase/u8-casefold.c: Update.
38112         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38113         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38114
38115         Define u32_totitle as a wrapper around u32_ct_totitle.
38116         * lib/unicase/u32-totitle.c: Update.
38117         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38118         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38119
38120         Define u16_totitle as a wrapper around u16_ct_totitle.
38121         * lib/unicase/u16-totitle.c: Update.
38122         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38123         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38124
38125         Define u8_totitle as a wrapper around u8_ct_totitle.
38126         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38127         functions.
38128         (FUNC): Delegate to U_CT_TOTITLE.
38129         * lib/unicase/u8-totitle.c: Update.
38130         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38131         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38132
38133         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38134         invocation.
38135         * modules/unicase/u32-tolower (Depends-on): Add
38136         unicase/empty-prefix-context, unicase/empty-suffix-context.
38137
38138         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38139         invocation.
38140         * modules/unicase/u16-tolower (Depends-on): Add
38141         unicase/empty-prefix-context, unicase/empty-suffix-context.
38142
38143         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38144         * modules/unicase/u8-tolower (Depends-on): Add
38145         unicase/empty-prefix-context, unicase/empty-suffix-context.
38146
38147         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38148         invocation.
38149         * modules/unicase/u32-toupper (Depends-on): Add
38150         unicase/empty-prefix-context, unicase/empty-suffix-context.
38151
38152         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38153         invocation.
38154         * modules/unicase/u16-toupper (Depends-on): Add
38155         unicase/empty-prefix-context, unicase/empty-suffix-context.
38156
38157         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38158         * modules/unicase/u8-toupper (Depends-on): Add
38159         unicase/empty-prefix-context, unicase/empty-suffix-context.
38160
38161         New module 'unicase/u32-ct-casefold'.
38162         * lib/unicase/u32-ct-casefold.c: New file.
38163         * modules/unicase/u32-ct-casefold: New file.
38164
38165         New module 'unicase/u16-ct-casefold'.
38166         * lib/unicase/u16-ct-casefold.c: New file.
38167         * modules/unicase/u16-ct-casefold: New file.
38168
38169         New module 'unicase/u8-ct-casefold'.
38170         * lib/unicase/u8-ct-casefold.c: New file.
38171         * lib/unicase/u-ct-casefold.h: New file, derived from
38172         lib/unicase/u-casefold.h.
38173         * modules/unicase/u8-ct-casefold: New file.
38174
38175         New module 'unicase/u32-ct-totitle'.
38176         * lib/unicase/u32-ct-totitle.c: New file.
38177         * modules/unicase/u32-ct-totitle: New file.
38178
38179         New module 'unicase/u16-ct-totitle'.
38180         * lib/unicase/u16-ct-totitle.c: New file.
38181         * modules/unicase/u16-ct-totitle: New file.
38182
38183         New module 'unicase/u8-ct-totitle'.
38184         * lib/unicase/u8-ct-totitle.c: New file.
38185         * lib/unicase/u-ct-totitle.h: New file, derived from
38186         lib/unicase/u-totitle.h.
38187         * modules/unicase/u8-ct-totitle: New file.
38188
38189         New module 'unicase/u32-ct-tolower'.
38190         * lib/unicase/u32-ct-tolower.c: New file.
38191         * modules/unicase/u32-ct-tolower: New file.
38192
38193         New module 'unicase/u16-ct-tolower'.
38194         * lib/unicase/u16-ct-tolower.c: New file.
38195         * modules/unicase/u16-ct-tolower: New file.
38196
38197         New module 'unicase/u8-ct-tolower'.
38198         * lib/unicase/u8-ct-tolower.c: New file.
38199         * modules/unicase/u8-ct-tolower: New file.
38200
38201         New module 'unicase/u32-ct-toupper'.
38202         * lib/unicase/u32-ct-toupper.c: New file.
38203         * modules/unicase/u32-ct-toupper: New file.
38204
38205         New module 'unicase/u16-ct-toupper'.
38206         * lib/unicase/u16-ct-toupper.c: New file.
38207         * modules/unicase/u16-ct-toupper: New file.
38208
38209         New module 'unicase/u8-ct-toupper'.
38210         * lib/unicase/u8-ct-toupper.c: New file.
38211         * modules/unicase/u8-ct-toupper: New file.
38212
38213         Add context arguments to u*_casemap functions.
38214         * lib/unicase/unicasemap.h: Include unicase.h.
38215         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38216         suffix_context arguments.
38217         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38218         functions.
38219         (FUNC): Add prefix_context and suffix_context arguments. Use
38220         uc_is_cased and uc_is_case_ignorable.
38221         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38222         * lib/unicase/u16-casemap.c: Likewise.
38223         * lib/unicase/u32-casemap.c: Likewise.
38224         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38225         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38226         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38227         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38228         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38229         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38230
38231         New module 'unicase/u32-suffix-context'.
38232         * lib/unicase/u32-suffix-context.c: New file.
38233         * modules/unicase/u32-suffix-context: New file.
38234
38235         New module 'unicase/u16-suffix-context'.
38236         * lib/unicase/u16-suffix-context.c: New file.
38237         * modules/unicase/u16-suffix-context: New file.
38238
38239         New module 'unicase/u8-suffix-context'.
38240         * lib/unicase/u8-suffix-context.c: New file.
38241         * lib/unicase/u-suffix-context.h: New file.
38242         * modules/unicase/u8-suffix-context: New file.
38243
38244         New module 'unicase/empty-suffix-context'.
38245         * lib/unicase/empty-suffix-context.c: New file.
38246         * modules/unicase/empty-suffix-context: New file.
38247
38248         New module 'unicase/u32-prefix-context'.
38249         * lib/unicase/u32-prefix-context.c: New file.
38250         * modules/unicase/u32-prefix-context: New file.
38251
38252         New module 'unicase/u16-prefix-context'.
38253         * lib/unicase/u16-prefix-context.c: New file.
38254         * modules/unicase/u16-prefix-context: New file.
38255
38256         New module 'unicase/u8-prefix-context'.
38257         * lib/unicase/u8-prefix-context.c: New file.
38258         * lib/unicase/u-prefix-context.h: New file.
38259         * lib/unicase/context.h: New file.
38260         * modules/unicase/u8-prefix-context: New file.
38261
38262         New module 'unicase/empty-prefix-context'.
38263         * lib/unicase/empty-prefix-context.c: New file.
38264         * modules/unicase/empty-prefix-context: New file.
38265
38266         New module 'unicase/ignorable'.
38267         * lib/unicase/ignorable.c: New file.
38268         * modules/unicase/ignorable: New file.
38269
38270         New module 'unicase/cased'.
38271         * lib/unicase/caseprop.h: New file.
38272         * lib/unicase/cased.c: New file.
38273         * modules/unicase/cased: New file.
38274
38275         New functions for case mapping of substrings.
38276         * lib/unicase.h (casing_prefix_context_t): New type.
38277         (unicase_empty_prefix_context): New variable.
38278         (u8_casing_prefix_context, u16_casing_prefix_context,
38279         u32_casing_prefix_context, u8_casing_prefixes_context,
38280         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38281         declarations.
38282         (casing_suffix_context_t): New type.
38283         (unicase_empty_suffix_context): New variable.
38284         (u8_casing_suffix_context, u16_casing_suffix_context,
38285         u32_casing_suffix_context, u8_casing_suffixes_context,
38286         u16_casing_suffixes_context, u32_casing_suffixes_context,
38287         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38288         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38289         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38290         declarations.
38291
38292 2009-06-28  Jim Meyering  <meyering@redhat.com>
38293
38294         boostrap: indent only with spaces
38295         * build-aux/bootstrap: Indent only with spaces, never TABs.
38296
38297         bootstrap: split long lines
38298         * build-aux/bootstrap: Keep line length < 80.
38299
38300         bootstrap: sync from coreutils
38301         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38302         just as autoreconf does.  Verify a list of prerequisite
38303         package-name,version-number pairs if defined in bootstrap.conf.
38304         Refer to README-prereq, if prerequisites are not satisfied.
38305
38306 2009-06-27  Eric Blake  <ebb9@byu.net>
38307
38308         tests: add test for bogus NULL definition
38309         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38310         * tests/test-stdlib.c: Likewise.
38311         * tests/test-string.c: Likewise.
38312         * tests/test-locale.c: Likewise.
38313         * tests/test-unistd.c: Likewise.
38314         * modules/stdio-tests (Depends-on): Add verify.
38315         * modules/stdlib-tests (Depends-on): Likewise.
38316         * modules/string-tests (Depends-on): Likewise.
38317         * modules/locale-tests (Depends-on): Likewise.
38318         * modules/unistd-tests (Depends-on): Likewise.
38319
38320 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38321
38322         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38323         self-explaining comment.
38324         * m4/selinux-selinux-h: Update serial.
38325         (gl_LIBSELINUX): New macro, adding a warning for missing development
38326         packages to code extracted from...
38327         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38328         Add warning for missing development packages here, too.
38329
38330 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38331
38332         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38333
38334 2009-06-25  Eric Blake  <ebb9@byu.net>
38335
38336         version-etc: fix regression
38337         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38338         gcc.
38339         (version_etc): Use it, to catch bugs with trailing NULL.
38340         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38341         (version_etc_va): Fix logic bug.
38342         * modules/version-etc-tests: Add test.
38343         * tests/test-version-etc.c: New file.
38344         * tests/test-version-etc.sh: Likewise.
38345
38346 2009-06-25  Sam Steingold  <sds@gnu.org>
38347
38348         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38349         mbtowc declaration.
38350
38351 2009-06-25  Eric Blake  <ebb9@byu.net>
38352
38353         fpurge: migrate into <stdio.h>
38354         * lib/fpurge.h: Delete...
38355         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38356         * lib/fpurge.c (fpurge): Change declaring header.
38357         * modules/fpurge (Files): Drop deleted file.
38358         (Depends-on): Add stdio.
38359         (configure.ac): Set witness.
38360         * modules/stdio (Makefile.am): Support fpurge macros.
38361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38362         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38363         * lib/fflush.c: Update client.
38364         * tests/test-fpurge.c: Likewise.
38365         * NEWS: Mention the change.
38366
38367 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38368
38369         * lib/argp-version-etc.c (program_authors): Add const
38370         qualifier.
38371         * lib/version-etc.c: Fix typos in the comments.
38372         * modules/argp-version-etc: Depends on version-etc.
38373
38374 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38375
38376         argp-version-etc: new module.
38377
38378         * lib/argp-version-etc.c: New file.
38379         * lib/argp-version-etc.h: New file.
38380         * modules/argp-version-etc: New file.
38381         * modules/argp-version-etc-tests: New file.
38382         * tests/test-argp-version-etc.c: New test.
38383         * tests/test-argp-version-etc-1.sh: New test.
38384
38385 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38386
38387         Provide additional interfaces and documentation for version-etc
38388         module.
38389
38390         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38391         interfaces.
38392         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38393         prototypes.
38394
38395 2009-06-24  Bruno Haible  <bruno@clisp.org>
38396
38397         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38398         HAVE_LIB${NAME} macro.
38399         Reported by Sam Steingold <sds@gnu.org>.
38400
38401 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38402
38403         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38404         needed.
38405
38406 2009-06-21  Bruno Haible  <bruno@clisp.org>
38407
38408         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38409         work.
38410         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38411         together with LIB${NAME}, LTLIB${NAME}.
38412         Reported by Sam Steingold <sds@gnu.org>.
38413
38414 2009-06-20  Jim Meyering  <meyering@redhat.com>
38415
38416         tests: make sc_require_test_exit_idiom more generic
38417         * top/maint.mk (Exit_witness_file): New overridable variable.
38418         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38419         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38420
38421 2009-06-19  Jim Meyering  <meyering@redhat.com>
38422
38423         hash: reverse order of src/dst parameters in an internal interface
38424         * lib/hash.c (transfer_entries): Reverse order of parameters to
38425         put DST before SRC.  Adjust callers.
38426
38427         tests: test-hash: avoid wholesale duplication
38428         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38429         Instead, use a loop and add a single conditional.
38430
38431         tests: test-hash: allow seed selection via a command line argument
38432         * tests/test-hash.c (get_seed): New function.
38433         (main): Use it.
38434
38435 2009-06-19  Eric Blake  <ebb9@byu.net>
38436
38437         hash: avoid memory leak on allocation failure
38438         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38439         failure.  Factor repeated algorithm...
38440         (transfer_entries): ...into new helper routine.
38441         (hash_delete): React to hash_rehash return value.
38442
38443         hash: reduce memory pressure in hash_rehash no-op case
38444         * lib/hash.c (next_prime): Avoid overflow.
38445         (hash_initialize): Factor bucket size computation...
38446         (compute_bucket_size): ...into new helper function.
38447         (hash_rehash): Use new function and open coding to reduce memory
38448         pressure, and avoid a memory leak in USE_OBSTACK code.
38449         Reported by Jim Meyering.
38450
38451 2009-06-18  Eric Blake  <ebb9@byu.net>
38452
38453         hash: make rotation more obvious
38454         * modules/hash (Depends-on): Add bitrotate and stdint.
38455         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38456         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38457         (SIZE_MAX): Rely on headers for definition.
38458         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38459         (raw_hasher): Use rotr_sz.
38460         Suggested by Jim Meyering.
38461
38462         hash: fix memory leak in last patch
38463         * lib/hash.c (hash_rehash): Avoid memory leak.
38464
38465         hash: avoid no-op rehashing
38466         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38467
38468         hash: provide default callback functions
38469         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38470         (hash_initialize): Use them as defaults.
38471         * tests/test-hash.c (main): Test this.
38472
38473         hash: minor optimization
38474         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38475         when possible.
38476         (hash_initialize): Document this promise.
38477         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38478         * tests/test-hash.c (hash_compare_strings): Test this.
38479
38480 2009-06-18  Bruno Haible  <bruno@clisp.org>
38481
38482         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38483         going to be replaced anyway.
38484
38485 2009-06-18  Bruno Haible  <bruno@clisp.org>
38486
38487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38488         in one place.
38489         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38490         be replaced anyway.
38491
38492 2009-06-18  Eric Blake  <ebb9@byu.net>
38493
38494         hash: check for resize before insertion
38495         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38496         threshold before insertion, so that a pathological hash_rehash
38497         that fills every bucket can still trigger another rehash.
38498
38499 2009-06-18  Jim Meyering  <meyering@redhat.com>
38500
38501         hash-tests: add a loop around the small tests
38502         * tests/test-hash.c (main): Repeat small tests with selected
38503         small initial table sizes.
38504
38505 2009-06-17  Eric Blake  <ebb9@byu.net>
38506
38507         hash: minor cleanups
38508         * lib/hash.h (hash_entry): Make opaque, by moving...
38509         * lib/hash.c (hash_entry): ...here.
38510         (hash_insert): Clarify restrictions on what can be inserted.
38511         (hash_get_next): Clarify when it is safe to remove an element
38512         during traversal.
38513         (check_tuning): Skip verification when tuning is known safe.
38514         (hash_initialize): Clarify restrictions on tuning.
38515
38516 2009-06-17  Jim Meyering  <jim@meyering.net>
38517         and Eric Blake  <ebb9@byu.net>
38518
38519         hash-tests: new module
38520         * modules/hash-tests: New file.
38521         * tests/test-hash.c: New file.
38522
38523 2009-06-17  Eric Blake  <ebb9@byu.net>
38524
38525         strstr-simple: document new module
38526         * MODULES.html.sh: Document new module.
38527
38528         strstr, strcasestr: replace on platforms with broken memchr
38529         * modules/strstr: Split into...
38530         * modules/strstr-simple: ...new module that does not care about
38531         performance, but does care about glibc bug.
38532         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38533         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38534         if platform memchr is broken, per Debian bug 521737.
38535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38536         memchr.
38537         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38538         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38539         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38540         * modules/mountlist (Depends-on): Add strstr-simple.
38541         * modules/gen-uni-tables (Depends-on): Likewise.
38542         * modules/argz (Depends-on): Add strstr.
38543
38544 2009-06-17  Bruno Haible  <bruno@clisp.org>
38545
38546         * modules/posix_spawn-internal (Depends-on): Add errno.
38547
38548 2009-06-17  Bruno Haible  <bruno@clisp.org>
38549
38550         Define missing ESTALE on Interix 3.5.
38551         * lib/errno.in.h (ESTALE): Assign a value if missing.
38552         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38553         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38554         missing.
38555         * doc/posix-headers/errno.texi: Mention the Interix bug.
38556         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38557
38558 2009-06-15  Eric Blake  <ebb9@byu.net>
38559
38560         memchr, memchr2: add valgrind exception
38561         * lib/memchr.valgrind: New file.
38562         * lib/memchr2.valgrind: New file.
38563         * modules/memchr (Files): Distribute valgrind file.
38564         * modules/memchr2 (Files): Likewise.
38565
38566         docs: memchr is no longer obsolete
38567         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38568         * lib/string.in.h (memchr): Simplify logic.
38569
38570 2009-06-14  Jim Meyering  <meyering@redhat.com>
38571
38572         link-follow: fix the "checking..." message to not mention trailing slash
38573         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38574         never considered trailing slashes.
38575
38576 2009-06-14  Bruno Haible  <bruno@clisp.org>
38577
38578         * m4/memchr.m4: Mention also the bug on IA-64.
38579         * doc/posix-functions/memchr.texi: Likewise.
38580
38581 2009-06-12  Eric Blake  <ebb9@byu.net>
38582
38583         memchr: detect broken x86_64 and alpha implementations
38584         * modules/memchr-tests (Depends-on): Move mmap detection...
38585         * modules/memchr (Depends-on): ...here.
38586         (configure.ac): Set indicator.
38587         * lib/string.in.h (memchr): Declare replacement.
38588         * modules/string (Makefile.am): Trigger replacement.
38589         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38590         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38591         bugs.
38592         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38593         * modules/getpagesize (License): Relax license.
38594
38595 2009-06-11  Bruno Haible  <bruno@clisp.org>
38596
38597         * lib/idpriv.h: Add more references.
38598
38599 2009-06-08  Bruno Haible  <bruno@clisp.org>
38600
38601         Tests for module 'idpriv-droptemp'.
38602         * modules/idpriv-droptemp-tests: New file.
38603         * tests/test-idpriv-droptemp.sh: New file.
38604         * tests/test-idpriv-droptemp.su.sh: New file.
38605         * tests/test-idpriv-droptemp.c: New file.
38606
38607         New module 'idpriv-droptemp'.
38608         * lib/idpriv-droptemp.c: New file.
38609         * modules/idpriv-droptemp: New file.
38610
38611 2009-06-08  Bruno Haible  <bruno@clisp.org>
38612
38613         Tests for module 'idpriv-drop'.
38614         * modules/idpriv-drop-tests: New file.
38615         * tests/test-idpriv-drop.sh: New file.
38616         * tests/test-idpriv-drop.su.sh: New file.
38617         * tests/test-idpriv-drop.c: New file.
38618
38619         New module 'idpriv-drop'.
38620         * lib/idpriv.h: New file.
38621         * lib-idpriv-drop.c: New file.
38622         * m4/idpriv.m4: New file.
38623         * modules/idpriv-drop: New file.
38624
38625 2009-06-08  Bruno Haible  <bruno@clisp.org>
38626
38627         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38628         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38629         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38630         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38631         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38632         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38633         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38634
38635 2009-06-08  Eric Blake  <ebb9@byu.net>
38636
38637         test-strstr: use memory fence, when possible
38638         * tests/test-strstr.c (main): Use memory fence, in order to be
38639         more likely to trigger Debian bug 521737.
38640         * modules/strstr-tests (Files): Pull in additional files.
38641
38642         memchr: no longer obsolete, for wider field testing
38643         * modules/memchr (Status, Notice): Delete, this module is no
38644         longer obsolete.
38645         * modules/vasnprintf (Depends-on): Add memchr.
38646
38647 2009-06-07  Jim Meyering  <meyering@redhat.com>
38648
38649         hash: declare some functions with the warn_unused_result attribute
38650         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38651
38652 2009-06-07  Bruno Haible  <bruno@clisp.org>
38653
38654         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38655         Reported by Eric Blake.
38656
38657 2009-06-06  Eric Blake  <ebb9@byu.net>
38658
38659         test-alignof: fix typo with long double
38660         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38661         compiler error.
38662
38663 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38664
38665         Escape non-texinfo { and }s.
38666         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38667         markup error.
38668
38669 2009-06-04  Jim Meyering  <meyering@redhat.com>
38670
38671         gitlog-to-changelog: don't infloop on an empty commit log
38672         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38673         Reported by Boris Petersen <transacid@centerim.org>.
38674
38675 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38676
38677         version-etc: extend for packagers
38678         Add three new configure options, intended for packagers:
38679           --with-packager="packager name"
38680           --with-packager-version="packager-specific version"
38681           --with-packager-bug-reports="packager bug reporting"
38682         An example with coreutils:
38683           $ ./configure \
38684             --with-packager=Gentoo \
38685             --with-packager-bug-report=http://bugs.gentoo.org/ \
38686             --with-packager-version="patchset 1.6"
38687           $ ./src/ls --version | head -n2
38688           ls (GNU coreutils) 7.1-dirty
38689           Packaged by Gentoo (patchset 1.6)
38690         Note that the bug reporting info via --help doesn't show up because
38691         coreutils uses its own custom emit_bug_reporting_address() implementation
38692         in src/system.h.  If it didn't, it'd look like:
38693           $ ./src/ls --help | tail -n4
38694           Report bugs to <bug-coreutils@gnu.org>.
38695           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38696           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38697           General help using GNU software: <http://www.gnu.org/gethelp/>.
38698         * lib/version-etc.c: Print new information, if provided.
38699         * m4/version-etc.m4: New file.
38700         * modules/version-etc (Files): Add m4/version-etc.m4.
38701         (configure.ac): Add gl_VERSION_ETC.
38702
38703 2009-05-31  Bruno Haible  <bruno@clisp.org>
38704
38705         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38706         and 'int64_t'.
38707         * modules/alignof-tests (Dependencies): Add stdint.
38708         Reported by Eric Blake.
38709
38710 2009-05-31  Bruno Haible  <bruno@clisp.org>
38711
38712         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38713         restriction due to compiler bugs.
38714         Reported by Eric Blake.
38715
38716 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38717             Bruno Haible  <bruno@clisp.org>
38718
38719         Fix test-alignof failure.
38720         * lib/alignof.h (alignof_slot): New macro.
38721         (alignof_type): New macro, with the same semantics as the previous
38722         'alignof'.
38723         (alignof): Alias to alignof_slot.
38724         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38725         check that the results are usable as constant expressions.
38726
38727 2009-05-31  Bruno Haible  <bruno@clisp.org>
38728
38729         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38730         * tests/test-memchr.c (main): Check that memchr does not read past the
38731         first occurrence of the byte.
38732         * tests/test-strstr.c (main): Update comment.
38733         Suggested by Eric Blake.
38734
38735 2009-05-30  Bruno Haible  <bruno@clisp.org>
38736
38737         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38738         detail how to use dumpbin.
38739         Reported by David Byron <dbyron@dbyron.com>.
38740
38741 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38742
38743         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38744
38745 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38746
38747         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38748
38749 2009-05-28  Bruno Haible  <bruno@clisp.org>
38750
38751         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38752         build-aux/ files.
38753
38754 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38755
38756         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38757
38758 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38759
38760         * gnulib-tool (sed_transform_main_lib_file)
38761         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38762         regexps.
38763
38764 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38765
38766         * tests/test-strstr.c: Add another self-test.
38767         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38768         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38769
38770 2009-05-23  Bruno Haible  <bruno@clisp.org>
38771
38772         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38773         change.
38774
38775 2009-05-21  Bruno Haible  <bruno@clisp.org>
38776
38777         Simplify use of mode_t varargs.
38778         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38779         uses 'mode_t' or 'int'.
38780         * lib/openat.c (openat): Likewise.
38781         * lib/open-safer.c (open_safer): Likewise.
38782         * m4/mode_t.m4: New file.
38783         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38784         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38785         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38786         * modules/open (Files): Add m4/mode_t.m4.
38787         * modules/openat (Files): Likewise.
38788         * modules/fcntl-safer (Files): Likewise.
38789         Suggested by Eric Blake.
38790
38791 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38792
38793         * doc/glibc-functions/fallocate.texi: New file.
38794         * doc/gnulib.texi: Include it.
38795
38796 2009-05-21  Eric Blake  <ebb9@byu.net>
38797             Bruno Haible  <bruno@clisp.org>
38798
38799         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38800         invocations.
38801         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38802
38803 2009-05-21  Eric Blake  <ebb9@byu.net>
38804             Bruno Haible  <bruno@clisp.org>
38805
38806         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38807         include_next. Fix of 2008-11-20 commit.
38808         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38809         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38810         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38811         NEXT_MATH_H.
38812         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38813         instead of NEXT_MATH_H.
38814
38815 2009-05-21  Bruno Haible  <bruno@clisp.org>
38816
38817         Avoid redefinition warnings for SIZE_MAX.
38818         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38819         Reported by Simon Josefsson.
38820
38821 2009-05-21  Bruno Haible  <bruno@clisp.org>
38822
38823         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38824         AC_CACHE_VAL.
38825
38826 2009-05-20  Bruno Haible  <bruno@clisp.org>
38827
38828         Make zeroptr.h work on mingw.
38829         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38830         mprotect.
38831         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38832         * modules/memchr2-tests (configure.ac): Likewise.
38833         * modules/memcmp-tests (configure.ac): Likewise.
38834         * modules/memmem-tests (configure.ac): Likewise.
38835         * modules/memrchr-tests (configure.ac): Likewise.
38836         Reported by Simon Josefsson.
38837
38838 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38839
38840         * tests/test-glob.c: Include string.h for strcmp prototype.
38841
38842 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38843
38844         * modules/getdelim (Depends-on): Add explicit stdint, although it
38845         was implicitly already pulled in via realloc-posix.
38846         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38847
38848 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38849
38850         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38851         G. Christensen" <tgc@jupiterrise.com>.
38852         * m4/sys_socket_h.m4: Check for sa_family_t.
38853         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38854         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38855         * tests/test-sys_socket.c: Check that sa_family_t works.
38856
38857 2009-05-18  Eric Blake  <ebb9@byu.net>
38858
38859         maint.mk: allow gnulib_dir in VPATH build
38860         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38861
38862 2009-05-15  Jim Meyering  <meyering@redhat.com>
38863
38864         maint.mk: Give gnulib_dir a default definition.
38865         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38866         Thus, most packages no longer need to specify this variable in cfg.mk
38867
38868 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38869
38870         rename.m4: fix typos that would make non-mingw cross-configure fail
38871         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38872
38873 2009-05-13  Eric Blake  <ebb9@byu.net>
38874
38875         mmap-anon: avoid out-of-order autoconf expansion
38876         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38877         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38878         * modules/memchr-tests (Depends-on): Add extensions.
38879         * modules/memchr2-tests (Depends-on): Add extensions.
38880         * modules/memcmp-tests (Depends-on): Add extensions.
38881         * modules/memmem-tests (Depends-on): Add extensions.
38882         * modules/memrchr-tests (Depends-on): Add extensions.
38883
38884 2009-05-13  Bruno Haible  <bruno@clisp.org>
38885
38886         Make some tests ISO C 99 compliant.
38887         * tests/zerosize-ptr.h: New file.
38888         * tests/test-memchr.c: Include zerosize-ptr.h.
38889         (main): Use a zero-size object pointer instead of NULL.
38890         * tests/test-memchr2.c: Include zerosize-ptr.h.
38891         (main): Use a zero-size object pointer instead of NULL.
38892         * tests/test-memcmp.c: Include zerosize-ptr.h.
38893         (main): Use a zero-size object pointer instead of NULL.
38894         * tests/test-memmem.c: Include zerosize-ptr.h.
38895         (main): Use a zero-size object pointer instead of NULL.
38896         * tests/test-memrchr.c: Include zerosize-ptr.h.
38897         (main): Use a zero-size object pointer instead of NULL.
38898         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38899         m4/mmap-anon.m4.
38900         (Depends-on): Add getpagesize.
38901         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38902         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38903         m4/mmap-anon.m4.
38904         (Depends-on): Add getpagesize.
38905         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38906         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38907         m4/mmap-anon.m4.
38908         (Depends-on): Add getpagesize.
38909         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38910         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38911         m4/mmap-anon.m4.
38912         (Depends-on): Add getpagesize.
38913         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38914         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38915         m4/mmap-anon.m4.
38916         (Depends-on): Add getpagesize.
38917         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38918
38919 2009-05-12  Bruno Haible  <bruno@clisp.org>
38920
38921         Tests for module 'alignof'.
38922         * modules/alignof-tests: New file.
38923         * tests/test-alignof.c: New file.
38924
38925 2009-05-12  Bruno Haible  <bruno@clisp.org>
38926
38927         Fix alignof macro.
38928         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38929         vendor compilers that are always correct.
38930
38931 2009-05-12  Bruno Haible  <bruno@clisp.org>
38932
38933         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38934         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38935         not whether its fully works.
38936
38937 2009-05-12  Bruno Haible  <bruno@clisp.org>
38938
38939         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38940
38941 2009-05-12  Jim Meyering  <meyering@redhat.com>
38942
38943         * top/maint.mk: Adjust backslash alignment.
38944
38945 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38946
38947         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38948
38949 2009-05-11  Eric Blake  <ebb9@byu.net>
38950
38951         argp: avoid undefined behavior
38952         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38953         macros.
38954
38955 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38956
38957         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38958         user.name to prevent git commit from complaining.
38959
38960 2009-05-10  Bruno Haible  <bruno@clisp.org>
38961
38962         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38963         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38964         it rewrites every file name only once.
38965         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38966
38967 2009-05-08  Bruno Haible  <bruno@clisp.org>
38968
38969         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38970         instead of 'max'.
38971
38972 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38973
38974         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38975         sockaddr_storage test.
38976
38977 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38978
38979         * modules/sys_socket (Makefile.am): Substitute
38980         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38981         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38982         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38983         * tests/test-sys_socket.c: Check sockaddr_storage.
38984
38985 2009-05-08  Bruno Haible  <bruno@clisp.org>
38986
38987         New module 'alignof'.
38988         * lib/alignof.h: New file.
38989         * modules/alignof: New file.
38990
38991 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
38992             Bruno Haible  <bruno@clisp.org>
38993
38994         Fix test-file-has-acl on FreeBSD.
38995         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
38996         mask is implicitly added.
38997         * tests/test-file-has-acl.c: Include <signal.h>.
38998         (main): Terminate the test after 5 seconds.
38999         * modules/acl-tests (configure.ac): Check for alarm function.
39000
39001 2009-05-04  Bruno Haible  <bruno@clisp.org>
39002
39003         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39004         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39005         * modules/errno (configure.ac): Drop AC_REQUIRE.
39006         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39007         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39008
39009 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39010
39011         * modules/glob-tests: New module.
39012         * tests/test-glob.c: Add.
39013
39014 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39015
39016         * modules/fnmatch-tests: New module.
39017         * tests/test-fnmatch.c: Add.
39018
39019 2009-05-04  Eric Blake  <ebb9@byu.net>
39020
39021         maint: make the new no-submodule-changes rule VPATH-safe
39022         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39023
39024 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39025             Bruno Haible  <bruno@clisp.org>
39026
39027         acl: Fix infinite loop on FreeBSD.
39028         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39029         of return value from acl_get_entry.
39030         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39031         Likewise.
39032
39033 2009-05-03  Bruno Haible  <bruno@clisp.org>
39034
39035         * lib/acl-internal.h (acl_entries): Clarify return value.
39036         * lib/acl_entries.c (acl_entries): Likewise.
39037
39038 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39039
39040         Bug fix in acl module.
39041         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39042
39043 2009-05-03  Bruno Haible  <bruno@clisp.org>
39044
39045         Create gperf-generated file in the source dir, not in the build dir.
39046         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39047         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39048         * modules/unicase/locale-language (unicase/locale-languages.h):
39049         Likewise.
39050         * modules/unicase/special-casing (unicase/special-casing-table.h):
39051         Likewise.
39052         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39053         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39054         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39055         Reported by Ralf Wildenhues.
39056
39057 2009-05-03  Bruno Haible  <bruno@clisp.org>
39058
39059         * modules/fnmatch (Description, configure.ac): Taken from
39060         fnmatch-posix.
39061         * modules/fnmatch-posix: Turn into a symbolic reference to the
39062         'fnmatch' module, and deprecate.
39063         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39064
39065 2009-05-03  Bruno Haible  <bruno@clisp.org>
39066
39067         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39068         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39069         Reported by Ralf Wildenhues.
39070
39071 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39072
39073         * m4/fnmatch.m4: Fix fnmatch re-define.
39074
39075 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39076
39077         priv-set: new module and tests; adapt write-any-file
39078         * lib/priv-set.c: New file.
39079         * lib/priv-set.h: New file.
39080         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39081         * lib/write-any-file.c: Simplify by using priv-set module.
39082         * m4/priv-set.m4: New file.
39083         * modules/priv-set: New file.
39084         * modules/unlinkdir: Add dependency on priv-set module.
39085         * modules/write-any-file: Likewise.
39086
39087         Tests for module 'priv-set'.
39088         * modules/priv-set-tests: New file.
39089         * tests/test-priv-set.c: New file.
39090
39091 2009-05-03  Jim Meyering  <meyering@redhat.com>
39092             Bruno Haible  <bruno@clisp.org>
39093
39094         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39095         use the converted UTF-8 variant of the name instead.
39096
39097 2009-05-03  Jim Meyering  <meyering@redhat.com>
39098
39099         tests: tighten some getdate tests
39100         * tests/test-getdate.c (main): Tighten tests: require equality,
39101         not just greater than.  Set TZ envvar to UTC0.
39102
39103 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39104
39105         getdate: correctly interpret "next monday" when run on a Monday
39106         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39107         that e.g., "next tues" (when run on a tuesday) results in a date
39108         that is one week in the future, and not today's date.
39109         I.e., add a week when the wday is the same as the current one.
39110         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39111         and earlier by Martin Bernreuther and Jan Minář.
39112         * tests/test-getdate.c (main): Check that "next DAY" is always in
39113         the future and that "last DAY" is always in the past.
39114
39115 2009-05-02  Jim Meyering  <meyering@redhat.com>
39116
39117         build: ensure that a release build fails when a submodule is unclean
39118         * top/maint.mk (no-submodule-changes): New rule.
39119         (alpha beta major): Depend on it.
39120
39121 2009-05-02  Bruno Haible  <bruno@clisp.org>
39122
39123         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39124         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39125         shell variable gl_fnmatch_required to detect which variant is
39126         requested.
39127         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39128         gl_FUNC_FNMATCH_POSIX.
39129         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39130         exclude fnmatch-posix.
39131
39132 2009-05-02  Bruno Haible  <bruno@clisp.org>
39133
39134         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39135         * modules/mbsrtowcs (License): Change to LGPLv2+.
39136         * modules/strnlen1 (License): Likewise.
39137         Reported by Simon Josefsson.
39138
39139 2009-05-02  Bruno Haible  <bruno@clisp.org>
39140
39141         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39142         "cross".
39143         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39144         gnulib-tool was called with option --source-base=lib.
39145
39146 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39147
39148         Use automake *-local hooks without commands, for extensibility.
39149         * modules/localcharset (Makefile.am): Rename install-exec-local
39150         rule to install-exec-localcharset, and make it a prerequisite of
39151         install-exec-local.  Likewise, rename the uninstall-local rule to
39152         uninstall-localcharset, and make it a prerequisite of the former.
39153
39154 2009-05-01  Bruno Haible  <bruno@clisp.org>
39155
39156         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39157         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39158         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39160         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39161         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39162         m4/locale-zh.m4, m4/codeset.m4.
39163
39164         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39165         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39166         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39167         m4/locale-zh.m4.
39168
39169         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39170         REPLACE_WCRTOMB if mbstate_t must be replaced.
39171         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39172         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39173
39174 2009-05-01  Bruno Haible  <bruno@clisp.org>
39175
39176         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39177         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39178         dngettext, dcngettext, textdomain, bindtextdomain,
39179         bind_textdomain_codeset): Undefine before redefining.
39180
39181 2009-04-30  Bruno Haible  <bruno@clisp.org>
39182
39183         Fix bug introduced on 2009-04-25.
39184         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39185         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39186         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39187         is defined.
39188         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39189         is defined.
39190         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39191         is defined.
39192         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39193
39194 2009-04-28  Bruno Haible  <bruno@clisp.org>
39195
39196         Comment tweaks.
39197         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39198         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39199         * lib/unicase.h (u*_casexfrm): Likewise.
39200         Reported by Paolo Bonzini.
39201
39202 2009-04-28  Bruno Haible  <bruno@clisp.org>
39203
39204         Fix a compilation error.
39205         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39206         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39207         Reported by Jim Meyering.
39208
39209 2009-04-27  Bruno Haible  <bruno@clisp.org>
39210
39211         New module 'libunistring'.
39212         * modules/libunistring: New file.
39213         * m4/libunistring.m4: New file.
39214         * MODULES.html.sh (Unicode string functions): Add it.
39215
39216 2009-04-27  Eric Blake  <ebb9@byu.net>
39217
39218         maint.mk: allow package-specific header to provide <config.h>
39219         * top/maint.mk (sc_require_config_h): New variable.
39220         (sc_require_config_h, sc_require_config_h_first): Use it.
39221
39222 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39223
39224         * top/maint.mk (sc_avoid_if_before_free): Except
39225         useless-if-before-free script.
39226
39227 2009-04-27  Eric Blake  <ebb9@byu.net>
39228
39229         maintainer-makefile: depend on all required helper scripts
39230         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39231         useless-if-before-free.
39232         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39233         version, rather than assuming gnulib checkout is available.
39234         Reported by Simen Josefsson.
39235
39236 2009-04-26  Bruno Haible  <bruno@clisp.org>
39237
39238         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39239         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39240         "../" or "..".
39241
39242 2009-04-26  Bruno Haible  <bruno@clisp.org>
39243
39244         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39245         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39246         AC_LIB_HAVE_LINKFLAGS.
39247
39248 2009-04-26  Bruno Haible  <bruno@clisp.org>
39249
39250         Simplify calling convention of u*_conv_from_encoding.
39251         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39252         u32_conv_from_encoding): Expect a resultbuf argument and return the
39253         result directly as a pointer.
39254         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39255         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39256         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39257         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39258         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39259         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39260         Update.
39261         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39262         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39263         * lib/vasnprintf.c (VASNPRINTF): Update.
39264         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39265         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39266         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39267         * NEWS: Mention the change.
39268
39269 2009-04-26  Bruno Haible  <bruno@clisp.org>
39270
39271         Simplify calling convention of u*_conv_to_encoding.
39272         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39273         u32_conv_to_encoding): Expect a resultbuf argument and return the
39274         result directly as a pointer.
39275         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39276         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39277         freeing scaled_offsets if mem_iconveha failed.
39278         * lib/unicase/u-casexfrm.h (FUNC): Update.
39279         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39280         * lib/vasnprintf.c (VASNPRINTF): Update.
39281         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39282         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39283         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39284         * NEWS: Mention the change.
39285
39286 2009-04-26  Bruno Haible  <bruno@clisp.org>
39287
39288         Avoid test failures on AIX and OSF/1.
39289         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39290         malloc(0).
39291         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39292         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39293         Likewise.
39294         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39295         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39296         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39297         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39298         * doc/posix-functions/malloc.texi: Document the portability problem
39299         related to malloc(0).
39300
39301 2009-04-26  Bruno Haible  <bruno@clisp.org>
39302
39303         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39304         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39305         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39306
39307 2009-04-25  Bruno Haible  <bruno@clisp.org>
39308
39309         Avoid link error when creating a namespace clean library.
39310         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39311         as macro with arguments if already defined as an alias.
39312         * lib/signbitf.c (gl_signbitf): Don't undefine.
39313         * lib/signbitd.c (gl_signbitd): Don't undefine.
39314         * lib/signbitl.c (gl_signbitl): Don't undefine.
39315
39316 2009-04-25  Jim Meyering  <meyering@redhat.com>
39317
39318         vc-list-files: fix another quoting bug
39319         * build-aux/vc-list-files: Avoid sed backslash expansion
39320         of pathological directory names.
39321
39322 2009-04-25  Eric Blake  <ebb9@byu.net>
39323
39324         vc-list-files: fix shell quoting error
39325         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39326         timestamp.
39327
39328 2009-04-25  Jim Meyering  <meyering@redhat.com>
39329
39330         vc-list-files: restore lost functionality with subdir argument
39331         * build-aux/vc-list-files: When given a non-"." sub-directory
39332         argument, substitute the $dir/ prefix back onto each resulting name.
39333         Otherwise, coreutils' root_tests check would fail.
39334
39335 2009-04-24  Eric Blake  <ebb9@byu.net>
39336
39337         vc-list-files: ignore git symlinks
39338         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39339         than ls-files, to ignore git symlinks.
39340
39341         maint.mk: import improvements from m4
39342         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39343         (move_if_change): Delete unused macro.
39344         (news-date-check, vc-diff-check): Support VPATH builds.
39345         (announcement): Likewise.  Split --bootstrap-tools list...
39346         (boostrap-tools): ...into separate list, which can be overridden
39347         in cfg.mk.
39348         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39349         requiring dependency on useless-if-before-free module.
39350         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39351         Support VPATH builds.
39352
39353 2009-04-24  Jim Meyering  <meyering@redhat.com>
39354
39355         maint.mk: remove coreutils-specific rules and variables
39356         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39357         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39358         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39359
39360         maint.mk: remove obsolete rule
39361         * top/maint.mk (rel-check): Remove rule.
39362         (WGET, WGETFLAGS): Remove now-unused variables.
39363
39364 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39365
39366         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39367         consistency.
39368
39369         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39370         '$(PATH_SEPARATOR)' instead of ':'.
39371
39372 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39373
39374         * lib/getopt1.c (main): Use 'const' for static array.
39375
39376 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39377
39378         * top/maint.mk: Sync with coreutils.
39379         * NEWS: Explain incompatibilities.
39380
39381 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39382             Bruno Haible  <bruno@clisp.org>
39383
39384         Fix cross-compilation results.
39385         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39386         statement, as third argument of AC_TRY_RUN.
39387         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39388         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39389         Likewise.
39390         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39391         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39392         Likewise.
39393         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39394         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39395         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39396
39397 2009-04-20  Bruno Haible  <bruno@clisp.org>
39398
39399         Avoid test failure on mingw.
39400         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39401
39402 2009-04-20  Bruno Haible  <bruno@clisp.org>
39403
39404         Avoid compilation error on mingw.
39405         * modules/localename-tests (Depends-on): Add locale.
39406
39407 2009-04-19  Bruno Haible  <bruno@clisp.org>
39408
39409         Support for building a shared library on Windows platforms.
39410         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39411         (main): Test the presence of UNINORM_NFC here.
39412         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39413         (main): Test the presence of UNINORM_NFD here.
39414         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39415         (main): Test the presence of UNINORM_NFKC here.
39416         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39417         (main): Test the presence of UNINORM_NFKD here.
39418
39419 2009-04-19  Bruno Haible  <bruno@clisp.org>
39420
39421         Avoid a compiler warning.
39422         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39423         Change type of variable 'sequence'.
39424
39425 2009-04-19  Bruno Haible  <bruno@clisp.org>
39426
39427         * modules/configmake (Makefile.am): When the contents of configmake.h
39428         does not change, arrange to preserve its modification time.
39429
39430 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39431
39432         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39433         gettext domain.
39434
39435 2009-04-16  Jim Meyering  <meyering@redhat.com>
39436
39437         useless-if-before-free: improve conversion code
39438         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39439         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39440
39441 2009-04-14  Bruno Haible  <bruno@clisp.org>
39442
39443         * modules/fcntl (Depends-on): Add extensions.
39444         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39445
39446 2009-04-12  Ben Pfaff  <blp@gnu.org>
39447
39448         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39449         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39450
39451 2009-03-20  Ben Pfaff  <blp@gnu.org>
39452
39453         Make rename replace existing destinations on Windows.
39454         * m4/rename.m4: Add test for Mingw.
39455         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39456         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39457         * doc/posix-functions/rename.texi: Document.
39458
39459 2009-04-10  Bruno Haible  <bruno@clisp.org>
39460
39461         New include file "iconveh.h".
39462         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39463         * lib/striconveh.h: Include it.
39464         (enum iconv_ilseq_handler): Remove definition.
39465         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39466         striconveh.h.
39467         * lib/striconveha.c: Include striconveh.h.
39468         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39469         * modules/striconveh (Files): Add lib/iconveh.h.
39470         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39471         lib/striconveh.h.
39472
39473 2009-04-10  Bruno Haible  <bruno@clisp.org>
39474
39475         * lib/uniconv.h: Update comment.
39476
39477 2009-04-10  Bruno Haible  <bruno@clisp.org>
39478
39479         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39480         always.
39481         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39482         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39483         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39484         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39485         "unistring-notinline.h", so that the function gets defined always.
39486         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39487         * lib/unistr/u8-uctomb.c: Likewise.
39488         * lib/unistr/u16-mbtouc.c: Likewise.
39489         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39490         * lib/unistr/u16-uctomb.c: Likewise.
39491         * lib/unistr/u32-mbtouc.c: Likewise.
39492         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39493         * lib/unistr/u32-uctomb.c: Likewise.
39494
39495 2009-04-10  Bruno Haible  <bruno@clisp.org>
39496
39497         Mark 'utime' obsolete.
39498         * modules/utime (Status, Notice): New sections.
39499         Suggested by Jim Meyering.
39500
39501         Fix cross-compile guess for utime test.
39502         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39503         autoconf.
39504         * doc/posix-functions/utime.texi: Give more precisions.
39505         Reported by Jan <ipif@ymail.com>.
39506
39507 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39508
39509         filevercmp: correct today's change
39510         * lib/filevercmp.c: Also handle coreutils' test inputs.
39511         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39512
39513         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39514         for reporting it.
39515         * lib/filevercmp.c: Special handle for "", "." and "..".
39516         * tests/test-filevercmp.c: Enlarge the set suite.
39517
39518 2009-04-07  Jim Meyering  <meyering@redhat.com>
39519
39520         useless-if-before-free: show how to remove braced useless free, too
39521         * build-aux/useless-if-before-free: still only in a comment, though.
39522
39523 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39524
39525         maint.mk: import changes to syntax-check macros from coreutils
39526         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39527         Use them in the relevant macros.
39528
39529 2009-04-06  Bruno Haible  <bruno@clisp.org>
39530
39531         Fix unportable use of bit-fields.
39532         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39533         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39534         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39535
39536 2009-04-06  Bruno Haible  <bruno@clisp.org>
39537
39538         Avoid test failures on AIX and OSF/1.
39539         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39540         that malloc(0) = NULL.
39541         * tests/unicase/test-u8-tolower.c (check): Likewise.
39542         * tests/unicase/test-u8-totitle.c (check): Likewise.
39543         * tests/unicase/test-u8-toupper.c (check): Likewise.
39544         * tests/unicase/test-u16-casefold.c (check): Likewise.
39545         * tests/unicase/test-u16-tolower.c (check): Likewise.
39546         * tests/unicase/test-u16-totitle.c (check): Likewise.
39547         * tests/unicase/test-u16-toupper.c (check): Likewise.
39548         * tests/unicase/test-u32-casefold.c (check): Likewise.
39549         * tests/unicase/test-u32-tolower.c (check): Likewise.
39550         * tests/unicase/test-u32-totitle.c (check): Likewise.
39551         * tests/unicase/test-u32-toupper.c (check): Likewise.
39552         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39553         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39554         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39555         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39556         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39557         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39558         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39559         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39560         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39561         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39562         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39563         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39564
39565 2009-04-05  Bruno Haible  <bruno@clisp.org>
39566
39567         Work around an autoconf limitation.
39568         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39569         comment line if it would be longer than 3 KB.
39570
39571 2009-04-05  Bruno Haible  <bruno@clisp.org>
39572
39573         Avoid test failure with libiconv-1.13.
39574         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39575         of the expected test results.
39576
39577 2009-04-05  Bruno Haible  <bruno@clisp.org>
39578
39579         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39580         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39581         that it should be installed.
39582
39583 2009-04-05  Bruno Haible  <bruno@clisp.org>
39584
39585         * gnulib-tool: New option --copy-file.
39586         (func_usage): Document it.
39587         (func_dest_tmpfilename): Moved out of func_import.
39588         (func_add_file, func_update_file): New functions, extracted from
39589         func_import.
39590         (func_import): Update.
39591
39592 2009-04-05  Karl Berry  <karl@gnu.org>
39593
39594         * README: prominently mention gnulib-tool.
39595         Rearrange sections so getting the code is near the top.
39596
39597 2009-04-05  Bruno Haible  <bruno@clisp.org>
39598
39599         * lib/unicase.h: Mention u*_cmp2.
39600         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39601         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39602         * lib/unicase/ulc-casecmp.c: Likewise.
39603         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39604         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39605         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39606         unistr/u8-cmp.
39607         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39608         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39609         unistr/u16-cmp.
39610         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39611         unistr/u32-cmp.
39612
39613         * lib/uninorm.h: Mention u*_cmp2.
39614         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39615         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39616         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39617         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39618         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39619         unistr/u8-cmp.
39620         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39621         unistr/u16-cmp.
39622         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39623         unistr/u32-cmp.
39624
39625         New module 'unistr/u32-cmp2'.
39626         * lib/unistr/u32-cmp2.c: New file.
39627         * modules/unistr/u32-cmp2: New file.
39628
39629         New module 'unistr/u16-cmp2'.
39630         * lib/unistr/u16-cmp2.c: New file.
39631         * modules/unistr/u16-cmp2: New file.
39632
39633         New module 'unistr/u8-cmp2'.
39634         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39635         * lib/unistr/u8-cmp2.c: New file.
39636         * lib/unistr/u-cmp2.h: New file.
39637         * modules/unistr/u8-cmp2: New file.
39638
39639 2009-04-05  Bruno Haible  <bruno@clisp.org>
39640
39641         * lib/unictype.h (uc_property_is_valid): New macro.
39642         * tests/unictype/test-pr_byname.c (main): Use it.
39643
39644         * lib/unistr.h: Doc fixes.
39645         * lib/uniconv.h: Doc fixes.
39646         * lib/unictype.h: Doc fixes.
39647
39648 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39649
39650         Port coreutils 7.2 to Solaris 8.
39651
39652         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39653         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39654         for Solaris 8.  This is a bit of a hack, as it means it's the
39655         caller's responsibility to add -lnsl if needed, but most likely it
39656         won't be needed since only getaddrinfo uses this and getaddrinfo
39657         isn't needed on Solaris 8.
39658
39659         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39660         problem to Solaris 8 encountered with coreutils 7.2, which
39661         resulted in a message "fnmatch.c:292: warning: passing argument 4
39662         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39663         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39664
39665 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39666
39667         * m4/ld-version-script.m4: Add FIXME comment.
39668
39669 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39670
39671         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39672         SOVERSION variable.
39673
39674 2009-04-02  Bruno Haible  <bruno@clisp.org>
39675
39676         * Makefile (info, html, dvi, pdf): Combine the rules.
39677         Suggested by Jim Meyering.
39678
39679 2009-04-01  Bruno Haible  <bruno@clisp.org>
39680
39681         * Makefile (info, html, dvi, pdf): New targets.
39682         Reported by Reuben Thomas <rrt@sc3d.org>.
39683
39684 2009-04-01  Bruno Haible  <bruno@clisp.org>
39685
39686         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39687         can be put into PATH.
39688         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39689
39690 2009-04-01  Bruno Haible  <bruno@clisp.org>
39691
39692         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39693
39694 2009-04-01  Bruno Haible  <bruno@clisp.org>
39695
39696         Rename module 'visibility'.
39697         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39698         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39699         * doc/gnulib.texi: Update.
39700         * MODULES.html.sh (Misc): Update.
39701         * NEWS: Mention the change.
39702
39703 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39704
39705         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39706         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39707         Eric Blake <ebb9@byu.net> for review.
39708         * MODULES.html.sh: Add lib-msvc-compat.
39709         * doc/gnulib.texi: Link to new section.
39710         * m4/ld-output-def.m4: New file.
39711         * doc/ld-output-def.texi: New file.
39712
39713 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39714
39715         Rename ld-version-script to lib-symbol-versions.  Suggested by
39716         Bruno Haible <bruno@clisp.org>.
39717         * modules/ld-version-script: Renamed to lib-symbol-versions.
39718         * doc/ld-version-script.texi: Fix module name.
39719         * MODULES.html.sh: Add lib-symbol-versions.
39720
39721 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39722
39723         * modules/u64-tests: New file.
39724         * tests/test-u64.c: New file.
39725
39726 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39727
39728         * MODULES.html.sh: Mention u64.
39729         * modules/u64: New module.
39730         * modules/crypto/sha512: Depend on u64 module instead of providing
39731         u64.h.
39732
39733 2009-03-27  Eric Blake  <ebb9@byu.net>
39734
39735         test-strerror: make debugging EAI_SYSTEM easier
39736         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39737         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39738         failure was EAI_SYSTEM.
39739
39740 2009-03-25  Bruno Haible  <bruno@clisp.org>
39741
39742         Fix a problem with --enable-relocatable on Solaris 7.
39743         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39744         since 2008-02-24.
39745
39746 2009-03-25  Eric Blake  <ebb9@byu.net>
39747
39748         test-sockets: avoid gcc warning
39749         * tests/test-sockets.c (main): Silence compiler warning.
39750
39751 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39752
39753         New modules nproc, pthread, contributed by Glen Lenker.
39754
39755         * MODULES.html.sh: Add pthread, nproc.
39756         * lib/nproc.c: New file.
39757         * lib/nproc.h: New file.
39758         * lib/pthread.in.h: New file.
39759         * m4/pthread.m4: New file.
39760         * modules/nproc: New file.
39761         * modules/pthread: New file.
39762
39763 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39764
39765         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39766         New variable.
39767
39768 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39769
39770         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39771         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39772         * tests/test-filevercmp.c: Add tests for backup suffixes.
39773
39774 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39775
39776         * modules/stdlib (Depends-on): Add stdint, needed when defining
39777         struct random_data on, for example, HP-UX 10.20.  Reported by
39778         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39779
39780 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39781
39782         * lib/readline.c (readline): Call fflush on stdout after printing
39783         prompt.
39784
39785 2009-03-20  Bruno Haible  <bruno@clisp.org>
39786
39787         Remove dependency from 'close' module to -lws2_32 on native Windows.
39788         * lib/close-hook.h: New file.
39789         * lib/close-hook.c: New file.
39790         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39791         w32sock.h.
39792         (_gl_close_fd_maybe_socket): Remove function.
39793         (rpl_close): Invoke execute_all_close_hooks instead of
39794         _gl_close_fd_maybe_socket.
39795         * lib/sockets.c: Include close-hook.h, w32sock.h.
39796         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39797         (close_sockets_hook): New variable.
39798         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39799         (gl_sockets_cleanup): Unregister it.
39800         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39801         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39802         * modules/close-hook: New file.
39803         * modules/close (Files): Remove lib/w32sock.h.
39804         (Depends-on): Add close-hook.
39805         (Link): Remove section.
39806         * modules/sockets (Files): Add lib/w32sock.h.
39807         (Depends-on): Add close-hook.
39808         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39809         invocation.
39810         * NEWS: Mention that LIB_CLOSE is gone.
39811
39812 2009-03-23  Eric Blake  <ebb9@byu.net>
39813
39814         signal-tests: test previous patch
39815         * tests/test-signal.c: New file.
39816         * modules/signal-tests: Likewise.
39817
39818         signal.h: always support 'volatile sig_atomic_t'
39819         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39820         (gl_SIGNAL_H_DEFAULTS): Add a default.
39821         * modules/signal (Makefile.am): Substitute if needed.
39822         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39823         users can blindly add volatile.
39824         * doc/posix-headers/signal.texi (signal.h): Document it.
39825         Reported by Matthew Woehlke.
39826
39827 2009-03-23  Jim Meyering  <meyering@redhat.com>
39828
39829         pathmax: PATH_MAX: use pathconf only when available
39830         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39831         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39832         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39833         This avoids a link failure in a PSP cross-compilation environment
39834         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39835
39836         * lib/vasnprintf.c (divide): Fix typo in comment.
39837
39838 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39839
39840         * gnulib-tool (func_filter_filelist): Fix comment.
39841
39842 2009-03-20  Bruno Haible  <bruno@clisp.org>
39843
39844         Make sockets.h self-contained.
39845         * lib/sockets.c: Include sockets.h first.
39846         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39847
39848 2009-03-19  Eric Blake  <ebb9@byu.net>
39849
39850         doc: mention more functions added in cygwin 1.7.0
39851         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39852         addition.
39853         * doc/posix-functions/log2f.texi: Likewise.
39854
39855 2009-03-19  Jim Meyering  <meyering@redhat.com>
39856
39857         fsusage: avoid syntax error due to statement-before-declaration
39858         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39859         after all declarations.  Reported by Matthew Woehlke in
39860         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39861
39862 2009-03-18  Eric Blake  <ebb9@byu.net>
39863
39864         build-aux/compile: sync from automake
39865         * build-aux/compile: New file, from automake.
39866         * config/srclist.txt: Mention build-aux/compile.
39867
39868 2009-03-17  Bruno Haible  <bruno@clisp.org>
39869
39870         * lib/git-merge-changelog.c: Fix typo in comment.
39871         Reported by Reuben Thomas <rrt@sc3d.org>.
39872
39873 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39874
39875         * m4/regex.m4: update and improve help for
39876         --without-included-regex.
39877
39878 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39879
39880         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39881         failure on missing include files.
39882
39883 2009-03-17  Eric Blake  <ebb9@byu.net>
39884
39885         doc: mention more functions added in cygwin 1.7.0
39886         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39887         addition.
39888         * doc/posix-functions/fwscanf.texi: Likewise.
39889         * doc/posix-functions/swprintf.texi: Likewise.
39890         * doc/posix-functions/swscanf.texi: Likewise.
39891         * doc/posix-functions/vfwprintf.texi: Likewise.
39892         * doc/posix-functions/vfwscanf.texi: Likewise.
39893         * doc/posix-functions/vswprintf.texi: Likewise.
39894         * doc/posix-functions/vswscanf.texi: Likewise.
39895         * doc/posix-functions/vwprintf.texi: Likewise.
39896         * doc/posix-functions/vwscanf.texi: Likewise.
39897         * doc/posix-functions/wcscasecmp.texi: Likewise.
39898         * doc/posix-functions/wcsdup.texi: Likewise.
39899         * doc/posix-functions/wcsftime.texi: Likewise.
39900         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39901         * doc/posix-functions/wprintf.texi: Likewise.
39902         * doc/posix-functions/wscanf.texi: Likewise.
39903         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39904
39905 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39906
39907         maint.mk: really add $(AM_MAKEFLAGS)
39908         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39909         was inadvertently omitted in the last commit.
39910         Spotted by Bruno Haible.
39911
39912         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39913         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39914         $(AM_MAKEFLAGS)' rather than plain `make'.
39915
39916         gnulib-tool: execute $MAKE not make
39917         * gnulib-tool: Default $MAKE to 'make'.
39918         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39919         than make.  Initialize $MAKE in the do-autobuild script.
39920
39921         gnulib-tool: use $MAKE not make in generated files
39922         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39923         make, in generated files.  Initialize $MAKE in the do-autobuild
39924         script.
39925
39926         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39927
39928         GNUmakefile: disable parallelism only for multiple, recursive targets
39929         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39930         additions in the Makefile.
39931         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39932         by Automake.
39933         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39934         are listed on the command line and at least one of them is
39935         listed in $(ALL_RECURSIVE_TARGETS).
39936
39937 2009-03-14  Bruno Haible  <bruno@clisp.org>
39938
39939         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39940         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39941         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39942         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39943         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39944         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39945         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39946         unistr/u8-uctomb.
39947         * modules/unistr/u8-strchr (Depends-on): Likewise.
39948         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39949         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39950         unistr/u16-uctomb.
39951         * modules/unistr/u16-strchr (Depends-on): Likewise.
39952         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39953
39954 2009-03-12  Bruno Haible  <bruno@clisp.org>
39955
39956         Work around select() bug on Interix 3.5.
39957         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39958         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39959         * m4/select.m4: New file.
39960         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39961         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39962         * modules/select (Files): Add m4/select.m4.
39963         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39964         * modules/nanosleep (Depends-on): Add select.
39965         * modules/poll (Depends-on): Likewise.
39966         * doc/posix-functions/select.texi: Mention the Interix bug.
39967         Reported by Markus Duft <mduft@gentoo.org>.
39968
39969         * lib/select.c: Renamed from lib/winsock-select.c.
39970         * modules/select (Files): Add lib/select.c, remove
39971         lib/winsock-select.c.
39972         (configure.ac): Update.
39973
39974 2009-03-12  Jim Meyering  <meyering@redhat.com>
39975
39976         avoid gcc warnings about unused macro definitions
39977         * lib/readtokens.c (STREQ): Remove unused definition.
39978         * lib/xmalloc.c (SIZE_MAX): Likewise.
39979         * lib/openat-die.c (N_): Likewise.
39980         * lib/mountlist.c (SIZE_MAX): Remove definition.
39981         Instead, include <stdint.h>.
39982         * lib/readutmp.c: Likewise.
39983         * modules/readutmp (Depends-on): Add stdint.
39984         * modules/mountlist (Depends-on): Add stdint.
39985         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39986
39987 2009-03-10  Bruno Haible  <bruno@clisp.org>
39988
39989         Tests for module 'mbmemcasecoll'.
39990         * modules/mbmemcasecoll-tests: New file.
39991         * tests/test-mbmemcasecoll1.sh: New file.
39992         * tests/test-mbmemcasecoll2.sh: New file.
39993         * tests/test-mbmemcasecoll3.sh: New file.
39994         * tests/test-mbmemcasecoll.c: New file.
39995
39996         New module 'mbmemcasecoll'.
39997         * lib/mbmemcasecoll.h: New file.
39998         * lib/mbmemcasecoll.c: New file.
39999         * modules/mbmemcasecoll: New file.
40000
40001         * tests/test-mbmemcasecmp.h: New file, extracted from
40002         tests/test-mbmemcasecmp.c.
40003         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40004         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40005         (main): Update.
40006         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40007
40008 2009-03-09  Bruno Haible  <bruno@clisp.org>
40009
40010         Tests for module 'mbmemcasecmp'.
40011         * modules/mbmemcasecmp-tests: New file.
40012         * tests/test-mbmemcasecmp1.sh: New file.
40013         * tests/test-mbmemcasecmp2.sh: New file.
40014         * tests/test-mbmemcasecmp3.sh: New file.
40015         * tests/test-mbmemcasecmp.c: New file.
40016
40017         New module 'mbmemcasecmp'.
40018         * lib/mbmemcasecmp.h: New file.
40019         * lib/mbmemcasecmp.c: New file.
40020         * modules/mbmemcasecmp: New file.
40021
40022 2009-03-09  Bruno Haible  <bruno@clisp.org>
40023
40024         Tests for module 'unicase/ulc-casecoll'.
40025         * modules/unicase/ulc-casecoll-tests: New file.
40026         * tests/unicase/test-ulc-casecoll1.sh: New file.
40027         * tests/unicase/test-ulc-casecoll2.sh: New file.
40028         * tests/unicase/test-ulc-casecoll.c: New file.
40029
40030         New module 'unicase/ulc-casecoll'.
40031         * lib/unicase.h (ulc_casecoll): New declaration.
40032         * lib/unicase/ulc-casecoll.c: New file.
40033         * modules/unicase/ulc-casecoll: New file.
40034
40035         New module 'unicase/ulc-casexfrm'.
40036         * lib/unicase.h (ulc_casexfrm): New declaration.
40037         * lib/unicase/ulc-casexfrm.c: New file.
40038         * modules/unicase/ulc-casexfrm: New file.
40039
40040 2009-03-09  Bruno Haible  <bruno@clisp.org>
40041
40042         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40043         invocations.
40044
40045         * m4/mbscasecmp.m4: Remove file.
40046         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40047         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40048
40049         * m4/mbscasestr.m4: Remove file.
40050         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40051         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40052
40053         * m4/mbschr.m4: Remove file.
40054         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40055         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40056
40057         * m4/mbscspn.m4: Remove file.
40058         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40059         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40060
40061         * m4/mbslen.m4: Remove file.
40062         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40063         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40064
40065         * m4/mbsncasecmp.m4: Remove file.
40066         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40067         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40068
40069         * m4/mbsnlen.m4: Remove file.
40070         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40071         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40072
40073         * m4/mbspbrk.m4: Remove file.
40074         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40075         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40076
40077         * m4/mbspcasecmp.m4: Remove file.
40078         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40079         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40080
40081         * m4/mbsrchr.m4: Remove file.
40082         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40083         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40084
40085         * m4/mbssep.m4: Remove file.
40086         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40087         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40088
40089         * m4/mbsspn.m4: Remove file.
40090         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40091         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40092
40093         * m4/mbsstr.m4: Remove file.
40094         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40095         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40096
40097         * m4/mbstok_r.m4: Remove file.
40098         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40099         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40100
40101         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40102
40103         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40104         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40105
40106         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40107
40108 2009-03-08  Bruno Haible  <bruno@clisp.org>
40109
40110         Tests for module 'unicase/ulc-casecmp'.
40111         * modules/unicase/ulc-casecmp-tests: New file.
40112         * tests/unicase/test-ulc-casecmp1.sh: New file.
40113         * tests/unicase/test-ulc-casecmp2.sh: New file.
40114         * tests/unicase/test-ulc-casecmp.c: New file.
40115
40116         New module 'unicase/ulc-casecmp'.
40117         * lib/unicase.h (ulc_casecmp): New declaration.
40118         * lib/unicase/ulc-casecmp.c: New file.
40119         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40120         'const SRC_UNIT *'.
40121         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40122         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40123         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40124         * modules/unicase/ulc-casecmp: New file.
40125
40126         Tests for module 'unicase/u32-is-cased'.
40127         * modules/unicase/u32-is-cased-tests: New file.
40128         * tests/unicase/test-u32-is-cased.c: New file.
40129
40130         Tests for module 'unicase/u16-is-cased'.
40131         * modules/unicase/u16-is-cased-tests: New file.
40132         * tests/unicase/test-u16-is-cased.c: New file.
40133
40134         Tests for module 'unicase/u8-is-cased'.
40135         * modules/unicase/u8-is-cased-tests: New file.
40136         * tests/unicase/test-u8-is-cased.c: New file.
40137         * tests/unicase/test-is-cased.h: New file.
40138
40139         New module 'unicase/u32-is-cased'.
40140         * lib/unicase/u32-is-cased.c: New file.
40141         * modules/unicase/u32-is-cased: New file.
40142
40143         New module 'unicase/u16-is-cased'.
40144         * lib/unicase/u16-is-cased.c: New file.
40145         * modules/unicase/u16-is-cased: New file.
40146
40147         New module 'unicase/u8-is-cased'.
40148         * lib/unicase/u8-is-cased.c: New file.
40149         * lib/unicase/u-is-cased.h: New file.
40150         * modules/unicase/u8-is-cased: New file.
40151
40152         Tests for module 'unicase/u32-is-casefolded'.
40153         * modules/unicase/u32-is-casefolded-tests: New file.
40154         * tests/unicase/test-u32-is-casefolded.c: New file.
40155
40156         Tests for module 'unicase/u16-is-casefolded'.
40157         * modules/unicase/u16-is-casefolded-tests: New file.
40158         * tests/unicase/test-u16-is-casefolded.c: New file.
40159
40160         Tests for module 'unicase/u8-is-casefolded'.
40161         * modules/unicase/u8-is-casefolded-tests: New file.
40162         * tests/unicase/test-u8-is-casefolded.c: New file.
40163         * tests/unicase/test-is-casefolded.h: New file.
40164
40165         New module 'unicase/u32-is-casefolded'.
40166         * lib/unicase/u32-is-casefolded.c: New file.
40167         * modules/unicase/u32-is-casefolded: New file.
40168
40169         New module 'unicase/u16-is-casefolded'.
40170         * lib/unicase/u16-is-casefolded.c: New file.
40171         * modules/unicase/u16-is-casefolded: New file.
40172
40173         New module 'unicase/u8-is-casefolded'.
40174         * lib/unicase/u8-is-casefolded.c: New file.
40175         * modules/unicase/u8-is-casefolded: New file.
40176
40177         Tests for module 'unicase/u32-is-titlecase'.
40178         * modules/unicase/u32-is-titlecase-tests: New file.
40179         * tests/unicase/test-u32-is-titlecase.c: New file.
40180
40181         Tests for module 'unicase/u16-is-titlecase'.
40182         * modules/unicase/u16-is-titlecase-tests: New file.
40183         * tests/unicase/test-u16-is-titlecase.c: New file.
40184
40185         Tests for module 'unicase/u8-is-titlecase'.
40186         * modules/unicase/u8-is-titlecase-tests: New file.
40187         * tests/unicase/test-u8-is-titlecase.c: New file.
40188         * tests/unicase/test-is-titlecase.h: New file.
40189
40190         New module 'unicase/u32-is-titlecase'.
40191         * lib/unicase/u32-is-titlecase.c: New file.
40192         * modules/unicase/u32-is-titlecase: New file.
40193
40194         New module 'unicase/u16-is-titlecase'.
40195         * lib/unicase/u16-is-titlecase.c: New file.
40196         * modules/unicase/u16-is-titlecase: New file.
40197
40198         New module 'unicase/u8-is-titlecase'.
40199         * lib/unicase/u8-is-titlecase.c: New file.
40200         * modules/unicase/u8-is-titlecase: New file.
40201
40202         Tests for module 'unicase/u32-is-lowercase'.
40203         * modules/unicase/u32-is-lowercase-tests: New file.
40204         * tests/unicase/test-u32-is-lowercase.c: New file.
40205
40206         Tests for module 'unicase/u16-is-lowercase'.
40207         * modules/unicase/u16-is-lowercase-tests: New file.
40208         * tests/unicase/test-u16-is-lowercase.c: New file.
40209
40210         Tests for module 'unicase/u8-is-lowercase'.
40211         * modules/unicase/u8-is-lowercase-tests: New file.
40212         * tests/unicase/test-u8-is-lowercase.c: New file.
40213         * tests/unicase/test-is-lowercase.h: New file.
40214
40215         New module 'unicase/u32-is-lowercase'.
40216         * lib/unicase/u32-is-lowercase.c: New file.
40217         * modules/unicase/u32-is-lowercase: New file.
40218
40219         New module 'unicase/u16-is-lowercase'.
40220         * lib/unicase/u16-is-lowercase.c: New file.
40221         * modules/unicase/u16-is-lowercase: New file.
40222
40223         New module 'unicase/u8-is-lowercase'.
40224         * lib/unicase/u8-is-lowercase.c: New file.
40225         * modules/unicase/u8-is-lowercase: New file.
40226
40227         Tests for module 'unicase/u32-is-uppercase'.
40228         * modules/unicase/u32-is-uppercase-tests: New file.
40229         * tests/unicase/test-u32-is-uppercase.c: New file.
40230
40231         Tests for module 'unicase/u16-is-uppercase'.
40232         * modules/unicase/u16-is-uppercase-tests: New file.
40233         * tests/unicase/test-u16-is-uppercase.c: New file.
40234
40235         Tests for module 'unicase/u8-is-uppercase'.
40236         * modules/unicase/u8-is-uppercase-tests: New file.
40237         * tests/unicase/test-u8-is-uppercase.c: New file.
40238         * tests/unicase/test-is-uppercase.h: New file.
40239
40240         New module 'unicase/u32-is-uppercase'.
40241         * lib/unicase/u32-is-uppercase.c: New file.
40242         * modules/unicase/u32-is-uppercase: New file.
40243
40244         New module 'unicase/u16-is-uppercase'.
40245         * lib/unicase/u16-is-uppercase.c: New file.
40246         * modules/unicase/u16-is-uppercase: New file.
40247
40248         New module 'unicase/u8-is-uppercase'.
40249         * lib/unicase/u8-is-uppercase.c: New file.
40250         * modules/unicase/u8-is-uppercase: New file.
40251
40252         New module 'unicase/u32-is-invariant'.
40253         * lib/unicase/u32-is-invariant.c: New file.
40254         * modules/unicase/u32-is-invariant: New file.
40255
40256         New module 'unicase/u16-is-invariant'.
40257         * lib/unicase/u16-is-invariant.c: New file.
40258         * modules/unicase/u16-is-invariant: New file.
40259
40260         New module 'unicase/u8-is-invariant'.
40261         * lib/unicase/u8-is-invariant.c: New file.
40262         * lib/unicase/invariant.h: New file.
40263         * lib/unicase/u-is-invariant.h: New file.
40264         * modules/unicase/u8-is-invariant: New file.
40265
40266         Tests for module 'unicase/u32-casecoll'.
40267         * modules/unicase/u32-casecoll-tests: New file.
40268         * tests/unicase/test-u32-casecoll.c: New file.
40269
40270         Tests for module 'unicase/u16-casecoll'.
40271         * modules/unicase/u16-casecoll-tests: New file.
40272         * tests/unicase/test-u16-casecoll.c: New file.
40273
40274         Tests for module 'unicase/u8-casecoll'.
40275         * modules/unicase/u8-casecoll-tests: New file.
40276         * tests/unicase/test-u8-casecoll.c: New file.
40277
40278         New module 'unicase/u32-casecoll'.
40279         * lib/unicase/u32-casecoll.c: New file.
40280         * modules/unicase/u32-casecoll: New file.
40281
40282         New module 'unicase/u16-casecoll'.
40283         * lib/unicase/u16-casecoll.c: New file.
40284         * modules/unicase/u16-casecoll: New file.
40285
40286         New module 'unicase/u8-casecoll'.
40287         * lib/unicase/u8-casecoll.c: New file.
40288         * lib/unicase/u-casecoll.h: New file.
40289         * modules/unicase/u8-casecoll: New file.
40290
40291         New module 'unicase/u32-casexfrm'.
40292         * lib/unicase/u32-casexfrm.c: New file.
40293         * modules/unicase/u32-casexfrm: New file.
40294
40295         New module 'unicase/u16-casexfrm'.
40296         * lib/unicase/u16-casexfrm.c: New file.
40297         * modules/unicase/u16-casexfrm: New file.
40298
40299         New module 'unicase/u8-casexfrm'.
40300         * lib/unicase/u8-casexfrm.c: New file.
40301         * lib/unicase/u-casexfrm.h: New file.
40302         * modules/unicase/u8-casexfrm: New file.
40303
40304         Tests for module 'unicase/u32-casecmp'.
40305         * modules/unicase/u32-casecmp-tests: New file.
40306         * tests/unicase/test-u32-casecmp.c: New file.
40307
40308         Tests for module 'unicase/u16-casecmp'.
40309         * modules/unicase/u16-casecmp-tests: New file.
40310         * tests/unicase/test-u16-casecmp.c: New file.
40311
40312         Tests for module 'unicase/u8-casecmp'.
40313         * modules/unicase/u8-casecmp-tests: New file.
40314         * tests/unicase/test-u8-casecmp.c: New file.
40315         * tests/unicase/test-casecmp.h: New file.
40316
40317         New module 'unicase/u32-casecmp'.
40318         * lib/unicase/u32-casecmp.c: New file.
40319         * modules/unicase/u32-casecmp: New file.
40320
40321         New module 'unicase/u16-casecmp'.
40322         * lib/unicase/u16-casecmp.c: New file.
40323         * modules/unicase/u16-casecmp: New file.
40324
40325         New module 'unicase/u8-casecmp'.
40326         * lib/unicase/u8-casecmp.c: New file.
40327         * lib/unicase/u-casecmp.h: New file.
40328         * modules/unicase/u8-casecmp: New file.
40329
40330         Tests for module 'unicase/u32-casefold'.
40331         * modules/unicase/u32-casefold-tests: New file.
40332         * tests/unicase/test-u32-casefold.c: New file.
40333
40334         Tests for module 'unicase/u16-casefold'.
40335         * modules/unicase/u16-casefold-tests: New file.
40336         * tests/unicase/test-u16-casefold.c: New file.
40337
40338         Tests for module 'unicase/u8-casefold'.
40339         * modules/unicase/u8-casefold-tests: New file.
40340         * tests/unicase/test-u8-casefold.c: New file.
40341
40342         New module 'unicase/u32-casefold'.
40343         * lib/unicase/u32-casefold.c: New file.
40344         * modules/unicase/u32-casefold: New file.
40345
40346         New module 'unicase/u16-casefold'.
40347         * lib/unicase/u16-casefold.c: New file.
40348         * modules/unicase/u16-casefold: New file.
40349
40350         New module 'unicase/u8-casefold'.
40351         * lib/unicase/u8-casefold.c: New file.
40352         * lib/unicase/u-casefold.h: New file.
40353         * modules/unicase/u8-casefold: New file.
40354
40355         New module 'unicase/tocasefold'.
40356         * lib/unicase/casefold.h: New file.
40357         * lib/unicase/tocasefold.c: New file.
40358         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40359         * modules/unicase/tocasefold: New file.
40360
40361         Tests for module 'unicase/u32-totitle'.
40362         * modules/unicase/u32-totitle-tests: New file.
40363         * tests/unicase/test-u32-totitle.c: New file.
40364
40365         Tests for module 'unicase/u16-totitle'.
40366         * modules/unicase/u16-totitle-tests: New file.
40367         * tests/unicase/test-u16-totitle.c: New file.
40368
40369         Tests for module 'unicase/u8-totitle'.
40370         * modules/unicase/u8-totitle-tests: New file.
40371         * tests/unicase/test-u8-totitle.c: New file.
40372
40373         New module 'unicase/u32-totitle'.
40374         * lib/unicase/u32-totitle.c: New file.
40375         * modules/unicase/u32-totitle: New file.
40376
40377         New module 'unicase/u16-totitle'.
40378         * lib/unicase/u16-totitle.c: New file.
40379         * modules/unicase/u16-totitle: New file.
40380
40381         New module 'unicase/u8-totitle'.
40382         * lib/unicase/u8-totitle.c: New file.
40383         * lib/unicase/u-totitle.h: New file.
40384         * modules/unicase/u8-totitle: New file.
40385
40386         Tests for module 'unicase/u32-tolower'.
40387         * modules/unicase/u32-tolower-tests: New file.
40388         * tests/unicase/test-u32-tolower.c: New file.
40389
40390         Tests for module 'unicase/u16-tolower'.
40391         * modules/unicase/u16-tolower-tests: New file.
40392         * tests/unicase/test-u16-tolower.c: New file.
40393
40394         Tests for module 'unicase/u8-tolower'.
40395         * modules/unicase/u8-tolower-tests: New file.
40396         * tests/unicase/test-u8-tolower.c: New file.
40397
40398         New module 'unicase/u32-tolower'.
40399         * lib/unicase/u32-tolower.c: New file.
40400         * modules/unicase/u32-tolower: New file.
40401
40402         New module 'unicase/u16-tolower'.
40403         * lib/unicase/u16-tolower.c: New file.
40404         * modules/unicase/u16-tolower: New file.
40405
40406         New module 'unicase/u8-tolower'.
40407         * lib/unicase/u8-tolower.c: New file.
40408         * modules/unicase/u8-tolower: New file.
40409
40410         Tests for module 'unicase/u32-toupper'.
40411         * modules/unicase/u32-toupper-tests: New file.
40412         * tests/unicase/test-u32-toupper.c: New file.
40413
40414         Tests for module 'unicase/u16-toupper'.
40415         * modules/unicase/u16-toupper-tests: New file.
40416         * tests/unicase/test-u16-toupper.c: New file.
40417
40418         Tests for module 'unicase/u8-toupper'.
40419         * modules/unicase/u8-toupper-tests: New file.
40420         * tests/unicase/test-u8-toupper.c: New file.
40421
40422         New module 'unicase/u32-toupper'.
40423         * lib/unicase/u32-toupper.c: New file.
40424         * modules/unicase/u32-toupper: New file.
40425
40426         New module 'unicase/u16-toupper'.
40427         * lib/unicase/u16-toupper.c: New file.
40428         * modules/unicase/u16-toupper: New file.
40429
40430         New module 'unicase/u8-toupper'.
40431         * lib/unicase/u8-toupper.c: New file.
40432         * modules/unicase/u8-toupper: New file.
40433
40434         New module 'unicase/u32-casemap'.
40435         * lib/unicase/u32-casemap.c: New file.
40436         * modules/unicase/u32-casemap: New file.
40437
40438         New module 'unicase/u16-casemap'.
40439         * lib/unicase/u16-casemap.c: New file.
40440         * modules/unicase/u16-casemap: New file.
40441
40442         New module 'unicase/u8-casemap'.
40443         * lib/unicase/unicasemap.h: New file.
40444         * lib/unicase/u8-casemap.c: New file.
40445         * lib/unicase/u-casemap.h: New file.
40446         * modules/unicase/u8-casemap: New file.
40447
40448         New module 'unicase/special-casing'.
40449         * lib/unicase/special-casing.h: New file.
40450         * lib/unicase/special-casing.c: New file.
40451         * lib/unicase/special-casing-table.gperf: New file, generated by
40452         gen-uni-tables.c.
40453         * modules/unicase/special-casing: New file.
40454
40455         Tests for module 'unicase/locale-language'.
40456         * modules/unicase/locale-language-tests: New file.
40457         * tests/unicase/test-locale-language.sh: New file.
40458         * tests/unicase/test-locale-language.c: New file.
40459
40460         New module 'unicase/locale-language'.
40461         * lib/unicase/locale-language.c: New file.
40462         * lib/unicase/locale-languages.gperf: New file.
40463         * modules/unicase/locale-language: New file.
40464
40465         Generate more tables for case conversion and case folding.
40466         * lib/gen-uni-tables.c (SCC_*): New enum items.
40467         (struct special_casing_rule): New type.
40468         (casing_rules, num_casing_rules, allocated_casing_rules): New
40469         variables.
40470         (add_casing_rule, fill_casing_rules): New functions.
40471         (struct casefold_rule): New type.
40472         (casefolding_rules, num_casefolding_rules,
40473         allocated_casefolding_rules): New variables.
40474         (fill_casefolding_rules): New function.
40475         (unicode_casefold): New variable.
40476         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40477         sort_casing_rules, output_casing_rules): New functions.
40478         (main): Accept to more arguments: SpecialCasing.txt and
40479         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40480         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40481         Output mapping for casefolding.
40482
40483         * lib/unicase.h: Include stdbool.h, uninorm.h.
40484         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40485         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40486         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40487         arguments.
40488         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40489         resultp arguments.
40490         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40491         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40492         resultp arguments.
40493         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40494         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40495         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40496         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40497         declarations.
40498         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40499
40500 2009-03-08  Bruno Haible  <bruno@clisp.org>
40501
40502         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40503         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40504         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40505         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40506
40507 2009-03-07  Bruno Haible  <bruno@clisp.org>
40508
40509         Adjust u*_normcmp, u*_normcoll API.
40510         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40511         u16_normcoll, u32_normcoll): Change failure conventions.
40512         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40513         errno and return -1.
40514         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40515
40516 2009-03-07  Bruno Haible  <bruno@clisp.org>
40517
40518         Tests for module 'uninorm/u32-normcoll'.
40519         * modules/uninorm/u32-normcoll-tests: New file.
40520         * tests/uninorm/test-u32-normcoll.c: New file.
40521
40522         Tests for module 'uninorm/u16-normcoll'.
40523         * modules/uninorm/u16-normcoll-tests: New file.
40524         * tests/uninorm/test-u16-normcoll.c: New file.
40525
40526         Tests for module 'uninorm/u8-normcoll'.
40527         * modules/uninorm/u8-normcoll-tests: New file.
40528         * tests/uninorm/test-u8-normcoll.c: New file.
40529
40530 2009-03-07  Bruno Haible  <bruno@clisp.org>
40531
40532         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40533         tests/uninorm/test-u32-normcmp.c.
40534         * tests/uninorm/test-u32-normcmp.c: Include it.
40535         (test_nonascii): New function, extracted from main. Add some more
40536         tests.
40537         (main): Invoke test_ascii and test_nonascii.
40538         * modules/uninorm/u32-normcmp-tests (Files): Add
40539         tests/uninorm/test-u32-normcmp.h.
40540         (Depends-on): Remove uninorm/u32-normcmp.
40541
40542         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40543         tests/uninorm/test-u16-normcmp.c.
40544         * tests/uninorm/test-u16-normcmp.c: Include it.
40545         (test_nonascii): New function, extracted from main. Add some more
40546         tests.
40547         (main): Invoke test_ascii and test_nonascii.
40548         * modules/uninorm/u16-normcmp-tests (Files): Add
40549         tests/uninorm/test-u16-normcmp.h.
40550         (Depends-on): Remove uninorm/u16-normcmp.
40551
40552         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40553         tests/uninorm/test-u8-normcmp.c.
40554         * tests/uninorm/test-u8-normcmp.c: Include it.
40555         (test_nonascii): New function, extracted from main. Add some more
40556         tests.
40557         (main): Invoke test_ascii and test_nonascii.
40558         * modules/uninorm/u8-normcmp-tests (Files): Add
40559         tests/uninorm/test-u8-normcmp.h.
40560         (Depends-on): Remove uninorm/u8-normcmp.
40561
40562 2009-03-07  Bruno Haible  <bruno@clisp.org>
40563
40564         New module 'uninorm/u32-normcoll'.
40565         * lib/uninorm/u32-normcoll.c: New file.
40566         * modules/uninorm/u32-normcoll: New file.
40567
40568         New module 'uninorm/u16-normcoll'.
40569         * lib/uninorm/u16-normcoll.c: New file.
40570         * modules/uninorm/u16-normcoll: New file.
40571
40572         New module 'uninorm/u8-normcoll'.
40573         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40574         declarations.
40575         * lib/uninorm/u8-normcoll.c: New file.
40576         * lib/uninorm/u-normcoll.h: New file.
40577         * modules/uninorm/u8-normcoll: New file.
40578
40579         New module 'uninorm/u32-normxfrm'.
40580         * lib/uninorm/u32-normxfrm.c: New file.
40581         * modules/uninorm/u32-normxfrm: New file.
40582
40583         New module 'uninorm/u16-normxfrm'.
40584         * lib/uninorm/u16-normxfrm.c: New file.
40585         * modules/uninorm/u16-normxfrm: New file.
40586
40587         New module 'uninorm/u8-normxfrm'.
40588         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40589         declarations.
40590         * lib/uninorm/u8-normxfrm.c: New file.
40591         * lib/uninorm/u-normxfrm.h: New file.
40592         * modules/uninorm/u8-normxfrm: New file.
40593
40594 2009-03-07  Bruno Haible  <bruno@clisp.org>
40595
40596         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40597         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40598         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40599
40600 2009-03-07  Bruno Haible  <bruno@clisp.org>
40601
40602         New module 'memxfrm'.
40603         * lib/memxfrm.h: New file.
40604         * lib/memxfrm.c: New file.
40605         * modules/memxfrm: New file.
40606
40607 2009-03-07  Bruno Haible  <bruno@clisp.org>
40608
40609         New module 'memcmp2'.
40610         * lib/memcmp2.h: New file.
40611         * lib/memcmp2.c: New file.
40612         * modules/memcmp2: New file.
40613
40614 2009-03-07  Bruno Haible  <bruno@clisp.org>
40615
40616         Tests for module 'uninorm/decomposing-form'.
40617         * modules/uninorm/decomposing-form-tests: New file.
40618         * tests/uninorm/test-decomposing-form.c: New file.
40619
40620         New module 'uninorm/decomposing-form'.
40621         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40622         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40623         Add 'decomposing_variant' field.
40624         * lib/uninorm/decomposing-form.c: New file.
40625         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40626         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40627         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40628         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40629         * modules/uninorm/decomposing-form: New file.
40630         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40631         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40632
40633 2009-03-07  Bruno Haible  <bruno@clisp.org>
40634
40635         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40636         strings.
40637
40638 2009-03-06  Bruno Haible  <bruno@clisp.org>
40639
40640         Tests for module 'uninorm/u32-normcmp'.
40641         * tests/uninorm/test-u32-normcmp.c: New file.
40642         * modules/uninorm/u32-normcmp-tests: New file.
40643
40644         Tests for module 'uninorm/u16-normcmp'.
40645         * tests/uninorm/test-u16-normcmp.c: New file.
40646         * modules/uninorm/u16-normcmp-tests: New file.
40647
40648         Tests for module 'uninorm/u8-normcmp'.
40649         * tests/uninorm/test-u8-normcmp.c: New file.
40650         * modules/uninorm/u8-normcmp-tests: New file.
40651
40652         New module 'uninorm/u32-normcmp'.
40653         * lib/uninorm/u32-normcmp.c: New file.
40654         * modules/uninorm/u32-normcmp: New file.
40655
40656         New module 'uninorm/u16-normcmp'.
40657         * lib/uninorm/u16-normcmp.c: New file.
40658         * modules/uninorm/u16-normcmp: New file.
40659
40660         New module 'uninorm/u8-normcmp'.
40661         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40662         declarations.
40663         * lib/uninorm/u8-normcmp.c: New file.
40664         * lib/uninorm/u-normcmp.h: New file.
40665         * modules/uninorm/u8-normcmp: New file.
40666
40667 2009-03-06  Bruno Haible  <bruno@clisp.org>
40668
40669         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40670         Reported by Eric Blake.
40671
40672 2009-03-06  Eric Blake  <ebb9@byu.net>
40673             Bruno Haible  <bruno@clisp.org>
40674
40675         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40676         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40677         condition.
40678         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40679         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40680         condition.
40681         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40682
40683 2009-03-06  Eric Blake  <ebb9@byu.net>
40684
40685         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40686         to avoid compiler warnings.
40687         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40688
40689 2009-03-05  Bruno Haible  <bruno@clisp.org>
40690
40691         * tests/test-ftell.c (main): Disable test beyond end of file on
40692         FreeMiNT.
40693         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40694
40695 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40696
40697         * lib/filevercmp.c: Move hidden files up in ordering.
40698         * tests/test-filevercmp.c: Add tests for hidden files.
40699
40700 2009-03-04  Bruno Haible  <bruno@clisp.org>
40701
40702         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40703         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40704         AM_CFLAGS.
40705         Reported by Simon Josefsson.
40706
40707 2009-03-03  Bruno Haible  <bruno@clisp.org>
40708
40709         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40710         Reported by Simon Josefsson.
40711
40712         * doc/ld-version-script.texi: Update node reference.
40713
40714 2009-03-03  Bruno Haible  <bruno@clisp.org>
40715
40716         * modules/visibility (License): Change to 'unlimited'.
40717         Suggested by Simon Josefsson.
40718
40719 2009-03-03  Jim Meyering  <meyering@redhat.com>
40720
40721         unlinkdir: cannot_unlink_dir may modify process state
40722         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40723         it's neither thread-safe nor appropriate for use in a library.
40724
40725 2009-03-03  Eric Blake  <ebb9@byu.net>
40726
40727         test-closein: silence test under Darwin
40728         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40729         care if it dies from EPIPE or EBADF.
40730
40731 2009-03-03  Bruno Haible  <bruno@clisp.org>
40732
40733         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40734         earlier.
40735         * doc/visibility.texi: Fix @node and @section.
40736
40737 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40738
40739         * doc/gnulib.texi: Link to sections for ld version script and
40740         visibility.
40741         * doc/visibility.texi: Add @node and @section.
40742         * modules/ld-version-script: New module.
40743         * m4/ld-version-script.m4: New file.
40744         * doc/ld-version-script.texi: New file.
40745
40746 2009-03-02  David Lutterkort  <lutter@redhat.com>
40747
40748         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40749         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40750
40751 2009-03-02  Bruno Haible  <bruno@clisp.org>
40752
40753         * doc/visibility.texi: Mention libtool's -export-symbols option.
40754
40755 2009-03-02  Jim Meyering  <meyering@redhat.com>
40756
40757         announce-gen: new option: --no-print-checksums
40758         * build-aux/announce-gen (usage): Describe it.
40759         (print_checksums): Print a newline here, not in the [*] footnote.
40760         (main): Honor it.
40761
40762 2009-03-01  Bruno Haible  <bruno@clisp.org>
40763
40764         Use socklen_t in the native Windows replacements prototypes.
40765         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40766         instead of 'int'.
40767         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40768         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40769         * modules/getsockopt (Depends-on): Add socklen.
40770         * modules/setsockopt (Depends-on): Add socklen.
40771
40772 2009-03-01  Bruno Haible  <bruno@clisp.org>
40773
40774         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40775         least 4.2.
40776
40777 2009-03-01  Eric Blake  <ebb9@byu.net>
40778             Bruno Haible  <bruno@clisp.org>
40779
40780         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40781         error messages.
40782         * lib/wait-process.c (wait_subprocess): Omit error message about
40783         deadly signal sent to the child of termsigp != NULL.
40784
40785 2009-03-01  Eric Blake  <ebb9@byu.net>
40786
40787         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40788
40789 2009-03-01  Bruno Haible  <bruno@clisp.org>
40790
40791         Avoid a gcc warning.
40792         * tests/test-sched.c (b): Make global.
40793         Reported by Eric Blake.
40794
40795 2009-01-19  Martin Lambers  <marlam@marlam.de>
40796
40797         Provide POSIX semantics for socket timeout options on W32.
40798         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40799         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40800         * modules/setsockopt: Depend on sys_time module for struct timeval.
40801         * modules/getsockopt: Depend on sys_time module for struct timeval.
40802
40803 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40804
40805         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40806         __USE_GNU, for consistency with netdb.in.h.
40807         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40808
40809 2009-03-01  Bruno Haible  <bruno@clisp.org>
40810
40811         More support for FreeMiNT.
40812         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40813         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40814
40815 2009-03-01  Bruno Haible  <bruno@clisp.org>
40816
40817         More support for FreeMiNT.
40818         * lib/fpurge.c (fpurge): Correct last commit.
40819         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40820
40821 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40822
40823         Fix unportable awk script in vc-list-files.
40824         * build-aux/vc-list-files: In the replacement awk script, use
40825         substr with a second argument of 1, not zero.
40826         Report by Simon Josefsson.
40827
40828 2009-02-28  Bruno Haible  <bruno@clisp.org>
40829
40830         More support for FreeMiNT.
40831         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40832         to FreeMiNT today.
40833         * lib/fwriting.c (fwriting): Likewise.
40834         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40835
40836 2009-02-28  Bruno Haible  <bruno@clisp.org>
40837
40838         * tests/test-freadseek.c (main): Disable test beyond end of file on
40839         FreeMiNT.
40840         * tests/test-ftello.c (main): Likewise.
40841         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40842
40843 2009-02-28  Bruno Haible  <bruno@clisp.org>
40844
40845         Add tentative support for FreeMiNT.
40846         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40847         * lib/fpurge.c (fpurge): Likewise.
40848         * lib/freadable.c (freadable): Likewise.
40849         * lib/freading.c (freading): Likewise.
40850         * lib/freadptr.c (freadptr): Likewise.
40851         * lib/freadseek.c (freadptrinc): Likewise.
40852         * lib/fseeko.c (rpl_fseeko): Likewise.
40853         * lib/fseterr.c (fseterr): Likewise.
40854         * lib/fwritable.c (fwritable): Likewise.
40855         * lib/fwriting.c (fwriting): Likewise.
40856         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40857         Hourihane.
40858         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40859
40860 2009-02-28  Bruno Haible  <bruno@clisp.org>
40861
40862         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40863         SIGCHLD.
40864         Reported by Jim Meyering.
40865
40866 2009-02-28  Bruno Haible  <bruno@clisp.org>
40867
40868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40869         Mention the results of these tests on various platforms.
40870         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40871         order.
40872         * doc/posix-functions/printf.texi: Likewise.
40873         * doc/posix-functions/snprintf.texi: Likewise.
40874         * doc/posix-functions/sprintf.texi: Likewise.
40875         * doc/posix-functions/vfprintf.texi: Likewise.
40876         * doc/posix-functions/vprintf.texi: Likewise.
40877         * doc/posix-functions/vsnprintf.texi: Likewise.
40878         * doc/posix-functions/vsprintf.texi: Likewise.
40879         * doc/glibc-functions/obstack_printf.texi: Likewise.
40880         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40881
40882 2009-02-28  Bruno Haible  <bruno@clisp.org>
40883
40884         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40885         Reported by Loïc Minier <lool@dooz.org>.
40886
40887 2009-02-27  Bruno Haible  <bruno@clisp.org>
40888
40889         * gnulib-tool (func_import): Make the sed expression used to create the
40890         sed script for updating the .gitignore file POSIX compliant.
40891         Reported by Eric Blake.
40892
40893 2009-02-27  Bruno Haible  <bruno@clisp.org>
40894
40895         * gnulib-tool (sed): Don't alias as "sed --posix".
40896         Reported by Eric Blake.
40897
40898 2009-02-27  Bruno Haible  <bruno@clisp.org>
40899
40900         Avoid test link errors.
40901         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40902         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40903         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40904         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40905         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40906
40907 2009-02-27  Bruno Haible  <bruno@clisp.org>
40908
40909         Avoid spurious "(cached)" in configure output.
40910         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40911         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40912         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40913         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40914         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40915         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40916         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40917         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40918         Reported by Eric Blake.
40919
40920 2009-02-27  Eric Blake  <ebb9@byu.net>
40921
40922         printf: fix regression in previous patch
40923         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40924
40925 2009-02-27  Bruno Haible  <bruno@clisp.org>
40926
40927         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40928         value.
40929         * lib/stdint.in.h: Likewise.
40930         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40931
40932 2009-02-27  Eric Blake  <ebb9@byu.net>
40933
40934         doc: mention more functions added in cygwin 1.7.0
40935         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40936         addition.
40937         * doc/posix-functions/open_wmemstream.texi: Likewise.
40938         * doc/posix-functions/wcsnlen.texi: Likewise.
40939         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40940         * doc/posix-functions/wcstod.texi: Likewise.
40941         * doc/posix-functions/wcstof.texi: Likewise.
40942         * doc/posix-functions/wcstoimax.texi: Likewise.
40943         * doc/posix-functions/wcstok.texi: Likewise.
40944         * doc/posix-functions/wcstoumax.texi: Likewise.
40945
40946         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40947         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40948         * doc/posix-functions/fprintf.texi: Update.
40949         * doc/posix-functions/printf.texi: Update.
40950         * doc/posix-functions/snprintf.texi: Update.
40951         * doc/posix-functions/sprintf.texi: Update.
40952         * doc/posix-functions/vfprintf.texi: Update.
40953         * doc/posix-functions/vprintf.texi: Update.
40954         * doc/posix-functions/vsnprintf.texi: Update.
40955         * doc/posix-functions/vsprintf.texi: Update.
40956         * doc/glibc-functions/obstack_printf.texi: Update.
40957         * doc/glibc-functions/obstack_vprintf.texi: Update.
40958
40959 2009-02-26  Eric Blake  <ebb9@byu.net>
40960
40961         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40962         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40963         compilation bug by using runtime conversion.
40964         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40965         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40966         * modules/ceill-tests (Files): Use nan.h.
40967         * modules/floorl-tests (Files): Likewise.
40968         * modules/frexpl-tests (Files): Likewise.
40969         * modules/isnanl-tests (Files): Likewise.
40970         * modules/ldexpl-tests (Files): Likewise.
40971         * modules/roundl-tests (Files): Likewise.
40972         * modules/truncl-tests (Files): Likewise.
40973         * tests/test-ceill.c (main): Use a working NaN.
40974         * tests/test-floorl.c (main): Likewise.
40975         * tests/test-frexpl.c (main): Likewise.
40976         * tests/test-isnan.c (test_long_double): Likewise.
40977         * tests/test-isnanl.h (main): Likewise.
40978         * tests/test-ldexpl.h (main): Likewise.
40979         * tests/test-roundl.h (main): Likewise.
40980         * tests/test-truncl.h (main): Likewise.
40981         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40982
40983 2009-02-26  Eric Blake  <ebb9@byu.net>
40984             Bruno Haible  <bruno@clisp.org>
40985
40986         Work around a *printf bug with %ls on Solaris.
40987         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
40988         precision is specified, sprintf stops converting the wide string
40989         argument when the number of bytes that have been produced by this
40990         conversion equals or exceeds the precision.
40991         * doc/posix-functions/fprintf.texi: Update.
40992         * doc/posix-functions/printf.texi: Update.
40993         * doc/posix-functions/snprintf.texi: Update.
40994         * doc/posix-functions/sprintf.texi: Update.
40995         * doc/posix-functions/vfprintf.texi: Update.
40996         * doc/posix-functions/vprintf.texi: Update.
40997         * doc/posix-functions/vsnprintf.texi: Update.
40998         * doc/posix-functions/vsprintf.texi: Update.
40999         * doc/glibc-functions/obstack_printf.texi: Update.
41000         * doc/glibc-functions/obstack_vprintf.texi: Update.
41001
41002 2009-02-26  Eric Blake  <ebb9@byu.net>
41003
41004         stdlib: favor compiler check of random.h
41005         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41006         to avoid an ObjC random.h installed by Swarm.
41007
41008 2009-02-26  Bruno Haible  <bruno@clisp.org>
41009
41010         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41011         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41012         Reported by Gary V. Vaughan <gary@gnu.org>.
41013
41014 2009-02-26  Bruno Haible  <bruno@clisp.org>
41015
41016         Fix *printf behaviour regarding the %ls directive.
41017         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41018         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41019         NEED_PRINTF_DIRECTIVE_LS.
41020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41021         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41022         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41023         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41024         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41025         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41026         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41028         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41029         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41030         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41031         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41032         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41033         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41034         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41035         * doc/posix-functions/fprintf.texi: Update.
41036         * doc/posix-functions/printf.texi: Update.
41037         * doc/posix-functions/snprintf.texi: Update.
41038         * doc/posix-functions/sprintf.texi: Update.
41039         * doc/posix-functions/vfprintf.texi: Update.
41040         * doc/posix-functions/vprintf.texi: Update.
41041         * doc/posix-functions/vsnprintf.texi: Update.
41042         * doc/posix-functions/vsprintf.texi: Update.
41043         * doc/glibc-functions/obstack_printf.texi: Update.
41044         * doc/glibc-functions/obstack_vprintf.texi: Update.
41045         Reported by Eric Blake.
41046
41047 2009-02-25  Bruno Haible  <bruno@clisp.org>
41048
41049         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41050         with known value.
41051         Reported by Gary V. Vaughan <gary@gnu.org>.
41052
41053 2009-02-25  Bruno Haible  <bruno@clisp.org>
41054
41055         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41056         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41057         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41058         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41059         Reported by Gary V. Vaughan <gary@gnu.org>.
41060
41061 2009-02-25  Bruno Haible  <bruno@clisp.org>
41062
41063         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41064         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41065         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41066         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41067         Reported by Gary V. Vaughan <gary@gnu.org>.
41068
41069 2009-02-25  Eric Blake  <ebb9@byu.net>
41070
41071         tests: skip fseek/ftell tests if ungetc is broken
41072         * m4/ungetc.m4: New file.
41073         * modules/fseek-tests: Split test, so ungetc dependency is
41074         separate from rest of test.
41075         * modules/fseeko-tests: Likewise.
41076         * modules/ftell-tests: Likewise.
41077         * modules/ftello-tests: Likewise.
41078         * tests/test-fseek.c (main): Isolate ungetc dependency.
41079         * tests/test-fseeko.c (main): Likewise.
41080         * tests/test-ftell.c (main): Likewise.
41081         * tests/test-ftello.c (main): Likewise.
41082         * tests/test-fseek2.sh: New file.
41083         * tests/test-fseeko2.sh: Likewise.
41084         * tests/test-ftell2.sh: Likewise.
41085         * tests/test-ftello2.sh: Likewise.
41086
41087 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
41088
41089         test-getaddrinfo: fix usage of skip return code 77
41090         * tests/test-gettaddrinfo.c: Return skip code 77 only
41091         for first occurance of skip (4x77 is not 77)
41092
41093 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41094
41095         strtod: avoid C99 decl-after-statement
41096         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41097
41098 2009-02-24  Eric Blake  <ebb9@byu.net>
41099
41100         strtod: detect HP-UX 11.31 bug
41101         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41102         Reported by Gary V. Vaughan.
41103
41104 2009-02-23  Bruno Haible  <bruno@clisp.org>
41105
41106         Fix invalid read past end of memory block.
41107         * lib/vasnprintf.c (DCHAR_SET): Define.
41108         (local_wcslen): Define only when needed.
41109         (local_strnlen, local_wcsnlen): New functions.
41110         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41111         directives that involve a conversion ourselves.
41112         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41113         wcsnlen, mbrtowc, wcrtomb.
41114         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41115         * tests/test-vasprintf-posix.c (test_function): Likewise.
41116         * tests/test-snprintf-posix.h (test_function): Likewise.
41117         * tests/test-sprintf-posix.h (test_function): Likewise.
41118         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41119
41120 2009-02-22  Bruno Haible  <bruno@clisp.org>
41121
41122         Implement new clarified decomposition of Hangul syllables.
41123         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41124         of type LTV, return only a pairwise decomposition.
41125         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41126         Likewise.
41127         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41128         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41129         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41130
41131 2009-02-22  Bruno Haible  <bruno@clisp.org>
41132
41133         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41134         zero-length results and shrink excess allocated memory.
41135         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41136         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41137         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41138         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41139         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41140         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41141         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41142         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41143         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41144         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41145         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41146         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41147
41148 2009-02-21  Bruno Haible  <bruno@clisp.org>
41149
41150         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41151         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41152         spaces after a period. Put a space between a macro name and its
41153         argument list. Trivial rewordings.
41154         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41155         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41156         (main): Return 0 explicitly.
41157
41158 2009-02-21  Bruno Haible  <bruno@clisp.org>
41159
41160         Tests for module 'uninorm/filter'.
41161         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41162         * modules/uninorm/filter-tests: New file.
41163
41164         New module 'uninorm/filter'.
41165         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41166         uninorm_filter_flush, uninorm_filter_free): New declarations.
41167         * lib/uninorm/uninorm-filter.c: New file.
41168         * modules/uninorm/filter: New file.
41169
41170 2009-02-21  Bruno Haible  <bruno@clisp.org>
41171
41172         Tests for module 'uninorm/nfkc'.
41173         * tests/uninorm/test-nfkc.c: New file.
41174         * tests/uninorm/test-u8-nfkc.c: New file.
41175         * tests/uninorm/test-u16-nfkc.c: New file.
41176         * tests/uninorm/test-u32-nfkc.c: New file.
41177         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41178         * tests/uninorm/test-u32-nfkc-big.c: New file.
41179         * modules/uninorm/nfkc-tests: New file.
41180
41181         New module 'uninorm/nfkc'.
41182         * lib/uninorm/nfkc.c: New file.
41183         * modules/uninorm/nfkc: New file.
41184
41185         Tests for module 'uninorm/nfkd'.
41186         * tests/uninorm/test-nfkd.c: New file.
41187         * tests/uninorm/test-u8-nfkd.c: New file.
41188         * tests/uninorm/test-u16-nfkd.c: New file.
41189         * tests/uninorm/test-u32-nfkd.c: New file.
41190         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41191         * tests/uninorm/test-u32-nfkd-big.c: New file.
41192         * modules/uninorm/nfkd-tests: New file.
41193
41194         New module 'uninorm/nfkd'.
41195         * lib/uninorm/nfkd.c: New file.
41196         * modules/uninorm/nfkd: New file.
41197
41198         Tests for module 'uninorm/nfc'.
41199         * tests/uninorm/test-nfc.c: New file.
41200         * tests/uninorm/test-u8-nfc.c: New file.
41201         * tests/uninorm/test-u16-nfc.c: New file.
41202         * tests/uninorm/test-u32-nfc.c: New file.
41203         * tests/uninorm/test-u32-nfc-big.sh: New file.
41204         * tests/uninorm/test-u32-nfc-big.c: New file.
41205         * modules/uninorm/nfc-tests: New file.
41206
41207         New module 'uninorm/nfc'.
41208         * lib/uninorm/nfc.c: New file.
41209         * modules/uninorm/nfc: New file.
41210
41211         Tests for module 'uninorm/nfd'.
41212         * tests/uninorm/test-nfd.c: New file.
41213         * tests/uninorm/test-u8-nfd.c: New file.
41214         * tests/uninorm/test-u16-nfd.c: New file.
41215         * tests/uninorm/test-u32-nfd.c: New file.
41216         * tests/uninorm/test-u32-nfd-big.sh: New file.
41217         * tests/uninorm/test-u32-nfd-big.c: New file.
41218         * tests/uninorm/test-u32-normalize-big.h: New file.
41219         * tests/uninorm/test-u32-normalize-big.c: New file.
41220         * tests/uninorm/NormalizationTest.txt: New file, created from
41221         Unicode 5.1.0 NormalizationTest.txt.
41222         * modules/uninorm/nfd-tests: New file.
41223
41224         New module 'uninorm/nfd'.
41225         * lib/uninorm/nfd.c: New file.
41226         * modules/uninorm/nfd: New file.
41227
41228         New module 'uninorm/u32-normalize'.
41229         * lib/uninorm/u32-normalize.c: New file.
41230         * modules/uninorm/u32-normalize: New file.
41231
41232         New module 'uninorm/u16-normalize'.
41233         * lib/uninorm/u16-normalize.c: New file.
41234         * modules/uninorm/u16-normalize: New file.
41235
41236         New module 'uninorm/u8-normalize'.
41237         * lib/uninorm/u8-normalize.c: New file.
41238         * lib/uninorm/normalize-internal.h: New file.
41239         * lib/uninorm/u-normalize-internal.h: New file.
41240         * modules/uninorm/u8-normalize: New file.
41241
41242         New module 'uninorm/decompose-internal'.
41243         * lib/uninorm/decompose-internal.c: New file.
41244         * modules/uninorm/decompose-internal: New file.
41245
41246         Tests for module 'uninorm/composition'.
41247         * tests/uninorm/test-composition.c: New file.
41248         * modules/uninorm/composition-tests: New file.
41249
41250         New module 'uninorm/composition'.
41251         * lib/uninorm/composition.c: New file.
41252         * lib/uninorm/composition-table.gperf: New file, generated by
41253         gen-uni-tables.
41254         * modules/uninorm/composition: New file.
41255
41256         Tests for module 'uninorm/compat-decomposition'.
41257         * tests/uninorm/test-compat-decomposition.c: New file.
41258         * modules/uninorm/compat-decomposition-tests: New file.
41259
41260         New module 'uninorm/compat-decomposition'.
41261         * lib/uninorm/decompose-internal.h: New file.
41262         * lib/uninorm/compat-decomposition.c: New file.
41263         * modules/uninorm/compat-decomposition: New file.
41264
41265         Tests for module 'uninorm/canonical-decomposition'.
41266         * tests/uninorm/test-canonical-decomposition.c: New file.
41267         * modules/uninorm/canonical-decomposition-tests: New file.
41268
41269         New module 'uninorm/canonical-decomposition'.
41270         * lib/uninorm/canonical-decomposition.c: New file.
41271         * modules/uninorm/canonical-decomposition: New file.
41272
41273         Tests for module 'uninorm/decomposition'.
41274         * tests/uninorm/test-decomposition.c: New file.
41275         * modules/uninorm/decomposition-tests: New file.
41276
41277         New module 'uninorm/decomposition'.
41278         * lib/uninorm/decomposition.c: New file.
41279         * modules/uninorm/decomposition: New file.
41280
41281         New module 'uninorm/decomposition-table'.
41282         * lib/uninorm/decomposition-table.h: New file.
41283         * lib/uninorm/decomposition-table.c: New file.
41284         * lib/uninorm/decomposition-table1.h: New file, generated by
41285         gen-uni-tables.
41286         * lib/uninorm/decomposition-table2.h: New file, generated by
41287         gen-uni-tables.
41288         * modules/uninorm/decomposition-table: New file.
41289
41290         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41291         (UC_DECOMP_*): New enumeration items.
41292         (get_decomposition): New function.
41293         (struct decomp_table): New type.
41294         (output_decomposition, output_decomposition_tables): New functions.
41295         (unicode_composition_exclusions): New variable.
41296         (fill_composition_exclusions, debug_output_composition_tables): New
41297         functions.
41298         (main): Accept one more argument. Invoke fill_composition_exclusions.
41299         Output decomposition and composition tables.
41300
41301         New module 'uninorm/base'.
41302         * lib/uninorm.h: New file.
41303         * lib/unictype.h: Update comment.
41304         * modules/uninorm/base: New file.
41305
41306 2009-02-21  David Lutterkort  <lutter@redhat.com>
41307
41308         Tests for module 'safe-alloc'.
41309         * tests/test-safe-alloc.c: New file.
41310         * modules/safe-alloc-tests: New file.
41311
41312         New module 'safe-alloc'.
41313         * lib/safe-alloc.h: New file.
41314         * lib/safe-alloc.c: New file.
41315         * m4/safe-alloc.m4: New file.
41316         * modules/safe-alloc: New file.
41317         * doc/safe-alloc.texi: New file.
41318         * doc/gnulib.texi: Include it.
41319         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41320         safe-alloc.
41321
41322 2009-02-18  Bruno Haible  <bruno@clisp.org>
41323
41324         Fix link error on non-glibc systems.
41325         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41326         variable.
41327         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41328
41329 2009-02-18  Jim Meyering  <meyering@redhat.com>
41330
41331         fts: avoid used-uninitialized error due to recent change
41332         * lib/fts.c (fts_read): Guard uses of the new member,
41333         parent->fts_n_dirs_remaining, since it's not relevant for
41334         the parent of a directory specified on the command-line.
41335
41336 2009-02-17  James Youngman  <jay@gnu.org>
41337             Bruno Haible  <bruno@clisp.org>
41338
41339         * m4/include_next.m4: Reformulate comment.
41340
41341 2009-02-16  Jim Meyering  <meyering@redhat.com>
41342
41343         fts: add #if guards so that the fts_lgpl module still builds
41344         * lib/fts.c: Guard just-added hash-table-using parts with
41345         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41346         Reported by Simon Josefsson.
41347
41348 2009-02-15  Bruno Haible  <bruno@clisp.org>
41349
41350         * modules/array-mergesort-tests: New file.
41351         * tests/test-array-mergesort.c: New file.
41352
41353         New module 'array-mergesort'.
41354         * modules/array-mergesort: New file.
41355         * lib/array-mergesort.h: New file.
41356
41357 2009-02-15  Bruno Haible  <bruno@clisp.org>
41358
41359         Fix 2009-02-07 commit.
41360         * lib/gen-uni-tables.c (output_predicate, output_category,
41361         output_combclass, output_bidi_category, output_decimal_digit,
41362         output_digit, output_numeric, output_mirror, output_scripts,
41363         output_ident_category, output_simple_mapping): Fix format directives.
41364         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41365
41366 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41367
41368         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41369         fixes are available from IBM.
41370
41371 2009-02-13  Jim Meyering  <meyering@redhat.com>
41372
41373         fts: arrange not to stat non-directories in more cases
41374         This makes GNU find (when it doesn't need to stat each file)
41375         *much* more efficient at traversing reiserfs file systems.
41376         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41377         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41378         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41379         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41380         (leaf_optimization_applies): New function.
41381         (LCO_hash, LCO_compare): New helper functions.
41382         (link_count_optimize_ok): New function.
41383         (fts_stat): Initialize new member (if dir).
41384         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41385         we've just stat'ed a directory.  Skip the stat call when possible.
41386         ---
41387         Note this AFS-related exchange:
41388         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41389         and note find's pioctl call in find/fstype.c.
41390         But that is necessary only if you want to enable the
41391         optimization for AFS, and for now, I don't.
41392
41393         fts: move a function definition "up" (no semantic change)
41394         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41395         "up" to precede upcoming use of a related function.
41396
41397 2009-02-11  Jim Meyering  <meyering@redhat.com>
41398
41399         fts: correct internal computation of nlinks (optimization-related)
41400         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41401         whether the current entry is a directory, so don't test it.
41402
41403 2009-02-10  Bruno Haible  <bruno@clisp.org>
41404
41405         Tests for module 'uniwbrk/ulc-wordbreaks'.
41406         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41407         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41408         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41409
41410         Tests for module 'uniwbrk/u32-wordbreaks'.
41411         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41412         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41413
41414         Tests for module 'uniwbrk/u16-wordbreaks'.
41415         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41416         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41417
41418         Tests for module 'uniwbrk/u8-wordbreaks'.
41419         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41420         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41421
41422 2009-02-10  Bruno Haible  <bruno@clisp.org>
41423
41424         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41425         property.
41426         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41427         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41428         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41429
41430 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41431
41432         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41433         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41434
41435 2009-02-10  Bruno Haible  <bruno@clisp.org>
41436
41437         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41438         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41439         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41440         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41441         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41442         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41443
41444 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41445
41446         * lib/sockets.h (gl_fd_to_handle): New function.
41447
41448         * tests/test-sockets.c: Call gl_fd_to_handle.
41449
41450 2009-02-09  Bruno Haible  <bruno@clisp.org>
41451
41452         * doc/havelib.texi: Document the conventions on bi-arch systems.
41453
41454 2009-02-08  Bruno Haible  <bruno@clisp.org>
41455
41456         Document the AC_LIB_LINKFLAGS macro.
41457         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41458         * doc/gnulib.texi: Include it.
41459
41460 2009-02-08  Bruno Haible  <bruno@clisp.org>
41461
41462         Fix wrong order of sections, compared to TOC.
41463         * doc/gnulib.texi: Include relocatable-maint.texi after the
41464         "Regular expressions" node, not before.
41465
41466 2009-02-08  Bruno Haible  <bruno@clisp.org>
41467
41468         Tests for module 'unicase/totitle'.
41469         * modules/unicase/totitle-tests: New file.
41470
41471         Tests for module 'unicase/tolower'.
41472         * modules/unicase/tolower-tests: New file.
41473
41474         Tests for module 'unicase/toupper'.
41475         * modules/unicase/toupper-tests: New file.
41476         * tests/unicase/test-mapping-part1.h: New file.
41477         * tests/unicase/test-mapping-part2.h: New file.
41478
41479         New module 'unicase/totitle'.
41480         * modules/unicase/totitle: New file.
41481         * lib/unicase/totitle.c: New file.
41482
41483         New module 'unicase/tolower'.
41484         * modules/unicase/tolower: New file.
41485         * lib/unicase/tolower.c: New file.
41486
41487         New module 'unicase/toupper'.
41488         * modules/unicase/toupper: New file.
41489         * lib/unicase/toupper.c: New file.
41490         * lib/unicase/simple-mapping.h: New file.
41491
41492         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41493         (mapping_table): New structure.
41494         (output_simple_mapping): New function.
41495         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41496         * modules/gen-uni-tables (Description): Update.
41497         * lib/unicase/toupper.h: New file, automatically generated by
41498         gen-uni-tables.
41499         * lib/unicase/tolower.h: New file, automatically generated by
41500         gen-uni-tables.
41501         * lib/unicase/totitle.h: New file, automatically generated by
41502         gen-uni-tables.
41503         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41504         gen-uni-tables.
41505         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41506         gen-uni-tables.
41507         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41508         gen-uni-tables.
41509
41510         New module 'unicase/base'.
41511         * modules/unicase/base: New file.
41512         * lib/unicase.h: New file.
41513
41514 2009-02-08  Bruno Haible  <bruno@clisp.org>
41515
41516         New module 'uniwbrk/ulc-wordbreaks'.
41517         * modules/uniwbrk/ulc-wordbreaks: New file.
41518         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41519
41520         New module 'uniwbrk/u32-wordbreaks'.
41521         * modules/uniwbrk/u32-wordbreaks: New file.
41522         * lib/uniwbrk/u32-wordbreaks.c: New file.
41523
41524         New module 'uniwbrk/u16-wordbreaks'.
41525         * modules/uniwbrk/u16-wordbreaks: New file.
41526         * lib/uniwbrk/u16-wordbreaks.c: New file.
41527
41528         New module 'uniwbrk/u8-wordbreaks'.
41529         * modules/uniwbrk/u8-wordbreaks: New file.
41530         * lib/uniwbrk/u8-wordbreaks.c: New file.
41531         * lib/uniwbrk/u-wordbreaks.h: New file.
41532
41533         New module 'uniwbrk/table'.
41534         * modules/uniwbrk/table: New file.
41535         * lib/uniwbrk/wbrktable.h: New file.
41536         * lib/uniwbrk/wbrktable.c: New file.
41537
41538         New module 'uniwbrk/wordbreak-property'.
41539         * modules/uniwbrk/wordbreak-property: New file.
41540         * lib/uniwbrk/wordbreak-property.c: New file.
41541
41542         * lib/gen-uni-tables.c (WBP_*): New enum items.
41543         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41544         (unicode_org_wbp): New variable.
41545         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41546         New functions.
41547         (wbp_table): New structure.
41548         (output_wbp, output_wbrk_tables): New functions.
41549         (main): Accept additional argument. Invoke fill_org_wbp,
41550         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41551         output_wbrk_tables.
41552         * modules/gen-uni-tables (Description): Update.
41553         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41554         gen-uni-tables.
41555
41556         New module 'uniwbrk/base'.
41557         * modules/uniwbrk/base: New file.
41558         * lib/uniwbrk.h: New file.
41559
41560 2009-02-08  Bruno Haible  <bruno@clisp.org>
41561
41562         Update to Unicode 5.1.0.
41563         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41564         U+2185..U+2188.
41565         (is_property_default_ignorable_code_point): Don't include characters
41566         of category Cc or Cs and not-a-characters.
41567         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41568         U+0D79, U+109E, U+109F, U+A60C.
41569         * lib/unictype/bidi_of.h: Regenerated.
41570         * lib/unictype/blocks.h: Regenerated.
41571         * lib/unictype/categ_C.h: Regenerated.
41572         * lib/unictype/categ_Cf.h: Regenerated.
41573         * lib/unictype/categ_Cn.h: Regenerated.
41574         * lib/unictype/categ_L.h: Regenerated.
41575         * lib/unictype/categ_Ll.h: Regenerated.
41576         * lib/unictype/categ_Lm.h: Regenerated.
41577         * lib/unictype/categ_Lo.h: Regenerated.
41578         * lib/unictype/categ_Lu.h: Regenerated.
41579         * lib/unictype/categ_M.h: Regenerated.
41580         * lib/unictype/categ_Mc.h: Regenerated.
41581         * lib/unictype/categ_Me.h: Regenerated.
41582         * lib/unictype/categ_Mn.h: Regenerated.
41583         * lib/unictype/categ_N.h: Regenerated.
41584         * lib/unictype/categ_Nd.h: Regenerated.
41585         * lib/unictype/categ_Nl.h: Regenerated.
41586         * lib/unictype/categ_No.h: Regenerated.
41587         * lib/unictype/categ_P.h: Regenerated.
41588         * lib/unictype/categ_Pd.h: Regenerated.
41589         * lib/unictype/categ_Pe.h: Regenerated.
41590         * lib/unictype/categ_Pf.h: Regenerated.
41591         * lib/unictype/categ_Pi.h: Regenerated.
41592         * lib/unictype/categ_Po.h: Regenerated.
41593         * lib/unictype/categ_Ps.h: Regenerated.
41594         * lib/unictype/categ_S.h: Regenerated.
41595         * lib/unictype/categ_Sk.h: Regenerated.
41596         * lib/unictype/categ_Sm.h: Regenerated.
41597         * lib/unictype/categ_So.h: Regenerated.
41598         * lib/unictype/categ_of.h: Regenerated.
41599         * lib/unictype/combining.h: Regenerated.
41600         * lib/unictype/ctype_alnum.h: Regenerated.
41601         * lib/unictype/ctype_alpha.h: Regenerated.
41602         * lib/unictype/ctype_graph.h: Regenerated.
41603         * lib/unictype/ctype_lower.h: Regenerated.
41604         * lib/unictype/ctype_print.h: Regenerated.
41605         * lib/unictype/ctype_punct.h: Regenerated.
41606         * lib/unictype/ctype_upper.h: Regenerated.
41607         * lib/unictype/decdigit.h: Regenerated.
41608         * lib/unictype/digit.h: Regenerated.
41609         * lib/unictype/mirror.h: Regenerated.
41610         * lib/unictype/numeric.h: Regenerated.
41611         * lib/unictype/pr_alphabetic.h: Regenerated.
41612         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41613         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41614         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41615         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41616         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41617         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41618         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41619         * lib/unictype/pr_combining.h: Regenerated.
41620         * lib/unictype/pr_dash.h: Regenerated.
41621         * lib/unictype/pr_decimal_digit.h: Regenerated.
41622         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41623         * lib/unictype/pr_deprecated.h: Regenerated.
41624         * lib/unictype/pr_diacritic.h: Regenerated.
41625         * lib/unictype/pr_extender.h: Regenerated.
41626         * lib/unictype/pr_format_control.h: Regenerated.
41627         * lib/unictype/pr_grapheme_base.h: Regenerated.
41628         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41629         * lib/unictype/pr_grapheme_link.h: Regenerated.
41630         * lib/unictype/pr_id_continue.h: Regenerated.
41631         * lib/unictype/pr_id_start.h: Regenerated.
41632         * lib/unictype/pr_ideographic.h: Regenerated.
41633         * lib/unictype/pr_ignorable_control.h: Regenerated.
41634         * lib/unictype/pr_lowercase.h: Regenerated.
41635         * lib/unictype/pr_math.h: Regenerated.
41636         * lib/unictype/pr_numeric.h: Regenerated.
41637         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41638         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41639         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41640         * lib/unictype/pr_other_id_continue.h: Regenerated.
41641         * lib/unictype/pr_other_lowercase.h: Regenerated.
41642         * lib/unictype/pr_other_math.h: Regenerated.
41643         * lib/unictype/pr_punctuation.h: Regenerated.
41644         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41645         * lib/unictype/pr_soft_dotted.h: Regenerated.
41646         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41647         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41648         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41649         * lib/unictype/pr_uppercase.h: Regenerated.
41650         * lib/unictype/pr_xid_continue.h: Regenerated.
41651         * lib/unictype/pr_xid_start.h: Regenerated.
41652         * lib/unictype/pr_zero_width.h: Regenerated.
41653         * lib/unictype/scripts.h: Regenerated.
41654         * lib/unictype/scripts_byname.gperf: Regenerated.
41655         * lib/unictype/sy_java_ident.h: Regenerated.
41656         * lib/unilbrk/lbrkprop1.h: Regenerated.
41657         * lib/unilbrk/lbrkprop2.h: Regenerated.
41658         * tests/unictype/test-categ_C.c: Regenerated.
41659         * tests/unictype/test-categ_Cf.c: Regenerated.
41660         * tests/unictype/test-categ_Cn.c: Regenerated.
41661         * tests/unictype/test-categ_L.c: Regenerated.
41662         * tests/unictype/test-categ_Ll.c: Regenerated.
41663         * tests/unictype/test-categ_Lm.c: Regenerated.
41664         * tests/unictype/test-categ_Lo.c: Regenerated.
41665         * tests/unictype/test-categ_Lu.c: Regenerated.
41666         * tests/unictype/test-categ_M.c: Regenerated.
41667         * tests/unictype/test-categ_Mc.c: Regenerated.
41668         * tests/unictype/test-categ_Me.c: Regenerated.
41669         * tests/unictype/test-categ_Mn.c: Regenerated.
41670         * tests/unictype/test-categ_N.c: Regenerated.
41671         * tests/unictype/test-categ_Nd.c: Regenerated.
41672         * tests/unictype/test-categ_Nl.c: Regenerated.
41673         * tests/unictype/test-categ_No.c: Regenerated.
41674         * tests/unictype/test-categ_P.c: Regenerated.
41675         * tests/unictype/test-categ_Pd.c: Regenerated.
41676         * tests/unictype/test-categ_Pe.c: Regenerated.
41677         * tests/unictype/test-categ_Pf.c: Regenerated.
41678         * tests/unictype/test-categ_Pi.c: Regenerated.
41679         * tests/unictype/test-categ_Po.c: Regenerated.
41680         * tests/unictype/test-categ_Ps.c: Regenerated.
41681         * tests/unictype/test-categ_S.c: Regenerated.
41682         * tests/unictype/test-categ_Sk.c: Regenerated.
41683         * tests/unictype/test-categ_Sm.c: Regenerated.
41684         * tests/unictype/test-categ_So.c: Regenerated.
41685         * tests/unictype/test-ctype_alnum.c: Regenerated.
41686         * tests/unictype/test-ctype_alpha.c: Regenerated.
41687         * tests/unictype/test-ctype_graph.c: Regenerated.
41688         * tests/unictype/test-ctype_lower.c: Regenerated.
41689         * tests/unictype/test-ctype_print.c: Regenerated.
41690         * tests/unictype/test-ctype_punct.c: Regenerated.
41691         * tests/unictype/test-ctype_upper.c: Regenerated.
41692         * tests/unictype/test-decdigit.h: Regenerated.
41693         * tests/unictype/test-digit.h: Regenerated.
41694         * tests/unictype/test-numeric.h: Regenerated.
41695         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41696         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41697         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41698         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41699         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41700         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41701         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41702         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41703         * tests/unictype/test-pr_combining.c: Regenerated.
41704         * tests/unictype/test-pr_dash.c: Regenerated.
41705         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41706         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41707         * tests/unictype/test-pr_deprecated.c: Regenerated.
41708         * tests/unictype/test-pr_diacritic.c: Regenerated.
41709         * tests/unictype/test-pr_extender.c: Regenerated.
41710         * tests/unictype/test-pr_format_control.c: Regenerated.
41711         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41712         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41713         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41714         * tests/unictype/test-pr_id_continue.c: Regenerated.
41715         * tests/unictype/test-pr_id_start.c: Regenerated.
41716         * tests/unictype/test-pr_ideographic.c: Regenerated.
41717         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41718         * tests/unictype/test-pr_lowercase.c: Regenerated.
41719         * tests/unictype/test-pr_math.c: Regenerated.
41720         * tests/unictype/test-pr_numeric.c: Regenerated.
41721         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41722         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41723         Regenerated.
41724         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41725         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41726         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41727         * tests/unictype/test-pr_other_math.c: Regenerated.
41728         * tests/unictype/test-pr_punctuation.c: Regenerated.
41729         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41730         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41731         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41732         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41733         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41734         * tests/unictype/test-pr_uppercase.c: Regenerated.
41735         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41736         * tests/unictype/test-pr_xid_start.c: Regenerated.
41737         * tests/unictype/test-pr_zero_width.c: Regenerated.
41738
41739         Update to Unicode 5.1.0.
41740         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41741         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41742         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41743         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41744         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41745         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41746         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41747         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41748         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41749         (nonspacing_table_ind): Update.
41750         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41751
41752         Update to Unicode 5.1.0.
41753         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41754         code transform.
41755         * lib/uniname/uniname.c (unicode_character_name,
41756         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41757         * lib/uniname/uninames.h: Regenerated.
41758         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41759
41760 2009-02-07  Bruno Haible  <bruno@clisp.org>
41761
41762         Merge gen-ctype and gen-lbrk into a single program.
41763         * lib/gen-uni-tables.c: New file, incorporating
41764         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41765         Add directory prefixes to the names of the generated files.
41766         * lib/unictype/gen-ctype.c: Remove file.
41767         * lib/unilbrk/gen-lbrk.c: Remove file.
41768         * modules/gen-uni-tables: New file.
41769         * modules/unictype/gen-ctype: Remove file.
41770         * modules/unilbrk/gen-lbrk: Remove file.
41771
41772 2009-02-07  Bruno Haible  <bruno@clisp.org>
41773
41774         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41775
41776         New module 'unistr/u32-strcoll'.
41777         * modules/unistr/u32-strcoll: New file.
41778         * lib/unistr/u32-strcoll.c: New file.
41779
41780         New module 'unistr/u16-strcoll'.
41781         * modules/unistr/u16-strcoll: New file.
41782         * lib/unistr/u16-strcoll.c: New file.
41783
41784         New module 'unistr/u8-strcoll'.
41785         * modules/unistr/u8-strcoll: New file.
41786         * lib/unistr/u8-strcoll.c: New file.
41787         * lib/unistr/u-strcoll.h: New file.
41788
41789 2009-02-07  Bruno Haible  <bruno@clisp.org>
41790
41791         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41792         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41793         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41794         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41795         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41796         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41797
41798 2009-02-07  Bruno Haible  <bruno@clisp.org>
41799
41800         Make 64-bit clean.
41801         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41802         output_combclass, output_bidi_category, output_decimal_digit,
41803         output_digit, output_numeric, output_mirror, output_scripts,
41804         output_ident_category): Use proper width specifier in format strings.
41805
41806 2009-02-07  Bruno Haible  <bruno@clisp.org>
41807
41808         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41809         failure behaviour.
41810
41811 2009-02-07  Jim Meyering  <meyering@redhat.com>
41812
41813         regex: avoid compilation failure with upcoming gcc-4.4
41814         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41815         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41816         "... error: integer overflow in preprocessor expression".
41817
41818 2009-02-05  Ben Pfaff  <blp@gnu.org>
41819
41820         Fix link errors on Windows when close module is used.
41821         * modules/close: Add $(LIB_CLOSE) to Link section.
41822         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41823         $(LIB_CLOSE) on Windows.
41824
41825 2009-02-05  Jim Meyering  <meyering@redhat.com>
41826
41827         still avoid unused-parameter warnings, but do it cleanly
41828         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41829         (get_fs_usage): Cast to void instead.
41830         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41831         (dev_from_mount_options, read_file_system_list): Cast to void.
41832         Prompted by Bruno Haible.
41833
41834 2009-02-04  Jim Meyering  <meyering@redhat.com>
41835
41836         fsusage.c: correct copyright year
41837         * lib/fsusage.c: Reflect year in which the change is pushed into
41838
41839         avoid misc. warnings
41840         * lib/fsusage.c (UNUSED_PARAM): Define.
41841         (get_fs_usage): Mark parameter "disk" as unused.
41842         * lib/getugroups.c (getgrent): Use "void" in prototype.
41843         * lib/mountlist.c: Mark unused parameters.
41844         (read_file_system_list): Declare a local with "const".
41845         * lib/nanosleep.c (getnow): Declare static.
41846         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41847
41848         dirfd: set errno upon failure
41849         * lib/dirfd.c: Include <errno.h>.
41850         Set errno to ENOTSUP when returning -1.
41851         * modules/dirfd (Depends-on): Add errno.
41852         Suggested by John Kodis <kodis@comcast.net>.
41853
41854 2009-02-01  Bruno Haible  <bruno@clisp.org>
41855
41856         Don't assume sizeof (long) >= sizeof (void *).
41857         * lib/memcmp.c: Include stdint.h.
41858         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41859         srcp2 to 'const byte *'.
41860         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41861         types to uintptr_t.
41862         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41863         * modules/memcmp (Depends-on): Add stdint.
41864         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41865
41866 2009-01-30  Eric Blake  <ebb9@byu.net>
41867
41868         fix more require-before-expand issues
41869         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41870         expand, AC_PROG_AWK.
41871         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41872
41873 2009-01-28  Eric Blake  <ebb9@byu.net>
41874
41875         version-etc: use consistent URL formatting
41876         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41877         Improve formatting.  Use fputs for string without %.
41878
41879 2009-01-28  Jim Meyering  <meyering@redhat.com>
41880
41881         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41882         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41883         "underquoted definition of NAME" from autoconf-2.59.
41884
41885 2009-01-28  Bruno Haible  <bruno@clisp.org>
41886
41887         * doc/gnulib.texi: Add "Obsolete modules" to index.
41888
41889 2009-01-28  Jim Meyering  <meyering@redhat.com>
41890
41891         useless-if-before-free: recognize more variants
41892         * build-aux/useless-if-before-free: Also recognize e.g.,
41893         if (NULL != p) free (p);
41894
41895 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41896
41897         test-getaddrinfo: skip (don't fail) this test when there's no network
41898         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41899         on the presumption that it means you lack network access.
41900
41901 2009-01-26  Jim Meyering  <meyering@redhat.com>
41902
41903         fflush: avoid warnings on modern systems
41904         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41905         pos and result, into scopes where they're used.
41906
41907 2009-01-26  Eric Blake  <ebb9@byu.net>
41908
41909         Silence warning reintroduced by recent extensions patch.
41910         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41911         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41912         autoconf.
41913
41914         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41915         * m4/00gnulib.m4: New file.
41916         * gnulib-tool (func_get_filelist): Always use it.
41917         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41918         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41919
41920 2009-01-25  Bruno Haible  <bruno@clisp.org>
41921
41922         Make test-quotearg work on MacOS X and AIX.
41923         * tests/test-quotearg.sh: New file.
41924         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41925         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41926         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41927         include <libintl.h>.
41928         (fake_locale): Remove variable.
41929         (gettext, dgettext, dcgettext): Remove functions.
41930         (main): Instead of setting a fake locale, set a real locale. Call
41931         textdomain and bindtextdomain.
41932         * modules/quotearg-tests (Files): Add the new files.
41933         (Depends-on): Add gettext, setenv, unsetenv.
41934         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41935         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41936         Augment TESTS_ENVIRONMENT.
41937
41938 2009-01-25  Bruno Haible  <bruno@clisp.org>
41939
41940         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41941         fr_FR.ISO8859-1 locale on MacOS X.
41942         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41943         ja_JP.eucJP locale on MacOS X.
41944         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41945         zh_CN.GB18030 locale on MacOS X.
41946
41947 2009-01-25  Bruno Haible  <bruno@clisp.org>
41948
41949         Avoid link errors on MacOS X 10.3.
41950         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41951         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41952
41953 2009-01-25  Bruno Haible  <bruno@clisp.org>
41954
41955         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41956         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41957         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41958         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41959         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41960         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41961         posix_spawnattr_init, posix_spawnattr_setsigmask,
41962         posix_spawnattr_setflags, posix_spawnattr_destroy.
41963
41964         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41965         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41966         * modules/execute (Files): Remove m4/posix_spawn.m4.
41967         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41968         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41969         posix_spawnattr_init, posix_spawnattr_setsigmask,
41970         posix_spawnattr_setflags, posix_spawnattr_destroy.
41971
41972 2009-01-25  Bruno Haible  <bruno@clisp.org>
41973
41974         * lib/glthread/threadlib.c: Include <stdlib.h>.
41975
41976 2009-01-25  Bruno Haible  <bruno@clisp.org>
41977
41978         * lib/glthread/threadlib.c (dummy): New declaration.
41979
41980 2009-01-25  Bruno Haible  <bruno@clisp.org>
41981
41982         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41983         multibyte characters also for the GB18030 encoding. Don't crash when
41984         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41985
41986 2009-01-25  Bruno Haible  <bruno@clisp.org>
41987
41988         Avoid redefining 'struct random_data' on OSF/1 5.1.
41989         * lib/stdlib.in.h: Include <random.h> if it exists.
41990         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
41991         HAVE_RANDOM_H. Include <random.h> when testing whether
41992         'struct random_data' exists.
41993         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
41994
41995 2009-01-25  Bruno Haible  <bruno@clisp.org>
41996
41997         Don't install charset.alias on MacOS X >= 10.3.
41998         * lib/localcharset.c (DARWIN7): New macro.
41999         (get_charset_aliases): Hardcode the result for Darwin7.
42000         * modules/localcharset (install-exec-local): Don't install
42001         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42002
42003 2009-01-25  Bruno Haible  <bruno@clisp.org>
42004
42005         Don't install charset.alias on mingw and Cygwin.
42006         * modules/localcharset (install-exec-local): Don't install
42007         charset.alias on mingw and Cygwin, if the file does not yet exist.
42008         The result for these platforms is hardcoded in localcharset.c.
42009
42010 2009-01-25  Bruno Haible  <bruno@clisp.org>
42011
42012         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42013         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42014         before requiring AC_USE_SYSTEM_EXTENSIONS.
42015
42016 2009-01-25  Jim Meyering  <meyering@redhat.com>
42017
42018         c-strtod: avoid warnings
42019         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42020         "assignment discards qualifiers from pointer target type" warnings.
42021
42022 2009-01-24  Bruno Haible  <bruno@clisp.org>
42023
42024         Add support for non-UTF-8 locales on MacOS X.
42025         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42026         canonical encodings. For Darwin 7 and newer, don't map traditional
42027         encodings to UTF-8.
42028         Reported by Vincent Lefevre <vincent@vinc17.org>
42029         at <http://savannah.gnu.org/bugs/?25235>.
42030
42031 2009-01-24  Bruno Haible  <bruno@clisp.org>
42032
42033         * doc/gnulib.texi (Obsolete modules): New section.
42034         Reported by Mike Frysinger <vapier@gentoo.org>.
42035
42036 2009-01-24  Bruno Haible  <bruno@clisp.org>
42037
42038         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42039         (%.dvi): New rule.
42040
42041 2009-01-24  Bruno Haible  <bruno@clisp.org>
42042
42043         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42044         Reported by Eric Blake.
42045
42046 2009-01-24  Bruno Haible  <bruno@clisp.org>
42047
42048         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42049         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42050         Reported by Gary V. Vaughan <gary@gnu.org>.
42051
42052 2009-01-24  Bruno Haible  <bruno@clisp.org>
42053
42054         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42055
42056 2009-01-23  Bruno Haible  <bruno@clisp.org>
42057
42058         Make c-strtod, c-strtold usable in libraries.
42059         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42060         (C_STRTOD): Call strdup instead of xstrdup.
42061         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42062         * modules/c-strtold (Depends-on): Likewise.
42063         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42064         * NEWS: Mention the change.
42065         Reported by Michael Gold <mgold@ncf.ca>.
42066
42067 2009-01-23  Jim Meyering  <meyering@redhat.com>
42068
42069         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42070         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42071         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42072
42073 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42074
42075         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42076         GNU CoreUtils.
42077         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42078         * modules/version-etc (Description): Update.
42079
42080 2009-01-22  Bruno Haible  <bruno@clisp.org>
42081
42082         Cache the C locale object.
42083         * lib/c-strtod.c (c_locale_cache): New variable.
42084         (c_locale): New function.
42085         (C_STRTOD): Use it, and don't call freelocale.
42086         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42087         Suggested by Paolo Bonzini.
42088
42089 2009-01-21  Bruno Haible  <bruno@clisp.org>
42090
42091         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42092         conditions other than overflow.
42093
42094 2009-01-21  Bruno Haible  <bruno@clisp.org>
42095
42096         * lib/c-strtod.c: Include errno.h.
42097         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42098         value from STRTOD_L and STRTOD.
42099
42100 2009-01-21  Bruno Haible  <bruno@clisp.org>
42101         and Jim Meyering  <meyering@redhat.com>
42102
42103         nanosleep: skip configure test (fail it) for apple universal builds
42104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42105         universal builds, assume that nanosleep does not work.
42106         * modules/nanosleep (Depends-on): Add multiarch.
42107
42108         mktime: skip configure test (fail it) for apple universal builds
42109         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42110         universal builds, assume that mktime does not work.
42111         * modules/mktime (Depends-on): Add multiarch.
42112
42113 2009-01-21  Eric Blake  <ebb9@byu.net>
42114
42115         multiarch: avoid expand-before-require warning
42116         * modules/multiarch (configure.ac): Require, rather than expand,
42117         gl_MULTIARCH.
42118         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42119         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42120         enforce that all clients require it.  Partial reversion of
42121         2008-12-29 patch.
42122
42123         error: avoid expand-before-require warning
42124         * modules/errno (configure.ac): Require, rather than expand,
42125         gl_HEADER_ERRNO_H.
42126         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42127         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42128         enforce that all clients require it.
42129
42130         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42131         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42132         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42133         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42134
42135 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42136
42137         Revert:
42138         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42139
42140         regex: do not depend on obsolete modules.
42141         * modules/regex: Remove memcmp and memmove.
42142
42143 2009-01-20  Bruno Haible  <bruno@clisp.org>
42144
42145         Make the 'link' module link on Windows NT 4.
42146         * lib/link.c (_WIN32_WINNT): Don't define.
42147         (CreateHardLinkFuncType): New type.
42148         (CreateHardLinkFunc, initialized): New variables.
42149         (initialize): New function.
42150         (link): Invoke CreateHardLink indirectly through the function pointer.
42151
42152 2009-01-20  Bruno Haible  <bruno@clisp.org>
42153
42154         Fix compilation failure on mingw.
42155         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42156
42157 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42158
42159         * doc/c-strtod.texi: Mention a couple of restrictions.
42160
42161 2009-01-20  Jim Meyering  <meyering@redhat.com>
42162
42163         gettimeofday: move more declarations out of functions
42164         * lib/gettimeofday.c: Move extern declarations of tzset and
42165         gmtime out of containing functions.  Prompted by Bruno Haible.
42166
42167 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42168
42169         regex: do not depend on obsolete modules.
42170         * modules/regex: Remove memcmp and memmove.
42171
42172 2009-01-19  Bruno Haible  <bruno@clisp.org>
42173
42174         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42175         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42176         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42177         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42178         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42179
42180 2009-01-19  Bruno Haible  <bruno@clisp.org>
42181
42182         * tests/test-link.c: Include <errno.h>.
42183         (main): Exit with code 77 when a hard link cannot be created due to
42184         the file system.
42185         * tests/test-link.sh: Skip test when a hard link cannot be created due
42186         to the file system.
42187         Suggested by Eric Blake.
42188
42189 2009-01-19  Martin Lambers  <marlam@marlam.de>
42190
42191         * modules/link-tests: New file.
42192         * tests/test-link.sh: New file.
42193         * tests/test-link.c: New file.
42194
42195 2009-01-19  Eric Blake  <ebb9@byu.net>
42196
42197         doc: mention another function added in cygwin 1.7.0
42198         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42199         Another new function in cygwin 1.7.
42200
42201 2009-01-19  Bruno Haible  <bruno@clisp.org>
42202
42203         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42204         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42205         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42206         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42207         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42208         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42209         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42210         * m4/md4.m4 (gl_MD4): Likewise.
42211         * m4/md5.m4 (gl_MD5): Likewise.
42212         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42213         * m4/sha1.m4 (gl_SHA1): Likewise.
42214         * m4/sha256.m4 (gl_SHA256): Likewise.
42215         * m4/sha512.m4 (gl_SHA512): Likewise.
42216
42217 2009-01-19  Bruno Haible  <bruno@clisp.org>
42218
42219         * modules/uniname/uniname-tests (Depends-on): Add progname.
42220         * tests/uniname/test-uninames.c: Include progname.h.
42221         (main): Call set_program_name.
42222
42223         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42224         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42225         (main): Call set_program_name.
42226
42227         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42228         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42229         (main): Call set_program_name.
42230
42231         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42232         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42233         (main): Call set_program_name.
42234
42235         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42236         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42237         (main): Call set_program_name.
42238
42239         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42240         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42241         (main): Call set_program_name.
42242
42243         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42244         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42245         (main): Call set_program_name.
42246
42247         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42248         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42249         (main): Call set_program_name.
42250
42251         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42252         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42253         (main): Call set_program_name.
42254
42255 2009-01-19  Eric Blake  <ebb9@byu.net>
42256
42257         test-unistd: test previous patch
42258         * tests/test-unistd.c: Test *_FILENO macros.
42259
42260         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42261         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42262         Guarantee a definition.
42263         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42264         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42265         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42266         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42267         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42268         Likewise.
42269         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42270         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42271         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42272         Likewise.
42273         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42274         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42275         (STDERR_FILENO): Likewise.
42276         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42277         (STDERR_FILENO): Likewise.
42278         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42279         (STDERR_FILENO): Likewise.
42280         Reported by Elbert Pol.
42281
42282 2009-01-19  Eric Blake  <ebb9@byu.net>
42283
42284         doc: mention more functions added in cygwin 1.7.0
42285         * doc/posix-functions/abort.texi (abort): Update wording related
42286         to cygwin.
42287         * doc/posix-functions/daylight.texi (daylight): Likewise.
42288         * doc/posix-functions/optarg.texi (optarg): Likewise.
42289         * doc/posix-functions/optarg.texi (opterr): Likewise.
42290         * doc/posix-functions/optarg.texi (optind): Likewise.
42291         * doc/posix-functions/optarg.texi (optopt): Likewise.
42292         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42293         worked in 1.5.x, and was withdrawn in 1.7.
42294         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42295         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42296         cygwin versions.
42297         * doc/posix-functions/perror.texi (perror): Likewise.
42298         * doc/posix-functions/printf.texi (printf): Likewise.
42299         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42300         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42301         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42302         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42303         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42304         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42305         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42306         Likewise.
42307         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42308         Likewise.
42309         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42310         this function.
42311         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42312         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42313         Likewise.
42314         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42315         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42316         * doc/posix-functions/confstr.texi (confstr): Likewise.
42317         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42318         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42319         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42320         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42321         * doc/posix-functions/fputws.texi (fputws): Likewise.
42322         * doc/posix-functions/fwide.texi (fwide): Likewise.
42323         * doc/posix-functions/getwc.texi (getwc): Likewise.
42324         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42325         * doc/posix-functions/putwc.texi (putwc): Likewise.
42326         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42327         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42328         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42329         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42330         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42331         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42332         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42333         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42334         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42335         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42336         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42337
42338 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42339
42340         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42341         * lib/ioctl.c: Include <sys/ioctl.h>.
42342
42343 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42344
42345         * modules/getdate-tests (Depends-on): Add progname.
42346         * tests/test-getdate.c: Use progname module, to avoid link errors
42347         on non-glibc systems.
42348
42349 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42350
42351         * modules/filenamecat-tests (Depends-on): Add progname.
42352         * modules/fstrcmp-tests (Depends-on): Likewise.
42353
42354         * tests/test-filenamecat.c: Use progname module, to avoid link
42355         errors on non-glibc systems.
42356         * tests/test-fstrcmp.c: Likewise.
42357
42358 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42359
42360         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42361         * lib/gettimeofday.c: Move extern declaration out of function.
42362
42363 2009-01-18  Bruno Haible  <bruno@clisp.org>
42364
42365         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42366         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42367         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42368
42369 2009-01-18  Bruno Haible  <bruno@clisp.org>
42370
42371         * lib/strftime.c (MEMPCPY): Remove unused macro.
42372         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42373
42374 2009-01-18  Martin Lambers  <marlam@marlam.de>
42375
42376         New module 'link'.
42377         * lib/unistd.in.h (link): New declaration.
42378         * lib/link.c: New file.
42379         * m4/link.m4: New file.
42380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42381         HAVE_LINK.
42382         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42383         * modules/link: New file.
42384         * doc/posix-functions/link.texi: Mention the new module.
42385
42386 2009-01-18  Bruno Haible  <bruno@clisp.org>
42387
42388         * tests/test-avltree_list.c (main): Call set_program_name.
42389         * tests/test-avltree_oset.c (main): Likewise.
42390         * tests/test-obstack-printf.c: Include progname.h.
42391         (main): Call set_program_name.
42392         * tests/test-quotearg.c: Include progname.h.
42393         (main): Call set_program_name.
42394         * tests/test-xmemdup0.c: Include progname.h.
42395         (main): Call set_program_name.
42396
42397 2009-01-18  Bruno Haible  <bruno@clisp.org>
42398
42399         New module 'alphasort'.
42400         * lib/dirent.in.h (alphasort): New declaration.
42401         * lib/alphasort.c: New file, from glibc with modifications.
42402         * m4/alphasort.m4: New file.
42403         * modules/alphasort: New file.
42404         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42405         HAVE_ALPHASORT.
42406         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42407         HAVE_ALPHASORT.
42408         * doc/posix-functions/alphasort.texi: Mention the new module and the
42409         portability problems.
42410
42411 2009-01-18  Bruno Haible  <bruno@clisp.org>
42412
42413         New module 'scandir'.
42414         * lib/dirent.in.h (scandir): New declaration.
42415         * lib/scandir.c: New file, from glibc with modifications.
42416         * m4/scandir.m4: New file.
42417         * modules/scandir: New file.
42418         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42419         HAVE_SCANDIR.
42420         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42421         HAVE_SCANDIR.
42422         * doc/posix-functions/scandir.texi: Mention the new module and the
42423         portability problems.
42424
42425 2009-01-17  Bruno Haible  <bruno@clisp.org>
42426
42427         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42428         Update documentation.
42429         (func_remove_suffix): Escape all dots in the suffix. Update
42430         documentation.
42431         (func_filter_filelist): Update documentation.
42432         Reported by Ralf Wildenhues.
42433
42434 2009-01-17  Bruno Haible  <bruno@clisp.org>
42435
42436         * modules/dprintf-posix-tests: New file.
42437         * tests/test-dprintf-posix.sh: New file.
42438         * tests/test-dprintf-posix.c: New file.
42439
42440         New modules 'dprintf', 'dprintf-posix'.
42441         * lib/stdio.in.h (dprintf): New declaration.
42442         * lib/dprintf.c: New file.
42443         * m4/dprintf.m4: New file.
42444         * m4/dprintf-posix.m4: New file.
42445         * modules/dprintf: New file.
42446         * modules/dprintf-posix: New file.
42447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42448         HAVE_DPRINTF, REPLACE_DPRINTF.
42449         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42450         HAVE_DPRINTF, REPLACE_DPRINTF.
42451         * doc/posix-functions/dprintf.texi: Mention the new modules.
42452
42453 2009-01-17  Bruno Haible  <bruno@clisp.org>
42454
42455         * modules/vdprintf-posix-tests: New file.
42456         * tests/test-vdprintf-posix.sh: New file.
42457         * tests/test-vdprintf-posix.c: New file.
42458
42459         New modules 'vdprintf', 'vdprintf-posix'.
42460         * lib/stdio.in.h (vdprintf): New declaration.
42461         * lib/vdprintf.c: New file.
42462         * m4/vdprintf.m4: New file.
42463         * m4/vdprintf-posix.m4: New file.
42464         * modules/vdprintf: New file.
42465         * modules/vdprintf-posix: New file.
42466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42467         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42468         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42469         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42470         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42471
42472 2009-01-17  Bruno Haible  <bruno@clisp.org>
42473
42474         Fix replacement of fopen on mingw.
42475         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42476         mingw.
42477
42478 2009-01-17  Bruno Haible  <bruno@clisp.org>
42479
42480         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42481         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42482
42483 2009-01-17  Bruno Haible  <bruno@clisp.org>
42484
42485         Avoid test-fflush2.sh failure on mingw.
42486         * tests/test-fflush2.c: Include binary-io.h.
42487         (main): Put standard input into binary mode.
42488         * modules/fflush-tests (Depends-on): Add binary-io.
42489
42490 2009-01-17  Bruno Haible  <bruno@clisp.org>
42491
42492         * lib/wchar.in.h: In another particular situation, include only the
42493         system's <wchar.h> file.
42494         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42495         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42496         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42497
42498 2009-01-17  Bruno Haible  <bruno@clisp.org>
42499
42500         Support for stripping executables in --enable-relocatable.
42501         * build-aux/install-reloc: Expect one more argument, or an environment
42502         variable RELOC_STRIP_PROG. If set, strip the destination program and
42503         its wrapper.
42504         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42505         RELOC_STRIP_PROG.
42506         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42507         to set RELOCATABLE_STRIP.
42508         * NEWS: Mention the new Makefile requirement.
42509
42510 2009-01-17  Bruno Haible  <bruno@clisp.org>
42511
42512         * build-aux/install-reloc: Remove debugging information left over by
42513         C compiler on MacOS X.
42514
42515 2009-01-17  Bruno Haible  <bruno@clisp.org>
42516
42517         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42518         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42519         _NSGetExecutablePath.
42520
42521 2009-01-16  Jim Meyering  <meyering@redhat.com>
42522
42523         strerror: avoid warnings about discarding "const"
42524         * lib/strerror.c (rpl_strerror): Instead of returning a const
42525         string from each and every "case", use a variable, and add a single
42526         cast after the switch.
42527
42528 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42529
42530         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42531
42532 2009-01-16  Bruno Haible  <bruno@clisp.org>
42533
42534         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42535         array initializer syntax that also works in C++ mode.
42536         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42537
42538 2009-01-16  Jim Meyering  <meyering@redhat.com>
42539
42540         poll: suppress a warning
42541         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42542         to ignore "...unsigned expression < 0 is always false" warnings.
42543
42544 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42545
42546         poll: remove declarations of unused variables
42547         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42548         sockbuf and optlen.
42549
42550 2009-01-15  Bruno Haible  <bruno@clisp.org>
42551
42552         Make fflush-after-ungetc POSIX compliant on BSD systems.
42553         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42554         (clear_ungetc_buffer): Implement also for other systems.
42555         (rpl_fflush): On glibc systems, invoke
42556         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42557         clear_ungetc_buffer after fetching the stream's position, not before.
42558
42559 2009-01-15  Bruno Haible  <bruno@clisp.org>
42560
42561         Make fflush-after-ungetc POSIX compliant on glibc systems.
42562         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42563         after ungetc.
42564         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42565         (rpl_fflush): On glibc systems, simply call the system's fflush
42566         function after clearing the ungetc buffer.
42567         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42568         Instead, lseek only to the end of file, then use the system's fseeko
42569         for the rest. On glibc systems, reset the EOF indicator bit.
42570
42571 2009-01-15  Jim Meyering  <meyering@redhat.com>
42572
42573         openmp.m4: revert quote-adding change, for portability to older autoconf
42574         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42575         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42576         Simon Josefsson noticed the problem when using autoconf-2.61.
42577
42578 2009-01-15  Bruno Haible  <bruno@clisp.org>
42579
42580         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42581         * tests/test-fflush2.c (ASSERT): Always fail.
42582         (main): Add two tests for fflush() after ungetc(), taking into account
42583         the Austin Group's clarification.
42584         Suggested by Eric Blake.
42585
42586 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42587
42588         mktime.m4: remove K&R-style function prototypes
42589         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42590         for the Sun C++ compiler.
42591
42592 2009-01-14  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42595         while including <wchar.h>.
42596         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42597         the system's <wchar.h> file.
42598         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42599
42600 2009-01-14  Bruno Haible  <bruno@clisp.org>
42601
42602         * m4/csharp.m4: Don't mention gettext on the serial number line.
42603         * m4/csharpexec.m4: Likewise.
42604         * m4/eaccess.m4: Likewise.
42605         * m4/javaexec.m4: Likewise.
42606         * m4/sig_atomic_t.m4: Likewise.
42607         * m4/tmpdir.m4: Likewise.
42608         * m4/intldir.m4: Bump gettext version.
42609         * m4/lib-ld.m4: Likewise.
42610
42611 2009-01-14  Bruno Haible  <bruno@clisp.org>
42612
42613         * lib/progname.c (set_program_name): Add more comments.
42614         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42615
42616 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42617
42618         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42619         were sys/stat.h does not define it.
42620
42621 2009-01-14  Jim Meyering  <meyering@redhat.com>
42622
42623         many *.m4 files: improve m4 quoting
42624         99% of this change was performed by running the following commands:
42625         git ls-files | grep '\.m4$' | xargs perl -pi \
42626           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42627           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42628           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42629           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42630         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42631         The remainder were to add Copyright dates, increment serial numbers,
42632         undo some changes in comments, exclude m4/intl.m4, and add quotes
42633         around the "1" in ",1" where the unusual spacing prohibited the
42634         above regexps from doing the job.  For more details, see
42635         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42636         * m4/acl.m4: Modified.
42637         * m4/afs.m4: Likewise.
42638         * m4/alloca.m4: Likewise.
42639         * m4/argp.m4: Likewise.
42640         * m4/argz.m4: Likewise.
42641         * m4/atexit.m4: Likewise.
42642         * m4/bison-i18n.m4: Likewise.
42643         * m4/bison.m4: Likewise.
42644         * m4/byteswap.m4: Likewise.
42645         * m4/c-stack.m4: Likewise.
42646         * m4/c-strtod.m4: Likewise.
42647         * m4/calloc.m4: Likewise.
42648         * m4/canonicalize-lgpl.m4: Likewise.
42649         * m4/chown.m4: Likewise.
42650         * m4/clock_time.m4: Likewise.
42651         * m4/codeset.m4: Likewise.
42652         * m4/copy-file.m4: Likewise.
42653         * m4/csharp.m4: Likewise.
42654         * m4/csharpcomp.m4: Likewise.
42655         * m4/csharpexec.m4: Likewise.
42656         * m4/d-ino.m4: Likewise.
42657         * m4/d-type.m4: Likewise.
42658         * m4/dirfd.m4: Likewise.
42659         * m4/double-slash-root.m4: Likewise.
42660         * m4/eaccess.m4: Likewise.
42661         * m4/eealloc.m4: Likewise.
42662         * m4/environ.m4: Likewise.
42663         * m4/errno_h.m4: Likewise.
42664         * m4/euidaccess.m4: Likewise.
42665         * m4/execute.m4: Likewise.
42666         * m4/fatal-signal.m4: Likewise.
42667         * m4/fchdir.m4: Likewise.
42668         * m4/fcntl_h.m4: Likewise.
42669         * m4/fileblocks.m4: Likewise.
42670         * m4/filenamecat.m4: Likewise.
42671         * m4/findprog.m4: Likewise.
42672         * m4/flexmember.m4: Likewise.
42673         * m4/fnmatch.m4: Likewise.
42674         * m4/fopen.m4: Likewise.
42675         * m4/fpending.m4: Likewise.
42676         * m4/fprintf-posix.m4: Likewise.
42677         * m4/free.m4: Likewise.
42678         * m4/frexp.m4: Likewise.
42679         * m4/frexpl.m4: Likewise.
42680         * m4/fsusage.m4: Likewise.
42681         * m4/ftruncate.m4: Likewise.
42682         * m4/gc-camellia.m4: Likewise.
42683         * m4/gc-random.m4: Likewise.
42684         * m4/gc.m4: Likewise.
42685         * m4/getaddrinfo.m4: Likewise.
42686         * m4/getcwd-abort-bug.m4: Likewise.
42687         * m4/getcwd-path-max.m4: Likewise.
42688         * m4/getdate.m4: Likewise.
42689         * m4/getdomainname.m4: Likewise.
42690         * m4/getgroups.m4: Likewise.
42691         * m4/gethostname.m4: Likewise.
42692         * m4/gethrxtime.m4: Likewise.
42693         * m4/getline.m4: Likewise.
42694         * m4/getloadavg.m4: Likewise.
42695         * m4/getndelim2.m4: Likewise.
42696         * m4/getpass.m4: Likewise.
42697         * m4/gettext.m4: Likewise.
42698         * m4/gettime.m4: Likewise.
42699         * m4/gettimeofday.m4: Likewise.
42700         * m4/gnulib-common.m4: Likewise.
42701         * m4/group-member.m4: Likewise.
42702         * m4/host-os.m4: Likewise.
42703         * m4/iconv.m4: Likewise.
42704         * m4/iconv_open.m4: Likewise.
42705         * m4/inet_ntop.m4: Likewise.
42706         * m4/inet_pton.m4: Likewise.
42707         * m4/inline.m4: Likewise.
42708         * m4/intldir.m4: Likewise.
42709         * m4/intlmacosx.m4: Likewise.
42710         * m4/intmax.m4: Likewise.
42711         * m4/intmax_t.m4: Likewise.
42712         * m4/inttypes.m4: Likewise.
42713         * m4/inttypes_h.m4: Likewise.
42714         * m4/inttypes-pri.m4: Likewise.
42715         * m4/isapipe.m4: Likewise.
42716         * m4/isnand.m4: Likewise.
42717         * m4/isnanf.m4: Likewise.
42718         * m4/isnanl.m4: Likewise.
42719         * m4/javacomp.m4: Likewise.
42720         * m4/javaexec.m4: Likewise.
42721         * m4/jm-winsz1.m4: Likewise.
42722         * m4/jm-winsz2.m4: Likewise.
42723         * m4/lchown.m4: Likewise.
42724         * m4/lcmessage.m4: Likewise.
42725         * m4/ldexpl.m4: Likewise.
42726         * m4/lib-ld.m4: Likewise.
42727         * m4/lib-link.m4: Likewise.
42728         * m4/libsigsegv.m4: Likewise.
42729         * m4/link-follow.m4: Likewise.
42730         * m4/localcharset.m4: Likewise.
42731         * m4/locale-fr.m4: Likewise.
42732         * m4/locale-ja.m4: Likewise.
42733         * m4/locale-tr.m4: Likewise.
42734         * m4/locale-zh.m4: Likewise.
42735         * m4/lock.m4: Likewise.
42736         * m4/longlong.m4: Likewise.
42737         * m4/ls-mntd-fs.m4: Likewise.
42738         * m4/lstat.m4: Likewise.
42739         * m4/malloc.m4: Likewise.
42740         * m4/mathl.m4: Likewise.
42741         * m4/mbrtowc.m4: Likewise.
42742         * m4/mbstate_t.m4: Likewise.
42743         * m4/mbswidth.m4: Likewise.
42744         * m4/memchr.m4: Likewise.
42745         * m4/memcmp.m4: Likewise.
42746         * m4/memcpy.m4: Likewise.
42747         * m4/memmem.m4: Likewise.
42748         * m4/memmove.m4: Likewise.
42749         * m4/mempcpy.m4: Likewise.
42750         * m4/memrchr.m4: Likewise.
42751         * m4/memset.m4: Likewise.
42752         * m4/minmax.m4: Likewise.
42753         * m4/mkdir-slash.m4: Likewise.
42754         * m4/mkdtemp.m4: Likewise.
42755         * m4/mktime.m4: Likewise.
42756         * m4/mmap-anon.m4: Likewise.
42757         * m4/mountlist.m4: Likewise.
42758         * m4/nanosleep.m4: Likewise.
42759         * m4/nls.m4: Likewise.
42760         * m4/nocrash.m4: Likewise.
42761         * m4/open.m4: Likewise.
42762         * m4/openat.m4: Likewise.
42763         * m4/openmp.m4: Likewise.
42764         * m4/pathmax.m4: Likewise.
42765         * m4/perl.m4: Likewise.
42766         * m4/physmem.m4: Likewise.
42767         * m4/pipe.m4: Likewise.
42768         * m4/po.m4: Likewise.
42769         * m4/poll.m4: Likewise.
42770         * m4/posixtm.m4: Likewise.
42771         * m4/posixver.m4: Likewise.
42772         * m4/printf-frexp.m4: Likewise.
42773         * m4/printf-frexpl.m4: Likewise.
42774         * m4/printf-posix.m4: Likewise.
42775         * m4/printf-posix-rpl.m4: Likewise.
42776         * m4/printf.m4: Likewise.
42777         * m4/progtest.m4: Likewise.
42778         * m4/putenv.m4: Likewise.
42779         * m4/readline.m4: Likewise.
42780         * m4/readlink.m4: Likewise.
42781         * m4/readutmp.m4: Likewise.
42782         * m4/realloc.m4: Likewise.
42783         * m4/regex.m4: Likewise.
42784         * m4/relocatable.m4: Likewise.
42785         * m4/relocatable-lib.m4: Likewise.
42786         * m4/rename-dest-slash.m4: Likewise.
42787         * m4/rename.m4: Likewise.
42788         * m4/rmdir-errno.m4: Likewise.
42789         * m4/rmdir.m4: Likewise.
42790         * m4/roundf.m4: Likewise.
42791         * m4/roundl.m4: Likewise.
42792         * m4/rpmatch.m4: Likewise.
42793         * m4/save-cwd.m4: Likewise.
42794         * m4/selinux-selinux-h.m4: Likewise.
42795         * m4/setenv.m4: Likewise.
42796         * m4/settime.m4: Likewise.
42797         * m4/sig2str.m4: Likewise.
42798         * m4/sig_atomic_t.m4: Likewise.
42799         * m4/signalblocking.m4: Likewise.
42800         * m4/signbit.m4: Likewise.
42801         * m4/sigpipe.m4: Likewise.
42802         * m4/sockets.m4: Likewise.
42803         * m4/sockpfaf.m4: Likewise.
42804         * m4/st_dm_mode.m4: Likewise.
42805         * m4/stat-time.m4: Likewise.
42806         * m4/stdbool.m4: Likewise.
42807         * m4/stdint.m4: Likewise.
42808         * m4/stdint_h.m4: Likewise.
42809         * m4/stpcpy.m4: Likewise.
42810         * m4/stpncpy.m4: Likewise.
42811         * m4/strcase.m4: Likewise.
42812         * m4/strchrnul.m4: Likewise.
42813         * m4/strcspn.m4: Likewise.
42814         * m4/strdup.m4: Likewise.
42815         * m4/strftime.m4: Likewise.
42816         * m4/strndup.m4: Likewise.
42817         * m4/strnlen.m4: Likewise.
42818         * m4/strpbrk.m4: Likewise.
42819         * m4/strptime.m4: Likewise.
42820         * m4/strsep.m4: Likewise.
42821         * m4/strtod.m4: Likewise.
42822         * m4/strtoimax.m4: Likewise.
42823         * m4/strtok_r.m4: Likewise.
42824         * m4/strtol.m4: Likewise.
42825         * m4/strtoll.m4: Likewise.
42826         * m4/strtoul.m4: Likewise.
42827         * m4/strtoull.m4: Likewise.
42828         * m4/strtoumax.m4: Likewise.
42829         * m4/strverscmp.m4: Likewise.
42830         * m4/threadlib.m4: Likewise.
42831         * m4/timegm.m4: Likewise.
42832         * m4/tm_gmtoff.m4: Likewise.
42833         * m4/tmpdir.m4: Likewise.
42834         * m4/tmpfile.m4: Likewise.
42835         * m4/tzset.m4: Likewise.
42836         * m4/uintmax_t.m4: Likewise.
42837         * m4/unlinkdir.m4: Likewise.
42838         * m4/unlocked-io.m4: Likewise.
42839         * m4/uptime.m4: Likewise.
42840         * m4/userspec.m4: Likewise.
42841         * m4/utimbuf.m4: Likewise.
42842         * m4/utime.m4: Likewise.
42843         * m4/utimes-null.m4: Likewise.
42844         * m4/utimes.m4: Likewise.
42845         * m4/vararrays.m4: Likewise.
42846         * m4/vasnprintf.m4: Likewise.
42847         * m4/vfprintf-posix.m4: Likewise.
42848         * m4/vprintf-posix.m4: Likewise.
42849         * m4/wait-process.m4: Likewise.
42850         * m4/wchar_t.m4: Likewise.
42851         * m4/wint_t.m4: Likewise.
42852         * m4/write-any-file.m4: Likewise.
42853         * m4/yield.m4: Likewise.
42854
42855 2009-01-13  Bruno Haible  <bruno@clisp.org>
42856
42857         Avoid test-copy-file.sh failures when ACL support insufficient.
42858         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42859         TESTS_ENVIRONMENT.
42860         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42861         Reported by Jim Meyering.
42862
42863 2009-01-13  Bruno Haible  <bruno@clisp.org>
42864
42865         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42866         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42867         * modules/unistdio/u8-printf-parse (Files): Likewise.
42868         * modules/unistdio/u32-printf-parse (Files): Likewise.
42869         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42870
42871 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42872
42873         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42874         and m4/inttypes_h.m4 too.
42875
42876 2009-01-12  Eric Blake  <ebb9@byu.net>
42877
42878         tests: IRIX 6.2 cc can't compile -0.0 into .data
42879         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42880         rather than at compile-time.
42881         * tests/test-floorl.c (minus_zero): Likewise.
42882         * tests/test-frexpl.c (minus_zero): Likewise.
42883         * tests/test-isnan.c (minus_zerol): Likewise.
42884         * tests/test-isnanl.h (minus_zero): Likewise.
42885         * tests/test-ldexpl.c (minus_zero): Likewise.
42886         * tests/test-roundl.c (minus_zero): Likewise.
42887         * tests/test-signbit.c (minus_zerol): Likewise.
42888         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42889         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42890         * tests/test-truncl.c (minus_zero): Likewise.
42891         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42892         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42893         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42894
42895 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42896
42897         regex: fix glibc bug 9697
42898         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42899         handling.
42900
42901 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42902
42903         regex: fix glibc bug 697
42904         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42905         being NULL also if there are no backreferences.
42906
42907 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42908
42909         regex: merge glibc changes
42910         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42911         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42912         re_string_skip_chars, re_string_reconstruct): Likewise.
42913         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42914
42915 2009-01-07  Jim Meyering  <meyering@redhat.com>
42916
42917         poll: filter through cppi
42918         * lib/poll.c: Indent cpp directives to reflect nesting.
42919
42920 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42921
42922         poll: don't return uninitialized
42923         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42924
42925 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42926
42927         avoid compile failure on AIX 6.1
42928         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42929         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42930
42931 2009-01-04  Jim Meyering  <meyering@redhat.com>
42932
42933         remove duplicate inclusion of <stdio.h>
42934         * tests/test-fprintf-posix.c: Likewise.
42935         * tests/test-printf-posix.c: Likewise.
42936         * tests/test-snprintf-posix.c: Likewise.
42937         * tests/test-sprintf-posix.c: Likewise.
42938         * tests/test-vasprintf-posix.c: Likewise.
42939         * tests/test-vfprintf-posix.c: Likewise.
42940         * tests/test-vprintf-posix.c: Likewise.
42941         * tests/test-vsnprintf-posix.c: Likewise.
42942         * tests/test-vsprintf-posix.c: Likewise.
42943
42944 2009-01-03  Jim Meyering  <meyering@redhat.com>
42945
42946         gnulib-tool: fix sed-based filtering
42947         * gnulib-tool (func_filter_filelist): Remove extra backslash
42948         in sed_fff_filter definition.
42949
42950 2009-01-02  Jim Meyering  <meyering@redhat.com>
42951
42952         strftime: avoid compilation failure on Solaris 2.6
42953         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42954         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42955         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42956         be available.  Reported by Tom G. Christensen.  Details in
42957         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42958
42959 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42960             Bruno Haible  <bruno@clisp.org>
42961
42962         Speed up gnulib-tool by doing more string processing through shell
42963         built-ins.
42964         * gnulib-tool (fast_func_append): New variable.
42965         (func_remove_prefix, func_remove_suffix): New functions.
42966         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42967         (func_filter_filelist): New function.
42968         (func_get_dependencies): Use func_remove_suffix instead of sed.
42969         (func_get_automake_snippet): Use func_filter_filelist instead of a
42970         subshell and sed invocation.
42971
42972 2009-01-01  Bruno Haible  <bruno@clisp.org>
42973
42974         Fix a security bug.
42975         * gnulib-tool (func_import, import, update): Don't allow the characters
42976         '"', '$', '`', '\' in macro arguments that become part of commands that
42977         are evaluated.
42978
42979 2009-01-01  Bruno Haible  <bruno@clisp.org>
42980
42981         * gnulib-tool (func_reset_sigpipe): Add more comments.
42982
42983 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42984
42985         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42986         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42987         already know the answer.
42988
42989 2009-01-01  Jim Meyering  <meyering@redhat.com>
42990
42991         * lib/version-etc.c (version_etc_va): Update copyright year.
42992
42993 2008-12-30  Bruno Haible  <bruno@clisp.org>
42994
42995         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
42996         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
42997         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
42998
42999 2008-12-29  Eric Blake  <ebb9@byu.net>
43000
43001         multiarch: avoid autoconf AC_REQUIRE bug
43002         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43003         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43004         2.63 and older.
43005         Reported by Bruno Haible, and analyzed in
43006         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43007
43008 2008-12-29  Bruno Haible  <bruno@clisp.org>
43009
43010         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43011         files in subdirectories correctly.
43012         Reported by Ralf Wildenhues.
43013
43014 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43015
43016         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43017         rather than 'join FILE -', for Solaris join.
43018
43019 2008-12-29  Bruno Haible  <bruno@clisp.org>
43020
43021         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43022         quoting.
43023         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43024         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43025         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43026         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43027         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43028         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43029         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43030         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43031         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43032         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43033         * m4/nls.m4 (AM_NLS): Likewise.
43034         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43035         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43036         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43037         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43038         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43039         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43040         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43041         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43042         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43043         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43044         * m4/xsize.m4 (gl_XSIZE): Likewise.
43045         Suggested by Jim Meyering.
43046
43047 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43048
43049         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43050         * lib/parse-duration.c: use a switch instead of cascading if's.
43051
43052 2008-12-29  Eric Blake  <ebb9@byu.net>
43053
43054         wchar.h: supply WEOF on Irix 5.3
43055         * lib/wchar.in.h (wint_t): Also supply WEOF.
43056         * lib/wctype.in.h (wint_t): Likewise.
43057         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43058         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43059         Reported by Tom G. Christensen.
43060
43061 2008-12-26  Bruno Haible  <bruno@clisp.org>
43062
43063         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43064         i486, i586, i686.
43065
43066 2008-12-26  Bruno Haible  <bruno@clisp.org>
43067
43068         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43069
43070 2008-12-26  Bruno Haible  <bruno@clisp.org>
43071
43072         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43073         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43074         not __STDC_CONSTANT_MACROS.
43075         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43076
43077 2008-12-25  Bruno Haible  <bruno@clisp.org>
43078
43079         Add support for universal builds to vasnprintf.
43080         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43081         universal builds, guess no.
43082         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43083         * modules/vasprintf-posix (Depends-on): Likewise.
43084         * modules/fprintf-posix (Depends-on): Likewise.
43085         * modules/vfprintf-posix (Depends-on): Likewise.
43086         * modules/snprintf-posix (Depends-on): Likewise.
43087         * modules/vsnprintf-posix (Depends-on): Likewise.
43088         * modules/sprintf-posix (Depends-on): Likewise.
43089         * modules/vsprintf-posix (Depends-on): Likewise.
43090         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43091         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43092         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43093         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43094         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43095         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43096         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43097
43098         Add support for universal builds to <inttypes.h>.
43099         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43100         _SCNu64_PREFIX): In Apple
43101         universal builds, define directly, using _LP64.
43102         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43103         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43104         * modules/inttypes (Depends-on): Add multiarch.
43105         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43106
43107         Add support for universal builds to <stdint.h>.
43108         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43109         universal builds, define directly, using _LP64.
43110         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43111         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43112         and size_t.
43113         * modules/stdint (Depends-on): Add multiarch.
43114         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43115
43116         New module 'multiarch'.
43117         * modules/multiarch: New file.
43118         * m4/multiarch.m4: New file.
43119
43120 2008-12-25  Bruno Haible  <bruno@clisp.org>
43121
43122         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43123
43124 2008-12-25  Bruno Haible  <bruno@clisp.org>
43125
43126         * modules/btowc (License): Relicense under LGPLv2+.
43127         * modules/mbsinit (License): Likewise.
43128         * modules/mbrtowc (License): Likewise.
43129         * modules/wcrtomb (License): Likewise.
43130         * modules/streq (License): Likewise.
43131         Reported by David Lutterkort <lutter@redhat.com>.
43132
43133 2008-12-23  Bruno Haible  <bruno@clisp.org>
43134
43135         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43136
43137 2008-12-23  Bruno Haible  <bruno@clisp.org>
43138
43139         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43140         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43141         GETADDRINFO_LIB, not in LIBS.
43142         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43143         * modules/canon-host (Link): Likewise.
43144         * NEWS: Mention the change.
43145         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43146         GETADDRINFO_LIB.
43147
43148 2008-12-22  Bruno Haible  <bruno@clisp.org>
43149
43150         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43151         * doc/posix-functions/iswalpha_l.texi: Likewise.
43152         * doc/posix-functions/iswblank_l.texi: Likewise.
43153         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43154         * doc/posix-functions/iswctype_l.texi: Likewise.
43155         * doc/posix-functions/iswdigit_l.texi: Likewise.
43156         * doc/posix-functions/iswgraph_l.texi: Likewise.
43157         * doc/posix-functions/iswlower_l.texi: Likewise.
43158         * doc/posix-functions/iswprint_l.texi: Likewise.
43159         * doc/posix-functions/iswpunct_l.texi: Likewise.
43160         * doc/posix-functions/iswspace_l.texi: Likewise.
43161         * doc/posix-functions/iswupper_l.texi: Likewise.
43162         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43163         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43164         * doc/posix-functions/open_wmemstream.texi: Likewise.
43165         * doc/posix-functions/swscanf.texi: Likewise.
43166         * doc/posix-functions/towctrans_l.texi: Likewise.
43167         * doc/posix-functions/towlower.texi: Likewise.
43168         * doc/posix-functions/towlower_l.texi: Likewise.
43169         * doc/posix-functions/towupper.texi: Likewise.
43170         * doc/posix-functions/towupper_l.texi: Likewise.
43171         * doc/posix-functions/vfwprintf.texi: Likewise.
43172         * doc/posix-functions/vfwscanf.texi: Likewise.
43173         * doc/posix-functions/vswscanf.texi: Likewise.
43174         * doc/posix-functions/vwprintf.texi: Likewise.
43175         * doc/posix-functions/vwscanf.texi: Likewise.
43176         * doc/posix-functions/wcpcpy.texi: Likewise.
43177         * doc/posix-functions/wcpncpy.texi: Likewise.
43178         * doc/posix-functions/wcscasecmp.texi: Likewise.
43179         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43180         * doc/posix-functions/wcscoll_l.texi: Likewise.
43181         * doc/posix-functions/wcsdup.texi: Likewise.
43182         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43183         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43184         * doc/posix-functions/wcsnlen.texi: Likewise.
43185         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43186         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43187         * doc/posix-functions/wctrans_l.texi: Likewise.
43188         * doc/posix-functions/wctype_l.texi: Likewise.
43189         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43190         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43191         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43192         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43193         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43194         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43195         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43196         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43197         * doc/glibc-functions/wcschrnul.texi: Likewise.
43198         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43199         * doc/glibc-functions/wcstod_l.texi: Likewise.
43200         * doc/glibc-functions/wcstof_l.texi: Likewise.
43201         * doc/glibc-functions/wcstol_l.texi: Likewise.
43202         * doc/glibc-functions/wcstold_l.texi: Likewise.
43203         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43204         * doc/glibc-functions/wcstoq.texi: Likewise.
43205         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43206         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43207         * doc/glibc-functions/wcstouq.texi: Likewise.
43208         * doc/glibc-functions/wmempcpy.texi: Likewise.
43209
43210 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43211             Eric Blake  <ebb9@byu.net>
43212             Paolo Bonzini  <bonzini@gnu.org>
43213             Bruno Haible  <bruno@clisp.org>
43214
43215         Make c-stack work on Haiku.
43216         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43217         (c_stack_action): Use SA_ONSTACK flag.
43218
43219 2008-12-22  Bruno Haible  <bruno@clisp.org>
43220
43221         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43222
43223 2008-12-22  Bruno Haible  <bruno@clisp.org>
43224
43225         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43226         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43227         being overridden.
43228         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43229         New macros.
43230         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43232         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43233         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43234
43235 2008-12-22  Bruno Haible  <bruno@clisp.org>
43236
43237         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43238         from test code.
43239
43240 2008-12-22  Eric Blake  <ebb9@byu.net>
43241
43242         Avoid gcc warnings on cygwin.
43243         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43244         Avoid unused variable.
43245         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43246         Likewise.
43247
43248 2008-12-22  Bruno Haible  <bruno@clisp.org>
43249
43250         Remove HAVE_MBRTOWC conditionals.
43251         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43252         (mbscasecmp): Assume mbrtowc function.
43253         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43254         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43255         * lib/mbschr.c: Include mbuiter.h unconditionally.
43256         (mbschr): Assume mbrtowc function.
43257         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43258         (mbscspn): Assume mbrtowc function.
43259         * lib/mbslen.c: Include mbuiter.h unconditionally.
43260         (mbslen): Assume mbrtowc function.
43261         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43262         (mbsncasecmp): Assume mbrtowc function.
43263         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43264         (mbsnlen): Assume mbrtowc function.
43265         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43266         (mbspbrk): Assume mbrtowc function.
43267         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43268         (mbspcasecmp): Assume mbrtowc function.
43269         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43270         (mbsrchr): Assume mbrtowc function.
43271         * lib/mbssep.c: Include mbuiter.h unconditionally.
43272         (mbssep): Assume mbrtowc function.
43273         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43274         (mbsspn): Assume mbrtowc function.
43275         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43276         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43277         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43278         (mbstok_r): Assume mbrtowc function.
43279         * lib/propername.c: Include mbuiter.h unconditionally.
43280         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43281         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43282         (trim2): Assume mbrtowc function.
43283         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43284         (mbsnwidth): Assume mbrtowc function.
43285         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43286         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43287         fallback definitions.
43288         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43289
43290 2008-12-22  Bruno Haible  <bruno@clisp.org>
43291
43292         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43293
43294 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43295
43296         * modules/regex: Request emulations for the mb*/wc* functions we need.
43297         * m4/regex.m4: Don't look for those functions here.
43298         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43299
43300 2008-12-22  Bruno Haible  <bruno@clisp.org>
43301
43302         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43303
43304 2008-12-21  Bruno Haible  <bruno@clisp.org>
43305
43306         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43307         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43308         (Include): Remove conditionalization.
43309         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43310         (Include): Remove conditionalization.
43311         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43312         (Include): Remove conditionalization.
43313         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43314         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43315         * NEWS: Mention the change.
43316         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43317         via Sergey Poznyakoff <gray@gnu.org.ua>.
43318
43319 2008-12-21  Bruno Haible  <bruno@clisp.org>
43320
43321         * MODULES.html.sh (Extended multibyte and wide character utilities
43322         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43323         wcrtomb, wcsrtombs.
43324         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43325         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43326         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43327         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43328
43329 2008-12-21  Bruno Haible  <bruno@clisp.org>
43330
43331         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43332
43333 2008-12-21  Bruno Haible  <bruno@clisp.org>
43334
43335         * modules/wcsnrtombs-tests: New file.
43336         * tests/test-wcsnrtombs1.sh: New file.
43337         * tests/test-wcsnrtombs2.sh: New file.
43338         * tests/test-wcsnrtombs3.sh: New file.
43339         * tests/test-wcsnrtombs4.sh: New file.
43340         * tests/test-wcsnrtombs.c: New file.
43341
43342         New module 'wcsnrtombs'.
43343         * lib/wchar.in.h (wcsnrtombs): New declaration.
43344         * lib/wcsnrtombs.c: New file.
43345         * lib/wcsrtombs-state.c: New file.
43346         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43347         (internal_state): Remove variable.
43348         * m4/wcsnrtombs.m4: New file.
43349         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43350         compilation units.
43351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43352         HAVE_WCSNRTOMBS.
43353         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43354         HAVE_WCSNRTOMBS.
43355         * modules/wcsnrtombs: New file.
43356         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43357         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43358
43359 2008-12-21  Bruno Haible  <bruno@clisp.org>
43360
43361         * modules/wcsrtombs-tests: New file.
43362         * tests/test-wcsrtombs1.sh: New file.
43363         * tests/test-wcsrtombs2.sh: New file.
43364         * tests/test-wcsrtombs3.sh: New file.
43365         * tests/test-wcsrtombs4.sh: New file.
43366         * tests/test-wcsrtombs.c: New file.
43367
43368         New module 'wcsrtombs'.
43369         * lib/wchar.in.h (wcsrtombs): New declaration.
43370         * lib/wcsrtombs.c: New file.
43371         * m4/wcsrtombs.m4: New file.
43372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43373         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43375         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43376         * modules/wcsrtombs: New file.
43377         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43378         bugs.
43379
43380 2008-12-21  Bruno Haible  <bruno@clisp.org>
43381
43382         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43383         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43384         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43385         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43386         if not correct.
43387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43388         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43389         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43390         m4/locale-zh.m4, m4/codeset.m4.
43391         * doc/posix-functions/wcrtomb.texi: Document the bug.
43392
43393 2008-12-21  Bruno Haible  <bruno@clisp.org>
43394
43395         Work around a btowc() bug on IRIX 6.5.
43396         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43397         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43398         REPLACE_WTOBC if not.
43399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43400         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43401         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43402
43403 2008-12-21  Bruno Haible  <bruno@clisp.org>
43404
43405         * modules/wcrtomb-tests: New file.
43406         * tests/test-wcrtomb.sh: New file.
43407         * tests/test-wcrtomb.c: New file.
43408
43409         New module 'wcrtomb'.
43410         * lib/wchar.in.h (wcrtomb): New declaration.
43411         * lib/wcrtomb.c: New file.
43412         * m4/wcrtomb.m4: New file.
43413         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43414         HAVE_WCRTOMB.
43415         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43416         HAVE_WCRTOMB.
43417         * modules/wcrtomb: New file.
43418         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43419
43420 2008-12-21  Bruno Haible  <bruno@clisp.org>
43421
43422         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43423         * modules/mbsrtowcs (Files): Likewise.
43424         * modules/wctob (Files): Likewise.
43425         * modules/c-strcase-tests (Files): Likewise.
43426         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43427         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43428         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43429         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43430         * modules/vasnprintf-posix-tests (Files): Likewise.
43431
43432 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43433
43434         gitlog-to-changelog: pass all command-line arguments to git-log
43435         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43436         it is sometimes convenient to filter the commits in various ways.
43437         gitlog-to-changelog only allows --since to specify a start date,
43438         but git-log itself supports many other filtering mechanisms.
43439         At the moment, I want to filter by branch name.  Rather than
43440         adding a --branch option to gitlog-to-changelog, it seems more
43441         flexible to simply pass all options directly to git-log and let
43442         git do the work.  Notice that this effectively makes --since a
43443         redundant option for gitlog-to-changelog, but removing it would
43444         require current usage to change since calls would then require
43445         an additional '--'.
43446
43447 2008-12-21  Bruno Haible  <bruno@clisp.org>
43448
43449         * modules/mbsnrtowcs-tests: New file.
43450         * tests/test-mbsnrtowcs1.sh: New file.
43451         * tests/test-mbsnrtowcs2.sh: New file.
43452         * tests/test-mbsnrtowcs3.sh: New file.
43453         * tests/test-mbsnrtowcs4.sh: New file.
43454         * tests/test-mbsnrtowcs.c: New file.
43455
43456         New module 'mbsnrtowcs'.
43457         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43458         * lib/mbsnrtowcs.c: New file.
43459         * lib/mbsrtowcs-state.c: New file.
43460         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43461         (internal_state): Remove variable.
43462         * m4/mbsnrtowcs.m4: New file.
43463         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43464         compilation units.
43465         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43466         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43467         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43468         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43469         * modules/mbsnrtowcs: New file.
43470         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43471         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43472         portability problem.
43473
43474 2008-12-21  Bruno Haible  <bruno@clisp.org>
43475
43476         Work around mbsrtowcs bug.
43477         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43478         (gl_FUNC_MBSRTOWCS): Invoke it.
43479         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43480         m4/locale-zh.m4.
43481         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43482
43483 2008-12-21  Bruno Haible  <bruno@clisp.org>
43484
43485         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43486
43487 2008-12-21  Bruno Haible  <bruno@clisp.org>
43488
43489         Update doc for AIX.
43490         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43491         16-bit wchar_t type.
43492         * doc/posix-functions/btowc.texi: Likewise.
43493         * doc/posix-functions/fgetwc.texi: Likewise.
43494         * doc/posix-functions/fgetws.texi: Likewise.
43495         * doc/posix-functions/fputwc.texi: Likewise.
43496         * doc/posix-functions/fputws.texi: Likewise.
43497         * doc/posix-functions/fwide.texi: Likewise.
43498         * doc/posix-functions/fwprintf.texi: Likewise.
43499         * doc/posix-functions/fwscanf.texi: Likewise.
43500         * doc/posix-functions/getwchar.texi: Likewise.
43501         * doc/posix-functions/getwc.texi: Likewise.
43502         * doc/posix-functions/iswalnum.texi: Likewise.
43503         * doc/posix-functions/iswalpha.texi: Likewise.
43504         * doc/posix-functions/iswblank.texi: Likewise.
43505         * doc/posix-functions/iswcntrl.texi: Likewise.
43506         * doc/posix-functions/iswctype.texi: Likewise.
43507         * doc/posix-functions/iswdigit.texi: Likewise.
43508         * doc/posix-functions/iswgraph.texi: Likewise.
43509         * doc/posix-functions/iswlower.texi: Likewise.
43510         * doc/posix-functions/iswprint.texi: Likewise.
43511         * doc/posix-functions/iswpunct.texi: Likewise.
43512         * doc/posix-functions/iswspace.texi: Likewise.
43513         * doc/posix-functions/iswupper.texi: Likewise.
43514         * doc/posix-functions/iswxdigit.texi: Likewise.
43515         * doc/posix-functions/mbrtowc.texi: Likewise.
43516         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43517         * doc/posix-functions/mbstowcs.texi: Likewise.
43518         * doc/posix-functions/mbtowc.texi: Likewise.
43519         * doc/posix-functions/putwchar.texi: Likewise.
43520         * doc/posix-functions/putwc.texi: Likewise.
43521         * doc/posix-functions/swprintf.texi: Likewise.
43522         * doc/posix-functions/tolower.texi: Likewise.
43523         * doc/posix-functions/toupper.texi: Likewise.
43524         * doc/posix-functions/towctrans.texi: Likewise.
43525         * doc/posix-functions/ungetwc.texi: Likewise.
43526         * doc/posix-functions/vswprintf.texi: Likewise.
43527         * doc/posix-functions/wcrtomb.texi: Likewise.
43528         * doc/posix-functions/wcscat.texi: Likewise.
43529         * doc/posix-functions/wcschr.texi: Likewise.
43530         * doc/posix-functions/wcscmp.texi: Likewise.
43531         * doc/posix-functions/wcscoll.texi: Likewise.
43532         * doc/posix-functions/wcscpy.texi: Likewise.
43533         * doc/posix-functions/wcscspn.texi: Likewise.
43534         * doc/posix-functions/wcsftime.texi: Likewise.
43535         * doc/posix-functions/wcslen.texi: Likewise.
43536         * doc/posix-functions/wcsncat.texi: Likewise.
43537         * doc/posix-functions/wcsncmp.texi: Likewise.
43538         * doc/posix-functions/wcsncpy.texi: Likewise.
43539         * doc/posix-functions/wcspbrk.texi: Likewise.
43540         * doc/posix-functions/wcsrchr.texi: Likewise.
43541         * doc/posix-functions/wcsrtombs.texi: Likewise.
43542         * doc/posix-functions/wcsspn.texi: Likewise.
43543         * doc/posix-functions/wcsstr.texi: Likewise.
43544         * doc/posix-functions/wcstod.texi: Likewise.
43545         * doc/posix-functions/wcstof.texi: Likewise.
43546         * doc/posix-functions/wcstoimax.texi: Likewise.
43547         * doc/posix-functions/wcstok.texi: Likewise.
43548         * doc/posix-functions/wcstold.texi: Likewise.
43549         * doc/posix-functions/wcstoll.texi: Likewise.
43550         * doc/posix-functions/wcstol.texi: Likewise.
43551         * doc/posix-functions/wcstombs.texi: Likewise.
43552         * doc/posix-functions/wcstoull.texi: Likewise.
43553         * doc/posix-functions/wcstoul.texi: Likewise.
43554         * doc/posix-functions/wcstoumax.texi: Likewise.
43555         * doc/posix-functions/wcswidth.texi: Likewise.
43556         * doc/posix-functions/wcsxfrm.texi: Likewise.
43557         * doc/posix-functions/wctob.texi: Likewise.
43558         * doc/posix-functions/wctomb.texi: Likewise.
43559         * doc/posix-functions/wctrans.texi: Likewise.
43560         * doc/posix-functions/wctype.texi: Likewise.
43561         * doc/posix-functions/wcwidth.texi: Likewise.
43562         * doc/posix-functions/wmemchr.texi: Likewise.
43563         * doc/posix-functions/wmemcmp.texi: Likewise.
43564         * doc/posix-functions/wmemcpy.texi: Likewise.
43565         * doc/posix-functions/wmemmove.texi: Likewise.
43566         * doc/posix-functions/wmemset.texi: Likewise.
43567         * doc/posix-functions/wprintf.texi: Likewise.
43568         * doc/posix-functions/wscanf.texi: Likewise.
43569
43570 2008-12-21  Bruno Haible  <bruno@clisp.org>
43571
43572         Update doc for HP-UX 11.11.
43573         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43574         in HP-UX version 11.00, not in all versions of HP-UX 11.
43575         * doc/posix-functions/fwide.texi: Likewise.
43576         * doc/posix-functions/fwprintf.texi: Likewise.
43577         * doc/posix-functions/fwscanf.texi: Likewise.
43578         * doc/posix-functions/inet_ntop.texi: Likewise.
43579         * doc/posix-functions/inet_pton.texi: Likewise.
43580         * doc/posix-functions/mbrlen.texi: Likewise.
43581         * doc/posix-functions/mbrtowc.texi: Likewise.
43582         * doc/posix-functions/mbsinit.texi: Likewise.
43583         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43584         * doc/posix-functions/swprintf.texi: Likewise.
43585         * doc/posix-functions/swscanf.texi: Likewise.
43586         * doc/posix-functions/towctrans.texi: Likewise.
43587         * doc/posix-functions/vfwprintf.texi: Likewise.
43588         * doc/posix-functions/vswprintf.texi: Likewise.
43589         * doc/posix-functions/vwprintf.texi: Likewise.
43590         * doc/posix-functions/wcrtomb.texi: Likewise.
43591         * doc/posix-functions/wcsrtombs.texi: Likewise.
43592         * doc/posix-functions/wcsstr.texi: Likewise.
43593         * doc/posix-functions/wctob.texi: Likewise.
43594         * doc/posix-functions/wctrans.texi: Likewise.
43595         * doc/posix-functions/wmemchr.texi: Likewise.
43596         * doc/posix-functions/wmemcmp.texi: Likewise.
43597         * doc/posix-functions/wmemcpy.texi: Likewise.
43598         * doc/posix-functions/wmemmove.texi: Likewise.
43599         * doc/posix-functions/wmemset.texi: Likewise.
43600         * doc/posix-functions/wprintf.texi: Likewise.
43601         * doc/posix-functions/wscanf.texi: Likewise.
43602
43603 2008-12-21  Bruno Haible  <bruno@clisp.org>
43604
43605         Work around a portability problem.
43606         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43607         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43608
43609 2008-12-20  Bruno Haible  <bruno@clisp.org>
43610
43611         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43612         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43613         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43614         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43615         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43616
43617         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43618         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43619         set.
43620         (GNULIB_defined_mbstate_t): New macro.
43621         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43622         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43623         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43624         reuses the system's mbrtowc function but works around the bugs.
43625         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43626         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43627         macros.
43628         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43629         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43630         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43631         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43632         REPLACE_MBSINIT if mbsinit needs to be overridden.
43633         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43634         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43635         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43636         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43637         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43638         m4/locale-zh.m4.
43639         (Depends): Add mbsinit.
43640         * modules/mbsinit (Depends): Add mbrtowc.
43641         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43642
43643 2008-12-20  Bruno Haible  <bruno@clisp.org>
43644
43645         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43646         so that there are no conversion errors on AIX.
43647         * tests/test-mbsrtowcs.c (main): LIkewise.
43648
43649 2008-12-20  Bruno Haible  <bruno@clisp.org>
43650
43651         Work around wctob bug on Solaris <= 9.
43652         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43653         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43655         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43656         * modules/wctob (Files): Add m4/locale-fr.m4.
43657         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43658
43659 2008-12-20  Bruno Haible  <bruno@clisp.org>
43660
43661         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43662         /dev/null.
43663         * tests/test-select-in.sh: Likewise.
43664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43665
43666 2008-12-20  Bruno Haible  <bruno@clisp.org>
43667
43668         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43669         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43670         Cygwin 1.5.x.
43671
43672 2008-12-20  Bruno Haible  <bruno@clisp.org>
43673
43674         Ensure mbstate_t is defined on HP-UX 11.11.
43675         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43676         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43677         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43678         AC_USE_SYSTEM_EXTENSIONS.
43679         * modules/fnmatch (Depends-on): Add extensions.
43680         * modules/mbrlen (Depends-on): Likewise.
43681         * modules/mbrtowc (Depends-on): Likewise.
43682         * modules/mbsinit (Depends-on): Likewise.
43683         * modules/mbsrtowcs (Depends-on): Likewise.
43684         * modules/mbswidth (Depends-on): Likewise.
43685         * modules/quotearg (Depends-on): Likewise.
43686         * modules/strftime (Depends-on): Likewise.
43687
43688 2008-12-20  Bruno Haible  <bruno@clisp.org>
43689
43690         Ensure wctob is declared on IRIX 6.5.
43691         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43692         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43693         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43695         of HAVE_WCTOB.
43696         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43697         HAVE_WCTOB.
43698         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43699
43700 2008-12-19  Bruno Haible  <bruno@clisp.org>
43701
43702         * modules/mbsrtowcs-tests: New file.
43703         * tests/test-mbsrtowcs1.sh: New file.
43704         * tests/test-mbsrtowcs2.sh: New file.
43705         * tests/test-mbsrtowcs3.sh: New file.
43706         * tests/test-mbsrtowcs4.sh: New file.
43707         * tests/test-mbsrtowcs.c: New file.
43708
43709         New module 'mbsrtowcs'.
43710         * lib/wchar.in.h (mbsrtowcs): New declaration.
43711         * lib/mbsrtowcs.c: New file.
43712         * m4/mbsrtowcs.m4: New file.
43713         * modules/mbsrtowcs: New file.
43714         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43715         HAVE_MBSRTOWCS.
43716         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43717         HAVE_MBSRTOWCS.
43718         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43719
43720 2008-12-19  Bruno Haible  <bruno@clisp.org>
43721
43722         New module 'mbrlen'.
43723         * lib/wchar.in.h (mbrlen): New declaration.
43724         * lib/mbrlen.c: New file.
43725         * m4/mbrlen.m4: New file.
43726         * modules/mbrlen: New file.
43727         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43728         HAVE_MBRLEN.
43729         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43730         HAVE_MBRLEN.
43731         * doc/posix-functions/mbrlen.texi: Document the new module.
43732
43733 2008-12-19  Bruno Haible  <bruno@clisp.org>
43734
43735         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43736         * modules/mbrtowc (Depends-on): Add verify.
43737         Suggested by Paul Eggert.
43738
43739 2008-12-18  Bruno Haible  <bruno@clisp.org>
43740
43741         * modules/mbsinit-tests: New file.
43742         * tests/test-mbsinit.sh: New file.
43743         * tests/test-mbsinit.c: New file.
43744
43745 2008-12-18  Bruno Haible  <bruno@clisp.org>
43746
43747         * modules/mbrtowc-tests: New file.
43748         * tests/test-mbrtowc1.sh: New file.
43749         * tests/test-mbrtowc2.sh: New file.
43750         * tests/test-mbrtowc3.sh: New file.
43751         * tests/test-mbrtowc4.sh: New file.
43752         * tests/test-mbrtowc.c: New file.
43753
43754         New module 'mbrtowc'.
43755         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43756         mbsinit and mbrtowc.
43757         (mbrtowc): New declaration.
43758         * lib/mbrtowc.c: New file.
43759         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43760         * modules/mbrtowc: New file.
43761         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43762         HAVE_MBRTOWC.
43763         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43764         HAVE_MBRTOWC.
43765         * doc/posix-functions/mbrtowc.texi: Document the new module.
43766
43767 2008-12-18  Bruno Haible  <bruno@clisp.org>
43768
43769         New module 'wctob'.
43770         * lib/wchar.in.h (wctob): New declaration.
43771         * lib/wctob.c: New file.
43772         * m4/wctob.m4: New file.
43773         * modules/wctob: New file.
43774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43775         HAVE_WCTOB.
43776         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43777         * doc/posix-functions/wctob.texi: Document the new module.
43778
43779 2008-12-18  Bruno Haible  <bruno@clisp.org>
43780
43781         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43782         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43783
43784 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43785
43786         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43787         G. Christensen" <tgc@jupiterrise.com>.
43788
43789         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43790         G. Christensen" <tgc@jupiterrise.com>.
43791
43792         * lib/flock.c: Need to include string.h.  Reported by "Tom
43793         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43794         <ebb9@byu.net>.
43795
43796 2008-12-18  Bruno Haible  <bruno@clisp.org>
43797
43798         * m4/locale-ja.m4: New file, from GNU gettext.
43799
43800 2008-12-17  Bruno Haible  <bruno@clisp.org>
43801
43802         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43803         Suggested by Eric Blake.
43804
43805 2008-12-17  Bruno Haible  <bruno@clisp.org>
43806
43807         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43808
43809 2008-12-17  Bruno Haible  <bruno@clisp.org>
43810
43811         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43812         * modules/mbsinit (Depends-on): Add verify.
43813         Suggested by Paul Eggert.
43814
43815 2008-12-17  Bruno Haible  <bruno@clisp.org>
43816
43817         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43818         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43819         gl_FUNC_MBRTOWC.
43820         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43821         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43822         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43823         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43824         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43825         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43826         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43827         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43828         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43829         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43830         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43831         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43832         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43833         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43834         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43835         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43836         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43837         * modules/trim (configure.ac): Likewise.
43838
43839 2008-12-17  Bruno Haible  <bruno@clisp.org>
43840
43841         * modules/btowc-tests: New file.
43842         * tests/test-btowc1.sh: New file.
43843         * tests/test-btowc2.sh: New file.
43844         * tests/test-btowc.c: New file.
43845
43846         New module 'btowc'.
43847         * lib/wchar.in.h (btowc): New declaration.
43848         * lib/btowc.c: New file.
43849         * m4/btowc.m4: New file.
43850         * modules/btowc: New file.
43851         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43852         HAVE_BTOWC.
43853         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43854         * doc/posix-functions/btowc.texi: Document the new module.
43855
43856 2008-12-17  Bruno Haible  <bruno@clisp.org>
43857
43858         New module 'mbsinit'.
43859         * lib/wchar.in.h (mbsinit): New declaration.
43860         * lib/mbsinit.c: New file.
43861         * m4/mbsinit.m4: New file.
43862         * modules/mbsinit: New file.
43863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43864         HAVE_MBSINIT.
43865         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43866         HAVE_MBSINIT.
43867         * doc/posix-functions/mbsinit.texi: Document the new module.
43868
43869 2008-12-16  Bruno Haible  <bruno@clisp.org>
43870
43871         * lib/unistd.in.h: Add comment.
43872         * tests/test-environ.c: Don't include <stdlib.h>.
43873
43874 2008-12-16  Bruno Haible  <bruno@clisp.org>
43875
43876         * lib/parse-duration.h (parse_duration): Document return value
43877         convention.
43878         * lib/parse-duration.c: Include specification header first. Add
43879         comments.
43880         (_): Remove macro.
43881         (parse_year_month_day, parse_hour_minute_second): Move side effects
43882         outside of strchr call.
43883         (parse_non_iso8601): Move side effects outside of isspace call.
43884         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43885         call.
43886
43887 2008-12-16  Bruno Haible  <bruno@clisp.org>
43888
43889         * tests/test-parse-duration.sh: Produce no output when the test
43890         succeeds.
43891
43892 2008-12-16  Bruno Haible  <bruno@clisp.org>
43893
43894         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43895         expressions.
43896
43897 2008-12-15  Bruno Haible  <bruno@clisp.org>
43898
43899         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43900         * doc/glibc-functions/flistxattr.texi: Likewise.
43901         * doc/glibc-functions/fopencookie.texi: Likewise.
43902         * doc/glibc-functions/fremovexattr.texi: Likewise.
43903         * doc/glibc-functions/fsetxattr.texi: Likewise.
43904         * doc/glibc-functions/getxattr.texi: Likewise.
43905         * doc/glibc-functions/lgetxattr.texi: Likewise.
43906         * doc/glibc-functions/listxattr.texi: Likewise.
43907         * doc/glibc-functions/llistxattr.texi: Likewise.
43908         * doc/glibc-functions/lremovexattr.texi: Likewise.
43909         * doc/glibc-functions/lsetxattr.texi: Likewise.
43910         * doc/glibc-functions/removexattr.texi: Likewise.
43911         * doc/glibc-functions/setxattr.texi: Likewise.
43912         * doc/posix-functions/open_memstream.texi: Likewise.
43913
43914 2008-12-15  Eric Blake  <ebb9@byu.net>
43915
43916         Update doc for cygwin 1.7.
43917         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43918         functions.
43919         * doc/posix-functions/fchmodat.texi: Likewise.
43920         * doc/posix-functions/fchownat.texi: Likewise.
43921         * doc/posix-functions/fdopendir.texi: Likewise.
43922         * doc/posix-functions/fmemopen.texi: Likewise.
43923         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43924         * doc/posix-functions/fstatat.texi: Likewise.
43925         * doc/posix-functions/futimens.texi: Likewise.
43926         * doc/posix-functions/gai_strerror.texi: Likewise.
43927         * doc/posix-functions/getaddrinfo.texi: Likewise.
43928         * doc/posix-functions/getnameinfo.texi: Likewise.
43929         * doc/posix-functions/if_freenameindex.texi: Likewise.
43930         * doc/posix-functions/if_indextoname.texi: Likewise.
43931         * doc/posix-functions/if_nameindex.texi: Likewise.
43932         * doc/posix-functions/if_nametoindex.texi: Likewise.
43933         * doc/posix-functions/insque.texi: Likewise.
43934         * doc/posix-functions/linkat.texi: Likewise.
43935         * doc/posix-functions/llrint.texi: Likewise.
43936         * doc/posix-functions/llrintf.texi: Likewise.
43937         * doc/posix-functions/llrintl.texi: Likewise.
43938         * doc/posix-functions/lockf.texi: Likewise.
43939         * doc/posix-functions/lrintl.texi: Likewise.
43940         * doc/posix-functions/mkdirat.texi: Likewise.
43941         * doc/posix-functions/mkfifoat.texi: Likewise.
43942         * doc/posix-functions/mknodat.texi: Likewise.
43943         * doc/posix-functions/mq_close.texi: Likewise.
43944         * doc/posix-functions/mq_getattr.texi: Likewise.
43945         * doc/posix-functions/mq_notify.texi: Likewise.
43946         * doc/posix-functions/mq_open.texi: Likewise.
43947         * doc/posix-functions/mq_receive.texi: Likewise.
43948         * doc/posix-functions/mq_send.texi: Likewise.
43949         * doc/posix-functions/mq_setattr.texi: Likewise.
43950         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43951         * doc/posix-functions/mq_timedsend.texi: Likewise.
43952         * doc/posix-functions/mq_unlink.texi: Likewise.
43953         * doc/posix-functions/open_memstream.texi: Likewise.
43954         * doc/posix-functions/openat.texi: Likewise.
43955         * doc/posix-functions/posix_fadvise.texi: Likewise.
43956         * doc/posix-functions/posix_fallocate.texi: Likewise.
43957         * doc/posix-functions/posix_madvise.texi: Likewise.
43958         * doc/posix-functions/posix_memalign.texi: Likewise.
43959         * doc/posix-functions/posix_openpt.texi: Likewise.
43960         * doc/posix-functions/readlinkat.texi: Likewise.
43961         * doc/posix-functions/remque.texi: Likewise.
43962         * doc/posix-functions/renameat.texi: Likewise.
43963         * doc/posix-functions/rintl.texi: Likewise.
43964         * doc/posix-functions/sem_unlink.texi: Likewise.
43965         * doc/posix-functions/shm_open.texi: Likewise.
43966         * doc/posix-functions/shm_unlink.texi: Likewise.
43967         * doc/posix-functions/signgam.texi: Likewise.
43968         * doc/posix-functions/sigset.texi: Likewise.
43969         * doc/posix-functions/stpcpy.texi: Likewise.
43970         * doc/posix-functions/stpncpy.texi: Likewise.
43971         * doc/posix-functions/strerror.texi: Likewise.
43972         * doc/posix-functions/strtod.texi: Likewise.
43973         * doc/posix-functions/symlinkat.texi: Likewise.
43974         * doc/posix-functions/unlinkat.texi: Likewise.
43975         * doc/posix-functions/utimensat.texi: Likewise.
43976         * doc/glibc-functions/bindresvport.texi: Likewise.
43977         * doc/glibc-functions/dn_expand.texi: Likewise.
43978         * doc/glibc-functions/exp10.texi: Likewise.
43979         * doc/glibc-functions/exp10f.texi: Likewise.
43980         * doc/glibc-functions/fgetxattr.texi: Likewise.
43981         * doc/glibc-functions/flistxattr.texi: Likewise.
43982         * doc/glibc-functions/fopencookie.texi: Likewise.
43983         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43984         * doc/glibc-functions/fremovexattr.texi: Likewise.
43985         * doc/glibc-functions/fsetxattr.texi: Likewise.
43986         * doc/glibc-functions/getifaddrs.texi: Likewise.
43987         * doc/glibc-functions/getxattr.texi: Likewise.
43988         * doc/glibc-functions/lgetxattr.texi: Likewise.
43989         * doc/glibc-functions/listxattr.texi: Likewise.
43990         * doc/glibc-functions/llistxattr.texi: Likewise.
43991         * doc/glibc-functions/lremovexattr.texi: Likewise.
43992         * doc/glibc-functions/lsetxattr.texi: Likewise.
43993         * doc/glibc-functions/pow10.texi: Likewise.
43994         * doc/glibc-functions/pow10f.texi: Likewise.
43995         * doc/glibc-functions/rcmd_af.texi: Likewise.
43996         * doc/glibc-functions/removexattr.texi: Likewise.
43997         * doc/glibc-functions/res_init.texi: Likewise.
43998         * doc/glibc-functions/res_mkquery.texi: Likewise.
43999         * doc/glibc-functions/res_query.texi: Likewise.
44000         * doc/glibc-functions/res_querydomain.texi: Likewise.
44001         * doc/glibc-functions/res_send.texi: Likewise.
44002         * doc/glibc-functions/rresvport_af.texi: Likewise.
44003         * doc/glibc-functions/setxattr.texi: Likewise.
44004         * doc/glibc-functions/strcasestr.texi: Likewise.
44005
44006 2008-12-15  Bruno Haible  <bruno@clisp.org>
44007
44008         Fix compilation error on OSF/1 4.0.
44009         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44010         <sys/time.h>, simply delegate to the system header.
44011         Reported by Daniel Richard G. <oss@teragram.com>.
44012
44013 2008-12-15  Bruno Haible  <bruno@clisp.org>
44014
44015         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44016         * doc/posix-functions/fchmodat.texi: Likewise.
44017         * doc/posix-functions/fchownat.texi: Likewise.
44018         * doc/posix-functions/fdopendir.texi: Likewise.
44019         * doc/posix-functions/fstatat.texi: Likewise.
44020         * doc/posix-functions/mkdirat.texi: Likewise.
44021         * doc/posix-functions/unlinkat.texi: Likewise.
44022
44023 2008-12-14  Bruno Haible  <bruno@clisp.org>
44024
44025         Update doc for POSIX:2008.
44026         * doc/posix-functions/faccessat.texi: New file.
44027         * doc/posix-functions/fchmodat.texi: New file.
44028         * doc/posix-functions/fchownat.texi: New file.
44029         * doc/posix-functions/fdopendir.texi: New file.
44030         * doc/posix-functions/fstatat.texi: New file.
44031         * doc/posix-functions/futimens.texi: New file.
44032         * doc/posix-functions/linkat.texi: New file.
44033         * doc/posix-functions/mkdirat.texi: New file.
44034         * doc/posix-functions/mkfifoat.texi: New file.
44035         * doc/posix-functions/mknodat.texi: New file.
44036         * doc/posix-functions/open_wmemstream.texi: New file.
44037         * doc/posix-functions/openat.texi: New file.
44038         * doc/posix-functions/psiginfo.texi: New file.
44039         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44040         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44041         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44042         * doc/posix-functions/readlinkat.texi: New file.
44043         * doc/posix-functions/renameat.texi: New file.
44044         * doc/posix-functions/strerror_l.texi: New file.
44045         * doc/posix-functions/symlinkat.texi: New file.
44046         * doc/posix-functions/unlinkat.texi: New file.
44047         * doc/posix-functions/utimensat.texi: New file.
44048         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44049
44050 2008-12-14  Bruno Haible  <bruno@clisp.org>
44051
44052         Update doc for POSIX:2008.
44053         * doc/posix-functions/alphasort.texi: Renamed from
44054         doc/glibc-functions/alphasort.texi.
44055         * doc/posix-functions/dirfd.texi: Renamed from
44056         doc/glibc-functions/dirfd.texi.
44057         * doc/posix-functions/dprintf.texi: Renamed from
44058         doc/glibc-functions/dprintf.texi.
44059         * doc/posix-functions/duplocale.texi: Renamed from
44060         doc/glibc-functions/duplocale.texi.
44061         * doc/posix-functions/fexecve.texi: Renamed from
44062         doc/glibc-functions/fexecve.texi.
44063         * doc/posix-functions/fmemopen.texi: Renamed from
44064         doc/glibc-functions/fmemopen.texi.
44065         * doc/posix-functions/freelocale.texi: Renamed from
44066         doc/glibc-functions/freelocale.texi.
44067         * doc/posix-functions/getdate_err.texi: Renamed from
44068         doc/glibc-functions/getdate_err.texi.
44069         * doc/posix-functions/isalnum_l.texi: Renamed from
44070         doc/glibc-functions/isalnum_l.texi.
44071         * doc/posix-functions/isalpha_l.texi: Renamed from
44072         doc/glibc-functions/isalpha_l.texi.
44073         * doc/posix-functions/isblank_l.texi: Renamed from
44074         doc/glibc-functions/isblank_l.texi.
44075         * doc/posix-functions/iscntrl_l.texi: Renamed from
44076         doc/glibc-functions/iscntrl_l.texi.
44077         * doc/posix-functions/isdigit_l.texi: Renamed from
44078         doc/glibc-functions/isdigit_l.texi.
44079         * doc/posix-functions/isgraph_l.texi: Renamed from
44080         doc/glibc-functions/isgraph_l.texi.
44081         * doc/posix-functions/islower_l.texi: Renamed from
44082         doc/glibc-functions/islower_l.texi.
44083         * doc/posix-functions/isprint_l.texi: Renamed from
44084         doc/glibc-functions/isprint_l.texi.
44085         * doc/posix-functions/ispunct_l.texi: Renamed from
44086         doc/glibc-functions/ispunct_l.texi.
44087         * doc/posix-functions/isspace_l.texi: Renamed from
44088         doc/glibc-functions/isspace_l.texi.
44089         * doc/posix-functions/isupper_l.texi: Renamed from
44090         doc/glibc-functions/isupper_l.texi.
44091         * doc/posix-functions/iswalnum_l.texi: Renamed from
44092         doc/glibc-functions/iswalnum_l.texi.
44093         * doc/posix-functions/iswalpha_l.texi: Renamed from
44094         doc/glibc-functions/iswalpha_l.texi.
44095         * doc/posix-functions/iswblank_l.texi: Renamed from
44096         doc/glibc-functions/iswblank_l.texi.
44097         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44098         doc/glibc-functions/iswcntrl_l.texi.
44099         * doc/posix-functions/iswctype_l.texi: Renamed from
44100         doc/glibc-functions/iswctype_l.texi.
44101         * doc/posix-functions/iswdigit_l.texi: Renamed from
44102         doc/glibc-functions/iswdigit_l.texi.
44103         * doc/posix-functions/iswgraph_l.texi: Renamed from
44104         doc/glibc-functions/iswgraph_l.texi.
44105         * doc/posix-functions/iswlower_l.texi: Renamed from
44106         doc/glibc-functions/iswlower_l.texi.
44107         * doc/posix-functions/iswprint_l.texi: Renamed from
44108         doc/glibc-functions/iswprint_l.texi.
44109         * doc/posix-functions/iswpunct_l.texi: Renamed from
44110         doc/glibc-functions/iswpunct_l.texi.
44111         * doc/posix-functions/iswspace_l.texi: Renamed from
44112         doc/glibc-functions/iswspace_l.texi.
44113         * doc/posix-functions/iswupper_l.texi: Renamed from
44114         doc/glibc-functions/iswupper_l.texi.
44115         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44116         doc/glibc-functions/iswxdigit_l.texi.
44117         * doc/posix-functions/isxdigit_l.texi: Renamed from
44118         doc/glibc-functions/isxdigit_l.texi.
44119         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44120         doc/glibc-functions/mbsnrtowcs.texi.
44121         * doc/posix-functions/mkdtemp.texi: Renamed from
44122         doc/glibc-functions/mkdtemp.texi.
44123         * doc/posix-functions/newlocale.texi: Renamed from
44124         doc/glibc-functions/newlocale.texi.
44125         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44126         doc/glibc-functions/nl_langinfo_l.texi.
44127         * doc/posix-functions/open_memstream.texi: Renamed from
44128         doc/glibc-functions/open_memstream.texi.
44129         * doc/posix-functions/opterr.texi: Renamed from
44130         doc/glibc-functions/opterr.texi.
44131         * doc/posix-functions/optind.texi: Renamed from
44132         doc/glibc-functions/optind.texi.
44133         * doc/posix-functions/optopt.texi: Renamed from
44134         doc/glibc-functions/optopt.texi.
44135         * doc/posix-functions/psignal.texi: Renamed from
44136         doc/glibc-functions/psignal.texi.
44137         * doc/posix-functions/scandir.texi: Renamed from
44138         doc/glibc-functions/scandir.texi.
44139         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44140         doc/glibc-functions/sched_get_priority_min.texi.
44141         * doc/posix-functions/signgam.texi: Renamed from
44142         doc/glibc-functions/signgam.texi.
44143         * doc/posix-functions/stpcpy.texi: Renamed from
44144         doc/glibc-functions/stpcpy.texi.
44145         * doc/posix-functions/stpncpy.texi: Renamed from
44146         doc/glibc-functions/stpncpy.texi.
44147         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44148         doc/glibc-functions/strcasecmp_l.texi.
44149         * doc/posix-functions/strcoll_l.texi: Renamed from
44150         doc/glibc-functions/strcoll_l.texi.
44151         * doc/posix-functions/strfmon_l.texi: Renamed from
44152         doc/glibc-functions/strfmon_l.texi.
44153         * doc/posix-functions/strftime_l.texi: Renamed from
44154         doc/glibc-functions/strftime_l.texi.
44155         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44156         doc/glibc-functions/strncasecmp_l.texi.
44157         * doc/posix-functions/strndup.texi: Renamed from
44158         doc/glibc-functions/strndup.texi.
44159         * doc/posix-functions/strnlen.texi: Renamed from
44160         doc/glibc-functions/strnlen.texi.
44161         * doc/posix-functions/strsignal.texi: Renamed from
44162         doc/glibc-functions/strsignal.texi.
44163         * doc/posix-functions/strxfrm_l.texi: Renamed from
44164         doc/glibc-functions/strxfrm_l.texi.
44165         * doc/posix-functions/timer_gettime.texi: Renamed from
44166         doc/glibc-functions/timer_gettime.texi.
44167         * doc/posix-functions/tolower_l.texi: Renamed from
44168         doc/glibc-functions/tolower_l.texi.
44169         * doc/posix-functions/toupper_l.texi: Renamed from
44170         doc/glibc-functions/toupper_l.texi.
44171         * doc/posix-functions/towctrans_l.texi: Renamed from
44172         doc/glibc-functions/towctrans_l.texi.
44173         * doc/posix-functions/towlower_l.texi: Renamed from
44174         doc/glibc-functions/towlower_l.texi.
44175         * doc/posix-functions/towupper_l.texi: Renamed from
44176         doc/glibc-functions/towupper_l.texi.
44177         * doc/posix-functions/uselocale.texi: Renamed from
44178         doc/glibc-functions/uselocale.texi.
44179         * doc/posix-functions/vdprintf.texi: Renamed from
44180         doc/glibc-functions/vdprintf.texi.
44181         * doc/posix-functions/wcpcpy.texi:
44182         Renamed from doc/glibc-functions/wcpcpy.texi.
44183         * doc/posix-functions/wcpncpy.texi: Renamed from
44184         doc/glibc-functions/wcpncpy.texi.
44185         * doc/posix-functions/wcscasecmp.texi: Renamed from
44186         doc/glibc-functions/wcscasecmp.texi.
44187         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44188         doc/glibc-functions/wcscasecmp_l.texi.
44189         * doc/posix-functions/wcscoll_l.texi: Renamed from
44190         doc/glibc-functions/wcscoll_l.texi.
44191         * doc/posix-functions/wcsdup.texi: Renamed from
44192         doc/glibc-functions/wcsdup.texi.
44193         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44194         doc/glibc-functions/wcsncasecmp.texi.
44195         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44196         doc/glibc-functions/wcsncasecmp_l.texi.
44197         * doc/posix-functions/wcsnlen.texi: Renamed from
44198         doc/glibc-functions/wcsnlen.texi.
44199         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44200         doc/glibc-functions/wcsnrtombs.texi.
44201         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44202         doc/glibc-functions/wcsxfrm_l.texi.
44203         * doc/posix-functions/wctrans_l.texi: Renamed from
44204         doc/glibc-functions/wctrans_l.texi.
44205         * doc/posix-functions/wctype_l.texi: Renamed from
44206         doc/glibc-functions/wctype_l.texi.
44207         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44208         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44209         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44210         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44211         these subsections.
44212         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44213         Remove sections.
44214
44215 2008-12-14  Bruno Haible  <bruno@clisp.org>
44216
44217         Update doc for POSIX:2008.
44218         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44219
44220 2008-12-14  Bruno Haible  <bruno@clisp.org>
44221
44222         Update doc for POSIX:2008.
44223         * doc/pastposix-functions/bcmp.texi: Renamed from
44224         doc/posix-functions/bcmp.texi.
44225         * doc/pastposix-functions/bcopy.texi: Renamed from
44226         doc/posix-functions/bcopy.texi.
44227         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44228         doc/posix-functions/bsd_signal.texi.
44229         * doc/pastposix-functions/bzero.texi: Renamed from
44230         doc/posix-functions/bzero.texi.
44231         * doc/pastposix-functions/ecvt.texi: Renamed from
44232         doc/posix-functions/ecvt.texi.
44233         * doc/pastposix-functions/fcvt.texi: Renamed from
44234         doc/posix-functions/fcvt.texi.
44235         * doc/pastposix-functions/ftime.texi: Renamed from
44236         doc/posix-functions/ftime.texi.
44237         * doc/pastposix-functions/gcvt.texi: Renamed from
44238         doc/posix-functions/gcvt.texi.
44239         * doc/pastposix-functions/getcontext.texi: Renamed from
44240         doc/posix-functions/getcontext.texi.
44241         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44242         doc/posix-functions/gethostbyaddr.texi.
44243         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44244         doc/posix-functions/gethostbyname.texi.
44245         * doc/pastposix-functions/getwd.texi: Renamed from
44246         doc/posix-functions/getwd.texi.
44247         * doc/pastposix-functions/h_errno.texi: Renamed from
44248         doc/posix-functions/h_errno.texi.
44249         * doc/pastposix-functions/index.texi: Renamed from
44250         doc/posix-functions/index.texi.
44251         * doc/pastposix-functions/makecontext.texi: Renamed from
44252         doc/posix-functions/makecontext.texi.
44253         * doc/pastposix-functions/mktemp.texi: Renamed from
44254         doc/posix-functions/mktemp.texi.
44255         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44256         doc/posix-functions/pthread_attr_getstackaddr.texi.
44257         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44258         doc/posix-functions/pthread_attr_setstackaddr.texi.
44259         * doc/pastposix-functions/rindex.texi: Renamed from
44260         doc/posix-functions/rindex.texi.
44261         * doc/pastposix-functions/scalb.texi: Renamed from
44262         doc/posix-functions/scalb.texi.
44263         * doc/pastposix-functions/setcontext.texi: Renamed from
44264         doc/posix-functions/setcontext.texi.
44265         * doc/pastposix-functions/swapcontext.texi: Renamed from
44266         doc/posix-functions/swapcontext.texi.
44267         * doc/pastposix-functions/ualarm.texi: Renamed from
44268         doc/posix-functions/ualarm.texi.
44269         * doc/pastposix-functions/usleep.texi: Renamed from
44270         doc/posix-functions/usleep.texi.
44271         * doc/pastposix-functions/vfork.texi: Renamed from
44272         doc/posix-functions/vfork.texi.
44273         * doc/pastposix-functions/wcswcs.texi: Renamed from
44274         doc/posix-functions/wcswcs.texi.
44275         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44276         (Function Substitutes): Update.
44277
44278 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44279
44280         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44281         m4/strerror.m4.
44282
44283 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44284             Bruno Haible  <bruno@clisp.org>
44285
44286         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44287
44288 2008-12-13  Bruno Haible  <bruno@clisp.org>
44289
44290         * modules/strtoull (Depends-on): Remove unistd.
44291
44292 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44293
44294         * modules/strtoull (Depends-on): Add stdlib.
44295
44296 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44297
44298         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44299
44300 2008-12-10  Jim Meyering  <meyering@redhat.com>
44301
44302         gl_ASSERT: don't say assertions are disabled when they're not
44303         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44304         "checking whether to enable assertions... no", when they are in
44305         fact enabled.  This is solely a bug in the output of configure.
44306         In spite of saying "no", NDEBUG was not defined in that case.
44307         Also, as noted by Eric Blake, leave assertions enabled upon
44308         --enable-assert=INVALID.
44309
44310 2008-12-10  Bruno Haible  <bruno@clisp.org>
44311
44312         Change MODULES.html to refer to POSIX:2008 where possible.
44313         * MODULES.html.sh (POSIX2008_URL): New variable.
44314         (posix_headers): Remove sys/timeb, ucontext.
44315         (posix2001_headers): New variable.
44316         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44317         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44318         index, makecontext, mktemp, pthread_attr_getstackaddr,
44319         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44320         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44321         (posix2001_functions): New variable.
44322         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44323         otherwise.
44324
44325 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44326
44327         add missing include to parse-duration.c
44328         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44329         * modules/parse-duration (Depends-on): Add xalloc.
44330
44331         fix sed script reading maint.mk
44332         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44333         (syntax-check-rules): Use it.
44334
44335 2008-12-09  Bruno Haible  <bruno@clisp.org>
44336
44337         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44338         MacOS X 10.4/PowerPC.
44339         Reported by Simon Josefsson.
44340
44341 2008-12-08  Jim Meyering  <meyering@redhat.com>
44342
44343         work around mingw's lack of some S_IF definitions
44344         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44345         Reported by Simon Josefsson.
44346
44347 2008-12-08  Bruno Haible  <bruno@clisp.org>
44348
44349         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44350         applied to variables. Needed on MacOS X 10.4/PowerPC.
44351         Reported by Simon Josefsson.
44352
44353 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44354         and Eric Blake  <ebb9@byu.net>
44355
44356         assert: honor --enable-assert
44357         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44358         order to honor --enable-assert, rather than treating it as a
44359         synonym for --disable-assert.
44360
44361 2008-12-08  Jim Meyering  <meyering@redhat.com>
44362
44363         * lib/posixtm.c: Remove now-useless declaration of mktime.
44364
44365         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44366
44367 2008-12-07  Bruno Haible  <bruno@clisp.org>
44368
44369         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44370         test_once): Mark functions as static.
44371         * tests/test-tls.c (test_tls): Likewise.
44372
44373 2008-12-07  Bruno Haible  <bruno@clisp.org>
44374
44375         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44376         iconv_register_autodetect.
44377
44378 2008-12-07  Jim Meyering  <meyering@redhat.com>
44379
44380         posixtm.c: avoid a warning
44381         * lib/posixtm.c (posixtime): Don't initialize tm0.
44382         It's no longer needed to placate gcc4's -Wuninitialized,
44383         and the attempt to placate would elicit a new warning.
44384
44385         unicodeio.c: mark unused parameters
44386         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44387         (fallback_failure_callback): Likewise.
44388
44389 2008-12-07  Bruno Haible  <bruno@clisp.org>
44390
44391         * gnulib-tool (func_create_testdir): When building the tests
44392         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44393         Reported by Simon Josefsson.
44394
44395 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44396
44397         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44398
44399 2008-12-06  Bruno Haible  <bruno@clisp.org>
44400
44401         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44402         Suggested by Eric Blake.
44403
44404 2008-12-06  Bruno Haible  <bruno@clisp.org>
44405
44406         Fix a c-stack test failure on MacOS X.
44407         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44408         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44409         handler for SIGBUS as well.
44410         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44411         install a signal handler for SIGBUS as well.
44412         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44413
44414 2008-12-06  Bruno Haible  <bruno@clisp.org>
44415
44416         Advocacy documentation.
44417         * doc/gnulib-intro.texi (Benefits): New section.
44418         * doc/gnulib.texi: Update.
44419
44420 2008-12-06  Bruno Haible  <bruno@clisp.org>
44421
44422         Document the 'manywarnings' module.
44423         * doc/manywarnings.texi: New file.
44424         * doc/gnulib.texi: Include it.
44425
44426 2008-12-05  Eric Blake  <ebb9@byu.net>
44427
44428         tests: silence some gcc warnings
44429         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44430         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44431         type mismatches.
44432
44433 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44434             Bruno Haible  <bruno@clisp.org>
44435
44436         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44437
44438 2008-11-29  Jim Meyering  <meyering@redhat.com>
44439
44440         unicodeio.c: mark unused parameters
44441         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44442         (fallback_failure_callback): Likewise.
44443
44444         fts: fix a thinko
44445         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44446         (set_stat_type): Return S_IF*-valued "type" directly.
44447         Prompted by James Youngman's spotting a related bug.
44448         Confirmed by further testing through find.
44449
44450         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44451         * lib/fts.c (D_TYPE): Define.
44452         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44453         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44454         (s_ifmt_shift_bits): New function.
44455         (set_stat_type): New function.
44456         (fts_build): When not calling fts_stat, call set_stat_type
44457         to propagate dirent.d_type info to fts_read caller.
44458         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44459         fts_statp->st_mode type information may be valid.
44460
44461 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44462
44463         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44464         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44465         <sds@gnu.org>.
44466
44467 2008-11-20  Bruno Haible  <bruno@clisp.org>
44468
44469         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44470         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44471         INCLUDE_NEXT.
44472         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44473         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44474         * modules/math (Makefile.am): Substitute
44475         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44476         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44477
44478 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44479             Bruno Haible  <bruno@clisp.org>
44480
44481         * lib/stdint.in.h: Define all type macros so that their expansion is
44482         a single typedef'ed token. Fixes a compilation failure in Boost which
44483         does "using ::int8_t;".
44484
44485 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44486
44487         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44488         gl_MANYWARN_ALL_GCC.
44489         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44490         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44491         * modules/manywarnings: New file.
44492         * MODULES.html.sh: Mention manywarnings module.
44493
44494 2008-11-18  Bruno Haible  <bruno@clisp.org>
44495
44496         * doc/gnulib-tool.texi (Unit tests): New section.
44497
44498 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44499
44500         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44501         paths like 'lib/po/foo.po'.
44502
44503 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44504
44505         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44506         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44507
44508 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44509
44510         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44511         parameter works.
44512
44513 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44514
44515         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44516
44517 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44518
44519         * modules/parse-duration-tests: New file.
44520         * tests/test-parse-duration.sh: New file.
44521         * tests/test-parse-duration.c: New file.
44522
44523         New module 'parse-duration'.
44524         * lib/parse-duration.h: New file.
44525         * lib/parse-duration.c: New file.
44526         * modules/parse-duration: New file.
44527
44528 2008-11-17  Bruno Haible  <bruno@clisp.org>
44529
44530         * tests/test-select-out.sh: Comment out the first pipe test.
44531         Reported by Simon Josefsson.
44532
44533 2008-11-17  Bruno Haible  <bruno@clisp.org>
44534
44535         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44536         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44537         gl_HOSTENT.
44538
44539 2008-11-17  Bruno Haible  <bruno@clisp.org>
44540
44541         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44542         -lnetwork and -lnet. Needed for Haiku and BeOS.
44543
44544 2008-11-16  Bruno Haible  <bruno@clisp.org>
44545
44546         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44547
44548 2008-11-16  Bruno Haible  <bruno@clisp.org>
44549
44550         Avoid test failure on Haiku.
44551         * tests/test-fsync.c: Include <errno.h>.
44552         (main): Don't require that fsync (0) fails.
44553
44554 2008-11-15  Bruno Haible  <bruno@clisp.org>
44555
44556         New module 'hostent'.
44557         * modules/hostent: New file.
44558         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44559
44560 2008-11-15  Bruno Haible  <bruno@clisp.org>
44561
44562         New module 'servent'.
44563         * modules/servent: New file.
44564         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44565
44566 2008-11-15  Bruno Haible  <bruno@clisp.org>
44567
44568         Avoid generating same test program with two different rules.
44569         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44570         test-frexp to test-frexp-nolibm.
44571         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44572         test-frexpl to test-frexpl-nolibm.
44573
44574 2008-11-15  Bruno Haible  <bruno@clisp.org>
44575
44576         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44577         $(FREXPL_LIBM).
44578
44579 2008-11-15  Bruno Haible  <bruno@clisp.org>
44580
44581         * lib/netdb.in.h: Activate the definitions also when the system's
44582         <netdb.h> has 'struct addrinfo'.
44583         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44584         EAI_OVERFLOW or AI_NUMERICSERV.
44585         * doc/posix-headers/netdb.texi: Document the problem.
44586
44587 2008-11-15  Bruno Haible  <bruno@clisp.org>
44588
44589         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44590
44591         Make the 'sched' module work on platforms where <sched.h> exists but
44592         is incomplete (such as Haiku).
44593         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44594         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44595         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44596         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44597         HAVE_STRUCT_SCHED_PARAM.
44598         * modules/sched (Depends-on): Add include_next.
44599         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44600         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44601         * doc/posix-headers/sched.texi: Document the issue.
44602
44603 2008-11-13  Jim Meyering  <meyering@redhat.com>
44604
44605         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44606         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44607         test would fail due to the difference in the Report bugs to ...
44608         line.  The expected address is empty, "<>", while the actual
44609         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44610
44611 2008-11-12  Bruno Haible  <bruno@clisp.org>
44612
44613         lstat: don't compile lstat.c on systems lacking lstat
44614         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44615         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44616         Reported by Daniel P. Berrange via Jim Meyering.
44617
44618 2008-11-12  Jim Meyering  <meyering@redhat.com>
44619
44620         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44621
44622 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44623
44624         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44625         instead.
44626
44627 2008-11-12  Bruno Haible  <bruno@clisp.org>
44628
44629         * lib/unicodeio.c: Include unistr.h.
44630         (utf8_wctomb): Remove function.
44631         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44632
44633 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44634
44635         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44636         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44637         <bruno@clisp.org>.
44638         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44639
44640 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44641
44642         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44643         * doc/gnulib.texi: Add section for warnings.
44644
44645 2008-11-11  Bruno Haible  <bruno@clisp.org>
44646
44647         * lib/sockets.h: Add a comment.
44648
44649 2008-11-11  Karl Berry  <karl@gnu.org>
44650
44651         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44652
44653 2008-11-11  Eric Blake  <ebb9@byu.net>
44654
44655         fdl.texi: avoid git symlinks
44656         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44657
44658 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44659
44660         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44661
44662 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44663
44664         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44665         (gl_WARN_ADD): Substitute $2 if literal.
44666
44667 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44668
44669         * m4/warning.m4: Remove.
44670
44671 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44672
44673         * m4/warnings.m4: Almost complete rewrite. :-)
44674
44675 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44676
44677         * modules/warnings: New module.
44678         * m4/warnings.m4: New file.
44679         * MODULES.html.sh: Mention warnings module.
44680         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44681         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44682
44683 2008-11-10  Eric Blake  <ebb9@byu.net>
44684
44685         fdl.texi: make a symlink to the latest version
44686         * doc/standards.texi: Revert today's earlier change.
44687         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44688         * doc/fdl.texi: ...and replace this with a symlink to the newer
44689         fdl-1.3.texi.
44690
44691 2008-11-10  Bruno Haible  <bruno@clisp.org>
44692
44693         * tests/test-select-fd.c (main): Accept the result file name as fourth
44694         argument.
44695         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44696         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44697
44698 2008-11-10  Bruno Haible  <bruno@clisp.org>
44699
44700         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44701         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44702         as autoconf-substituted macros.
44703         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44704         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44705         gl_NETDB_H_DEFAULTS. Set these variables.
44706         * modules/netdb (Makefile.am): Substitute these variables.
44707
44708 2008-11-10  Eric Blake  <ebb9@byu.net>
44709
44710         standards.texi: include correct file for FDL 1.3
44711         * doc/standards.texi (GNU Free Documentation License): Change
44712         include file to pull in FDL 1.3, not 1.2.
44713
44714         fdl.texi: revert accidental change to license
44715         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44716
44717 2008-11-10  Bruno Haible  <bruno@clisp.org>
44718
44719         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44720         cross-compiling guesses also when the native compile gives no result.
44721
44722 2008-11-10  Bruno Haible  <bruno@clisp.org>
44723
44724         * lib/spawni.c (__spawni): Force variable into the stack.
44725
44726 2008-11-10  Bruno Haible  <bruno@clisp.org>
44727
44728         Add support for Haiku.
44729         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44730         glibc and BeOS, but also on Haiku.
44731         * lib/fpurge.c (fpurge): Likewise.
44732         * lib/freadable.c (freadable): Likewise.
44733         * lib/freadahead.c (freadahead): Likewise.
44734         * lib/freading.c (freading): Likewise.
44735         * lib/freadptr.c (freadptr): Likewise.
44736         * lib/freadseek.c (freadptrinc): Likewise.
44737         * lib/fseeko.c (rpl_fseeko): Likewise.
44738         * lib/fseterr.c (fseterr): Likewise.
44739         * lib/fwritable.c (fwritable): Likewise.
44740         * lib/fwriting.c (fwriting): Likewise.
44741         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44742
44743 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44744
44745         * lib/config.charset: Treat Haiku like BeOS.
44746
44747 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44748
44749         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44750         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44751
44752 2008-11-08  Bruno Haible  <bruno@clisp.org>
44753
44754         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44755         AC_CACHE_CHECK.
44756
44757 2008-11-08  Bruno Haible  <bruno@clisp.org>
44758
44759         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44760
44761 2008-11-08  Bruno Haible  <bruno@clisp.org>
44762
44763         * tests/test-select-fd.c: New file.
44764         * tests/test-select-in.sh: New file.
44765         * tests/test-select-out.sh: New file.
44766         * tests/test-select-stdin.c: New file.
44767         * modules/select-tests (Files): Add the new files.
44768         (Depends-on): Add gettimeofday.
44769         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44770         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44771         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44772
44773 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44774             Bruno Haible  <bruno@clisp.org>
44775
44776         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44777
44778 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44779
44780         * build-aux/pmccabe2html: Added support for C++ source files.
44781
44782 2008-11-05  Ben Pfaff  <blp@gnu.org>
44783
44784         Fix lib/close.c build on Windows.
44785         * modules/close (Files): Add lib/w32sock.h.
44786
44787 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44788
44789         Accept Bison's NEWS format.
44790         * build-aux/announce-gen (print_news_deltas): Tweak
44791         $re_prefix.
44792
44793 2008-11-04  Bruno Haible  <bruno@clisp.org>
44794
44795         * modules/random_r (Maintainer): Add glibc.
44796
44797 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44798
44799         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44800         by karl@freefriends.org (Karl Berry).
44801         * doc/alloca.texi: Likewise.
44802         * doc/c-ctype.texi: Likewise.
44803         * doc/c-strcase.texi: Likewise.
44804         * doc/c-strcaseeq.texi: Likewise.
44805         * doc/c-strcasestr.texi: Likewise.
44806         * doc/c-strstr.texi: Likewise.
44807         * doc/c-strtod.texi: Likewise.
44808         * doc/c-strtold.texi: Likewise.
44809         * doc/ctime.texi: Likewise.
44810         * doc/error.texi: Likewise.
44811         * doc/fdl.texi: Likewise.
44812         * doc/gcd.texi: Likewise.
44813         * doc/getdate.texi: Likewise.
44814         * doc/gnulib-intro.texi: Likewise.
44815         * doc/gnulib-tool.texi: Likewise.
44816         * doc/gnulib.texi: Likewise.
44817         * doc/inet_ntoa.texi: Likewise.
44818         * doc/maintain.texi: Likewise.
44819         * doc/make-stds.texi: Likewise.
44820         * doc/quote.texi: Likewise.
44821         * doc/regexprops-generic.texi: Likewise.
44822         * doc/standards.texi: Likewise.
44823         * doc/verify.texi: Likewise.
44824         * doc/visibility.texi: Likewise.
44825         * doc/gnulib.texi (GNU Free Documentation License): Include
44826         fdl-1.3.texi instead of fdl.texi.
44827
44828 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44829
44830         * doc/fdl-1.3.texi: New file, from
44831         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44832         * modules/fdl-1.3: Add.
44833         * MODULES.html.sh: Add fdl-1.3.
44834
44835 2008-11-03  Bruno Haible  <bruno@clisp.org>
44836
44837         Make determination of absolute name of header file work with AIX xlc.
44838         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44839         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44840         preprocessing.
44841         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44842         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44843
44844 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44845
44846         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44847         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44848         <ludo@gnu.org>.
44849
44850 2008-11-02  Bruno Haible  <bruno@clisp.org>
44851
44852         Mark 'strpbrk' obsolete.
44853         * modules/strpbrk (Status, Notice): New sections.
44854         * modules/strtok_r (Depends-on): Add strpbrk.
44855
44856 2008-11-02  Bruno Haible  <bruno@clisp.org>
44857
44858         Mark 'strdup' obsolete.
44859         * modules/strdup (Status, Notice): New sections.
44860         * modules/findprog (Depends-on): Add strdup.
44861         * modules/getaddrinfo (Depends-on): Likewise.
44862         * modules/localename (Depends-on): Likewise.
44863         * modules/relocatable-lib (Depends-on): Likewise.
44864         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44865         * modules/relocatable-prog (Depends-on): Likewise.
44866         * modules/trim (Depends-on): Likewise.
44867         * modules/unictype/gen-ctype (Depends-on): Likewise.
44868         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44869
44870 2008-11-02  Bruno Haible  <bruno@clisp.org>
44871
44872         Mark 'strcspn' obsolete.
44873         * modules/strcspn (Status, Notice): New sections.
44874
44875 2008-11-02  Bruno Haible  <bruno@clisp.org>
44876
44877         Mark 'rmdir' obsolete.
44878         * modules/rmdir (Status, Notice): New sections.
44879         * modules/clean-temp (Depends-on): Add rmdir.
44880         * modules/openat (Depends-on): Likewise.
44881
44882 2008-11-02  Bruno Haible  <bruno@clisp.org>
44883
44884         Mark 'raise' obsolete.
44885         * modules/raise (Status, Notice): New sections.
44886         (Include): Specify <signal.h>.
44887         * modules/stdio (Depends-on): Add raise.
44888         * modules/write (Depends-on): Likewise.
44889
44890 2008-11-02  Bruno Haible  <bruno@clisp.org>
44891
44892         Mark 'memset' obsolete.
44893         * modules/memset (Status, Notice): New sections.
44894
44895 2008-11-02  Bruno Haible  <bruno@clisp.org>
44896
44897         Mark 'memmove' obsolete.
44898         * modules/memmove (Status, Notice): New sections.
44899         * modules/argp (Depends-on): Add memmove.
44900         * modules/argz (Depends-on): Likewise.
44901         * modules/canonicalize (Depends-on): Likewise.
44902         * modules/canonicalize-lgpl (Depends-on): Likewise.
44903         * modules/fts (Depends-on): Likewise.
44904         * modules/getcwd (Depends-on): Likewise.
44905         * modules/human (Depends-on): Likewise.
44906         * modules/regex (Depends-on): Likewise.
44907         * modules/striconveh (Depends-on): Likewise.
44908         * modules/trim (Depends-on): Likewise.
44909         * modules/unistr/u8-move (Depends-on): Likewise.
44910         * modules/unistr/u16-move (Depends-on): Likewise.
44911         * modules/unistr/u32-move (Depends-on): Likewise.
44912
44913 2008-11-02  Bruno Haible  <bruno@clisp.org>
44914
44915         Mark 'memcpy' obsolete.
44916         * modules/memcpy (Status, Notice): New sections.
44917
44918 2008-11-02  Bruno Haible  <bruno@clisp.org>
44919
44920         Mark 'memcmp' obsolete.
44921         * modules/memcmp (Status, Notice): New sections.
44922         * modules/argmatch (Depends-on): Add memchr.
44923         * modules/backupfile (Depends-on): Likewise.
44924         * modules/c-strcasestr (Depends-on): Likewise.
44925         * modules/crypto/des (Depends-on): Likewise.
44926         * modules/csharpcomp (Depends-on): Likewise.
44927         * modules/fnmatch (Depends-on): Likewise.
44928         * modules/git-merge-changelog (Depends-on): Likewise.
44929         * modules/isnand (Depends-on): Likewise.
44930         * modules/isnand-nolibm (Depends-on): Likewise.
44931         * modules/isnanf (Depends-on): Likewise.
44932         * modules/isnanf-nolibm (Depends-on): Likewise.
44933         * modules/isnanl (Depends-on): Likewise.
44934         * modules/isnanl-nolibm (Depends-on): Likewise.
44935         * modules/mbchar (Depends-on): Likewise.
44936         * modules/memcoll (Depends-on): Likewise.
44937         * modules/quotearg (Depends-on): Likewise.
44938         * modules/regex (Depends-on): Likewise.
44939         * modules/relocatable-prog (Depends-on): Likewise.
44940         * modules/same (Depends-on): Likewise.
44941         * modules/signbit (Depends-on): Likewise.
44942         * modules/strcasestr-simple (Depends-on): Likewise.
44943         * modules/unictype/gen-ctype (Depends-on): Likewise.
44944         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44945         * modules/uniname/uniname (Depends-on): Likewise.
44946         * modules/unistr/u8-cmp (Depends-on): Likewise.
44947
44948 2008-11-02  Bruno Haible  <bruno@clisp.org>
44949
44950         Mark 'memchr' obsolete.
44951         * modules/memchr (Status, Notice): New sections.
44952         * modules/argp (Depends-on): Add memchr.
44953         * modules/base64 (Depends-on): Likewise.
44954         * modules/c-strcasestr (Depends-on): Likewise.
44955         * modules/chdir-long (Depends-on): Likewise.
44956         * modules/fnmatch (Depends-on): Likewise.
44957         * modules/getsubopt (Depends-on): Likewise.
44958         * modules/git-merge-changelog (Depends-on): Likewise.
44959         * modules/glob (Depends-on): Likewise.
44960         * modules/strcasestr-simple (Depends-on): Likewise.
44961         * modules/strnlen (Depends-on): Likewise.
44962
44963 2008-11-02  Bruno Haible  <bruno@clisp.org>
44964
44965         Mark 'atexit' obsolete.
44966         * modules/atexit (Status, Notice): New sections.
44967         * modules/chdir-long (Depends-on): Add atexit.
44968         * modules/wait-process (Depends-on): Likewise.
44969
44970 2008-11-02  Bruno Haible  <bruno@clisp.org>
44971
44972         * gnulib-tool: New option --with-obsolete.
44973         (func_usage): Document it.
44974         (func_modules_transitive_closure): Drop obsolete dependencies if
44975         incobsolete is not true.
44976         (func_import): Read and save the incobsolete variable to the cache.
44977
44978 2008-11-02  Bruno Haible  <bruno@clisp.org>
44979
44980         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44981         * gnulib-tool: New option --extract-status.
44982         (func_usage): Document it.
44983         (sed_extract_prog): Recognize it.
44984         (func_get_status): New function.
44985
44986 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44987
44988         * modules/sockets (License): Change from LGPL to LGPLv2+.
44989
44990 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44991
44992         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
44993
44994 2008-10-28  Simon Josefsson  <simon@josefsson.org>
44995
44996         * MODULES.html.sh (Support for systems lacking POSIX:2001):
44997         Mention times and sys_times.
44998         * modules/sys_times, modules/sys_times-tests: New modules.
44999         * modules/times, modules/times-tests: Likewise
45000         * m4/sys_times_h.m4: New file.
45001         * lib/sys_times.in.h: Likewise
45002         * lib/times.c: Likewise.
45003         * tests/test-sys_times.c: Likewise.
45004         * tests/test-times.c: Likewise.
45005         * doc/posix-headers/sys_times.texi: Update.
45006         * doc/posix-functions/times.texi: Update.
45007
45008 2008-10-28  Jim Meyering  <meyering@redhat.com>
45009
45010         * modules/tempname (Depends-on): Add lstat.
45011
45012         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45013
45014 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45015
45016         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45017         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45018         using idiom used elsewhere in gnulib.
45019
45020 2008-10-27  Jim Meyering  <meyering@redhat.com>
45021
45022         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45023
45024 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45025
45026         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45027         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45028         programs.
45029         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45030
45031 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45032
45033         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45034
45035 2008-10-27  Bruno Haible  <bruno@clisp.org>
45036
45037         * tests/test-lstat.c: Include <stdio.h>.
45038
45039 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45040
45041         * modules/lstat-tests: New module.
45042         * tests/test-lstat.c: New file.
45043
45044 2008-10-26  Jim Meyering  <meyering@redhat.com>
45045
45046         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45047
45048 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45049             Bruno Haible  <bruno@clisp.org>
45050
45051         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45052         * modules/configmake (Include): Add a note that the include must come
45053         after all system headers.
45054         * lib/javaversion.c: Include configmake.h after all other includes.
45055
45056 2008-10-26  Bruno Haible  <bruno@clisp.org>
45057
45058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45059         HAVE_STRUCT_RANDOM_DATA to 1.
45060         (gl_STDLIB_H): Simplify.
45061
45062 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45063
45064         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45065         substitute HAVE_STRUCT_RANDOM_DATA.
45066         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45067         random_data.
45068         * modules/stdlib (Makefile.am): Substitute
45069         HAVE_STRUCT_RANDOM_DATA.
45070
45071 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45072
45073         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45074         * doc/gnulib-intro.texi (Copyright): Likewise.
45075
45076 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45077
45078         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45079         findings.
45080
45081 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45082             Bruno Haible  <bruno@clisp.org>
45083
45084         * lib/unistd.in.h: Include <winsock2.h>.
45085         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45086         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45087         Provide dummy declarations.
45088         (gethostname): Override.
45089         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45090         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45091         gl_PREREQ_SYS_H_WINSOCK2.
45092         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45093         * doc/posix-functions/gethostname.texi: More details.
45094
45095 2008-10-25  Bruno Haible  <bruno@clisp.org>
45096
45097         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45098         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45099         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45100
45101         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45102         here ...
45103         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45104         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45105         gl_UNISTD_H_DEFAULTS.
45106
45107 2008-10-25  Eric Blake  <ebb9@byu.net>
45108
45109         signbit: avoid spurious compiler failure
45110         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45111         declarations inside function.
45112
45113 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45114             Bruno Haible  <bruno@clisp.org>
45115
45116         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45117         * modules/random_r (Depends-on): Add stdint.
45118
45119 2008-10-24  Bruno Haible  <bruno@clisp.org>
45120
45121         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45122         Eggert.
45123         * modules/strerror (License): Likewise.
45124
45125 2008-10-24  Jim Meyering  <meyering@redhat.com>
45126
45127         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45128         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45129
45130 2008-10-24  Eric Blake  <ebb9@byu.net>
45131
45132         getgroups: fix compilation when getgroups is available
45133         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45134         but with <config.h> override of getgroups disabled.
45135
45136 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45137
45138         * doc/gnulib.texi (Header files): Add note about C++ problems.
45139         Explained by Bruno Haible <bruno@clisp.org>.
45140
45141 2008-10-23  Bruno Haible  <bruno@clisp.org>
45142
45143         Define a dummy SA_NODEFER macro on Interix.
45144         * lib/signal.in.h (SA_NODEFER): Define fallback.
45145         Reported by Aleksey Cheusov <cheusov@tut.by> via
45146         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45147
45148 2008-10-23  Bruno Haible  <bruno@clisp.org>
45149
45150         * modules/freadahead (License): Change to LGPLv2+.
45151         Suggested by Simon Josefsson.
45152
45153 2008-10-23  Jim Meyering  <meyering@redhat.com>
45154
45155         random_r: new module
45156         * modules/random_r: New file.
45157         * m4/random_r.m4: New file.
45158         * lib/random_r.c: New file, from glibc.
45159         * modules/random_r-tests: New file.
45160         * tests/test-random_r.c: New file.
45161         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45162          Declare.
45163         (RAND_MAX): Define.
45164         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45165         * modules/stdlib: Substitute them, too.
45166         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45167         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45168         * doc/glibc-functions/random_r.texi: Likewise.
45169         * doc/glibc-functions/setstate_r.texi: Likewise.
45170         * doc/glibc-functions/srandom_r.texi: Likewise.
45171         * config/srclist.txt: Mention it.
45172
45173 2008-10-23  David Lutterkort  <lutter@redhat.com>
45174
45175         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45176         link requirement
45177
45178 2008-10-23  Jim Meyering  <meyering@redhat.com>
45179
45180         selinux-h: mark parameters of stub functions as intentionally unused
45181         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45182         * lib/se-context.in.h: Likewise.
45183
45184 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45185
45186         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45187
45188 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45189
45190         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45191
45192 2008-10-22  Eric Blake  <ebb9@byu.net>
45193
45194         glthread/thread: avoid compiler warning
45195         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45196         Add unreachable abort to silence compiler.
45197
45198 2008-10-22  Eric Blake  <ebb9@byu.net>
45199
45200         netdb: also supply struct addrinfo for cygwin 1.5.x
45201         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45202         older cygwin.
45203         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45204         cygwin.
45205         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45206
45207 2008-10-22  Bruno Haible  <bruno@clisp.org>
45208
45209         * users.txt: Update entry about pspp.
45210
45211 2008-10-21  Bruno Haible  <bruno@clisp.org>
45212
45213         Simplification.
45214         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45215         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45216
45217         Simplification.
45218         * lib/ioctl.c (ioctl): Don't undefine.
45219         * lib/socket.c (socket): Don't undefine.
45220
45221         Remove unused module indicator macros.
45222         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45223         GNULIB_$1 as a C macro.
45224
45225         * doc/posix-functions/close.texi: Undo last change.
45226         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45227         Windows platforms.
45228
45229 2008-10-21  Bruno Haible  <bruno@clisp.org>
45230
45231         Add gethostname() declaration to <unistd.h>.
45232         * lib/unistd.in.h (gethostname): New declaration.
45233         * lib/gethostname.c: Include <unistd.h>.
45234         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45235         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45237         and HAVE_GETHOSTNAME.
45238         * modules/gethostname (Depends-on): Add unistd.
45239         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45240         (Include): Specify <unistd.h>.
45241         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45242         HAVE_GETHOSTNAME.
45243         * tests/test-gethostname.c: Include <unistd.h> first.
45244
45245 2008-10-21  Bruno Haible  <bruno@clisp.org>
45246
45247         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45248         * modules/select-tests (Depends-on): Likewise.
45249         Reported by Simon Josefsson.
45250
45251 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45252
45253         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45254         * lib/accept.c: New file, based on winsock.c.
45255         * lib/bind.c: New file, based on winsock.c.
45256         * lib/connect.c: New file, based on winsock.c.
45257         * lib/getpeername.c: New file, based on winsock.c.
45258         * lib/getsockname.c: New file, based on winsock.c.
45259         * lib/getsockopt.c: New file, based on winsock.c.
45260         * lib/ioctl.c: New file, based on winsock.c.
45261         * lib/listen.c: New file, based on winsock.c.
45262         * lib/recv.c: New file, based on winsock.c.
45263         * lib/recvfrom.c: New file, based on winsock.c.
45264         * lib/send.c: New file, based on winsock.c.
45265         * lib/sendto.c: New file, based on winsock.c.
45266         * lib/setsockopt.c: New file, based on winsock.c.
45267         * lib/shutdown.c: New file, based on winsock.c.
45268         * lib/socket.c: New file, based on winsock.c.
45269         * lib/w32sock.h: New file, based on winsock.c.
45270         * lib/winsock.c: Remove file.
45271         * modules/accept: Likewise.
45272         * modules/bind: Likewise.
45273         * modules/connect: Likewise.
45274         * modules/getpeername: Likewise.
45275         * modules/getsockname: Likewise.
45276         * modules/getsockopt: Likewise.
45277         * modules/ioctl: Likewise.
45278         * modules/listen: Likewise.
45279         * modules/recv: Likewise.
45280         * modules/recvfrom: Likewise.
45281         * modules/send: Likewise.
45282         * modules/sendto: Likewise.
45283         * modules/setsockopt: Likewise.
45284         * modules/shutdown: Likewise.
45285         * modules/socket: Use socket.c instead of winsock.c.
45286         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45287         * doc/posix-functions/accept.texi: Doc fix.
45288         * doc/posix-functions/bind.texi: Doc fix.
45289         * doc/posix-functions/close.texi: Doc fix.
45290         * doc/posix-functions/connect.texi: Doc fix.
45291         * doc/posix-functions/getpeername.texi: Doc fix.
45292         * doc/posix-functions/getsockname.texi: Doc fix.
45293         * doc/posix-functions/getsockopt.texi: Doc fix.
45294         * doc/posix-functions/ioctl.texi: Doc fix.
45295         * doc/posix-functions/listen.texi: Doc fix.
45296         * doc/posix-functions/recv.texi: Doc fix.
45297         * doc/posix-functions/recvfrom.texi: Doc fix.
45298         * doc/posix-functions/send.texi: Doc fix.
45299         * doc/posix-functions/sendto.texi: Doc fix.
45300         * doc/posix-functions/setsockopt.texi: Doc fix.
45301         * doc/posix-functions/shutdown.texi: Doc fix.
45302         * doc/posix-functions/socket.texi: Doc fix.
45303
45304 2008-10-20  Bruno Haible  <bruno@clisp.org>
45305
45306         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45307         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45308         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45309         as an alias for SIGABRT.
45310         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45311         (sigaction): Map it to SIGABRT.
45312         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45313
45314 2008-10-20  Bruno Haible  <bruno@clisp.org>
45315
45316         * lib/fts.c: Don't include lstat.h.
45317         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45318
45319         Move the lstat() declaration to <sys/stat.h>.
45320         * lib/lstat.h: Remove file.
45321         * lib/sys_stat.in.h: Add special invocation convention.
45322         (lstat): New declaration.
45323         * lib/lstat.c (orig_lstat): New function.
45324         (rpl_lstat): Use orig_lstat instead of lstat.
45325         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45326         AC_C_INLINE. Set REPLACE_LSTAT.
45327         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45328         and REPLACE_LSTAT.
45329         * modules/lstat (Files): Remove lib/lstat.h.
45330         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45331         (Include): Specify <sys/stat.h> instead of lstat.h.
45332         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45333         REPLACE_LSTAT.
45334         * NEWS: Mention the change.
45335
45336 2008-10-20  Bruno Haible  <bruno@clisp.org>
45337
45338         * modules/posix_spawn-tests: New file.
45339         * tests/test-posix_spawn3.c: New file.
45340
45341 2008-10-20  Bruno Haible  <bruno@clisp.org>
45342
45343         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45344         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45345         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45346         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45347         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45348
45349 2008-10-20  Bruno Haible  <bruno@clisp.org>
45350
45351         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45352         of posix_spawn on AIX 5.3.
45353
45354 2008-10-20  Bruno Haible  <bruno@clisp.org>
45355
45356         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45357
45358 2008-10-20  Bruno Haible  <bruno@clisp.org>
45359
45360         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45361         of AC_LANG_PROGRAM.
45362
45363 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45364
45365         * lib/netdb.in.h: Don't define GNU specific constants until they
45366         are supported or needed.  Reported by Bruno Haible
45367         <bruno@clisp.org>.
45368
45369 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45370
45371         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45372
45373 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45374
45375         * lib/getaddrinfo.h: Remove file.
45376         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45377         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45378         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45379         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45380         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45381         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45382         * tests/test-getaddrinfo.c: Likewise.
45383         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45384         * NEWS: Mention change.
45385
45386 2008-10-19  Bruno Haible  <bruno@clisp.org>
45387
45388         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45389
45390 2008-10-19  Bruno Haible  <bruno@clisp.org>
45391
45392         * lib/wait-process.c: Include simply <sys/wait.h>.
45393         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45394         WIFSTOPPED): Remove fallback definitions.
45395         * modules/wait-process (Depends-on): Add sys_wait.
45396
45397         New module 'sys_wait'.
45398         * modules/sys_wait: New file.
45399         * lib/sys_wait.in.h: New file, partially copied from
45400         lib/wait-process.c.
45401         * m4/sys_wait_h.m4: New file.
45402         * doc/posix-headers/sys_wait.texi: Mention the new module.
45403
45404 2008-10-19  Bruno Haible  <bruno@clisp.org>
45405
45406         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45407
45408 2008-10-19  Bruno Haible  <bruno@clisp.org>
45409
45410         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45411         * lib/wait-process.c (WAIT_T): Remove type.
45412         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45413         (wait_subprocess): Update.
45414
45415 2008-10-19  Bruno Haible  <bruno@clisp.org>
45416
45417         New module 'atoll'.
45418         * modules/atoll: New file.
45419         * lib/stdlib.in.h (atoll): New declaration.
45420         * lib/atoll.c: New file, from glibc with modifications.
45421         * m4/atoll.m4: New file.
45422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45423         HAVE_ATOLL.
45424         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45425         * doc/posix-functions/atoll.texi: Mention the new module.
45426
45427 2008-10-19  Bruno Haible  <bruno@clisp.org>
45428
45429         Add strtoull() declaration to <stdlib.h>.
45430         * lib/stdlib.in.h (strtoull): New declaration.
45431         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45432         Set HAVE_STRTOULL.
45433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45434         HAVE_STRTOULL.
45435         * modules/strtoull (Depends-on): Add stdlib.
45436         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45437         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45438         HAVE_STRTOULL.
45439
45440 2008-10-19  Bruno Haible  <bruno@clisp.org>
45441
45442         Add strtoll() declaration to <stdlib.h>.
45443         * lib/stdlib.in.h (strtoll): New declaration.
45444         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45445         Set HAVE_STRTOLL.
45446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45447         HAVE_STRTOLL.
45448         * modules/strtoll (Depends-on): Add stdlib.
45449         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45450         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45451
45452 2008-10-19  Bruno Haible  <bruno@clisp.org>
45453
45454         * modules/bcopy (Depends-on): Add strings.
45455         (Include): Specify <strings.h>.
45456
45457 2008-10-19  Bruno Haible  <bruno@clisp.org>
45458
45459         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45460
45461 2008-10-19  Bruno Haible  <bruno@clisp.org>
45462
45463         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45464         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45465         mingw.
45466
45467 2008-10-19  Bruno Haible  <bruno@clisp.org>
45468
45469         * lib/atanl.c: Don't include isnanl.h.
45470         * lib/cosl.c: Likewise.
45471         * lib/ldexpl.c: Likewise.
45472         * lib/logl.c: Likewise.
45473         * lib/sinl.c: Likewise.
45474         * lib/sqrtl.c: Likewise.
45475         * lib/tanl.c: Likewise.
45476
45477         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45478         * lib/isnanf.h: Remove file.
45479         * lib/isnand.h: Remove file.
45480         * lib/isnanl.h: Remove file.
45481         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45482         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45483         macros.
45484         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45485         HAVE_ISNANF, don't define it as a C macro.
45486         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45487         HAVE_ISNAND, don't define it as a C macro.
45488         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45489         HAVE_ISNANL, don't define it as a C macro.
45490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45491         HAVE_ISNAN[FDL].
45492         * modules/isnanf (Files): Remove lib/isnanf.h.
45493         (Depends-on): Add math.
45494         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45495         (Include): Specify <math.h> instead of isnanf.h.
45496         * modules/isnand (Files): Remove lib/isnand.h.
45497         (Depends-on): Add math.
45498         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45499         (Include): Specify <math.h> instead of isnand.h.
45500         * modules/isnanl (Files): Remove lib/isnanl.h.
45501         (Depends-on): Add math.
45502         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45503         (Include): Specify <math.h> instead of isnanl.h.
45504         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45505         HAVE_ISNAN[FDL].
45506         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45507         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45508         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45509         * NEWS: Mention the change.
45510
45511 2008-10-18  Bruno Haible  <bruno@clisp.org>
45512
45513         Add getusershell(), setusershell(), endusershell() declarations to
45514         <unistd.h>.
45515         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45516         declarations.
45517         * lib/getusershell.c: Include unistd.h.
45518         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45519         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45520         HAVE_GETUSERSHELL.
45521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45522         and HAVE_GETUSERSHELL.
45523         * modules/getusershell (Depends-on): Add unistd, extensions.
45524         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45525         (Include): Specify <unistd.h>.
45526         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45527         HAVE_GETUSERSHELL.
45528
45529 2008-10-18  Bruno Haible  <bruno@clisp.org>
45530
45531         Add a getloadavg() declaration to <stdlib.h>.
45532         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45533         getloadavg declaration.
45534         (getloadavg): New declaration.
45535         * lib/getloadavg.c: Include <stdlib.h> first.
45536         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45537         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45538         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45540         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45541         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45542         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45543         (Include): Specify <stdlib.h>.
45544         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45545         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45546
45547 2008-10-18  Bruno Haible  <bruno@clisp.org>
45548
45549         * lib/dirchownmod.c: Don't include lchmod.h.
45550
45551         Move the lchmod() declaration to <sys/stat.h>.
45552         * lib/lchmod.h: Remove file.
45553         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45554         (lchmod): New declaration, moved here from lib/lchown.h.
45555         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45556         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45557         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45558         and HAVE_LCHMOD.
45559         * modules/lchmod (Files): Remove lib/lchmod.h.
45560         (Depends-on): Add sys_stat, extensions.
45561         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45562         (Include): Specify <sys/stat.h> instead of lchmod.h.
45563         * modules/sys_stat (Depends-on): Add link-warning.
45564         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45565         definition of GL_LINK_WARNING.
45566         * NEWS: Mention the change.
45567
45568 2008-10-18  Bruno Haible  <bruno@clisp.org>
45569
45570         * lib/fchdir.c: Don't include dirfd.h.
45571         * lib/fts.c: Likewise.
45572         * lib/getcwd.c: Likewise.
45573         * lib/glob.c: Likewise.
45574
45575         Move the dirfd() declaration to <dirent.h>.
45576         * lib/dirfd.h: Remove file.
45577         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45578         (dirfd): New declaration.
45579         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45580         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45581         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45582         HAVE_DECL_DIRFD.
45583         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45584         HAVE_DECL_DIRFD.
45585         * modules/dirfd (Files): Remove lib/dirfd.h.
45586         (Depends-on): Add dirent, extensions.
45587         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45588         (Include): Specify <dirent.h> instead of dirfd.h.
45589         * modules/dirent (Depends-on): Add link-warning.
45590         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45591         definition of GL_LINK_WARNING.
45592         * NEWS: Mention the change.
45593
45594 2008-10-18  Bruno Haible  <bruno@clisp.org>
45595
45596         Move the euidaccess() declaration to <unistd.h>.
45597         * lib/euidaccess.h: Remove file.
45598         * lib/unistd.in.h (euidaccess): New declaration.
45599         * lib/euidaccess.c: Don't include euidaccess.h.
45600         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45601         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45603         and HAVE_EUIDACCESS.
45604         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45605         (Depends-on): Add unistd.
45606         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45607         (Include): Specify <unistd.h> instead of euidaccess.h.
45608         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45609         HAVE_EUIDACCESS.
45610         * NEWS: Mention the change.
45611
45612 2008-10-18  Bruno Haible  <bruno@clisp.org>
45613
45614         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45615
45616         Move the getdomainname() declaration to <unistd.h>.
45617         * lib/getdomainname.h: Remove file.
45618         * lib/unistd.in.h (getdomainname): New declaration.
45619         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45620         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45621         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45622         HAVE_GETDOMAINNAME.
45623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45624         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45625         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45626         (Depends-on): Add unistd, extensions.
45627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45628         (Includes): Specify <unistd.h> instead of getdomainname.h.
45629         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45630         HAVE_GETDOMAINNAME.
45631         * NEWS: Mention the change.
45632
45633 2008-10-18  Bruno Haible  <bruno@clisp.org>
45634
45635         * modules/dirent: New file.
45636         * m4/dirent_h.m4: New file.
45637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45638         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45639         * modules/fchdir (Files): Remove lib/dirent.in.h.
45640         (Depends-on): Add dirent.
45641         (Makefile.am): Move rules to modules/dirent.
45642         * doc/posix-headers/dirent.texi: Mention the new module.
45643
45644 2008-10-18  Bruno Haible  <bruno@clisp.org>
45645
45646         Avoid -Wunused-parameter warnings in public gnulib header files.
45647         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45648         macro.
45649         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45650
45651 2008-10-18  Bruno Haible  <bruno@clisp.org>
45652
45653         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45654         * doc/glibc-functions/error.texi: Mention the module 'error'.
45655         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45656         * doc/glibc-functions/getdomainname.texi: Mention the module
45657         'getdomainname'.
45658         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45659         * doc/glibc-functions/getpagesize.texi: Mention the module
45660         'getpagesize'.
45661         * doc/glibc-functions/getusershell.texi: Mention the module
45662         'getusershell'.
45663         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45664         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45665         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45666         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45667         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45668         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45669         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45670         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45671         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45672         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45673         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45674         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45675         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45676         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45677
45678 2008-10-17  Bruno Haible  <bruno@clisp.org>
45679
45680         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45681         HP-UX and IRIX, use -0.0L.
45682         * tests/test-ceill.c (minus_zero): Likewise.
45683         * tests/test-floorl.c (minus_zero): Likewise.
45684         * tests/test-frexpl.c (minus_zero): Likewise.
45685         * tests/test-isnan.c (minus_zerol): Likewise.
45686         * tests/test-isnanl.h (minus_zero): Likewise.
45687         * tests/test-ldexpl.c (minus_zero): Likewise.
45688         * tests/test-roundl.c (minus_zero): Likewise.
45689         * tests/test-signbit.c (minus_zerol): Likewise.
45690         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45691         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45692         * tests/test-truncl.c (minus_zero): Likewise.
45693         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45694         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45695         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45696         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45697
45698 2008-10-17  Bruno Haible  <bruno@clisp.org>
45699
45700         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45701         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45702         that it gets activated only for gcc >= 3.0.
45703         * lib/dirent.in.h: Likewise.
45704         * lib/errno.in.h: Likewise.
45705         * lib/fcntl.in.h: Likewise.
45706         * lib/float.in.h: Likewise.
45707         * lib/iconv.in.h: Likewise.
45708         * lib/inttypes.in.h: Likewise.
45709         * lib/locale.in.h: Likewise.
45710         * lib/math.in.h: Likewise.
45711         * lib/netdb.in.h: Likewise.
45712         * lib/netinet_in.in.h: Likewise.
45713         * lib/search.in.h: Likewise.
45714         * lib/signal.in.h: Likewise.
45715         * lib/spawn.in.h: Likewise.
45716         * lib/stdarg.in.h: Likewise.
45717         * lib/stdint.in.h: Likewise.
45718         * lib/stdio.in.h: Likewise.
45719         * lib/stdlib.in.h: Likewise.
45720         * lib/string.in.h: Likewise.
45721         * lib/strings.in.h: Likewise.
45722         * lib/sys_file.in.h: Likewise.
45723         * lib/sys_ioctl.in.h: Likewise.
45724         * lib/sys_select.in.h: Likewise.
45725         * lib/sys_socket.in.h: Likewise.
45726         * lib/sys_stat.in.h: Likewise.
45727         * lib/sys_time.in.h: Likewise.
45728         * lib/sysexits.in.h: Likewise.
45729         * lib/time.in.h: Likewise.
45730         * lib/unistd.in.h: Likewise.
45731         * lib/wchar.in.h: Likewise.
45732         * lib/wctype.in.h: Likewise.
45733         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45734
45735 2008-10-17  Jim Meyering  <meyering@redhat.com>
45736
45737         ignore-value: don't depend on inline module
45738         * modules/ignore-value (Depends-on): Remove 'inline'.
45739         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45740         Suggestion from Bruno Haible.
45741
45742 2008-10-17  Bruno Haible  <bruno@clisp.org>
45743
45744         New implementation of condition variables for Win32.
45745         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45746         (gl_linked_waitqueue_t): New type.
45747         (gl_cond_t): Use it.
45748         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45749         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45750         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45751         (glthread_cond_init_func, glthread_cond_wait_func,
45752         glthread_cond_timedwait_func, glthread_cond_signal_func,
45753         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45754         Reimplemented on the basis of gl_linked_waitqueue_t.
45755         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45756         gl_waitqueue_t.
45757         (gl_rwlock_t): Update.
45758         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45759
45760 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45761
45762         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45763         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45764
45765 2008-10-17  Jim Meyering  <meyering@redhat.com>
45766
45767         ignore-value: new module
45768         * modules/ignore-value: New file.
45769         * lib/ignore-value.h: New file.
45770         * MODULES.html.sh (Compiler warning management): New section,
45771         just for this module.  More to come.
45772
45773 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45774
45775         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45776         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45777         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45778
45779 2008-10-16  Jim Meyering  <meyering@redhat.com>
45780
45781         openat-die.c: avoid 'no previous prototype' warning
45782         * lib/openat-die.c: Include "openat.h".
45783         Reported by Reuben Thomas <rrt@sc3d.org>.
45784
45785 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45786
45787         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45788         * lib/netdb.in.h: Fix typo.
45789         Reported by Bruno Haible  <bruno@clisp.org>
45790
45791         * lib/netdb.in.h: Include sys/socket.h for platforms without
45792         netdb.h, to get structures like hostent on MinGW.
45793         * modules/netdb (Depends-on): Add sys_socket.
45794
45795 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45796
45797         * modules/netdb, modules/netdb-tests: New file.
45798         * m4/netdb_h.m4: New file.
45799         * lib/netdb.in.h: Add, currently just an empty file pending
45800         definitions.
45801         * tests/test-netdb.c: New file.
45802         * doc/posix-headers/netdb.texi: Mention that we replace it if
45803         needed.
45804         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45805         netdb.
45806
45807 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45808
45809         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45810         with code.
45811
45812 2008-10-13  Bruno Haible  <bruno@clisp.org>
45813
45814         * lib/glthread/cond.c (glthread_cond_wait_func,
45815         glthread_cond_timedwait_func): Add a comment.
45816
45817 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45818
45819         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45820         * tests/test-select.c: Likewise,
45821
45822 2008-10-13  Bruno Haible  <bruno@clisp.org>
45823
45824         * lib/glthread/cond.c (glthread_cond_wait_func,
45825         glthread_cond_timedwait_func): Fix variable name.
45826         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45827
45828 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45829
45830         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45831         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45832         struct sockaddr.sa_len.
45833         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45834
45835 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45836
45837         * build-aux/pmccabe2html: Add css and css_url parameters.
45838
45839 2008-10-12  Bruno Haible  <bruno@clisp.org>
45840
45841         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45842         calling aclx_get.
45843         Reported by Rainer Tammer <tammer@tammer.net>.
45844
45845 2008-10-12  Bruno Haible  <bruno@clisp.org>
45846
45847         Use msvcrt aware primitives for creation/termination of Win32 threads.
45848         * lib/glthread/thread.c: Include <process.h>.
45849         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45850         (wrapper_func): Update signature.
45851         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45852
45853 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45854             Bruno Haible  <bruno@clisp.org>
45855
45856         Provide a Win32 implementation of the 'cond' module.
45857         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45858         * lib/glthread/cond.c (glthread_cond_init_func,
45859         glthread_cond_wait_func, glthread_cond_timedwait_func,
45860         glthread_cond_signal_func, glthread_cond_broadcast_func,
45861         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45862         * modules/cond (Dependencies): Add gettimeofday.
45863
45864 2008-10-11  Bruno Haible  <bruno@clisp.org>
45865
45866         Make sleep work on older versions of mingw.
45867         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45868         only whether it exists.
45869         * doc/posix-functions/sleep.texi: Mention the problem with older
45870         versions of mingw.
45871
45872 2008-10-11  Bruno Haible  <bruno@clisp.org>
45873
45874         New module 'shutdown'.
45875         * modules/shutdown: New file.
45876         * lib/sys_socket.in.h (shutdown): New declaration.
45877         * lib/winsock.c (shutdown): New function.
45878         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45879         GNULIB_SHUTDOWN.
45880         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45881         * doc/posix-functions/shutdown.texi: Document the new module.
45882
45883 2008-10-11  Jim Meyering  <meyering@redhat.com>
45884
45885         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45886
45887 2008-10-11  Bruno Haible  <bruno@clisp.org>
45888
45889         New module 'fclose'.
45890         * modules/fclose: New file.
45891         * lib/stdio.in.h (fclose): New declaration.
45892         * lib/fclose.c: New file.
45893         * m4/fclose.m4: New file.
45894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45895         REPLACE_FCLOSE.
45896         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45897         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45898         REPLACE_FCLOSE.
45899         * modules/close (Depends-on): fclose.
45900         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45901
45902 2008-10-11  Bruno Haible  <bruno@clisp.org>
45903
45904         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45905         set errno and don't call _close.
45906
45907 2008-10-10  Bruno Haible  <bruno@clisp.org>
45908
45909         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45910         ACL, not afterwards. Fixes test failure on Cygwin.
45911
45912 2008-10-09  Ben Pfaff  <blp@gnu.org>
45913
45914         * build-aux/announce-gen: Fix gnulib version related part of usage
45915         message.  Die with a useful error message if no tarballs are
45916         found.
45917
45918 2008-10-10  Jim Meyering  <meyering@redhat.com>
45919
45920         bootstrap: use git's --depth=N option only if it's supported
45921         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45922         recognize the --depth option.  Reported by Pádraig Brady.
45923
45924 2008-10-09  Bruno Haible  <bruno@clisp.org>
45925
45926         New module 'ioctl'.
45927         * modules/ioctl: New file.
45928         * lib/sys_socket.in.h (ioctl): Remove declaration.
45929         * lib/winsock.c: Include <sys/ioctl.h>.
45930         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45931         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45932         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45933         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45934         * doc/posix-functions/ioctl.texi: Mention the new module.
45935
45936 2008-10-09  Bruno Haible  <bruno@clisp.org>
45937
45938         New module 'sys_ioctl'.
45939         * lib/sys_ioctl.in.h: New file.
45940         * m4/sys_ioctl_h.m4: New file.
45941         * modules/sys_ioctl: New file.
45942         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45943
45944 2008-10-09  Bruno Haible  <bruno@clisp.org>
45945
45946         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45947         * lib/winsock.c: Include <stdarg.h>.
45948         (rpl_ioctl): Change to second argument 'int' and then varargs.
45949
45950 2008-10-09  Bruno Haible  <bruno@clisp.org>
45951
45952         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45953         when the sys_socket module is present and the system has <winsock2.h>.
45954
45955 2008-10-09  Bruno Haible  <bruno@clisp.org>
45956
45957         * doc/posix-functions/close.texi: Mention module 'close' instead of
45958         module 'sys_socket'.
45959
45960 2008-10-09  Bruno Haible  <bruno@clisp.org>
45961
45962         * doc/glibc-headers/sys_ioctl.texi: New file.
45963         * doc/gnulib.texi: Include it.
45964
45965 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45966             Bruno Haible  <bruno@clisp.org>
45967
45968         Combine the two replacements of 'close'.
45969         * lib/sys_socket.in.h (close): Define to a reminder to include
45970         <unistd.h>.
45971         (_gl_close_fd_maybe_socket): New declaration.
45972         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45973         * lib/winsock.c (close): Remove undefinition.
45974         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45975         needed for the gnulib module 'close'.
45976         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45977         define to an error symbol or to a warning, if suitable.
45978         * lib/close.c: Include <sys/socket.h>.
45979         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45980         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45981         UNISTD_H_HAVE_WINSOCK2_H.
45982         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45984         UNISTD_H_HAVE_WINSOCK2_H.
45985         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45986         (configure.ac): Set a module indicator.
45987         (Makefile.am): Substitute GNULIB_CLOSE.
45988         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
45989         * modules/poll-tests (Depends-on): Add close.
45990         * modules/select-tests (Depends-on): Likewise.
45991
45992 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45993             Bruno Haible  <bruno@clisp.org>
45994
45995         New module 'close'.
45996         * modules/close: New file.
45997         * lib/unistd.in.h (close): Move declaration out of the
45998         FCHDIR_REPLACEMENT scope.
45999         (_gl_unregister_fd): New declaration.
46000         * lib/close.c: New file.
46001         * lib/fchdir.c (rpl_close): Remove function.
46002         * m4/close.m4: New file.
46003         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46004         close.
46005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46006         REPLACE_CLOSE.
46007         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46008         REPLACE_CLOSE.
46009         * modules/fchdir (Depends-on): Add close.
46010
46011 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46012             Bruno Haible  <bruno@clisp.org>
46013
46014         * lib/fcntl.in.h (open): Simplify conditionals.
46015         (_gl_register_fd): New declaration.
46016         * lib/fchdir.c (rpl_open): Remove function.
46017         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46018         also.
46019         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46021         open.
46022
46023 2008-10-09  Jim Meyering  <meyering@redhat.com>
46024
46025         GNUmakefile: use the more name-space-friendly "_version"
46026         * top/GNUmakefile (_dummy): Update.
46027         (_version): Rename from "version".
46028
46029 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46030             Bruno Haible  <bruno@clisp.org>
46031
46032         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46033         rpl_close.
46034         (_gl_register_fd): New function, extracted from rpl_open.
46035         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46036         (rpl_open, rpl_opendir): Use _gl_register_fd.
46037
46038 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46039
46040         Fix organization of 'open' replacement.
46041         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46042         (gl_FUNC_OPEN): Use it.
46043         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46044
46045 2008-10-08  Bruno Haible  <bruno@clisp.org>
46046
46047         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46048
46049 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46050
46051         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46052         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46053         listen).
46054
46055 2008-10-08  Eric Blake  <ebb9@byu.net>
46056
46057         GNUmakefile: add 'make version' target
46058         * top/GNUmakefile (_curr-ver): Split version update rules...
46059         (version): ...into a target.
46060
46061 2008-10-07  Bruno Haible  <bruno@clisp.org>
46062
46063         Use a more portable replacement expression for -0.0L.
46064         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46065         instead of -0.0L. Fix m4 quotation.
46066
46067         * tests/test-signbit.c: Include <float.h>.
46068         (minus_zero): New variable.
46069         (test_signbitl): Use minus_zero instead of -zero.
46070         * modules/signbit-tests (Depends-on): Add float.
46071
46072         * tests/test-ceill.c: Include <float.h>.
46073         (zero): Remove variable.
46074         (minus_zero): New variable.
46075         (main): Use minus_zero instead of -zero.
46076         * modules/ceill-tests (Depends-on): Add float.
46077
46078         * tests/test-floorl.c: Include <float.h>.
46079         (zero): Remove variable.
46080         (minus_zero): New variable.
46081         (main): Use minus_zero instead of -zero.
46082         * modules/floorl-tests (Depends-on): Add float.
46083
46084         * tests/test-roundl.c: Include <float.h>.
46085         (zero): Remove variable.
46086         (minus_zero): New variable.
46087         (main): Use minus_zero instead of -zero.
46088         * modules/roundl-tests (Depends-on): Add float.
46089
46090         * tests/test-truncl.c: Include <float.h>.
46091         (zero): Remove variable.
46092         (minus_zero): New variable.
46093         (main): Use minus_zero instead of -zero.
46094         * modules/truncl-tests (Depends-on): Add float.
46095
46096         * tests/test-frexpl.c (zero): Remove variable.
46097         (minus_zero): New variable.
46098         (main): Use minus_zero instead of -zero.
46099         * modules/frexpl-tests (Depends-on): Add float.
46100
46101         * tests/test-isnan.c (zerol): Remove variable.
46102         (minus_zerol): New variable.
46103         (test_long_double): Use minus_zerol instead of -zerol.
46104         * modules/isnan-tests (Depends-on): Add float.
46105
46106         * tests/test-isnanl.h (zero): Remove variable.
46107         (minus_zero): New variable.
46108         (main): Use minus_zero instead of -zero.
46109         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46110         * modules/isnanl-tests (Depends-on): Add float.
46111
46112         * tests/test-ldexpl.c (zero): Remove variable.
46113         (minus_zero): New variable.
46114         (main): Use minus_zero instead of -zero.
46115         * modules/ldexpl-tests (Depends-on): Add float.
46116
46117         * tests/test-snprintf-posix.h (zerol): Remove variable.
46118         (minus_zerol): New variable.
46119         (test_function): Use minus_zerol instead of -zerol.
46120         * modules/snprintf-posix-tests (Depends-on): Add float.
46121         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46122
46123         * tests/test-sprintf-posix.h (zerol): Remove variable.
46124         (minus_zerol): New variable.
46125         (test_function): Use minus_zerol instead of -zerol.
46126         * modules/sprintf-posix-tests (Depends-on): Add float.
46127         * modules/vsprintf-posix-tests (Depends-on): Add float.
46128
46129         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46130         (minus_zerol): New variable.
46131         (test_function): Use minus_zerol instead of -zerol.
46132         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46133
46134         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46135         (minus_zerol): New variable.
46136         (test_function): Use minus_zerol instead of -zerol.
46137         * modules/vasprintf-posix-tests (Depends-on): Add float.
46138
46139 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46140
46141         * MODULES.html.sh (Support for building documentation): Mention
46142         pmccabe2html.  Sort entries.
46143
46144         Add pmccabe2html module, from gnupdf.
46145         * build-aux/pmccabe.css: New file.
46146         * build-aux/pmccabe2html: New file.
46147         * m4/pmccabe2html.m4: New file.
46148         * modules/pmccabe2html: New file.
46149
46150 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46151
46152         flock: new module
46153         * MODULES.html.sh: Add to list of modules.
46154         * lib/flock.c: flock implementation for Windows and Unix systems
46155         which have fcntl.
46156         * doc/glibc-functions/flock.texi: Update documentation.
46157         * lib/sys_file.in.h: <sys/file.h> header file.
46158         * m4/flock.m4: M4 macros.
46159         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46160         * modules/flock: flock module.
46161         * modules/flock-tests: flock tests module.
46162         * modules/sys_file: sys/file.h module.
46163         * tests/test-flock.c: test suite for flock.
46164
46165 2008-10-06  Jim Meyering  <meyering@redhat.com>
46166
46167         bootstrap: check for LT_INIT more portably still ;-)
46168         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46169         Spotted by Bruno Haible.
46170
46171 2008-10-06  Eric Blake  <ebb9@byu.net>
46172
46173         test-signbit: avoid tripping Irix cc bug on -0.0L
46174         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46175         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46176         entire testsuite consistent and avoids an Irix 6.2 bug.
46177
46178 2008-10-05  Bruno Haible  <bruno@clisp.org>
46179             Jim Meyering  <jim@meyering.net>
46180
46181         Add an option for ignoring EPIPE during close_stdout.
46182         * lib/closeout.h: Include <stdbool.h>.
46183         (close_stdout_set_ignore_EPIPE): New declaration.
46184         * lib/closeout.c: Include <stdbool.h>.
46185         (ignore_EPIPE): New variable.
46186         (close_stdout_set_ignore_EPIPE): New function.
46187         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46188         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46189         failure.
46190         * modules/closeout (Depends-on): Add stdbool.
46191
46192 2008-10-05  Bruno Haible  <bruno@clisp.org>
46193
46194         * modules/accept: New file.
46195         * modules/bind: New file.
46196         * modules/connect: New file.
46197         * modules/getpeername: New file.
46198         * modules/getsockname: New file.
46199         * modules/getsockopt: New file.
46200         * modules/listen: New file.
46201         * modules/recv: New file.
46202         * modules/recvfrom: New file.
46203         * modules/send: New file.
46204         * modules/sendto: New file.
46205         * modules/setsockopt: New file.
46206         * modules/socket: New file.
46207         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46208         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46209         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46210         the particular module is requested. Add a link warning when the
46211         particular module is not requested.
46212         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46213         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46214         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46215         the particular module is requested.
46216         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46217         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46218         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46219         * modules/sys_socket (Depends-on): Add link-warning.
46220         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46221         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46222         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46223         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46224         GL_LINK_WARNING.
46225         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46226         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46227         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46228         * doc/posix-functions/getpeername.texi: Mention the new module
46229         'getpeername'.
46230         * doc/posix-functions/getsockname.texi: Mention the new module
46231         'getsockname'.
46232         * doc/posix-functions/getsockopt.texi: Mention the new module
46233         'getsockopt'.
46234         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46235         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46236         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46237         * doc/posix-functions/send.texi: Mention the new module 'send'.
46238         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46239         * doc/posix-functions/setsockopt.texi: Mention the new module
46240         'setsockopt'.
46241         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46242         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46243         listen, connect, accept.
46244         * modules/select-tests (Depends-on): Likewise.
46245
46246 2008-10-05  Bruno Haible  <bruno@clisp.org>
46247
46248         * lib/winsock.c (strerror): Remove unused #undef.
46249         (rpl_close): Remove unused local variable.
46250
46251         * modules/sys_socket (Depends-on); Add errno.
46252
46253 2008-10-05  Bruno Haible  <bruno@clisp.org>
46254
46255         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46256         (select): Add a link warning when the 'select' module is not used.
46257         * modules/sys_select (Depends-on): Add link-warning.
46258         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46259         Suggested by Paolo Bonzini.
46260
46261 2008-10-05  Jim Meyering  <meyering@redhat.com>
46262
46263         bootstrap: check for LT_INIT more portably
46264         * build-aux/bootstrap: Avoid using grep -E, since it's not
46265         portable enough.  Suggestion from Bruno Haible.
46266
46267 2008-10-05  Bruno Haible  <bruno@clisp.org>
46268
46269         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46270         as being fixed by gnulib.
46271
46272 2008-10-05  Bruno Haible  <bruno@clisp.org>
46273
46274         * modules/select-tests: New file, mostly copied from
46275         modules/sys_select-tests.
46276         * tests/test-select.c: New file, mostly copied from
46277         tests/test-sys_select.c.
46278         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46279         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46280         (Makefile.am): Remove test_sys_select_LDADD.
46281
46282         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46283         to an undefined symbol, for an error message.
46284         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46285         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46286         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46287         winsock-select.c here.
46288         * modules/sys_select (Files): Remove lib/winsock-select.c.
46289         (Depends-on): Remove alloca.
46290         (Makefile.am): Substitute GNULIB_SELECT.
46291         * modules/select: New file.
46292         * doc/posix-functions/select.texi: Update.
46293
46294 2008-10-05  Bruno Haible  <bruno@clisp.org>
46295
46296         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46297         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46298         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46299         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46300         getdtablesize.
46301         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46302         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46303
46304 2008-10-05  Bruno Haible  <bruno@clisp.org>
46305
46306         * modules/getdtablesize-tests: New file.
46307         * tests/test-getdtablesize.c: New file.
46308
46309         New module 'getdtablesize'.
46310         * lib/unistd.in.h (getdtablesize): New declaration.
46311         * lib/getdtablesize.c: New file.
46312         * m4/getdtablesize.m4: New file.
46313         * modules/getdtablesize: New file.
46314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46315         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46316         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46317         HAVE_GETDTABLESIZE.
46318         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46319
46320 2008-10-05  Bruno Haible  <bruno@clisp.org>
46321
46322         * modules/sched (Makefile.am): Fix typo.
46323         Reported by Simon Josefsson.
46324
46325 2008-10-05  Jim Meyering  <meyering@redhat.com>
46326
46327         bootstrap: check for LT_INIT, too
46328         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46329         are deprecated.  Suggestion from Ralf Wildenhues.
46330
46331 2008-10-05  Bruno Haible  <bruno@clisp.org>
46332
46333         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46334         overriding them by ours.
46335         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46336
46337 2008-10-05  Jim Meyering  <meyering@redhat.com>
46338
46339         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46340         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46341         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46342
46343 2008-10-04  Bruno Haible  <bruno@clisp.org>
46344
46345         * modules/dup2 (License): Change to LGPLv2+.
46346         * modules/sleep (License): Likewise.
46347         * modules/perror (License): Likewise.
46348         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46349         Blake.
46350         * modules/signal (License): Likewise.
46351         * modules/sigprocmask (License): Likewise.
46352         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46353         Meyering.
46354
46355 2008-10-04  Bruno Haible  <bruno@clisp.org>
46356
46357         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46358         Reported by Rainer Tammer <tammer@tammer.net>.
46359
46360 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46361             Bruno Haible  <bruno@clisp.org>
46362
46363         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46364         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46365         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46366
46367 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46368
46369         filevercmp: new module
46370         * lib/filevercmp.h: New function filevercmp comparing version strings.
46371         * lib/filevercmp.c: Implementation of filevercmp function.
46372         * modules/filevercmp: Module metadata.
46373         * tests/test-filevercmp.c: Unit test for new module.
46374         * modules/filevercmp-tests: Unit test metadata.
46375         * MODULES.html.sh: Add filevercmp module.
46376
46377 2008-10-03  Bruno Haible  <bruno@clisp.org>
46378
46379         * lib/c-ctype.h: Add comment.
46380         Reported by Jim Meyering.
46381
46382 2008-10-02  Bruno Haible  <bruno@clisp.org>
46383
46384         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46385
46386 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46387
46388         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46389         name of bootstrap.conf accordingly.
46390
46391 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46392
46393         * build-aux/bootstrap: Install git-merge-changelog configuration
46394         items into .gitconfig if needed.
46395
46396 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46397
46398         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46399         git repository, and initialize/update it accordingly.
46400
46401 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46402
46403         * modules/fsync-tests: New file.
46404         * tests/test-fsync.c: New file.
46405
46406         New module 'fsync'.
46407         * lib/fsync.c: New file.
46408         * m4/fsync.m4: New file.
46409         * modules/fsync: New file.
46410         * lib/unistd.in.h (fsync): New declaration.
46411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46412         GNULIB_FSYNC and HAVE_FSYNC.
46413         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46414         * MODULES.html.sh (posix_functions): Add fsync.
46415         * doc/posix-functions/fsync.texi: Mention the new module.
46416
46417 2008-10-02  Jim Meyering  <meyering@redhat.com>
46418
46419         fts.c: sync with similar code from coreutils' remove.c
46420         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46421         Guard also with "#if defined __linux__", since for now at least,
46422         this code is Linux-kernel-specific.
46423
46424 2008-10-02  Jim Meyering  <meyering@redhat.com>
46425
46426         fts: bug fixes
46427         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46428         Include <sys/vfs.h>, not <sys/statfs.h>.
46429
46430         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46431         Include <sys/vfs.h>, not <sys/statfs.h>.
46432
46433 2008-10-01  Bruno Haible  <bruno@clisp.org>
46434
46435         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46436         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46437         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46438         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46439         * doc/posix-functions/posix_spawnp.texi: Likewise.
46440         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46441         whether posix_spawn actually works.
46442         * m4/pipe.m4 (gl_PIPE): Likewise.
46443         * modules/execute (Files): Add m4/posix_spawn.m4.
46444         * modules/pipe (Files): Add m4/posix_spawn.m4.
46445         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46446
46447 2008-10-01  Jim Meyering  <meyering@redhat.com>
46448
46449         remove trailing spaces
46450         * NEWS: Likewise.
46451         * lib/poll.c (poll): Likewise.
46452         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46453         * lib/winsock.c (rpl_close): Likewise.
46454         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46455         * modules/yield: Likewise.
46456         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46457         * tests/test-sys_select.c (connect_to_socket): Likewise.
46458
46459         fts.c: adjust a new interface to be more generally useful
46460         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46461         (fts_build): Adjust caller.
46462
46463 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46464
46465         * modules/cond-tests: New file.
46466         * tests/test-cond.c: New file.
46467
46468 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46469             Bruno Haible  <bruno@clisp.org>
46470
46471         * modules/cond (Dependencies): Add errno, time.
46472         * lib/glthread/cond.h: Include <time.h>.
46473         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46474         across platforms.
46475
46476 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46477             Bruno Haible  <bruno@clisp.org>
46478
46479         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46480
46481 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46482             Bruno Haible  <bruno@clisp.org>
46483
46484         * modules/tls-tests (Depends-on): Add thread, yield.
46485         (configure.ac): Remove all checks.
46486         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46487         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46488         gl_thread_self): Remove definitions. Include glthread/thread.h and
46489         glthread/yield.h instead.
46490         (test_tls): Pass an additional NULL argument to gl_thread_join.
46491
46492 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46493             Bruno Haible  <bruno@clisp.org>
46494
46495         * modules/lock-tests (Depends-on): Add thread, yield.
46496         (configure.ac): Remove all checks.
46497         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46498         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46499         gl_thread_self): Remove definitions. Include glthread/thread.h and
46500         glthread/yield.h instead.
46501         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46502         additional NULL argument to gl_thread_join.
46503
46504 2008-09-30  Bruno Haible  <bruno@clisp.org>
46505
46506         Fix the Win32 implementation of the 'thread' module.
46507         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46508         pointer type.
46509         (gl_thread_self): Invoke gl_thread_self_func.
46510         (gl_thread_self_func): New declaration.
46511         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46512         (do_init_self_key, init_self_key): New functions.
46513         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46514         Remove some fields.
46515         (running_threads, running_lock): Remove variables.
46516         (get_current_thread_handle): New function.
46517         (gl_thread_self_func, wrapper_func, glthread_create_func,
46518         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46519         simplified.
46520
46521 2008-09-30  Bruno Haible  <bruno@clisp.org>
46522
46523         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46524         files.
46525
46526 2008-09-30  Jim Meyering  <meyering@redhat.com>
46527
46528         fts.m4: correct the test for statfs.f_type
46529         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46530         when checking for statfs.f_type.
46531
46532 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46533
46534         tests: avoid some compiler warnings
46535         * tests/test-memchr.c (main): Pass NULL indirectly.
46536         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46537
46538 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46539
46540         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46541         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46542         exactly specified dayshifts.
46543         (dayshift): New rule.
46544         (rel): Add dayshift.
46545         (relative_time_table) [tomorrow, yesterday, today, now]:
46546         Use tDAY_SHIFT in place of tDAY_UNIT.
46547         * tests/test-getdate.c: Add tests for now-disallowed countable
46548         dayshifts, e.g., "4 yesterday ago".
46549
46550 2008-09-29  Bruno Haible  <bruno@clisp.org>
46551
46552         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46553         * tests/test-posix_spawn1.in.sh: Renamed from
46554         tests/test-posix_spawn.in.sh.
46555         * tests/test-posix_spawn2.c: New file.
46556         * tests/test-posix_spawn2.in.sh: New file.
46557         * modules/posix_spawnp-tests (Files): Update.
46558         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46559
46560 2008-09-29  Bruno Haible  <bruno@clisp.org>
46561
46562         Propagate effects of putenv/setenv/unsetenv to child processes.
46563         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46564         * lib/pipe.c (create_pipe): Likewise.
46565
46566 2008-09-29  Bruno Haible  <bruno@clisp.org>
46567
46568         Enable use of shell scripts as executables in mingw.
46569         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46570         run the program as a shell script.
46571         * lib/pipe.c (create_pipe): Likewise.
46572         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46573         resulting array.
46574
46575 2008-09-29  Eric Blake  <ebb9@byu.net>
46576
46577         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46578
46579 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46580
46581         * doc/posix-functions/accept.texi: Update mingw problems.
46582         * doc/posix-functions/bind.texi: Update mingw problems.
46583         * doc/posix-functions/close.texi: Update mingw problems.
46584         * doc/posix-functions/connect.texi: Update mingw problems.
46585         * doc/posix-functions/getpeername.texi: Update mingw problems.
46586         * doc/posix-functions/getsockname.texi: Update mingw problems.
46587         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46588         * doc/posix-functions/ioctl.texi: Update mingw problems.
46589         * doc/posix-functions/listen.texi: Update mingw problems.
46590         * doc/posix-functions/recv.texi: Update mingw problems.
46591         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46592         * doc/posix-functions/select.texi: Update mingw problems.
46593         * doc/posix-functions/send.texi: Update mingw problems.
46594         * doc/posix-functions/sendto.texi: Update mingw problems.
46595         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46596         * doc/posix-functions/socket.texi: Update mingw problems.
46597
46598 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46599             Bruno Haible  <bruno@clisp.org>
46600
46601         * lib/sys_select.in.h: Include sys/time.h.
46602         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46603         * modules/sys_select: Depend on sys_time.
46604         * tests/test-sys_select.c: Test that sys/select.h defines struct
46605         timeval fully.
46606
46607 2008-09-29  Bruno Haible  <bruno@clisp.org>
46608
46609         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46610         * lib/sys_select.in.h: Likewise.
46611
46612 2008-09-29  Bruno Haible  <bruno@clisp.org>
46613
46614         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46615
46616 2008-09-29  Bruno Haible  <bruno@clisp.org>
46617
46618         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46619         Set LIBSOCKET instead of augmenting LIBS.
46620         * modules/sockets (Link): New section.
46621         * modules/sockets-tests (test_sockets_LDADD): New variable.
46622         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46623         * modules/poll-tests (test_poll_LDADD): New variable.
46624         * NEWS: Document the change.
46625
46626 2008-09-29  Bruno Haible  <bruno@clisp.org>
46627
46628         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46629         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46630         ARPA_INET_H directly.
46631         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46632
46633 2008-09-28  Bruno Haible  <bruno@clisp.org>
46634
46635         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46636         from gl_HEADER_SYS_SOCKET.
46637         (gl_HEADER_SYS_SOCKET): Invoke it.
46638         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46639
46640 2008-09-28  Bruno Haible  <bruno@clisp.org>
46641
46642         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46643         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46644         Needed on OSF/1 4.0.
46645
46646 2008-09-28  Bruno Haible  <bruno@clisp.org>
46647
46648         Override open more carefully.
46649         * lib/open.c (orig_open): New function.
46650         (rpl_open): Use orig_open instead of open.
46651         * lib/fcntl.in.h: Add special invocation convention.
46652         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46653         (gl_FUNC_OPEN): Invoke it.
46654
46655         Override freopen more carefully.
46656         * lib/freopen.c (orig_freopen): New function.
46657         (rpl_freopen): Use orig_freopen instead of freopen.
46658         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46659         (gl_FUNC_FREOPEN): Invoke it.
46660
46661         Override fopen more carefully.
46662         * lib/fopen.c (orig_fopen): New function.
46663         (rpl_fopen): Use orig_fopen instead of fopen.
46664         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46665         (gl_FUNC_FOPEN): Invoke it.
46666         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46667
46668 2008-09-28  Bruno Haible  <bruno@clisp.org>
46669
46670         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46671         SIGPIPE.
46672
46673 2008-09-28  Bruno Haible  <bruno@clisp.org>
46674
46675         * tests/test-sigaction.c (handler, main): Disable the check whether
46676         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46677         glibc systems with LinuxThreads.
46678
46679 2008-09-28  Bruno Haible  <bruno@clisp.org>
46680
46681         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46682
46683         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46684         with AIX xlc.
46685         * lib/fcntl.in.h (open): Likewise.
46686         Reported by Rainer Tammer <tammer@tammer.net>.
46687
46688 2008-09-28  Bruno Haible  <bruno@clisp.org>
46689
46690         * modules/posix_spawnp-tests: New file.
46691         * tests/test-posix_spawn.c: New file.
46692         * tests/test-posix_spawn.in.sh: New file.
46693
46694         New module 'posix_spawnp'.
46695         * modules/posix_spawnp: New file.
46696         * lib/spawnp.c: New file, from GNU libc with modifications.
46697         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46698
46699         New module 'posix_spawn'.
46700         * modules/posix_spawn: New file.
46701         * lib/spawn.c: New file, from GNU libc with modifications.
46702         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46703
46704         New module 'posix_spawnattr_destroy'.
46705         * modules/posix_spawnattr_destroy: New file.
46706         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46707         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46708         module.
46709
46710         New module 'posix_spawnattr_setsigmask'.
46711         * modules/posix_spawnattr_setsigmask: New file.
46712         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46713         modifications.
46714         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46715         new module.
46716
46717         New module 'posix_spawnattr_getsigmask'.
46718         * modules/posix_spawnattr_getsigmask: New file.
46719         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46720         modifications.
46721         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46722         new module.
46723
46724         New module 'posix_spawnattr_setsigdefault'.
46725         * modules/posix_spawnattr_setsigdefault: New file.
46726         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46727         modifications.
46728         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46729         new module.
46730
46731         New module 'posix_spawnattr_getsigdefault'.
46732         * modules/posix_spawnattr_getsigdefault: New file.
46733         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46734         modifications.
46735         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46736         new module.
46737
46738         New module 'posix_spawnattr_setschedpolicy'.
46739         * modules/posix_spawnattr_setschedpolicy: New file.
46740         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46741         modifications.
46742         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46743         new module.
46744
46745         New module 'posix_spawnattr_getschedpolicy'.
46746         * modules/posix_spawnattr_getschedpolicy: New file.
46747         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46748         modifications.
46749         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46750         new module.
46751
46752         New module 'posix_spawnattr_setschedparam'.
46753         * modules/posix_spawnattr_setschedparam: New file.
46754         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46755         modifications.
46756         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46757         new module.
46758
46759         New module 'posix_spawnattr_getschedparam'.
46760         * modules/posix_spawnattr_getschedparam: New file.
46761         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46762         modifications.
46763         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46764         new module.
46765
46766         New module 'posix_spawnattr_setpgroup'.
46767         * modules/posix_spawnattr_setpgroup: New file.
46768         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46769         modifications.
46770         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46771         module.
46772
46773         New module 'posix_spawnattr_getpgroup'.
46774         * modules/posix_spawnattr_getpgroup: New file.
46775         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46776         modifications.
46777         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46778         module.
46779
46780         New module 'posix_spawnattr_setflags'.
46781         * modules/posix_spawnattr_setflags: New file.
46782         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46783         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46784         module.
46785
46786         New module 'posix_spawnattr_getflags'.
46787         * modules/posix_spawnattr_getflags: New file.
46788         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46789         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46790         module.
46791
46792         New module 'posix_spawnattr_init'.
46793         * modules/posix_spawnattr_init: New file.
46794         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46795         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46796         module.
46797
46798         New module 'posix_spawn_file_actions_destroy'.
46799         * modules/posix_spawn_file_actions_destroy: New file.
46800         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46801         modifications.
46802         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46803         the new module.
46804
46805         New module 'posix_spawn_file_actions_addopen'.
46806         * modules/posix_spawn_file_actions_addopen: New file.
46807         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46808         modifications.
46809         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46810         the new module.
46811
46812         New module 'posix_spawn_file_actions_adddup2'.
46813         * modules/posix_spawn_file_actions_adddup2: New file.
46814         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46815         modifications.
46816         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46817         the new module.
46818
46819         New module 'posix_spawn_file_actions_addclose'.
46820         * modules/posix_spawn_file_actions_addclose: New file.
46821         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46822         modifications.
46823         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46824         the new module.
46825
46826         New module 'posix_spawn_file_actions_init'.
46827         * modules/posix_spawn_file_actions_init: New file.
46828         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46829         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46830         new module.
46831
46832         New module 'posix_spawn-internal'.
46833         * modules/posix_spawn-internal: New file.
46834         * lib/spawn_int.h: New file, from GNU libc with modifications.
46835         * lib/spawni.c: New file, from GNU libc with modifications.
46836         * m4/posix_spawn.m4: New file.
46837
46838         New module 'spawn'.
46839         * modules/spawn: New file.
46840         * lib/spawn.in.h: New file, from GNU libc with modifications.
46841         * m4/spawn_h.m4: New file.
46842         * doc/posix-headers/spawn.texi: Mention the new module.
46843
46844 2008-09-28  Bruno Haible  <bruno@clisp.org>
46845
46846         * modules/sched-tests: New file.
46847         * tests/test-sched.c: New file.
46848
46849         New module 'sched'.
46850         * modules/sched: New file.
46851         * lib/sched.in.h: New file.
46852         * m4/sched_h.m4: New file.
46853         * doc/posix-headers/sched.texi: Mention the new module.
46854
46855 2008-09-27  Eric Blake  <ebb9@byu.net>
46856
46857         Fix previous patch, and tweak references to $0.
46858         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46859         (func_version, func_gnulib_dir): Don't call this program
46860         gnulib-tool.
46861         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46862         with using $0 in function.
46863         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46864         (func_fatal_error): Reuse the name the user invoked us with.
46865
46866 2008-09-27  Bruno Haible  <bruno@clisp.org>
46867
46868         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46869         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46870         (gl_ICONV_H): Not here.
46871         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46872         instead of assigning ICONV_H directly.
46873
46874         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46875         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46876         WCHAR_H directly.
46877
46878 2008-09-27  Bruno Haible  <bruno@clisp.org>
46879
46880         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46881         * modules/arpa_inet (Depends-on): Add link-warning.
46882         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46883         * modules/unistd (Makefile.am): Likewise.
46884
46885 2008-09-26  Bruno Haible  <bruno@clisp.org>
46886
46887         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46888         variables.
46889         (func_version): Essentially copied from gnulib-tool.
46890         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46891         func_readlink): Copied from gnulib-tool.
46892
46893 2008-09-26  Bruno Haible  <bruno@clisp.org>
46894
46895         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46896         invoking git-version-gen.
46897
46898 2008-09-26  Bruno Haible  <bruno@clisp.org>
46899
46900         * posix-modules: Update to directory names changed on 2008-01-19.
46901         Remove commas in output before splitting into words. No more need to
46902         avoid 'ftruncate' since 2007-02-19.
46903
46904 2008-09-26  Bruno Haible  <bruno@clisp.org>
46905
46906         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46907
46908 2008-09-26  Bruno Haible  <bruno@clisp.org>
46909
46910         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46911         * modules/fwriteerror (Depends-on): Add errno.
46912
46913 2008-09-26  Bruno Haible  <bruno@clisp.org>
46914
46915         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46916         * tests/test-vc-list-files-cvs.sh: Likewise.
46917
46918 2008-09-26  Bruno Haible  <bruno@clisp.org>
46919
46920         * doc/posix-headers/sys_resource.texi: Reorder items.
46921
46922 2008-09-26  Jim Meyering  <meyering@redhat.com>
46923
46924         fts: tweak inode comparison function
46925         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46926         inode numbers, as documented.
46927
46928         fts: sort dirent entries on inode number before traversing
46929         This avoids a quadratic, seek-related performance penalty when
46930         operating on a directory containing many entries (measurable at 10k;
46931         3.5 hours at 2 million entries with a cold cache) on certain types
46932         of file systems, including ext3 and ext4, but not tmpfs.
46933         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46934         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46935         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46936         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46937         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46938         (fts_build): Set the stat.st_ino member from D_INO.
46939         If it is likely to be useful, sort dirent entries on inode number.
46940
46941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46942         and the struct statfs.f_type member.
46943         * modules/fts (Depends-on): Add d-ino.
46944
46945 2008-09-26  Bruno Haible  <bruno@clisp.org>
46946
46947         * modules/sigpipe-die (Depends-on): Add sigpipe.
46948
46949         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46950         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46951         and GNULIB_STDIO_H_SIGPIPE are set.
46952         * lib/stdio-write.c: New file.
46953         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46954         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46955         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46956         REPLACE_STDIO_WRITE_FUNCS.
46957         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46958         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46959         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46960         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46961         * modules/stdio (Files): Add lib/stdio-write.c.
46962         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46963         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46964         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46965         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46966         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46967         REPLACE_FPRINTF_POSIX.
46968         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46969         REPLACE_PRINTF_POSIX.
46970         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46971         REPLACE_VFPRINTF_POSIX.
46972         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46973         REPLACE_VPRINTF_POSIX.
46974         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46975         SIGPIPE issue.
46976         * doc/posix-functions/fputc.texi: Likewise.
46977         * doc/posix-functions/fputs.texi: Likewise.
46978         * doc/posix-functions/fwrite.texi: Likewise.
46979         * doc/posix-functions/printf.texi: Likewise.
46980         * doc/posix-functions/putc.texi: Likewise.
46981         * doc/posix-functions/putchar.texi: Likewise.
46982         * doc/posix-functions/puts.texi: Likewise.
46983         * doc/posix-functions/vfprintf.texi: Likewise.
46984         * doc/posix-functions/vprintf.texi: Likewise.
46985
46986         * modules/safe-write (Depends-on): Add write.
46987
46988         * modules/sigpipe-tests: New file.
46989         * tests/test-sigpipe.c: New file.
46990         * tests/test-sigpipe.sh: New file.
46991
46992         * modules/write: New file.
46993         * lib/unistd.in.h: Include <sys/types.h>.
46994         (write): New declaration.
46995         * lib/write.c: New file.
46996         * m4/write.m4: New file.
46997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46998         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
46999         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47000         GNULIB_WRITE, REPLACE_WRITE.
47001         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47002         and the SIGPIPE issue.
47003
47004         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47005         (raise): New declaration.
47006         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47007         (ext_signal): New function.
47008         (rpl_raise): New function.
47009         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47010         GNULIB_SIGNAL_H_SIGPIPE.
47011         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47012         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47013
47014         * modules/sigpipe: New file.
47015         * m4/sigpipe.m4: New file.
47016
47017 2008-09-25  Derek Price  <derek@ximbiot.com>
47018             Bruno Haible  <bruno@clisp.org>
47019
47020         * gnulib-tool (func_import): Report all license incompatibilities, not
47021         just the first one.
47022
47023 2008-09-25  Bruno Haible  <bruno@clisp.org>
47024
47025         * gnulib-tool (func_import): When computing the edits, consider not
47026         only the Makefile.ams that exist but also those that will be generated.
47027
47028 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47029
47030         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47031         fixes gnulib-tool --test warning about duplicate dependency.
47032
47033 2008-09-25  Bruno Haible  <bruno@clisp.org>
47034
47035         * gnulib-tool: Don't ask the user to perform edits in the generated
47036         Makefile.ams.
47037         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47038         apply to the Makefile.am being generated.
47039         (func_emit_tests_Makefile_am): Execute edits that apply to the
47040         Makefile.am being generated.
47041         (func_import): Setup list of Makefile.am edits before emitting the
47042         Makefile.ams, not at the end.
47043         (func_create_testdir): Update.
47044         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47045
47046 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47047
47048         * gnulib-tool (func_import): Store the --tests-base option in the
47049         comment in gnulib-cache.m4.
47050
47051 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47052
47053         * NEWS: Document increased portability that sys_select now provides.
47054
47055         * lib/sys_select.in.h: Install select wrapper.
47056         * lib/sys_socket.in.h: Use more descriptive name when there is no
47057         select wrapper.
47058         * lib/winsock-select.c: New.
47059         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47060         Require gl_HEADER_SYS_SOCKET.
47061         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47062         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47063         * tests/test-sys_select.c: Add functional tests.
47064
47065 2008-09-24  Eric Blake  <ebb9@byu.net>
47066
47067         open, fopen: close fd leak in last patch
47068         * lib/open.c (rpl_open): Close fd before returning error.
47069         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47070         * doc/posix-functions/open.texi (open): Document that Irix also
47071         has the bug.
47072         * doc/posix-functions/fopen.texi (fopen): Likewise.
47073         Reported by Paolo Bonzini.
47074
47075 2008-09-24  Bruno Haible  <bruno@clisp.org>
47076
47077         Ensure that a filename ending in a slash cannot be used to access a
47078         non-directory.
47079         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47080         to check whether it's really a directory.
47081         * lib/fopen.c: Include fcntl.h, unistd.h.
47082         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47083         and fdopen().
47084         * modules/fopen (Depends-on): Add unistd.
47085         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47086         * tests/test-fopen.c (main): Likewise.
47087         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47088         * doc/posix-functions/fopen.texi: Likewise.
47089         Reported by Eric Blake.
47090
47091 2008-09-23  Eric Blake  <ebb9@byu.net>
47092
47093         c-stack: avoid compiler optimizations when provoking overflow
47094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47095         recursion harder to optimize, to ensure a stack overflow occurs.
47096         * tests/test-c-stack.c (recurse): Likewise.
47097         Borrowed from libsigsegv.
47098
47099         c-stack: work around Irix sigaltstack bug
47100         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47101         whether sigaltstack uses wrong end of stack_t (copied in part from
47102         libsigsegv).
47103         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47104         Irix bug, without requiring an over-allocation.
47105         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47106         bug.
47107
47108         fopen: document mingw bug on directories
47109         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47110         not allowing a stream visiting a directory, even though reading
47111         from such a stream is not portable.
47112
47113 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47114
47115         * lib/poll.c: Rewrite.
47116         * modules/poll: Depend on alloca.
47117
47118 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47119
47120         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47121         instead define prototypes for a full set of wrappers.  Ensure
47122         that Cygwin does not use the compatibility code, which is only
47123         for MinGW.
47124         * lib/winsock.c: New.
47125         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47126         * modules/sys_socket: Add lib/winsock.c.
47127
47128         * modules/poll-tests: Add errno and perror.
47129         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47130
47131 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47132
47133         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47134
47135 2008-09-23  Bruno Haible  <bruno@clisp.org>
47136
47137         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47138         * doc/glibc-functions/*: Likewise.
47139
47140 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47141
47142         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47143         success.
47144
47145 2008-09-22  Eric Blake  <ebb9@byu.net>
47146             Bruno Haible  <bruno@clisp.org>
47147
47148         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47149         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47150         supply %A but mishandle pseudo-NaN.
47151         Reported by Simon Josefsson.
47152
47153 2008-09-21  Bruno Haible  <bruno@clisp.org>
47154
47155         * tests/test-lock.c (main): Tweak skip message.
47156         * tests/test-tls.c (main): Likewise.
47157
47158 2008-09-21  Bruno Haible  <bruno@clisp.org>
47159
47160         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47161         whether 'struct sigaction' has sa_sigaction here...
47162         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47163         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47164
47165 2008-09-21  Bruno Haible  <bruno@clisp.org>
47166
47167         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47168         section.
47169         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47170         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47171         the new section.
47172         (Support for obsolete systems lacking POSIX:2001): New section.
47173         (String handling <string.h>): Move strdup to the new section.
47174         Suggested by Simon Josefsson and Paolo Bonzini.
47175
47176 2008-09-21  Bruno Haible  <bruno@clisp.org>
47177
47178         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47179         exponents in %e and %g results on 'long double'. Needed for mingw's
47180         improved *printf functions.
47181         * tests/test-vasprintf-posix.c (test_function): Likewise.
47182         * tests/test-snprintf-posix.h (test_function): Likewise.
47183         * tests/test-sprintf-posix.h (test_function): Likewise.
47184         Reported by Eric Blake.
47185
47186 2008-09-21  Bruno Haible  <bruno@clisp.org>
47187
47188         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47189         * tests/test-sprintf-posix.h (test_function): Likewise.
47190
47191 2008-09-21  Bruno Haible  <bruno@clisp.org>
47192
47193         * modules/getpass (Depends-on): Add strdup-posix.
47194
47195         New module 'strdup-posix'.
47196         * modules/strdup-posix: New file.
47197         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47198         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47200         REPLACE_STRDUP.
47201         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47202         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47203         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47204         strdup-posix.
47205
47206         * modules/strdup (Depends-on): Remove malloc-posix.
47207
47208 2008-09-20  Bruno Haible  <bruno@clisp.org>
47209
47210         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47211         Wildenhues.
47212
47213 2008-09-20  Bruno Haible  <bruno@clisp.org>
47214
47215         Ensure that wint_t gets defined on IRIX 5.3.
47216         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47217         * lib/wctype.in.h (wint_t): Likewise.
47218         (__wctype_wint_t): Remove type.
47219         (isw*): Use wint_t instead of __wctype_wint_t.
47220         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47221         * modules/wchar (Files): Add m4/wint_t.m4.
47222         (Makefile.am): Substitute HAVE_WINT_T.
47223         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47224         * tests/test-wctype.c: Check that wint_t is defined.
47225         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47226         * doc/posix-headers/wctype.texi: Likewise.
47227         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47228
47229 2008-09-18  Bruno Haible  <bruno@clisp.org>
47230
47231         * gnulib-tool (func_exit): Update comment.
47232
47233 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47234
47235         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47236         assumes strdup exists and does not depend on strdup to return
47237         ENOMEM on out of memory conditions.
47238
47239 2008-09-18  Bruno Haible  <bruno@clisp.org>
47240
47241         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47242         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47243         digits for the exponent.
47244
47245 2008-09-18  Jim Meyering  <meyering@redhat.com>
47246             Bruno Haible  <bruno@clisp.org>
47247
47248         * lib/vasnprintf.c (decimal_point_char): Define also if
47249         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47250
47251 2008-09-16  Bruno Haible  <bruno@clisp.org>
47252         and Eric Blake  <ebb9@byu.net>
47253
47254         vasnprintf: support Irix 5.3
47255         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47256         that mishandle long double infinity.
47257         Reported by Tom G. Christensen.
47258
47259 2008-09-16  Bruno Haible  <bruno@clisp.org>
47260
47261         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47262         Solaris 9.
47263         * doc/glibc-functions/alphasort.texi: Likewise.
47264         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47265
47266 2008-09-16  Jim Meyering  <meyering@redhat.com>
47267
47268         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47269         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47270         a umask modification leak out of a subshell.  Otherwise, the
47271         opensolaris /bin/sh would be accepted and thus cause unwarranted
47272         failures in the coreutils test suite.
47273
47274 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47275
47276         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47277         to succeed.
47278
47279 2008-09-16  Jim Meyering  <meyering@redhat.com>
47280
47281         avoid spurious test failure when library is built without ACL support
47282         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47283         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47284         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47285         * tests/test-copy-acl.sh: Likewise.
47286
47287 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47288
47289         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47290         based on character occurrence counts.
47291
47292 2008-09-15  Eric Blake  <ebb9@byu.net>
47293
47294         tests: avoid some compiler warnings
47295         * tests/test-memchr.c (main): Pass NULL indirectly.
47296         * tests/test-closein.c (main): Avoid unused variable.
47297
47298 2008-09-15  Bruno Haible  <bruno@clisp.org>
47299
47300         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47301         are missing on OpenBSD 4.0 individually.
47302         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47303
47304 2008-09-15  Bruno Haible  <bruno@clisp.org>
47305
47306         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47307         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47308         * doc/posix-functions/perror.texi: Likewise.
47309         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47310         is missing.
47311         Reported by Eric Blake.
47312
47313         * lib/errno.in.h: Use replacement values >= 2000.
47314         Reported by Eric Blake.
47315
47316 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47317
47318         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47319         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47320         limit.
47321         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47322         compareseq was aborted.
47323
47324 2008-09-14  Bruno Haible  <bruno@clisp.org>
47325
47326         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47327         yvec_edit_count.
47328         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47329         (fstrcmp_bounded): Simplify result computation accordingly.
47330
47331 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47332
47333         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47334         (fstrcmp): Define in terms of fstrcmp_bounded.
47335         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47336         lower_bound argument.
47337         Return quickly if the result is certainly < lower_bound.
47338         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47339
47340 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47341
47342         * lib/diffseq.h (EARLY_ABORT): New macro.
47343         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47344         evaluates to true.
47345
47346 2008-09-14  Bruno Haible  <bruno@clisp.org>
47347
47348         * modules/perror-tests: New file.
47349         * tests/test-perror.sh: New file.
47350         * tests/test-perror.c: New file.
47351
47352         New module 'perror'.
47353         * lib/stdio.in.h (perror): New declaration.
47354         * lib/perror.c: New file.
47355         * m4/perror.m4: New file.
47356         * modules/perror: New file.
47357         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47358         * doc/posix-functions/perror.texi: Mention the perror module.
47359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47360         REPLACE_PERROR.
47361         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47362         REPLACE_PERROR.
47363
47364 2008-09-14  Bruno Haible  <bruno@clisp.org>
47365
47366         * modules/stdio (Makefile.am): Reorder to match the order in
47367         lib/stdio.in.h.
47368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47369
47370 2008-09-13  Bruno Haible  <bruno@clisp.org>
47371
47372         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47373
47374 2008-09-13  Bruno Haible  <bruno@clisp.org>
47375
47376         Extend strerror to cover the added errno values.
47377         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47378         (rpl_strerror): Provide error messages for the added errno values and
47379         for the WSA* values.
47380         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47381         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47382         strerror.
47383         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47384         * modules/strerror (Depends-on): Add errno.
47385         * doc/posix-functions/strerror.texi: Document the change.
47386         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47387         and EOVERFLOW.
47388
47389 2008-09-13  Bruno Haible  <bruno@clisp.org>
47390
47391         * modules/EOVERFLOW: Remove file.
47392         * m4/eoverflow.m4: Remove file.
47393         * modules/EOVERFLOW-tests: Remove file.
47394         * tests/test-EOVERFLOW.c: Remove file.
47395         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47396         * modules/ftell (Depends-on): Likewise.
47397         * modules/getdelim (Depends-on): Likewise.
47398         * modules/getugroups (Depends-on): Likewise.
47399         * modules/poll (Depends-on): Likewise.
47400         * modules/snprintf (Depends-on): Likewise.
47401         * modules/sprintf-posix (Depends-on): Likewise.
47402         * modules/vasnprintf (Depends-on): Likewise.
47403         * modules/vasprintf (Depends-on): Likewise.
47404         * modules/vfprintf-posix (Depends-on): Likewise.
47405         * modules/vsnprintf (Depends-on): Likewise.
47406         * modules/vsprintf-posix (Depends-on): Likewise.
47407         * modules/xvasprintf (Depends-on): Likewise.
47408         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47409         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47410         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47411         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47412         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47413         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47414         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47415         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47416         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47417         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47418         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47419         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47420         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47421         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47422         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47423         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47424         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47425         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47426         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47427         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47428         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47429         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47430         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47431         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47432         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47433         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47434         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47435         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47436         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47437         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47438         * MODULES.html.sh: Remove EOVERFLOW.
47439         * NEWS: Mention the change.
47440
47441 2008-09-13  Bruno Haible  <bruno@clisp.org>
47442
47443         * modules/errno-tests: New file.
47444         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47445
47446         * lib/errno.in.h: New file.
47447         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47448         * modules/errno: New file.
47449         * doc/posix-headers/errno.texi: Update documentation.
47450         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47451
47452 2008-09-13  Bruno Haible  <bruno@clisp.org>
47453
47454         * tests/test-poll.c: Use #if for native Windows, rather than testing
47455         __MSVCRT__.
47456
47457 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47458             Bruno Haible  <bruno@clisp.org>
47459
47460         * lib/glob.c: Don't include <pwd.h> on native Windows.
47461         (WINDOWS32): New macro.
47462         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47463
47464 2008-09-13  Bruno Haible  <bruno@clisp.org>
47465
47466         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47467         (ETIMEDOUT): Remove macro.
47468         (glthread_cond_timedwait_multithreaded): New declaration.
47469         (glthread_cond_timedwait): Use it.
47470         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47471         (glthread_cond_timedwait_multithreaded): New function.
47472
47473 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47474
47475         * modules/poll-tests: Do not check for io.h.
47476         * tests/test-poll.c: Check for __MSVCRT__ instead.
47477
47478 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47479
47480         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47481         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47482         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47483
47484 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47485
47486         * modules/poll-tests: New.
47487         * tests/test-poll.c: New.
47488
47489 2008-09-12  Eric Blake  <ebb9@byu.net>
47490
47491         frexp: test for NetBSD failure on -0.0
47492         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47493         not all, bugs from NetBSD 3.0 have been fixed.
47494         * doc/posix-functions/frexp.texi (frexp): Document bug.
47495         Reported by Thomas Klausner.
47496
47497         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47498         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47499         literal -0.0.
47500         Reported by Jonathan C. Patschke <jp@centtech.com>.
47501
47502 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47503
47504         * lib/glthread/cond.h: Use dummy implementation also if
47505         USE_WIN32_THREADS.
47506
47507 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47508
47509         * modules/fnmatch-posix (License): Change to LGPLv2+.
47510         * modules/fnmatch-gnu (License): Likewise.
47511
47512 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47513
47514         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47515
47516 2008-09-11  Jim Meyering  <meyering@redhat.com>
47517
47518         * users.txt: Add gtk-vnc.
47519
47520 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47521
47522         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47523         rotate amounts.
47524
47525         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47526         required for 16-bit and 8-bit rotates.
47527         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47528         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47529         UINT8_MAX instead of hard-coded constants.
47530         Suggested by Paul Eggert.
47531
47532 2008-09-07  Bruno Haible  <bruno@clisp.org>
47533
47534         * tests/test-striconveh.c (main): Check behaviour when converting from
47535         UTF-7.
47536
47537         Make striconveh work better with stateful encodings.
47538         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47539         that iconv does not increment the inptr when returning -1/EINVAL.
47540
47541 2008-09-07  Bruno Haible  <bruno@clisp.org>
47542
47543         * build-aux/config.rpath: Update according to libtool-2.2.6.
47544         * build-aux/config.libpath: Likewise.
47545
47546 2008-09-06  Bruno Haible  <bruno@clisp.org>
47547
47548         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47549         * lib/freadptr.c (freadptr): Likewise.
47550         * lib/freadseek.c (freadptrinc): Likewise.
47551         Reported by Simon Josefsson.
47552
47553 2008-09-06  Bruno Haible  <bruno@clisp.org>
47554
47555         * modules/freadptr (License): Change to LGPLv2+.
47556         * modules/freadseek (License): Likewise.
47557         Suggested by Eric Blake.
47558
47559         * modules/memchr2 (License): Change to LGPLv2+.
47560         Approved by Eric Blake.
47561
47562 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47563             Bruno Haible  <bruno@clisp.org>
47564
47565         Make gnulib-tool work with native 'sed' on AIX.
47566         * gnulib-tool (sed_noop): New variable.
47567         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47568         func_add_or_update, func_create_testdir): Use it to initialize sed
47569         script variables.
47570         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47571
47572 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47573             Bruno Haible  <bruno@clisp.org>
47574
47575         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47576         also works after #include directives.
47577
47578 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47579
47580         getdate.y: reject an out-of-range timezone value
47581         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47582         the range [-24...+24].  When specified with only one or two digits,
47583         * tests/test-getdate.c: Tests for the fix.
47584         * doc/getdate.texi: Document this change.
47585
47586 2008-09-03  Bruno Haible  <bruno@clisp.org>
47587
47588         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47589
47590 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47591
47592         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47593         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47594         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47595         Blake <ebb9@byu.net>.
47596
47597         * tests/test-bitrotate.c: Add more test vectors.
47598
47599 2008-09-02  Eric Blake  <ebb9@byu.net>
47600
47601         vasnprintf-posix: handle large precision via %.*d
47602         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47603         when handling it ourselves.
47604         * tests/test-vasnprintf-posix.c (test_function): Add test.
47605         * tests/test-snprintf-posix.h (test_function): Likewise.
47606         * tests/test-sprintf-posix.h (test_function): Likewise.
47607         * tests/test-vasprintf-posix.c (test_function): Likewise.
47608         Reported by Alain Guibert.
47609
47610 2008-09-01  Eric Blake  <ebb9@byu.net>
47611
47612         c-stack: make configure-time check more robust
47613         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47614         successful sigaction call.
47615         Reported by Tom G. Christensen.
47616
47617 2008-09-01  Bruno Haible  <bruno@clisp.org>
47618
47619         New module 'findprog-lgpl'.
47620         * modules/findprog-lgpl: New file.
47621         * lib/findprog-lgpl.c: New file.
47622         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47623         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47624         to decide whether to use strdup or xstrdup, concatenated_filename or
47625         xconcatenated_filename.
47626
47627 2008-09-01  Bruno Haible  <bruno@clisp.org>
47628
47629         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47630         'xconcat-filename' (GPL).
47631         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47632         (License): Change to LGPLv2+.
47633         * modules/xconcat-filename: New file.
47634         * lib/concat-filename.h (concatenated_filename): Change specification.
47635         (xconcatenated_filename): New declaration.
47636         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47637         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47638         memory situations.
47639         * lib/xconcat-filename.c: New file.
47640         * NEWS: Mention the change.
47641         * lib/findprog.c: Include concat-filename.h, not filename.h.
47642         (find_in_path): Use xconcatenated_filename instead of
47643         concatenated_filename.
47644         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47645         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47646         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47647         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47648         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47649         instead of concatenated_filename.
47650         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47651         (execute_java_class): Use xconcatenated_filename instead of
47652         concatenated_filename.
47653         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47654         * modules/javacomp (Depends-on): Likewise.
47655         * modules/javaexec (Depends-on): Likewise.
47656
47657 2008-09-01  Bruno Haible  <bruno@clisp.org>
47658
47659         Split module 'filename' into 'filename' and 'concat-filename'.
47660         * modules/filename: Keep only lib/filename.h.
47661         (License): Change to LGPLv2+.
47662         * modules/concat-filename: New file, extracted from modules/filename.
47663         * lib/filename.h (concatenated_filename): Remove declaration.
47664         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47665         * lib/concat-filename.c: Include concat-filename.h.
47666         * NEWS: Mention the change.
47667
47668 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47669
47670         * lib/bitrotate.h (rotl8, rotr8): Add.
47671
47672         * modules/bitrotate (configure.ac): Need
47673         AC_REQUIRE([AC_C_INLINE]).
47674         (Description): Mention stdint.h.  Reported by Bruno Haible
47675         <bruno@clisp.org>.
47676
47677         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47678         Paolo Bonzini <bonzini@gnu.org>.
47679
47680 2008-08-31  Bruno Haible  <bruno@clisp.org>
47681
47682         Assume Solaris specific bi-arch conventions on Solaris systems.
47683         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47684         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47685         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47686         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47687         like acl_libdirstem.
47688         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47689         acl_libdirstem.
47690         * NEWS: Mention the change.
47691         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47692
47693 2008-08-31  Jim Meyering  <meyering@redhat.com>
47694
47695         * lib/strftime.h: Add comments describing the two added arguments.
47696
47697         remove duplicate #include directives
47698         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47699         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47700
47701 2008-08-31  Bruno Haible  <bruno@clisp.org>
47702
47703         New module 'sigpipe-die'.
47704         * modules/sigpipe-die: New file.
47705         * lib/sigpipe-die.h: New file.
47706         * lib/sigpipe-die.c: New file.
47707         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47708
47709 2008-08-31  Bruno Haible  <bruno@clisp.org>
47710
47711         Don't override previously installed signal handlers.
47712         * lib/fatal-signal.c (saved_sigactions): New variable.
47713         (uninstall_handlers): Reset the signal to the saved handler, not
47714         to SIG_DFL (except when ignored).
47715         (install_handlers): Save the previous handlers.
47716
47717 2008-08-30  Bruno Haible  <bruno@clisp.org>
47718
47719         * gnulib-tool (func_reset_sigpipe): New function.
47720         (func_get_automake_snippet, func_modules_transitive_closure,
47721         func_import): Invoke it before a join command that reads from stdin,
47722         to avoid "echo: write error: Broken pipe" error messages on stderr.
47723         Reported by Sam Steingold <sds@gnu.org>.
47724
47725 2008-08-30  Bruno Haible  <bruno@clisp.org>
47726
47727         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47728         Code copied from m4/open.m4.
47729         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47730         access and the filename ends in a slash. Code copied from lib/open.c.
47731         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47732         * tests/test-fopen.c (main): Check against bug with trailing slash.
47733
47734 2008-08-29  Bruno Haible  <bruno@clisp.org>
47735
47736         Avoid some "gcc -pedantic" warnings.
47737         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47738         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47739         * lib/dirent.in.h: Likewise.
47740         * lib/fcntl.in.h: Likewise.
47741         * lib/float.in.h: Likewise.
47742         * lib/iconv.in.h: Likewise.
47743         * lib/inttypes.in.h: Likewise.
47744         * lib/locale.in.h: Likewise.
47745         * lib/math.in.h: Likewise.
47746         * lib/netinet_in.in.h: Likewise.
47747         * lib/search.in.h: Likewise.
47748         * lib/signal.in.h: Likewise.
47749         * lib/stdarg.in.h: Likewise.
47750         * lib/stdint.in.h: Likewise.
47751         * lib/stdio.in.h: Likewise.
47752         * lib/stdlib.in.h: Likewise.
47753         * lib/string.in.h: Likewise.
47754         * lib/strings.in.h: Likewise.
47755         * lib/sys_select.in.h: Likewise.
47756         * lib/sys_socket.in.h: Likewise.
47757         * lib/sys_stat.in.h: Likewise.
47758         * lib/sys_time.in.h: Likewise.
47759         * lib/sysexits.in.h: Likewise.
47760         * lib/time.in.h: Likewise.
47761         * lib/unistd.in.h: Likewise.
47762         * lib/wchar.in.h: Likewise.
47763         * lib/wctype.in.h: Likewise.
47764         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47765         * modules/fchdir (Makefile.am): Likewise.
47766         * modules/fcntl (Makefile.am): Likewise.
47767         * modules/float (Makefile.am): Likewise.
47768         * modules/iconv_open (Makefile.am): Likewise.
47769         * modules/inttypes (Makefile.am): Likewise.
47770         * modules/locale (Makefile.am): Likewise.
47771         * modules/math (Makefile.am): Likewise.
47772         * modules/netinet_in (Makefile.am): Likewise.
47773         * modules/search (Makefile.am): Likewise.
47774         * modules/signal (Makefile.am): Likewise.
47775         * modules/stdarg (Makefile.am): Likewise.
47776         * modules/stdint (Makefile.am): Likewise.
47777         * modules/stdio (Makefile.am): Likewise.
47778         * modules/stdlib (Makefile.am): Likewise.
47779         * modules/string (Makefile.am): Likewise.
47780         * modules/strings (Makefile.am): Likewise.
47781         * modules/sys_select (Makefile.am): Likewise.
47782         * modules/sys_socket (Makefile.am): Likewise.
47783         * modules/sys_stat (Makefile.am): Likewise.
47784         * modules/sys_time (Makefile.am): Likewise.
47785         * modules/sysexits (Makefile.am): Likewise.
47786         * modules/time (Makefile.am): Likewise.
47787         * modules/unistd (Makefile.am): Likewise.
47788         * modules/wchar (Makefile.am): Likewise.
47789         * modules/wctype (Makefile.am): Likewise.
47790         Reported by Reuben Thomas <rrt@sc3d.org>.
47791
47792 2008-08-29  Bruno Haible  <bruno@clisp.org>
47793
47794         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47795         any more.
47796
47797 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47798
47799         * MODULES.html.sh (Misc): Add bitrotate.
47800
47801         * modules/bitrotate: New file.
47802
47803         * lib/bitrotate.h: New file.
47804
47805         * modules/bitrotate-tests: New file.
47806
47807         * tests/test-bitrotate.c: New file.
47808
47809         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47810         on the bitrotate module.
47811
47812         * lib/arctwo.c: Use new bitrotate module.
47813
47814 2008-08-29  Jim Meyering  <meyering@redhat.com>
47815
47816         bootstrap: merge changes from coreutils
47817         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47818         of copied files.  Remove a kludge, now that this is fixed.
47819         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47820         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47821         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47822
47823 2008-08-29  Bruno Haible  <bruno@clisp.org>
47824
47825         * MODULES.html.sh: Remove --cvs-urls option.
47826
47827 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47828
47829         maint.mk: adjust to file name change
47830         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47831
47832 2008-08-28  Jim Meyering  <meyering@redhat.com>
47833
47834         * modules/getndelim2 (License): Relicense to LGPLv2+.
47835         Approved by Richard Stallman for the version of 1995, and by
47836         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47837
47838 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47839
47840         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47841         dummy if one is not available.  Do not touch them if
47842         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47843         (getc_maybe_unlocked): New.
47844         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47845
47846 2008-08-26  Eric Blake  <ebb9@byu.net>
47847
47848         doc/INSTALL: resync from autoconf
47849         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47850         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47851         moving...
47852         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47853         * INSTALL: Regenerate.
47854         * INSTALL.ISO: New file.
47855         * INSTALL.UTF-8: Likewise.
47856
47857 2008-08-26  Jim Meyering  <meyering@redhat.com>
47858
47859         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47860         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47861         these definitions conditional, so that they may be overridden, too.
47862
47863 2008-08-26  Bruno Haible  <bruno@clisp.org>
47864
47865         Generate INSTALL file variants with prettier quotes.
47866         * doc/Makefile (INSTALL_PRELUDE): New macro.
47867         (INSTALL): Use it.
47868         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47869
47870 2008-08-26  Bruno Haible  <bruno@clisp.org>
47871
47872         Run makeinfo in an English locale.
47873         * doc/Makefile (MAKEINFO): New variable.
47874
47875 2008-08-26  Bruno Haible  <bruno@clisp.org>
47876
47877         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47878         Suggested by Eric Blake.
47879
47880 2008-08-25  Bruno Haible  <bruno@clisp.org>
47881
47882         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47883
47884 2008-08-25  Eric Blake  <ebb9@byu.net>
47885
47886         c-stack: test that stack overflow can be caught
47887         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47888         that platform allows handling stack overflow; at least OS/2 EMX
47889         has sigaltstack, but crashes before transferring control to
47890         handler on stack overflow.
47891         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47892         check for HAVE_STACK_OVERFLOW_HANDLING.
47893         Reported by Elbert Pol.
47894
47895 2008-08-25  Bruno Haible  <bruno@clisp.org>
47896
47897         * doc/posix-functions/strftime.texi: Fix description of strftime
47898         module.
47899
47900 2008-08-24  Bruno Haible  <bruno@clisp.org>
47901
47902         * tests/uniwidth/test-uc_width2.c: New file.
47903         * tests/uniwidth/test-uc_width2.sh: New file.
47904         * modules/uniwidth/width-tests (Files): Add the new files.
47905         (TESTS): Add uniwidth/test-uc_width2.sh.
47906         (TESTS_ENVIRONMENT): New variable.
47907         (check_PROGRAMS): Add test-uc_width2.
47908         (test_uc_width2_SOURCES): New variable.
47909
47910         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47911         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47912         not 0x00AB.
47913         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47914
47915 2008-08-22  Eric Blake  <ebb9@byu.net>
47916
47917         test-lock, test-tls: mention why a test is skipped
47918         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47919         skipped.
47920         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47921
47922         count-one-bits: relax license
47923         * modules/count-one-bits (License): Relicense to LGPLv2+.
47924         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47925
47926 2008-08-22  Andreas Schwab  <schwab@suse.de>
47927
47928         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47929         Remove spurious space in assignment.
47930
47931 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47932
47933         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47934         Paul Eggert <eggert@CS.UCLA.EDU>.
47935
47936 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47937
47938         * modules/gettext: Add m4/threadlib.m4.
47939
47940 2008-08-19  Eric Blake  <ebb9@byu.net>
47941
47942         test-c-stack: fix compilation failure on FreeBSD 5.0
47943         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47944         headers before <sys/resource.h>.
47945         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47946         the bug.
47947         Reported by Nelson H. F. Beebe.
47948
47949         strverscmp: migrate from "strverscmp.h" to <string.h>
47950         * modules/string (Makefile.am): Add new hooks.
47951         * modules/strverscmp (Files): Remove strverscmp.h.
47952         (Depends-on): Add string.
47953         (configure.ac): Add indicator.
47954         (Include): Mention new header.
47955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47956         defaults.
47957         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47958         results.
47959         * lib/strverscmp.h: Delete.
47960         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47961         * tests/test-strverscmp.c (includes): Adjust client.
47962         * lib/check-version.c (includes): Likewise.
47963         * NEWS: Document the change.
47964
47965         strverscmp: add unit test
47966         * modules/strverscmp-tests: New file.
47967         * tests/test-strverscmp.c: Likewise.
47968
47969 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47970
47971         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47972         regarding Windows crypto stuff, from Mono.
47973
47974 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47975
47976         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47977         if present, for intel RND.  Return error on failures.
47978
47979 2008-08-18  Ben Pfaff  <blp@gnu.org>
47980
47981         gitlog-to-changelog: give better diagnostic for failed pipe-open
47982         * build-aux/gitlog-to-changelog: Improve error message: suggest
47983         that the version of Git may be too old.
47984
47985 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47986
47987         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
47988         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
47989
47990 2008-08-18  Bruno Haible  <bruno@clisp.org>
47991
47992         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
47993         pthread_in_use().
47994
47995 2008-08-18  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/glthread/threadlib.c: Include <pthread.h>.
47998
47999 2008-08-18  Bruno Haible  <bruno@clisp.org>
48000
48001         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48002         glthread_recursive_lock_* macros.
48003         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48004         Fix syntax error.
48005
48006 2008-08-18  Bruno Haible  <bruno@clisp.org>
48007
48008         * lib/glthread/thread.c: Avoid forcing a context switch right after
48009         thread creation.
48010
48011 2008-08-17  Bruno Haible  <bruno@clisp.org>
48012
48013         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48014         * lib/glthread/thread.h: Provide Win32 specific implementation.
48015         * modules/thread (Files): Add lib/glthread/thread.c.
48016         (Depends-on): Add lock.
48017         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48018
48019 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48020
48021         New module 'yield'.
48022         * modules/yield: New file.
48023         * lib/glthread/yield.h: New file.
48024         * m4/yield.m4: New file.
48025         * MODULES.html.sh (Multithreading): Add yield.
48026
48027 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48028
48029         New module 'thread'.
48030         * modules/thread: New file.
48031         * lib/glthread/thread.h: New file.
48032         * m4/thread.m4: New file.
48033         * MODULES.html.sh (Multithreading): Add thread.
48034
48035 2008-08-17  Bruno Haible  <bruno@clisp.org>
48036
48037         * lib/glthread/lock.h: Include <stdlib.h> always.
48038         * lib/glthread/tls.h: Likewise.
48039         * lib/glthread/cond.h: Likewise.
48040
48041 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48042
48043         New module 'cond'.
48044         * modules/cond: New file.
48045         * lib/glthread/cond.h: New file.
48046         * lib/glthread/cond.c: New file.
48047         * m4/cond.m4: New file.
48048         * MODULES.html.sh (Multithreading): Add cond.
48049
48050 2008-08-16  Eric Blake  <ebb9@byu.net>
48051
48052         c-stack: fix regression on Irix 5.3 from 2008-06-21
48053         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48054         sa_sigaction...
48055         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48056         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48057         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48058         * modules/signal (Makefile.am): Use the value.
48059         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48060         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48061         * doc/posix-headers/signal.texi (signal.h): Document this
48062         portability issue.
48063         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48064         Reported by Tom G. Christensen.
48065
48066 2008-08-17  Bruno Haible  <bruno@clisp.org>
48067
48068         New module 'threadlib'.
48069         * modules/threadlib: New file.
48070         * lib/glthread/threadlib.c: New file, extracted from
48071         lib/glthread/lock.c.
48072         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48073         functions.
48074         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48075         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48076         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48077         macros.
48078         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48079         (gl_DISABLE_THREADS): Remove macro.
48080         * modules/lock (Files): Remove build-aux/config.rpath.
48081         (Depends-on): Remove havelib. Add threadlib.
48082         (configure.ac-early): Remove section.
48083         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48084         * modules/tls (Depends-on): Remove lock. Add threadlib.
48085         (Link): New section, copied from threadlib.
48086         * MODULES.html.sh (Multithreading): Add threadlib.
48087
48088 2008-08-14  Bruno Haible  <bruno@clisp.org>
48089
48090         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48091         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48092         glthread_rwlock_unlock, glthread_rwlock_destroy,
48093         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48094         glthread_recursive_lock_destroy): Define as macros always.
48095         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48096         glthread_lock_lock.
48097         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48098         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48099         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48100         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48101         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48102         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48103         (glthread_recursive_lock_lock_func): Renamed from
48104         glthread_recursive_lock_lock.
48105         (glthread_recursive_lock_unlock_func): Renamed from
48106         glthread_recursive_lock_unlock.
48107         (glthread_recursive_lock_destroy_func): Renamed from
48108         glthread_recursive_lock_destroy.
48109
48110 2008-08-14  Bruno Haible  <bruno@clisp.org>
48111
48112         * lib/glthread/lock.h: Renamed from lib/lock.h.
48113         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48114         * lib/glthread/tls.h: Renamed from lib/tls.h.
48115         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48116         * lib/fstrcmp.c: Update includes.
48117         * lib/strsignal.c: Update includes.
48118         * modules/lock (Files, Makefile.am): Update.
48119         (Include): Change to "glthread/lock.h".
48120         * modules/tls (Files, Makefile.am): Update.
48121         (Include): Change to "glthread/tls.h".
48122         * tests/test-lock.c: Update includes.
48123         * tests/test-tls.c: Update includes.
48124         * NEWS: Mention the renamed header files.
48125
48126 2008-08-11  Jim Meyering  <meyering@redhat.com>
48127
48128         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48129
48130 2008-08-11  Eric Blake  <ebb9@byu.net>
48131
48132         test-c-stack: avoid C99-ism
48133         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48134         before statement.
48135         Reported by Alain Guibert.
48136
48137 2008-08-10  Jim Meyering  <meyering@redhat.com>
48138
48139         ensure that return value of uinttostr et al are not ignored
48140         * lib/inttostr.h (__GNUC_PREREQ): Define.
48141         (__attribute_warn_unused_result__): Define.
48142         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48143
48144 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48145
48146         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48147         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48148
48149 2008-08-07  Jim Meyering  <meyering@redhat.com>
48150
48151         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48152
48153         * modules/mkstemp (License): Relicense under LGPLv2+.
48154         * modules/tempname (License): Likewise.
48155
48156 2008-08-06  Bruno Haible  <bruno@clisp.org>
48157
48158         * lib/poll.c (poll): Further micro-optimization.
48159
48160 2008-08-06  Jim Meyering  <meyering@redhat.com>
48161
48162         inet_pton.c: use locale-independent tolower
48163         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48164         (inet_pton6): Use c_tolower rather than tolower.
48165         * modules/inet_pton (Depends-on): Add c-ctype.
48166
48167 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48168
48169         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48170         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48171
48172 2008-08-06  Jim Meyering  <meyering@redhat.com>
48173
48174         * modules/inet_pton (License): Relicense under LGPLv2+.
48175
48176 2008-08-03  Bruno Haible  <bruno@clisp.org>
48177
48178         Additional non-aborting API for lock and tls.
48179         * lib/lock.h: Include <errno.h>.
48180         (glthread_lock_init): New macro/function.
48181         (gl_lock_init): Define as wrapper around glthread_lock_init.
48182         (glthread_lock_lock): New macro/function.
48183         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48184         (glthread_lock_unlock): New macro/function.
48185         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48186         (glthread_lock_destroy): New macro/function.
48187         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48188         (glthread_rwlock_init): New macro/function.
48189         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48190         (glthread_rwlock_rdlock): New macro/function.
48191         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48192         (glthread_rwlock_wrlock): New macro/function.
48193         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48194         (glthread_rwlock_unlock): New macro/function.
48195         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48196         (glthread_rwlock_destroy): New macro/function.
48197         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48198         (glthread_recursive_lock_init): New macro/function.
48199         (gl_recursive_lock_init): Define as wrapper around
48200         glthread_recursive_lock_init.
48201         (glthread_recursive_lock_lock): New macro/function.
48202         (gl_recursive_lock_lock): Define as wrapper around
48203         glthread_recursive_lock_lock.
48204         (glthread_recursive_lock_unlock): New macro/function.
48205         (gl_recursive_lock_unlock): Define as wrapper around
48206         glthread_recursive_lock_unlock.
48207         (glthread_recursive_lock_destroy): New macro/function.
48208         (gl_recursive_lock_destroy): Define as wrapper around
48209         glthread_recursive_lock_destroy.
48210         (glthread_once): New macro/function.
48211         (gl_once): Define as wrapper around glthread_once.
48212         Update function declarations.
48213         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48214         glthread_rwlock_init. Return error code.
48215         (glthread_rwlock_rdlock_multithreaded): Renamed from
48216         glthread_rwlock_rdlock. Return error code.
48217         (glthread_rwlock_wrlock_multithreaded): Renamed from
48218         glthread_rwlock_wrlock. Return error code.
48219         (glthread_rwlock_unlock_multithreaded): Renamed from
48220         glthread_rwlock_unlock. Return error code.
48221         (glthread_rwlock_destroy_multithreaded): Renamed from
48222         glthread_rwlock_destroy. Return error code.
48223         (glthread_recursive_lock_init_multithreaded): Renamed from
48224         glthread_recursive_lock_init. Return error code.
48225         (glthread_recursive_lock_lock_multithreaded): Renamed from
48226         glthread_recursive_lock_lock. Return error code.
48227         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48228         glthread_recursive_lock_unlock. Return error code.
48229         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48230         glthread_recursive_lock_destroy. Return error code.
48231         (glthread_once_call): Make static.
48232         (glthread_once_multithreaded): Renamed from glthread_once.
48233         * lib/tls.h: Include <errno.h>.
48234         (glthread_tls_key_init): New macro/function.
48235         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48236         (glthread_tls_set): New macro/function.
48237         (gl_tls_set): Define as wrapper around glthread_tls_set.
48238         (glthread_tls_key_destroy): New macro/function.
48239         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48240         Update function declarations.
48241         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48242         glthread_tls_get.
48243         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48244
48245 2008-08-04  Eric Blake  <ebb9@byu.net>
48246
48247         gnumakefile: use space, not TAB, outside of targets
48248         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48249
48250 2008-08-02  Jim Meyering  <meyering@redhat.com>
48251
48252         getdate.y: avoid locale-dependent date parsing failure
48253         In Turkish locales, getdate would fail to recognize keywords
48254         containing a lowercase "i".  The solution is not to rely on
48255         locale-sensitive case-conversion.
48256         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48257         (lookup_word): Use c_toupper in place of toupper.
48258         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48259         Reported by Vefa Bicakci <bicave@superonline.com> in
48260         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48261         * modules/getdate (Depends-on): Add c-ctype.
48262
48263 2008-08-02  Bruno Haible  <bruno@clisp.org>
48264
48265         * gnulib-tool (func_import): When updating or creating a .gitignore
48266         file, prepend each added line with a slash, and ignore leading slashes
48267         from the existing lines.
48268         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48269
48270 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48271
48272         Portability fix for GNU make 3.79.1.
48273         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48274         versions do not understand.
48275
48276 2008-08-01  Bruno Haible  <bruno@clisp.org>
48277
48278         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48279         * tests/test-isnanf.h (zero): New variable.
48280         (main): Avoid literal -0.0f.
48281         * tests/test-isnand.h (zero): New variable.
48282         (main): Avoid literal -0.0.
48283         * tests/test-isnanl.h (zero): New variable.
48284         (main): Avoid literal -0.0L.
48285         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48286         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48287         -0.0, -0.0L.
48288         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48289         (test_signbitd): Avoid literal -0.0.
48290         (test_signbitl): Avoid literal -0.0L.
48291         * tests/test-ceilf1.c (zero): New variable.
48292         (main): Avoid literal -0.0f.
48293         * tests/test-ceill.c (zero): New variable.
48294         (main): Avoid literal -0.0L.
48295         * tests/test-floorf1.c (zero): New variable.
48296         (main): Avoid literal -0.0f.
48297         * tests/test-floorl.c (zero): New variable.
48298         (main): Avoid literal -0.0L.
48299         * tests/test-roundf1.c (zero): New variable.
48300         (main): Avoid literal -0.0f.
48301         * tests/test-round1.c (zero): New variable.
48302         (main): Avoid literal -0.0.
48303         * tests/test-roundl.c (zero): New variable.
48304         (main): Avoid literal -0.0L.
48305         * tests/test-truncf1.c (zero): New variable.
48306         (main): Avoid literal -0.0f.
48307         * tests/test-trunc1.c (zero): New variable.
48308         (main): Avoid literal -0.0.
48309         * tests/test-truncl.c (zero): New variable.
48310         (main): Avoid literal -0.0L.
48311         * tests/test-frexp.c (zero): New variable.
48312         (main): Avoid literal -0.0.
48313         * tests/test-frexpl.c (zero): New variable.
48314         (main): Avoid literal -0.0L.
48315         * tests/test-ldexpl.c (zero): New variable.
48316         (main): Avoid literal -0.0L.
48317         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48318         (zerod, zerol): New variables.
48319         (test_function): Avoid literals -0.0, -0.0L.
48320         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48321         (zerod, zerol): New variables.
48322         (test_function): Avoid literals -0.0, -0.0L.
48323         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48324         (zerod, zerol): New variables.
48325         (test_function): Avoid literals -0.0, -0.0L.
48326         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48327         (zerod, zerol): New variables.
48328         (test_function): Avoid literals -0.0, -0.0L.
48329         * tests/test-strtod.c (zero): New variable.
48330         (main): Avoid literal -0.0.
48331         Reported by Jonathan C. Patschke <jp@centtech.com>.
48332
48333 2008-07-31  Jim Meyering  <meyering@redhat.com>
48334
48335         sha256.h: correct definition of SHA224_DIGEST_SIZE
48336         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48337         Reported by Paulie Pena IV <paulie4@gmail.com>.
48338         Define as 224 / 8, rather than as a literal.
48339         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48340         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48341         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48342
48343 2008-07-31  Bruno Haible  <bruno@clisp.org>
48344
48345         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48346         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48347         Reported by Jonathan Patschke <jp@centtech.com>.
48348
48349 2008-07-31  Bruno Haible  <bruno@clisp.org>
48350
48351         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48352         Reported by Paolo Bonzini <bonzini@gnu.org>.
48353
48354 2008-07-30  Eric Blake  <ebb9@byu.net>
48355
48356         test-strtod: allow compilation without -lm
48357         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48358         Reported by Dennis Clarke <blastwave@gmail.com>.
48359
48360 2008-07-28  Jim Meyering  <meyering@redhat.com>
48361
48362         bootstrap: work also when there are no .po files in po/
48363         * build-aux/bootstrap (update_po_files): Complete the change
48364         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48365
48366 2008-07-27  Jim Meyering  <meyering@redhat.com>
48367
48368         * users.txt: Add zile.
48369
48370 2008-07-26  Ben Pfaff  <blp@gnu.org>
48371
48372         Add missing dependencies on new m4/exponent[fdl].m4 files.
48373         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48374         * modules/isnand-nolibm: Add m4/exponentd.m4.
48375         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48376         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48377         m4/isnan[fdl].m4, because the macros actually used moved.
48378         Reported by Jim Meyering.
48379
48380 2008-07-14  Ben Pfaff  <blp@gnu.org>
48381
48382         Add isinf module.
48383         * lib/isinf.c: New file.
48384         * lib/math.in.h: Define isinf macro if we have decided to replace
48385         it.
48386         * m4/isinf.m4: New file.
48387         * m4/math_h.m4: Initialize and substitute variables for isinf
48388         module.
48389         * modules/isinf: New file.
48390         * modules/isinf-tests: New file.
48391         * modules/math: Add substitutions for new module.
48392         * tests/test-isinf.c: New file.
48393         * doc/posix-functions/isinf.texi: Mention new module.
48394         * MODULES.html.sh: Mention new module.
48395
48396 2008-07-14  Ben Pfaff  <blp@gnu.org>
48397
48398         Factor out some macros for use by additional modules.
48399         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48400         exponentf.m4.
48401         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48402         exponentd.m4.
48403         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48404         file exponentl.m4.
48405         * m4/exponentf.m4: New file.
48406         * m4/exponentd.m4: New file.
48407         * m4/exponentl.m4: New file.
48408         * modules/isnanf: Use new file m4/exponentf.m4.
48409         * modules/isnand: Use new file m4/exponentd.m4.
48410         * modules/isnanl: Use new file m4/exponentl.m4.
48411
48412 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48413
48414         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48415         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48416         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48417         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48418
48419         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48420         readlink on platforms without PATH_MAX.
48421
48422 2008-07-21  Eric Blake  <ebb9@byu.net>
48423
48424         Warn, not fail, on stale version.
48425         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48426
48427         Don't allow installation with stale devel version number.
48428         * top/GNUmakefile (_is-install-target): New macro.
48429         (_curr-ver): Forbid installation with stale version number.
48430
48431 2008-07-20  Bruno Haible  <bruno@clisp.org>
48432
48433         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48434         TESTS_ENVIRONMENT.
48435         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48436
48437 2008-07-20  Bruno Haible  <bruno@clisp.org>
48438
48439         * lib/c-stack.h (c_stack_action): Add documentation.
48440         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48441
48442 2008-07-20  Bruno Haible  <bruno@clisp.org>
48443
48444         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48445         * modules/readlink (License): Likewise.
48446
48447 2008-07-17  Eric Blake  <ebb9@byu.net>
48448
48449         * modules/c-stack (Link): Fix typo.
48450
48451         Make c-stack use libsigsegv, when available.
48452         * modules/c-stack (Depends-on): Add libsigsegv.
48453         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48454         needed.
48455         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48456         (segv_handler, overflow_handler, c_stack_action)
48457         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48458         implementation when libsigsegv is available, but only when using
48459         the library is necessary.
48460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48461         comment, explaining why XSI check fails on Linux.
48462         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48463         * tests/test-c-stack2.sh: Tweak skip message.
48464         * NEWS: Document new link-time requirements.
48465
48466 2008-07-16  Eric Blake  <ebb9@byu.net>
48467
48468         c-stack: Expose false positives when not using libsigsegv.
48469         * modules/c-stack-tests (Files): Expand test.
48470         * tests/test-c-stack.c (main): Add means to conditionally trigger
48471         non-overflow SIGSEGV.
48472         * tests/test-c-stack2.sh: New file.
48473
48474 2008-07-14  Bruno Haible  <bruno@clisp.org>
48475
48476         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48477         Reported by Eric Blake.
48478
48479 2008-07-14  Sam Steingold  <sds@gnu.org>
48480             Bruno Haible  <bruno@clisp.org>
48481
48482         New module libsigsegv.
48483         * modules/libsigsegv: New file.
48484         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48485         modifications.
48486         * MODULES.html.sh (Signal handling): New section.
48487
48488 2008-07-14  Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/unictype/ctype-* (Description): Add the word "function".
48491         Improves the resulting doc in MODULES.html.
48492
48493 2008-07-12  Ben Pfaff  <blp@gnu.org>
48494
48495         Add longlong module.
48496         * modules/longlong: New file.
48497
48498 2008-07-12  Bruno Haible  <bruno@clisp.org>
48499
48500         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48501         to empty.
48502
48503 2008-07-10  Ben Pfaff  <blp@gnu.org>
48504
48505         Add isnan module.
48506         * doc/posix-functions/isnan.texi: Mention new module.
48507         * lib/math.in.h: Define isnan macro if we have decided to replace
48508         it.
48509         * m4/isnan.m4: New file.
48510         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48511         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48512         also.
48513         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48514         redundancy.
48515         * m4/math_h.m4: Initialize and substitute variables for isnan
48516         module.
48517         * modules/isnan: New file.
48518         * modules/isnan-tests: New file.
48519         * modules/math: Add substitutions for new module.
48520         * tests/test-isnan.c: New file.
48521         * MODULES.html.sh: Mention new module.
48522
48523 2008-07-10  Ben Pfaff  <blp@gnu.org>
48524
48525         Add isnanf module.
48526         * lib/isnanf.m4: New file.
48527         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48528         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48529         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48530         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48531         * modules/isnanf: New file.
48532         * modules/isnanf-tests: New file.
48533         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48534         files.
48535         * tests/test-isnanf-nolibm.c: factored most of its contents into
48536         new file tests/test-isnanf.h.
48537         * tests/test-isnanf.h: New file.
48538         * tests/test-isnanf.c: New file.
48539         * MODULES.html.sh: Mention new module.
48540         * doc/glibc-functions/isnanf.texi: Mention new module.
48541
48542 2008-07-10  Ben Pfaff  <blp@gnu.org>
48543
48544         Add isnand module.
48545         * lib/isnand.h: New file.
48546         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48547         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48548         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48549         functionality also.
48550         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48551         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48552         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48553         * modules/isnand: New file.
48554         * modules/isnand-tests: New file.
48555         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48556         files.
48557         * tests/test-isnand-nolibm.c: factored most of its contents into
48558         new file tests/test-isnand.h.
48559         * tests/test-isnand.h: New file.
48560         * tests/test-isnand.c: New file.
48561         * MODULES.html.sh: Mention new module.
48562
48563 2008-07-10  Ben Pfaff  <blp@gnu.org>
48564
48565         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48566         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48567         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48568         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48569         * modules/isnanf-nolibm: Update references to renamed files.
48570         * modules/isnand-nolibm: Likewise.
48571         * modules/isnanf-nolibm-tests: Likewise.
48572         * modules/isnand-nolibm-tests: Likewise.
48573         * lib/frexp.c: Likewise.
48574         * lib/isfinite.c: Likewise.
48575         * lib/signbitd.c: Likewise.
48576         * lib/signbitf.c: Likewise.
48577         * lib/vasnprintf.c: Likewise.
48578         * tests/test-ceilf1.c: Likewise.
48579         * tests/test-ceilf2.c: Likewise.
48580         * tests/test-floorf1.c: Likewise.
48581         * tests/test-floorf2.c: Likewise.
48582         * tests/test-frexp.c: Likewise.
48583         * tests/test-round1.c: Likewise.
48584         * tests/test-round2.c: Likewise.
48585         * tests/test-roundf1.c: Likewise.
48586         * tests/test-strtod.c: Likewise.
48587         * tests/test-trunc1.c: Likewise.
48588         * tests/test-trunc2.c: Likewise.
48589         * tests/test-truncf1.c: Likewise.
48590         * tests/test-truncf2.c: Likewise.
48591         * NEWS: Mention the renamed header files.
48592
48593 2008-07-11  Jim Meyering  <meyering@redhat.com>
48594
48595         vc-list-files: make the last-resort awk code more portable
48596         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48597         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48598         does not support it.
48599
48600 2008-07-10  Eric Blake  <ebb9@byu.net>
48601
48602         Work with tar's bootstrap.
48603         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48604         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48605         an m4 comment.
48606
48607 2008-07-09  Jim Meyering  <meyering@redhat.com>
48608
48609         posix-shell.m4: fix typo that made this test malfunction
48610         * m4/posix-shell.m4: Remove capitalization in variable name.
48611
48612 2008-07-08  Bruno Haible  <bruno@clisp.org>
48613
48614         * m4/onceonly.m4: Update comments.
48615         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48616
48617 2008-07-04  Jim Meyering  <meyering@redhat.com>
48618
48619         * users.txt: Add vc-dwim.
48620         (bison, coreutils): Use the gitweb URL.
48621
48622 2008-07-03  Jim Meyering  <meyering@redhat.com>
48623
48624         * users.txt: Add libffcall.  From Sam Steingold.
48625
48626 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48627
48628         getdate.y: do not ignore TZ with relative day, month or year offset
48629         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48630         relative-date-handling, since otherwise, the latter would clobber the
48631         sole output (an updated Start value) of the tz-handling block.
48632         * tests/test-getdate.c: Tests for the fix
48633
48634 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48635
48636         Recognize 'foo_LIBRARIES += libgnu.a'.
48637         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48638         makefile snippet has already specified an installation location,
48639         also using '+='.
48640
48641 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48642
48643         getdate.y: factor out common actions
48644         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48645         Use them in place of open-coded actions.
48646
48647 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48648
48649         Add self-test for getdate module.
48650         * modules/getdate-tests: New file.
48651         * tests/test-getdate.c: New file.
48652
48653 2008-06-29  Bruno Haible  <bruno@clisp.org>
48654
48655         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48656         .gitignore.
48657         Reported by Sylvain Beucler <beuc@beuc.net>.
48658
48659 2008-06-29  Bruno Haible  <bruno@clisp.org>
48660
48661         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48662         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48663
48664 2008-06-29  Bruno Haible  <bruno@clisp.org>
48665
48666         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48667         EXTRA_DIST.
48668         Reported by Sylvain Beucler <beuc@beuc.net>.
48669
48670 2008-06-26  Jim Meyering  <meyering@redhat.com>
48671
48672         make several modules depend on the "open" module
48673         This provides slightly increased consistency when opening-for-write
48674         the name of a non-directory spelled with a trailing slash.
48675         * modules/chdir-safer: Likewise.
48676         * modules/chown: Likewise.
48677         * modules/clean-temp: Likewise.
48678         * modules/copy-file: Likewise.
48679         * modules/fchdir: Likewise.
48680         * modules/fcntl-safer: Likewise.
48681         * modules/pipe: Likewise.
48682         * modules/utime: Likewise.
48683         Prompted by Eric Blake and Bruno Haible.
48684
48685 2008-06-24  Andreas Schwab  <schwab@suse.de>
48686
48687         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48688         literals can be used as initializers for global variables.
48689
48690 2008-06-23  Eric Blake  <ebb9@byu.net>
48691
48692         Make gnulib-cache.m4 easier to diff.
48693         * gnulib-tool (func_import): Allow newlines when reading cached
48694         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48695
48696 2008-06-23  Bruno Haible  <bruno@clisp.org>
48697
48698         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48699         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48700         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48701         m4/signalblocking.m4.
48702         (gl_PREREQ_SIGACTION): Don't invoke it.
48703         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48704         gl_PREREQ_SIG_HANDLER_H.
48705         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48706         Don't check for sigaction here.
48707
48708 2008-06-23  Bruno Haible  <bruno@clisp.org>
48709
48710         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48711         (install_handlers): Don't set the SA_RESETHAND flag.
48712
48713 2008-06-23  Bruno Haible  <bruno@clisp.org>
48714
48715         * m4/sigaction.m4: Comment fixes.
48716         * lib/signal.in.h: Likewise.
48717
48718 2008-06-23  Eric Blake  <ebb9@byu.net>
48719
48720         Fix typo.
48721         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48722
48723         Avoid SA_ namespace.
48724         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48725         Reported by Ralf Wildenhues.
48726
48727         Avoid test failure due to SA_RESTORER.
48728         * tests/test-sigaction.c (SA_MASK): New macro.
48729         (main): Avoid failing due to extension flags being set.
48730         Reported by Jim Meyering.
48731
48732         Revert use of sig-handler.h in sigprocmask.c.
48733         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48734         it requires the existence of struct sigaction.
48735         * lib/sigprocmask.c (handler_t): Restore typedef.
48736         (rpl_signal, old_handlers): Use local type.
48737
48738 2008-06-22  Bruno Haible  <bruno@clisp.org>
48739
48740         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48741         conditionally.
48742         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48743
48744 2008-06-22  Bruno Haible  <bruno@clisp.org>
48745
48746         * doc/posix-functions/siginterrupt.texi: Move note.
48747
48748         * lib/signal.in.h (SA_RESTART): New macro.
48749         * lib/sigaction.c: Update comment.
48750
48751         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48752
48753         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48754         (gl_PREREQ_SIGPROCMASK): Invoke it.
48755         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48756
48757         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48758
48759         * lib/sigprocmask.c: Update a comment.
48760
48761 2008-06-21  Eric Blake  <ebb9@byu.net>
48762
48763         Use sigaction module rather than signal().
48764         * modules/c-stack (Depends-on): Add sigaction.
48765         * modules/fatal-signal (Depends-on): Likewise.
48766         * modules/nanosleep (Depends-on): Likewise.
48767         * modules/sigprocmask (Files): Add sig-handler.h.
48768         * modules/sigaction (Files): Likewise.
48769         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48770         Eggert.
48771         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48772         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48773         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48774         (init_fatal_signals): Likewise.
48775         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48776         (siginterrupt): Delete fallback.
48777         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48778         instead.
48779         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48780         siginterrupt.
48781
48782         New module sigaction, for mingw.
48783         * modules/sigaction: New module...
48784         * modules/sigaction-tests: ...and its test.
48785         * m4/sigaction.m4: New file.
48786         * lib/sigaction.c: Likewise.
48787         * tests/test-sigaction.c: Likewise.
48788         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48789         * modules/signal (Makefile.am): Likewise.
48790         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48791         needed.
48792         * doc/posix-headers/signal.texi (signal.h): Mention provided
48793         types.
48794         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48795         that sigaction is preferable.
48796         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48797         module.
48798         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48799         sigaction.
48800
48801         Improve robustness of sigprocmask by overriding signal.
48802         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48803         is in use.
48804         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48805         (SIGKILL, SIGSTOP): Provide fallbacks.
48806         (rpl_signal): Implement.
48807         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48808         signal can be called inside handlers.
48809
48810         Fix nanosleep module on mingw.
48811         * modules/nanosleep (Depends-on): Add sys_select.
48812         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48813
48814         Fix licensing of sigprocmask.
48815         * modules/raise (License): Relicense as LGPL.
48816
48817 2008-06-21  Bruno Haible  <bruno@clisp.org>
48818
48819         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48820         result if it contains question marks.
48821         Reported by Michael Geng <linux@michaelgeng.de>.
48822
48823 2008-06-19  Bruno Haible  <bruno@clisp.org>
48824
48825         Fix CVS-ism.
48826         * doc/gnulib.texi: Include updated-stamp.texi.
48827         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48828         (updated-stamp.texi): New rule.
48829         (gnulib.info): Depend on it.
48830         * doc/.gitignore: Add updated-stamp.texi.
48831         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48832
48833 2008-06-19  Bruno Haible  <bruno@clisp.org>
48834
48835         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48836         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48837
48838 2008-06-19  Eric Blake  <ebb9@byu.net>
48839
48840         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48841         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48842         Reported by Stepan Kasal.
48843
48844 2008-06-18  Bruno Haible  <bruno@clisp.org>
48845
48846         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48847         Reported by Eric Blake.
48848
48849 2008-06-18  Eric Blake  <ebb9@byu.net>
48850
48851         Work around cygwin 1.5.25 strsignal bug.
48852         * tests/test-strsignal.c: Allow for const char *.
48853         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48854
48855 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48856
48857         * users.txt: Update URL to article and add author/date
48858         information.
48859
48860 2008-06-17  Bruno Haible  <bruno@clisp.org>
48861
48862         New macro gl_DISABLE_THREADS.
48863         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48864         if the user did not pass --enable-threads or --disable-threads option.
48865         (gl_DISABLE_THREADS): New macro.
48866         Reported by Eric Blake <ebb9@byu.net>.
48867
48868 2008-06-17  Bruno Haible  <bruno@clisp.org>
48869
48870         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48871         when the macro ignores it.
48872         Based on a patch by Eric Blake <ebb9@byu.net>.
48873
48874 2008-06-17  Bruno Haible  <bruno@clisp.org>
48875
48876         * modules/tls (License): Change to LGPLv2+.
48877         Reported by Eric Blake.
48878
48879 2008-06-17  Eric Blake  <ebb9@byu.net>
48880
48881         Simplify c-stack prerequisites.
48882         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48883         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48884         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48885         check.
48886         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48887         <sys/resource.h>.
48888
48889         Move c-stack test into testsuite.
48890         * modules/c-stack-tests: New file.
48891         * lib/c-stack.c [DEBUG]: Move test program...
48892         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48893         fail test if sigaltstack is lacking.
48894         * tests/test-c-stack.sh: New driver file.
48895
48896 2008-06-16  Eric Blake  <ebb9@byu.net>
48897
48898         Use raise module consistently.
48899         * modules/fatal-signal (Depends-on): Add raise.
48900         * modules/sigprocmask (Depends-on): Likewise.
48901         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48902         * lib/sigprocmask.c (sigprocmask): Likewise.
48903         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48904         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48905
48906         Fix compliance bug in sigpending.
48907         * lib/sigprocmask.c (sigpending): Return pending array via
48908         parameter, not return value.
48909
48910 2008-06-14  Eric Blake  <ebb9@byu.net>
48911
48912         Improve obstack-printf test code.
48913         * tests/test-obstack-printf.c (test_function): Fix comment, and
48914         simplify usage of obstack_* in macros.  Add a test for coverage.
48915         Reported by Bruno Haible.
48916
48917 2008-06-14  Bruno Haible  <bruno@clisp.org>
48918
48919         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48920         array size as a constant, not as a const variable.
48921         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48922         AC_USE_SYSTEM_EXTENSIONS.
48923         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48924         Test whether the obstack_printf function actually exists.
48925         * modules/obstack-printf (Depends-on): Add extensions.
48926         (Include): Remove obstack.h.
48927         * modules/obstack-printf-posix (Depends-on): Add extensions.
48928         (Include): Remove obstack.h.
48929
48930 2008-06-13  Eric Blake  <ebb9@byu.net>
48931
48932         Add obstack-printf and obstack-printf-posix modules.
48933         * modules/obstack-printf: New file.
48934         * modules/obstack-printf-posix: Likewise.
48935         * MODULES.html.sh (Misc): Mention them.
48936         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48937         Likewise.
48938         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48939         Likewise.
48940         * modules/stdio (Makefile.am): Accomodate new modules.
48941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48942         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48943         Declare.
48944         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48945         functions.
48946         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48947         (gl_REPLACE_OBSTACK_PRINTF): New macros
48948         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48949         * tests/test-obstack-printf.c: New file.
48950         * modules/obstack-printf-tests: Likewise.
48951         * modules/obstack-printf-posix-tests: Likewise.
48952
48953 2008-06-11  Bruno Haible  <bruno@clisp.org>
48954
48955         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48956         * lib/open.c: Include errno.h.
48957         (open): Fail when attempting to write to a file that has a trailing
48958         slash.
48959         * tests/test-open.c (main): Test against trailing slash bug.
48960         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48961
48962 2008-06-10  Bruno Haible  <bruno@clisp.org>
48963
48964         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48965         for $? to work inside the trap command, with various /bin/sh-s.
48966         * tests/test-vc-list-files-cvs.sh: Likewise.
48967
48968 2008-06-10  Bruno Haible  <bruno@clisp.org>
48969
48970         * lib/acl-internal.h: Don't include gettext.h here.
48971         * lib/set-mode-acl.c: Include gettext.h here.
48972         * lib/copy-acl.c: Likewise.
48973
48974 2008-06-10  Bruno Haible  <bruno@clisp.org>
48975
48976         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48977         * lib/wait-process.c (wait_subprocess): Likewise.
48978         * lib/execute.h (execute): Add termsigp argument.
48979         * lib/execute.c (execute): Likewise.
48980         * lib/csharpcomp.c (compile_csharp_using_pnet,
48981         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48982         * lib/csharpexec.c (execute_csharp_using_pnet,
48983         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48984         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48985         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48986         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48987         is_jikes_present): Update.
48988         * lib/javaexec.c (execute_java_class): Update.
48989         * lib/javaversion.c (execute_and_read_line): Update.
48990         * NEWS: Document the changes.
48991         Reported by Eric Blake.
48992
48993 2008-06-10  Eric Blake  <ebb9@byu.net>
48994
48995         Add missing include.
48996         * tests/test-strstr.c (includes): Add <signal.h>.
48997         * tests/test-strcasestr.c (includes): Likewise.
48998         * tests/test-memmem.c (includes): Likewise.
48999
49000 2008-06-10  Bruno Haible  <bruno@clisp.org>
49001
49002         * lib/wait-process.c (wait_subprocess): Add an assertion.
49003
49004 2008-06-10  Bruno Haible  <bruno@clisp.org>
49005
49006         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49007
49008 2008-06-10  Bruno Haible  <bruno@clisp.org>
49009
49010         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49011         using alarm().
49012         * tests/test-strcasestr.c (main): Likewise.
49013         * tests/test-strstr.c (main): Likewise.
49014
49015 2008-06-09  Bruno Haible  <bruno@clisp.org>
49016
49017         Work around the Solaris 10 ACE ACLs ABI change.
49018         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49019         declare if ACL_NO_TRIVIAL is present.
49020         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49021         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49022         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49023         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49024         define if ACL_NO_TRIVIAL is present.
49025         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49026         and use the current ABI.
49027         (file_has_acl): Use same #if condition as elsewhere.
49028         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49029         in use, and use the current ABI.
49030         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49031         Reported by Jim Meyering.
49032
49033 2008-06-09  Eric Blake  <ebb9@byu.net>
49034
49035         Work around environments that (stupidly) ignore SIGALRM.
49036         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49037         before using alarm().
49038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49039         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49040         Reported by Ian Beckwith <ianb@erislabs.net>.
49041
49042         Produce autobuild blurb earlier in log.
49043         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49044
49045 2008-06-09  Jim Meyering  <meyering@redhat.com>
49046         and OndÅ™ej Vašík  <ovasik@redhat.com>
49047
49048         utimens.c: correct kernel bug work-around
49049         OndÅ™ej Vašík found that the invalid return value of 280 indicates
49050         failure, not success, and the kernel bug we're trying to work
49051         around affects not just the utimensat call, but also the fallback
49052         futimens call.
49053         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49054         not success.
49055         [HAVE_FUTIMENS]: Use the same work-around, here.
49056
49057 2008-06-09  Jim Meyering  <meyering@redhat.com>
49058
49059         add more guards around definition of ACE_-related code
49060         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49061         ALLOW and ACE_OWNER are also defined.
49062
49063 2008-06-08  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/acl-internal.h: Add me as co-author.
49066         * lib/file-has-acl.c: Likewise.
49067         * lib/set-mode-acl.c: Likewise.
49068         * lib/copy-acl.c: Likewise.
49069
49070 2008-06-08  Bruno Haible  <bruno@clisp.org>
49071
49072         Add support for AIX ACLs.
49073         * lib/acl-internal.h (acl_nontrivial): New declaration.
49074         * lib/file-has-acl.c (acl_nontrivial): New function.
49075         (file_has_acl): Add implementation using AIX 4 ACL API.
49076         * lib/set-mode-acl.c (qset_acl): Likewise.
49077         * lib/copy-acl.c (qcopy_acl): Likewise.
49078
49079 2008-06-08  Bruno Haible  <bruno@clisp.org>
49080
49081         Add support for HP-UX ACLs.
49082         * lib/acl-internal.h (acl_nontrivial): New declaration.
49083         * lib/file-has-acl.c (acl_nontrivial): New function.
49084         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49085         * lib/set-mode-acl.c (qset_acl): Likewise.
49086         * lib/copy-acl.c (qcopy_acl): Likewise.
49087
49088 2008-06-08  Bruno Haible  <bruno@clisp.org>
49089
49090         Add support for Cygwin ACLs.
49091         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49092         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49093         the chmod_or_fchmod call.
49094         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49095
49096 2008-06-08  Bruno Haible  <bruno@clisp.org>
49097
49098         Fix bug with setuid modes in Solaris 10+ code.
49099         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49100         succeeded, when the mode contains some special bits.
49101
49102 2008-06-08  Bruno Haible  <bruno@clisp.org>
49103
49104         Add support for Solaris 7..10 ACLs.
49105         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49106         declarations.
49107         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49108         functions.
49109         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49110         * lib/set-mode-acl.c (qset_acl): Likewise.
49111         * lib/copy-acl.c (qcopy_acl): Likewise.
49112
49113 2008-06-08  Bruno Haible  <bruno@clisp.org>
49114
49115         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49116         declaration.
49117         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49118         (acl_access_nontrivial): Remove MacOS X case.
49119         (file_has_acl): Use acl_extended_nontrivial.
49120         * lib/copy-acl.c (qcopy_acl): Likewise.
49121
49122 2008-06-08  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49125
49126 2008-06-08  Jim Meyering  <meyering@redhat.com>
49127
49128         * modules/acl (Maintainer): Add Bruno Haible.
49129
49130 2008-06-07  Bruno Haible  <bruno@clisp.org>
49131
49132         Improve support for Tru64 ACLs.
49133         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49134         ACL on OSF/1.
49135
49136 2008-06-07  Bruno Haible  <bruno@clisp.org>
49137
49138         Add support for MacOS X ACLs.
49139         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49140         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49141         * lib/set-mode-acl.c (qset_acl): Likewise.
49142         * lib/copy-acl.c (qcopy_acl): Likewise.
49143
49144 2008-06-07  Bruno Haible  <bruno@clisp.org>
49145
49146         Fix memory leak introduced on 2008-05-22.
49147         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49148         use.
49149
49150 2008-06-07  Bruno Haible  <bruno@clisp.org>
49151
49152         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49153         to construct an empty ACL.
49154
49155 2008-06-07  Bruno Haible  <bruno@clisp.org>
49156
49157         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49158         precisely.
49159         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49160
49161 2008-06-07  Bruno Haible  <bruno@clisp.org>
49162
49163         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49164         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49165
49166 2008-06-07  Bruno Haible  <bruno@clisp.org>
49167
49168         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49169         regardless of POSIX.
49170         * doc/posix-functions/_longjmp.texi: Likewise.
49171         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49172         SystemV platform in this case.
49173
49174 2008-06-06  Eric Blake  <ebb9@byu.net>
49175
49176         Document abort() bugs.
49177         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49178
49179         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49180         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49181         sigsetjmp.
49182         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49183         siglongjmp, but only as a macro.
49184         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49185         is obsolete.
49186         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49187
49188         Tweak documentation to cover cygwin argz bugs.
49189         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49190         argz bug fix; no code change needed since no cygwin releases
49191         occurred between the last fix and the bug being tested.
49192         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49193         module and recently fixed cygwin bugs.
49194         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49195         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49196         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49197         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49198         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49199         Likewise.
49200         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49201         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49202         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49203         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49204         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49205         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49206         Likewise.
49207
49208         Avoid gcc warning on cygwin.
49209         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49210         !ACL_NO_TRIVIAL]: Avoid unused variable.
49211
49212 2008-06-05  Eric Blake  <ebb9@byu.net>
49213
49214         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49215         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49216         git-version-gen fails to come up with a version.
49217         Reported by Simon Josefsson.
49218
49219 2008-06-05  Jim Meyering  <meyering@redhat.com>
49220             Paul Eggert  <eggert@cs.ucla.edu>
49221
49222         utimens.c: work around a probable Linux kernel bug
49223         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49224         appears to be a kernel bug that causes utimensat to return 280
49225         instead of 0, indicating success.
49226
49227 2008-06-04  Bruno Haible  <bruno@clisp.org>
49228
49229         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49230         2008-06-01 commit.
49231
49232 2008-06-04  Bruno Haible  <bruno@clisp.org>
49233
49234         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49235         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49236         (file_has_acl): Use it. Save errno afterwards.
49237         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49238
49239 2008-06-03  Bruno Haible  <bruno@clisp.org>
49240
49241         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49242         draft code. Simplify #ifs.
49243         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49244         Put Solaris code after POSIX-draft code. Fix comments regarding
49245         Solaris 10, HP-UX. Mention Cygwin.
49246         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49247
49248 2008-06-03  Eric Blake  <ebb9@byu.net>
49249
49250         Provide fallback for older kernels.
49251         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49252         Provide runtime fallback if kernel lacks support.
49253         Reported by Mike Frysinger.
49254
49255 2008-06-02  Bruno Haible  <bruno@clisp.org>
49256
49257         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49258         it exists.
49259
49260 2008-06-02  Bruno Haible  <bruno@clisp.org>
49261
49262         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49263         * lib/copy-acl.c (qcopy_acl): Update comment.
49264
49265 2008-06-02  Bruno Haible  <bruno@clisp.org>
49266
49267         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49268         like ACL APIs.
49269
49270 2008-06-02  Bruno Haible  <bruno@clisp.org>
49271
49272         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49273         * tests/test-set-mode-acl.sh: Likewise.
49274         * tests/test-copy-acl.sh: Likewise.
49275         * tests/test-copy-file.sh: Likewise.
49276
49277 2008-06-02  Bruno Haible  <bruno@clisp.org>
49278
49279         * tests/test-file-has-acl.sh: Remove unused code.
49280
49281 2008-06-01  Bruno Haible  <bruno@clisp.org>
49282
49283         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49284         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49285         messages.
49286         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49287
49288 2008-06-01  Bruno Haible  <bruno@clisp.org>
49289
49290         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49291         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49292         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49293         APIs.
49294         * modules/acl-tests (configure.ac): Remove tests now contained in
49295         m4/acl.m4.
49296
49297 2008-06-02  Jim Meyering  <meyering@redhat.com>
49298
49299         announce-gen: use a better key-server host name
49300         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49301         it may be more consistently reliable.  Suggested by Werner Koch
49302         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49303
49304 2008-06-01  Bruno Haible  <bruno@clisp.org>
49305
49306         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49307         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49308
49309 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49310
49311         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49312
49313 2008-06-01  Bruno Haible  <bruno@clisp.org>
49314
49315         New ACL tests.
49316         * tests/test-file-has-acl.sh: New file.
49317         * tests/test-file-has-acl.c: New file.
49318         * tests/test-set-mode-acl.sh: New file.
49319         * tests/test-set-mode-acl.c: New file.
49320         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49321         * tests/test-copy-acl.c: New file.
49322         * modules/acl-tests: New file, based on modules/copy-file-tests.
49323         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49324         (Depends-on): Add acl-tests.
49325         (configure.ac): Remove checks.
49326         (Makefile.am): Don't create test-sameacls program here any more.
49327
49328 2008-06-01  Bruno Haible  <bruno@clisp.org>
49329
49330         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49331         * tests/test-sameacls.c: Include progname.h.
49332         (main): Invoke set_program_name. Portability fixes for MacOS X,
49333         Solaris, HP-UX.
49334
49335 2008-06-01  Bruno Haible  <bruno@clisp.org>
49336
49337         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49338         function.
49339         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49340
49341 2008-06-01  Bruno Haible  <bruno@clisp.org>
49342
49343         * modules/rpmatch (Depends-on): Add strdup.
49344
49345 2008-06-01  Bruno Haible  <bruno@clisp.org>
49346
49347         * lib/pipe.c: Include unistd-safer.h.
49348         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49349         * modules/pipe (Depends-on): Add unistd-safer.
49350
49351 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49352
49353         * modules/autobuild (configure.ac): Call AB_INIT.
49354
49355 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49356
49357         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49358         Suggested by Bruno Haible <bruno@clisp.org>.
49359
49360 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49361
49362         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49363         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49364         <bruno@clisp.org>.
49365
49366 2008-05-29  Eric Blake  <ebb9@byu.net>
49367
49368         Prefer new POSIX 200x interfaces over futimesat.
49369         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49370         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49371         when available.
49372         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49373
49374 2008-05-28  Bruno Haible  <bruno@clisp.org>
49375
49376         * modules/stpcpy (License): Change to LGPLv2+.
49377         Requested by David Lutterkort <dlutter@redhat.com>.
49378
49379 2008-05-27  Bruno Haible  <bruno@clisp.org>
49380
49381         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49382         current mingw.
49383         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49384
49385 2008-05-27  Bruno Haible  <bruno@clisp.org>
49386
49387         * modules/iconv_open (Link): New section, from module 'iconv'.
49388         * modules/striconv (Link): Likewise.
49389         * modules/striconveh (Link): Likewise.
49390         * modules/xstriconv (Link): Likewise.
49391         * modules/unicodeio (Link): Likewise.
49392         * modules/propername (Link): Likewise.
49393         Reported by Jim Meyering.
49394
49395 2008-05-26  Jim Meyering  <meyering@redhat.com>
49396
49397         sha256: do not artificially restrict buffer length to be < 2^32
49398         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49399         uint32_t to size_t.
49400         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49401         to match.
49402
49403         avoid unaligned access errors, e.g., on sparc
49404         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49405         direct access through a possibly-unaligned uint64* pointer.
49406         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49407         direct access through a possibly-unaligned uint32* pointer.
49408         Prompted by this patch from Tom "spot" Callaway:
49409         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49410
49411         sha512.c: fix typo in comment
49412         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49413
49414 2008-05-25  Bruno Haible  <bruno@clisp.org>
49415
49416         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49417         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49418         (Makefile.am): Update lib_SOURCES.
49419
49420 2008-05-25  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49423
49424 2008-05-25  Jim Meyering  <meyering@redhat.com>
49425
49426         useless-if-before-free: freed expr may have white-space differences
49427         * build-aux/useless-if-before-free: Recognize cases in which the
49428         freed expression differs from the tested one in embedded white
49429         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49430         $1 was used, so we can't make any regexp shy.  Improved tests now
49431         detect this.
49432
49433         useless-if-before-free: accept white space in the expression.
49434         * build-aux/useless-if-before-free: For now, any white space
49435         in the expression must be identical in the free argument.
49436
49437         useless-if-before-free: efficiency tweak
49438         * build-aux/useless-if-before-free: Make the expression-matching
49439         regexp "shy".
49440         Make the *outer* regexp shy, not the expr-matching one.
49441
49442         update code-in-comment to accept cast of free arg
49443         * build-aux/useless-if-before-free: Update regexp.
49444
49445 2008-05-25  Bruno Haible  <bruno@clisp.org>
49446
49447         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49448         * modules/copy-file-tests (Files, Makefile.am): Update.
49449         * tests/test-copy-file.c (func_test_copy): Update.
49450
49451 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49452
49453         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49454
49455 2008-05-23  Bruno Haible  <bruno@clisp.org>
49456
49457         Improve support for ACLs on OSF/1.
49458         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49459         Remove fallback for unknown flavors of ACLs.
49460
49461 2008-05-22  Bruno Haible  <bruno@clisp.org>
49462
49463         Add support for ACLs on OSF/1.
49464         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49465         replacements.
49466         (acl_free_text): New macro fallback.
49467         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49468         acl_free.
49469         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49470         acl_free_text function. Require AC_C_INLINE.
49471
49472 2008-05-22  Bruno Haible  <bruno@clisp.org>
49473
49474         Make copy_acl work on MacOS X 10.5.
49475         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49476         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49477         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49478         If MODE_INSIDE_ACL, don't assume that every system has the same text
49479         representation for ACLs as FreeBSD.
49480         * lib/copy-acl.c (copy_acl): Add support for platforms with
49481         !MODE_INSIDE_ACL.
49482         * lib/file-has-acl.c (file_has_acl): Likewise.
49483         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49484         FreeBSD, MacOS X, or IRIX, respectively.
49485
49486 2008-05-22  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/acl.h: Don't include <sys/acl.h>.
49489         (GETACLCNT): Move fallback to lib/acl-internal.h.
49490         * lib/acl-internal.h: Include <sys/acl.h> here.
49491         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49492
49493 2008-05-22  Bruno Haible  <bruno@clisp.org>
49494
49495         Split off copy_acl function to separate file.
49496         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49497         * lib/acl.c (copy_acl): Moved function to separate file.
49498         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49499         * modules/acl (Files): Add lib/copy-acl.c.
49500         (Makefiles.am): Augment lib_SOURCES.
49501
49502 2008-05-22  Bruno Haible  <bruno@clisp.org>
49503
49504         * modules/copy-file-tests: New file.
49505         * tests/test-copy-file.sh: New file.
49506         * tests/test-copy-file.c: New file.
49507         * tests/test-copy-file-sameacls.c: New file.
49508
49509 2008-05-22  Eric Blake  <ebb9@byu.net>
49510
49511         Avoid gcc warning.
49512         * tests/test-memcmp.c (main): Pass NULL indirectly.
49513
49514 2008-05-21  Bruno Haible  <bruno@clisp.org>
49515
49516         Add reference doc about ACLs.
49517         * doc/acl-resources.txt: New file.
49518         * doc/acl-cygwin.txt: New file.
49519
49520 2008-05-21  Bruno Haible  <bruno@clisp.org>
49521
49522         Avoid one more warning from gcc.
49523         * lib/vasnprintf.c (IF_LINT): Update comments.
49524         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49525
49526 2008-05-21  Jim Meyering  <meyering@redhat.com>
49527
49528         avoid a warning from gcc
49529         * lib/vasnprintf.c (IF_LINT): Define.
49530         (scale10_round_decimal_long_double):
49531         Use it to avoid a "may be used uninitialized" warning.
49532         (scale10_round_decimal_double): Likewise.
49533
49534 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49535
49536         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49537         declared.
49538
49539 2008-05-20  Bruno Haible  <bruno@clisp.org>
49540
49541         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49542         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49543
49544 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49545
49546         * modules/memcmp-tests: New file.
49547         * tests/test-memcmp.c: New file.
49548
49549 2008-05-19  Bruno Haible  <bruno@clisp.org>
49550
49551         * modules/propername (Notice, configure.ac): Put quoted "..." into
49552         --keyword option.
49553         * lib/propername.h: Update comments accordingly.
49554         Reported by Eric Blake.
49555
49556 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49557
49558         * modules/getpass-gnu (Depends-on): Add fseeko.
49559
49560 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49561
49562         * modules/base64-tests: New file.
49563
49564 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49565
49566         * lib/base64.c (base64_decode_ctx): If a decode context structure
49567         was passed in use it to ignore newlines.  If a context structure
49568         was _not_ passed in, continue to treat newlines as garbage (this
49569         is the historical behavior).  Formerly base64_decode.
49570         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49571         takes a decode context structure.
49572         * lib/base64.h (base64_decode): Macro for four-argument calls.
49573         (base64_decode_alloc): Likewise.
49574         * lib/base64.c (base64_decode_ctx): If a decode context structure
49575         was passed in use it to ignore newlines.  If a context structure
49576         was _not_ passed in, continue to treat newlines as garbage (this
49577         is the historical behavior).  Formerly base64_decode.
49578         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49579         takes a decode context structure.
49580         * lib/base64.h (base64_decode): Macro for four-argument calls.
49581         (base64_decode_alloc): Likewise.
49582
49583 2008-05-19  Jim Meyering  <meyering@redhat.com>
49584
49585         avoid a warning from gcc
49586         * lib/trim.c (IF_LINT): Define.
49587         (trim2): Use it to avoid a "may be used uninitialized" warning.
49588
49589         Fix doc typo.
49590         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49591
49592 2008-05-19  Bruno Haible  <bruno@clisp.org>
49593
49594         * doc/glibc-functions/getpass.texi: Document limits of other
49595         implementations.
49596
49597 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49598             Bruno Haible <bruno@clisp.org>
49599
49600         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49601
49602 2008-05-18  Bruno Haible  <bruno@clisp.org>
49603
49604         * modules/propername: New file, from GNU gettext.
49605         * lib/propername.h: New file, from GNU gettext.
49606         * lib/propername.c: New file, from GNU gettext.
49607         * MODULES.html.sh (Internationalization functions): Add propername.
49608
49609 2008-05-16  Jim Meyering  <meyering@redhat.com>
49610             Bruno Haible  <bruno@clisp.org>
49611
49612         Avoid some warnings from "gcc -Wshadow".
49613         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49614
49615 2008-05-15  Eric Blake  <ebb9@byu.net>
49616
49617         Extend previous patch to cygwin 1.7.0.
49618         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49619         fast implementation in cygwin >= 1.7.0.
49620         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49622
49623 2008-05-15  Bruno Haible  <bruno@clisp.org>
49624
49625         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49626         implementation in glibc >= 2.9.
49627         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49628         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49629
49630 2008-05-15  Bruno Haible  <bruno@clisp.org>
49631
49632         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49633         (Unicode string functions): Add unilbrk/*.
49634         Reported by Karl Berry.
49635
49636 2008-05-15  Eric Blake  <ebb9@byu.net>
49637
49638         Fix violation of <stdbool.h> replacement in regex.
49639         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49640         * lib/regexec.c (re_search_internal): Likewise.
49641         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49642
49643 2008-05-15  Jim Meyering  <meyering@redhat.com>
49644
49645         avoid distracting test output when git or cvs is not found
49646         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49647         * tests/test-vc-list-files-git.sh: Likewise.
49648
49649 2008-05-15  Eric Blake  <ebb9@byu.net>
49650
49651         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49652         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49653         glibc version.
49654         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49655         * doc/posix-functions/strstr.texi (strstr): Likewise.
49656         * lib/str-two-way.h (MAX): Sychronize with glibc.
49657
49658 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49659
49660         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49661         opr.ctx_type.
49662         (calc_first): Initialize constraint field.
49663         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49664         Fix grammar.
49665         (duplicate_node): Merge constraint field for all node types.
49666         (calc_eclosure_iter): Look at constraint field for all node types.
49667         * lib/regex_internal.c (create_cd_newstate): Don't look at
49668         opr.ctx_type.
49669
49670 2008-05-14  Bruno Haible  <bruno@clisp.org>
49671
49672         Help GCC to do better code generation.
49673         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49674         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49675         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49676         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49677         Declare with attribute 'malloc' if supported.
49678
49679 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49680
49681         use "echo STR|wc -c" rather than unportable "expr length STR"
49682         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49683         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49684
49685 2008-05-14  Jim Meyering  <meyering@redhat.com>
49686
49687         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49688         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49689         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49690         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49691         via Collin Lasse.
49692
49693 2008-05-14  Eric Blake  <ebb9@byu.net>
49694
49695         Avoid quadratic growth in gl_LIBSOURCES.
49696         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49697         Suggested by Bruno Haible.
49698
49699         Test xmemdup0.
49700         * modules/xmemdup0-tests: New file.
49701         * tests/test-xmemdup0.c: Likewise.
49702
49703 2008-05-13  Eric Blake  <ebb9@byu.net>
49704
49705         Split xmemdup0 into its own module.
49706         * modules/xmemdup0: New file.
49707         * lib/xmemdup0.h: Likewise.
49708         * lib/xmemdup0.c: Likewise.
49709         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49710         * lib/xalloc.h (xmemdup0): Remove.
49711         * lib/xmalloc.c (xmemdup0): Likewise.
49712
49713 2008-05-13  Eric Blake  <ebb9@byu.net>
49714             Bruno Haible  <bruno@clisp.org>
49715
49716         Reduce number of forks required during autoconf.
49717         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49718         and gl_LIBSOURCES_DIR.
49719         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49720         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49721         m4_syscmd per file.
49722         <m4_foreach_w>: Move...
49723         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49724
49725 2008-05-13  Eric Blake  <ebb9@byu.net>
49726
49727         * gnulib-tool: Fix various comment typos.
49728
49729 2008-05-12  Bruno Haible  <bruno@clisp.org>
49730
49731         Tailor the linebreaking algorithm.
49732         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49733
49734 2008-05-12  Bruno Haible  <bruno@clisp.org>
49735
49736         Update to Unicode 5.0.0.
49737         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49738         LBP_JV, LBP_JT. Redistribute values.
49739         (unilbrk_table): Change size.
49740         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49741         Unicode TR#14 rev. 22.
49742         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49743         LBP_JV, LBP_JT. Redistribute values.
49744         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49745         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49746         Update.
49747         * lib/unilbrk/lbrkprop1.h: Regenerated.
49748         * lib/unilbrk/lbrkprop2.h: Regenerated.
49749         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49750         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49751         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49752         Likewise.
49753         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49754         Likewise.
49755         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49756         result.
49757         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49758         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49759         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49760         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49761         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49762         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49763
49764 2008-05-11  Bruno Haible  <bruno@clisp.org>
49765
49766         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49767
49768 2008-05-11  Bruno Haible  <bruno@clisp.org>
49769
49770         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49771         * modules/unilbrk/gen-lbrk: New file.
49772
49773 2008-05-11  Bruno Haible  <bruno@clisp.org>
49774
49775         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49776         * m4/sha512.m4 (gl_SHA512): Likewise.
49777
49778 2008-05-11  Jim Meyering  <meyering@redhat.com>
49779
49780         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49781         * modules/crypto/sha256: New file.
49782         * modules/crypto/sha512: Likewise.
49783         * lib/sha256.c: Likewise.
49784         * lib/sha256.h: Likewise.
49785         * lib/sha512.c: Likewise.
49786         * lib/sha512.h: Likewise.
49787         * lib/u64.h: Likewise.
49788         * m4/sha256.m4: Likewise.
49789         * m4/sha512.m4: Likewise.
49790         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49791
49792 2008-05-10  Bruno Haible  <bruno@clisp.org>
49793
49794         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49795         (Input/Output <stdio.h>): Add xprintf.
49796         (Signal handling <signal.h>): Add strsignal.
49797         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49798         (Core language properties): Add func.
49799         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49800         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49801         strings.
49802         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49803         (Input/output): New section.
49804         (File system functions): Add openat-die, stat-macros.
49805         (Networking functions): Add sockets.
49806         (Unicode string functions): Add unictype/*.
49807         (Support for building libraries and executables): Add gperf.
49808         (Support for building documentation): Add agpl-3.0.
49809         (Misc): Add nocrash.
49810
49811 2008-05-10  Bruno Haible  <bruno@clisp.org>
49812
49813         * modules/unictype/gen-ctype: New file.
49814
49815 2008-05-10  Jim Meyering  <meyering@redhat.com>
49816
49817         Make chdir-safer.c more efficient on a system with no symlinks.
49818         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49819         also if ELOOP is zero.  Suggested by Bruno Haible.
49820
49821         Make chdir-safer.c slightly safer.
49822         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49823         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49824
49825         Avoid compile failure on systems without ELOOP (like mingw).
49826         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49827         Reported by Bruno Haible.
49828
49829 2008-05-10  Bruno Haible  <bruno@clisp.org>
49830
49831         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49832         (is_utf8_encoding): Use a case-insensitive comparison.
49833         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49834         streq.
49835
49836 2008-05-10  Bruno Haible  <bruno@clisp.org>
49837
49838         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49839         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49840         * lib/unilbrk/ulc-common.h (iconv_string_length,
49841         iconv_string_keeping_offsets): Remove declarations.
49842         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49843         Don't include <iconv.h>, streq.h, xsize.h.
49844         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49845         conversion.
49846         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49847         <iconv.h>, streq.h, xsize.h.
49848         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49849         conversion.
49850         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49851         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49852         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49853         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49854
49855 2008-05-10  Bruno Haible  <bruno@clisp.org>
49856
49857         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49858         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49859
49860         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49861         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49862
49863         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49864         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49865
49866         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49867         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49868
49869         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49870         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49871
49872         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49873         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49874
49875         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49876         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49877
49878         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49879         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49880
49881 2008-05-10  Bruno Haible  <bruno@clisp.org>
49882
49883         Split up 'linebreak' module.
49884         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49885         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49886         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49887         modifications.
49888         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49889         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49890         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49891         lib/linebreak.c.
49892         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49893         lib/linebreak.c.
49894         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49895         lib/linebreak.c.
49896         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49897         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49898         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49899         lib/linebreak.c.
49900         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49901         lib/linebreak.c.
49902         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49903         lib/linebreak.c.
49904         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49905         lib/linebreak.c.
49906         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49907         lib/linebreak.c.
49908         * modules/unilbrk/base: New file.
49909         * modules/unilbrk/tables: New file.
49910         * modules/unilbrk/u8-possible-linebreaks: New file.
49911         * modules/unilbrk/u16-possible-linebreaks: New file.
49912         * modules/unilbrk/u32-possible-linebreaks: New file.
49913         * modules/unilbrk/ulc-common: New file.
49914         * modules/unilbrk/ulc-possible-linebreaks: New file.
49915         * modules/unilbrk/u8-width-linebreaks: New file.
49916         * modules/unilbrk/u16-width-linebreaks: New file.
49917         * modules/unilbrk/u32-width-linebreaks: New file.
49918         * modules/unilbrk/ulc-width-linebreaks: New file.
49919         * lib/linebreak.h: Remove file.
49920         * lib/linebreak.c: Remove file.
49921         * m4/linebreak.m4: Remove file.
49922         * modules/linebreak: Remove file.
49923         * NEWS: Mention the changes.
49924
49925 2008-05-09  Eric Blake  <ebb9@byu.net>
49926
49927         Add xmemdup0.
49928         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49929         implementation.
49930         * lib/xmalloc.c (xmemdup0): New C implementation.
49931
49932 2008-05-08  Bruno Haible  <bruno@clisp.org>
49933
49934         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49935
49936 2008-05-07  Eric Blake  <ebb9@byu.net>
49937
49938         Support cross-compilation of <wctype.h>.
49939         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49940         AC_CACHE_CHECK.
49941
49942 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49943
49944         * build-aux/vc-list-files: Add support for bzr.
49945
49946 2008-05-03  Jim Meyering  <meyering@redhat.com>
49947
49948         avoid failed assertion with tight malloc
49949         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49950
49951 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49952
49953         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49954         are needed from arpa/inet.h.
49955         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49956         Reported by Bruno Haible.
49957
49958 2008-05-02  Jim Meyering  <meyering@redhat.com>
49959
49960         avoid compilation error on FreeBSD 6
49961         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49962
49963 2008-05-01  Jim Meyering  <meyering@redhat.com>
49964
49965         useless-if-before-free: correct --help's exit status description
49966         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49967         for one or more matches, etc.  Reported by Bruno Haible.
49968
49969         vc-list-files: make the stand-alone gnulib test work
49970         * modules/vc-list-files-tests (configure.ac):
49971         Define and AC_SUBST abs_aux_dir.
49972         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49973         $(abs_top_srcdir) to each script and having each of them
49974         duplicate the work of setting PATH, set PATH here, using
49975         the new variable, abs_aux_dir instead.
49976         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49977         * tests/test-vc-list-files-git.sh: Likewise.
49978         Reported by Bruno Haible.
49979
49980 2008-05-01  Bruno Haible  <bruno@clisp.org>
49981
49982         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49983         reallocation. Rename 'done' to 'found_delimiter'.
49984
49985 2008-05-01  Jim Meyering  <meyering@redhat.com>
49986
49987         vc-list-files: accommodate /bin/sh like the one from Solaris 10
49988         * build-aux/vc-list-files: Use `...`, not $(...).
49989
49990 2008-04-30  Jim Meyering  <meyering@redhat.com>
49991
49992         add tests for vc-list-files
49993         * modules/vc-list-files-tests: New module.
49994         * tests/test-vc-list-files-cvs.sh: New file.
49995         * tests/test-vc-list-files-git.sh: New file.
49996
49997         avoid a warning from gcc
49998         * lib/getndelim2.c (IF_LINT): Define.
49999         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50000
50001         vc-list-files: work properly with build-aux/cvsu, too
50002         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50003         to all cvs-based clauses.
50004
50005         vc-list-files: work properly in the CVS+awk case, too
50006         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50007
50008         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50009         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50010         take more than one file argument, so .  Add quotes, just in case $dir
50011         ever contains a shell meta-character.  Prompted by Soren Hansen in
50012         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50013
50014 2008-04-29  Eric Blake  <ebb9@byu.net>
50015
50016         Optimize getndelim2 to use block operations when possible.
50017         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50018         freadseek, and memchr2.
50019         * lib/getndelim2.c (getndelim2): Use them for block reads.
50020
50021 2008-04-29  Bruno Haible  <bruno@clisp.org>
50022
50023         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50024         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50025         * modules/inet_ntop (Depends-on): Add extensions.
50026         * modules/inet_pton (Depends-on): Likewise.
50027         Reported by Simon Josefsson.
50028
50029 2008-04-29  Jim Meyering  <meyering@redhat.com>
50030
50031         When the is more than one match in a block, match all of them.
50032         * build-aux/useless-if-before-free: Iterate through each block
50033         until there are no more matches.
50034
50035         Fix broken useless-if-before-free script.
50036         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50037         the expression to match cast of argument to free-like function.
50038
50039 2008-04-29  Eric Blake  <ebb9@byu.net>
50040
50041         Use new header.
50042         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50043
50044 2008-04-29  Jim Meyering  <meyering@redhat.com>
50045
50046         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50047         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50048         by gnulib to exist and to declare e.g., inet_ntop.
50049         Don't include "inet_ntop.h", now removed.
50050
50051         * m4/arpa_inet_h.m4: Remove trailing blanks.
50052
50053 2008-04-29  Eric Blake  <ebb9@byu.net>
50054
50055         Silence valgrind on safe reads beyond potential array bounds.
50056         * lib/rawmemchr.valgrind: New file.
50057         * lib/strchrnul.valgrind: Likewise.
50058         * modules/rawmemchr (Files): Distribute new file.
50059         * modules/strchrnul (Files): Likewise.
50060         Suggested by Bruno Haible.
50061
50062 2008-04-29  Bruno Haible  <bruno@clisp.org>
50063
50064         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50065         (inet_ntop, inet_pton): Change portability warning's wording.
50066         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50067         Invoke gl_CHECK_NEXT_HEADERS.
50068         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50069         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50070         set ARPA_INET_H.
50071         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50072         * modules/arpa_inet (Description): No longer only for systems that
50073         lack it.
50074         (Depends-on): Add include_next.
50075         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50076         HAVE_ARPA_INET_H.
50077
50078 2008-04-29  Jim Meyering  <meyering@redhat.com>
50079
50080         * modules/mkdir (License): Re-license as LGPLv2+.
50081
50082 2008-04-29  Bruno Haible  <bruno@clisp.org>
50083
50084         * modules/rawmemchr (Maintainer): Set to Eric.
50085         * modules/strchrnul (Maintainer): Likewise.
50086
50087 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50088
50089         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50090         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50091
50092         * modules/arpa_inet (arpa/inet.h): Use them.
50093
50094 2008-04-28  Eric Blake  <ebb9@byu.net>
50095
50096         Test getndelim2.
50097         * modules/getndelim2-tests: New file.
50098         * tests/test-getndelim2.c: Likewise.
50099         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50100         stream.
50101         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50102
50103         * MODULES.html.sh: Document new module.
50104
50105 2008-04-20  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/c-stack.c (die): Use raise.
50108         * modules/c-stack (Depends-on): Add raise.
50109
50110 2008-04-28  Bruno Haible  <bruno@clisp.org>
50111
50112         Expect rpmatch to be declared.
50113         * lib/yesno.c (rpmatch): Remove declaration.
50114
50115         Declare rpmatch.
50116         * lib/stdlib.in.h (rpmatch): New declaration.
50117         * lib/rpmatch.c: Include <stdlib.h> first.
50118         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50119         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50121         HAVE_RPMATCH.
50122         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50123         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50124         (Include): Set to <stdlib.h>.
50125         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50126         HAVE_RPMATCH.
50127         * NEWS: Document the change.
50128
50129 2008-04-28  Bruno Haible  <bruno@clisp.org>
50130
50131         Change rpmatch to use nl_langinfo when appropriate.
50132         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50133         (N_): New macro.
50134         (localized_pattern): New function/macro.
50135         (try): Remove match, nomatch arguments. Copy the pattern into safe
50136         memory before caching it.
50137         (rpmatch): Use localized_pattern. Add translator comments.
50138         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50139         Suggested by Eric Blake.
50140         * modules/rpmatch (Depends-on): Add stdbool.
50141
50142 2008-04-28  Eric Blake  <ebb9@byu.net>
50143
50144         Add rawmemchr module, matching glibc.
50145         * modules/string (Makefile.am): New indicator.
50146         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50147         * lib/string.in.h (rawmemchr): Declare when appropriate.
50148         * modules/rawmemchr: New file.
50149         * m4/rawmemchr.m4: Likewise.
50150         * lib/rawmemchr.c: Likewise.
50151         * modules/rawmemchr-tests: Likewise.
50152         * tests/test-rawmemchr.c: Likewise.
50153         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50154         module.
50155         * modules/strchrnul (Depends-on): Add rawmemchr.
50156         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50157
50158         Whitespace cleanup.
50159         * tests/test-strchrnul.c: Reindent.
50160         * lib/strchrnul.c: Likewise.
50161
50162         Optimize and test strchrnul.
50163         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50164         * modules/strchrnul-tests: New file.
50165         * tests/test-strchrnul.c: Likewise.
50166
50167         Remove intprops dependency.
50168         * modules/memchr (Depends-on): Remove intprops.
50169         * modules/memrchr (Depends-on): Likewise.
50170         * modules/memchr2 (Depends-on): Likewise.
50171         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50172         * lib/memrchr.c (__memrchr): Likewise.
50173         * lib/memrchr2.c (memchr2): Likewise.
50174         Reported by Simon Josefsson.
50175
50176 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50177
50178         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50179         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50180
50181 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50182
50183         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50184
50185         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50186
50187         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50188
50189         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50190         declarations.
50191         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50192
50193         * m4/inet_pton.m4: Don't check for header files.
50194
50195         * m4/inet_ntop.m4: Don't check for header files.
50196
50197 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50198
50199         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50200         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50201         trigger for cygwin).
50202         Reported by Bruno Haible  <bruno@clisp.org>.
50203
50204 2008-04-28  Bruno Haible  <bruno@clisp.org>
50205
50206         * doc/posix-functions/strdup.texi: Mention mingw problem.
50207
50208 2008-04-27  Bruno Haible  <bruno@clisp.org>
50209
50210         * modules/stat-time-tests (Depends-on): Add sleep.
50211         * tests/test-stat-time.c (force_unlink): New function.
50212         (cleanup): Use it.
50213         (test_mtime): Remove the ctime related tests.
50214         (test_ctime): New function, containing the ctime related tests.
50215         (main): Call test_ctime, except on native Windows platforms.
50216
50217 2008-04-27  Bruno Haible  <bruno@clisp.org>
50218
50219         * lib/rpmatch.c (rpmatch): Add some comments.
50220         Reported by James Youngman <jay@gnu.org>.
50221
50222 2008-04-27  Bruno Haible  <bruno@clisp.org>
50223
50224         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50225         quiet NaNs.
50226
50227 2008-04-27  Bruno Haible  <bruno@clisp.org>
50228
50229         Make test-yesno.sh work on mingw.
50230         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50231         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50232         (main): Set stdin to binary mode.
50233         * modules/yesno-tests (Depends-on): Add binary-io.
50234
50235 2008-04-27  Bruno Haible  <bruno@clisp.org>
50236
50237         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50238         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50239         argument that lie outside the IEEE 854 domain.
50240         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50241         (gl_ISFINITE): Use it.
50242         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50243
50244 2008-04-27  Bruno Haible  <bruno@clisp.org>
50245
50246         Allow local renaming in config.h.
50247         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50248
50249 2008-04-27  Bruno Haible  <bruno@clisp.org>
50250
50251         * lib/memchr.c (__memchr): Change type of 'i'.
50252         * lib/memchr2.c (memchr2): Likewise.
50253
50254 2008-04-26  Eric Blake  <ebb9@byu.net>
50255         and Bruno Haible  <bruno@clisp.org>
50256
50257         Optimize and test memrchr.
50258         * modules/memrchr (Depends-on): Add intprops.
50259         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50260         * modules/memrchr-tests: New file.
50261         * tests/test-memrchr.c: New file.
50262
50263 2008-04-26  Bruno Haible  <bruno@clisp.org>
50264
50265         Add tentative support for DragonFly BSD.
50266         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50267         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50268         fp.
50269         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50270         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50271         * lib/fpurge.c (fpurge): Likewise.
50272         * lib/freadable.c (freaadable): Likewise.
50273         * lib/freadahead.c (freadahead): Likewise.
50274         * lib/freading.c (freading): Likewise.
50275         * lib/freadptr.c (freadptr): Likewise.
50276         * lib/freadseek.c (freadptrinc): Likewise.
50277         * lib/fseeko.c (fseeko): Likewise.
50278         * lib/fseterr.c (fseterr): Likewise.
50279         * lib/fwritable.c (fwritable): Likewise.
50280         * lib/fwriting.c (fwriting): Likewise.
50281
50282 2008-04-26  Bruno Haible  <bruno@clisp.org>
50283
50284         * lib/stdio-impl.h: New file.
50285         * lib/fbufmode.c: Include stdio-impl.h.
50286         (fbufmode): Use fp_, remove redundant #defines.
50287         * lib/fflush.c: Include stdio-impl.h.
50288         (clear_ungetc_buffer): Remove redundant #defines.
50289         * lib/fpurge.c: Include stdio-impl.h.
50290         (fpurge): Remove redundant #defines.
50291         * lib/freadable.c: Include stdio-impl.h.
50292         (freadable): Remove redundant #defines.
50293         * lib/freadahead.c: Include stdio-impl.h.
50294         (freadahead): Remove redundant #defines.
50295         * lib/freading.c: Include stdio-impl.h.
50296         (freading): Remove redundant #defines.
50297         * lib/freadptr.c: Include stdio-impl.h.
50298         (freadptr): Remove redundant #defines.
50299         * lib/freadseek.c: Include stdio-impl.h.
50300         (freadptrinc): Remove redundant #defines.
50301         * lib/fseeko.c: Include stdio-impl.h.
50302         (rpl_fseeko): Remove redundant #defines.
50303         * lib/fseterr.c: Include stdio-impl.h.
50304         (fseterr): Remove redundant #defines.
50305         * lib/fwritable.c: Include stdio-impl.h.
50306         (fwritable: Remove redundant #defines.
50307         * lib/fwriting.c: Include stdio-impl.h.
50308         (fwriting): Remove redundant #defines.
50309         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50310         * modules/fflush (Files): Likewise.
50311         * modules/fpurge (Files): Likewise.
50312         * modules/freadable (Files): Likewise.
50313         * modules/freadahead (Files): Likewise.
50314         * modules/freading (Files): Likewise.
50315         * modules/freadptr (Files): Likewise.
50316         * modules/freadseek (Files): Likewise.
50317         * modules/fseeko (Files): Likewise.
50318         * modules/fseterr (Files): Likewise.
50319         * modules/fwritable (Files): Likewise.
50320         * modules/fwriting (Files): Likewise.
50321
50322 2008-04-26  Bruno Haible  <bruno@clisp.org>
50323
50324         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50325         restore_seek_optimization, update_fpos_cache): New functions, extracted
50326         from rpl_fflush.
50327         (rpl_fflush): Use them.
50328         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50329         (gl_REPLACE_FFLUSH): Use it.
50330
50331 2008-04-26  Bruno Haible  <bruno@clisp.org>
50332
50333         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50334         on Solaris.
50335         * tests/test-xstrtoimax.sh: Likewise.
50336         * tests/test-xstrtoumax.sh: Likewise.
50337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50338
50339 2008-04-26  Bruno Haible  <bruno@clisp.org>
50340
50341         * modules/memchr-tests: New file.
50342         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50343
50344 2008-04-26  Eric Blake  <ebb9@byu.net>
50345             Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/memchr.c: Include intprops.h.
50348         (__memchr): Optimize parallel detection of matching bytes. Rename local
50349         variables. Add explanatory comments.
50350
50351 2008-04-26  Bruno Haible  <bruno@clisp.org>
50352
50353         Fix module 'memchr', broken since 2000-10-28.
50354         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50355
50356 2008-04-26  Bruno Haible  <bruno@clisp.org>
50357
50358         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50359         comments.
50360
50361 2008-04-25  Eric Blake  <ebb9@byu.net>
50362
50363         Use native fstatat on cygwin 1.7.0.
50364         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50365         first.
50366
50367 2008-04-23  Eric Blake  <ebb9@byu.net>
50368
50369         Improve memchr2 performance.
50370         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50371         NUL bytes.
50372         * modules/memchr2 (Depends-on): Use intprops.h.
50373
50374 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50375
50376         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50377         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50378         <blp@cs.stanford.edu>.
50379
50380 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50381
50382         * lib/arpa_inet.in.h: New file.
50383
50384         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50385         (Makefile.am): Sed in substitute header file.
50386
50387         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50388         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50389
50390         * modules/inet_ntop (configure.ac): Use
50391         gl_ARPA_INET_MODULE_INDICATOR.
50392
50393         * modules/inet_pton (configure.ac): Use
50394         gl_ARPA_INET_MODULE_INDICATOR.
50395
50396 2008-04-22  Jim Meyering  <meyering@redhat.com>
50397
50398         * modules/verify (License): Re-license as LGPLv2+.
50399
50400 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50401
50402         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50403         parameter to void* as per POSIX standard (MinGW uses char*).
50404
50405 2008-04-21  Bruno Haible  <bruno@clisp.org>
50406
50407         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50408         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50409         Define to replacements if REPLACE_ISWCNTRL is 1.
50410         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50411         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50412         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50413         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50414         what it fixes.
50415         * doc/posix-functions/iswalpha.texi: Likewise.
50416         * doc/posix-functions/iswblank.texi: Likewise.
50417         * doc/posix-functions/iswcntrl.texi: Likewise.
50418         * doc/posix-functions/iswdigit.texi: Likewise.
50419         * doc/posix-functions/iswgraph.texi: Likewise.
50420         * doc/posix-functions/iswlower.texi: Likewise.
50421         * doc/posix-functions/iswprint.texi: Likewise.
50422         * doc/posix-functions/iswpunct.texi: Likewise.
50423         * doc/posix-functions/iswspace.texi: Likewise.
50424         * doc/posix-functions/iswupper.texi: Likewise.
50425         * doc/posix-functions/iswxdigit.texi: Likewise.
50426         Reported by Alain Guibert.
50427
50428 2008-04-21  Bruno Haible  <bruno@clisp.org>
50429
50430         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50431         Patch by Alain Guibert.
50432
50433 2008-04-21  Bruno Haible  <bruno@clisp.org>
50434
50435         Fix test failures on mingw.
50436         * tests/test-xstrtol.c (print_no_progname): New function.
50437         (main): Install it in error_print_progname hook.
50438         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50439         * tests/test-xstrtoimax.sh: Likewise.
50440         * tests/test-xstrtoumax.sh: Likewise.
50441
50442 2008-04-21  Bruno Haible  <bruno@clisp.org>
50443
50444         Fix test failure on mingw.
50445         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50446
50447 2008-04-21  Bruno Haible  <bruno@clisp.org>
50448
50449         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50450         Actually assign a value.
50451
50452 2008-04-20  Bruno Haible  <bruno@clisp.org>
50453
50454         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50455         take 2.
50456         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50457         'canonicalize-lgpl' module is also used.
50458         * lib/canonicalize-lgpl.c: Undo last change.
50459         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50460
50461 2008-04-20  Bruno Haible  <bruno@clisp.org>
50462
50463         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50464         config.h. Provide _mkdir based fallback for mingw.
50465         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50466         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50467         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50468         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50469         rather than defining mkdir in config.h.
50470         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50471         (gl_SYS_STAT_H_DEFAULTS): New macro.
50472         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50473         HAVE_IO_H any more.
50474         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50475         HAVE_DECL_MKDIR and HAVE_IO_H.
50476
50477 2008-04-20  Bruno Haible  <bruno@clisp.org>
50478
50479         * lib/isapipe.c: Port to native Windows platforms.
50480
50481 2008-04-20  Bruno Haible  <bruno@clisp.org>
50482
50483         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50484
50485 2008-04-21  Eric Blake  <ebb9@byu.net>
50486
50487         Work around preprocessors that don't handle UINTMAX_MAX.
50488         * lib/memchr2.c (memchr2): Avoid embedded #if.
50489         Reported by Alain Guibert, fix suggested by Bruno Haible.
50490
50491 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50492
50493         * doc/posix-functions/strftime.texi (strftime): Explain better
50494         Windows incompatibility.  Suggested by Micah Cowan
50495         <micah@cowan.name>.
50496
50497 2008-04-20  Bruno Haible  <bruno@clisp.org>
50498
50499         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50500         unistr/u8-mblen.
50501
50502 2008-04-20  Bruno Haible  <bruno@clisp.org>
50503
50504         Fix test failure on platforms with non-GNU iconv.
50505         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50506         (U_TO_U8): Use it, rather than u16_to_u8.
50507         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50508         units at the end of the input string.
50509         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50510
50511 2008-04-20  Bruno Haible  <bruno@clisp.org>
50512
50513         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50514         when the resulting length is 0.
50515         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50516
50517 2008-04-20  Bruno Haible  <bruno@clisp.org>
50518
50519         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50520         works.
50521         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50522
50523 2008-04-20  Bruno Haible  <bruno@clisp.org>
50524
50525         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50526         * modules/tsearch-tests (configure.ac): Test for initstate function.
50527
50528 2008-04-20  Bruno Haible  <bruno@clisp.org>
50529
50530         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50531         for nlink_t if missing.
50532         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50533
50534 2008-04-19  Bruno Haible  <bruno@clisp.org>
50535
50536         Work around snprintf bug on Linux libc5.
50537         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50538         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50539         gl_SNPRINTF_SIZE1.
50540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50541         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50542         that test failed.
50543         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50544         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50545         * modules/snprintf (Files): Add m4/printf.m4.
50546         * modules/vsnprintf (Files): Likewise.
50547         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50548         * doc/posix-functions/vsnprintf.texi: Likewise.
50549
50550 2008-04-19  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50553         from 0.0058 to less than 10^-7.
50554
50555 2008-04-19  Bruno Haible  <bruno@clisp.org>
50556
50557         Fix rounding when a precision is given.
50558         * lib/vasnprintf.c (is_borderline): New function.
50559         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50560         9...9x.
50561         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50562         %e, %g.
50563         * tests/test-vasprintf-posix.c (test_function): Likewise.
50564         * tests/test-snprintf-posix.h (test_function): Likewise.
50565         * tests/test-sprintf-posix.h (test_function): Likewise.
50566         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50567         * tests/test-printf-posix.h (test_function): Likewise.
50568         * tests/test-printf-posix.output: Update.
50569         Reported by John Darrington <john@darrington.wattle.id.au> via
50570         Ben Pfaff <blp@cs.stanford.edu>.
50571
50572 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50573
50574         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50575         Suggested by Bruno Haible <bruno@clisp.org>.
50576
50577 2008-04-17  Bruno Haible  <bruno@clisp.org>
50578
50579         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50580         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50581         implementation.
50582         Patch by Bruce Merry <bmerry@gmail.com>.
50583
50584 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50585
50586         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50587         doesn't work under Windows.
50588
50589 2008-04-16  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50592         New macros.
50593         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50594         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50595         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50596         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50597         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50598         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50599         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50600         macros.
50601         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50602         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50603         Northern Sotho, Uighur.
50604
50605 2008-04-16  Bruno Haible  <bruno@clisp.org>
50606
50607         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50608         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50609         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50610         Reported by Daniel Bergström <daniel@octocode.com>.
50611
50612 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50613             Bruno Haible  <bruno@clisp.org>
50614
50615         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50616         function.
50617         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50618         New functions, mostly extracted from gl_locale_name_default.
50619         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50620
50621 2008-04-16  Eric Blake  <ebb9@byu.net>
50622
50623         Adjust strtod detection to catch glibc 2.7 bug.
50624         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50625         Reported by John Gatewood Ham.
50626
50627 2008-04-16  Bruno Haible  <bruno@clisp.org>
50628
50629         Add tentative support for Linux libc5.
50630         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50631         * lib/fpurge.c (fpurge): Likewise.
50632         * lib/freadable.c (freadable): Likewise.
50633         * lib/freadahead.c (freadahead): Likewise.
50634         * lib/freading.c (freading): Likewise.
50635         * lib/freadptr.c (freadptr): Likewise.
50636         * lib/freadseek.c (freadptrinc): Likewise.
50637         * lib/fseeko.c (rpl_fseeko): Likewise.
50638         * lib/fseterr.c (fseterr): Likewise.
50639         * lib/fwritable.c (fwritable): Likewise.
50640         * lib/fwriting.c (fwriting): Likewise.
50641         Reported by Alain Guibert <alguibert+bts@free.fr>.
50642
50643 2008-04-15  Bruno Haible  <bruno@clisp.org>
50644
50645         * modules/mathl (configure.ac): Define module indicator.
50646
50647 2008-04-15  Bruno Haible  <bruno@clisp.org>
50648
50649         * lib/logl.c (logl): Remove unused variables.
50650
50651 2008-04-15  Bruno Haible  <bruno@clisp.org>
50652
50653         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50654         fails.
50655
50656 2008-04-15  Bruno Haible  <bruno@clisp.org>
50657
50658         * lib/trim.c (trim2): Fix argument of isspace() macro.
50659
50660 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50661
50662         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50663         to 0.
50664         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50665
50666 2008-04-14  Bruno Haible  <bruno@clisp.org>
50667
50668         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50669         AC_LANG_PROGRAM argument.
50670         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50671         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50673         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50674         * m4/math_h.m4 (gl_MATH_H): Likewise.
50675         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50676         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50677         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50678         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50679         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50680         * m4/regex.m4 (gl_REGEX): Likewise.
50681         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50682         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50684         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50685         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50686         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50688         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50689
50690 2008-04-14  Jim Meyering  <meyering@redhat.com>
50691
50692         test-strtod: fix typos: s/abs/fabs/
50693         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50694
50695 2008-04-13  Bruno Haible  <bruno@clisp.org>
50696
50697         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50698         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50699         module is also used and while not building the reloc-wrapper.
50700
50701 2008-04-13  Bruno Haible  <bruno@clisp.org>
50702
50703         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50704
50705 2008-04-13  Bruno Haible  <bruno@clisp.org>
50706
50707         Fix AIX compilation failure introduced on 2008-04-02.
50708         * tests/test-frexp.c (exp): Undefine before redefining.
50709         * tests/test-frexpl.c (exp): Likewise.
50710
50711 2008-04-13  Bruno Haible  <bruno@clisp.org>
50712
50713         Work around a HP-UX stdio bug.
50714         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50715         * tests/test-ftello.c (main): Likewise.
50716         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50717         * doc/posix-functions/ftello.texi: Likewise.
50718
50719 2008-04-13  Bruno Haible  <bruno@clisp.org>
50720
50721         Make test-signbit pass on HP-UX/hppa.
50722         * tests/test-signbit.c (minus_zerol): New variable.
50723         (test_signbitl): Use it.
50724
50725 2008-04-13  Bruno Haible  <bruno@clisp.org>
50726
50727         Make truncl work on OSF/1 4.0.
50728         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50729         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50730         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50732         HAVE_DECL_TRUNCL.
50733         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50734         HAVE_DECL_TRUNCL.
50735         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50736
50737 2008-04-13  Bruno Haible  <bruno@clisp.org>
50738
50739         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50740
50741 2008-04-13  Bruno Haible  <bruno@clisp.org>
50742
50743         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50744         expression, so as to avoid HP-UX 11 cc compiler bug.
50745
50746 2008-04-13  Bruno Haible  <bruno@clisp.org>
50747
50748         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50749
50750 2008-04-13  Bruno Haible  <bruno@clisp.org>
50751
50752         * lib/git-merge-changelog.c: Remove empty declaration outside of
50753         functions.
50754
50755 2008-04-13  Bruno Haible  <bruno@clisp.org>
50756
50757         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50758
50759 2008-04-13  Bruno Haible  <bruno@clisp.org>
50760
50761         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50762         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50763         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50764         also if it exists but lacks definitions of the SHUT_* macros.
50765         * modules/sys_socket (Description): Update.
50766         Reported by Elbert Pol <e.pol@chello.nl>.
50767
50768 2008-04-13  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/localcharset.c (OS2): Don't redefine if already defined.
50771         Reported by Elbert Pol <e.pol@chello.nl>.
50772
50773 2008-04-13  Bruno Haible  <bruno@clisp.org>
50774
50775         * lib/binary-io.h [__EMX__]: Include <io.h>.
50776         Reported by Elbert Pol <e.pol@chello.nl>.
50777
50778 2008-04-12  Bruno Haible  <bruno@clisp.org>
50779
50780         * lib/fpucw.h: Enable the definitions also for x86_64.
50781         Needed for NetBSD/x86_64.
50782         Reported by Thomas Klausner <tk@giga.or.at>.
50783
50784 2008-04-12  Bruno Haible  <bruno@clisp.org>
50785
50786         * tests/test-strtod.c: Include isnand.h.
50787         (main): Use isnand instead of isnan.
50788         Reported by Jim Meyering.
50789
50790 2008-04-12  Bruno Haible  <bruno@clisp.org>
50791
50792         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50793         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50794
50795 2008-04-12  Jim Meyering  <meyering@redhat.com>
50796
50797         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50798
50799 2008-04-12  Bruno Haible  <bruno@clisp.org>
50800
50801         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50802         Reported by Elbert Pol <e.pol@chello.nl>.
50803
50804 2008-04-12  Eric Blake  <ebb9@byu.net>
50805
50806         Work around Solaris 10 math.h bug.
50807         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50808         (gl_MATH_H_DEFAULTS): Set up default.
50809         * modules/math (Makefile.am): Replace new indicators.
50810         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50811         * tests/test-math.c (main): Test this.
50812         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50813         * doc/posix-headers/math.texi (math.h): Mention bug.
50814         Reported by Nelson H. F. Beebe and Jim Meyering.
50815
50816 2008-04-11  Bruno Haible  <bruno@clisp.org>
50817
50818         Adapt to future versions of Apple GCC.
50819         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50820         Reported by Peter O'Gorman <peter@pogma.com>.
50821
50822 2008-04-11  Bruno Haible  <bruno@clisp.org>
50823
50824         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50825
50826 2008-04-11  Bruno Haible  <bruno@clisp.org>
50827
50828         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50829
50830         * modules/getaddrinfo-tests (Makefile.am): Define
50831         test_getaddrinfo_LDADD.
50832
50833 2008-04-11  Bruno Haible  <bruno@clisp.org>
50834
50835         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50836         (init): Fix syntax error.
50837         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50838         is declared.
50839
50840 2008-04-11  Bruno Haible  <bruno@clisp.org>
50841
50842         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50843         * modules/glob (Depends-on): Add stdbool.
50844
50845 2008-04-11  Bruno Haible  <bruno@clisp.org>
50846
50847         * lib/trim.c: Include <string.h>.
50848
50849 2008-04-11  Eric Blake  <ebb9@byu.net>
50850
50851         Avoid compile failure on OS/2.
50852         * lib/regex_internal.h (internal_function): Disable optimization
50853         on OS/2 (__EMX__), where it caused compiler error.
50854         Reported by Elbert Pol.
50855
50856 2008-04-11  Bruno Haible  <bruno@clisp.org>
50857
50858         Flush the standard error stream before aborting. Needed on mingw.
50859         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50860         * tests/test-array_list.c (ASSERT): Likewise.
50861         * tests/test-array_oset.c (ASSERT): Likewise.
50862         * tests/test-avltree_list.c (ASSERT): Likewise.
50863         * tests/test-avltree_oset.c (ASSERT): Likewise.
50864         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50865         * tests/test-binary-io.c (ASSERT): Likewise.
50866         * tests/test-byteswap.c (ASSERT): Likewise.
50867         * tests/test-c-ctype.c (ASSERT): Likewise.
50868         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50869         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50870         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50871         * tests/test-c-strstr.c (ASSERT): Likewise.
50872         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50873         * tests/test-canonicalize.c (ASSERT): Likewise.
50874         * tests/test-carray_list.c (ASSERT): Likewise.
50875         * tests/test-ceilf1.c (ASSERT): Likewise.
50876         * tests/test-ceilf2.c (ASSERT): Likewise.
50877         * tests/test-ceill.c (ASSERT): Likewise.
50878         * tests/test-count-one-bits.c (ASSERT): Likewise.
50879         * tests/test-fbufmode.c (ASSERT): Likewise.
50880         * tests/test-fflush2.c (ASSERT): Likewise.
50881         * tests/test-floorf1.c (ASSERT): Likewise.
50882         * tests/test-floorf2.c (ASSERT): Likewise.
50883         * tests/test-floorl.c (ASSERT): Likewise.
50884         * tests/test-fopen.c (ASSERT): Likewise.
50885         * tests/test-fpending.c (ASSERT): Likewise.
50886         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50887         * tests/test-fpurge.c (ASSERT): Likewise.
50888         * tests/test-freadable.c (ASSERT): Likewise.
50889         * tests/test-freadahead.c (ASSERT): Likewise.
50890         * tests/test-freading.c (ASSERT): Likewise.
50891         * tests/test-freadptr.c (ASSERT): Likewise.
50892         * tests/test-freadptr2.c (ASSERT): Likewise.
50893         * tests/test-freadseek.c (ASSERT): Likewise.
50894         * tests/test-freopen.c (ASSERT): Likewise.
50895         * tests/test-frexp.c (ASSERT): Likewise.
50896         * tests/test-frexpl.c (ASSERT): Likewise.
50897         * tests/test-fseek.c (ASSERT): Likewise.
50898         * tests/test-fseeko.c (ASSERT): Likewise.
50899         * tests/test-fstrcmp.c (ASSERT): Likewise.
50900         * tests/test-ftell.c (ASSERT): Likewise.
50901         * tests/test-ftello.c (ASSERT): Likewise.
50902         * tests/test-func.c (ASSERT): Likewise.
50903         * tests/test-fwritable.c (ASSERT): Likewise.
50904         * tests/test-fwriting.c (ASSERT): Likewise.
50905         * tests/test-getdelim.c (ASSERT): Likewise.
50906         * tests/test-getline.c (ASSERT): Likewise.
50907         * tests/test-i-ring.c (ASSERT): Likewise.
50908         * tests/test-iconv-utf.c (ASSERT): Likewise.
50909         * tests/test-iconv.c (ASSERT): Likewise.
50910         * tests/test-isfinite.c (ASSERT): Likewise.
50911         * tests/test-isnand.c (ASSERT): Likewise.
50912         * tests/test-isnanf.c (ASSERT): Likewise.
50913         * tests/test-isnanl.h (ASSERT): Likewise.
50914         * tests/test-ldexpl.c (ASSERT): Likewise.
50915         * tests/test-linked_list.c (ASSERT): Likewise.
50916         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50917         * tests/test-localename.c (ASSERT): Likewise.
50918         * tests/test-lseek.c (ASSERT): Likewise.
50919         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50920         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50921         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50922         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50923         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50924         * tests/test-mbschr.c (ASSERT): Likewise.
50925         * tests/test-mbscspn.c (ASSERT): Likewise.
50926         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50927         * tests/test-mbspbrk.c (ASSERT): Likewise.
50928         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50929         * tests/test-mbsrchr.c (ASSERT): Likewise.
50930         * tests/test-mbsspn.c (ASSERT): Likewise.
50931         * tests/test-mbsstr1.c (ASSERT): Likewise.
50932         * tests/test-mbsstr2.c (ASSERT): Likewise.
50933         * tests/test-mbsstr3.c (ASSERT): Likewise.
50934         * tests/test-memchr2.c (ASSERT): Likewise.
50935         * tests/test-memmem.c (ASSERT): Likewise.
50936         * tests/test-open.c (ASSERT): Likewise.
50937         * tests/test-printf-frexp.c (ASSERT): Likewise.
50938         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50939         * tests/test-printf-posix.c (ASSERT): Likewise.
50940         * tests/test-quotearg.c (ASSERT): Likewise.
50941         * tests/test-rbtree_list.c (ASSERT): Likewise.
50942         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50943         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50944         * tests/test-round1.c (ASSERT): Likewise.
50945         * tests/test-roundf1.c (ASSERT): Likewise.
50946         * tests/test-roundl.c (ASSERT): Likewise.
50947         * tests/test-signbit.c (ASSERT): Likewise.
50948         * tests/test-sleep.c (ASSERT): Likewise.
50949         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50950         * tests/test-snprintf.c (ASSERT): Likewise.
50951         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50952         * tests/test-stat-time.c (ASSERT): Likewise.
50953         * tests/test-strcasestr.c (ASSERT): Likewise.
50954         * tests/test-strerror.c (ASSERT): Likewise.
50955         * tests/test-striconv.c (ASSERT): Likewise.
50956         * tests/test-striconveh.c (ASSERT): Likewise.
50957         * tests/test-striconveha.c (ASSERT): Likewise.
50958         * tests/test-strsignal.c (ASSERT): Likewise.
50959         * tests/test-strstr.c (ASSERT): Likewise.
50960         * tests/test-strtod.c (ASSERT): Likewise.
50961         * tests/test-trunc1.c (ASSERT): Likewise.
50962         * tests/test-trunc2.c (ASSERT): Likewise.
50963         * tests/test-truncf1.c (ASSERT): Likewise.
50964         * tests/test-truncf2.c (ASSERT): Likewise.
50965         * tests/test-truncl.c (ASSERT): Likewise.
50966         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50967         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50968         * tests/test-vasnprintf.c (ASSERT): Likewise.
50969         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50970         * tests/test-vasprintf.c (ASSERT): Likewise.
50971         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50972         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50973         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50974         * tests/test-vsnprintf.c (ASSERT): Likewise.
50975         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50976         * tests/test-wcwidth.c (ASSERT): Likewise.
50977         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50978         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50979         * tests/test-xvasprintf.c (ASSERT): Likewise.
50980         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50981         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50982         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50983         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50984         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50985         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50986         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50987         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
50988         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
50989         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
50990         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
50991         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
50992         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
50993         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
50994         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
50995         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
50996         * tests/unictype/test-block_list.c (ASSERT): Likewise.
50997         * tests/unictype/test-block_of.c (ASSERT): Likewise.
50998         * tests/unictype/test-block_test.c (ASSERT): Likewise.
50999         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51000         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51001         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51002         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51003         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51004         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51005         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51006         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51007         * tests/unictype/test-combining.c (ASSERT): Likewise.
51008         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51009         * tests/unictype/test-digit.c (ASSERT): Likewise.
51010         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51011         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51012         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51013         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51014         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51015         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51016         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51017         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51018         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51019         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51020         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51021         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51022         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51023         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51024         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51025         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51026         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51027         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51028         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51029         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51030         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51031         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51032         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51033         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51034         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51035         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51036         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51037         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51038         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51039         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51040         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51041         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51042         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51043         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51044         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51045         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51046         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51047         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51048         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51049         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51050         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51051         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51052         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51053         Reported by Eric Blake.
51054
51055 2008-04-11  Bruno Haible  <bruno@clisp.org>
51056
51057         * lib/wchar.in.h: Tweak comment.
51058
51059 2008-04-11  Bruno Haible  <bruno@clisp.org>
51060
51061         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51062         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51063         gl_COMMON.
51064         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51065
51066 2008-04-11  Bruno Haible  <bruno@clisp.org>
51067
51068         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51069
51070 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51071
51072         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51073         of attempting to use non-existing /dev/*random.  Based on patch
51074         from Adam Strzelecki <ono@java.pl> in
51075         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51076
51077 2008-04-08  Bruno Haible  <bruno@clisp.org>
51078
51079         Add tentative support for emx+gcc.
51080         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51081         * lib/fpurge.c (fpurge): Likewise.
51082         * lib/freadable.c (freadable): Likewise.
51083         * lib/freadahead.c (freadahead): Likewise.
51084         * lib/freading.c (freading): Likewise.
51085         * lib/freadptr.c (freadptr): Likewise.
51086         * lib/freadseek.c (freadptrinc): Likewise.
51087         * lib/fseeko.c (rpl_fseeko): Likewise.
51088         * lib/fseterr.c (fseterr): Likewise.
51089         * lib/fwritable.c (fwritable): Likewise.
51090         * lib/fwriting.c (fwriting): Likewise.
51091         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51092
51093 2008-04-09  Eric Blake  <ebb9@byu.net>
51094
51095         Avoid some autoconf warnings.
51096         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51097         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51098         * m4/afs.m4 (gl_AFS): Likewise.
51099         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51100         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51101         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51102         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51103         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51104         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51105         (AC_CHECK_DECLS_ONCE): Likewise.
51106         Rename file...
51107         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51108         gnulib-tool requires autoconf 2.59 or better.
51109         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51110
51111 2008-04-08  Eric Blake  <ebb9@byu.net>
51112
51113         Use 'git describe --match' if present (added in git 1.5.5).
51114         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51115         if possible.
51116
51117 2008-04-08  Bruno Haible  <bruno@clisp.org>
51118
51119         Add tentative support for OpenServer.
51120         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51121         _ptr, _cnt.
51122         * lib/fpurge.c (fpurge): Likewise.
51123         * lib/freadable.c (freadable): Likewise.
51124         * lib/freadahead.c (freadahead): Likewise.
51125         * lib/freading.c (freading): Likewise.
51126         * lib/freadptr.c (freadptr): Likewise.
51127         * lib/freadseek.c (freadptrinc): Likewise.
51128         * lib/fseeko.c (rpl_fseeko): Likewise.
51129         * lib/fseterr.c (fseterr): Likewise.
51130         * lib/fwritable.c (fwritable): Likewise.
51131         * lib/fwriting.c (fwriting): Likewise.
51132         Reported by Roger Cornelius <rac@tenzing.org> and
51133         Brian K. White <brian@aljex.com>.
51134
51135 2008-04-06  Jim Meyering  <meyering@redhat.com>
51136
51137         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51138
51139 2008-04-06  Bruno Haible  <bruno@clisp.org>
51140
51141         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51142         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51143         * tests/test-printf-posix.sh: Likewise.
51144         * tests/test-vfprintf-posix.sh: Likewise.
51145         * tests/test-vprintf-posix.sh: Likewise.
51146         * tests/test-xprintf-posix.sh: Likewise.
51147
51148 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51149
51150         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51151         hide error from 'ls', needed on OS/2.
51152         Report by Elbert Pol <elbert.pol@gmail.com>.
51153
51154 2008-04-04  Eric Blake  <ebb9@byu.net>
51155
51156         Make test-fseeko.c failures meaningful.
51157         * tests/test-fseeko.c: Print line number on failure.
51158         * tests/test-fseek.c: Likewise.
51159         Reported by Nelson H. F. Beebe.
51160
51161         Improve strtod bug detection check.
51162         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51163         required for Solaris 10.
51164         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51165
51166 2008-04-04  Bruno Haible  <bruno@clisp.org>
51167
51168         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51169         by m4/setenv.m4.
51170
51171 2008-04-03  Eric Blake  <ebb9@byu.net>
51172
51173         Ensure sane .version contents.
51174         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51175         version string.
51176         * build-aux/git-version-gen: Improve documentation.
51177
51178         Make GNU make output nicer.
51179         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51180         MAKECMDGOALS to enforce message for all command line targets.  Set
51181         srcdir for use in maint.mk.
51182
51183         Another maintainer tweak.
51184         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51185         a target that regenerates version.
51186
51187 2008-04-03  Jim Meyering  <meyering@redhat.com>
51188
51189         vc-list-files: don't cause coreutils "make po-check" failure
51190         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51191
51192 2008-04-03  Eric Blake  <ebb9@byu.net>
51193
51194         Allow VPATH usage of vc-list-files.
51195         * build-aux/vc-list-files (scriptversion): Add timestamp.
51196         (options): Add --help, --version, -C.
51197         (CVS): Support installed cvsu.
51198
51199 2008-04-02  Bruno Haible  <bruno@clisp.org>
51200
51201         Avoid some "statement with no effect" warnings from gcc.
51202         * tests/test-wctype.c (main): Explicitly ignore unused values.
51203         Reported by Jim Meyering.
51204
51205 2008-04-02  Jim Meyering  <meyering@redhat.com>
51206
51207         Avoid some warnings from "gcc -Wshadow".
51208         * tests/test-frexp.c (exp): Define to a different identifier.
51209         * tests/test-frexpl.c (exp): Likewise.
51210
51211 2008-04-03  Jim Meyering  <meyering@redhat.com>
51212
51213         bootstrap: remove dangling *.[ch] symlinks from lib
51214         * build-aux/bootstrap [dangling symlink removal]: Move find's
51215         -depth option to precede all others, to avoid a warning.
51216         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51217
51218 2008-04-02  Bruno Haible  <bruno@clisp.org>
51219
51220         Avoid some warnings from "gcc -Wshadow".
51221         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51222         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51223         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51224         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51225         Reported by Jim Meyering.
51226
51227 2008-04-01  Bruno Haible  <bruno@clisp.org>
51228
51229         Fix test to work on IRIX 6.5 with cc.
51230         * tests/test-math.c (numeric_equal): New function.
51231         (main): Use it.
51232
51233 2008-04-01  Bruno Haible  <bruno@clisp.org>
51234
51235         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51236
51237 2008-04-01  Bruno Haible  <bruno@clisp.org>
51238
51239         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51240         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51241         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51242         (Depends-on): Remove math.
51243
51244         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51245         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51246         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51247         (Depends-on): Remove math.
51248
51249         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51250         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51251         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51252         (Depends-on): Remove math.
51253         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51254         (Depends-on): Remove math.
51255
51256         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51257         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51258         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51259         (Depends-on): Remove math.
51260         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51261         (Depends-on): Remove math.
51262
51263         * tests/test-round1.c: Include nan.h.
51264         (main): Use NaNd instead of NAN.
51265         * modules/round-tests (Files): Add tests/nan.h.
51266
51267         * tests/test-trunc1.c: Include nan.h.
51268         (main): Use NaNd instead of NAN.
51269         * modules/trunc-tests (Files): Add tests/nan.h.
51270
51271         * tests/test-roundf1.c: Include nan.h.
51272         (main): Use NaNf instead of NAN.
51273         * modules/roundf-tests (Files): Add tests/nan.h.
51274
51275         * tests/test-truncf1.c: Include nan.h.
51276         (main): Use NaNf instead of NAN.
51277         * modules/truncf-tests (Files): Add tests/nan.h.
51278
51279         * tests/test-ceilf1.c: Include nan.h.
51280         (main): Use NaNf instead of NAN.
51281         * modules/ceilf-tests (Files): Add tests/nan.h.
51282
51283         * tests/test-floorf1.c: Include nan.h.
51284         (main): Use NaNf instead of NAN.
51285         * modules/floorf-tests (Files): Add tests/nan.h.
51286
51287         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51288         (main): Use NaNf instead of NAN.
51289         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51290
51291         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51292         (main): Use NaNd instead of NAN.
51293         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51294
51295         * tests/test-frexp.c: Include nan.h.
51296         (main): Use NaNd instead of NAN.
51297         * modules/frexp-tests (Files): Add tests/nan.h.
51298
51299         * lib/isnan.c: Don't include <math.h>.
51300         (FUNC): Don't use NAN macro.
51301         * modules/isnand-nolibm (Depends-on): Remove math.
51302         * modules/isnanf-nolibm (Depends-on): Remove math.
51303         * modules/isnanl (Depends-on): Remove math.
51304         * modules/isnanl-nolibm (Depends-on): Remove math.
51305
51306         * tests/nan.h: New file.
51307
51308 2008-04-01  Eric Blake  <ebb9@byu.net>
51309
51310         Fix typos.
51311         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51312         values to be the right type.
51313
51314         For now, cater to gnulib strtod inaccuracies.
51315         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51316         fractional results.  While not as nice from a QoI perspective, it
51317         is a quicker patch than correctly implementing decimal to binary
51318         rounding.
51319
51320 2008-03-31  Eric Blake  <ebb9@byu.net>
51321
51322         Guarantee a definition of NAN.
51323         * lib/math.in.h (NAN): Define if missing.
51324         * tests/test-math.c (main): Test it.
51325         * doc/posix-headers/math.texi (math.h): Document this.
51326         * lib/isnan.c (rpl_isnand): Use it.
51327         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51328         * tests/test-floorf1.c (NaN): Likewise.
51329         * tests/test-frexp.c (NaN): Likewise.
51330         * tests/test-isnand.c (NaN): Likewise.
51331         * tests/test-isnanf.c (NaN): Likewise.
51332         * tests/test-round1.c (NaN): Likewise.
51333         * tests/test-roundf1.c (NaN): Likewise.
51334         * tests/test-snprintf-posix.h (NaN): Likewise.
51335         * tests/test-sprintf-posix.h (NaN): Likewise.
51336         * tests/test-trunc1.c (NaN): Likewise.
51337         * tests/test-truncf1.c (NaN): Likewise.
51338         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51339         * tests/test-vasprintf-posix.c (NaN): Likewise.
51340         * modules/isnand-nolibm (Depends-on): Add math.
51341         * modules/isnanf-nolibm (Depends-on): Likewise.
51342         * modules/isnanl (Depends-on): Likewise.
51343         * modules/isnanl-nolibm (Depends-on): Likewise.
51344         * modules/snprintf-posix-tests (Depends-on): Likewise.
51345         * modules/sprintf-posix-tests (Depends-on): Likewise.
51346         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51347         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51348         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51349         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51350
51351 2008-03-31  Bruno Haible  <bruno@clisp.org>
51352
51353         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51354         * doc/posix-functions/strtod.texi: Likewise.
51355
51356 2008-03-31  Bruno Haible  <bruno@clisp.org>
51357
51358         * tests/test-strtod.c (main): Don't use C99 syntax.
51359
51360 2008-03-31  Bruno Haible  <bruno@clisp.org>
51361
51362         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51363         Reported by Eric Blake.
51364
51365 2008-03-31  Jim Meyering  <meyering@redhat.com>
51366
51367         Don't compare actual signbit return values.
51368         * tests/test-strtod.c (main): Rather, compare only their
51369         zero/non-zero nature.
51370
51371 2008-03-31  Eric Blake  <ebb9@byu.net>
51372
51373         More strtod documentation.
51374         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51375         failures as distinct bugs.
51376
51377 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51378
51379         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51380         Problem reported by Erik Benada in
51381         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51382
51383 2008-03-30  Bruno Haible  <bruno@clisp.org>
51384
51385         * tests/test-strtod.c: Add comments about which assertion fails on which
51386         platform.
51387         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51388
51389 2008-03-30  Eric Blake  <ebb9@byu.net>
51390
51391         Test signbit behavior on zeros.
51392         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51393         (test_signbitd, test_signbitl): Likewise.
51394
51395         More strtod touchups.
51396         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51397         sign of negative underflow, for now.  Use .5, not .1.
51398         * doc/posix-functions/strtod.texi (strtod): Mention these
51399         limitations.
51400         Reported by Jim Meyering.
51401
51402 2008-03-30  Bruno Haible  <bruno@clisp.org>
51403
51404         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51405         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51406
51407 2008-03-30  Bruno Haible  <bruno@clisp.org>
51408
51409         Avoid failure when attempting to return empty iconv results on some
51410         platforms.
51411         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51412         allocation, don't report ENOMEM when the resulting string is empty.
51413
51414 2008-03-30  Bruno Haible  <bruno@clisp.org>
51415
51416         Fix buffer overrun.
51417         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51418         Don't consider the width for tmp_length. Check count against tmp_length
51419         before doing the padding. Ensure enough allocation during padding.
51420
51421 2008-03-30  Eric Blake  <ebb9@byu.net>
51422
51423         strtod touchups.
51424         * lib/strtod.c (strtod): Avoid compiler warnings.
51425         Reported by Jim Meyering.
51426
51427 2008-03-30  Bruno Haible  <bruno@clisp.org>
51428
51429         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51430         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51431         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51432         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51433         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51434         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51435         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51436         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51437
51438         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51439         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51440         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51441         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51442         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51443         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51444         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51445         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51446
51447         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51448         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51449         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51450         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51451         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51452         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51453         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51454         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51455
51456         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51457         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51458
51459         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51460         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51461
51462         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51463         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51464
51465         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51467         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51468
51469         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51470         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51471         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51472
51473         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51474         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51475         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51476
51477         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51478         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51479         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51480
51481         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51482         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51484         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51485         (Depends-on): Add EOVERFLOW.
51486         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51487         (Depends-on): Add EOVERFLOW.
51488         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51489         (Depends-on): Add EOVERFLOW.
51490         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51491         (Depends-on): Add EOVERFLOW.
51492         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51493         (Depends-on): Add EOVERFLOW.
51494         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51495         (Depends-on): Add EOVERFLOW.
51496         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51497         (Depends-on): Add EOVERFLOW.
51498         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51499         (Depends-on): Add EOVERFLOW.
51500
51501         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51502         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51503         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51504
51505         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51507         * modules/snprintf (Depends-on): Add EOVERFLOW.
51508
51509         * lib/poll.c (EOVERFLOW): Remove fallback.
51510         * modules/poll (Depends-on): Add EOVERFLOW.
51511
51512         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51513         * modules/getugroups (Depends-on): Add EOVERFLOW.
51514
51515         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51516         * modules/getdelim (Depends-on): Add EOVERFLOW.
51517
51518         * lib/ftell.c (EOVERFLOW): Remove fallback.
51519         * modules/ftell (Depends-on): Add EOVERFLOW.
51520
51521         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51522         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51523         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51524
51525         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51526
51527         * modules/EOVERFLOW-tests: New file.
51528         * tests/test-EOVERFLOW.c: New file.
51529
51530         * modules/EOVERFLOW: New file.
51531         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51532
51533 2008-03-30  Bruno Haible  <bruno@clisp.org>
51534
51535         Fix bug introduced on 2007-06-10.
51536         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51537         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51538
51539 2008-03-30  Bruno Haible  <bruno@clisp.org>
51540
51541         Improve freadseek's efficiency after ungetc.
51542         * lib/freadseek.c: Include freadahead.h.
51543         (freadptrinc): New function, extracted from freadseek.
51544         (freadseek): Use it in a loop. Use freadahead to determine the number
51545         of loop iterations.
51546         * modules/freadseek (Depends-on): Add freadahead.
51547         (configure.ac): Require AC_C_INLINE.
51548
51549 2008-03-30  Bruno Haible  <bruno@clisp.org>
51550
51551         * lib/freadseek.c (freadseek): Don't ignore the return value of
51552         freadptr.
51553
51554 2008-03-29  Eric Blake  <ebb9@byu.net>
51555
51556         Add hex float support.
51557         * modules/strtod (Depends-on): Add c-ctype.
51558         (Link): Mention POW_LIB.
51559         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51560         whitespace between 'e' and exponent.
51561         * tests/test-strtod.c (main): Enable hex float tests.
51562         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51563         now provides.
51564
51565         Document various strtod bugs, with some fixes.
51566         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51567         "-0x", "inf", "nan", and hex constants.
51568         * doc/posix-functions/atof.texi (atof): Likewise.
51569         * modules/stdlib (Makefile.am): Support strtod.
51570         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51571         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51572         detect additional strtod bugs.
51573         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51574         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51575         bool where appropriate.  Parse 'inf' and 'nan'.
51576         * tests/test-strtod.c: New file.
51577         * modules/strtod (Depends-on): Add stdbool, stdlib.
51578         (configure.ac): Turn on module indicator.
51579         * modules/strtod-tests: New module.
51580
51581 2008-03-29  Eric Blake  <ebb9@byu.net>
51582
51583         Fix ftell on mingw.
51584         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51585         * modules/ftell-tests (Depends-on): Add binary-io.
51586         * modules/ftello-tests (Depends-on): Likewise.
51587         * tests/test-ftell.c (main): Enhance test to cover behavior after
51588         ungetc.  Enforce binary mode.
51589         * tests/test-ftello.c (main): Likewise.
51590
51591         Pass test-freadseek on cygwin.
51592         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51593         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51594         ungetc buffer.
51595
51596         * tests/test-fflush2.c (main): Fix typo.
51597
51598 2008-03-29  Bruno Haible  <bruno@clisp.org>
51599
51600         * tests/test-fflush2.c (main): Temporarily disable the contents of
51601         this test.
51602         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51603         Reported by Eric Blake.
51604
51605 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51606
51607         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51608         (GC_SHA224_DIGEST_SIZE): Add.
51609
51610         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51611         (gc_hash_digest_length): Likewise.
51612         (gc_hash_buffer): Likewise.
51613
51614 2008-03-25  Bruno Haible  <bruno@clisp.org>
51615
51616         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51617         detail which gettext release to use.
51618         Reported by Simon Josefsson.
51619
51620 2008-03-26  Jim Meyering  <meyering@redhat.com>
51621
51622         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51623         * modules/gnumakefile (clean-GNUmakefile): Also, use
51624         test ... && ... || : syntax rather than if-then ... fi.
51625
51626         gnumakefile: Don't double-quote-expand $(VPATH) value.
51627         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51628
51629 2008-03-24  Eric Blake  <ebb9@byu.net>
51630
51631         Alter GNUmakefile to install into top directory.
51632         * modules/maintainer-makefile: Split, and add dependency...
51633         * modules/gnumakefile: to this new module.
51634         * build-aux/GNUmakefile: Move...
51635         * top/GNUmakefile: ...here.
51636         * build-aux/maint.mk: Move...
51637         * top/maint.mk: ...here.
51638         * MODULES.html.sh (Support for maintaining...): Document new
51639         module.
51640
51641 2008-03-23  Bruno Haible  <bruno@clisp.org>
51642
51643         * gnulib-tool: New options --vc-files, --no-vc-files.
51644         (func_usage): Document them.
51645         (vc_files): New variable.
51646         (func_import): Consider vc_files.
51647         (func_create_testdir): Set vc_files to empty.
51648         Suggested by Jim Meyering and Karl Berry.
51649
51650 2008-03-23  Bruno Haible  <bruno@clisp.org>
51651
51652         Fix regex compilation error on HP-UX 11.
51653         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51654         * modules/regex (Files): Add m4/mbstate_t.m4.
51655         Reported by Ton Voon <ton.voon@altinity.com>.
51656
51657 2008-03-23  Bruno Haible  <bruno@clisp.org>
51658
51659         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51660
51661 2008-03-23  Eric Blake  <ebb9@byu.net>
51662             Bruno Haible  <bruno@clisp.org>
51663
51664         Install files from top/ in the destination directory.
51665         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51666         augmentation also for the files from top/.
51667         (func_import, func_create_testdir): Rewrite file names:
51668         top/filename -> filename.
51669
51670 2008-03-23  Bruno Haible  <bruno@clisp.org>
51671
51672         Tweak "gnulib --version" output.
51673         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51674
51675 2008-03-23  Bruno Haible  <bruno@clisp.org>
51676
51677         Tweak "gnulib --version" output.
51678         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51679         rather than contents of ChangeLog, when possible.
51680
51681 2008-03-21  Eric Blake  <ebb9@byu.net>
51682
51683         More --version tweaks.
51684         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51685         date of last ChangeLog entry.
51686
51687 2008-03-21  Jim Meyering  <meyering@redhat.com>
51688
51689         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51690
51691 2008-03-20  Eric Blake  <ebb9@byu.net>
51692
51693         VPATH fix.
51694         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51695
51696 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51697
51698         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51699         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51700
51701 2008-03-20  Eric Blake  <ebb9@byu.net>
51702
51703         Sync GNUmakefile with coreutils.
51704         * build-aux/GNUmakefile (have-Makefile): Rename...
51705         (_have-Makefile): ...to this, for namespace consideration.
51706         (GNUmakefile.cfg): Include, if present.
51707         (_autoreconf): Define a default.
51708         (_is-dist-target): New rule for rebuilds to pick up intra-release
51709         version.
51710         (maint-cfg.mk): Rename...
51711         (cfg.mk): ...to this.
51712
51713 2008-03-18  Jim Meyering  <meyering@redhat.com>
51714
51715         New script and module: mktempd
51716         * MODULES.html.sh (maint+release support): Add mktempd.
51717         * build-aux/mktempd: New file.
51718         * modules/mktempd: New file.
51719
51720 2008-03-15  Jim Meyering  <meyering@redhat.com>
51721
51722         Undo last change.
51723         * lib/sha1.c, lib/md5.c: 63 != ~63.
51724         Reported by Andreas Schwab.
51725
51726         sha1.c, md5.c: Hoist a redundant expression.
51727         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51728         "ctx->buflen" only once, before calling *_process_block.
51729         * lib/md5.c (md5_process_bytes): Likewise.
51730
51731 2008-03-14  Eric Blake  <ebb9@byu.net>
51732
51733         Bump copyright year in files generated by gnulib-tool.
51734         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51735         gnulib-tool, rather than hard-coding it.
51736
51737         Fix 'gnulib-tool --version' output to work with git.
51738         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51739         (startup): ...here.
51740         (func_version): Use it to invoke git-version-gen, rather than
51741         relying on CVS keyword expansion.  Modernize wording.
51742         (cvsdatestamp, last_checkin_date, version): Kill unused
51743         variables.
51744
51745 2008-03-12  Jim Meyering  <meyering@redhat.com>
51746
51747         Recognize optional cast of the argument to free.
51748         * build-aux/useless-if-before-free: Update regexps.
51749
51750         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51751
51752 2008-03-11  Bruno Haible  <bruno@clisp.org>
51753
51754         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51755         by a single package.
51756         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51757         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51758         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51759         Reported by Sam Steingold <sds@gnu.org>.
51760
51761 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51762
51763         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51764         repositories.
51765
51766 2008-03-11  Bruno Haible  <bruno@clisp.org>
51767
51768         Avoid conflicts between local macro definitions.
51769         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51770         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51771
51772 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51773             Bruno Haible  <bruno@clisp.org>
51774
51775         Make va_copy work with some version of xlc on AIX 5.1.
51776         * lib/stdarg.in.h: New file.
51777         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51778         On AIX, use a <stdarg.h> file substitute.
51779         * modules/stdarg (Files): Add lib/stdarg.in.h.
51780         (Depends-on): Add include_next.
51781         (Makefile.am): Build a stdarg.h substitute if requested.
51782         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51783
51784 2008-03-10  Bruno Haible  <bruno@clisp.org>
51785
51786         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51787         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51788         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51789
51790 2008-03-10  Bruno Haible  <bruno@clisp.org>
51791
51792         * modules/stdlib (Depends-on): Add include_next, remove
51793         absolute-header.
51794
51795 2008-03-09  Bruno Haible  <bruno@clisp.org>
51796
51797         * lib/freadahead.h (freadahead): Document more precisely.
51798         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51799         the sum of both buffer sizes.
51800         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51801         * NEWS: Document the change.
51802
51803 2008-03-09  Bruno Haible  <bruno@clisp.org>
51804
51805         Extend freadptr to return also the buffer size.
51806         * lib/freadptr.h (freadptr): Add sizep argument.
51807         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51808         (freadptr): Add sizep argument. Determine buffer size like freadahead
51809         does.
51810         * tests/test-freadptr.c: Don't include freadahead.h.
51811         (main): Adapt for new calling convention of freadptr.
51812         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51813         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51814         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51815         tests/test-freadptr2.sh.
51816         (Depends): Remove freadahead.
51817         (TESTS): Add test-freadptr2.sh.
51818         (check_PROGRAMS): Add test-freadptr2.
51819
51820 2008-03-09  Bruno Haible  <bruno@clisp.org>
51821
51822         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51823         Report and solution by Simon Josefsson.
51824
51825 2008-03-06  Bruno Haible  <bruno@clisp.org>
51826
51827         Make fflush after ungetc work on BSD platforms.
51828         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51829         * tests/test-fflush2.c: New file.
51830         * tests/test-fflush2.sh: New file.
51831         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51832         tests/test-fflush2.c.
51833         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51834         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51835
51836 2008-03-06  Eric Blake  <ebb9@byu.net>
51837
51838         Likewise for ftello.
51839         * modules/ftello (Dependencies): Add extensions.
51840         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51841
51842 2008-03-06  Bruno Haible  <bruno@clisp.org>
51843
51844         * modules/fseeko (Dependencies): Add extensions.
51845         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51846         Needed on glibc systems.
51847
51848 2008-03-06  Bruno Haible  <bruno@clisp.org>
51849
51850         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51851         email address.
51852         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51853
51854 2008-03-06  Bruno Haible  <bruno@clisp.org>
51855
51856         * users.txt: Add libgnupdf.
51857
51858 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51859
51860         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51861         (Header File Substitutes, Function Substitutes,
51862         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51863         (Build robot for gnulib): Fix typo.
51864
51865 2008-03-06  Bruno Haible  <bruno@clisp.org>
51866
51867         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51868         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51869
51870 2008-03-06  Bruno Haible  <bruno@clisp.org>
51871
51872         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51873         * doc/gnulib.texi: Include it.
51874
51875 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51876
51877         * modules/func (License): Change license to unlimited; there was
51878         no LGPL parts in the module anyway.
51879
51880 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51881
51882         * modules/__func__: Renamed to modules/func.
51883         * modules/__func__-tests: Renamed to modules/func-tests.
51884         * tests/test-__func__.c: Renamed to tests/test-func.c.
51885         * m4/__func__.m4: Renamed to m4/func.m4.
51886         * doc/gnulib.texi (__func__): Section renamed to func.
51887         Suggested by Eric Blake <ebb9@byu.net>.
51888
51889 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51890
51891         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51892         about __func__.  Make example self-contained.  Suggested by Eric
51893         Blake <ebb9@byu.net>.
51894
51895         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51896         Suggested by Eric Blake <ebb9@byu.net>.
51897
51898 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51899
51900         * modules/__func__: New file.
51901         * modules/__func__-tests: New file.
51902         * tests/test-__func__.c: New file.
51903         * m4/__func__.m4: New file.
51904         * doc/gnulib.texi (__func__): Document __func__ module.
51905
51906 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51907
51908         * modules/byteswap (License): Re-license as LGPLv2+.
51909
51910 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51911
51912         * doc/Makefile: Add pdf target.
51913
51914 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51915
51916         * modules/inline (License): Use 'unlimited', since there are only
51917         *.m4 files in this module.
51918
51919 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51920             Bruno Haible  <bruno@clisp.org>
51921
51922         Add support for HP C 7.1 on OpenVMS 8.3.
51923         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51924
51925 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51926
51927         Update VMS specifics.
51928         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51929
51930 2008-03-02  Jim Meyering  <meyering@redhat.com>
51931
51932         Remove the last dependency on the "free" module.
51933         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51934         Reported by Bob Proulx.
51935
51936         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51937
51938         Remove useless "if" tests before free.  Deprecate "free" module.
51939         * doc/posix-functions/free.texi: Mention that this
51940         module is no longer useful.
51941         * modules/free (Notice): Say this module is obsolete.
51942         * modules/readutmp (Depends-on): Remove free.
51943         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51944         * lib/putenv.c (putenv): Likewise.
51945         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51946         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51947         * tests/test-c-strcasestr.c (main): Likewise.
51948         * tests/test-c-strstr.c (main): Likewise.
51949         * tests/test-mbscasestr1.c (main): Likewise.
51950         * tests/test-mbscasestr2.c (main): Likewise.
51951         * tests/test-mbsstr1.c (main): Likewise.
51952         * tests/test-mbsstr2.c (main): Likewise.
51953         * tests/test-memmem.c (main): Likewise.
51954         * tests/test-strcasestr.c (main): Likewise.
51955         * tests/test-striconv.c (main): Likewise.
51956         * tests/test-striconveh.c (main): Likewise.
51957         * tests/test-striconveha.c (main): Likewise.
51958         * tests/test-strstr.c (main): Likewise.
51959
51960         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51961
51962         bootstrap: sync from coreutils again
51963         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51964
51965 2008-03-01  Jim Meyering  <meyering@redhat.com>
51966
51967         bootstrap: sync from coreutils
51968         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51969         also when the target doesn't exist.
51970
51971 2008-03-01  Eric Blake  <ebb9@byu.net>
51972
51973         Fix bugs in last patch.
51974         * lib/memchr2.c (memchr2): Fix typo.
51975         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51976         extension.
51977         Reported by Bruce Korb.
51978
51979         New module 'memchr2'.
51980         * modules/memchr2: New file.
51981         * modules/memchr2-tests: Likewise.
51982         * lib/memchr2.h: Likewise.
51983         * lib/memchr2.c: Likewise, based on memchr.c.
51984         * tests/test-memchr2.c: New test.
51985         * MODULES.html.sh (String handling): Add memchr2.
51986
51987 2008-02-29  Bruno Haible  <bruno@clisp.org>
51988
51989         * modules/freadseek-tests: New file.
51990         * tests/test-freadseek.sh: New file.
51991         * tests/test-freadseek.c: New file.
51992
51993         New module 'freadseek'.
51994         * modules/freadseek: New file.
51995         * lib/freadseek.h: New file.
51996         * lib/freadseek.c: New file.
51997         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
51998
51999 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52000
52001         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52002         wydawca.
52003
52004         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52005         program_invocation_name and program_invocation_short_name are
52006         present.
52007
52008 2008-02-28  Bruno Haible  <bruno@clisp.org>
52009
52010         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52011         * tests/test-freadptr.sh: Also test non-seekable stdin.
52012
52013 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52014
52015         * build-aux/bootstrap (source_base, m4_base)
52016         (doc_base, tests_base): New variables.
52017         (gnulib_tool_options): Do not hardcode base directories, use
52018         the above variables instead.
52019
52020 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52021
52022         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52023
52024 2008-02-28  Bruno Haible  <bruno@clisp.org>
52025
52026         * modules/freadptr-tests: New file.
52027         * tests/test-freadptr.sh: New file.
52028         * tests/test-freadptr.c: New file.
52029
52030         New module 'freadptr'.
52031         * modules/freadptr: New file.
52032         * lib/freadptr.h: New file.
52033         * lib/freadptr.c: New file.
52034         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52035
52036 2008-02-26  Karl Berry  <karl@freefriends.org>
52037
52038         Sync from Libtool:
52039         * libltdl/argz.c (argz_add, argz_count): New functions.
52040         * libltdl/argz.in.h: Declare them.
52041         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52042
52043 2008-02-22  Bruno Haible  <bruno@clisp.org>
52044
52045         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52046         is a pointer type.  Needed for HP-UX 10.
52047         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52048         * doc/posix-functions/gmtime_r.texi: Likewise.
52049         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52050
52051 2008-02-24  Bruno Haible  <bruno@clisp.org>
52052
52053         * modules/environ-tests: New file.
52054         * tests/test-environ.c: New file.
52055
52056         New module 'environ'.
52057         * modules/environ: New file.
52058         * lib/unistd.in.h (environ): New declaration.
52059         * m4/environ.m4: New file.
52060         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52061         after use.
52062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52063         HAVE_DECL_ENVIRON.
52064         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52065         HAVE_DECL_ENVIRON.
52066         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52067         wrong claim that 'environ' is missing on some systems.
52068         * modules/execute (Depends-on): Add environ.
52069         * lib/execute.c (environ): Remove fallback declaration.
52070         * modules/pipe (Depends-on): Add environ.
52071         * lib/pipe.c (environ): Remove fallback declaration.
52072         * modules/setenv (Depends-on): Add environ.
52073         * lib/setenv.c (environ): Remove fallback declaration.
52074         * modules/unsetenv (Depends-on): Add environ.
52075         * lib/unsetenv.c (environ): Remove fallback declaration.
52076         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52077         m4/environ.m4.
52078         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52079         (gl_PREREQ_UNSETENV): Likewise.
52080
52081 2008-02-24  Bruno Haible  <bruno@clisp.org>
52082
52083         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52084
52085 2008-02-20  Bob Proulx  <bob@proulx.com>
52086
52087         Enable use of older two part flavor 'git describe'.
52088         * build-aux/git-version-gen: If using the older two part flavor of
52089         git version then recreate the third part now present in the
52090         newer three part flavor of git describe.
52091
52092 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52093
52094         * lib/fts.c (fts_build): Typo correction to comment.
52095
52096 2008-02-17  Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52099         generating no-op conflicts.
52100
52101 2008-02-17  Bruno Haible  <bruno@clisp.org>
52102
52103         Speed up by 10%.
52104         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52105         result_entries, rather than an index-based loop.
52106
52107 2008-02-17  Bruno Haible  <bruno@clisp.org>
52108
52109         Speed up by 25%.
52110         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52111         'hashcode_cached'.
52112         (entry_create): New function.
52113         (entry_hashcode): Use the cached hashcode if possible.
52114         (read_changelog_file, try_split_merged_entry): Use entry_create.
52115
52116 2008-02-17  Bruno Haible  <bruno@clisp.org>
52117
52118         Speed up from O(n^2) to O(n) for long ChangeLog files.
52119         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52120         (read_changelog_file): Change implementation of entries_reversed list
52121         to rbtreehash.
52122         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52123
52124 2008-02-17  Bruno Haible  <bruno@clisp.org>
52125
52126         New option --split-merged-entry.
52127         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52128         (find_paragraph_end, try_split_merged_entry): New functions.
52129         (long_options): Add option --split-merged-entry.
52130         (usage): Document option --split-merged-entry.
52131         (main): Implement option --split-merged-entry.
52132         Reported by Eric Blake.
52133
52134 2008-02-17  Bruno Haible  <bruno@clisp.org>
52135
52136         * lib/git-merge-changelog.c: Include c-strstr.h.
52137         (main): Support the "git pull --rebase" situation.
52138         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52139         Reported by Eric Blake.
52140
52141 2008-02-16  Eric Blake  <ebb9@byu.net>
52142
52143         Avoid doubling \ in common case of "c-maybe" quoting style.
52144         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52145         eliding outer quotes.
52146         * lib/quotearg.h: Document this.
52147         * tests/test-quotearg.c (result_strings, inputs, results_g)
52148         (flag_results, locale_results): Test it by adding a new string to
52149         each test group.
52150         (compare_strings): Test new string.
52151
52152 2008-02-13  Eric Blake  <ebb9@byu.net>
52153
52154         Avoid trigraph quoting in default output.
52155         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52156         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52157         unless explicitly requested.
52158         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52159
52160 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52161
52162         Don't rely on signed integer overflowing to negative value.
52163         * lib/getugroups.c (getugroups): Include <limits.h>.
52164         Instead, compare against INT_MAX, and increment only if the test passes.
52165
52166 2008-02-13  Jim Meyering  <meyering@redhat.com>
52167         and Eric Blake  <ebb9@byu.net>
52168
52169         Avoid shadowing warning and compile errors on Linux.
52170         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52171         forwarding macros on Linux.
52172         (dcgettext): Define a stub, for Linux.
52173         (results_g, main): Avoid warnings.
52174
52175 2008-02-12  Eric Blake  <ebb9@byu.net>
52176
52177         Silence warning in last patch.
52178         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52179
52180         Quotearg part 4: add tests, fix c-maybe colon quoting.
52181         * lib/quotearg.h: Improve documentation.
52182         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52183         escapes when adding outer quotes.  When quoting trigraphs, use
52184         valid C notation.  When quoting NUL, omit extra characters if next
52185         character is not digit.  Alter prototype.
52186         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52187         callers.
52188         * modules/quotearg-tests: New module.
52189         * tests/test-quotearg.c: New test.
52190
52191 2008-02-07  Eric Blake  <ebb9@byu.net>
52192
52193         Quotearg part 3: add flag to control outer quote elision.
52194         * lib/quotearg.h (c_maybe_quoting_style): New style.
52195         (enum quoting_flags): Better documentation of flags.
52196         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52197         c-maybe style.
52198         (quotearg_buffer_restyled): Handle new flag to elide outer
52199         quotes.
52200
52201         Quotearg part 2: add flag that can control NUL elision.
52202         * lib/quotearg.h (set_quoting_flags): New prototype.
52203         * lib/quotearg.c (struct quoting_options): Add flag field.
52204         (set_quoting_flags): New function.
52205         (quotearg_buffer_restyled): Add flags parameter.
52206         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52207         (quotearg_n_options): Set the flag, since length cannot be
52208         returned.
52209         (quoting_options_from_style): Default flags correctly.
52210
52211         Quotearg part 1: more wrappers, restore quotearg_char state.
52212         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52213         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52214         (quotearg_colon_mem): New wrappers.
52215         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52216         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52217         functions.
52218         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52219         (quotearg_colon_mem): New functions.
52220
52221 2008-02-11  Bruno Haible  <bruno@clisp.org>
52222
52223         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52224         library in the current directory: it does not work with parallel make.
52225         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52226
52227 2008-02-11  Bruno Haible  <bruno@clisp.org>
52228
52229         * .gitattributes: New file.
52230
52231 2008-02-11  Jim Meyering  <meyering@redhat.com>
52232
52233         useless-if-before-free: Fix reversed exit values.
52234         * build-aux/useless-if-before-free: Use correct values
52235         for EXIT_MATCH and EXIT_NO_MATCH.
52236
52237         * build-aux/useless-if-before-free: Close stdout carefully.
52238
52239 2008-02-10  Bruno Haible  <bruno@clisp.org>
52240
52241         New module 'git-merge-changelog'.
52242         * modules/git-merge-changelog: New file.
52243         * lib/git-merge-changelog.c: New file.
52244
52245 2008-02-10  Jim Meyering  <meyering@redhat.com>
52246
52247         useless-if-before-free: New option: --list (-l).
52248
52249         useless-if-before-free: Don't exit immediately upon open failure.
52250         * build-aux/useless-if-before-free: Exit 2 for errors.
52251         Upon failure to open a file, don't exit immediately.
52252         Rather, just warn and continue with any remaining files.
52253
52254 2008-02-10  Bruno Haible  <bruno@clisp.org>
52255
52256         New abstract list operation 'node_set_value'.
52257         * lib/gl_list.h (gl_list_node_set_value): New function.
52258         (struct gl_list_implementation): New field node_set_value.
52259         * lib/gl_list.c (gl_list_node_set_value): New function.
52260         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52261         (gl_array_list_implementation): Update.
52262         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52263         (gl_carray_list_implementation): Update.
52264         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52265         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52266         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52267         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52268         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52269         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52270         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52271         Update.
52272         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52273         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52274         (gl_sublist_list_implementation): Update.
52275
52276 2008-02-10  Bruno Haible  <bruno@clisp.org>
52277
52278         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52279         Needed when ELEMENT is #defined to 'some_type *'.
52280
52281 2008-02-10  Jim Meyering  <meyering@redhat.com>
52282
52283         New script and module: useless-if-before-free
52284         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52285         * build-aux/useless-if-before-free: New file.
52286         * modules/useless-if-before-free: New file.
52287
52288         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52289
52290         xstrtol_error: Fix typo.
52291         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52292         s/exit_failure/exit_status/.
52293
52294 2008-02-09  Jim Meyering  <meyering@redhat.com>
52295
52296         New script and module: gitlog-to-changelog
52297         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52298         * modules/gitlog-to-changelog: New file.
52299         * build-aux/gitlog-to-changelog: New file.
52300
52301 2008-02-08  Jim Meyering  <meyering@redhat.com>
52302
52303         Avoid two "parameter unused" warnings.
52304         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52305         Mark "st" as used.
52306
52307         Use "git COMMAND", not "git-COMMAND".
52308         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52309         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52310         * build-aux/git-version-gen: Use "git status", not "git-status".
52311
52312 2008-02-07  Bruno Haible  <bruno@clisp.org>
52313
52314         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52315         Avoids a crash on Windows Vista.
52316         Reported by Adam Strzelecki <ono@java.pl> via
52317         Simon Josefsson <simon@josefsson.org>.
52318
52319 2008-02-06  Bruno Haible  <bruno@clisp.org>
52320
52321         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52322         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52323         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52325         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52326         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52327         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52328         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52330         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52332         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52335         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52336         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52337         left-adjust flag.
52338         * tests/test-snprintf-posix.h (test_function): Likewise.
52339         * tests/test-sprintf-posix.h (test_function): Likewise.
52340         * tests/test-vasprintf-posix.c (test_function): Likewise.
52341         * doc/posix-functions/fprintf.texi: Update.
52342         * doc/posix-functions/printf.texi: Update.
52343         * doc/posix-functions/snprintf.texi: Update.
52344         * doc/posix-functions/sprintf.texi: Update.
52345         * doc/posix-functions/vfprintf.texi: Update.
52346         * doc/posix-functions/vprintf.texi: Update.
52347         * doc/posix-functions/vsnprintf.texi: Update.
52348         * doc/posix-functions/vsprintf.texi: Update.
52349         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52350
52351 2008-02-06  Bruno Haible  <bruno@clisp.org>
52352
52353         Fix bug introduced on 2008-01-26.
52354         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52355
52356 2008-02-06  Bruno Haible  <bruno@clisp.org>
52357
52358         Fix bug introduced on 2007-06-10.
52359         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52360         !NEED_PRINTF_FLAG_ZERO.
52361
52362 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52363
52364         getloadavg: use libperfstat on AIX5
52365         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52366
52367 2008-02-03  Bruno Haible  <bruno@clisp.org>
52368
52369         * lib/diffseq.h: Add comments about required #includes.
52370         Reported by Michael Biggs <gnulib@doubleplum.net>.
52371
52372 2008-02-01  Bruno Haible  <bruno@clisp.org>
52373
52374         * users.txt: Add gnuit.
52375
52376 2008-01-31  Bruno Haible  <bruno@clisp.org>
52377
52378         * lib/md4.c (set_uint32): Mark as inline.
52379         * lib/md5.c (set_uint32): Likewise.
52380         * lib/sha1.c (set_uint32): Likewise.
52381         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52382         * m4/md5.m4 (gl_MD5): Likewise.
52383         * m4/sha1.m4 (gl_SHA1): Likewise.
52384
52385 2008-01-31  Jim Meyering  <meyering@redhat.com>
52386
52387         Use "sizeof VAR", rather than a literal "4".
52388         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52389         * lib/md4.c (md4_read_ctx): Likewise.
52390         * lib/sha1.c (sha1_read_ctx): Likewise.
52391
52392 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52393
52394         * tests/test-sha1.c: New file, based on test-md5.c.
52395
52396         * modules/crypto/sha1-tests: New file.
52397
52398 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52399
52400         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52401
52402 2008-01-31  Jim Meyering  <meyering@redhat.com>
52403
52404         Prefer "sizeof v" over the equivalent "4".
52405         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52406         * lib/md5.c (set_uint32): Likewise.
52407         * lib/sha1.c (set_uint32): Likewise.
52408
52409 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52410
52411         * lib/sha1.c (set_uint32): Mark function as static.
52412
52413 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52414
52415         md2: clarify comments to say that alignment is not required.
52416         * lib/md2.h: Remove warning about alignment in comment.
52417         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52418         never been required.
52419
52420 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52421
52422         md4: adapt alignment constraint fix from sha1.
52423         * lib/md4.c (set_uint32): New function, from sha1.c
52424         (md4_read_ctx): Use it.
52425         (md4_finish_ctx): Doc fix.
52426         * lib/md4.h: Doc fix.
52427
52428 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52429
52430         md5: adapt alignment constraint fix from sha1.
52431         * lib/md5.c (set_uint32): New function, from sha1.c
52432         (md5_read_ctx): Use it.
52433         (md5_finish_ctx): Doc fix.
52434         * lib/md5.h: Doc fix.
52435
52436 2008-01-30  Peter Palfrader  <weasel@debian.org>
52437
52438         sha1: remove the result buffer alignment constraint
52439         * lib/sha1.c (set_uint32): New function.
52440         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52441         constraint.
52442         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52443         * lib/sha1.h: Likewise.
52444
52445 2008-01-30  Andreas Schwab  <schwab@suse.de>
52446             Bruno Haible  <bruno@clisp.org>
52447
52448         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52449         correct definition of LDBL_MIN_EXP.
52450
52451 2008-01-30  Karl Berry  <karl@gnu.org>
52452
52453         * config/srclist-update: try to preserve x bit on updates.
52454         * config/srclistvars.sh: update for karl.
52455
52456 2008-01-29  Jim Meyering  <meyering@redhat.com>
52457
52458         vasnprintf.c: Avoid warning about unused label
52459         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52460         "overflow" label definition and associated code with the
52461         same cpp condition that guards the sole use of that label.
52462
52463 2008-01-26  Bruno Haible  <bruno@clisp.org>
52464
52465         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52466         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52467         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52468         * lib/isnanl-nolibm.h (isnanl): Likewise.
52469         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52470
52471 2008-01-26  Bruno Haible  <bruno@clisp.org>
52472
52473         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52474         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52475
52476 2008-01-26  Bruno Haible  <bruno@clisp.org>
52477
52478         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52479         GCC >= 4.0 built-in.
52480         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52481
52482 2008-01-26  Bruno Haible  <bruno@clisp.org>
52483
52484         Rename isnan, applicable to 'double' only, to isnand.
52485         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52486         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52487         (configure.ac): Update.
52488         (Include): Replace "isnan.h" with "isnand.h".
52489         * m4/isnand.m4: Renamed from m4/isnan.m4.
52490         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52491         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52492         instead of isnan.c.
52493         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52494         instead of HAVE_ISNAN_IN_LIBC.
52495         (isnand): Renamed from isnan.
52496         * lib/isnand.c: New file.
52497         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52498         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52499         (Makefile.am): Update.
52500         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52501         Include isnand.h instead of isnan.h.
52502         (main): Test isnand instead of isnan.
52503         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52504         isnan-nolibm.
52505         * modules/frexp (Depends-on): Likewise.
52506         * modules/frexp-tests (Depends-on): Likewise.
52507         * modules/frexp-nolibm (Depends-on): Likewise.
52508         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52509         * modules/isfinite (Depends-on): Likewise.
52510         * modules/round-tests (Depends-on): Likewise.
52511         * modules/signbit (Depends-on): Likewise.
52512         * modules/signbit-tests (Depends-on): Likewise.
52513         * modules/snprintf-posix (Depends-on): Likewise.
52514         * modules/sprintf-posix (Depends-on): Likewise.
52515         * modules/trunc-tests (Depends-on): Likewise.
52516         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52517         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52518         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52519         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52520         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52521         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52522         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52523         * modules/vasnprintf-posix (Depends-on): Likewise.
52524         * modules/vasprintf-posix (Depends-on): Likewise.
52525         * modules/vfprintf-posix (Depends-on): Likewise.
52526         * modules/vsnprintf-posix (Depends-on): Likewise.
52527         * modules/vsprintf-posix (Depends-on): Likewise.
52528         * lib/frexp.c: Include isnand.h instead of isnan.h.
52529         (ISNAN): Set to isnand instead of isnan.
52530         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52531         (gl_isfinited): Use isnand instead of isnan.
52532         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52533         (gl_signbitd): Use isnand instead of isnan.
52534         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52535         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52536         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52537         (main): Use isnand instead of isnan.
52538         * tests/test-round1.c: Include isnand.h.
52539         (main): Use isnand instead of isnan.
52540         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52541         (ISNAN): Set to isnand instead of isnan.
52542         * tests/test-trunc1.c: Include isnand.h.
52543         (main): Use isnand instead of isnan.
52544         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52545         (equal): Use isnand instead of isnan.
52546         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52547         isnand-nolibm.
52548         * NEWS: Mention the change.
52549
52550 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52551             Bruno Haible  <bruno@clisp.org>
52552
52553         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52554         the GCC builtins for signbits are present and set
52555         REPLACE_SIGNBIT_USING_GCC if so.
52556         * lib/math.in.h (signbit): Define using GCC builtins if
52557         REPLACE_SIGNBIT_USING_GCC is set.
52558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52559         REPLACE_SIGNBIT_USING_GCC.
52560         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52561
52562 2008-01-25  Jim Meyering  <meyering@redhat.com>
52563
52564         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52565         * lib/poll.c: Include <config.h>, not "config.h".
52566         * tests/test-getaddrinfo.c: Likewise.
52567
52568 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52569
52570         * modules/sockets-tests: New file.
52571
52572 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52573
52574         * modules/sockets: New module, can be used to call WSA_Startup and
52575         WSA_Cleanup when needed.
52576
52577         * lib/sockets.h, lib/sockets.c: New files.
52578
52579         * m4/sockets.m4: New file.
52580
52581         * tests/test-sockets.c: New file.
52582
52583 2008-01-19  Bruno Haible  <bruno@clisp.org>
52584
52585         * doc/posix-headers: Renamed from doc/headers.
52586         * doc/posix-functions: Renamed from doc/functions.
52587         * doc/gnulib.texi: Update.
52588
52589 2008-01-19  Bruno Haible  <bruno@clisp.org>
52590
52591         * doc/glibc-functions/strcasestr.texi: Include contents of
52592         doc/functions/strcasestr.texi, fixing the list of platforms.
52593         * doc/functions/strcasestr.texi: Remove file.
52594
52595 2008-01-19  Bruno Haible  <bruno@clisp.org>
52596
52597         * doc/glibc-functions/memmem.texi: Include contents of
52598         doc/functions/memmem.texi.
52599         * doc/functions/memmem.texi: Remove file.
52600
52601 2008-01-18  Bruno Haible  <bruno@clisp.org>
52602
52603         * doc/glibc-functions/*.texi: New files.
52604         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52605         to use the new files.
52606
52607 2008-01-17  Bruno Haible  <bruno@clisp.org>
52608
52609         * tests/test-gethostname.c (main): Fix printf statement.
52610
52611 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52612
52613         * modules/gethostname-tests: New file.
52614
52615         * tests/test-gethostname.c: New file.
52616
52617 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52618
52619         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52620         used by the UNAME case.  Reported by Bruno Haible
52621         <bruno@clisp.org>.
52622
52623 2008-01-17  Eric Blake  <ebb9@byu.net>
52624
52625         Convert c-strcasestr to be more efficient.
52626         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52627         (Depends-on): Add c-strcase, remove malloca, strnlen.
52628         * tests/test-c-strcasestr.c (main): Enhance test.
52629         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52630
52631 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52632
52633         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52634         Use it in creating po/Makevars.
52635
52636 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52637
52638         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52639         Applications that requires it should initialize libgcrypt
52640         manually.
52641
52642 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52643
52644         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52645
52646 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52647
52648         Fix problem with getdate on mingw32 reported by Simon Josefsson
52649         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52650         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52651         tzname", when deciding whether to declare tzname.
52652         * lib/strftime.c (tzname): Likewise.
52653
52654 2008-01-15  Bruno Haible  <bruno@clisp.org>
52655
52656         Work around a MacOS X 10.5 bug in frexpl().
52657         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52658         * doc/functions/frexpl.texi: Document the bug.
52659         Reported by Elias Pipping <pipping@gentoo.org>.
52660
52661 2008-01-14  Eric Blake  <ebb9@byu.net>
52662
52663         Touch up previous patch.
52664         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52665         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52666
52667         Convert strcasestr module to use Two-Way algorithm.
52668         * modules/strcasestr-simple: New module, based on the old
52669         strcasestr, but with Two-Way rather than KMP.
52670         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52671         * lib/string.in.h (rpl_strcasestr): Declare.
52672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52673         performance.
52674         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52675         * modules/string (Makefile.am): Support strcasestr.
52676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52677         * modules/strcasestr-tests (Depends-on): Check for alarm.
52678         * tests/test-strcasestr.c: Augment test.
52679         * lib/str-two-way.h: Clean up stray macro.
52680         * NEWS: Document new module.
52681         * MODULES.html.sh (string handling): Likewise.
52682         * doc/functions/strcasestr.texi: New file.
52683         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52684         here, since it is not a POSIX function.
52685
52686 2008-01-14  Colin Watson  <cjwatson@debian.org>
52687             Bruno Haible  <bruno@clisp.org>
52688
52689         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52690         works fine; if not, set REPLACE_STRSIGNAL.
52691         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52693         REPLACE_STRSIGNAL.
52694         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52695         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52696         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52697
52698 2008-01-14  Bruno Haible  <bruno@clisp.org>
52699
52700         * modules/strsignal (Include): Change to <string.h>.
52701
52702 2008-01-14  Colin Watson  <cjwatson@debian.org>
52703
52704         * modules/argp (Notice): Add a notice recommending to change
52705         XGETTEXT_OPTIONS.
52706         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52707
52708 2008-01-13  Colin Watson  <cjwatson@debian.org>
52709
52710         * modules/strsignal-tests: New file.
52711         * tests/test-strsignal.c: New file.
52712
52713         * lib/strsignal.c: New file, from glibc with modifications.
52714         * lib/siglist.h: New file, from glibc with modifications.
52715         * lib/string.in.h (strsignal): New declaration.
52716         * m4/strsignal.m4: New file.
52717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52718         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52719         * modules/strsignal: New file.
52720         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52721         HAVE_DECL_STRSIGNAL.
52722
52723 2008-01-13  Bruno Haible  <bruno@clisp.org>
52724
52725         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52726         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52727         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52728         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52729
52730 2008-01-13  Bruno Haible  <bruno@clisp.org>
52731
52732         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52733         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52734         * lib/argp.h (__attribute__): Likewise.
52735         * lib/c-stack.c (__attribute__): Likewise.
52736         * lib/error.h (__attribute__): Likewise.
52737         * lib/fts.c (__attribute__): Likewise.
52738         * lib/openat.h (__attribute__): Likewise.
52739         * lib/stdio.in.h (__attribute__): Likewise.
52740         * lib/string.in.h (__attribute__): Likewise.
52741         * lib/utimens.c (__attribute__): Likewise.
52742         * lib/vasnprintf.h (__attribute__): Likewise.
52743         * lib/xalloc.h (__attribute__): Likewise.
52744         * lib/xprintf.h (__attribute__): Likewise.
52745         * lib/xstrtol.h (__attribute__): Likewise.
52746         * lib/xvasprintf.h (__attribute__): Likewise.
52747
52748 2008-01-12  Bruno Haible  <bruno@clisp.org>
52749
52750         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52751         * doc/glibc-headers/a.out.texi: New file.
52752         * doc/glibc-headers/aliases.texi: New file.
52753         * doc/glibc-headers/alloca.texi: New file.
52754         * doc/glibc-headers/ar.texi: New file.
52755         * doc/glibc-headers/argp.texi: New file.
52756         * doc/glibc-headers/argz.texi: New file.
52757         * doc/glibc-headers/byteswap.texi: New file.
52758         * doc/glibc-headers/crypt.texi: New file.
52759         * doc/glibc-headers/endian.texi: New file.
52760         * doc/glibc-headers/envz.texi: New file.
52761         * doc/glibc-headers/err.texi: New file.
52762         * doc/glibc-headers/error.texi: New file.
52763         * doc/glibc-headers/execinfo.texi: New file.
52764         * doc/glibc-headers/fpu_control.texi: New file.
52765         * doc/glibc-headers/fstab.texi: New file.
52766         * doc/glibc-headers/fts.texi: New file.
52767         * doc/glibc-headers/getopt.texi: New file.
52768         * doc/glibc-headers/ieee754.texi: New file.
52769         * doc/glibc-headers/ifaddrs.texi: New file.
52770         * doc/glibc-headers/libintl.texi: New file.
52771         * doc/glibc-headers/mcheck.texi: New file.
52772         * doc/glibc-headers/mntent.texi: New file.
52773         * doc/glibc-headers/obstack.texi: New file.
52774         * doc/glibc-headers/paths.texi: New file.
52775         * doc/glibc-headers/printf.texi: New file.
52776         * doc/glibc-headers/pty.texi: New file.
52777         * doc/glibc-headers/resolv.texi: New file.
52778         * doc/glibc-headers/shadow.texi: New file.
52779         * doc/glibc-headers/sysexits.texi: New file.
52780         * doc/glibc-headers/ttyent.texi: New file.
52781
52782 2008-01-12  Jim Meyering  <meyering@redhat.com>
52783
52784         announce-gen: emit Gnulib's git-based version string.
52785         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52786         New option --gnulib-version=V, where V is expected to be
52787         the output of running git describe in the gnulib directory.
52788         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52789         not useful, and plan to stop publishing an xdelta file with each
52790         coreutils release.
52791
52792         * build-aux/announce-gen: Also check for lzma-compressed files.
52793
52794 2008-01-11  Bruno Haible  <bruno@clisp.org>
52795
52796         * tests/test-memmem.c (main): Increase maximum allowed time.
52797         * tests/test-strstr.c (main): Likewise.
52798
52799 2008-01-11  Bruno Haible  <bruno@clisp.org>
52800
52801         * doc/functions/memmem.texi: Add more precisions about platforms.
52802         * doc/functions/strstr.texi: Likewise.
52803
52804 2008-01-10  Eric Blake  <ebb9@byu.net>
52805
52806         * m4/strstr.m4: Delete cruft from copy-n-paste.
52807         Reported by Bruno Haible.
52808
52809 2008-01-10  Bruno Haible  <bruno@clisp.org>
52810
52811         Make c-strstr rely on strstr.
52812         * lib/c-strstr.c: Don't include str-kmp.h.
52813         (c_strstr): Define in terms of strstr.
52814         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52815         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52816
52817 2008-01-10  Bruno Haible  <bruno@clisp.org>
52818
52819         * doc/gnulib.texi (String Functions in C Locale): New section.
52820         * doc/c-ctype.texi: New file.
52821         * doc/c-strcase.texi: New file.
52822         * doc/c-strcaseeq.texi: New file.
52823         * doc/c-strcasestr.texi: New file.
52824         * doc/c-strstr.texi: New file.
52825         * doc/c-strtod.texi: New file.
52826         * doc/c-strtold.texi: New file.
52827
52828 2008-01-10  Eric Blake  <ebb9@byu.net>
52829
52830         * lib/relocatable.h: Fix a comment.
52831
52832 2008-01-10  Eric Blake  <ebb9@byu.net>
52833
52834         Share two-way algorithm.
52835         * lib/str-two-way.h: New file, merged from...
52836         * lib/memmem.c: ...here...
52837         * lib/strstr.c: ...and here.
52838         * modules/memmem (Files): Use it.
52839         * modules/strstr (Files): Likewise.
52840
52841         Avoid quadratic strstr implementations.
52842         * lib/strstr.c: New file.
52843         * m4/strstr.m4: Likewise.
52844         * modules/strstr: Likewise.
52845         * modules/strstr-tests: Likewise.
52846         * tests/test-strstr.c: Likewise.
52847         * lib/string.in.h (rpl_strstr): Declare.
52848         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52850         * modules/string (Makefile.am): Likewise.
52851         * MODULES.html.sh (string handling): Mention new module.
52852         * doc/functions/strstr.texi (strstr): Document the bug.
52853
52854 2008-01-10  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/relocatable.h (relocate): State whether result is freshly
52857         allocated or not.
52858         * lib/relocatable.c (relocate): Return a freshly allocated string
52859         instead of a pointer to a privately held string.
52860         Reported by Sylvain Beucler <beuc@gnu.org>.
52861
52862 2008-01-10  Colin Watson  <cjwatson@debian.org>
52863
52864         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52865         s/S_ISNLK/S_ISLNK/.
52866
52867 2008-01-09  Bruno Haible  <bruno@clisp.org>
52868
52869         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52870         and other files.
52871         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52872         if it's only a guess.
52873         * modules/memmem: Simplify by depending on memmem-simple.
52874
52875 2008-01-09  Bruno Haible  <bruno@clisp.org>
52876
52877         Work around OpenBSD 4.0 tdelete() bug.
52878         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52879         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52880         macros and don't redefine the enum values.
52881         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52882         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52883         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52884
52885 2008-01-09  Bruno Haible  <bruno@clisp.org>
52886
52887         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52888         (main): Don't perform the tests if setlocale did not install a UTF-8
52889         locale. Needed on OpenBSD 4.0.
52890         * modules/wcwidth-tests (Depends-on): Add localcharset.
52891
52892 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52893
52894         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52895         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52896         * NEWS: announce this.
52897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52898
52899 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52900         and Eric Blake  <ebb9@byu.net>
52901
52902         Add memmem-simple module.
52903         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52904         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52905         * modules/memmem-simple: New file.
52906         * modules/memmem (Description): Tweak.
52907         * MODULES.html.sh (string handling): Mention new module.
52908         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52909         addressed by memmem-simple.
52910         * NEWS: Document the difference.
52911
52912 2008-01-09  Eric Blake  <ebb9@byu.net>
52913
52914         Give gcc some memmem optimization hints.
52915         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52916         (strcasestr): Declare as pure.
52917         * modules/memmem (Maintainer): Claim my implementation.
52918
52919 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52920
52921         Support AIX 6.1 and higher.
52922         * build-aux/config.libpath: Likewise.
52923         * build-aux/config.rpath: Likewise.
52924
52925 2008-01-08  Jim Meyering  <meyering@redhat.com>
52926             Bruno Haible  <bruno@clisp.org>
52927
52928         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52929         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52930         Reported by Peter Fales in
52931         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52932
52933 2008-01-08  Bruno Haible  <bruno@clisp.org>
52934
52935         * modules/unictype/category-of (Depends-on): Add
52936         unictype/category-none.
52937         * modules/unictype/category-and-tests (Depends-on): Add
52938         unictype/category-{L,N,Lu,Nd}.
52939         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52940         * modules/unictype/category-or-tests (Depends-on): Add
52941         unictype/category-{L,N}.
52942         * modules/unictype/category-name-tests (Depends-on): Add
52943         unictype/category-{Z,Nl}.
52944         Reported by Simon Josefsson.
52945
52946 2008-01-08  Bruno Haible  <bruno@clisp.org>
52947
52948         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52949         convention better.
52950         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52951         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52952         Reported by Peter Miller <millerp@canb.auug.org.au>.
52953
52954 2008-01-08  Eric Blake  <ebb9@byu.net>
52955
52956         Rewrite memmem to guarantee linear complexity without malloc.
52957         * lib/memmem.c (memmem): Use Two-Way rather than
52958         Knuth-Morris-Pratt, to allow O(1) space usage.
52959         (critical_factorization, two_way_short_needle)
52960         (two_way_long_needle): New functions.
52961         (knuth_morris_pratt): Delete.
52962         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52963         Add stdint.
52964         * tests/test-memmem.c (main): Add tests for periodic needle and
52965         sublinear performance.
52966         * doc/functions/memmem.texi (memmem): Document other deficiencies
52967         in cygwin and older glibc.
52968
52969 2008-01-08  Bruno Haible  <bruno@clisp.org>
52970
52971         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52972         augmentation.
52973
52974 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52975
52976         Add a configure time option: --disable-acl.
52977         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52978         AC_ARG_ENABLE(acl).
52979
52980 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52981
52982         * tests/test-localename.c: Don't include obsolete "setenv.h".
52983
52984         * modules/localename-tests (Depends-on): Need unsetenv.
52985
52986 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52987
52988         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
52989
52990 2008-01-06  Colin Watson  <cjwatson@debian.org>
52991
52992         * users.txt: Add man-db.
52993
52994 2008-01-07  Bruno Haible  <bruno@clisp.org>
52995
52996         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
52997         previous section name.
52998
52999 2008-01-07  Bruno Haible  <bruno@clisp.org>
53000
53001         * lib/progname.c (set_program_name): Don't strip off a leading
53002         "lt-" prefix outside a .libs directory.
53003         Suggested by Paul Eggert.
53004
53005 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53006             Bruno Haible  <bruno@clisp.org>
53007
53008         Improve memory cleanup in 'relocatable' module.
53009         * lib/relocatable.h (compute_curr_prefix): Change return type to
53010         'char *'.
53011         * lib/relocatable.c (compute_curr_prefix): Change return type to
53012         'char *'. Free curr_installdir after use.
53013         (relocate): Free curr_prefix_better after use.
53014         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53015
53016 2008-01-01  Bruno Haible  <bruno@clisp.org>
53017
53018         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53019         failure on older glibc systems.
53020         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53021
53022 2008-01-05  Eric Blake  <ebb9@byu.net>
53023
53024         Avoid quadratic system memmem.
53025         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53026         Reported by Ralf Wildenhues.
53027
53028         Fix memmem test for mingw.
53029         * modules/memmem-tests (configure.ac): Check for alarm.
53030         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53031         it.
53032         * doc/functions/memmem.texi: New file.
53033         * doc/gnulib.texi (Function Substitutes): Add memmem.
53034         Reported by Bruno Haible.
53035
53036 2008-01-04  Bruno Haible  <bruno@clisp.org>
53037
53038         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53039         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53040         gl_HEADER_STRING_H_DEFAULTS.
53041
53042 2008-01-04  Eric Blake  <ebb9@byu.net>
53043
53044         Shorten duration of memmem test.
53045         * tests/test-memmem.c (main): Use alarm to declare failure if test
53046         is taking too long.
53047         Reported by Ralf Wildenhues.
53048
53049 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53050
53051         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53052         string, needed by strerror.
53053
53054 2008-01-03  Colin Watson  <cjwatson@debian.org>
53055             Bruno Haible  <bruno@clisp.org>
53056
53057         * doc/gnulib-tool.texi (Localization): New section.
53058
53059 2008-01-02  Bruno Haible  <bruno@clisp.org>
53060
53061         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53062         variables to 'unsigned char *' type.
53063         Reported by Paul Eggert.
53064
53065 2008-01-02  Jim Meyering  <jim@meyering.net>
53066
53067         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53068
53069 2007-12-31  Jim Meyering  <jim@meyering.net>
53070
53071         Avoid use of private FTS type name.
53072         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53073
53074 2007-12-30  Karl Berry  <karl@gnu.org>
53075
53076         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53077         work around defect in Texinfo and/or the standalone Info browser.
53078
53079 2007-12-30  Bruno Haible  <bruno@clisp.org>
53080
53081         Unify 5 copies of the KMP code.
53082         * lib/str-kmp.h: New file.
53083         * lib/c-strcasestr.c: Include str-kmp.h.
53084         (knuth_morris_pratt): Remove function.
53085         (c_strcasestr): Update.
53086         * lib/c-strstr.c: Include str-kmp.h.
53087         (knuth_morris_pratt): Remove function.
53088         (c_strcasestr): Update.
53089         * lib/mbscasestr.c: Include str-kmp.h.
53090         (knuth_morris_pratt_unibyte): Remove function.
53091         * lib/mbsstr.c: Include str-kmp.h.
53092         (knuth_morris_pratt_unibyte): Remove function.
53093         * lib/strcasestr.c: Include str-kmp.h.
53094         (knuth_morris_pratt): Remove function.
53095         (strcasestr): Update.
53096         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53097         * modules/c-strstr (Files): Likewise.
53098         * modules/mbscasestr (Files): Likewise.
53099         * modules/mbsstr (Files): Likewise.
53100         * modules/strcasestr (Files): Likewise.
53101         Suggested by Paul Eggert.
53102
53103 2007-12-30  Bruno Haible  <bruno@clisp.org>
53104
53105         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53106         defined.
53107
53108 2007-12-30  Bruno Haible  <bruno@clisp.org>
53109
53110         * lib/xmalloca.h: Include xalloc.h.
53111         (xnmalloca): New macro.
53112
53113 2007-12-30  Bruno Haible  <bruno@clisp.org>
53114
53115         * lib/malloca.h (nmalloca): New macro.
53116         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53117         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53118         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53119         knuth_morris_pratt_multibyte): Likewise.
53120         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53121         knuth_morris_pratt_multibyte): Likewise.
53122         * lib/memmem.c (knuth_morris_pratt): Likewise.
53123         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53124
53125 2007-12-25  Bruno Haible  <bruno@clisp.org>
53126
53127         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53128         * lib/glob.c: Don't include openat.h.
53129         (link_exists2_p): Add back the code that deals with the
53130         !GLOB_ALTDIRFUNC case.
53131         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53132         let it do the filename concatenation.
53133         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53134         * modules/glob (Depends-on): Remove openat.
53135
53136 2007-12-31  Bruno Haible  <bruno@clisp.org>
53137
53138         * modules/dirfd (License): Change to LGPLv2+.
53139         Approved by Jim Meyering.
53140
53141 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53142
53143         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53144         when multiplying M by sizeof (size_t).
53145
53146 2007-12-10  Martin Lambers  <marlam@marlam.de>
53147
53148         Override getpagesize on mingw.
53149         * lib/getpagesize.c: New file.
53150         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53151         * modules/getpagesize (Files): Add lib/getpagesize.c.
53152         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53154         REPLACE_GETPAGESIZE.
53155         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53156
53157 2007-12-25  Bruno Haible  <bruno@clisp.org>
53158
53159         * modules/localcharset (Notice): New field.
53160         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53161         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53162
53163 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53164             Bruno Haible  <bruno@clisp.org>
53165
53166         Avoid using the syntax symbol() in formatted documentation.
53167         * MODULES.html.sh (func_module): When replacing symbol() with a
53168         hyperlink, remove the parentheses. Show an error if some remain.
53169         Recognize and render the '...' syntax.
53170         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53171         Rework. Add paragraph about GCC's inlining.
53172         * doc/alloca.texi: Likewise.
53173         * doc/error.texi: Remove parentheses from symbol reference.
53174         * doc/gnulib-intro.texi: Likewise.
53175         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53176         * modules/fnmatch (Description): Reword to say "the ... function".
53177         * modules/full-read (Description): Likewise.
53178         * modules/full-write (Description): Likewise.
53179         * modules/safe-read (Description): Likewise.
53180         * modules/safe-write (Description): Likewise.
53181         * modules/strchrnul (Description): Likewise.
53182         * modules/trim (Description): Likewise.
53183         * modules/error (Description): Remove parentheses from symbol
53184         references.
53185         * modules/verror (Description): Likewise.
53186         Reported by Karl Berry.
53187
53188 2007-12-25  Bruno Haible  <bruno@clisp.org>
53189
53190         Fixup after 2007-10-16 commit.
53191         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53192
53193 2007-12-24  Bruno Haible  <bruno@clisp.org>
53194
53195         Make --enable-relocatable work with DESTDIR.
53196         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53197         to compute installdir from destprog.
53198         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53199         also set the RELOC_DESTDIR variable.
53200         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53201
53202 2007-12-24  Bruno Haible  <bruno@clisp.org>
53203
53204         Fix link error due to xalloc_die().
53205         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53206         of xreadlink.
53207         * lib/relocwrapper.c: Update comments.
53208         * build-aux/install-reloc: Remove xreadlink.c from file list.
53209         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53210         xreadlink.c.
53211         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53212
53213 2007-12-24  Bruno Haible  <bruno@clisp.org>
53214
53215         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53216         * lib/setenv.h: Remove file.
53217         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53218         lib/setenv.h.
53219         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53220         (Depends-on): Add stdlib.
53221         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53222         gl_FUNC_UNSETENV.
53223         (Include): Replace setenv.h with <stdlib.h>.
53224         * modules/unsetenv: New file.
53225         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53226         * lib/unsetenv.c: Include <stdlib.h> first.
53227         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53228         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53229         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53230         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53231         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53232         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53234         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53235         * doc/functions/unsetenv.texi: Update.
53236         * modules/xsetenv (Depends-on): Add unsetenv.
53237         * modules/getdate (Depends-on): Likewise.
53238         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53239         * lib/xsetenv.c: Don't include setenv.h.
53240         * lib/getdate.y: Likewise.
53241         * lib/relocwrapper.c: Likewise.
53242         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53243         (Depends-on): Add stdlib.
53244         * NEWS: Mention the changes.
53245         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53246
53247 2007-12-23  Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53250         indentation.
53251
53252 2007-12-23  Bruno Haible  <bruno@clisp.org>
53253
53254         * lib/c-strcasestr.c: Add more comments.
53255         * lib/c-strstr.c: Likewise.
53256         * lib/mbscasestr.c: Likewise.
53257         * lib/mbsstr.c: Likewise.
53258         * lib/strcasestr.c: Likewise.
53259         * lib/memmem.c: Likewise.
53260
53261 2007-12-23  Bruno Haible  <bruno@clisp.org>
53262
53263         * tests/test-memmem.c: Include <string.h> first.
53264
53265 2007-12-22  Bruno Haible  <bruno@clisp.org>
53266
53267         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53268         the contents of $testsbase.
53269         Reported by Ralf Wildenhues.
53270
53271 2007-12-22  Bruno Haible  <bruno@clisp.org>
53272
53273         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53274         two variables local_ldadd_before, local_ldadd_last.
53275
53276 2007-12-20  Eric Blake  <ebb9@byu.net>
53277
53278         Work around circular library issue when cross-compiling.
53279         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53280         that progname.o does not need to pull in rpl_memcmp.
53281
53282 2007-12-19  Eric Blake  <ebb9@byu.net>
53283
53284         Fix memmem to avoid O(n^2) worst-case complexity.
53285         * lib/memmem.c (knuth_morris_pratt): New function.
53286         (memmem): Use it if first few naive iterations fail.
53287         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53288         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53289         * modules/memchr (License): Likewise.
53290         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53291         malloca.
53292         * tests/test-memmem.c: Rewrite, borrowing ideas from
53293         test-mbsstr1.c; the old version wouldn't even compile!
53294         * modules/memmem-tests: New file.
53295         * lib/string.in.h (rpl_memmem): Add declaration.
53296         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53298         REPLACE_MEMMEM.
53299
53300 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53301
53302         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53303         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53304         before any system include files, and undef after them all.  This
53305         should fix a problem on VMS reported by John E. Malmberg in
53306         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53307
53308 2007-12-17  Eric Blake  <ebb9@byu.net>
53309
53310         Revert addition of verify, for BSD/OS.
53311         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53312         can't handle large files, for the sake of obsolete platforms.
53313         * modules/fseeko (Depends-on): Remove verify.
53314         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53315         * doc/functions/ftello.texi (ftello): Likewise.
53316         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53317         Reported by Larry Jones.
53318
53319 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53320
53321         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53322         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53323
53324 2007-12-17  Jim Meyering  <meyering@redhat.com>
53325
53326         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53327         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53328         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53329         * modules/getcwd (Depends-on): Add openat.
53330         Reported by Petr Salinger.
53331
53332 2007-12-17  Bruno Haible  <bruno@clisp.org>
53333
53334         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53335         avoid a segmentation fault of the configure test on x86_64 systems.
53336
53337 2007-12-15  Jim Meyering  <meyering@redhat.com>
53338
53339         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53340
53341 2007-12-13  Eric Blake  <ebb9@byu.net>
53342
53343         Another fseek test.
53344         * tests/test-fseek.c (main): Also test ungetc handling.
53345         * tests/test-fseeko.c (main): Likewise.
53346         * modules/fseeko (Depends-on): Add verify.
53347         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53348         large.
53349         Reported by Larry Jones.
53350
53351         Fix fseeko on mingw.
53352         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53353         seek.
53354
53355         Beef up fseek tests.
53356         * tests/test-fseek.c (main): Also test eof handling.
53357         * tests/test-fseeko.c (main): Likewise.
53358         Reported by Larry Jones.
53359
53360 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53361
53362         Fix fseeko on BSD-based platforms.
53363         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53364         successful seek.
53365
53366 2007-12-12  Eric Blake  <ebb9@byu.net>
53367
53368         Allow circular dependency of separate libtests.a
53369         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53370         when use_libtests.
53371
53372 2007-12-11  Eric Blake  <ebb9@byu.net>
53373
53374         Fix bug with -0.0L in previous patch.
53375         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53376         * tests/test-isnan.c (main): Also test on zeroes.
53377         * tests/test-isnanf.c (main): Likewise.
53378         * tests/test-isnanl.h (main): Likewise.
53379
53380         Detect pseudo-denormals on x86 even when cross-compiling.
53381         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53382         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53383         invalid bit patterns that happen to satisfy ==.
53384
53385         Avoid link failures with separate libtests.a.
53386         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53387         last, to satisfy circular dependencies.
53388
53389 2007-12-11  Eric Blake  <ebb9@byu.net>
53390         and Bruno Haible  <bruno@clisp.org>
53391
53392         Fix OpenBSD 4.0 <float.h> handling of long double.
53393         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53394         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53395         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53396
53397 2007-12-11  Jim Meyering  <meyering@redhat.com>
53398
53399         * users.txt: Add libvirt.
53400
53401         Support versions of autoconf prior to 2.59c.
53402         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53403         if it is not already defined.
53404
53405 2007-12-09  Bruno Haible  <bruno@clisp.org>
53406
53407         Let 'gnulib-tool --import' collect sources needed for the tests in
53408         tests/ rather than in lib/.
53409         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53410         argument. If true, add rules to generate libtests.a, and put libtests.a
53411         into $(LDADD). Consider source files in subdirectories and set
53412         uses_subdirs.
53413         (func_emit_initmacro_start, func_emit_initmacro_end,
53414         func_emit_initmacro_done): Pass all arguments explicitly.
53415         (func_import): Determine two module lists main_modules,
53416         testsrelated_modules. Determine use_libtests. Determine two variables
53417         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53418         instead of just sed_transform_lib_file. Determine two variables
53419         main_files and testsrelated_files. Compute 'files' as the union of
53420         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53421         func_add_or_update. In the generated gnulib-comp.m4, collect the
53422         object files for tests/ in different variables than those for lib/.
53423         Substitute LIBTESTS_LIBDEPS.
53424         (func_create_testdir): Combine the uses_subdirs results from
53425         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53426
53427 2007-12-09  Bruno Haible  <bruno@clisp.org>
53428
53429         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53430         the build-aux directory.
53431
53432 2007-12-09  Bruno Haible  <bruno@clisp.org>
53433
53434         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53435         introduced on 2006-09-09.
53436
53437 2007-12-07  Jim Meyering  <meyering@redhat.com>
53438
53439         Let these macros work also with autoconf-2.59.
53440         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53441         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53442         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53443
53444 2007-12-06  Jim Meyering  <meyering@redhat.com>
53445
53446         Avoid a configure-time syntax error in gl_FUNC_ACL.
53447         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53448         function in each branch, before testing the cache variable.
53449
53450 2007-12-04  Eric Blake  <ebb9@byu.net>
53451
53452         Make scripts executable.
53453         * build-aux/config.guess: Add execute permissions.
53454         * build-aux/config.sub: Likewise.
53455         * build-aux/gendocs.sh: Likewise.
53456
53457         Fix frexp on mingw.
53458         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53459         cross-compiling.
53460         * doc/functions/frexp.texi (frexp): Document the bug.
53461
53462         Make cygwin fseeko check more reliable.
53463         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53464         version numbers, rather than unrelated feature check.
53465         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53466         * doc/functions/ftello.texi (ftello): Likewise.
53467         Reported by Bruno Haible.
53468
53469         * m4/strerror.m4: Bump version number.
53470
53471 2007-12-03  Bruno Haible  <bruno@clisp.org>
53472
53473         * doc/functions/mprotect.texi: Mention the mingw problem.
53474
53475 2007-12-03  Eric Blake  <ebb9@byu.net>
53476
53477         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53478         REPLACE_STRERROR is initialized before this macro.
53479
53480 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53481
53482         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53483         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53484         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53485         put -lsec in even for programs other than 'ls'.  This fixes a problem
53486         for gettext reported by Bruno Haible in
53487         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53488         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53489         Add support for Solaris 10.  This isn't efficient, but should get the
53490         job done for now.
53491
53492 2007-12-03  James Youngman  <jay@gnu.org>
53493
53494         * doc/regexprops-generic.texi: change "an close-group" to "a
53495         close-group" and "illegal" to "not allowed".
53496
53497 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53498
53499         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53500         pr_byname.h. Needed for the rare case when the maintainer has done
53501         "make maintainer-clean" in the source directory and then attempts a
53502         build outside the source directory.
53503         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53504         scripts_byname.h.
53505
53506 2007-12-02  Martin Lambers <marlam@marlam.de>
53507             Bruno Haible  <bruno@clisp.org>
53508
53509         * lib/getpagesize.h: Remove file.
53510         * lib/unistd.in.h: Include declaration of getpagesize here.
53511         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53512         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53513         HAVE_SYS_PARAM_H.
53514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53515         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53516         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53517         (Depends-on): Add unistd.
53518         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53519         (Include): Use <unistd.h> instead of getpagesize.h.
53520         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53521         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53522         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53523         gl_GETPAGESIZE invocation, already handled by module dependency.
53524         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53525
53526 2007-12-02  Bruno Haible  <bruno@clisp.org>
53527
53528         * modules/strings-tests: New file.
53529         * tests/test-strings.c: New file.
53530
53531         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53532         * lib/strings.in.h: New file.
53533         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53534         * m4/strings_h.m4: New file.
53535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53536         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53537         * modules/strings: New file.
53538         * modules/string (Makefile.am): Update.
53539         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53540         Reported by Karl Berry.
53541
53542 2007-12-01  Eric Blake  <ebb9@byu.net>
53543
53544         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53545         accomodate fix in cygwin 1.5.25.
53546
53547 2007-12-01  Jim Meyering  <meyering@redhat.com>
53548
53549         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53550         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53551         that would inhibit utf8-optimization of a regexp containing line-
53552         or buffer-anchors, e.g., `^', `$'.
53553
53554 2007-11-30  Bruno Haible  <bruno@clisp.org>
53555
53556         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53557         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53558         glthread_recursive_lock_init.
53559         * lib/lock.c (glthread_recursive_lock_init)
53560         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53561         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53562
53563 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53564
53565         New function qset_acl, like set_acl but with syscall semantics.
53566         * lib/acl.h (qset_acl): New decl.
53567         * lib/acl.c (qset_acl): New function.
53568         (set_acl): Use new function.  Use more-consistent diagnostics.
53569
53570 2007-11-28  Jim Meyering  <meyering@redhat.com>
53571
53572         * modules/physmem (License): Change from GPL to LGPLv2+.
53573
53574 2007-11-26  Bruno Haible  <bruno@clisp.org>
53575
53576         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53577         'long double' type has excess precision.
53578         Reported by Jim Meyering in
53579         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53580
53581 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53582
53583         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53584         Sync from <http://gnu.org/licenses>.
53585         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53586         with license text from same location.
53587         * doc/maintain.texi, doc/standards.texi:  Sync from
53588         <http://savannah.gnu.org/projects/gnustandards>.
53589
53590 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53591         and Jim Meyering  <meyering@redhat.com>
53592
53593         Adjust getdate' grammar to accept a slightly more regular language.
53594         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53595         Before, the former was rejected.
53596         * lib/getdate.y (digits_to_date_time): New function, factored
53597         out of ...
53598         (number): ...here.  Just call digits_to_date_time.
53599         (hybrid): New non-terminal to handle an <unsigned number,
53600         signed relative offset> sequence consistently.
53601
53602 2007-11-18  Jim Meyering  <meyering@redhat.com>
53603
53604         Pull my changes from coreutils:
53605         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53606         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53607         use of $gnulib_tool_option_extras, so that it's separated from the
53608         preceding argument.
53609
53610         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53611         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53612         parent destination directories before copying a file into place.
53613
53614 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53615
53616         bootstrap: work also with 4-argument variant of AC_INIT
53617         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53618
53619 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53620
53621         Port test-getaddrinfo to Solaris.
53622         Problem reported by Bruno Haible in
53623         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53624         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53625         explanation of setting 'hints'.
53626         Don't reject an implementation merely because it returns EAI_SERVICE.
53627         (EAI_SERVICE): Define to 0 if not defined.
53628
53629 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53630
53631         The license of gnu-make and posix-shell is now "GPLed build tool".
53632         * modules/gnu-make (License): Likewise.
53633         * modules/posix-shell (License): Likewise.
53634
53635         New module posix-shell, for determining a POSIX shell
53636         or perhaps something that is close enough to a POSIX shell.
53637         * m4/posix-shell.m4: New file.
53638         * modules/posix-shell: New file.
53639
53640         * MODULES.html.sh: Mention new module.
53641
53642         New module gnu-make, for determining whether we're using GNU Make.
53643         * m4/gnu-make.m4: New file.
53644         * modules/gnu-make: New file.
53645         * MODULES.html.sh: Mention new module.
53646
53647 2007-11-14  Jim Meyering  <meyering@redhat.com>
53648
53649         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53650         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53651         use this macro to create a function _definition_.
53652         Remove useless "#undef ARGMATCH_DIE".
53653
53654 2007-11-14  Bruno Haible  <bruno@clisp.org>
53655
53656         * lib/config.charset: Update for OpenBSD 4.1.
53657         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53658
53659 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53660
53661         Document 64-bit #if problems in stdint.texi.
53662         * doc/headers/stdint.texi (stdint.h): Mention problems with
53663         64-bit-#if, and how to work around them.
53664
53665         Don't insist on 'long long int' support in the preprocessor.  It
53666         breaks too many things.  For example, PRIdMAX still uses a 'long
53667         long int' format with the latest Sun compiler, even though
53668         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53669         preprocessor problem.  This causes the latest coreutils to dump
53670         core on Solaris 10 sparc with the Sun C compiler.
53671         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53672         the troublesome expressions at configure-time, not at #if-time.
53673         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53674         preprocessor.
53675         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53676         compile-time C checks, done at 'configure'-time.
53677         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53678         * modules/inttypes (Makefile): Substitute the new symbols that
53679         gl_INTTYPES_H now generates.
53680         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53681
53682 2007-11-12  Bruno Haible  <bruno@clisp.org>
53683
53684         Tests for Unicode character classification functions.
53685
53686         * modules/unictype/bidicategory-byname-tests: New file.
53687         * modules/unictype/bidicategory-name-tests: New file.
53688         * modules/unictype/bidicategory-of-tests: New file.
53689         * modules/unictype/bidicategory-test-tests: New file.
53690         * modules/unictype/block-list-tests: New file.
53691         * modules/unictype/block-of-tests: New file.
53692         * modules/unictype/block-test-tests: New file.
53693         * modules/unictype/category-C-tests: New file.
53694         * modules/unictype/category-Cc-tests: New file.
53695         * modules/unictype/category-Cf-tests: New file.
53696         * modules/unictype/category-Cn-tests: New file.
53697         * modules/unictype/category-Co-tests: New file.
53698         * modules/unictype/category-Cs-tests: New file.
53699         * modules/unictype/category-L-tests: New file.
53700         * modules/unictype/category-Ll-tests: New file.
53701         * modules/unictype/category-Lm-tests: New file.
53702         * modules/unictype/category-Lo-tests: New file.
53703         * modules/unictype/category-Lt-tests: New file.
53704         * modules/unictype/category-Lu-tests: New file.
53705         * modules/unictype/category-M-tests: New file.
53706         * modules/unictype/category-Mc-tests: New file.
53707         * modules/unictype/category-Me-tests: New file.
53708         * modules/unictype/category-Mn-tests: New file.
53709         * modules/unictype/category-N-tests: New file.
53710         * modules/unictype/category-Nd-tests: New file.
53711         * modules/unictype/category-Nl-tests: New file.
53712         * modules/unictype/category-No-tests: New file.
53713         * modules/unictype/category-P-tests: New file.
53714         * modules/unictype/category-Pc-tests: New file.
53715         * modules/unictype/category-Pd-tests: New file.
53716         * modules/unictype/category-Pe-tests: New file.
53717         * modules/unictype/category-Pf-tests: New file.
53718         * modules/unictype/category-Pi-tests: New file.
53719         * modules/unictype/category-Po-tests: New file.
53720         * modules/unictype/category-Ps-tests: New file.
53721         * modules/unictype/category-S-tests: New file.
53722         * modules/unictype/category-Sc-tests: New file.
53723         * modules/unictype/category-Sk-tests: New file.
53724         * modules/unictype/category-Sm-tests: New file.
53725         * modules/unictype/category-So-tests: New file.
53726         * modules/unictype/category-Z-tests: New file.
53727         * modules/unictype/category-Zl-tests: New file.
53728         * modules/unictype/category-Zp-tests: New file.
53729         * modules/unictype/category-Zs-tests: New file.
53730         * modules/unictype/category-and-not-tests: New file.
53731         * modules/unictype/category-and-tests: New file.
53732         * modules/unictype/category-byname-tests: New file.
53733         * modules/unictype/category-name-tests: New file.
53734         * modules/unictype/category-none-tests: New file.
53735         * modules/unictype/category-of-tests: New file.
53736         * modules/unictype/category-or-tests: New file.
53737         * modules/unictype/category-test-withtable-tests: New file.
53738         * modules/unictype/combining-class-tests: New file.
53739         * modules/unictype/ctype-alnum-tests: New file.
53740         * modules/unictype/ctype-alpha-tests: New file.
53741         * modules/unictype/ctype-blank-tests: New file.
53742         * modules/unictype/ctype-cntrl-tests: New file.
53743         * modules/unictype/ctype-digit-tests: New file.
53744         * modules/unictype/ctype-graph-tests: New file.
53745         * modules/unictype/ctype-lower-tests: New file.
53746         * modules/unictype/ctype-print-tests: New file.
53747         * modules/unictype/ctype-punct-tests: New file.
53748         * modules/unictype/ctype-space-tests: New file.
53749         * modules/unictype/ctype-upper-tests: New file.
53750         * modules/unictype/ctype-xdigit-tests: New file.
53751         * modules/unictype/decimal-digit-tests: New file.
53752         * modules/unictype/digit-tests: New file.
53753         * modules/unictype/mirror-tests: New file.
53754         * modules/unictype/numeric-tests: New file.
53755         * modules/unictype/property-alphabetic-tests: New file.
53756         * modules/unictype/property-ascii-hex-digit-tests: New file.
53757         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53758         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53759         * modules/unictype/property-bidi-block-separator-tests: New file.
53760         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53761         * modules/unictype/property-bidi-common-separator-tests: New file.
53762         * modules/unictype/property-bidi-control-tests: New file.
53763         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53764         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53765         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53766         * modules/unictype/property-bidi-european-digit-tests: New file.
53767         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53768         * modules/unictype/property-bidi-left-to-right-tests: New file.
53769         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53770         * modules/unictype/property-bidi-other-neutral-tests: New file.
53771         * modules/unictype/property-bidi-pdf-tests: New file.
53772         * modules/unictype/property-bidi-segment-separator-tests: New file.
53773         * modules/unictype/property-bidi-whitespace-tests: New file.
53774         * modules/unictype/property-byname-tests: New file.
53775         * modules/unictype/property-combining-tests: New file.
53776         * modules/unictype/property-composite-tests: New file.
53777         * modules/unictype/property-currency-symbol-tests: New file.
53778         * modules/unictype/property-dash-tests: New file.
53779         * modules/unictype/property-decimal-digit-tests: New file.
53780         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53781         * modules/unictype/property-deprecated-tests: New file.
53782         * modules/unictype/property-diacritic-tests: New file.
53783         * modules/unictype/property-extender-tests: New file.
53784         * modules/unictype/property-format-control-tests: New file.
53785         * modules/unictype/property-grapheme-base-tests: New file.
53786         * modules/unictype/property-grapheme-extend-tests: New file.
53787         * modules/unictype/property-grapheme-link-tests: New file.
53788         * modules/unictype/property-hex-digit-tests: New file.
53789         * modules/unictype/property-hyphen-tests: New file.
53790         * modules/unictype/property-id-continue-tests: New file.
53791         * modules/unictype/property-id-start-tests: New file.
53792         * modules/unictype/property-ideographic-tests: New file.
53793         * modules/unictype/property-ids-binary-operator-tests: New file.
53794         * modules/unictype/property-ids-trinary-operator-tests: New file.
53795         * modules/unictype/property-ignorable-control-tests: New file.
53796         * modules/unictype/property-iso-control-tests: New file.
53797         * modules/unictype/property-join-control-tests: New file.
53798         * modules/unictype/property-left-of-pair-tests: New file.
53799         * modules/unictype/property-line-separator-tests: New file.
53800         * modules/unictype/property-logical-order-exception-tests: New file.
53801         * modules/unictype/property-lowercase-tests: New file.
53802         * modules/unictype/property-math-tests: New file.
53803         * modules/unictype/property-non-break-tests: New file.
53804         * modules/unictype/property-not-a-character-tests: New file.
53805         * modules/unictype/property-numeric-tests: New file.
53806         * modules/unictype/property-other-alphabetic-tests: New file.
53807         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53808         * modules/unictype/property-other-grapheme-extend-tests: New file.
53809         * modules/unictype/property-other-id-continue-tests: New file.
53810         * modules/unictype/property-other-id-start-tests: New file.
53811         * modules/unictype/property-other-lowercase-tests: New file.
53812         * modules/unictype/property-other-math-tests: New file.
53813         * modules/unictype/property-other-uppercase-tests: New file.
53814         * modules/unictype/property-paired-punctuation-tests: New file.
53815         * modules/unictype/property-paragraph-separator-tests: New file.
53816         * modules/unictype/property-pattern-syntax-tests: New file.
53817         * modules/unictype/property-pattern-white-space-tests: New file.
53818         * modules/unictype/property-private-use-tests: New file.
53819         * modules/unictype/property-punctuation-tests: New file.
53820         * modules/unictype/property-quotation-mark-tests: New file.
53821         * modules/unictype/property-radical-tests: New file.
53822         * modules/unictype/property-sentence-terminal-tests: New file.
53823         * modules/unictype/property-soft-dotted-tests: New file.
53824         * modules/unictype/property-space-tests: New file.
53825         * modules/unictype/property-terminal-punctuation-tests: New file.
53826         * modules/unictype/property-test-tests: New file.
53827         * modules/unictype/property-titlecase-tests: New file.
53828         * modules/unictype/property-unassigned-code-value-tests: New file.
53829         * modules/unictype/property-unified-ideograph-tests: New file.
53830         * modules/unictype/property-uppercase-tests: New file.
53831         * modules/unictype/property-variation-selector-tests: New file.
53832         * modules/unictype/property-white-space-tests: New file.
53833         * modules/unictype/property-xid-continue-tests: New file.
53834         * modules/unictype/property-xid-start-tests: New file.
53835         * modules/unictype/property-zero-width-tests: New file.
53836         * modules/unictype/scripts-tests: New file.
53837         * modules/unictype/syntax-c-ident-tests: New file.
53838         * modules/unictype/syntax-c-whitespace-tests: New file.
53839         * modules/unictype/syntax-java-ident-tests: New file.
53840         * modules/unictype/syntax-java-whitespace-tests: New file.
53841         * tests/unictype/test-bidi_byname.c: New file.
53842         * tests/unictype/test-bidi_name.c: New file.
53843         * tests/unictype/test-bidi_of.c: New file.
53844         * tests/unictype/test-bidi_test.c: New file.
53845         * tests/unictype/test-block_list.c: New file.
53846         * tests/unictype/test-block_of.c: New file.
53847         * tests/unictype/test-block_test.c: New file.
53848         * tests/unictype/test-categ_and.c: New file.
53849         * tests/unictype/test-categ_and_not.c: New file.
53850         * tests/unictype/test-categ_byname.c: New file.
53851         * tests/unictype/test-categ_name.c: New file.
53852         * tests/unictype/test-categ_none.c: New file.
53853         * tests/unictype/test-categ_of.c: New file.
53854         * tests/unictype/test-categ_or.c: New file.
53855         * tests/unictype/test-categ_test_withtable.c: New file.
53856         * tests/unictype/test-combining.c: New file.
53857         * tests/unictype/test-decdigit.c: New file.
53858         * tests/unictype/test-digit.c: New file.
53859         * tests/unictype/test-mirror.c: New file.
53860         * tests/unictype/test-numeric.c: New file.
53861         * tests/unictype/test-pr_byname.c: New file.
53862         * tests/unictype/test-pr_test.c: New file.
53863         * tests/unictype/test-predicate-part1.h: New file.
53864         * tests/unictype/test-predicate-part2.h: New file.
53865         * tests/unictype/test-scripts.c: New file.
53866         * tests/unictype/test-sy_c_ident.c: New file.
53867         * tests/unictype/test-sy_java_ident.c: New file.
53868
53869         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53870         for Unicode 5.0.0.
53871         * tests/unictype/test-categ_Cc.c: Likewise.
53872         * tests/unictype/test-categ_Cf.c: Likewise.
53873         * tests/unictype/test-categ_Cn.c: Likewise.
53874         * tests/unictype/test-categ_Co.c: Likewise.
53875         * tests/unictype/test-categ_Cs.c: Likewise.
53876         * tests/unictype/test-categ_L.c: Likewise.
53877         * tests/unictype/test-categ_Ll.c: Likewise.
53878         * tests/unictype/test-categ_Lm.c: Likewise.
53879         * tests/unictype/test-categ_Lo.c: Likewise.
53880         * tests/unictype/test-categ_Lt.c: Likewise.
53881         * tests/unictype/test-categ_Lu.c: Likewise.
53882         * tests/unictype/test-categ_M.c: Likewise.
53883         * tests/unictype/test-categ_Mc.c: Likewise.
53884         * tests/unictype/test-categ_Me.c: Likewise.
53885         * tests/unictype/test-categ_Mn.c: Likewise.
53886         * tests/unictype/test-categ_N.c: Likewise.
53887         * tests/unictype/test-categ_Nd.c: Likewise.
53888         * tests/unictype/test-categ_Nl.c: Likewise.
53889         * tests/unictype/test-categ_No.c: Likewise.
53890         * tests/unictype/test-categ_P.c: Likewise.
53891         * tests/unictype/test-categ_Pc.c: Likewise.
53892         * tests/unictype/test-categ_Pd.c: Likewise.
53893         * tests/unictype/test-categ_Pe.c: Likewise.
53894         * tests/unictype/test-categ_Pf.c: Likewise.
53895         * tests/unictype/test-categ_Pi.c: Likewise.
53896         * tests/unictype/test-categ_Po.c: Likewise.
53897         * tests/unictype/test-categ_Ps.c: Likewise.
53898         * tests/unictype/test-categ_S.c: Likewise.
53899         * tests/unictype/test-categ_Sc.c: Likewise.
53900         * tests/unictype/test-categ_Sk.c: Likewise.
53901         * tests/unictype/test-categ_Sm.c: Likewise.
53902         * tests/unictype/test-categ_So.c: Likewise.
53903         * tests/unictype/test-categ_Z.c: Likewise.
53904         * tests/unictype/test-categ_Zl.c: Likewise.
53905         * tests/unictype/test-categ_Zp.c: Likewise.
53906         * tests/unictype/test-categ_Zs.c: Likewise.
53907         * tests/unictype/test-ctype_alnum.c: Likewise.
53908         * tests/unictype/test-ctype_alpha.c: Likewise.
53909         * tests/unictype/test-ctype_blank.c: Likewise.
53910         * tests/unictype/test-ctype_cntrl.c: Likewise.
53911         * tests/unictype/test-ctype_digit.c: Likewise.
53912         * tests/unictype/test-ctype_graph.c: Likewise.
53913         * tests/unictype/test-ctype_lower.c: Likewise.
53914         * tests/unictype/test-ctype_print.c: Likewise.
53915         * tests/unictype/test-ctype_punct.c: Likewise.
53916         * tests/unictype/test-ctype_space.c: Likewise.
53917         * tests/unictype/test-ctype_upper.c: Likewise.
53918         * tests/unictype/test-ctype_xdigit.c: Likewise.
53919         * tests/unictype/test-decdigit.h: Likewise.
53920         * tests/unictype/test-digit.h: Likewise.
53921         * tests/unictype/test-numeric.h: Likewise.
53922         * tests/unictype/test-pr_alphabetic.c: Likewise.
53923         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53924         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53925         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53926         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53927         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53928         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53929         * tests/unictype/test-pr_bidi_control.c: Likewise.
53930         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53931         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53932         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53933         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53934         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53935         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53936         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53937         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53938         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53939         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53940         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53941         * tests/unictype/test-pr_combining.c: Likewise.
53942         * tests/unictype/test-pr_composite.c: Likewise.
53943         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53944         * tests/unictype/test-pr_dash.c: Likewise.
53945         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53946         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53947         * tests/unictype/test-pr_deprecated.c: Likewise.
53948         * tests/unictype/test-pr_diacritic.c: Likewise.
53949         * tests/unictype/test-pr_extender.c: Likewise.
53950         * tests/unictype/test-pr_format_control.c: Likewise.
53951         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53952         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53953         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53954         * tests/unictype/test-pr_hex_digit.c: Likewise.
53955         * tests/unictype/test-pr_hyphen.c: Likewise.
53956         * tests/unictype/test-pr_id_continue.c: Likewise.
53957         * tests/unictype/test-pr_id_start.c: Likewise.
53958         * tests/unictype/test-pr_ideographic.c: Likewise.
53959         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53960         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53961         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53962         * tests/unictype/test-pr_iso_control.c: Likewise.
53963         * tests/unictype/test-pr_join_control.c: Likewise.
53964         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53965         * tests/unictype/test-pr_line_separator.c: Likewise.
53966         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53967         * tests/unictype/test-pr_lowercase.c: Likewise.
53968         * tests/unictype/test-pr_math.c: Likewise.
53969         * tests/unictype/test-pr_non_break.c: Likewise.
53970         * tests/unictype/test-pr_not_a_character.c: Likewise.
53971         * tests/unictype/test-pr_numeric.c: Likewise.
53972         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53973         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53974         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53975         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53976         * tests/unictype/test-pr_other_id_start.c: Likewise.
53977         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53978         * tests/unictype/test-pr_other_math.c: Likewise.
53979         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53980         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53981         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53982         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53983         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53984         * tests/unictype/test-pr_private_use.c: Likewise.
53985         * tests/unictype/test-pr_punctuation.c: Likewise.
53986         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53987         * tests/unictype/test-pr_radical.c: Likewise.
53988         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
53989         * tests/unictype/test-pr_soft_dotted.c: Likewise.
53990         * tests/unictype/test-pr_space.c: Likewise.
53991         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
53992         * tests/unictype/test-pr_titlecase.c: Likewise.
53993         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
53994         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
53995         * tests/unictype/test-pr_uppercase.c: Likewise.
53996         * tests/unictype/test-pr_variation_selector.c: Likewise.
53997         * tests/unictype/test-pr_white_space.c: Likewise.
53998         * tests/unictype/test-pr_xid_continue.c: Likewise.
53999         * tests/unictype/test-pr_xid_start.c: Likewise.
54000         * tests/unictype/test-pr_zero_width.c: Likewise.
54001         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54002         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54003
54004 2007-11-12  Bruno Haible  <bruno@clisp.org>
54005
54006         Unicode character classification functions.
54007         * lib/unictype.h: New file.
54008         * modules/unictype/base: New file.
54009         * modules/unictype/category-L: New file.
54010         * modules/unictype/category-Lu: New file.
54011         * modules/unictype/category-Ll: New file.
54012         * modules/unictype/category-Lt: New file.
54013         * modules/unictype/category-Lm: New file.
54014         * modules/unictype/category-Lo: New file.
54015         * modules/unictype/category-M: New file.
54016         * modules/unictype/category-Mn: New file.
54017         * modules/unictype/category-Mc: New file.
54018         * modules/unictype/category-Me: New file.
54019         * modules/unictype/category-N: New file.
54020         * modules/unictype/category-Nd: New file.
54021         * modules/unictype/category-Nl: New file.
54022         * modules/unictype/category-No: New file.
54023         * modules/unictype/category-P: New file.
54024         * modules/unictype/category-Pc: New file.
54025         * modules/unictype/category-Pd: New file.
54026         * modules/unictype/category-Ps: New file.
54027         * modules/unictype/category-Pe: New file.
54028         * modules/unictype/category-Pi: New file.
54029         * modules/unictype/category-Pf: New file.
54030         * modules/unictype/category-Po: New file.
54031         * modules/unictype/category-S: New file.
54032         * modules/unictype/category-Sm: New file.
54033         * modules/unictype/category-Sc: New file.
54034         * modules/unictype/category-Sk: New file.
54035         * modules/unictype/category-So: New file.
54036         * modules/unictype/category-Z: New file.
54037         * modules/unictype/category-Zs: New file.
54038         * modules/unictype/category-Zl: New file.
54039         * modules/unictype/category-Zp: New file.
54040         * modules/unictype/category-C: New file.
54041         * modules/unictype/category-Cc: New file.
54042         * modules/unictype/category-Cf: New file.
54043         * modules/unictype/category-Cs: New file.
54044         * modules/unictype/category-Co: New file.
54045         * modules/unictype/category-Cn: New file.
54046         * modules/unictype/category-or: New file.
54047         * modules/unictype/category-of: New file.
54048         * modules/unictype/category-test: New file.
54049         * modules/unictype/category-test-withtable: New file.
54050         * modules/unictype/category-byname: New file.
54051         * modules/unictype/category-none: New file.
54052         * modules/unictype/category-and: New file.
54053         * modules/unictype/category-and-not: New file.
54054         * modules/unictype/category-name: New file.
54055         * modules/unictype/combining-class: New file.
54056         * modules/unictype/category-all: New file.
54057         * modules/unictype/bidicategory-all: New file.
54058         * modules/unictype/bidicategory-byname: New file.
54059         * modules/unictype/bidicategory-name: New file.
54060         * modules/unictype/bidicategory-of: New file.
54061         * modules/unictype/bidicategory-test: New file.
54062         * modules/unictype/decimal-digit: New file.
54063         * modules/unictype/digit: New file.
54064         * modules/unictype/numeric: New file.
54065         * modules/unictype/mirror: New file.
54066         * modules/unictype/property-white-space: New file.
54067         * modules/unictype/property-alphabetic: New file.
54068         * modules/unictype/property-other-alphabetic: New file.
54069         * modules/unictype/property-not-a-character: New file.
54070         * modules/unictype/property-default-ignorable-code-point: New file.
54071         * modules/unictype/property-other-default-ignorable-code-point: New
54072         file.
54073         * modules/unictype/property-deprecated: New file.
54074         * modules/unictype/property-logical-order-exception: New file.
54075         * modules/unictype/property-variation-selector: New file.
54076         * modules/unictype/property-private-use: New file.
54077         * modules/unictype/property-unassigned-code-value: New file.
54078         * modules/unictype/property-uppercase: New file.
54079         * modules/unictype/property-other-uppercase: New file.
54080         * modules/unictype/property-lowercase: New file.
54081         * modules/unictype/property-other-lowercase: New file.
54082         * modules/unictype/property-titlecase: New file.
54083         * modules/unictype/property-soft-dotted: New file.
54084         * modules/unictype/property-id-start: New file.
54085         * modules/unictype/property-other-id-start: New file.
54086         * modules/unictype/property-id-continue: New file.
54087         * modules/unictype/property-other-id-continue: New file.
54088         * modules/unictype/property-xid-start: New file.
54089         * modules/unictype/property-xid-continue: New file.
54090         * modules/unictype/property-pattern-white-space: New file.
54091         * modules/unictype/property-pattern-syntax: New file.
54092         * modules/unictype/property-join-control: New file.
54093         * modules/unictype/property-grapheme-base: New file.
54094         * modules/unictype/property-grapheme-extend: New file.
54095         * modules/unictype/property-other-grapheme-extend: New file.
54096         * modules/unictype/property-grapheme-link: New file.
54097         * modules/unictype/property-bidi-control: New file.
54098         * modules/unictype/property-bidi-left-to-right: New file.
54099         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54100         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54101         * modules/unictype/property-bidi-european-digit: New file.
54102         * modules/unictype/property-bidi-eur-num-separator: New file.
54103         * modules/unictype/property-bidi-eur-num-terminator: New file.
54104         * modules/unictype/property-bidi-arabic-digit: New file.
54105         * modules/unictype/property-bidi-common-separator: New file.
54106         * modules/unictype/property-bidi-block-separator: New file.
54107         * modules/unictype/property-bidi-segment-separator: New file.
54108         * modules/unictype/property-bidi-whitespace: New file.
54109         * modules/unictype/property-bidi-non-spacing-mark: New file.
54110         * modules/unictype/property-bidi-boundary-neutral: New file.
54111         * modules/unictype/property-bidi-pdf: New file.
54112         * modules/unictype/property-bidi-embedding-or-override: New file.
54113         * modules/unictype/property-bidi-other-neutral: New file.
54114         * modules/unictype/property-hex-digit: New file.
54115         * modules/unictype/property-ascii-hex-digit: New file.
54116         * modules/unictype/property-ideographic: New file.
54117         * modules/unictype/property-unified-ideograph: New file.
54118         * modules/unictype/property-radical: New file.
54119         * modules/unictype/property-ids-binary-operator: New file.
54120         * modules/unictype/property-ids-trinary-operator: New file.
54121         * modules/unictype/property-zero-width: New file.
54122         * modules/unictype/property-space: New file.
54123         * modules/unictype/property-non-break: New file.
54124         * modules/unictype/property-iso-control: New file.
54125         * modules/unictype/property-format-control: New file.
54126         * modules/unictype/property-dash: New file.
54127         * modules/unictype/property-hyphen: New file.
54128         * modules/unictype/property-punctuation: New file.
54129         * modules/unictype/property-line-separator: New file.
54130         * modules/unictype/property-paragraph-separator: New file.
54131         * modules/unictype/property-quotation-mark: New file.
54132         * modules/unictype/property-sentence-terminal: New file.
54133         * modules/unictype/property-terminal-punctuation: New file.
54134         * modules/unictype/property-currency-symbol: New file.
54135         * modules/unictype/property-math: New file.
54136         * modules/unictype/property-other-math: New file.
54137         * modules/unictype/property-paired-punctuation: New file.
54138         * modules/unictype/property-left-of-pair: New file.
54139         * modules/unictype/property-combining: New file.
54140         * modules/unictype/property-composite: New file.
54141         * modules/unictype/property-decimal-digit: New file.
54142         * modules/unictype/property-numeric: New file.
54143         * modules/unictype/property-diacritic: New file.
54144         * modules/unictype/property-extender: New file.
54145         * modules/unictype/property-ignorable-control: New file.
54146         * modules/unictype/property-test: New file.
54147         * modules/unictype/property-byname: New file.
54148         * modules/unictype/property-all: New file.
54149         * modules/unictype/scripts: New file.
54150         * modules/unictype/scripts-all: New file.
54151         * modules/unictype/block-of: New file.
54152         * modules/unictype/block-test: New file.
54153         * modules/unictype/block-list: New file.
54154         * modules/unictype/block-all: New file.
54155         * modules/unictype/syntax-c-whitespace: New file.
54156         * modules/unictype/syntax-java-whitespace: New file.
54157         * modules/unictype/syntax-c-ident: New file.
54158         * modules/unictype/syntax-java-ident: New file.
54159         * modules/unictype/ctype-alnum: New file.
54160         * modules/unictype/ctype-alpha: New file.
54161         * modules/unictype/ctype-cntrl: New file.
54162         * modules/unictype/ctype-digit: New file.
54163         * modules/unictype/ctype-graph: New file.
54164         * modules/unictype/ctype-lower: New file.
54165         * modules/unictype/ctype-print: New file.
54166         * modules/unictype/ctype-punct: New file.
54167         * modules/unictype/ctype-space: New file.
54168         * modules/unictype/ctype-upper: New file.
54169         * modules/unictype/ctype-xdigit: New file.
54170         * modules/unictype/ctype-blank: New file.
54171         * lib/unictype/bidi_byname.c: New file.
54172         * lib/unictype/bidi_name.c: New file.
54173         * lib/unictype/bidi_of.c: New file.
54174         * lib/unictype/bidi_test.c: New file.
54175         * lib/unictype/bitmap.h: New file.
54176         * lib/unictype/block_test.c: New file.
54177         * lib/unictype/blocks.c: New file.
54178         * lib/unictype/categ_C.c: New file.
54179         * lib/unictype/categ_Cc.c: New file.
54180         * lib/unictype/categ_Cf.c: New file.
54181         * lib/unictype/categ_Cn.c: New file.
54182         * lib/unictype/categ_Co.c: New file.
54183         * lib/unictype/categ_Cs.c: New file.
54184         * lib/unictype/categ_L.c: New file.
54185         * lib/unictype/categ_Ll.c: New file.
54186         * lib/unictype/categ_Lm.c: New file.
54187         * lib/unictype/categ_Lo.c: New file.
54188         * lib/unictype/categ_Lt.c: New file.
54189         * lib/unictype/categ_Lu.c: New file.
54190         * lib/unictype/categ_M.c: New file.
54191         * lib/unictype/categ_Mc.c: New file.
54192         * lib/unictype/categ_Me.c: New file.
54193         * lib/unictype/categ_Mn.c: New file.
54194         * lib/unictype/categ_N.c: New file.
54195         * lib/unictype/categ_Nd.c: New file.
54196         * lib/unictype/categ_Nl.c: New file.
54197         * lib/unictype/categ_No.c: New file.
54198         * lib/unictype/categ_P.c: New file.
54199         * lib/unictype/categ_Pc.c: New file.
54200         * lib/unictype/categ_Pd.c: New file.
54201         * lib/unictype/categ_Pe.c: New file.
54202         * lib/unictype/categ_Pf.c: New file.
54203         * lib/unictype/categ_Pi.c: New file.
54204         * lib/unictype/categ_Po.c: New file.
54205         * lib/unictype/categ_Ps.c: New file.
54206         * lib/unictype/categ_S.c: New file.
54207         * lib/unictype/categ_Sc.c: New file.
54208         * lib/unictype/categ_Sk.c: New file.
54209         * lib/unictype/categ_Sm.c: New file.
54210         * lib/unictype/categ_So.c: New file.
54211         * lib/unictype/categ_Z.c: New file.
54212         * lib/unictype/categ_Zl.c: New file.
54213         * lib/unictype/categ_Zp.c: New file.
54214         * lib/unictype/categ_Zs.c: New file.
54215         * lib/unictype/categ_and.c: New file.
54216         * lib/unictype/categ_and_not.c: New file.
54217         * lib/unictype/categ_byname.c: New file.
54218         * lib/unictype/categ_name.c: New file.
54219         * lib/unictype/categ_none.c: New file.
54220         * lib/unictype/categ_of.c: New file.
54221         * lib/unictype/categ_or.c: New file.
54222         * lib/unictype/categ_test.c: New file.
54223         * lib/unictype/combining.c: New file.
54224         * lib/unictype/ctype_alnum.c: New file.
54225         * lib/unictype/ctype_alpha.c: New file.
54226         * lib/unictype/ctype_blank.c: New file.
54227         * lib/unictype/ctype_cntrl.c: New file.
54228         * lib/unictype/ctype_digit.c: New file.
54229         * lib/unictype/ctype_graph.c: New file.
54230         * lib/unictype/ctype_lower.c: New file.
54231         * lib/unictype/ctype_print.c: New file.
54232         * lib/unictype/ctype_punct.c: New file.
54233         * lib/unictype/ctype_space.c: New file.
54234         * lib/unictype/ctype_upper.c: New file.
54235         * lib/unictype/ctype_xdigit.c: New file.
54236         * lib/unictype/decdigit.c: New file.
54237         * lib/unictype/digit.c: New file.
54238         * lib/unictype/identsyntaxmap.h: New file.
54239         * lib/unictype/mirror.c: New file.
54240         * lib/unictype/numeric.c: New file.
54241         * lib/unictype/pr_alphabetic.c: New file.
54242         * lib/unictype/pr_ascii_hex_digit.c: New file.
54243         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54244         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54245         * lib/unictype/pr_bidi_block_separator.c: New file.
54246         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54247         * lib/unictype/pr_bidi_common_separator.c: New file.
54248         * lib/unictype/pr_bidi_control.c: New file.
54249         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54250         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54251         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54252         * lib/unictype/pr_bidi_european_digit.c: New file.
54253         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54254         * lib/unictype/pr_bidi_left_to_right.c: New file.
54255         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54256         * lib/unictype/pr_bidi_other_neutral.c: New file.
54257         * lib/unictype/pr_bidi_pdf.c: New file.
54258         * lib/unictype/pr_bidi_segment_separator.c: New file.
54259         * lib/unictype/pr_bidi_whitespace.c: New file.
54260         * lib/unictype/pr_byname.c: New file.
54261         * lib/unictype/pr_byname.gperf: New file.
54262         * lib/unictype/pr_combining.c: New file.
54263         * lib/unictype/pr_composite.c: New file.
54264         * lib/unictype/pr_currency_symbol.c: New file.
54265         * lib/unictype/pr_dash.c: New file.
54266         * lib/unictype/pr_decimal_digit.c: New file.
54267         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54268         * lib/unictype/pr_deprecated.c: New file.
54269         * lib/unictype/pr_diacritic.c: New file.
54270         * lib/unictype/pr_extender.c: New file.
54271         * lib/unictype/pr_format_control.c: New file.
54272         * lib/unictype/pr_grapheme_base.c: New file.
54273         * lib/unictype/pr_grapheme_extend.c: New file.
54274         * lib/unictype/pr_grapheme_link.c: New file.
54275         * lib/unictype/pr_hex_digit.c: New file.
54276         * lib/unictype/pr_hyphen.c: New file.
54277         * lib/unictype/pr_id_continue.c: New file.
54278         * lib/unictype/pr_id_start.c: New file.
54279         * lib/unictype/pr_ideographic.c: New file.
54280         * lib/unictype/pr_ids_binary_operator.c: New file.
54281         * lib/unictype/pr_ids_trinary_operator.c: New file.
54282         * lib/unictype/pr_ignorable_control.c: New file.
54283         * lib/unictype/pr_iso_control.c: New file.
54284         * lib/unictype/pr_join_control.c: New file.
54285         * lib/unictype/pr_left_of_pair.c: New file.
54286         * lib/unictype/pr_line_separator.c: New file.
54287         * lib/unictype/pr_logical_order_exception.c: New file.
54288         * lib/unictype/pr_lowercase.c: New file.
54289         * lib/unictype/pr_math.c: New file.
54290         * lib/unictype/pr_non_break.c: New file.
54291         * lib/unictype/pr_not_a_character.c: New file.
54292         * lib/unictype/pr_numeric.c: New file.
54293         * lib/unictype/pr_other_alphabetic.c: New file.
54294         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54295         * lib/unictype/pr_other_grapheme_extend.c: New file.
54296         * lib/unictype/pr_other_id_continue.c: New file.
54297         * lib/unictype/pr_other_id_start.c: New file.
54298         * lib/unictype/pr_other_lowercase.c: New file.
54299         * lib/unictype/pr_other_math.c: New file.
54300         * lib/unictype/pr_other_uppercase.c: New file.
54301         * lib/unictype/pr_paired_punctuation.c: New file.
54302         * lib/unictype/pr_paragraph_separator.c: New file.
54303         * lib/unictype/pr_pattern_syntax.c: New file.
54304         * lib/unictype/pr_pattern_white_space.c: New file.
54305         * lib/unictype/pr_private_use.c: New file.
54306         * lib/unictype/pr_punctuation.c: New file.
54307         * lib/unictype/pr_quotation_mark.c: New file.
54308         * lib/unictype/pr_radical.c: New file.
54309         * lib/unictype/pr_sentence_terminal.c: New file.
54310         * lib/unictype/pr_soft_dotted.c: New file.
54311         * lib/unictype/pr_space.c: New file.
54312         * lib/unictype/pr_terminal_punctuation.c: New file.
54313         * lib/unictype/pr_test.c: New file.
54314         * lib/unictype/pr_titlecase.c: New file.
54315         * lib/unictype/pr_unassigned_code_value.c: New file.
54316         * lib/unictype/pr_unified_ideograph.c: New file.
54317         * lib/unictype/pr_uppercase.c: New file.
54318         * lib/unictype/pr_variation_selector.c: New file.
54319         * lib/unictype/pr_white_space.c: New file.
54320         * lib/unictype/pr_xid_continue.c: New file.
54321         * lib/unictype/pr_xid_start.c: New file.
54322         * lib/unictype/pr_zero_width.c: New file.
54323         * lib/unictype/scripts.c: New file.
54324         * lib/unictype/sy_c_ident.c: New file.
54325         * lib/unictype/sy_c_whitespace.c: New file.
54326         * lib/unictype/sy_java_ident.c: New file.
54327         * lib/unictype/sy_java_whitespace.c: New file.
54328
54329         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54330         Unicode 5.0.0.
54331         * lib/unictype/blocks.h: Likewise.
54332         * lib/unictype/categ_C.h: Likewise.
54333         * lib/unictype/categ_Cc.h: Likewise.
54334         * lib/unictype/categ_Cf.h: Likewise.
54335         * lib/unictype/categ_Cn.h: Likewise.
54336         * lib/unictype/categ_Co.h: Likewise.
54337         * lib/unictype/categ_Cs.h: Likewise.
54338         * lib/unictype/categ_L.h: Likewise.
54339         * lib/unictype/categ_Ll.h: Likewise.
54340         * lib/unictype/categ_Lm.h: Likewise.
54341         * lib/unictype/categ_Lo.h: Likewise.
54342         * lib/unictype/categ_Lt.h: Likewise.
54343         * lib/unictype/categ_Lu.h: Likewise.
54344         * lib/unictype/categ_M.h: Likewise.
54345         * lib/unictype/categ_Mc.h: Likewise.
54346         * lib/unictype/categ_Me.h: Likewise.
54347         * lib/unictype/categ_Mn.h: Likewise.
54348         * lib/unictype/categ_N.h: Likewise.
54349         * lib/unictype/categ_Nd.h: Likewise.
54350         * lib/unictype/categ_Nl.h: Likewise.
54351         * lib/unictype/categ_No.h: Likewise.
54352         * lib/unictype/categ_P.h: Likewise.
54353         * lib/unictype/categ_Pc.h: Likewise.
54354         * lib/unictype/categ_Pd.h: Likewise.
54355         * lib/unictype/categ_Pe.h: Likewise.
54356         * lib/unictype/categ_Pf.h: Likewise.
54357         * lib/unictype/categ_Pi.h: Likewise.
54358         * lib/unictype/categ_Po.h: Likewise.
54359         * lib/unictype/categ_Ps.h: Likewise.
54360         * lib/unictype/categ_S.h: Likewise.
54361         * lib/unictype/categ_Sc.h: Likewise.
54362         * lib/unictype/categ_Sk.h: Likewise.
54363         * lib/unictype/categ_Sm.h: Likewise.
54364         * lib/unictype/categ_So.h: Likewise.
54365         * lib/unictype/categ_Z.h: Likewise.
54366         * lib/unictype/categ_Zl.h: Likewise.
54367         * lib/unictype/categ_Zp.h: Likewise.
54368         * lib/unictype/categ_Zs.h: Likewise.
54369         * lib/unictype/categ_of.h: Likewise.
54370         * lib/unictype/combining.h: Likewise.
54371         * lib/unictype/ctype_alnum.h: Likewise.
54372         * lib/unictype/ctype_alpha.h: Likewise.
54373         * lib/unictype/ctype_blank.h: Likewise.
54374         * lib/unictype/ctype_cntrl.h: Likewise.
54375         * lib/unictype/ctype_digit.h: Likewise.
54376         * lib/unictype/ctype_graph.h: Likewise.
54377         * lib/unictype/ctype_lower.h: Likewise.
54378         * lib/unictype/ctype_print.h: Likewise.
54379         * lib/unictype/ctype_punct.h: Likewise.
54380         * lib/unictype/ctype_space.h: Likewise.
54381         * lib/unictype/ctype_upper.h: Likewise.
54382         * lib/unictype/ctype_xdigit.h: Likewise.
54383         * lib/unictype/decdigit.h: Likewise.
54384         * lib/unictype/digit.h: Likewise.
54385         * lib/unictype/mirror.h: Likewise.
54386         * lib/unictype/numeric.h: Likewise.
54387         * lib/unictype/pr_alphabetic.h: Likewise.
54388         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54389         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54390         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54391         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54392         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54393         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54394         * lib/unictype/pr_bidi_control.h: Likewise.
54395         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54396         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54397         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54398         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54399         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54400         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54401         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54402         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54403         * lib/unictype/pr_bidi_pdf.h: Likewise.
54404         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54405         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54406         * lib/unictype/pr_combining.h: Likewise.
54407         * lib/unictype/pr_composite.h: Likewise.
54408         * lib/unictype/pr_currency_symbol.h: Likewise.
54409         * lib/unictype/pr_dash.h: Likewise.
54410         * lib/unictype/pr_decimal_digit.h: Likewise.
54411         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54412         * lib/unictype/pr_deprecated.h: Likewise.
54413         * lib/unictype/pr_diacritic.h: Likewise.
54414         * lib/unictype/pr_extender.h: Likewise.
54415         * lib/unictype/pr_format_control.h: Likewise.
54416         * lib/unictype/pr_grapheme_base.h: Likewise.
54417         * lib/unictype/pr_grapheme_extend.h: Likewise.
54418         * lib/unictype/pr_grapheme_link.h: Likewise.
54419         * lib/unictype/pr_hex_digit.h: Likewise.
54420         * lib/unictype/pr_hyphen.h: Likewise.
54421         * lib/unictype/pr_id_continue.h: Likewise.
54422         * lib/unictype/pr_id_start.h: Likewise.
54423         * lib/unictype/pr_ideographic.h: Likewise.
54424         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54425         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54426         * lib/unictype/pr_ignorable_control.h: Likewise.
54427         * lib/unictype/pr_iso_control.h: Likewise.
54428         * lib/unictype/pr_join_control.h: Likewise.
54429         * lib/unictype/pr_left_of_pair.h: Likewise.
54430         * lib/unictype/pr_line_separator.h: Likewise.
54431         * lib/unictype/pr_logical_order_exception.h: Likewise.
54432         * lib/unictype/pr_lowercase.h: Likewise.
54433         * lib/unictype/pr_math.h: Likewise.
54434         * lib/unictype/pr_non_break.h: Likewise.
54435         * lib/unictype/pr_not_a_character.h: Likewise.
54436         * lib/unictype/pr_numeric.h: Likewise.
54437         * lib/unictype/pr_other_alphabetic.h: Likewise.
54438         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54439         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54440         * lib/unictype/pr_other_id_continue.h: Likewise.
54441         * lib/unictype/pr_other_id_start.h: Likewise.
54442         * lib/unictype/pr_other_lowercase.h: Likewise.
54443         * lib/unictype/pr_other_math.h: Likewise.
54444         * lib/unictype/pr_other_uppercase.h: Likewise.
54445         * lib/unictype/pr_paired_punctuation.h: Likewise.
54446         * lib/unictype/pr_paragraph_separator.h: Likewise.
54447         * lib/unictype/pr_pattern_syntax.h: Likewise.
54448         * lib/unictype/pr_pattern_white_space.h: Likewise.
54449         * lib/unictype/pr_private_use.h: Likewise.
54450         * lib/unictype/pr_punctuation.h: Likewise.
54451         * lib/unictype/pr_quotation_mark.h: Likewise.
54452         * lib/unictype/pr_radical.h: Likewise.
54453         * lib/unictype/pr_sentence_terminal.h: Likewise.
54454         * lib/unictype/pr_soft_dotted.h: Likewise.
54455         * lib/unictype/pr_space.h: Likewise.
54456         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54457         * lib/unictype/pr_titlecase.h: Likewise.
54458         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54459         * lib/unictype/pr_unified_ideograph.h: Likewise.
54460         * lib/unictype/pr_uppercase.h: Likewise.
54461         * lib/unictype/pr_variation_selector.h: Likewise.
54462         * lib/unictype/pr_white_space.h: Likewise.
54463         * lib/unictype/pr_xid_continue.h: Likewise.
54464         * lib/unictype/pr_xid_start.h: Likewise.
54465         * lib/unictype/pr_zero_width.h: Likewise.
54466         * lib/unictype/scripts.h: Likewise.
54467         * lib/unictype/scripts_byname.gperf: Likewise.
54468         * lib/unictype/sy_c_ident.h: Likewise.
54469         * lib/unictype/sy_c_whitespace.h: Likewise.
54470         * lib/unictype/sy_java_ident.h: Likewise.
54471         * lib/unictype/sy_java_whitespace.h: Likewise.
54472
54473         * lib/unictype/Makefile: New file.
54474         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54475         glibc.
54476         * lib/unictype/3level.h: New file, copied from glibc.
54477         * lib/unictype/3levelbit.h: New file.
54478
54479 2007-11-11  Bruno Haible  <bruno@clisp.org>
54480
54481         * modules/gperf: New file.
54482         * modules/iconv_open (Depends-on): Add it.
54483         (Makefile.am): Remove the GPERF definition.
54484
54485 2007-11-11  Bruno Haible  <bruno@clisp.org>
54486
54487         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54488         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54489
54490 2007-11-11  Bruno Haible  <bruno@clisp.org>
54491
54492         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54493         (usage): Remove function.
54494
54495 2007-11-11  Bruno Haible  <bruno@clisp.org>
54496
54497         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54498         gl_FUNC_CEILF_LIBS.
54499         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54500         gl_FUNC_CEIL_LIBS.
54501         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54502         gl_FUNC_CEILL_LIBS.
54503         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54504         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54505         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54506
54507 2007-11-11  Bruno Haible  <bruno@clisp.org>
54508
54509         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54510         roundf were declared but do not exist on functions.
54511         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54512         roundl were declared but do not exist on functions.
54513         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54514         HAVE_FLOORL_AND_CEILL, respectively.
54515         Needed for Sun C on Solaris 10.
54516
54517 2007-11-11  Bruno Haible  <bruno@clisp.org>
54518
54519         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54520         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54521         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54522         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54523         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54524         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54525         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54526         HAVE_DECL_ROUNDF.
54527         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54528         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54530         of HAVE_DECL_ROUND*.
54531         * modules/math (Makefile.am): Update.
54532
54533 2007-11-10  Bruno Haible  <bruno@clisp.org>
54534
54535         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54536         ptrdiff_t as m4/intl.m4.
54537
54538 2007-11-10  Jim Meyering  <meyering@redhat.com>
54539
54540         Avoid link failure for the argmatch test.
54541         * tests/test-argmatch.c (usage): Define function to avoid a link
54542         failure: argmatch_die requires a usage function.
54543
54544 2007-11-09  Bruno Haible  <bruno@clisp.org>
54545
54546         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54547         * doc/functions/vsnprintf.texi: Likewise.
54548         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54549         with a size argument < 2.
54550
54551 2007-11-09  Bruno Haible  <bruno@clisp.org>
54552
54553         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54554         buffer. Fixes an inefficiency introduced on 2007-11-03.
54555
54556 2007-11-09  Bruno Haible  <bruno@clisp.org>
54557
54558         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54559         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54560
54561 2007-11-08  Jim Meyering  <meyering@redhat.com>
54562
54563         Change cache variable name prefix "jm_" to "gl_" everywhere.
54564         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54565         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54566         * m4/uptime.m4: s/gl_/jm_/
54567
54568 2007-11-07  Bruno Haible  <bruno@clisp.org>
54569
54570         Update to GNU gettext 0.17.
54571         * m4/intl.m4: Update to GNU gettext 0.17.
54572         * m4/po.m4: Likewise.
54573         * modules/gettext (Files): Remove m4/ulonglong.m4.
54574         (configure.ac): Require gettext infrastructure from version 0.17.
54575
54576 2007-11-06  Bruno Haible  <bruno@clisp.org>
54577
54578         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54579         symbolic values are not defined in a public header.
54580         * lib/freadable.c (freadable) [QNX]: Likewise.
54581         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54582         * lib/freading.c (freading) [QNX]: Likewise.
54583         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54584         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54585         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54586         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54587         Reported by Alain Magloire.
54588
54589         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54590
54591 2007-11-05  Bruno Haible  <bruno@clisp.org>
54592
54593         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54594         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54595         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54596         Reported by Eric Blake.
54597
54598 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54599             Bruno Haible  <bruno@clisp.org>
54600
54601         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54602         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54603         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54604         (malloc): Undefine also before including <stdlib.h>.
54605         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54606         Needed on OSF/1 4.0.
54607
54608 2007-11-05  Jim Meyering  <meyering@redhat.com>
54609
54610         git-version-gen: sync from coreutils.
54611         * build-aux/git-version-gen: Add comments.
54612         Change the first '-' to '.' in the snapshot version string,
54613         e.g., 6.9-377-08144 -> 6.9.377-08144
54614         Remove first parameter.
54615         Don't declare a version "-dirty" merely because a time
54616         stamp has changed.
54617
54618 2007-11-04  Bruno Haible  <bruno@clisp.org>
54619
54620         * lib/lock.h: Protect all macro definitions containing an 'if'
54621         statement through a "do { ... } while (0)".
54622         * lib/tls.h: Likewise.
54623
54624 2007-11-04  Bruno Haible  <bruno@clisp.org>
54625
54626         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54627
54628 2007-11-04  Bruno Haible  <bruno@clisp.org>
54629
54630         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54631         * modules/fprintf-posix (Depends-on): Add nocrash.
54632         * modules/snprintf-posix (Depends-on): Likewise.
54633         * modules/sprintf-posix (Depends-on): Likewise.
54634         * modules/vasnprintf-posix (Depends-on): Likewise.
54635         * modules/vasprintf-posix (Depends-on): Likewise.
54636         * modules/vfprintf-posix (Depends-on): Likewise.
54637         * modules/vsnprintf-posix (Depends-on): Likewise.
54638         * modules/vsprintf-posix (Depends-on): Likewise.
54639         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54640         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54641         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54642         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54643         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54644         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54645         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54646
54647 2007-11-04  Bruno Haible  <bruno@clisp.org>
54648
54649         * modules/nocrash: New file.
54650         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54651         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54652
54653 2007-11-04  Bruno Haible  <bruno@clisp.org>
54654
54655         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54656         precision handling.
54657         * tests/test-vasprintf-posix.c (test_function): Likewise.
54658         * tests/test-snprintf-posix.h (test_function): Likewise.
54659         * tests/test-sprintf-posix.h (test_function): Likewise.
54660
54661         Fix *printf behaviour for large precisions on mingw and BeOS.
54662         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54663         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54665         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54667         gl_PRINTF_PRECISION and test its result. Invoke
54668         gl_PREREQ_VASNPRINTF_PRECISION.
54669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54670         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54671         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54672         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54673         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54674         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54675         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54676         * doc/functions/fprintf.texi: Update.
54677         * doc/functions/printf.texi: Update.
54678         * doc/functions/snprintf.texi: Update.
54679         * doc/functions/sprintf.texi: Update.
54680         * doc/functions/vfprintf.texi: Update.
54681         * doc/functions/vprintf.texi: Update.
54682         * doc/functions/vsnprintf.texi: Update.
54683         * doc/functions/vsprintf.texi: Update.
54684
54685 2007-11-04  Bruno Haible  <bruno@clisp.org>
54686
54687         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54688
54689 2007-11-04  Bruno Haible  <bruno@clisp.org>
54690
54691         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54692         Reported by Sylvain Beucler <beuc@gnu.org>.
54693
54694 2007-11-03  Bruno Haible  <bruno@clisp.org>
54695
54696         * tests/test-fprintf-posix2.sh: New file.
54697         * tests/test-fprintf-posix2.c: New file.
54698         * modules/fprintf-posix-tests (Files): Add them.
54699         (TESTS): Add test-fprintf-posix2.sh.
54700         (configure.ac): Check for getrlimit and setrlimit.
54701         (check_PROGRAMS): Add test-fprintf-posix2.
54702
54703         * tests/test-printf-posix2.sh: New file.
54704         * tests/test-printf-posix2.c: New file.
54705         * modules/printf-posix-tests (Files): Add them.
54706         (TESTS): Add test-printf-posix2.sh.
54707         (configure.ac): Check for getrlimit and setrlimit.
54708         (check_PROGRAMS): Add test-printf-posix2.
54709
54710         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54711         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54712         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54713         (decode_double): New function, copied from decode_long_double.
54714         (scale10_round_decimal_decoded): New function, extracted from
54715         scale10_round_decimal_long_double.
54716         (scale10_round_decimal_long_double): Use it.
54717         (scale10_round_decimal_double): New function.
54718         (floorlog10): New function.
54719         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54720         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54721         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54722         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54723         gl_PRINTF_ENOMEM and test its result. Invoke
54724         gl_PREREQ_VASNPRINTF_ENOMEM.
54725         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54726         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54727         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54728         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54729         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54731         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54732         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54733         * modules/snprintf-posix (Depends-on): Likewise.
54734         * modules/sprintf-posix (Depends-on): Likewise.
54735         * modules/vasnprintf-posix (Depends-on): Likewise.
54736         * modules/vasprintf-posix (Depends-on): Likewise.
54737         * modules/vfprintf-posix (Depends-on): Likewise.
54738         * modules/vsnprintf-posix (Depends-on): Likewise.
54739         * modules/vsprintf-posix (Depends-on): Likewise.
54740         * doc/functions/fprintf.texi: Update.
54741         * doc/functions/printf.texi: Update.
54742         * doc/functions/snprintf.texi: Update.
54743         * doc/functions/sprintf.texi: Update.
54744         * doc/functions/vfprintf.texi: Update.
54745         * doc/functions/vprintf.texi: Update.
54746         * doc/functions/vsnprintf.texi: Update.
54747         * doc/functions/vsprintf.texi: Update.
54748
54749 2007-11-03  Bruno Haible  <bruno@clisp.org>
54750
54751         * modules/frexp-nolibm-tests: New file.
54752
54753         * modules/frexp-nolibm: New file.
54754         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54755
54756 2007-11-03  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54759         value is C99 compliant.
54760         Needed for OSF/1 5.1.
54761
54762 2007-11-03  Bruno Haible  <bruno@clisp.org>
54763
54764         Fix out-of-memory handling of vasnprintf.
54765         * lib/printf-parse.c: Include <errno.h>.
54766         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54767         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54768         is already set.
54769
54770 2007-11-02  Eric Blake  <ebb9@byu.net>
54771
54772         Fix tests on cygwin.
54773         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54774
54775 2007-11-01  Bruno Haible  <bruno@clisp.org>
54776
54777         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54778         warning.
54779         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54780         needed for POSIX compatibility.
54781
54782 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54783
54784         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54785         for compatibility with GNU.
54786
54787 2007-11-01  Bruno Haible  <bruno@clisp.org>
54788
54789         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54790         (putenv): Renamed from rpl_putenv. Change argument type from
54791         'const char *' to 'char *'.
54792         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54793         of defining putenv in config.h, just set REPLACE_PUTENV.
54794         * modules/putenv (Depends-on): Add stdlib.
54795         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54796         (Include): Use <stdlib.h>.
54797         * lib/stdlib.in.h (putenv): New declaration.
54798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54799         REPLACE_PUTENV.
54800         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54801         REPLACE_PUTENV.
54802         Needed for MacOS X 10.5.0.
54803         Reported by Peter O'Gorman <peter@pogma.com>.
54804
54805 2007-11-01  Jim Meyering  <meyering@redhat.com>
54806
54807         Treat an empty date string exactly like "0".
54808         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54809         if the remaining date string (to be parsed) is empty, use "0".
54810         Reported by Mischa Molhoek and discussed in this thread:
54811         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54812
54813 2007-10-31  Bruno Haible  <bruno@clisp.org>
54814
54815         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54816         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54817         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54818         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54819         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54820         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54821
54822 2007-10-31  Bruno Haible  <bruno@clisp.org>
54823
54824         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54825         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54826         (AC_TYPE_LONG_LONG_INT): Use it.
54827         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54828         it as well.
54829         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54830         to m4/longlong.m4.
54831         * modules/stdint (Files): Remove m4/ulonglong.m4.
54832         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54833         m4/ulonglong.m4.
54834         * modules/strtoumax (Files): Likewise.
54835
54836 2007-10-30  Bruno Haible  <bruno@clisp.org>
54837
54838         * modules/xvasprintf-posix: New file.
54839         Suggested by Eric Blake.
54840
54841 2007-10-30  Bruno Haible  <bruno@clisp.org>
54842
54843         * modules/xprintf-posix-tests: New file.
54844         * tests/test-xprintf-posix.sh: New file.
54845         * tests/test-xprintf-posix.c: New file.
54846         * tests/test-xfprintf-posix.c: New file.
54847
54848         * modules/xprintf-posix: New file.
54849
54850 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54851
54852         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54853         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54854         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54855
54856 2007-10-29  Bruno Haible  <bruno@clisp.org>
54857
54858         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54859         contain the special marker '_cv_'.
54860         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54861         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54862         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54863         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54864         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54865         Reported by Ralf Wildenhues.
54866
54867 2007-10-29  Bruno Haible  <bruno@clisp.org>
54868
54869         * gnulib-tool (func_import): When --lgpl is not specified, set
54870         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54871         GPLv3.
54872         Reported by Simon Josefsson.
54873
54874 2007-10-28  Bruno Haible  <bruno@clisp.org>
54875
54876         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54877         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54878         HAVE_DECL_ISFINITE.
54879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54880         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54881         HAVE_DECL_ISFINITE.
54882
54883 2007-10-28  Bruno Haible  <bruno@clisp.org>
54884
54885         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54886         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54887
54888 2007-10-28  Bruno Haible  <bruno@clisp.org>
54889
54890         Fix link errors with Sun C 5.0 on Solaris 10.
54891         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54892         function is declared but not present in the compiler's libm.
54893         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54894         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54895         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54896         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54897         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54898         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54899         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54901         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54902         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54903         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54904         HAVE_DECL_FLOORL.
54905
54906 2007-10-28  Bruno Haible  <bruno@clisp.org>
54907
54908         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54909         gl_FUNC_FLOORL. Cache the result.
54910         (gl_FUNC_FLOORL): Use it.
54911         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54912         gl_FUNC_CEILL. Cache the result.
54913         (gl_FUNC_CEILL): Use it.
54914
54915         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54916         gl_FUNC_FLOOR. Cache the result.
54917         (gl_FUNC_FLOOR): Use it.
54918         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54919         gl_FUNC_CEIL. Cache the result.
54920         (gl_FUNC_CEIL): Use it.
54921
54922         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54923         gl_FUNC_FLOORF. Cache the result.
54924         (gl_FUNC_FLOORF): Use it.
54925         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54926         gl_FUNC_CEILF. Cache the result.
54927         (gl_FUNC_CEILF): Use it.
54928
54929 2007-10-28  Bruno Haible  <bruno@clisp.org>
54930
54931         * gnulib-tool: Allow specifying the LGPL version number through
54932         --lgpl=2 or --lgpl=3.
54933         (func_usage): Document --lgpl with argument.
54934         Handle --lgpl=... arguments.
54935         (func_import): Recognize also gl_LGPL calls with an argument. When
54936         --lgpl=2 is used and the module's license is just LGPL, report an
54937         error. Set sed_transform_lib_file according to the lgpl variable. In
54938         the generated files, use --lgpl or gl_LGPL invocations with argument,
54939         if necessary.
54940         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54941         an LGPv2+ license.
54942         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54943         gl_LGPL macro.
54944
54945 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54946             Bruno Haible  <bruno@clisp.org>
54947
54948         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54949         (u16_uctomb_aux): Likewise.
54950         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54951         !HAVE_INLINE.
54952         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54953
54954 2007-10-28  Bruno Haible  <bruno@clisp.org>
54955
54956         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54957         Invoke AM_GETTEXT_OPTION if it exists.
54958         * modules/vasprintf: Likewise.
54959         * modules/verror: Likewise.
54960         * modules/xprintf: Likewise.
54961         * modules/xvasprintf: Likewise.
54962
54963 2007-10-27  Ben Pfaff  <blp@gnu.org>
54964
54965         * lib/math.in.h: Define isfinite macro and prototypes for
54966         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54967         implementations.
54968         * m4/math_h.m4: New substitutions for isfinite module.
54969         * lib/isfinite.c: New file.
54970         * m4/isfinite.m4: New file.
54971         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54972         * modules/isfinite: New file.
54973         * modules/isfinite-tests: New file.
54974         * tests/tests-isfinite.c: New file.
54975         * doc/functions/isfinite.texi: Mention isfinite module.
54976         * MODULES.html.sh: Mention new module.
54977
54978 2007-10-27  Ben Pfaff  <blp@gnu.org>
54979
54980         Ralf Wildenhues reported that Tru64 4.0D declares the round
54981         functions but does not have definitions.
54982         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54983         cannot be found in any library, set the output variable to
54984         "missing" instead of "".
54985         * m4/round.m4: Also use our substitute if we cannot find round in
54986         any library, even if it is declared.
54987         * m4/roundf.m4: Likewise for roundf.
54988         * m4/roundl.m4: Likewise for roundl.
54989         * lib/math.in.h: Undefine roundf, round, roundl before defining
54990         their replacements, to allow for hypothetical systems where these
54991         may be defined as macros but not available in libraries.
54992
54993 2007-10-27  Bruno Haible  <bruno@clisp.org>
54994
54995         * doc/gnulib.texi: Invoke @firstparagraphindent.
54996         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
54997         changes in gnulib.
54998         (Source changes): New section.
54999
55000 2007-10-26  Bruno Haible  <bruno@clisp.org>
55001
55002         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55003         borrowed from autoconf.
55004
55005 2007-10-26  Bruno Haible  <bruno@clisp.org>
55006
55007         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55008         strerror returned the empty string. Needed on HP-UX 11.00.
55009
55010 2007-10-24  Micah Cowan  <micah@cowan.name>
55011
55012         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55013         * build-aux/bootstrap: Remove support for now-unnecessary option,
55014         --cvs-user, and envvars CVS_USER, CVS_RSH.
55015
55016 2007-10-24  Jim Meyering  <meyering@redhat.com>
55017
55018         Avoid diagnostics from sha1sum when there is no cached checksum.
55019         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55020         if the po.s1 file hasn't been created yet.
55021
55022         * build-aux/bootstrap: Sync from coreutils:
55023         2007-10-24  Jim Meyering  <meyering@redhat.com>
55024         Get gnulib from the git repository, not from an obsolete cvs one.
55025         * build-aux/bootstrap: Suggestion from Micah Cowan.
55026         2007-10-04  Jim Meyering  <jim@meyering.net>
55027         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55028         (update_po_files): Work also when there are no .po files in po/.
55029
55030 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55031
55032         * README: Append ".git" to git and cg examples.
55033         Problem reported by Benoit Sigoure.
55034
55035 2007-10-23  Micah Cowan  <micah@cowan.name>
55036
55037         * users.txt: Add wget.
55038
55039 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55040
55041         Fix linking of some unistdio tests on FreeBSD.
55042         * modules/unistdio/u16-vsnprintf-tests
55043         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55044         * modules/unistdio/u16-vsprintf-tests
55045         (test_u16_vsnprintf1_LDADD): Likewise.
55046         * modules/unistdio/u32-vsnprintf-tests
55047         (test_u32_vsnprintf1_LDADD): Likewise.
55048         * modules/unistdio/u32-vsprintf-tests
55049         (test_u32_vsprintf1_LDADD): Likewise.
55050         * modules/unistdio/u8-vsnprintf-tests
55051         (test_u8_vsnprintf1_LDADD): Likewise.
55052         * modules/unistdio/u8-vsprintf-tests
55053         (test_u8_vsprintf1_LDADD): Likewise.
55054         * modules/unistdio/ulc-vsnprintf-tests
55055         (test_ulc_vsnprintf1_LDADD): Likewise.
55056         * modules/unistdio/ulc-vsprintf-tests
55057         (test_ulc_vsprintf1_LDADD): Likewise.
55058
55059         Fix linking of some uniconv tests on FreeBSD.
55060         * modules/uniconv/u16-conv-from-enc-tests
55061         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55062         * modules/uniconv/u16-conv-to-enc-tests
55063         (test_u16_conv_to_enc_LDADD): Likewise.
55064         * modules/uniconv/u16-strconv-from-enc-tests
55065         (test_u16_strconv_from_enc_LDADD): Likewise.
55066         * modules/uniconv/u16-strconv-to-enc-tests
55067         (test_u16_strconv_to_enc_LDADD): Likewise.
55068         * modules/uniconv/u32-conv-from-enc-tests
55069         (test_u32_conv_from_enc_LDADD): Likewise.
55070         * modules/uniconv/u32-conv-to-enc-tests
55071         (test_u32_conv_to_enc_LDADD): Likewise.
55072         * modules/uniconv/u32-strconv-from-enc-tests
55073         (test_u32_strconv_from_enc_LDADD): Likewise.
55074         * modules/uniconv/u32-strconv-to-enc-tests
55075         (test_u32_strconv_to_enc_LDADD): Likewise.
55076         * modules/uniconv/u8-conv-from-enc-tests
55077         (test_u8_conv_from_enc_LDADD): Likewise.
55078         * modules/uniconv/u8-conv-to-enc-tests
55079         (test_u8_conv_to_enc_LDADD): Likewise.
55080         * modules/uniconv/u8-strconv-from-enc-tests
55081         (test_u8_strconv_from_enc_LDADD): Likewise.
55082         * modules/uniconv/u8-strconv-to-enc-tests
55083         (test_u8_strconv_to_enc_LDADD): Likewise.
55084
55085 2007-10-22  Bruno Haible  <bruno@clisp.org>
55086
55087         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55088         size.
55089
55090 2007-10-22  Eric Blake  <ebb9@byu.net>
55091
55092         Tweak x*printf documentation.
55093         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55094         variable name and comments.
55095         Suggested by Bruno Haible.
55096
55097 2007-10-22  Bruno Haible  <bruno@clisp.org>
55098
55099         * lib/acl.c (copy_acl): Fix file name in comment.
55100
55101 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55102
55103         Fix Tru64 problem with stdbool.h.
55104         * lib/stdbool.in.h (false, true):
55105         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55106         Don't declare as an enum in this situation; it runs afoul of Tru64.
55107         Problem reported by Steven M. Schweda in
55108         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55109
55110 2007-10-22  Eric Blake  <ebb9@byu.net>
55111
55112         Also wrap vf?printf.
55113         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55114         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55115         (xvprintf, xvfprintf): New functions.
55116
55117 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55118
55119         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55120         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55121
55122         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55123         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55124
55125 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55126
55127         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55128         by Bruno Haible.
55129
55130 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55131
55132         * lib/getloadavg.c
55133         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55134         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55135
55136         * tests/test-i-ring.c: Work for C89.
55137
55138 2007-10-22  Bruno Haible  <bruno@clisp.org>
55139
55140         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55141         -1u, in preprocessor expression, so that we don't test for the bug
55142         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55144
55145 2007-10-22  Eric Blake  <ebb9@byu.net>
55146
55147         * tests/test-yesno.sh: Silence stderr during test.
55148
55149 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55150
55151         * modules/crypto/gc-camellia: New file.
55152
55153         * m4/gc-camellia.m4: New file.
55154
55155         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55156
55157         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55158
55159 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55160
55161         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55162         --help to stdout.  Reported by sms@antinode.org (Steven
55163         M. Schweda).
55164
55165 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55166
55167         * users.txt: Fix link to libksba.
55168
55169 2007-10-21  Ben Pfaff  <blp@gnu.org>
55170
55171         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55172         round.c roundf implementation that depends on floorf and ceilf to
55173         be tested unconditionally.
55174
55175 2007-10-21  Ben Pfaff  <blp@gnu.org>
55176
55177         * m4/check-libm-func.m4: Removed.
55178         * m4/check-math-lib.m4: New file.
55179         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55180         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55181         definition and lack of AC_LIBOBJ([roundf]).
55182         * m4/roundl.m4: Ditto, and similarly for roundl.
55183         * modules/round: Reference new m4 file.
55184         * modules/roundf: Ditto.
55185         * modules/roundl: Ditto.
55186         * tests/test-round2.c (main): Use ROUND instead of round.
55187         Bug report from Bruno Haible.
55188
55189 2007-10-21  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55192         context.
55193
55194 2007-10-21  Bruno Haible  <bruno@clisp.org>
55195
55196         * tests/test-wcwidth.c (main): Allow negative result for some control
55197         characters.
55198
55199         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55200         Needed on OSF/1 5.1.
55201
55202 2007-10-21  Bruno Haible  <bruno@clisp.org>
55203
55204         * tests/test-floorf1.c: Include isnanf.h.
55205         (main): Use isnanf() instead of isnan().
55206         * tests/test-ceilf1.c: Include isnanf.h.
55207         (main): Use isnanf() instead of isnan().
55208         * tests/test-truncf1.c: Include isnanf.h.
55209         (main): Use isnanf() instead of isnan().
55210         * tests/test-roundf1.c: Include isnanf.h.
55211         (main): Use isnanf() instead of isnan().
55212
55213 2007-10-21  Eric Blake  <ebb9@byu.net>
55214
55215         * users.txt: Update URL for m4.
55216
55217 2007-10-21  Bruno Haible  <bruno@clisp.org>
55218
55219         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55220
55221 2007-10-21  Bruno Haible  <bruno@clisp.org>
55222
55223         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55224         Git's management files if the CVS files are not present.
55225
55226 2007-10-20  Bruno Haible  <bruno@clisp.org>
55227
55228         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55229         gcc-3.4.x.
55230
55231 2007-10-20  Ben Pfaff  <blp@gnu.org>
55232
55233         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55234         implementations.
55235         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55236         * lib/round.c: New file.
55237         * lib/roundf.c: New file.
55238         * lib/roundl.c: New file.
55239         * m4/round.m4: New file.
55240         * m4/roundf.m4: New file.
55241         * m4/roundl.m4: New file.
55242         * m4/check-libm-func-m4: New file.
55243         * modules/math: Replace round, roundf, roundl related @VARS@ in
55244         math.in.h.
55245         * modules/round: New file.
55246         * modules/round-tests: New file.
55247         * modules/roundf: New file.
55248         * modules/roundf-tests: New file.
55249         * modules/roundl: New file.
55250         * modules/roundl-tests: New file.
55251         * tests/test-round1.c: New file.
55252         * tests/test-round2.c: New file.
55253         * tests/test-roundf1.c: New file.
55254         * tests/test-roundf2.c: New file.
55255         * tests/test-roundl.c: New file.
55256         * doc/functions/round.texi: Mention round module.
55257         * doc/functions/roundf.texi: Mention roundf module.
55258         * doc/functions/roundl.texi: Mention roundl module.
55259         * MODULES.html.sh: Mention new modules.
55260         Thanks to Bruno Haible for suggestions.
55261
55262 2007-10-20  Jim Meyering  <meyering@redhat.com>
55263
55264         * lib/xprintf.c: Include <config.h> unconditionally.
55265
55266         Change xprintf's license to GPL.
55267         * modules/xprintf (License): s/LGPL/GPL/, since this module
55268         depends on modules (exit and exitfail) which are GPL.
55269         Suggestion from Bruno Haible.
55270
55271         xprintf fixes.
55272         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55273         Use a clearer diagnostic.
55274         Patch from Bruno Haible.
55275
55276 2007-10-20  Bruno Haible  <bruno@clisp.org>
55277
55278         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55279         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55280         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55281
55282 2007-10-20  Bruno Haible  <bruno@clisp.org>
55283
55284         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55285         precision in the comparison result > x - 1 or similar.
55286         * tests/test-ceilf2.c (correct_result_p): Likewise.
55287         * tests/test-truncf2.c (correct_result_p): Likewise.
55288         * tests/test-trunc2.c (correct_result_p): Likewise.
55289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55290
55291 2007-10-20  Bruno Haible  <bruno@clisp.org>
55292
55293         * modules/ceil: New file.
55294         * m4/ceil.m4: New file.
55295         * doc/functions/ceil.texi: Mention the 'ceil' module.
55296
55297 2007-10-20  Bruno Haible  <bruno@clisp.org>
55298
55299         * modules/floor: New file.
55300         * m4/floor.m4: New file.
55301         * doc/functions/floor.texi: Mention the 'floor' module.
55302
55303 2007-10-20  Bruno Haible  <bruno@clisp.org>
55304
55305         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55306         of %a.
55307         * modules/floorf-tests (Depends-on): Likewise.
55308         * modules/truncf-tests (Depends-on): Likewise.
55309         * modules/trunc-tests (Depends-on): Likewise.
55310         Reported by Ben Pfaff.
55311
55312 2007-10-19  Jim Meyering  <meyering@redhat.com>
55313
55314         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55315         Don't bother testing specific errno values.  Just test ferror.
55316
55317         New module: xprintf
55318         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55319
55320 2007-10-19  Bruno Haible  <bruno@clisp.org>
55321
55322         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55323         syntax.
55324         * modules/javaexec (Makefile.am): Likewise.
55325         * modules/relocatable-prog (Makefile.am): Likewise.
55326         Suggested by Jim Meyering.
55327
55328 2007-10-18  Bruno Haible  <bruno@clisp.org>
55329
55330         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55331         Reported by Jim Meyering.
55332
55333 2007-10-18  Eric Blake  <ebb9@byu.net>
55334
55335         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55336
55337 2007-10-18  Bruno Haible  <bruno@clisp.org>
55338
55339         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55340         the format string into writable memory. Needed in Fortify conditions.
55341
55342 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55343             Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55346         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55347         * modules/trim (Depends-on): Add mbchar.
55348         (configure.ac): Add gl_FUNC_MBRTOWC.
55349         (Makefile.am): Augment lib_SOURCES.
55350
55351 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         Modify glob.c to use fstatat and dirfd, to simplify it.
55354         Suggested by Eric Blake.
55355         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55356         Don't include <stdbool.h>; not used.
55357         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55358         (link_exists_p): Simplify implementation, since we can now assume
55359         dirfd and fstatat.
55360         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55361
55362 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55363
55364         * gnulib-tool (func_get_dependencies): Fix sed script to
55365         match only tests.
55366
55367 2007-10-17  Bruno Haible  <bruno@clisp.org>
55368
55369         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55370         allow locale names without encoding suffix.
55371         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55372         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55373
55374 2007-10-16  Bruno Haible  <bruno@clisp.org>
55375
55376         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55377         * lib/getgroups.c (getgroups): Likewise.
55378         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55379
55380 2007-10-16  Bruno Haible  <bruno@clisp.org>
55381
55382         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55383         * modules/malloc-posix (License): Likewise.
55384         * modules/realloc-posix (License): Likewise.
55385         * modules/calloc-posix (License): Likewise.
55386         * modules/intprops (License): Change from GPL to LGPL, with
55387         Paul Eggert's approval.
55388
55389 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55390
55391         Merge glibc changes into lib/glob.c.
55392
55393         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55394         2007-10-15 04:59:03 UTC.  Here are the changes:
55395
55396         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55397
55398         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55399
55400         * lib/glob.c: Add some branch prediction throughout.
55401
55402         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55403
55404         [BZ #5103]
55405         * lib/glob.c (glob): Recognize patterns starting \/.
55406
55407         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55408
55409         [BZ #3996]
55410         * lib/glob.c (attribute_hidden): Define if not defined.
55411         (glob): Unescape dirname, filename or username when needed and not
55412         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55413         is NULL.  Handle unescaped [ in pattern without closing ].
55414         Don't pass GLOB_CHECK down to recursive glob for directories.
55415         (__glob_pattern_type): New function.
55416         (__glob_pattern_p): Implement using __glob_pattern_type.
55417         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55418         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55419         Remove unreachable code.
55420
55421         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55422
55423         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55424         explain why there are no leaks.
55425
55426         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55427
55428         [BZ #3253]
55429         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55430         time, rather allocate increasingly bigger arrays of pointers, if
55431         possible with alloca, if too large with malloc.
55432
55433 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55434
55435         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55436         Problem reported by H.Merijn Brand in
55437         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55438         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55439         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55440
55441 2007-10-15  Bruno Haible  <bruno@clisp.org>
55442
55443         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55444         with explicit rpl_ prefix.
55445         * lib/fopen.c (fopen): Likewise.
55446         * lib/freopen.c (freopen): Likewise.
55447         * lib/iconv.c (iconv): Likewise.
55448         * lib/iconv_close.c (iconv_close): Likewise.
55449
55450 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55451
55452         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55453
55454 2007-10-15  Bruno Haible  <bruno@clisp.org>
55455
55456         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55457         <stddef.h> instead of <stdlib.h> since we only need NULL.
55458         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55459
55460 2007-10-15  Bruno Haible  <bruno@clisp.org>
55461
55462         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55463         Replace paragraph talking about LIBOBJS.
55464         Reported by Colin Watson <cjwatson@debian.org>.
55465
55466 2007-10-15  Bruno Haible  <bruno@clisp.org>
55467
55468         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55469         <stdlib.h> before using NULL.
55470
55471 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55472
55473         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55474         Reported by Albert Chin <china@thewrittenword.com>.
55475
55476 2007-10-14  Bruno Haible  <bruno@clisp.org>
55477
55478         * modules/iconv_open-utf-tests: New file.
55479         * tests/test-iconv-utf.c: New file.
55480
55481         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55482         * modules/iconv_open-utf: New file.
55483         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55484         (iconv, iconv_close): New declarations.
55485         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55486         be defined.
55487         (iconv_open): Add special handling of conversion between UTF-8 and
55488         UTF-{16,32}{BE,LE}.
55489         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55490         * lib/iconv_close.c: New file.
55491         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55492         gl_FUNC_ICONV_OPEN.
55493         (gl_FUNC_ICONV_OPEN): Use it.
55494         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55495         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55496         and REPLACE_ICONV_UTF.
55497         * modules/iconv_open (Depends-on): Add c-strcase.
55498         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55499         ICONV_CONST.
55500         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55501
55502 2007-10-13  Albert Chin  <china@thewrittenword.com>
55503             Bruno Haible  <bruno@clisp.org>
55504
55505         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55506         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55507
55508 2007-10-13  Bruno Haible  <bruno@clisp.org>
55509
55510         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55511         defined, use the ISO C99 inline semantics.
55512         * lib/argp.h (ARGP_EI): Likewise.
55513
55514 2007-10-13  Bruno Haible  <bruno@clisp.org>
55515
55516         Handle 'inline' change in gcc 4.3.0.
55517         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55518         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55519         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55520         argp_fmtstream_point): Disable 'extern' declaration if the function
55521         definition is going to be provided inline.
55522         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55523         semantics, not the ISO C99 inline semantics.
55524         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55525         'extern' declaration if the function definition is going to be provided
55526         inline.
55527         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55528         the GNU C inline semantics, not the ISO C99 inline semantics. With
55529         GCC 4.2, avoid a warning.
55530
55531 2007-10-13  Bruno Haible  <bruno@clisp.org>
55532
55533         * lib/freading.h (freading): Enable the use of __freading for
55534         glibc >= 2.7.
55535         * lib/freading.c (freading): Likewise.
55536
55537 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55538
55539         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55540         "warning: C99 inline functions are not supported; using GNU89".
55541
55542 2007-10-12  Bruno Haible  <bruno@clisp.org>
55543
55544         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55545         of 2.
55546         * tests/test-ceilf2.c: New file.
55547         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55548
55549         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55550         * modules/ceilf-tests: Update.
55551
55552 2007-10-12  Bruno Haible  <bruno@clisp.org>
55553
55554         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55555         of 2.
55556         * tests/test-floorf2.c: New file.
55557         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55558
55559         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55560         * modules/floorf-tests: Update.
55561
55562 2007-10-12  Bruno Haible  <bruno@clisp.org>
55563
55564         * tests/test-trunc2.c: New file.
55565         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55566
55567         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55568         * modules/trunc-tests: Update.
55569
55570 2007-10-12  Bruno Haible  <bruno@clisp.org>
55571
55572         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55573         of 2.
55574         * tests/test-truncf2.c: New file.
55575         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55576
55577         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55578         * modules/truncf-tests: Update.
55579
55580 2007-10-11  Eric Blake  <ebb9@byu.net>
55581
55582         Don't claim strerror is broken on Interix.
55583         * doc/functions/strerror.texi (strerror): Known broken systems are
55584         now Solaris 8, and not Interix.
55585         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55586         Interix on cross-compile.
55587         Reported by Martin Koeppe in
55588         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55589
55590 2007-10-11  Bruno Haible  <bruno@clisp.org>
55591
55592         * modules/i-ring-tests: New file.
55593         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55594         instead of assert.
55595
55596 2007-10-11  Bruno Haible  <bruno@clisp.org>
55597
55598         * modules/filenamecat-tests: New file.
55599         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55600         * lib/filenamecat.c: Remove test code.
55601
55602 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55603
55604         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55605
55606         * lib/strerror.c: Include <string.h> always, to test interface,
55607         and to remove the need for the dummy.
55608         Include intprops.h to compute width instead of doing it ourselves
55609         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55610         (strerror): Define it to return NULL if there's no system strerror.
55611         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55612         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55613         ancient pre-strerror Unix systems well any more.  Saying "unknown
55614         system error" is enough.
55615         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55616         simpler strerror.c implementation.
55617         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55618         Simplify the tests to reflect the simpler strerror implementation.
55619         * modules/strerror (Depends-on): Add intprops.
55620
55621 2007-10-09  Eric Blake  <ebb9@byu.net>
55622
55623         Silence test-fpending.
55624         * modules/fpending-tests (Files): Add wrapper script.
55625         * tests/test-fpending.sh: New file.
55626
55627 2007-10-09  Bruno Haible  <bruno@clisp.org>
55628
55629         * MODULES.html.sh (func_module): Don't create a hyperlink for
55630         function names like 'printf_frexp'.
55631         (Misc): Add crc, memxor.
55632         (Characteristics of floating types): New section.
55633         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55634         isnanf-nolibm, signbit, trunc, truncf, truncl.
55635         (Enhancements for ISO C 99 functions): New subsection Input/output.
55636         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55637         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55638         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55639         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55640         (Enhancements for POSIX:2001 functions): Add chdir-long.
55641         (File system functions): Add areadlink, chdir-safer, read-file.
55642         Remove cycle-check.
55643         (File system as inode set): New section.
55644         (Date and time): Add gethrxtime.
55645         (Multithreading): Add openmp.
55646         (Internationalization functions): Add localename.
55647         (Unicode string functions): Add unistr/u*-mbsnlen.
55648         (Support for maintaining and releasing projects): Add git-version-gen.
55649         (Lone files): Remove directories.
55650
55651 2007-10-08  Ben Pfaff  <blp@gnu.org>
55652
55653         * lib/xmalloca.h: Fix typo in comment.
55654
55655 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55656
55657         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55658         when avoiding problems with integer overflow.  Use a portable test
55659         instead.
55660
55661 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55662
55663         * modules/dummy (License): Change to LGPLv2+.
55664         * modules/float (License): Likewise
55665         * modules/realloc (License): Likewise
55666         * modules/stdlib (License): Likewise
55667
55668 2007-10-07  Bruno Haible  <bruno@clisp.org>
55669
55670         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55671         * floor.c (TWO_MANT_DIG): Likewise.
55672         * ceil.c (TWO_MANT_DIG): Likewise.
55673         Reported by Ben Pfaff.
55674
55675 2007-10-07  Bruno Haible  <bruno@clisp.org>
55676
55677         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55678         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55679         * lib/frexp.c (FUNC): Likewise.
55680         * lib/printf-frexp.h (printf_frexp): Likewise.
55681         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55682         * lib/printf-frexp.c (FUNC): Likewise.
55683         Suggested by Jim Meyering.
55684
55685 2007-10-07  Jim Meyering  <meyering@redhat.com>
55686
55687         Make xnanosleep's integer overflow test more robust.
55688         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55689         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55690
55691 2007-10-07  Bruno Haible  <bruno@clisp.org>
55692
55693         * NEWS: Mention the license change.
55694
55695         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55696         abbreviations in the modules files.
55697
55698         Change copyright notice from GPLv2+ to GPLv3+.
55699         * README: Change copyright notice.
55700         * MODULES.html.sh: Likewise.
55701         * build-aux/bootstrap.conf: Likewise.
55702         * build-aux/config.libpath: Likewise.
55703         * build-aux/csharpcomp.sh.in: Likewise.
55704         * build-aux/csharpexec.sh.in: Likewise.
55705         * build-aux/install-reloc: Likewise.
55706         * build-aux/javacomp.sh.in: Likewise.
55707         * build-aux/javaexec.sh.in: Likewise.
55708         * build-aux/ldd.sh.in: Likewise.
55709         * build-aux/reloc-ldflags: Likewise.
55710         * build-aux/relocatable.sh.in: Likewise.
55711         * build-aux/x-to-1.in: Likewise.
55712         * check-module: Likewise.
55713         * config/srclistvars.sh: Likewise.
55714         * gnulib-tool: Likewise.
55715         * lib/acl-internal.h: Likewise.
55716         * lib/acl.c: Likewise.
55717         * lib/acl.h: Likewise.
55718         * lib/acl_entries.c: Likewise.
55719         * lib/areadlink-with-size.c: Likewise.
55720         * lib/areadlink.c: Likewise.
55721         * lib/areadlink.h: Likewise.
55722         * lib/argmatch.c: Likewise.
55723         * lib/argmatch.h: Likewise.
55724         * lib/argp-ba.c: Likewise.
55725         * lib/argp-eexst.c: Likewise.
55726         * lib/argp-fmtstream.c: Likewise.
55727         * lib/argp-fmtstream.h: Likewise.
55728         * lib/argp-fs-xinl.c: Likewise.
55729         * lib/argp-help.c: Likewise.
55730         * lib/argp-namefrob.h: Likewise.
55731         * lib/argp-parse.c: Likewise.
55732         * lib/argp-pin.c: Likewise.
55733         * lib/argp-pv.c: Likewise.
55734         * lib/argp-pvh.c: Likewise.
55735         * lib/argp-xinl.c: Likewise.
55736         * lib/argp.h: Likewise.
55737         * lib/at-func.c: Likewise.
55738         * lib/atanl.c: Likewise.
55739         * lib/backupfile.c: Likewise.
55740         * lib/backupfile.h: Likewise.
55741         * lib/basename.c: Likewise.
55742         * lib/binary-io.h: Likewise.
55743         * lib/byteswap.in.h: Likewise.
55744         * lib/c-stack.c: Likewise.
55745         * lib/c-stack.h: Likewise.
55746         * lib/c-strcasestr.c: Likewise.
55747         * lib/c-strcasestr.h: Likewise.
55748         * lib/c-strstr.c: Likewise.
55749         * lib/c-strstr.h: Likewise.
55750         * lib/c-strtod.c: Likewise.
55751         * lib/calloc.c: Likewise.
55752         * lib/canon-host.c: Likewise.
55753         * lib/canon-host.h: Likewise.
55754         * lib/canonicalize-lgpl.c: Likewise.
55755         * lib/canonicalize.c: Likewise.
55756         * lib/canonicalize.h: Likewise.
55757         * lib/ceil.c: Likewise.
55758         * lib/ceilf.c: Likewise.
55759         * lib/ceill.c: Likewise.
55760         * lib/chdir-long.c: Likewise.
55761         * lib/chdir-long.h: Likewise.
55762         * lib/chdir-safer.c: Likewise.
55763         * lib/chdir-safer.h: Likewise.
55764         * lib/chown.c: Likewise.
55765         * lib/classpath.c: Likewise.
55766         * lib/classpath.h: Likewise.
55767         * lib/clean-temp.c: Likewise.
55768         * lib/clean-temp.h: Likewise.
55769         * lib/cloexec.c: Likewise.
55770         * lib/close-stream.c: Likewise.
55771         * lib/closein.c: Likewise.
55772         * lib/closein.h: Likewise.
55773         * lib/closeout.c: Likewise.
55774         * lib/closeout.h: Likewise.
55775         * lib/concat-filename.c: Likewise.
55776         * lib/copy-file.c: Likewise.
55777         * lib/copy-file.h: Likewise.
55778         * lib/count-one-bits.h: Likewise.
55779         * lib/crc.c: Likewise.
55780         * lib/crc.h: Likewise.
55781         * lib/creat-safer.c: Likewise.
55782         * lib/csharpcomp.c: Likewise.
55783         * lib/csharpcomp.h: Likewise.
55784         * lib/csharpexec.c: Likewise.
55785         * lib/csharpexec.h: Likewise.
55786         * lib/cycle-check.c: Likewise.
55787         * lib/cycle-check.h: Likewise.
55788         * lib/diacrit.c: Likewise.
55789         * lib/diacrit.h: Likewise.
55790         * lib/diffseq.h: Likewise.
55791         * lib/dirchownmod.c: Likewise.
55792         * lib/dirent.in.h: Likewise.
55793         * lib/dirfd.c: Likewise.
55794         * lib/dirfd.h: Likewise.
55795         * lib/dirname.c: Likewise.
55796         * lib/dirname.h: Likewise.
55797         * lib/dummy.c: Likewise.
55798         * lib/dup-safer.c: Likewise.
55799         * lib/dup2.c: Likewise.
55800         * lib/eealloc.h: Likewise.
55801         * lib/error.c: Likewise.
55802         * lib/error.h: Likewise.
55803         * lib/euidaccess.c: Likewise.
55804         * lib/exclude.c: Likewise.
55805         * lib/exclude.h: Likewise.
55806         * lib/execute.c: Likewise.
55807         * lib/execute.h: Likewise.
55808         * lib/exitfail.c: Likewise.
55809         * lib/exitfail.h: Likewise.
55810         * lib/expl.c: Likewise.
55811         * lib/fatal-signal.c: Likewise.
55812         * lib/fatal-signal.h: Likewise.
55813         * lib/fbufmode.c: Likewise.
55814         * lib/fbufmode.h: Likewise.
55815         * lib/fchdir.c: Likewise.
55816         * lib/fchmodat.c: Likewise.
55817         * lib/fchownat.c: Likewise.
55818         * lib/fcntl--.h: Likewise.
55819         * lib/fcntl-safer.h: Likewise.
55820         * lib/fcntl.in.h: Likewise.
55821         * lib/fd-safer.c: Likewise.
55822         * lib/fflush.c: Likewise.
55823         * lib/file-has-acl.c: Likewise.
55824         * lib/file-set.c: Likewise.
55825         * lib/file-type.c: Likewise.
55826         * lib/file-type.h: Likewise.
55827         * lib/fileblocks.c: Likewise.
55828         * lib/filemode.c: Likewise.
55829         * lib/filemode.h: Likewise.
55830         * lib/filename.h: Likewise.
55831         * lib/filenamecat.c: Likewise.
55832         * lib/filenamecat.h: Likewise.
55833         * lib/findprog.c: Likewise.
55834         * lib/findprog.h: Likewise.
55835         * lib/float.in.h: Likewise.
55836         * lib/floor.c: Likewise.
55837         * lib/floorf.c: Likewise.
55838         * lib/floorl.c: Likewise.
55839         * lib/fopen-safer.c: Likewise.
55840         * lib/fopen.c: Likewise.
55841         * lib/fpending.c: Likewise.
55842         * lib/fpending.h: Likewise.
55843         * lib/fprintf.c: Likewise.
55844         * lib/fprintftime.h: Likewise.
55845         * lib/fpucw.h: Likewise.
55846         * lib/fpurge.c: Likewise.
55847         * lib/fpurge.h: Likewise.
55848         * lib/freadable.c: Likewise.
55849         * lib/freadable.h: Likewise.
55850         * lib/freadahead.c: Likewise.
55851         * lib/freadahead.h: Likewise.
55852         * lib/freading.c: Likewise.
55853         * lib/freading.h: Likewise.
55854         * lib/free.c: Likewise.
55855         * lib/freopen.c: Likewise.
55856         * lib/frexp.c: Likewise.
55857         * lib/frexpl.c: Likewise.
55858         * lib/fseek.c: Likewise.
55859         * lib/fseterr.c: Likewise.
55860         * lib/fseterr.h: Likewise.
55861         * lib/fstatat.c: Likewise.
55862         * lib/fstrcmp.c: Likewise.
55863         * lib/fstrcmp.h: Likewise.
55864         * lib/fsusage.c: Likewise.
55865         * lib/fsusage.h: Likewise.
55866         * lib/ftell.c: Likewise.
55867         * lib/ftello.c: Likewise.
55868         * lib/fts-cycle.c: Likewise.
55869         * lib/fts.c: Likewise.
55870         * lib/fts_.h: Likewise.
55871         * lib/full-read.c: Likewise.
55872         * lib/full-read.h: Likewise.
55873         * lib/full-write.c: Likewise.
55874         * lib/full-write.h: Likewise.
55875         * lib/fwritable.c: Likewise.
55876         * lib/fwritable.h: Likewise.
55877         * lib/fwriteerror.c: Likewise.
55878         * lib/fwriteerror.h: Likewise.
55879         * lib/fwriting.c: Likewise.
55880         * lib/fwriting.h: Likewise.
55881         * lib/gcd.c: Likewise.
55882         * lib/gcd.h: Likewise.
55883         * lib/getcwd.c: Likewise.
55884         * lib/getdate.h: Likewise.
55885         * lib/getdate.y: Likewise.
55886         * lib/getdomainname.c: Likewise.
55887         * lib/getdomainname.h: Likewise.
55888         * lib/getgroups.c: Likewise.
55889         * lib/gethostname.c: Likewise.
55890         * lib/gethrxtime.c: Likewise.
55891         * lib/gethrxtime.h: Likewise.
55892         * lib/getloadavg.c: Likewise.
55893         * lib/getndelim2.c: Likewise.
55894         * lib/getndelim2.h: Likewise.
55895         * lib/getnline.c: Likewise.
55896         * lib/getnline.h: Likewise.
55897         * lib/getopt.c: Likewise.
55898         * lib/getopt.in.h: Likewise.
55899         * lib/getopt1.c: Likewise.
55900         * lib/getopt_int.h: Likewise.
55901         * lib/getpagesize.h: Likewise.
55902         * lib/getsubopt.c: Likewise.
55903         * lib/gettime.c: Likewise.
55904         * lib/getugroups.c: Likewise.
55905         * lib/getugroups.h: Likewise.
55906         * lib/getusershell.c: Likewise.
55907         * lib/gl_anyavltree_list1.h: Likewise.
55908         * lib/gl_anyavltree_list2.h: Likewise.
55909         * lib/gl_anyhash_list1.h: Likewise.
55910         * lib/gl_anyhash_list2.h: Likewise.
55911         * lib/gl_anylinked_list1.h: Likewise.
55912         * lib/gl_anylinked_list2.h: Likewise.
55913         * lib/gl_anyrbtree_list1.h: Likewise.
55914         * lib/gl_anyrbtree_list2.h: Likewise.
55915         * lib/gl_anytree_list1.h: Likewise.
55916         * lib/gl_anytree_list2.h: Likewise.
55917         * lib/gl_anytree_oset.h: Likewise.
55918         * lib/gl_anytreehash_list1.h: Likewise.
55919         * lib/gl_anytreehash_list2.h: Likewise.
55920         * lib/gl_array_list.c: Likewise.
55921         * lib/gl_array_list.h: Likewise.
55922         * lib/gl_array_oset.c: Likewise.
55923         * lib/gl_array_oset.h: Likewise.
55924         * lib/gl_avltree_list.c: Likewise.
55925         * lib/gl_avltree_list.h: Likewise.
55926         * lib/gl_avltree_oset.c: Likewise.
55927         * lib/gl_avltree_oset.h: Likewise.
55928         * lib/gl_avltreehash_list.c: Likewise.
55929         * lib/gl_avltreehash_list.h: Likewise.
55930         * lib/gl_carray_list.c: Likewise.
55931         * lib/gl_carray_list.h: Likewise.
55932         * lib/gl_linked_list.c: Likewise.
55933         * lib/gl_linked_list.h: Likewise.
55934         * lib/gl_linkedhash_list.c: Likewise.
55935         * lib/gl_linkedhash_list.h: Likewise.
55936         * lib/gl_list.c: Likewise.
55937         * lib/gl_list.h: Likewise.
55938         * lib/gl_oset.c: Likewise.
55939         * lib/gl_oset.h: Likewise.
55940         * lib/gl_rbtree_list.c: Likewise.
55941         * lib/gl_rbtree_list.h: Likewise.
55942         * lib/gl_rbtree_oset.c: Likewise.
55943         * lib/gl_rbtree_oset.h: Likewise.
55944         * lib/gl_rbtreehash_list.c: Likewise.
55945         * lib/gl_rbtreehash_list.h: Likewise.
55946         * lib/gl_sublist.c: Likewise.
55947         * lib/gl_sublist.h: Likewise.
55948         * lib/group-member.c: Likewise.
55949         * lib/group-member.h: Likewise.
55950         * lib/hard-locale.c: Likewise.
55951         * lib/hard-locale.h: Likewise.
55952         * lib/hash-pjw.c: Likewise.
55953         * lib/hash-pjw.h: Likewise.
55954         * lib/hash-triple.c: Likewise.
55955         * lib/hash.c: Likewise.
55956         * lib/hash.h: Likewise.
55957         * lib/human.c: Likewise.
55958         * lib/human.h: Likewise.
55959         * lib/i-ring.c: Likewise.
55960         * lib/i-ring.h: Likewise.
55961         * lib/idcache.c: Likewise.
55962         * lib/imaxabs.c: Likewise.
55963         * lib/imaxdiv.c: Likewise.
55964         * lib/inet_pton.c: Likewise.
55965         * lib/inet_pton.h: Likewise.
55966         * lib/intprops.h: Likewise.
55967         * lib/inttostr.c: Likewise.
55968         * lib/inttostr.h: Likewise.
55969         * lib/inttypes.in.h: Likewise.
55970         * lib/isapipe.c: Likewise.
55971         * lib/isdir.c: Likewise.
55972         * lib/isnan.c: Likewise.
55973         * lib/isnan.h: Likewise.
55974         * lib/isnanf.c: Likewise.
55975         * lib/isnanf.h: Likewise.
55976         * lib/isnanl-nolibm.h: Likewise.
55977         * lib/isnanl.c: Likewise.
55978         * lib/isnanl.h: Likewise.
55979         * lib/javacomp.c: Likewise.
55980         * lib/javacomp.h: Likewise.
55981         * lib/javaexec.c: Likewise.
55982         * lib/javaexec.h: Likewise.
55983         * lib/javaversion.c: Likewise.
55984         * lib/javaversion.h: Likewise.
55985         * lib/javaversion.java: Likewise.
55986         * lib/lbrkprop.h: Likewise.
55987         * lib/lchmod.h: Likewise.
55988         * lib/lchown.c: Likewise.
55989         * lib/ldexpl.c: Likewise.
55990         * lib/linebreak.c: Likewise.
55991         * lib/linebreak.h: Likewise.
55992         * lib/linebuffer.c: Likewise.
55993         * lib/linebuffer.h: Likewise.
55994         * lib/locale.in.h: Likewise.
55995         * lib/logl.c: Likewise.
55996         * lib/long-options.c: Likewise.
55997         * lib/long-options.h: Likewise.
55998         * lib/lstat.c: Likewise.
55999         * lib/lstat.h: Likewise.
56000         * lib/math.in.h: Likewise.
56001         * lib/mbchar.c: Likewise.
56002         * lib/mbchar.h: Likewise.
56003         * lib/mbfile.h: Likewise.
56004         * lib/mbiter.h: Likewise.
56005         * lib/mbscasecmp.c: Likewise.
56006         * lib/mbscasestr.c: Likewise.
56007         * lib/mbschr.c: Likewise.
56008         * lib/mbscspn.c: Likewise.
56009         * lib/mbslen.c: Likewise.
56010         * lib/mbsncasecmp.c: Likewise.
56011         * lib/mbsnlen.c: Likewise.
56012         * lib/mbspbrk.c: Likewise.
56013         * lib/mbspcasecmp.c: Likewise.
56014         * lib/mbsrchr.c: Likewise.
56015         * lib/mbssep.c: Likewise.
56016         * lib/mbsspn.c: Likewise.
56017         * lib/mbsstr.c: Likewise.
56018         * lib/mbstok_r.c: Likewise.
56019         * lib/mbswidth.c: Likewise.
56020         * lib/mbswidth.h: Likewise.
56021         * lib/mbuiter.h: Likewise.
56022         * lib/memcasecmp.c: Likewise.
56023         * lib/memcasecmp.h: Likewise.
56024         * lib/memchr.c: Likewise.
56025         * lib/memcmp.c: Likewise.
56026         * lib/memcoll.c: Likewise.
56027         * lib/memcoll.h: Likewise.
56028         * lib/memcpy.c: Likewise.
56029         * lib/memrchr.c: Likewise.
56030         * lib/mkancesdirs.c: Likewise.
56031         * lib/mkdir-p.c: Likewise.
56032         * lib/mkdir-p.h: Likewise.
56033         * lib/mkdir.c: Likewise.
56034         * lib/mkdirat.c: Likewise.
56035         * lib/mkdtemp.c: Likewise.
56036         * lib/mkstemp-safer.c: Likewise.
56037         * lib/mkstemp.c: Likewise.
56038         * lib/modechange.c: Likewise.
56039         * lib/modechange.h: Likewise.
56040         * lib/mountlist.c: Likewise.
56041         * lib/mountlist.h: Likewise.
56042         * lib/mpsort.c: Likewise.
56043         * lib/nanosleep.c: Likewise.
56044         * lib/obstack.c: Likewise.
56045         * lib/obstack.h: Likewise.
56046         * lib/open-safer.c: Likewise.
56047         * lib/open.c: Likewise.
56048         * lib/openat-die.c: Likewise.
56049         * lib/openat-priv.h: Likewise.
56050         * lib/openat-proc.c: Likewise.
56051         * lib/openat.c: Likewise.
56052         * lib/openat.h: Likewise.
56053         * lib/pagealign_alloc.c: Likewise.
56054         * lib/pagealign_alloc.h: Likewise.
56055         * lib/physmem.c: Likewise.
56056         * lib/physmem.h: Likewise.
56057         * lib/pipe-safer.c: Likewise.
56058         * lib/pipe.c: Likewise.
56059         * lib/pipe.h: Likewise.
56060         * lib/posixtm.c: Likewise.
56061         * lib/posixtm.h: Likewise.
56062         * lib/posixver.c: Likewise.
56063         * lib/printf-frexp.c: Likewise.
56064         * lib/printf-frexp.h: Likewise.
56065         * lib/printf-frexpl.c: Likewise.
56066         * lib/printf-frexpl.h: Likewise.
56067         * lib/printf.c: Likewise.
56068         * lib/progname.c: Likewise.
56069         * lib/progname.h: Likewise.
56070         * lib/progreloc.c: Likewise.
56071         * lib/putenv.c: Likewise.
56072         * lib/quote.c: Likewise.
56073         * lib/quote.h: Likewise.
56074         * lib/quotearg.c: Likewise.
56075         * lib/quotearg.h: Likewise.
56076         * lib/raise.c: Likewise.
56077         * lib/readline.c: Likewise.
56078         * lib/readline.h: Likewise.
56079         * lib/readlink.c: Likewise.
56080         * lib/readtokens.c: Likewise.
56081         * lib/readtokens.h: Likewise.
56082         * lib/readtokens0.c: Likewise.
56083         * lib/readtokens0.h: Likewise.
56084         * lib/readutmp.c: Likewise.
56085         * lib/readutmp.h: Likewise.
56086         * lib/realloc.c: Likewise.
56087         * lib/relocwrapper.c: Likewise.
56088         * lib/rename-dest-slash.c: Likewise.
56089         * lib/rename.c: Likewise.
56090         * lib/rmdir.c: Likewise.
56091         * lib/rpmatch.c: Likewise.
56092         * lib/safe-read.c: Likewise.
56093         * lib/safe-read.h: Likewise.
56094         * lib/safe-write.c: Likewise.
56095         * lib/safe-write.h: Likewise.
56096         * lib/same-inode.h: Likewise.
56097         * lib/same.c: Likewise.
56098         * lib/same.h: Likewise.
56099         * lib/save-cwd.c: Likewise.
56100         * lib/save-cwd.h: Likewise.
56101         * lib/savedir.c: Likewise.
56102         * lib/savedir.h: Likewise.
56103         * lib/savewd.c: Likewise.
56104         * lib/savewd.h: Likewise.
56105         * lib/search.in.h: Likewise.
56106         * lib/setenv.c: Likewise.
56107         * lib/setenv.h: Likewise.
56108         * lib/settime.c: Likewise.
56109         * lib/sh-quote.c: Likewise.
56110         * lib/sh-quote.h: Likewise.
56111         * lib/sig2str.c: Likewise.
56112         * lib/sig2str.h: Likewise.
56113         * lib/signal.in.h: Likewise.
56114         * lib/signbitd.c: Likewise.
56115         * lib/signbitf.c: Likewise.
56116         * lib/signbitl.c: Likewise.
56117         * lib/sigprocmask.c: Likewise.
56118         * lib/sincosl.c: Likewise.
56119         * lib/sleep.c: Likewise.
56120         * lib/sprintf.c: Likewise.
56121         * lib/sqrtl.c: Likewise.
56122         * lib/stat-time.h: Likewise.
56123         * lib/stdio--.h: Likewise.
56124         * lib/stdio-safer.h: Likewise.
56125         * lib/stdlib--.h: Likewise.
56126         * lib/stdlib-safer.h: Likewise.
56127         * lib/stdlib.in.h: Likewise.
56128         * lib/stpcpy.c: Likewise.
56129         * lib/stpncpy.c: Likewise.
56130         * lib/strchrnul.c: Likewise.
56131         * lib/strcspn.c: Likewise.
56132         * lib/strerror.c: Likewise.
56133         * lib/strftime.c: Likewise.
56134         * lib/strftime.h: Likewise.
56135         * lib/striconveh.c: Likewise.
56136         * lib/striconveh.h: Likewise.
56137         * lib/striconveha.c: Likewise.
56138         * lib/striconveha.h: Likewise.
56139         * lib/stripslash.c: Likewise.
56140         * lib/strnlen1.c: Likewise.
56141         * lib/strnlen1.h: Likewise.
56142         * lib/strtod.c: Likewise.
56143         * lib/strtoimax.c: Likewise.
56144         * lib/strtok_r.c: Likewise.
56145         * lib/strtol.c: Likewise.
56146         * lib/strtoll.c: Likewise.
56147         * lib/strtoul.c: Likewise.
56148         * lib/strtoull.c: Likewise.
56149         * lib/sysexits.in.h: Likewise.
56150         * lib/tempname.c: Likewise.
56151         * lib/tempname.h: Likewise.
56152         * lib/timespec.h: Likewise.
56153         * lib/tls.c: Likewise.
56154         * lib/tls.h: Likewise.
56155         * lib/tmpdir.c: Likewise.
56156         * lib/tmpdir.h: Likewise.
56157         * lib/tmpfile-safer.c: Likewise.
56158         * lib/tmpfile.c: Likewise.
56159         * lib/trigl.c: Likewise.
56160         * lib/trigl.h: Likewise.
56161         * lib/trim.c: Likewise.
56162         * lib/trim.h: Likewise.
56163         * lib/trunc.c: Likewise.
56164         * lib/truncf.c: Likewise.
56165         * lib/truncl.c: Likewise.
56166         * lib/tsearch.c: Likewise.
56167         * lib/unicodeio.c: Likewise.
56168         * lib/unicodeio.h: Likewise.
56169         * lib/unistd--.h: Likewise.
56170         * lib/unistd-safer.h: Likewise.
56171         * lib/unistdio/ulc-fprintf.c: Likewise.
56172         * lib/unistdio/ulc-vfprintf.c: Likewise.
56173         * lib/unlinkdir.c: Likewise.
56174         * lib/unlinkdir.h: Likewise.
56175         * lib/unlocked-io.h: Likewise.
56176         * lib/unsetenv.c: Likewise.
56177         * lib/userspec.c: Likewise.
56178         * lib/utime.c: Likewise.
56179         * lib/utimecmp.c: Likewise.
56180         * lib/utimecmp.h: Likewise.
56181         * lib/utimens.c: Likewise.
56182         * lib/verify.h: Likewise.
56183         * lib/verror.c: Likewise.
56184         * lib/verror.h: Likewise.
56185         * lib/version-etc-fsf.c: Likewise.
56186         * lib/version-etc.c: Likewise.
56187         * lib/version-etc.h: Likewise.
56188         * lib/vfprintf.c: Likewise.
56189         * lib/vprintf.c: Likewise.
56190         * lib/vsprintf.c: Likewise.
56191         * lib/w32spawn.h: Likewise.
56192         * lib/wait-process.c: Likewise.
56193         * lib/wait-process.h: Likewise.
56194         * lib/wcwidth.c: Likewise.
56195         * lib/write-any-file.c: Likewise.
56196         * lib/xalloc-die.c: Likewise.
56197         * lib/xalloc.h: Likewise.
56198         * lib/xasprintf.c: Likewise.
56199         * lib/xgetcwd.c: Likewise.
56200         * lib/xgetcwd.h: Likewise.
56201         * lib/xgetdomainname.c: Likewise.
56202         * lib/xgetdomainname.h: Likewise.
56203         * lib/xgethostname.c: Likewise.
56204         * lib/xmalloc.c: Likewise.
56205         * lib/xmalloca.c: Likewise.
56206         * lib/xmalloca.h: Likewise.
56207         * lib/xmemcoll.c: Likewise.
56208         * lib/xnanosleep.c: Likewise.
56209         * lib/xreadlink.c: Likewise.
56210         * lib/xreadlink.h: Likewise.
56211         * lib/xsetenv.c: Likewise.
56212         * lib/xsetenv.h: Likewise.
56213         * lib/xstriconv.c: Likewise.
56214         * lib/xstriconv.h: Likewise.
56215         * lib/xstrndup.c: Likewise.
56216         * lib/xstrndup.h: Likewise.
56217         * lib/xstrtod.c: Likewise.
56218         * lib/xstrtod.h: Likewise.
56219         * lib/xstrtol-error.c: Likewise.
56220         * lib/xstrtol.c: Likewise.
56221         * lib/xstrtol.h: Likewise.
56222         * lib/xtime.h: Likewise.
56223         * lib/xvasprintf.c: Likewise.
56224         * lib/xvasprintf.h: Likewise.
56225         * lib/yesno.c: Likewise.
56226         * lib/yesno.h: Likewise.
56227         * posix-modules: Likewise.
56228         * tests/test-alloca-opt.c: Likewise.
56229         * tests/test-arcfour.c: Likewise.
56230         * tests/test-arctwo.c: Likewise.
56231         * tests/test-argmatch.c: Likewise.
56232         * tests/test-argp-2.sh: Likewise.
56233         * tests/test-argp.c: Likewise.
56234         * tests/test-arpa_inet.c: Likewise.
56235         * tests/test-array_list.c: Likewise.
56236         * tests/test-array_oset.c: Likewise.
56237         * tests/test-atexit.c: Likewise.
56238         * tests/test-avltree_list.c: Likewise.
56239         * tests/test-avltree_oset.c: Likewise.
56240         * tests/test-avltreehash_list.c: Likewise.
56241         * tests/test-base64.c: Likewise.
56242         * tests/test-binary-io.c: Likewise.
56243         * tests/test-byteswap.c: Likewise.
56244         * tests/test-c-ctype.c: Likewise.
56245         * tests/test-c-strcasecmp.c: Likewise.
56246         * tests/test-c-strcasestr.c: Likewise.
56247         * tests/test-c-strncasecmp.c: Likewise.
56248         * tests/test-c-strstr.c: Likewise.
56249         * tests/test-canonicalize-lgpl.c: Likewise.
56250         * tests/test-canonicalize.c: Likewise.
56251         * tests/test-carray_list.c: Likewise.
56252         * tests/test-ceilf.c: Likewise.
56253         * tests/test-ceill.c: Likewise.
56254         * tests/test-count-one-bits.c: Likewise.
56255         * tests/test-crc.c: Likewise.
56256         * tests/test-dirname.c: Likewise.
56257         * tests/test-fbufmode.c: Likewise.
56258         * tests/test-fcntl.c: Likewise.
56259         * tests/test-fflush.c: Likewise.
56260         * tests/test-floorf.c: Likewise.
56261         * tests/test-floorl.c: Likewise.
56262         * tests/test-fopen.c: Likewise.
56263         * tests/test-fprintf-posix.c: Likewise.
56264         * tests/test-fprintf-posix.h: Likewise.
56265         * tests/test-fpurge.c: Likewise.
56266         * tests/test-freadable.c: Likewise.
56267         * tests/test-freadahead.c: Likewise.
56268         * tests/test-freading.c: Likewise.
56269         * tests/test-freopen.c: Likewise.
56270         * tests/test-frexp.c: Likewise.
56271         * tests/test-frexpl.c: Likewise.
56272         * tests/test-fseek.c: Likewise.
56273         * tests/test-fseeko.c: Likewise.
56274         * tests/test-fseterr.c: Likewise.
56275         * tests/test-fstrcmp.c: Likewise.
56276         * tests/test-ftell.c: Likewise.
56277         * tests/test-ftello.c: Likewise.
56278         * tests/test-fwritable.c: Likewise.
56279         * tests/test-fwriting.c: Likewise.
56280         * tests/test-getaddrinfo.c: Likewise.
56281         * tests/test-getpass.c: Likewise.
56282         * tests/test-gettimeofday.c: Likewise.
56283         * tests/test-hmac-md5.c: Likewise.
56284         * tests/test-hmac-sha1.c: Likewise.
56285         * tests/test-iconv.c: Likewise.
56286         * tests/test-iconvme.c: Likewise.
56287         * tests/test-inttypes.c: Likewise.
56288         * tests/test-isnan.c: Likewise.
56289         * tests/test-isnanf.c: Likewise.
56290         * tests/test-isnanl-nolibm.c: Likewise.
56291         * tests/test-isnanl.c: Likewise.
56292         * tests/test-isnanl.h: Likewise.
56293         * tests/test-ldexpl.c: Likewise.
56294         * tests/test-linked_list.c: Likewise.
56295         * tests/test-linkedhash_list.c: Likewise.
56296         * tests/test-locale.c: Likewise.
56297         * tests/test-localename.c: Likewise.
56298         * tests/test-lock.c: Likewise.
56299         * tests/test-lseek.c: Likewise.
56300         * tests/test-malloca.c: Likewise.
56301         * tests/test-math.c: Likewise.
56302         * tests/test-mbscasecmp.c: Likewise.
56303         * tests/test-mbscasestr1.c: Likewise.
56304         * tests/test-mbscasestr2.c: Likewise.
56305         * tests/test-mbscasestr3.c: Likewise.
56306         * tests/test-mbscasestr4.c: Likewise.
56307         * tests/test-mbschr.c: Likewise.
56308         * tests/test-mbscspn.c: Likewise.
56309         * tests/test-mbsncasecmp.c: Likewise.
56310         * tests/test-mbspbrk.c: Likewise.
56311         * tests/test-mbspcasecmp.c: Likewise.
56312         * tests/test-mbsrchr.c: Likewise.
56313         * tests/test-mbsspn.c: Likewise.
56314         * tests/test-mbsstr1.c: Likewise.
56315         * tests/test-mbsstr2.c: Likewise.
56316         * tests/test-mbsstr3.c: Likewise.
56317         * tests/test-md5.c: Likewise.
56318         * tests/test-memmem.c: Likewise.
56319         * tests/test-netinet_in.c: Likewise.
56320         * tests/test-open.c: Likewise.
56321         * tests/test-printf-frexp.c: Likewise.
56322         * tests/test-printf-frexpl.c: Likewise.
56323         * tests/test-printf-posix.c: Likewise.
56324         * tests/test-printf-posix.h: Likewise.
56325         * tests/test-rbtree_list.c: Likewise.
56326         * tests/test-rbtree_oset.c: Likewise.
56327         * tests/test-rbtreehash_list.c: Likewise.
56328         * tests/test-read-file.c: Likewise.
56329         * tests/test-rijndael.c: Likewise.
56330         * tests/test-search.c: Likewise.
56331         * tests/test-signbit.c: Likewise.
56332         * tests/test-sleep.c: Likewise.
56333         * tests/test-snprintf-posix.c: Likewise.
56334         * tests/test-snprintf-posix.h: Likewise.
56335         * tests/test-snprintf.c: Likewise.
56336         * tests/test-sprintf-posix.c: Likewise.
56337         * tests/test-sprintf-posix.h: Likewise.
56338         * tests/test-stat-time.c: Likewise.
56339         * tests/test-stdbool.c: Likewise.
56340         * tests/test-stdint.c: Likewise.
56341         * tests/test-stdio.c: Likewise.
56342         * tests/test-stdlib.c: Likewise.
56343         * tests/test-stpncpy.c: Likewise.
56344         * tests/test-strcasestr.c: Likewise.
56345         * tests/test-striconv.c: Likewise.
56346         * tests/test-striconveh.c: Likewise.
56347         * tests/test-striconveha.c: Likewise.
56348         * tests/test-string.c: Likewise.
56349         * tests/test-sys_select.c: Likewise.
56350         * tests/test-sys_socket.c: Likewise.
56351         * tests/test-sys_stat.c: Likewise.
56352         * tests/test-sys_time.c: Likewise.
56353         * tests/test-sysexits.c: Likewise.
56354         * tests/test-time.c: Likewise.
56355         * tests/test-tls.c: Likewise.
56356         * tests/test-trunc.c: Likewise.
56357         * tests/test-truncf.c: Likewise.
56358         * tests/test-truncl.c: Likewise.
56359         * tests/test-unistd.c: Likewise.
56360         * tests/test-vasnprintf-posix.c: Likewise.
56361         * tests/test-vasnprintf-posix2.c: Likewise.
56362         * tests/test-vasnprintf.c: Likewise.
56363         * tests/test-vasprintf-posix.c: Likewise.
56364         * tests/test-vasprintf.c: Likewise.
56365         * tests/test-verify.c: Likewise.
56366         * tests/test-vfprintf-posix.c: Likewise.
56367         * tests/test-vprintf-posix.c: Likewise.
56368         * tests/test-vsnprintf-posix.c: Likewise.
56369         * tests/test-vsnprintf.c: Likewise.
56370         * tests/test-vsprintf-posix.c: Likewise.
56371         * tests/test-wchar.c: Likewise.
56372         * tests/test-wctype.c: Likewise.
56373         * tests/test-wcwidth.c: Likewise.
56374         * tests/test-xstrtol.c: Likewise.
56375         * tests/test-xvasprintf.c: Likewise.
56376         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56377         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56378         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56379         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56380         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56381         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56382         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56383         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56384         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56385         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56386         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56387         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56388         * tests/uniname/test-uninames.c: Likewise.
56389         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56390         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56391         * tests/unistdio/test-u16-printf1.h: Likewise.
56392         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56393         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56394         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56395         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56396         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56397         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56398         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56399         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56400         * tests/unistdio/test-u32-printf1.h: Likewise.
56401         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56402         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56403         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56404         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56405         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56406         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56407         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56408         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56409         * tests/unistdio/test-u8-printf1.h: Likewise.
56410         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56411         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56412         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56413         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56414         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56415         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56416         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56417         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56418         * tests/unistdio/test-ulc-printf1.h: Likewise.
56419         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56420         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56421         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56422         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56423         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56424         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56425         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56426         * tests/uniwidth/test-u16-width.c: Likewise.
56427         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56428         * tests/uniwidth/test-u32-width.c: Likewise.
56429         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56430         * tests/uniwidth/test-u8-width.c: Likewise.
56431         * tests/uniwidth/test-uc_width.c: Likewise.
56432         * config/srclist-update: Likewise.
56433         (fixlicense): Update to GPLv3+.
56434
56435         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56436         * tests/test-tsearch.c: Change copyright notice.
56437
56438         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56439         * lib/c-strcaseeq.h: Change copyright notice.
56440         * lib/streq.h: Likewise.
56441         * lib/uniconv.h: Likewise.
56442         * lib/uniconv/u-conv-from-enc.h: Likewise.
56443         * lib/uniconv/u-conv-to-enc.h: Likewise.
56444         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56445         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56446         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56447         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56448         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56449         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56450         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56451         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56452         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56453         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56454         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56455         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56456         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56457         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56458         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56459         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56460         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56461         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56462         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56463         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56464         * lib/uniname.h: Likewise.
56465         * lib/uniname/uniname.c: Likewise.
56466         * lib/unistdio.h: Likewise.
56467         * lib/unistdio/u-asnprintf.h: Likewise.
56468         * lib/unistdio/u-asprintf.h: Likewise.
56469         * lib/unistdio/u-printf-args.c: Likewise.
56470         * lib/unistdio/u-printf-args.h: Likewise.
56471         * lib/unistdio/u-printf-parse.h: Likewise.
56472         * lib/unistdio/u-snprintf.h: Likewise.
56473         * lib/unistdio/u-sprintf.h: Likewise.
56474         * lib/unistdio/u-vasprintf.h: Likewise.
56475         * lib/unistdio/u-vsnprintf.h: Likewise.
56476         * lib/unistdio/u-vsprintf.h: Likewise.
56477         * lib/unistdio/u16-asnprintf.c: Likewise.
56478         * lib/unistdio/u16-asprintf.c: Likewise.
56479         * lib/unistdio/u16-printf-parse.c: Likewise.
56480         * lib/unistdio/u16-snprintf.c: Likewise.
56481         * lib/unistdio/u16-sprintf.c: Likewise.
56482         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56483         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56484         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56485         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56486         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56487         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56488         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56489         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56490         * lib/unistdio/u16-vasnprintf.c: Likewise.
56491         * lib/unistdio/u16-vasprintf.c: Likewise.
56492         * lib/unistdio/u16-vsnprintf.c: Likewise.
56493         * lib/unistdio/u16-vsprintf.c: Likewise.
56494         * lib/unistdio/u32-asnprintf.c: Likewise.
56495         * lib/unistdio/u32-asprintf.c: Likewise.
56496         * lib/unistdio/u32-printf-parse.c: Likewise.
56497         * lib/unistdio/u32-snprintf.c: Likewise.
56498         * lib/unistdio/u32-sprintf.c: Likewise.
56499         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56500         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56501         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56502         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56503         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56504         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56505         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56506         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56507         * lib/unistdio/u32-vasnprintf.c: Likewise.
56508         * lib/unistdio/u32-vasprintf.c: Likewise.
56509         * lib/unistdio/u32-vsnprintf.c: Likewise.
56510         * lib/unistdio/u32-vsprintf.c: Likewise.
56511         * lib/unistdio/u8-asnprintf.c: Likewise.
56512         * lib/unistdio/u8-asprintf.c: Likewise.
56513         * lib/unistdio/u8-printf-parse.c: Likewise.
56514         * lib/unistdio/u8-snprintf.c: Likewise.
56515         * lib/unistdio/u8-sprintf.c: Likewise.
56516         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56517         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56518         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56519         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56520         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56521         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56522         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56523         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56524         * lib/unistdio/u8-vasnprintf.c: Likewise.
56525         * lib/unistdio/u8-vasprintf.c: Likewise.
56526         * lib/unistdio/u8-vsnprintf.c: Likewise.
56527         * lib/unistdio/u8-vsprintf.c: Likewise.
56528         * lib/unistdio/ulc-asnprintf.c: Likewise.
56529         * lib/unistdio/ulc-asprintf.c: Likewise.
56530         * lib/unistdio/ulc-printf-parse.c: Likewise.
56531         * lib/unistdio/ulc-snprintf.c: Likewise.
56532         * lib/unistdio/ulc-sprintf.c: Likewise.
56533         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56534         * lib/unistdio/ulc-vasprintf.c: Likewise.
56535         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56536         * lib/unistdio/ulc-vsprintf.c: Likewise.
56537         * lib/unistr.h: Likewise.
56538         * lib/unistr/u-cpy-alloc.h: Likewise.
56539         * lib/unistr/u-cpy.h: Likewise.
56540         * lib/unistr/u-endswith.h: Likewise.
56541         * lib/unistr/u-move.h: Likewise.
56542         * lib/unistr/u-set.h: Likewise.
56543         * lib/unistr/u-startswith.h: Likewise.
56544         * lib/unistr/u-stpcpy.h: Likewise.
56545         * lib/unistr/u-stpncpy.h: Likewise.
56546         * lib/unistr/u-strcat.h: Likewise.
56547         * lib/unistr/u-strcpy.h: Likewise.
56548         * lib/unistr/u-strcspn.h: Likewise.
56549         * lib/unistr/u-strdup.h: Likewise.
56550         * lib/unistr/u-strlen.h: Likewise.
56551         * lib/unistr/u-strncat.h: Likewise.
56552         * lib/unistr/u-strncpy.h: Likewise.
56553         * lib/unistr/u-strnlen.h: Likewise.
56554         * lib/unistr/u-strpbrk.h: Likewise.
56555         * lib/unistr/u-strspn.h: Likewise.
56556         * lib/unistr/u-strstr.h: Likewise.
56557         * lib/unistr/u-strtok.h: Likewise.
56558         * lib/unistr/u16-check.c: Likewise.
56559         * lib/unistr/u16-chr.c: Likewise.
56560         * lib/unistr/u16-cmp.c: Likewise.
56561         * lib/unistr/u16-cpy-alloc.c: Likewise.
56562         * lib/unistr/u16-cpy.c: Likewise.
56563         * lib/unistr/u16-endswith.c: Likewise.
56564         * lib/unistr/u16-mblen.c: Likewise.
56565         * lib/unistr/u16-mbsnlen.c: Likewise.
56566         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56567         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56568         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56569         * lib/unistr/u16-mbtouc.c: Likewise.
56570         * lib/unistr/u16-mbtoucr.c: Likewise.
56571         * lib/unistr/u16-move.c: Likewise.
56572         * lib/unistr/u16-next.c: Likewise.
56573         * lib/unistr/u16-prev.c: Likewise.
56574         * lib/unistr/u16-set.c: Likewise.
56575         * lib/unistr/u16-startswith.c: Likewise.
56576         * lib/unistr/u16-stpcpy.c: Likewise.
56577         * lib/unistr/u16-stpncpy.c: Likewise.
56578         * lib/unistr/u16-strcat.c: Likewise.
56579         * lib/unistr/u16-strchr.c: Likewise.
56580         * lib/unistr/u16-strcmp.c: Likewise.
56581         * lib/unistr/u16-strcpy.c: Likewise.
56582         * lib/unistr/u16-strcspn.c: Likewise.
56583         * lib/unistr/u16-strdup.c: Likewise.
56584         * lib/unistr/u16-strlen.c: Likewise.
56585         * lib/unistr/u16-strmblen.c: Likewise.
56586         * lib/unistr/u16-strmbtouc.c: Likewise.
56587         * lib/unistr/u16-strncat.c: Likewise.
56588         * lib/unistr/u16-strncmp.c: Likewise.
56589         * lib/unistr/u16-strncpy.c: Likewise.
56590         * lib/unistr/u16-strnlen.c: Likewise.
56591         * lib/unistr/u16-strpbrk.c: Likewise.
56592         * lib/unistr/u16-strrchr.c: Likewise.
56593         * lib/unistr/u16-strspn.c: Likewise.
56594         * lib/unistr/u16-strstr.c: Likewise.
56595         * lib/unistr/u16-strtok.c: Likewise.
56596         * lib/unistr/u16-to-u32.c: Likewise.
56597         * lib/unistr/u16-to-u8.c: Likewise.
56598         * lib/unistr/u16-uctomb-aux.c: Likewise.
56599         * lib/unistr/u16-uctomb.c: Likewise.
56600         * lib/unistr/u32-check.c: Likewise.
56601         * lib/unistr/u32-chr.c: Likewise.
56602         * lib/unistr/u32-cmp.c: Likewise.
56603         * lib/unistr/u32-cpy-alloc.c: Likewise.
56604         * lib/unistr/u32-cpy.c: Likewise.
56605         * lib/unistr/u32-endswith.c: Likewise.
56606         * lib/unistr/u32-mblen.c: Likewise.
56607         * lib/unistr/u32-mbsnlen.c: Likewise.
56608         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56609         * lib/unistr/u32-mbtouc.c: Likewise.
56610         * lib/unistr/u32-mbtoucr.c: Likewise.
56611         * lib/unistr/u32-move.c: Likewise.
56612         * lib/unistr/u32-next.c: Likewise.
56613         * lib/unistr/u32-prev.c: Likewise.
56614         * lib/unistr/u32-set.c: Likewise.
56615         * lib/unistr/u32-startswith.c: Likewise.
56616         * lib/unistr/u32-stpcpy.c: Likewise.
56617         * lib/unistr/u32-stpncpy.c: Likewise.
56618         * lib/unistr/u32-strcat.c: Likewise.
56619         * lib/unistr/u32-strchr.c: Likewise.
56620         * lib/unistr/u32-strcmp.c: Likewise.
56621         * lib/unistr/u32-strcpy.c: Likewise.
56622         * lib/unistr/u32-strcspn.c: Likewise.
56623         * lib/unistr/u32-strdup.c: Likewise.
56624         * lib/unistr/u32-strlen.c: Likewise.
56625         * lib/unistr/u32-strmblen.c: Likewise.
56626         * lib/unistr/u32-strmbtouc.c: Likewise.
56627         * lib/unistr/u32-strncat.c: Likewise.
56628         * lib/unistr/u32-strncmp.c: Likewise.
56629         * lib/unistr/u32-strncpy.c: Likewise.
56630         * lib/unistr/u32-strnlen.c: Likewise.
56631         * lib/unistr/u32-strpbrk.c: Likewise.
56632         * lib/unistr/u32-strrchr.c: Likewise.
56633         * lib/unistr/u32-strspn.c: Likewise.
56634         * lib/unistr/u32-strstr.c: Likewise.
56635         * lib/unistr/u32-strtok.c: Likewise.
56636         * lib/unistr/u32-to-u16.c: Likewise.
56637         * lib/unistr/u32-to-u8.c: Likewise.
56638         * lib/unistr/u32-uctomb.c: Likewise.
56639         * lib/unistr/u8-check.c: Likewise.
56640         * lib/unistr/u8-chr.c: Likewise.
56641         * lib/unistr/u8-cmp.c: Likewise.
56642         * lib/unistr/u8-cpy-alloc.c: Likewise.
56643         * lib/unistr/u8-cpy.c: Likewise.
56644         * lib/unistr/u8-endswith.c: Likewise.
56645         * lib/unistr/u8-mblen.c: Likewise.
56646         * lib/unistr/u8-mbsnlen.c: Likewise.
56647         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56648         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56649         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56650         * lib/unistr/u8-mbtouc.c: Likewise.
56651         * lib/unistr/u8-mbtoucr.c: Likewise.
56652         * lib/unistr/u8-move.c: Likewise.
56653         * lib/unistr/u8-next.c: Likewise.
56654         * lib/unistr/u8-prev.c: Likewise.
56655         * lib/unistr/u8-set.c: Likewise.
56656         * lib/unistr/u8-startswith.c: Likewise.
56657         * lib/unistr/u8-stpcpy.c: Likewise.
56658         * lib/unistr/u8-stpncpy.c: Likewise.
56659         * lib/unistr/u8-strcat.c: Likewise.
56660         * lib/unistr/u8-strchr.c: Likewise.
56661         * lib/unistr/u8-strcmp.c: Likewise.
56662         * lib/unistr/u8-strcpy.c: Likewise.
56663         * lib/unistr/u8-strcspn.c: Likewise.
56664         * lib/unistr/u8-strdup.c: Likewise.
56665         * lib/unistr/u8-strlen.c: Likewise.
56666         * lib/unistr/u8-strmblen.c: Likewise.
56667         * lib/unistr/u8-strmbtouc.c: Likewise.
56668         * lib/unistr/u8-strncat.c: Likewise.
56669         * lib/unistr/u8-strncmp.c: Likewise.
56670         * lib/unistr/u8-strncpy.c: Likewise.
56671         * lib/unistr/u8-strnlen.c: Likewise.
56672         * lib/unistr/u8-strpbrk.c: Likewise.
56673         * lib/unistr/u8-strrchr.c: Likewise.
56674         * lib/unistr/u8-strspn.c: Likewise.
56675         * lib/unistr/u8-strstr.c: Likewise.
56676         * lib/unistr/u8-strtok.c: Likewise.
56677         * lib/unistr/u8-to-u16.c: Likewise.
56678         * lib/unistr/u8-to-u32.c: Likewise.
56679         * lib/unistr/u8-uctomb-aux.c: Likewise.
56680         * lib/unistr/u8-uctomb.c: Likewise.
56681         * lib/unitypes.h: Likewise.
56682         * lib/uniwidth.h: Likewise.
56683         * lib/uniwidth/cjk.h: Likewise.
56684         * lib/uniwidth/u16-strwidth.c: Likewise.
56685         * lib/uniwidth/u16-width.c: Likewise.
56686         * lib/uniwidth/u32-strwidth.c: Likewise.
56687         * lib/uniwidth/u32-width.c: Likewise.
56688         * lib/uniwidth/u8-strwidth.c: Likewise.
56689         * lib/uniwidth/u8-width.c: Likewise.
56690         * lib/uniwidth/width.c: Likewise.
56691
56692 2007-10-07  Bruno Haible  <bruno@clisp.org>
56693
56694         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56695         The file is still under LGPL (see modules/inttypes).
56696
56697 2007-10-06  Bruno Haible  <bruno@clisp.org>
56698
56699         * modules/trunc (Dependencies): Add 'extensions'.
56700         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56701         Reported by Ben Pfaff <blp@gnu.org>.
56702
56703 2007-10-06  Bruno Haible  <bruno@clisp.org>
56704
56705         * modules/freopen-tests: New file.
56706         * tests/test-freopen.c: New file.
56707
56708         * modules/fopen-tests: New file.
56709         * tests/test-fopen.c: New file.
56710
56711         * modules/fopen: New file.
56712         * lib/fopen.c: New file.
56713         * m4/fopen.m4: New file.
56714         * modules/freopen: New file.
56715         * lib/freopen.c: New file.
56716         * m4/freopen.m4: New file.
56717         * lib/stdio.in.h (fopen, freopen): New declarations.
56718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56719         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56720         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56721         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56722         * doc/functions/fopen.texi: Mention the 'fopen' module.
56723         * doc/functions/freopen.texi: Mention the 'freopen' module.
56724
56725 2007-10-06  Bruno Haible  <bruno@clisp.org>
56726
56727         * modules/open-tests: New file.
56728         * tests/test-open.c: New file.
56729
56730         * modules/open: New file.
56731         * lib/open.c: New file.
56732         * m4/open.m4: New file.
56733         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56734         lib/open.c does.
56735         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56736         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56737         macros.
56738         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56739         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56740         REPLACE_OPEN.
56741         * doc/functions/open.texi: Mention the 'open' module.
56742
56743 2007-10-04  Bruno Haible  <bruno@clisp.org>
56744
56745         * modules/ceill-tests: New file.
56746         * tests/test-ceill.c: New file.
56747
56748         * modules/ceill: New file.
56749         * lib/ceill.c: Replace entire file.
56750         * m4/ceill.m4: New file.
56751         * lib/math.in.h (ceill): Replace declaration.
56752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56753         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56754         * doc/functions/ceill.texi: Mention the 'ceill' module.
56755         * modules/mathl (Files): Remove lib/ceill.c.
56756         (Depends-on): Add ceill.
56757
56758 2007-10-04  Bruno Haible  <bruno@clisp.org>
56759
56760         * modules/ceilf-tests: New file.
56761         * tests/test-ceilf.c: New file.
56762
56763         * modules/ceilf: New file.
56764         * lib/ceil.c: New file.
56765         * lib/ceilf.c: New file.
56766         * m4/ceilf.m4: New file.
56767         * lib/math.in.h (ceilf): New declaration.
56768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56769         HAVE_DECL_CEILF.
56770         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56771         HAVE_DECL_CEILF.
56772         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56773
56774 2007-10-04  Bruno Haible  <bruno@clisp.org>
56775
56776         * modules/floorl-tests: New file.
56777         * tests/test-floorl.c: New file.
56778
56779         * modules/floorl: New file.
56780         * lib/floorl.c: Replace entire file.
56781         * m4/floorl.m4: New file.
56782         * lib/math.in.h (floorl): Replace declaration.
56783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56784         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56785         * doc/functions/floorl.texi: Mention the 'floorl' module.
56786         * modules/mathl (Files): Remove lib/floorl.c.
56787         (Depends-on): Add floorl.
56788
56789 2007-10-04  Bruno Haible  <bruno@clisp.org>
56790
56791         * modules/floorf-tests: New file.
56792         * tests/test-floorf.c: New file.
56793
56794         * modules/floorf: New file.
56795         * lib/floor.c: New file.
56796         * lib/floorf.c: New file.
56797         * m4/floorf.m4: New file.
56798         * lib/math.in.h (floorf): New declaration.
56799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56800         HAVE_DECL_FLOORF.
56801         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56802         HAVE_DECL_FLOORF.
56803         * doc/functions/floorf.texi: Mention the 'floorf' module.
56804
56805 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56806             Bruno Haible  <bruno@clisp.org>
56807
56808         Advertise for the Git server instead of the CVS server.
56809         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56810         repository instead of the CVS one.
56811         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56812         about all VCS systems generically.
56813         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56814
56815 2007-10-04  Bruno Haible  <bruno@clisp.org>
56816
56817         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56818         means.
56819         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56820
56821 2007-10-04  Bruno Haible  <bruno@clisp.org>
56822
56823         * modules/truncl-tests: New file.
56824         * tests/test-truncl.c: New file.
56825
56826         * modules/truncl: New file.
56827         * lib/truncl.c: New file.
56828         * m4/truncl.m4: New file.
56829         * lib/math.in.h (truncl): New declaration.
56830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56831         HAVE_DECL_TRUNCL.
56832         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56833         HAVE_DECL_TRUNCL.
56834         * doc/functions/truncl.texi: Mention the 'truncl' module.
56835
56836 2007-10-04  Bruno Haible  <bruno@clisp.org>
56837
56838         * modules/truncf-tests: New file.
56839         * tests/test-truncf.c: New file.
56840
56841         * modules/truncf: New file.
56842         * lib/trunc.c: Make paramerizable through USE_* macros.
56843         * lib/truncf.c: New file.
56844         * m4/truncf.m4: New file.
56845         * lib/math.in.h (truncf): New declaration.
56846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56847         HAVE_DECL_TRUNCF.
56848         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56849         HAVE_DECL_TRUNCF.
56850         * doc/functions/truncf.texi: Mention the 'truncf' module.
56851
56852 2007-10-03  Bruno Haible  <bruno@clisp.org>
56853
56854         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56855         augmentation also for tests modules.
56856         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56857         * modules/atexit-tests (Makefile.am): Likewise.
56858         * modules/binary-io-tests (Makefile.am): Likewise.
56859         * modules/c-strcase-tests (Makefile.am): Likewise.
56860         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56861         * modules/canonicalize-tests (Makefile.am): Likewise.
56862         * modules/closein-tests (Makefile.am): Likewise.
56863         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56864         * modules/freadahead-tests (Makefile.am): Likewise.
56865         * modules/fseek-tests (Makefile.am): Likewise.
56866         * modules/fseeko-tests (Makefile.am): Likewise.
56867         * modules/ftell-tests (Makefile.am): Likewise.
56868         * modules/ftello-tests (Makefile.am): Likewise.
56869         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56870         * modules/isnanl-tests (Makefile.am): Likewise.
56871         * modules/lseek-tests (Makefile.am): Likewise.
56872         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56873         * modules/mbscasestr-tests (Makefile.am): Likewise.
56874         * modules/mbschr-tests (Makefile.am): Likewise.
56875         * modules/mbscspn-tests (Makefile.am): Likewise.
56876         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56877         * modules/mbspbrk-tests (Makefile.am): Likewise.
56878         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56879         * modules/mbsrchr-tests (Makefile.am): Likewise.
56880         * modules/mbsspn-tests (Makefile.am): Likewise.
56881         * modules/mbsstr-tests (Makefile.am): Likewise.
56882         * modules/printf-posix-tests (Makefile.am): Likewise.
56883         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56884         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56885         * modules/tsearch-tests (Makefile.am): Likewise.
56886         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56887         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56888         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56889         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56890         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56891         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56892         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56893         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56894         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56895         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56896         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56897         * modules/xstrtol-tests (Makefile.am): Likewise.
56898         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56899         * modules/yesno-tests (Makefile.am): Likewise.
56900
56901 2007-10-03  Bruno Haible  <bruno@clisp.org>
56902
56903         * modules/trunc-tests: New file.
56904         * tests/test-trunc.c: New file.
56905
56906         * modules/trunc: New file.
56907         * lib/trunc.c: New file.
56908         * m4/trunc.m4: New file.
56909         * lib/math.in.h (trunc): New declaration.
56910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56911         HAVE_DECL_TRUNC.
56912         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56913         HAVE_DECL_TRUNC.
56914         * doc/functions/trunc.texi: Mention the 'trunc' module.
56915
56916 2007-10-03  Bruno Haible  <bruno@clisp.org>
56917
56918         * tests/test-fpending.c: New file, mostly copied
56919         from coreutils/lib/t-fpending.c.
56920         * modules/fpending-tests: New file.
56921
56922 2007-10-03  Bruno Haible  <bruno@clisp.org>
56923
56924         Port the stdio extensions to QNX (untested).
56925         * lib/fseterr.c (fseterr): Add support for QNX.
56926         * lib/fbufmode.c (fbufmode): Likewise.
56927         * lib/freadable.c (freadable): Likewise.
56928         * lib/fwritable.c (fwritable): Likewise.
56929         * lib/freading.c (freading): Likewise.
56930         * lib/fwriting.c (fwriting): Likewise.
56931         * lib/freadahead.c (freadahed): Likewise.
56932         * lib/fpurge.c (fpurge): Likewise.
56933         * lib/fseeko.c (rpl_fseeko): Likewise.
56934
56935 2007-10-03  Bruno Haible  <bruno@clisp.org>
56936             Jim Meyering  <jim@meyering.net>
56937             Eric Blake  <ebb9@byu.net>
56938
56939         * doc/relocatable.texi: Use @command instead of @program.
56940
56941 2007-10-02  Jim Meyering  <jim@meyering.net>
56942
56943         Perform one more "_.h" -> ".in.h" substitution.
56944         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56945         instead of unistd_.h here, too.
56946
56947 2007-10-01  Bruno Haible  <bruno@clisp.org>
56948
56949         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56950         Needed for the alloca-opt module.
56951
56952 2007-09-30  Bruno Haible  <bruno@clisp.org>
56953
56954         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56955         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56956         alloca_.h.
56957         * lib/argz.in.h: Renamed from lib/argz_.h.
56958         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56959         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56960         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56961         byteswap_.h.
56962         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56963         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56964         dirent_.h.
56965         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56966         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56967         fcntl_.h.
56968         * lib/float.in.h: Renamed from lib/float_.h.
56969         * modules/float (Files, Makefile.am): Use float.in.h instead of
56970         float_.h.
56971         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56972         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56973         fnmatch_.h.
56974         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56975         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56976         getopt_.h.
56977         * lib/glob.in.h: Renamed from lib/glob_.h.
56978         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56979         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56980         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56981         iconv_.h.
56982         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56983         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56984         inttypes_.h.
56985         * lib/locale.in.h: Renamed from lib/locale_.h.
56986         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56987         locale_.h.
56988         * lib/math.in.h: Renamed from lib/math_.h.
56989         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
56990         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
56991         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
56992         of netinet_in_.h. Add dependency.
56993         * lib/poll.in.h: Renamed from lib/poll_.h.
56994         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
56995         * lib/search.in.h: Renamed from lib/search_.h.
56996         * modules/search (Files, Makefile.am): Use search.in.h instead of
56997         search_.h.
56998         * lib/signal.in.h: Renamed from lib/signal_.h.
56999         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57000         _signal.h.
57001         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57002         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57003         stdbool_.h.
57004         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57005         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57006         stdint_.h.
57007         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57008         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57009         stdio_.h.
57010         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57011         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57012         stdlib_.h.
57013         * lib/string.in.h: Renamed from lib/string_.h.
57014         * modules/string (Files, Makefile.am): Use string.in.h instead of
57015         string_.h.
57016         * doc/gnulib-tool.texi (Initial import): Update.
57017         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57018         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57019         of sys_select_.h. Add dependency.
57020         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57021         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57022         of sys_socket_.h.
57023         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57024         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57025         sys_stat_.h.
57026         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57027         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57028         sys_time_.h.
57029         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57030         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57031         sysexits_.h.
57032         * lib/time.in.h: Renamed from lib/time_.h.
57033         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57034         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57035         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57036         unistd_.h.
57037         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57038         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57039         wchar_.h.
57040         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57041         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57042         wctype_.h.
57043         * build-aux/bootstrap (slurp): Update.
57044         * lib/.cppi-disable: Update.
57045
57046 2007-09-30  Bruno Haible  <bruno@clisp.org>
57047
57048         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57049         Needed on BeOS.
57050
57051 2007-09-30  Bruno Haible  <bruno@clisp.org>
57052
57053         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57054
57055 2007-09-29  Bruno Haible  <bruno@clisp.org>
57056
57057         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57058
57059 2007-09-29  Bruno Haible  <bruno@clisp.org>
57060
57061         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57062         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57063         * build-aux/install-reloc: Compile also areadlink.c.
57064         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57065
57066 2007-09-29  Bruno Haible  <bruno@clisp.org>
57067
57068         * gnulib-tool (func_emit_initmacro_done): Indentation.
57069
57070 2007-09-29  Bruno Haible  <bruno@clisp.org>
57071
57072         * README: Add CVS checkout update instructions.
57073         Info from Bob Proulx <bob@proulx.com>.
57074
57075 2007-09-28  Eric Blake  <ebb9@byu.net>
57076
57077         Provide move-if-change.
57078         * build-aux/move-if-change: New file, based on best practice
57079         rather than any canonical upstream location.
57080
57081 2007-09-28  Jim Meyering  <jim@meyering.net>
57082
57083         Fix canonicalize loop-detection corner case.
57084         Do not attempt to stat the symlink values stored via seen_triple.
57085         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57086         on linux-2.6.18, (but not 2.6.22).
57087         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57088         triple_compare.  The former compares dev,ino,filename, while the latter
57089         would actually stat dirname(filename) when dev and ino were equal.
57090         * lib/hash-triple.c: Install <string.h>.
57091         (STREQ): Define.
57092         (triple_compare_ino_str): New function.
57093         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57094
57095 2007-09-28  Eric Blake  <ebb9@byu.net>
57096
57097         Enforce that AC_REPLACE_FUNCS files exist.
57098         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57099         override check for typos.
57100
57101         Fix test-closein on Solaris 10.
57102         * tests/test-closein.c (main): Don't assume stdin can be inherited
57103         closed on all systems.
57104         * tests/test-closein.sh: Likewise.
57105         Reported by Piotr Tarnowski.
57106
57107 2007-09-28  Jim Meyering  <jim@meyering.net>
57108
57109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57110
57111 2007-09-27  Jim Meyering  <jim@meyering.net>
57112
57113         canonicalize: Avoid a false-positive cycle failure.
57114         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57115         Sort.  Remove cycle-check.
57116         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57117         not cycle-check.h.
57118         (seen_triple): New function.
57119         (canonicalize_filename_mode): Use it instead of cycle-check.
57120         * tests/test-canonicalize.c: Add a test for this bug.
57121         * tests/test-canonicalize.sh: Set up and run the test.
57122
57123         New module, file-set, from coreutils.
57124         * modules/file-set: Define it.
57125         * lib/file-set.c, lib/file-set.h: Implement.
57126
57127         New module, hash-triple, from coreutils.
57128         * modules/hash-triple: Define it.
57129         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57130
57131 2007-09-25  Eric Blake  <ebb9@byu.net>
57132
57133         Fix strerror on Interix.
57134         * lib/string_.h (strerror): Declare replacement.
57135         * doc/functions/strerror.texi (strerror): Document the Interix
57136         shortcoming.
57137         * modules/string (Makefile.am): Support new hooks.
57138         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57139         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57140         gl_FUNC_STRERROR_SEPARATE.
57141         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57142         * lib/strerror.c (rpl_strerror): Provide replacement.
57143         * modules/strerror (Depends-on): Add string.
57144         (configure.ac): Detect use of module.
57145         * tests/test-strerror.c: New file.
57146         * modules/strerror-tests: New test module.
57147         * modules/argp (Depends-on): Add strerror.
57148         * modules/error (Depends-on): Likewise.
57149         Reported by Martin Koeppe.
57150
57151 2007-09-24  Bruno Haible  <bruno@clisp.org>
57152
57153         * README: Update git instructions.
57154
57155 2007-09-24  Eric Blake  <ebb9@byu.net>
57156
57157         Revert fpending breakage from 2007-09-08.
57158         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57159         __fpending.c.
57160
57161 2007-09-24  Jim Meyering  <jim@meyering.net>
57162
57163         filenamecat.c: Add a test.
57164         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57165         showing how the function works when DIR is the empty string.
57166
57167 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57168
57169         * tests/test-canonicalize.sh: Turn on executable bit.
57170
57171 2007-09-19  Eric Blake  <ebb9@byu.net>
57172
57173         * README: Update CVS instructions.
57174
57175 2007-09-18  Bruno Haible  <bruno@clisp.org>
57176
57177         * modules/areadlink: New file.
57178         * lib/areadlink.h (areadlink): New declaration.
57179         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57180
57181 2007-09-17  Jim Meyering  <jim@meyering.net>
57182
57183         * lib/savewd.c (ESTALE) [!defined]: Define.
57184         Reported to be required on Interix by Martin Koeppe.
57185
57186 2007-09-17  Bruno Haible  <bruno@clisp.org>
57187
57188         * gnulib-tool (func_version): Use $version.
57189
57190 2007-09-16  Bruno Haible  <bruno@clisp.org>
57191
57192         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57193         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57194         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57195         Reported by Greg Schafer <gschafer@zip.com.au>.
57196
57197 2007-09-15  Bruno Haible  <bruno@clisp.org>
57198
57199         * gnulib-tool (sed): Try a little harder to make bash understand the
57200         alias.
57201         Reported by Bruce Korb <bruce.korb@gmail.com>.
57202
57203 2007-09-13  Eric Blake  <ebb9@byu.net>
57204
57205         * ChangeLog: Remove conflict markers.
57206
57207 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57208
57209         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57210         Reported by Bruno Haible <bruno@clisp.org>.
57211
57212 2007-09-12  Bruno Haible  <bruno@clisp.org>
57213
57214         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57215         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57216         is not defined.
57217
57218 2007-09-12  Eric Blake  <ebb9@byu.net>
57219
57220         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57221         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57222         Autoconf definition.
57223         * modules/euidaccess (Depends-on): Add extensions, for
57224         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57225         * modules/fnmatch (Depends-on): Likewise.
57226         * modules/getaddrinfo (Depends-on): Likewise.
57227         * modules/getdelim (Depends-on): Likewise.
57228         * modules/getline (Depends-on): Likewise.
57229         * modules/getsubopt (Depends-on): Likewise.
57230         * modules/gettext (Depends-on): Likewise.
57231         * modules/group-member (Depends-on): Likewise.
57232         * modules/mbchar (Depends-on): Likewise.
57233         * modules/memmem (Depends-on): Likewise.
57234         * modules/mempcpy (Depends-on): Likewise.
57235         * modules/memrchr (Depends-on): Likewise.
57236         * modules/pagealign_alloc (Depends-on): Likewise.
57237         * modules/readutmp (Depends-on): Likewise.
57238         * modules/stpcpy (Depends-on): Likewise.
57239         * modules/stpncpy (Depends-on): Likewise.
57240         * modules/strchrnul (Depends-on): Likewise.
57241         * modules/strndup (Depends-on): Likewise.
57242         * modules/strsep (Depends-on): Likewise.
57243         * modules/strverscmp (Depends-on): Likewise.
57244         * modules/vasprintf (Depends-on): Likewise.
57245         * modules/wcwidth (Depends-on): Likewise.
57246         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57247         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57248         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57249         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57250         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57251         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57252         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57253         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57254         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57255         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57256         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57257         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57258         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57259         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57260         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57261         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57262         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57263         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57264         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57265         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57266         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57267         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57268         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57269         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57270         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57271         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57272         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57273         so that lock.m4 can be used in gettext without extensions module.
57274
57275 2007-09-11  Bruno Haible  <bruno@clisp.org>
57276
57277         * m4/isc-posix.m4: Remove file.
57278         Suggested by Eric Blake.
57279
57280 2007-09-11  Eric Blake  <ebb9@byu.net>
57281
57282         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57283
57284 2007-09-10  Bruno Haible  <bruno@clisp.org>
57285
57286         * posix-modules: Fix typo in error message.
57287         Reported by Matt <mkraai@beckman.com>.
57288
57289 2007-09-09  Bruno Haible  <bruno@clisp.org>
57290
57291         * doc/functions/getdelim.texi: Update list of platforms lacking the
57292         function.
57293         * doc/functions/getline.texi: Likewise.
57294
57295 2007-09-09  Jim Meyering  <jim@meyering.net>
57296
57297         * lib/hash.c (hash_initialize): Detect calloc failure.
57298         Reported by Bruno Haible.
57299
57300 2007-09-09  Bruno Haible  <bruno@clisp.org>
57301
57302         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57303         malloc or realloc fails.
57304
57305 2007-09-09  Bruno Haible  <bruno@clisp.org>
57306
57307         * modules/getcwd (Depends-on): Add malloc-posix.
57308         * modules/glob (Depends-on): Likewise.
57309         * modules/putenv (Depends-on): Likewise.
57310         * modules/strdup (Depends-on): Likewise.
57311         * modules/getdelim (Depends-on): Add realloc-posix.
57312         * modules/read-file (Depends-on): Likewise.
57313
57314 2007-09-09  Bruno Haible  <bruno@clisp.org>
57315
57316         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57317         (gl_FUNC_MALLOC_POSIX): Require it.
57318         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57319         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57320         * modules/realloc (Files): Add m4/malloc.m4.
57321         * modules/calloc (Files): Likewise.
57322
57323 2007-09-09  Bruno Haible  <bruno@clisp.org>
57324
57325         * modules/malloc-posix: New file.
57326         * modules/malloc (Depends-on): Add malloc-posix.
57327         * lib/malloc.c: Include errno.h.
57328         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57329         and a POSIX-compatible malloc into a single function. Set ENOMEM
57330         when returning NULL.
57331         * m4/malloc.m4: New file.
57332         * doc/functions/malloc.texi: Mention the malloc-posix module.
57333         * lib/stdlib_.h (malloc): New declaration.
57334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57335         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57336         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57337         and HAVE_MALLOC_POSIX.
57338
57339 2007-09-09  Bruno Haible  <bruno@clisp.org>
57340
57341         * modules/realloc-posix: New file.
57342         * modules/realloc (Depends-on): Add realloc-posix.
57343         * lib/realloc.c: Include errno.h.
57344         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57345         and a POSIX-compatible realloc into a single function. Set ENOMEM
57346         when returning NULL.
57347         * m4/realloc.m4: New file.
57348         * doc/functions/realloc.texi: Mention the realloc-posix module.
57349         * lib/stdlib_.h (realloc): New declaration.
57350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57351         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57352         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57353         and HAVE_REALLOC_POSIX.
57354
57355 2007-09-09  Bruno Haible  <bruno@clisp.org>
57356
57357         * modules/calloc-posix: New file.
57358         * modules/calloc (Depends-on): Add calloc-posix.
57359         * lib/calloc.c: Include errno.h.
57360         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57361         and a POSIX-compatible calloc into a single function. Set ENOMEM
57362         when returning NULL.
57363         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57364         * doc/functions/calloc.texi: Mention the calloc-posix module.
57365         * lib/stdlib_.h (calloc): New declaration.
57366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57367         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57368         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57369         and HAVE_CALLOC_POSIX.
57370
57371 2007-09-09  Bruno Haible  <bruno@clisp.org>
57372
57373         Allow for modules to show an arbitrary notice.
57374         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57375         * gnulib-tool: New option --extract-notice.
57376         (func_usage): Document it.
57377         (sed_extract_prog): Update.
57378         (func_get_notice): New function.
57379         (func_modules_notice): New function.
57380         (func_import, func_create_testdir): Invoke it.
57381         Suggested by Jim Meyering.
57382
57383 2007-09-09  Bruno Haible  <bruno@clisp.org>
57384
57385         * gnulib-tool: New options --verbose, --quiet.
57386         (func_usage): Document them.
57387         (verbose): New variable.
57388         (func_execute_command): New function.
57389         (func_import): Don't show the module list and the file list if
57390         $verbose < 0.
57391         (func_create_testdir): Likewise. Use func_execute_command.
57392         (func_create_megatestdir): Use func_execute_command.
57393
57394 2007-09-08  Bruno Haible  <bruno@clisp.org>
57395
57396         * gnulib-tool (func_import): Prefer rsync over wget when available,
57397         for fetching the PO files.
57398
57399 2007-09-08  Bruno Haible  <bruno@clisp.org>
57400
57401         * posix-modules: New file. Portions copied from gnulib-tool.
57402         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57403
57404 2007-09-08  Jim Meyering  <jim@meyering.net>
57405
57406         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57407         * lib/fpending.h: Rename from __fpending.h.
57408         * lib/fpending.c: Rename from __fpending.c.
57409         Include "fpending.h", not "__fpending.h".
57410         * lib/__fpending.h, lib/__fpending.c: Remove files.
57411         * modules/fpending (Files): Reflect new file names.
57412         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57413
57414 2007-09-08  Bruno Haible  <bruno@clisp.org>
57415
57416         * m4/inttypes-h.m4: Remove stub file.
57417
57418 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57419
57420         * doc/headers/stdint.texi: Discuss #include_next issue.
57421
57422 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57423
57424         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57425
57426 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57427
57428         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57429         in variable name.
57430
57431 2007-09-03  Jim Meyering  <jim@meyering.net>
57432
57433         New module: git-version-gen.
57434         * modules/git-version-gen: New file.
57435
57436         Import changes from coreutils for bootstrap script.
57437
57438         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57439
57440         bootstrap: uses rsync to download the .po files
57441         * build-aux/bootstrap (po_download_command_format): New global.
57442         (download_po_files): Use rsync.
57443         (update_po_files): Don't remove .po files after download,
57444         so future rsync runs can take advantage of the copies.
57445
57446         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57447
57448         Solve the unnecessary-.po-file-regeneration problem once and for all.
57449         * build-aux/bootstrap (download_po_files): New function, renamed from
57450         get_translations.  Now, downloads, but doesn't update LINGUAS.
57451         (update_po_files): New function.
57452
57453         bootstrap: Ignore more.
57454         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57455         uniwidth to e.g., lib/.gitignore.
57456         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57457
57458         * build-aux/bootstrap: New setting: vc_ignore.
57459         (insert_sorted_if_absent): Create $file if absent.
57460         Adapt to new, possibly empty, list: $vc_ignore.
57461
57462         bootstrap: generate more ignorable names
57463         * build-aux/bootstrap (slurp): When generating ignorable names,
57464         also map .sin to .sed, .gperf to .c, and .y to .c.
57465
57466 2007-09-03  Jim Meyering  <jim@meyering.net>
57467
57468         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57469         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57470
57471 2007-09-02  Bruno Haible  <bruno@clisp.org>
57472
57473         Fix mis-recognition of 'mcs' on QNX 6.
57474         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57475         output contains the string "Mono".
57476         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57477         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57478
57479 2007-09-01  Bruno Haible  <bruno@clisp.org>
57480
57481         Fix collision between uniwidth/* and linebreak modules.
57482         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57483         u32_width): Remove declarations.
57484         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57485         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57486         streq3, streq2, streq1, streq0): Remove functions.
57487         (STREQ): Remove macro.
57488         (is_cjk_encoding): Remove function.
57489         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57490         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57491         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57492         * NEWS: Document the change.
57493
57494 2007-09-01  Bruno Haible  <bruno@clisp.org>
57495
57496         * lib/streq.h: Add double-inclusion guard.
57497
57498 2007-09-01  Karl Berry  <karl@gnu.org>
57499
57500         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57501
57502 2007-08-28  Jim Meyering  <jim@meyering.net>
57503
57504         Rename mreadlink_with_size to areadlink_with_size.
57505         * NEWS: Document the change.
57506         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57507         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57508         * lib/mreadlink.h: Rename this to...
57509         * lib/areadlink.h: ...this.
57510         * modules/mreadlink-with-size: Rename this to...
57511         * modules/areadlink-with-size: ...this.
57512         * lib/canonicalize.c: Reflect the renaming.
57513         * modules/canonicalize: Likewise.
57514
57515 2007-08-26  Bruno Haible  <bruno@clisp.org>
57516
57517         * gnulib-tool (func_import): When deciding which files to remove,
57518         consider also dangling symbolic links.
57519         Reported by Eric Blake.
57520
57521 2007-08-26  Bruno Haible  <bruno@clisp.org>
57522
57523         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57524
57525 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57526
57527         * lib/readline.c: Don't include getline.h, the prototype is now
57528         found in stdio.h.
57529
57530 2007-08-23  Jim Meyering  <jim@meyering.net>
57531
57532         Getdelim touchup.
57533         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57534         around the funlockfile call, since funlockfile never sets errno.
57535         Don't set errno upon failed realloc.
57536
57537 2007-08-22  Eric Blake  <ebb9@byu.net>
57538
57539         Getline touchups.
57540         * lib/getdelim.c (getdelim): Revert regression that required *n to
57541         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57542         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57543         getdelim, rather than whether implementation is missing.
57544         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57545         * lib/stdio_.h (getline): Also declare if replacement is
57546         required.
57547         * doc/functions/getdelim.texi: New file.
57548         * doc/functions/getline.texi: Likewise.
57549         * doc/gnulib.texi (Function Substitutes): Add new files.
57550         Reported by Bruno Haible.
57551
57552 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57553
57554         * users.txt: Add Guile.
57555
57556 2007-08-22  Eric Blake  <ebb9@byu.net>
57557
57558         * tests/test-getdelim.c (main): Use remove, not unlink.
57559         * tests/test-getline.c (main): Likewise.
57560
57561         Move getline and getdelim into stdio.h, per POSIX 200x.
57562         * modules/getline (Files): Remove getline.h.
57563         (Depends-on): Add stdio.
57564         (configure.ac): Add module indicator.
57565         * modules/getdelim (Files): Remove getdelim.h.
57566         (Depends-on): Add stdio.
57567         (configure.ac): Add module indicator.
57568         * modules/stdio (Makefile.am): Work with new indicators.
57569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57570         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57571         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57572         * lib/getdelim.h: Delete.
57573         * lib/getline.h: Delete.
57574         * lib/stdio_.h (getdelim, getline): Declare.
57575         * modules/getdelim-tests: New module.
57576         * modules/getline-tests: Likewise.
57577         * tests/test-getdelim.c: New file.
57578         * tests/test-getline.c: Likewise.
57579         * NEWS: Document the change.
57580         * lib/getline.c: Update choice of header.
57581         * lib/csharpcomp.c: Likewise.
57582         * lib/getpass.c: Likewise.
57583         * lib/javacomp.c: Likewise.
57584         * lib/javaversion.c: Likewise.
57585         * lib/yesno.c: Likewise.
57586         * lib/getdelim.c: Likewise.
57587         (getdelim): Set errno on failure, and avoid memory leak.
57588
57589 2007-08-19  Bruno Haible  <bruno@clisp.org>
57590
57591         * modules/closein (Depends-on): Add freadahead.
57592         * lib/closein.c: Include freadahead.h.
57593         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57594         is zero.
57595
57596 2007-08-19  Bruno Haible  <bruno@clisp.org>
57597
57598         * modules/freadahead-tests: New file.
57599         * tests/test-freadahead.sh: New file.
57600         * tests/test-freadahead.c: New file.
57601
57602         * modules/freadahead: New file.
57603         * lib/freadahead.h: New file.
57604         * lib/freadahead.c: New file.
57605         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57606         fbufmode, fpurge, freadable, fwritable.
57607
57608 2007-08-19  Eric Blake  <ebb9@byu.net>
57609
57610         Test yesno in combination with closein.
57611         * lib/yesno.c (yesno): Document use of stdin.
57612         * modules/yesno-tests (Files): New module.
57613         * tests/test-yesno.c (main): New file.
57614         * tests/test-yesno.sh: Likewise.
57615
57616 2007-08-19  Bruno Haible  <bruno@clisp.org>
57617
57618         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57619         * lib/fseeko.c (rpl_fseeko): Likewise.
57620         * lib/fseterr.c (fseterr): Likewise.
57621
57622 2007-08-19  Bruno Haible  <bruno@clisp.org>
57623
57624         * tests/test-lseek.c (main): Disable a test for BeOS.
57625         * doc/functions/lseek.texi: Document the BeOS bug.
57626
57627 2007-08-19  Bruno Haible  <bruno@clisp.org>
57628             Eric Blake  <ebb9@byu.net>
57629
57630         * lib/lseek.c: Include <sys/stat.h>.
57631         (rpl_lseek): Add workaround code also for Unix platforms.
57632         Needed for BeOS.
57633         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57634         * doc/functions/lseek.texi: Document BeOS definiency.
57635
57636 2007-08-18  Bruno Haible  <bruno@clisp.org>
57637
57638         * modules/fstrcmp-tests: New file.
57639         * tests/test-fstrcmp.c: New file.
57640
57641 2007-08-18  Bruno Haible  <bruno@clisp.org>
57642
57643         * modules/fstrcmp: New file, from GNU gettext with modifications.
57644         * lib/fstrcmp.h: New file, from GNU gettext.
57645         * lib/fstrcmp.c: New file, from GNU gettext.
57646         * MODULES.html.sh (String handling): Add fstrcmp.
57647
57648 2007-08-18  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57651         'bool'.
57652         (diag, compareseq): Remove const from the ctxt argument.
57653         (USE_HEURISTIC): Undefine at the end.
57654
57655 2007-08-18  Jim Meyering  <jim@meyering.net>
57656
57657         New file: lib/idcache.h
57658         * NEWS: Mention the addition.
57659         * modules/idcache (Files): Add lib/idcache.h
57660         * lib/idcache.c: Include "idcache.h".
57661         Don't include <sys/types.h>.
57662         Add a FIXME comment.
57663         Move file-scoped "static" declarations to the top.
57664         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57665
57666 2007-08-17  Bruno Haible  <bruno@clisp.org>
57667         and Paul Eggert  <eggert@cs.ucla.edu>
57668
57669         * MODULES.html.sh: Add diffseq.
57670         * modules/diffseq: New file.
57671         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57672         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57673
57674 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57675
57676         Import changes from coreutils for bootstrap script.
57677
57678         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57679
57680         * build-aux/bootstrap (slurp): Work even in environments where
57681         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57682         current code does not slurp files whose names start with ".", and
57683         this looks like it might be a troublesome area.
57684
57685         2007-07-11  Jim Meyering  <jim@meyering.net>
57686
57687         If there's a GPL vN copyright comment, require that N == 3.
57688
57689         2007-07-08  Jim Meyering  <jim@meyering.net>
57690
57691         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57692         * build-aux/bootstrap (mam_template): Move definition out of loop.
57693
57694         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57695
57696         * build-aux/bootstrap (symlink_to_dir): Rename function from
57697         symlink_to_gnulib.  Add a directory parameter.  Update all
57698         callers.
57699         (cp_mark_as_generated): Also check for -- and link to -- files in
57700         gl/.
57701
57702         2007-07-08  Jim Meyering  <jim@meyering.net>
57703
57704         Adapt to deeper hierarchy in gnulib.
57705         * build-aux/bootstrap (symlink_to_dir): If the destination
57706         directory doesn't exist, create it. This is required at least for
57707         "lib/uniwidth/cjk.h".
57708
57709         2007-05-15  Jim Meyering  <jim@meyering.net>
57710
57711         * build-aux/bootstrap: Now that generated Makefile.am files
57712         are no longer under version control, they must be created at
57713         bootstrap time.
57714
57715 2007-08-14  Ben Pfaff  <blp@gnu.org>
57716
57717         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57718
57719 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57720
57721         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57722         given the changes below.
57723         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57724         even on hosts that have padding bits beyond the supported 64.
57725
57726 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57727
57728         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57729         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57730         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57731         depends on it.
57732         (xstrtol_error): Remove.
57733         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57734         but with a different signature.
57735         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57736         * lib/xstrtol-error.c: Include exitfail.h.
57737         (xstrtol_fatal): New function, with a different signature from the
57738         old xstrtol_error, so that the caller need not worry about passing
57739         in an exit status, or about storage management of the option argument.
57740         (xstrtol_error): Now a static function.  Redo signature to
57741         implement xstrtol_fatal.  Output the correct number of hyphens in
57742         front of the option so that the caller need not worry about
57743         storage management.
57744         (N_): New macro.
57745         (_): Remove; not used now.
57746         * modules/xstrtol: Depend on getopt.
57747         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57748         of old STRTOL_FATAL_ERROR macro.
57749         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57750         of test program.
57751         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57752         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57753
57754 2007-08-08  Eric Blake  <ebb9@byu.net>
57755
57756         * lib/xstrtol-error.c: Add missing include.
57757
57758         Move xstrtol messages into gnulib domain, when --pobase is used.
57759         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57760         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57761         * modules/xstrtol (Files): Distribute new file.
57762         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57763         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57764         * tests/test-xstrtol.c: ...into new file.
57765         * tests/test-xstrtoul.c: Also test xstrtoul.
57766         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57767         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57768         * tests/test-xstrtol.sh: Drive the tests.
57769         * tests/test-xstrtoimax.sh: Likewise.
57770         * tests/test-xstrtoumax.sh: Likewise.
57771         * modules/xstrtol-tests: New module.
57772         * modules/xstrtoimax-tests: Likewise.
57773         * modules/xstrtoumax-tests: Likewise.
57774
57775 2007-08-08  Jim Meyering  <jim@meyering.net>
57776
57777         New function: mfile_name_concat.
57778         * lib/filenamecat.c (mfile_name_concat): New function, just like
57779         file_name_concat, but return NULL upon failure rather than exiting
57780         with a diagnostic.
57781         * lib/filenamecat.h: Declare it.
57782
57783 2007-08-07  Bruno Haible  <bruno@clisp.org>
57784
57785         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57786         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57787         warning from gcc.
57788         Reported by Eric Blake.
57789
57790 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57791
57792         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57793         * modules/crypto/arcfour (License): Likewise.
57794         * modules/crypto/des-tests (License): Likewise.
57795         * modules/crypto/gc-arctwo-tests (License): Likewise.
57796         * modules/crypto/gc-des-tests (License): Likewise.
57797         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57798         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57799         * modules/crypto/gc-md2-tests (License): Likewise.
57800         * modules/crypto/gc-md4-tests (License): Likewise.
57801         * modules/crypto/gc-md5-tests (License): Likewise.
57802         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57803         * modules/crypto/gc-rijndael-tests (License): Likewise.
57804         * modules/crypto/gc-sha1-tests (License): Likewise.
57805         * modules/crypto/gc-tests (License): Likewise.
57806         * modules/crypto/hmac-md5 (License): Likewise.
57807         * modules/crypto/hmac-sha1 (License): Likewise.
57808         * modules/crypto/md2-tests (License): Likewise.
57809         * modules/crypto/md4-tests (License): Likewise.
57810         * modules/crypto/md5 (License): Likewise.
57811         * modules/crypto/rijndael (License): Likewise.
57812         * modules/crypto/sha1 (License): Likewise.
57813         * modules/memxor (License): Likewise.
57814
57815 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57816         and Bruno Haible  <bruno@clisp.org>
57817
57818         * NEWS: Describe interface changes to human, xstrtol.
57819         * lib/human.h: Include <xstrtol.h>.
57820         (human_options): Return enum strtol_error, not int.  Remove
57821         bool arg; take int * instead.
57822         * lib/human.c: Don't include "gettext.h".
57823         (_): Remove; no longer used.
57824         Don't include <xstrtol.h>, since human.h does it.
57825         (human_options): Adjust to abovementioned interface changes.
57826         Do not report error to stderr; that's now the caller's
57827         responsibility.
57828         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57829         interface change.
57830         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57831         Str, Argument_type_string.  All uses changed.  Put " argument"
57832         in diagnostics to make them clearer.  Change wording of suffix
57833         message for clarity.
57834         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57835         Argument_type_string.
57836         (STRTOL_FATAL_WARN): Remove; no longer used.
57837         * modules/human (Depends-on): Remove gettext-h.
57838
57839 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57840
57841         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57842
57843 2007-07-31  Bruno Haible  <bruno@clisp.org>
57844
57845         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57846         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57847         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57848
57849 2007-07-31  Bruno Haible  <bruno@clisp.org>
57850
57851         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57852         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57853
57854 2007-07-30  Bruno Haible  <bruno@clisp.org>
57855
57856         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57857         * modules/c-ctype (License): Likewise.
57858         * modules/c-strcase (License): Likewise.
57859         * modules/check-version (License): Likewise.
57860         * modules/iconv (License): Likewise.
57861         * modules/iconv_open (License): Likewise.
57862         * modules/read-file (License): Likewise.
57863         * modules/striconv (License): Likewise.
57864         * modules/strverscmp (License): Likewise.
57865         * modules/vasprintf (License): Likewise.
57866         * modules/crypto/des (License): Likewise.
57867         * modules/crypto/gc (License): Likewise.
57868         * modules/crypto/gc-arcfour (License): Likewise.
57869         * modules/crypto/gc-arctwo (License): Likewise.
57870         * modules/crypto/gc-des (License): Likewise.
57871         * modules/crypto/gc-hmac-md5 (License): Likewise.
57872         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57873         * modules/crypto/gc-md2 (License): Likewise.
57874         * modules/crypto/gc-md4 (License): Likewise.
57875         * modules/crypto/gc-md5 (License): Likewise.
57876         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57877         * modules/crypto/gc-random (License): Likewise.
57878         * modules/crypto/gc-rijndael (License): Likewise.
57879         * modules/crypto/gc-sha1 (License): Likewise.
57880         * modules/crypto/md2 (License): Likewise.
57881         * modules/crypto/md4 (License): Likewise.
57882
57883 2007-07-30  Jim Meyering  <jim@meyering.net>
57884
57885         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57886         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57887         it has valid stat data.  This bug would cause du not to count the
57888         sizes of inaccessible directories.
57889         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57890         in <http://bugzilla.redhat.com/250077>.
57891
57892 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57893             Bruno Haible  <bruno@clisp.org>
57894
57895         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57896         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57897         #include_next, gives a diagnostic about it, but reports no error in
57898         the exit code.
57899         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57900
57901 2007-07-24  Ben Pfaff  <blp@gnu.org>
57902
57903         Improve name: "count-one-bits" is better than "popcount".
57904         * MODULES.html.sh: Update name.
57905         * lib/popcount.h: Renamed lib/count-one-bits.h.
57906         (popcount): Renamed count_one_bits.
57907         (popcountl): Renamed count_one_bits_l.
57908         (popcountll): Renamed count_one_bits_ll.
57909         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57910         * modules/popcount: Renamed module/count-one-bits.
57911         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57912         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57913
57914 2007-07-23  Ben Pfaff  <blp@gnu.org>
57915
57916         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57917         better code generation, and add U to large constants to avoid
57918         warnings, in non-GCC case.
57919         Suggested by Bruno Haible.
57920
57921 2007-07-23  Ben Pfaff  <blp@gnu.org>
57922
57923         * lib/popcount.h: Use verify_true instead of if...abort.
57924         * modules/popcount: Depend on verify module.
57925         Suggested by Jim Meyering.
57926
57927 2007-07-23  Bruno Haible  <bruno@clisp.org>
57928
57929         * gnulib-tool (func_import): Create a .cvsignore file also when the
57930         directory is not yet in CVS but the toplevel directory is. When
57931         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57932         Reported by Karl Berry.
57933
57934 2007-07-22  Ben Pfaff  <blp@gnu.org>
57935
57936         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57937         case.
57938         Suggested by Eric Blake.
57939
57940 2007-07-22  Ben Pfaff  <blp@gnu.org>
57941
57942         New module: popcount.
57943         * MODULES.html.sh: Add popcount.
57944         * modules/popcount: New file.
57945         * modules/popcount-tests: New file.
57946         * tests/test-popcount.c: New file.
57947         * lib/popcount.h: New file.
57948         * m4/popcount.m4: New file.
57949
57950 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57951
57952         * build-aux/announce-gen: Update to GPLv3.
57953
57954         * build-aux/config.guess: Update from config.
57955
57956 2007-07-21  Bruno Haible  <bruno@clisp.org>
57957
57958         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57959         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57960
57961 2007-07-20  Jim Meyering  <jim@meyering.net>
57962
57963         * check-module: Diagnose a self-dependency.
57964
57965 2007-07-19  Bruno Haible  <bruno@clisp.org>
57966
57967         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57968         empty.
57969         Reported by Eric Blake.
57970
57971 2007-07-18  Bruno Haible  <bruno@clisp.org>
57972
57973         * gnulib-tool: New options --po-base, --po-domain.
57974         (func_usage): Document them.
57975         (pobase, po_domain): New variables.
57976         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57977         DEFAULT_TEXT_DOMAIN.
57978         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57979         (func_import): Consider pobase and po_domain. Create a po/ directory.
57980         (func_create_testdir): Set pobase and po_domain to empty.
57981         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57982         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57983
57984 2007-07-18  Bruno Haible  <bruno@clisp.org>
57985
57986         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57987         EXTRA_DIST augmentation for files in build-aux/.
57988
57989 2007-07-16  Bruno Haible  <bruno@clisp.org>
57990
57991         * modules/lseek (License): Use the synonymous term "LGPLv2+".
57992         * modules/getdelim (License): Likewise.
57993
57994 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57995
57996         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
57997         * modules/d-type (License): Likewise.
57998         * modules/extensions (License): Likewise.
57999         * modules/fnmatch (License): Likewise.
58000         * modules/fseeko (License): Likewise.
58001         * modules/getaddrinfo (License): Likewise.
58002         * modules/getline (License): Likewise.
58003         * modules/getlogin_r (License): Likewise.
58004         * modules/getpass (License): Likewise.
58005         * modules/gettimeofday (License): Likewise.
58006         * modules/glob (License): Likewise.
58007         * modules/inet_ntop (License): Likewise.
58008         * modules/malloc (License): Likewise.
58009         * modules/malloca (License): Likewise.
58010         * modules/memmem (License): Likewise.
58011         * modules/mempcpy (License): Likewise.
58012         * modules/memset (License): Likewise.
58013         * modules/minmax (License): Likewise.
58014         * modules/mktime (License): Likewise.
58015         * modules/netinet_in (License): Likewise.
58016         * modules/pathmax (License): Likewise.
58017         * modules/poll (License): Likewise.
58018         * modules/regex (License): Likewise.
58019         * modules/snprintf (License): Likewise.
58020         * modules/stdbool (License): Likewise.
58021         * modules/stdint (License): Likewise.
58022         * modules/stdio (License): Likewise.
58023         * modules/strcase (License): Likewise.
58024         * modules/strcasestr (License): Likewise.
58025         * modules/strdup (License): Likewise.
58026         * modules/string (License): Likewise.
58027         * modules/strndup (License): Likewise.
58028         * modules/strnlen (License): Likewise.
58029         * modules/strpbrk (License): Likewise.
58030         * modules/strptime (License): Likewise.
58031         * modules/strsep (License): Likewise.
58032         * modules/sys_select (License): Likewise.
58033         * modules/sys_socket (License): Likewise.
58034         * modules/sys_stat (License): Likewise.
58035         * modules/sys_time (License): Likewise.
58036         * modules/time (License): Likewise.
58037         * modules/time_r (License): Likewise.
58038         * modules/timegm (License): Likewise.
58039         * modules/unistd (License): Likewise.
58040         * modules/vsnprintf (License): Likewise.
58041         * modules/wctype (License): Likewise.
58042
58043 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58044
58045         * modules/argz (License): LGPLv2+.
58046
58047 2007-07-15  Karl Berry  <karl@gnu.org>
58048
58049         * doc/gnulib.texi: revise node structure per new fdl.texi.
58050
58051 2007-07-14  Bruno Haible  <bruno@clisp.org>
58052
58053         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58054         the output file.
58055         * lib/uniname/uninames.h: Regenerated.
58056
58057 2007-07-14  Karl Berry  <karl@gnu.org>
58058
58059         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58060         omitting sectioning and index commands.
58061
58062 2007-07-13  Bruno Haible  <bruno@clisp.org>
58063
58064         New gnulib-tool option --more-symlinks.
58065         * gnulib-tool (func_usage): Document --more-symlinks.
58066         (do_copyrights): New variable.
58067         Recognize option --more-symlinks.
58068         (func_import): Don't add a copyright notice transform to
58069         sed_transform_lib_file if do_copyrights is empty.
58070
58071 2007-07-13  Bruno Haible  <bruno@clisp.org>
58072
58073         * lib/vasnprintf.c (decimal_point_char): Define also if
58074         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58075         && !NEED_PRINTF_DIRECTIVE_A.
58076         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58077         Gary V. Vaughan <gary@gnu.org>.
58078
58079 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58080
58081         * lib/inttypes_.h: Undo previous change, since it was fixed
58082         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58083
58084 2007-07-13  Bruno Haible  <bruno@clisp.org>
58085
58086         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58087         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58088
58089 2007-07-13  Jim Meyering  <jim@meyering.net>
58090
58091         df: Don't fail for Tru64's "file-on-file mount".
58092         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58093         so we fall through and use statfs instead.  Details here:
58094         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58095         Reported by Albert Chin.
58096
58097 2007-07-13  Bruno Haible  <bruno@clisp.org>
58098
58099         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58100         * modules/configmake (License): Likewise.
58101         * modules/gettext (License): Likewise.
58102         * modules/gettext-h (License): Likewise.
58103         * modules/include_next (License): Likewise.
58104         * modules/link-warning (License): Likewise.
58105         * modules/localcharset (License): Likewise.
58106         * modules/localename (License): Likewise.
58107         * modules/lock (License): Likewise.
58108         * modules/relocatable-lib-lgpl (License): Likewise.
58109         * modules/size_max (License): Likewise.
58110         * modules/vasnprintf (License): Likewise.
58111         * modules/wchar (License): Likewise.
58112         * modules/xsize (License): Likewise.
58113
58114 2007-07-13  Bruno Haible  <bruno@clisp.org>
58115
58116         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58117         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58118
58119 2007-07-12  Bruno Haible  <bruno@clisp.org>
58120
58121         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58122         in the modules files.
58123
58124 2007-07-11  Karl Berry  <karl@gnu.org>
58125
58126         * MODULES.html.sh (func_module): use
58127          sed -e '\|^'"${includefile}"'$|d'
58128          instead of /.../d, to avoid errors on $includefile's containing /.
58129
58130 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58131
58132         * gnulib-tool (func_import): Avoid duplication of --avoid
58133         statements
58134         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58135         names to `_' in variable names.
58136
58137 2007-07-10  Eric Blake  <ebb9@byu.net>
58138
58139         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58140         * NEWS: Document this change.
58141
58142 2007-07-08  Bruno Haible  <bruno@clisp.org>
58143
58144         Update to Unicode 5.0.
58145         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58146         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58147         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58148         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58149         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58150         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58151         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58152         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58153         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58154         U+10A3F, U+1D242..U+1D244.
58155         (nonspacing_table_ind): Update.
58156         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58157         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58158
58159 2007-07-08  Bruno Haible  <bruno@clisp.org>
58160
58161         Update to Unicode 5.0.
58162         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58163         code transform. Extend the name index field of unicode_name_to_code and
58164         unicode_code_to_name from 16 to 24 bits.
58165         * lib/uniname/uniname.c (unicode_character_name,
58166         unicode_name_character): Add the range 0x12xxx to the code transform.
58167         * lib/uniname/uninames.h: Regenerated.
58168         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58169
58170 2007-07-07  Bruno Haible  <bruno@clisp.org>
58171
58172         * modules/wcwidth-tests: New file.
58173         * tests/test-wcwidth.c: New file.
58174
58175         Work around MacOS X wcwidth() bug.
58176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58177         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58178         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58179         original wcwidth in non-UTF-8 locales.
58180         * modules/wcwidth (Depends-on): Add localcharset, streq,
58181         uniwidth/width.
58182         * doc/functions/wcwidth.texi: Update.
58183
58184 2007-07-07  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58187         (wcwidth): New declaration.
58188         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58189         macros.
58190         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58191         here. Prepare for creating <wchar.h> unconditionally.
58192         * modules/wchar (Depends-on): Add link-warning.
58193         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58194         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58195         * lib/wcwidth.h: Remove file.
58196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58197         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58198         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58199         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58200         (Include): Replace wcwidth.h with <wchar.h>.
58201         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58202         * lib/mbchar.h: Don't include wcwidth.h.
58203         * lib/mbswidth.c: Likewise.
58204         * NEWS: Mention the change.
58205
58206 2007-07-07  Bruno Haible  <bruno@clisp.org>
58207
58208         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58209         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58210         definition with an external declaration.
58211         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58212         defined as a function. Remove AC_C_INLINE requirement.
58213         * modules/wcwidth (Files): Add lib/wcwidth.c.
58214         (Makefile.am): Remove redundant statement.
58215
58216 2007-07-07  Bruno Haible  <bruno@clisp.org>
58217
58218         * MODULES.html.sh (Unicode string functions): Add the new modules.
58219
58220         * tests/uniwidth/test-u32-strwidth.c: New file.
58221         * modules/uniwidth/u32-strwidth-tests: New file.
58222
58223         * lib/uniwidth/u32-strwidth.c: New file.
58224         * modules/uniwidth/u32-strwidth: New file.
58225
58226         * tests/uniwidth/test-u16-strwidth.c: New file.
58227         * modules/uniwidth/u16-strwidth-tests: New file.
58228
58229         * lib/uniwidth/u16-strwidth.c: New file.
58230         * modules/uniwidth/u16-strwidth: New file.
58231
58232         * tests/uniwidth/test-u8-strwidth.c: New file.
58233         * modules/uniwidth/u8-strwidth-tests: New file.
58234
58235         * lib/uniwidth/u8-strwidth.c: New file.
58236         * modules/uniwidth/u8-strwidth: New file.
58237
58238         * tests/uniwidth/test-u32-width.c: New file.
58239         * modules/uniwidth/u32-width-tests: New file.
58240
58241         * lib/uniwidth/u32-width.c: New file.
58242         * modules/uniwidth/u32-width: New file.
58243
58244         * tests/uniwidth/test-u16-width.c: New file.
58245         * modules/uniwidth/u16-width-tests: New file.
58246
58247         * lib/uniwidth/u16-width.c: New file.
58248         * modules/uniwidth/u16-width: New file.
58249
58250         * tests/uniwidth/test-u8-width.c: New file.
58251         * modules/uniwidth/u8-width-tests: New file.
58252
58253         * lib/uniwidth/u8-width.c: New file.
58254         * modules/uniwidth/u8-width: New file.
58255
58256         * tests/uniwidth/test-uc_width.c: New file.
58257         * modules/uniwidth/width-tests: New file.
58258
58259         * lib/uniwidth/width.c: New file, from GNU libiconv.
58260         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58261         * modules/uniwidth/width: New file.
58262
58263         * lib/uniwidth.h: New file, from GNU libiconv.
58264         * modules/uniwidth/base: New file.
58265
58266 2007-07-07  Bruno Haible  <bruno@clisp.org>
58267
58268         * lib/uniname.h: New file, from GNU gettext.
58269         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58270         * lib/uniname/uninames.h: New file, from GNU gettext.
58271         * lib/uniname/uniname.c: New file, from GNU gettext.
58272         * tests/uniname/test-uninames.sh: New file.
58273         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58274         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58275         * modules/uniname/base: New file.
58276         * modules/uniname/uniname: New file.
58277         * modules/uniname/uniname-tests: New file.
58278         * MODULES.html.sh (Unicode string functions): Add the new modules.
58279
58280 2007-07-06  Bruno Haible  <bruno@clisp.org>
58281
58282         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58283
58284 2007-07-06  Bruno Haible  <bruno@clisp.org>
58285
58286         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58287         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58288         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58289         include <sys/time.h>.
58290         Reported by Eric Blake.
58291
58292 2007-07-06  Eric Blake  <ebb9@byu.net>
58293
58294         Fix testing canonicalize on cygwin.
58295         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58296         Revert patch from 2007-06-19.
58297         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58298         canonicalize module is also in use.
58299         * tests/test-canonicalize.c: New file.
58300         * tests/test-canonicalize.sh: Likewise.
58301         * modules/canonicalize-tests: Likewise.
58302
58303 2007-07-06  Jim Meyering  <jim@meyering.net>
58304
58305         * lib/getugroups.c (getugroups): Detect getgrent failure.
58306         Adjust comment to reflect reality: this function may return -1.
58307
58308 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58309
58310         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58311         the new TP address.
58312         (usage): Fix typo
58313         (gnulib_mk): New variable.
58314
58315 2007-07-05  Jim Meyering  <jim@meyering.net>
58316
58317         Don't let endgrent clobber errno, no matter how improbable.
58318         * lib/getugroups.c (getugroups): Save and restore errno around
58319         endgrent call.
58320
58321         Close the group DB even when failing with 2^31 or more members.
58322         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58323
58324 2007-07-04  Jim Meyering  <jim@meyering.net>
58325
58326         * lib/getugroups.h: New file.
58327         * lib/getugroups.c: Include "getugroups.h".
58328         Remove uses of "register" keyword.
58329         Move local variable, "cp", down into scope where used.
58330         Give "username" parameter the "const" attribute.
58331         * modules/getugroups (Files): Add lib/getugroups.h
58332
58333 2007-07-04  Karl Berry  <karl@gnu.org>
58334
58335         * MODULES.html.sh (func_all_modules): Complete rename of
58336         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58337
58338 2007-07-02  Bruno Haible  <bruno@clisp.org>
58339
58340         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58341         mode, when inttypes.h comes from gnulib.
58342         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58343
58344 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58345
58346         * NEWS: Mention lgpl module name change.
58347
58348         * modules/lgpl-2.1: Renamed from lgpl.
58349
58350         * NEWS: Mention gpl module name change.
58351
58352         * modules/gpl-3.0: New file, based on gpl-2.0.
58353
58354         * modules/gpl-2.0: Renamed from gpl.
58355
58356         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58357         doc/gpl-2.0.texi.
58358
58359 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58360
58361         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58362         #define __STDC_LIMIT_MACROS temporarily while including
58363         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58364         Problem reported by Joel E. Denny in
58365         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58366
58367 2007-07-01  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/unistdio.h: New file.
58370         * lib/unistdio/u-asnprintf.h: New file.
58371         * lib/unistdio/u-asprintf.h: New file.
58372         * lib/unistdio/u-printf-args.c: New file.
58373         * lib/unistdio/u-printf-args.h: New file.
58374         * lib/unistdio/u-printf-parse.h: New file.
58375         * lib/unistdio/u-snprintf.h: New file.
58376         * lib/unistdio/u-sprintf.h: New file.
58377         * lib/unistdio/u-vasprintf.h: New file.
58378         * lib/unistdio/u-vsnprintf.h: New file.
58379         * lib/unistdio/u-vsprintf.h: New file.
58380         * lib/unistdio/ulc-asnprintf.c: New file.
58381         * lib/unistdio/ulc-asprintf.c: New file.
58382         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58383         * lib/unistdio/ulc-printf-parse.c: New file.
58384         * lib/unistdio/ulc-snprintf.c: New file.
58385         * lib/unistdio/ulc-sprintf.c: New file.
58386         * lib/unistdio/ulc-vasnprintf.c: New file.
58387         * lib/unistdio/ulc-vasprintf.c: New file.
58388         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58389         * lib/unistdio/ulc-vsnprintf.c: New file.
58390         * lib/unistdio/ulc-vsprintf.c: New file.
58391         * lib/unistdio/u8-asnprintf.c: New file.
58392         * lib/unistdio/u8-asprintf.c: New file.
58393         * lib/unistdio/u8-printf-parse.c: New file.
58394         * lib/unistdio/u8-snprintf.c: New file.
58395         * lib/unistdio/u8-sprintf.c: New file.
58396         * lib/unistdio/u8-vasnprintf.c: New file.
58397         * lib/unistdio/u8-vasprintf.c: New file.
58398         * lib/unistdio/u8-vsnprintf.c: New file.
58399         * lib/unistdio/u8-vsprintf.c: New file.
58400         * lib/unistdio/u8-u8-asnprintf.c: New file.
58401         * lib/unistdio/u8-u8-asprintf.c: New file.
58402         * lib/unistdio/u8-u8-snprintf.c: New file.
58403         * lib/unistdio/u8-u8-sprintf.c: New file.
58404         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58405         * lib/unistdio/u8-u8-vasprintf.c: New file.
58406         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58407         * lib/unistdio/u8-u8-vsprintf.c: New file.
58408         * lib/unistdio/u16-asnprintf.c: New file.
58409         * lib/unistdio/u16-asprintf.c: New file.
58410         * lib/unistdio/u16-printf-parse.c: New file.
58411         * lib/unistdio/u16-snprintf.c: New file.
58412         * lib/unistdio/u16-sprintf.c: New file.
58413         * lib/unistdio/u16-vasnprintf.c: New file.
58414         * lib/unistdio/u16-vasprintf.c: New file.
58415         * lib/unistdio/u16-vsnprintf.c: New file.
58416         * lib/unistdio/u16-vsprintf.c: New file.
58417         * lib/unistdio/u16-u16-asnprintf.c: New file.
58418         * lib/unistdio/u16-u16-asprintf.c: New file.
58419         * lib/unistdio/u16-u16-snprintf.c: New file.
58420         * lib/unistdio/u16-u16-sprintf.c: New file.
58421         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58422         * lib/unistdio/u16-u16-vasprintf.c: New file.
58423         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58424         * lib/unistdio/u16-u16-vsprintf.c: New file.
58425         * lib/unistdio/u32-asnprintf.c: New file.
58426         * lib/unistdio/u32-asprintf.c: New file.
58427         * lib/unistdio/u32-printf-parse.c: New file.
58428         * lib/unistdio/u32-snprintf.c: New file.
58429         * lib/unistdio/u32-sprintf.c: New file.
58430         * lib/unistdio/u32-vasnprintf.c: New file.
58431         * lib/unistdio/u32-vasprintf.c: New file.
58432         * lib/unistdio/u32-vsnprintf.c: New file.
58433         * lib/unistdio/u32-vsprintf.c: New file.
58434         * lib/unistdio/u32-u32-asnprintf.c: New file.
58435         * lib/unistdio/u32-u32-asprintf.c: New file.
58436         * lib/unistdio/u32-u32-snprintf.c: New file.
58437         * lib/unistdio/u32-u32-sprintf.c: New file.
58438         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58439         * lib/unistdio/u32-u32-vasprintf.c: New file.
58440         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58441         * lib/unistdio/u32-u32-vsprintf.c: New file.
58442         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58443         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58444         * tests/unistdio/test-ulc-printf1.h: New file.
58445         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58446         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58447         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58448         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58449         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58450         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58451         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58452         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58453         * tests/unistdio/test-u8-asnprintf1.c: New file.
58454         * tests/unistdio/test-u8-asnprintf1.h: New file.
58455         * tests/unistdio/test-u8-printf1.h: New file.
58456         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58457         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58458         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58459         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58460         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58461         * tests/unistdio/test-u8-vasprintf1.c: New file.
58462         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58463         * tests/unistdio/test-u8-vsprintf1.c: New file.
58464         * tests/unistdio/test-u16-asnprintf1.c: New file.
58465         * tests/unistdio/test-u16-asnprintf1.h: New file.
58466         * tests/unistdio/test-u16-printf1.h: New file.
58467         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58468         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58469         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58470         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58471         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58472         * tests/unistdio/test-u16-vasprintf1.c: New file.
58473         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58474         * tests/unistdio/test-u16-vsprintf1.c: New file.
58475         * tests/unistdio/test-u32-asnprintf1.c: New file.
58476         * tests/unistdio/test-u32-asnprintf1.h: New file.
58477         * tests/unistdio/test-u32-printf1.h: New file.
58478         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58479         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58480         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58481         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58482         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58483         * tests/unistdio/test-u32-vasprintf1.c: New file.
58484         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58485         * tests/unistdio/test-u32-vsprintf1.c: New file.
58486         * modules/unistdio/base: New file.
58487         * modules/unistdio/u-printf-args: New file.
58488         * modules/unistdio/ulc-asnprintf: New file.
58489         * modules/unistdio/ulc-asprintf: New file.
58490         * modules/unistdio/ulc-fprintf: New file.
58491         * modules/unistdio/ulc-printf-parse: New file.
58492         * modules/unistdio/ulc-snprintf: New file.
58493         * modules/unistdio/ulc-sprintf: New file.
58494         * modules/unistdio/ulc-vasnprintf: New file.
58495         * modules/unistdio/ulc-vasprintf: New file.
58496         * modules/unistdio/ulc-vfprintf: New file.
58497         * modules/unistdio/ulc-vsnprintf: New file.
58498         * modules/unistdio/ulc-vsprintf: New file.
58499         * modules/unistdio/u8-asnprintf: New file.
58500         * modules/unistdio/u8-asprintf: New file.
58501         * modules/unistdio/u8-printf-parse: New file.
58502         * modules/unistdio/u8-snprintf: New file.
58503         * modules/unistdio/u8-sprintf: New file.
58504         * modules/unistdio/u8-vasnprintf: New file.
58505         * modules/unistdio/u8-vasprintf: New file.
58506         * modules/unistdio/u8-vsnprintf: New file.
58507         * modules/unistdio/u8-vsprintf: New file.
58508         * modules/unistdio/u8-u8-asnprintf: New file.
58509         * modules/unistdio/u8-u8-asprintf: New file.
58510         * modules/unistdio/u8-u8-snprintf: New file.
58511         * modules/unistdio/u8-u8-sprintf: New file.
58512         * modules/unistdio/u8-u8-vasnprintf: New file.
58513         * modules/unistdio/u8-u8-vasprintf: New file.
58514         * modules/unistdio/u8-u8-vsnprintf: New file.
58515         * modules/unistdio/u8-u8-vsprintf: New file.
58516         * modules/unistdio/u16-asnprintf: New file.
58517         * modules/unistdio/u16-asprintf: New file.
58518         * modules/unistdio/u16-printf-parse: New file.
58519         * modules/unistdio/u16-snprintf: New file.
58520         * modules/unistdio/u16-sprintf: New file.
58521         * modules/unistdio/u16-vasnprintf: New file.
58522         * modules/unistdio/u16-vasprintf: New file.
58523         * modules/unistdio/u16-vsnprintf: New file.
58524         * modules/unistdio/u16-vsprintf: New file.
58525         * modules/unistdio/u16-u16-asnprintf: New file.
58526         * modules/unistdio/u16-u16-asprintf: New file.
58527         * modules/unistdio/u16-u16-snprintf: New file.
58528         * modules/unistdio/u16-u16-sprintf: New file.
58529         * modules/unistdio/u16-u16-vasnprintf: New file.
58530         * modules/unistdio/u16-u16-vasprintf: New file.
58531         * modules/unistdio/u16-u16-vsnprintf: New file.
58532         * modules/unistdio/u16-u16-vsprintf: New file.
58533         * modules/unistdio/u32-asnprintf: New file.
58534         * modules/unistdio/u32-asprintf: New file.
58535         * modules/unistdio/u32-printf-parse: New file.
58536         * modules/unistdio/u32-snprintf: New file.
58537         * modules/unistdio/u32-sprintf: New file.
58538         * modules/unistdio/u32-vasnprintf: New file.
58539         * modules/unistdio/u32-vasprintf: New file.
58540         * modules/unistdio/u32-vsnprintf: New file.
58541         * modules/unistdio/u32-vsprintf: New file.
58542         * modules/unistdio/u32-u32-asnprintf: New file.
58543         * modules/unistdio/u32-u32-asprintf: New file.
58544         * modules/unistdio/u32-u32-snprintf: New file.
58545         * modules/unistdio/u32-u32-sprintf: New file.
58546         * modules/unistdio/u32-u32-vasnprintf: New file.
58547         * modules/unistdio/u32-u32-vasprintf: New file.
58548         * modules/unistdio/u32-u32-vsnprintf: New file.
58549         * modules/unistdio/u32-u32-vsprintf: New file.
58550         * modules/unistdio/ulc-asnprintf-tests: New file.
58551         * modules/unistdio/ulc-vasnprintf-tests: New file.
58552         * modules/unistdio/ulc-vasprintf-tests: New file.
58553         * modules/unistdio/ulc-vsnprintf-tests: New file.
58554         * modules/unistdio/ulc-vsprintf-tests: New file.
58555         * modules/unistdio/u8-asnprintf-tests: New file.
58556         * modules/unistdio/u8-vasnprintf-tests: New file.
58557         * modules/unistdio/u8-vasprintf-tests: New file.
58558         * modules/unistdio/u8-vsnprintf-tests: New file.
58559         * modules/unistdio/u8-vsprintf-tests: New file.
58560         * modules/unistdio/u16-asnprintf-tests: New file.
58561         * modules/unistdio/u16-vasnprintf-tests: New file.
58562         * modules/unistdio/u16-vasprintf-tests: New file.
58563         * modules/unistdio/u16-vsnprintf-tests: New file.
58564         * modules/unistdio/u16-vsprintf-tests: New file.
58565         * modules/unistdio/u32-asnprintf-tests: New file.
58566         * modules/unistdio/u32-vasnprintf-tests: New file.
58567         * modules/unistdio/u32-vasprintf-tests: New file.
58568         * modules/unistdio/u32-vsnprintf-tests: New file.
58569         * modules/unistdio/u32-vsprintf-tests: New file.
58570         * MODULES.html.sh (Unicode string functions): Add the new modules.
58571
58572 2007-07-01  Bruno Haible  <bruno@clisp.org>
58573
58574         * lib/sprintf.c (sprintf): Limit the available length estimation,
58575         to avoid address wraparound.
58576         * lib/vsprintf.c (vsprintf): Likewise.
58577         * modules/sprintf-posix (Dependencies): Add stdint.
58578         * modules/vsprintf-posix (Dependencies): Likewise.
58579
58580 2007-07-01  Bruno Haible  <bruno@clisp.org>
58581
58582         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58583         Windows PATH as well. Conservative double-quoting. Comments.
58584
58585 2007-07-01  Bruno Haible  <bruno@clisp.org>
58586             Eric Blake  <ebb9@byu.net>
58587             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58588
58589         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58590         empty components in $PATH, denoting '.'.
58591
58592 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58593
58594         * gnulib-tool: Fix indentation.
58595         (func_create_megatestdir): Likewise.
58596         Report by Bruno Haible.
58597
58598 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58599
58600         Sync from Automake.
58601         * build-aux/gnupload: Fix shell portability issues with for loops.
58602         Report by Karl Berry.
58603
58604 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58605
58606         * build-aux/maint.mk (POURL): Use translationproject.org.
58607
58608 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58609             Bruno Haible  <bruno@clisp.org>
58610
58611         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58612         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58613         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58614         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58615         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58616
58617 2007-06-27  Bruno Haible  <bruno@clisp.org>
58618
58619         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58620         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58621
58622 2007-06-26  Karl Berry  <karl@gnu.org>
58623
58624         * MODULES.html.sh: remove xreadlink-with-size.
58625
58626 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58627
58628         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58629         method that I hope also handles the double-include problem noted
58630         by Bruno Haible in
58631         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58632
58633 2007-06-23  Bruno Haible  <bruno@clisp.org>
58634
58635         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58636         Don't let the 'mostlyclean' target fail if the last subdirectory could
58637         not be removed.
58638         Reported by Karl Berry.
58639
58640 2007-06-23  Bruno Haible  <bruno@clisp.org>
58641
58642         * gnulib-tool (echo): Add a speedier workaround for ksh.
58643         * tests/test-echo.sh: Likewise.
58644
58645 2007-06-23  Bruno Haible  <bruno@clisp.org>
58646
58647         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58648         * tests/test-echo.sh: Likewise.
58649
58650 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58651
58652         * gnulib-tool (IFS): Initialize early, so we don't set it to
58653         empty later.
58654         (self_abspathname): Rewrite algorithm to set it, reindent.
58655         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58656         (func_create_megatestdir): Merge some sed scripts.
58657
58658 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58659
58660         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58661         exposed by Sun Studio 11 cc on Solaris 8.
58662
58663 2007-06-22  Bruno Haible  <bruno@clisp.org>
58664
58665         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58666         backslashes.
58667         * tests/test-echo.sh: New file.
58668
58669 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58670
58671         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58672         simplify `sed_replace_build_aux' scripts, they are portable but
58673         echoing them with `echo' is not.
58674         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58675
58676 2007-06-21  Karl Berry  <karl@gnu.org>
58677
58678         * config/srclist.txt: guess we can't handle the licenses via
58679         srclist at the moment.
58680
58681 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58682
58683         * MODULES.html.sh: Add include_next.
58684         * modules/include_next: New file.
58685
58686 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58687
58688         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58689         INCLUDE_NEXT.
58690         (gl_CHECK_NEXT_HEADERS): New macro.
58691         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58692         the obsolescent gl_ABSOLUTE_HEADER.
58693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58694         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58695         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58696         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58697         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58698         * m4/math_h.m4 (gl_MATH_H): Likewise.
58699         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58700         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58701         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58702         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58703         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58704         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58705         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58706         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58709         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58710         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58711         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58712         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58713         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58714         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58715         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58716         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58717         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58718         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58719         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58720         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58721         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58722         * lib/float_.h: Likewise.
58723         * lib/inttypes_.h: Likewise.
58724         * lib/math_.h: Likewise.
58725         * lib/search_.h: Likewise.
58726         * lib/signal_.h: Likewise.
58727         * lib/stdint_.h: Likewise.
58728         * lib/stdio_.h: Likewise.
58729         * lib/stdlib_.h: Likewise.
58730         * lib/string_.h: Likewise.
58731         * lib/sys_stat_.h: Likewise.
58732         * lib/sys_time_.h: Likewise.
58733         * lib/time_.h: Likewise.
58734         * lib/unistd_.h: Likewise.
58735         * lib/wchar_.h: Likewise.
58736         * lib/wctype_.h: Likewise.
58737         * lib/dirent_.h: Likewise.
58738         * lib/iconv_.h: Likewise.
58739         * lib/locale_.h: Likewise.
58740         * lib/netinet_in_.h: Likewise.
58741         * lib/sys_select_.h: Likewise.
58742         * lib/sys_socket_.h: Likewise.
58743         * lib/sysexits_.h: Likewise.
58744         * modules/fcntl (Depends-on): Depend on include_next, not
58745         absolute_header.
58746         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58747         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58748         * modules/fchdir: Likewise.
58749         * modules/float: Likewise.
58750         * modules/iconv_open: Likewise.
58751         * modules/inttypes: Likewise.
58752         * modules/locale: Likewise.
58753         * modules/math: Likewise.
58754         * modules/netinet_in: Likewise.
58755         * modules/search: Likewise.
58756         * modules/signal: Likewise.
58757         * modules/stdint: Likewise.
58758         * modules/stdio: Likewise.
58759         * modules/stdlib: Likewise.
58760         * modules/string: Likewise.
58761         * modules/sys_select: Likewise.
58762         * modules/sys_socket: Likewise.
58763         * modules/sys_stat: Likewise.
58764         * modules/sys_time: Likewise.
58765         * modules/sysexits: Likewise.
58766         * modules/time: Likewise.
58767         * modules/unistd: Likewise.
58768         * modules/wchar: Likewise.
58769         * modules/wctype: Likewise.
58770         * modules/sys_stat: Change maintainer to "all".
58771         * modules/unistd: Likewise.
58772
58773 2007-06-20  Karl Berry  <karl@gnu.org>
58774
58775         * config/srclist.txt: track www changes in license files.
58776
58777 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58778
58779         * build-aux/bootstrap: Remove stray dot.
58780         Make sure build_aux settings are honored when linking
58781         gnulib_extra_files.
58782
58783 2007-06-19  Eric Blake  <ebb9@byu.net>
58784
58785         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58786         Allow compilation on cygwin.
58787
58788 2007-06-19  Jim Meyering  <jim@meyering.net>
58789
58790         xreadlink-with-size: Remove module.  No longer used.
58791         Ex-callers now use xreadlink or mreadlink-with-size.
58792         * modules/xreadlink-with-size: Remove module.
58793         * lib/xreadlink-with-size.c: Remove file.
58794         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58795         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58796         just before the function definition *is* accurate.
58797
58798         Eliminate one way canonicalize_filename_mode could exit.
58799         * lib/canonicalize.c (canonicalize_filename_mode):
58800         Use mreadlink_with_size, not xreadlink_with_size.
58801
58802 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58803
58804         Detect porting problems to FreeBSD/arm, which has time_t wider than
58805         long int.  Original problem reported for GNU diff by Xin Li in
58806         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58807         * modules/getdate (Depends-on): Add intprops, verify.
58808         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58809         is an integer type no wider than long int.
58810
58811 2007-06-18  Jim Meyering  <jim@meyering.net>
58812
58813         New module: mreadlink-with-size.
58814         * MODULES.html.sh: Add mreadlink-with-size.
58815         * modules/mreadlink-with-size: New module
58816         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58817         not xreadlink-with-size.
58818         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58819
58820 2007-06-16  Bruno Haible  <bruno@clisp.org>
58821
58822         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58823         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58824         Reported by Gary V. Vaughan <gary@gnu.org>.
58825
58826 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58827
58828         Revamp lchown so that it lives in unistd.h where it belongs.
58829         * lib/lchown.h: Remove.
58830         * lib/dirchownmod.c: Don't include lib/lchown.h.
58831         * lib/fchownat.c: Likewise.
58832         * lib/openat.c: Likewise.
58833         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58834         does not follow symlinks.
58835         (EOPNOTSUPP): Define if not defined.
58836         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58837         is defined to 0.
58838         (lchown): New decl.
58839         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58840         Do not check for lchown decl.
58841         Set REPLACE_LCHOWN.
58842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58843         REPLACE_LCHOWN.
58844         * modules/chown: Make it clear it follows symlinks.
58845         * modules/lchown: Make it clear it doesn't follow symlinks.
58846         (Files): Remove lib/lchown.h
58847         (Depends-on): Add unistd.
58848         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58849         (Include): Include <unistd.h>, not "lchown.h".
58850         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58851         REPLACE_LCHOWN.
58852
58853 2007-06-15  Jim Meyering  <jim@meyering.net>
58854
58855         Change license (GPL to LGPL) of fsusage and dependents.
58856         * modules/fsusage (License): Change to LGPL.
58857         * modules/full-read (License): Likewise.
58858         * modules/full-write (License): Likewise.
58859         * modules/safe-read (License): Likewise.
58860         * modules/safe-write (License): Likewise.
58861
58862 2007-06-14  Ben Pfaff  <blp@gnu.org>
58863
58864         Missing part of allocsa -> malloca transition.
58865         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58866         gl_MALLOCA.
58867
58868 2007-06-12  Bruno Haible  <bruno@clisp.org>
58869
58870         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58871         to ia64, x86_64, i386.
58872         Reported by Eric Blake.
58873
58874 2007-06-12  Bruno Haible  <bruno@clisp.org>
58875
58876         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58877         cross-compiling to x86_64.
58878
58879 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58880
58881         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58882         glitch reported by Ralf Wildenhues in
58883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58884
58885         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58886         Vin Shelton.
58887
58888 2007-06-11  Bruno Haible  <bruno@clisp.org>
58889
58890         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58891         replacement string.
58892         Reported by Eric Blake.
58893
58894 2007-06-10  Bruno Haible  <bruno@clisp.org>
58895
58896         Prepare vasnprintf code for use with Unicode strings.
58897         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58898         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58899         TYPE_U32_STRING.
58900         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58901         a_u32_string variants.
58902         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58903         * lib/printf-args.c: Don't include config.h and the specification
58904         header if PRINTF_FETCHARGS is already defined.
58905         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58906         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58907         TYPE_U16_STRING, TYPE_U32_STRING.
58908         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58909         u16_directive, u16_directives, u32_directive, u32_directives): New
58910         types.
58911         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58912         New declarations.
58913         * lib/printf-parse.c: Don't include config.h and the specification
58914         header if PRINTF_PARSE is already defined. Eliminate the set of
58915         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58916         them now. Include c-ctype.h.
58917         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58918         directive and CHAR_T_ONLY_ASCII.
58919         * lib/vasnprintf.c: Don't include config.h and the specification header
58920         if VASNPRINTF is already defined.
58921         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58922         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58923         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58924         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58925         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58926         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58927         code accordingly.
58928         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58929         pad_ourselves also in this case, with the 'c' and 's' directives, and
58930         with a different notion of "width".
58931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58932
58933 2007-06-10  Bruno Haible  <bruno@clisp.org>
58934
58935         * modules/unistr/u32-mbsnlen: New file.
58936         * lib/unistr/u32-mbsnlen.c: New file.
58937
58938         * modules/unistr/u16-mbsnlen: New file.
58939         * lib/unistr/u16-mbsnlen.c: New file.
58940
58941         * modules/unistr/u8-mbsnlen: New file.
58942         * lib/unistr/u8-mbsnlen.c: New file.
58943
58944         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58945         declarations.
58946
58947 2007-06-10  Bruno Haible  <bruno@clisp.org>
58948
58949         * lib/string_.h (mbsnlen): New declaration.
58950         * lib/mbsnlen.c: New file.
58951         * m4/mbsnlen.m4: New file.
58952         * modules/mbsnlen: New file.
58953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58954         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58955         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58956
58957 2007-06-10  Bruno Haible  <bruno@clisp.org>
58958
58959         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58960
58961 2007-06-10  Bruno Haible  <bruno@clisp.org>
58962
58963         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58964         * lib/mbuiter.h: Likewise.
58965
58966 2007-06-10  Bruno Haible  <bruno@clisp.org>
58967
58968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58969         declaration.
58970
58971 2007-06-10  Karl Berry  <karl@gnu.org>
58972
58973         * config/srclist.txt: remove gettext entries, Bruno prefers
58974         to update individually.
58975
58976 2007-06-10  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58979         'maxlen'. Ensure only length + width bytes are allocated, not
58980         length + 1 + width.
58981
58982 2007-06-09  Bruno Haible  <bruno@clisp.org>
58983
58984         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58985         (CHAR_T): Remove macro.
58986         (VASNPRINTF): Update.
58987
58988 2007-06-09  Bruno Haible  <bruno@clisp.org>
58989
58990         * MODULES.html.sh (Unicode string functions): Add the new modules.
58991
58992         * modules/uniconv/u32-conv-to-enc: New file.
58993         * lib/uniconv/u32-conv-to-enc.c: New file.
58994         * modules/uniconv/u32-conv-to-enc-tests: New file.
58995         * tests/uniconv/test-u32-conv-to-enc.c: New file.
58996
58997         * modules/uniconv/u16-conv-to-enc: New file.
58998         * lib/uniconv/u16-conv-to-enc.c: New file.
58999         * lib/uniconv/u-conv-to-enc.h: New file.
59000         * modules/uniconv/u16-conv-to-enc-tests: New file.
59001         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59002
59003         * modules/uniconv/u8-conv-to-enc: New file.
59004         * lib/uniconv/u8-conv-to-enc.c: New file.
59005         * modules/uniconv/u8-conv-to-enc-tests: New file.
59006         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59007
59008         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59009         u32_conv_to_encoding): New declarations.
59010
59011 2007-06-09  Bruno Haible  <bruno@clisp.org>
59012
59013         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59014
59015 2007-06-09  Bruno Haible  <bruno@clisp.org>
59016
59017         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59018         * modules/malloca: Renamed from modules/allocsa, updated.
59019         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59020         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59021         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59022         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59023         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59024         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59025         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59026         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59027         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59028         * modules/c-strcasestr (Depends-on): Update.
59029         * lib/c-strcasestr.c: Update.
59030         * modules/c-strstr (Depends-on): Update.
59031         * lib/c-strstr.c: Update.
59032         * modules/canonicalize-lgpl (Depends-on): Update.
59033         * lib/canonicalize-lgpl.c: Update.
59034         * modules/clean-temp (Depends-on): Update.
59035         * lib/clean-temp.c: Update.
59036         * modules/csharpcomp (Depends-on): Update.
59037         * lib/csharpcomp.c: Update.
59038         * modules/csharpexec (Depends-on): Update.
59039         * lib/csharpexec.c: Update.
59040         * modules/javacomp (Depends-on): Update.
59041         * lib/javacomp.c: Update.
59042         * modules/javaexec (Depends-on): Update.
59043         * lib/javaexec.c: Update.
59044         * modules/mbscasestr (Depends-on): Update.
59045         * lib/mbscasestr.c: Update.
59046         * modules/mbsstr (Depends-on): Update.
59047         * lib/mbsstr.c: Update.
59048         * modules/setenv (Depends-on): Update.
59049         * lib/setenv.c: Update.
59050         * modules/strcasestr (Depends-on): Update.
59051         * lib/strcasestr.c: Update.
59052         * modules/striconveha (Depends-on): Update.
59053         * lib/striconveha.c: Update.
59054         * modules/relocatable-prog-wrapper (Files): Update.
59055         * lib/relocwrapper.c: Update.
59056         * build-aux/install-reloc: Update.
59057         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59058
59059 2007-06-08  Bruno Haible  <bruno@clisp.org>
59060
59061         Port to uClibc.
59062         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59063         * lib/fpurge.c (fpurge): Likewise.
59064         * lib/freading.c (freading): Likewise.
59065         * lib/fseeko.c (rpl_fseeko): Likewise.
59066         * lib/fseterr.c (fseterr): Likewise.
59067         * lib/fwriting.c (fwriting): Likewise.
59068         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59069
59070 2007-06-08  Bruno Haible  <bruno@clisp.org>
59071
59072         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59073         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59074         * modules/gettext (Files): Add m4/intlmacosx.m4.
59075
59076 2007-06-07  Bruno Haible  <bruno@clisp.org>
59077
59078         * modules/localename-tests: New file.
59079         * tests/test-localename.c: New file.
59080
59081         New module 'localename'.
59082         * lib/localename.h: New file.
59083         * lib/localename.c: New file, from GNU gettext.
59084         * m4/localename.m4: New file.
59085         * modules/localename: New file.
59086
59087 2007-06-07  Bruno Haible  <bruno@clisp.org>
59088
59089         Work around the lack of <wchar.h> on some builds of uClibc.
59090         * doc/headers/wchar.texi: Update.
59091         * lib/wchar_.h: Include <wchar.h> only if it exists.
59092         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59093         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59094         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59095         doesn't exist.
59096         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59097         * modules/mbfile (Depends-on): Add wchar.
59098         * modules/mbiter (Depends-on): Likewise.
59099         * modules/mbuiter (Depends-on): Likewise.
59100         Reported by Simon Josefsson.
59101
59102 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59103
59104         Work around problem reported by Steven M. Schweda in
59105         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59106         Tru64 5.1B with the Compaq compiler environment installed declares
59107         an 'isblank' function but does not define it in the C library.
59108         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59109         * lib/regex_internal.h (isblank): Likewise.
59110         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59111         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59112
59113 2007-06-05  Bruno Haible  <bruno@clisp.org>
59114
59115         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59116         ia64.
59117         * modules/printf-safe: New file.
59118         * modules/fprintf-posix (Depends-on): Add printf-safe.
59119         * modules/printf-posix (Depends-on): Likewise.
59120         * modules/snprintf-posix (Depends-on): Likewise.
59121         * modules/sprintf-posix (Depends-on): Likewise.
59122         * modules/vasnprintf-posix (Depends-on): Likewise.
59123         * modules/vasprintf-posix (Depends-on): Likewise.
59124         * modules/vfprintf-posix (Depends-on): Likewise.
59125         * modules/vprintf-posix (Depends-on): Likewise.
59126         * modules/vsnprintf-posix (Depends-on): Likewise.
59127         * modules/vsprintf-posix (Depends-on): Likewise.
59128         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59129         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59130         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59131         "no" on i386, x86_64, ia64.
59132         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59133         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59134         on i386, x86_64, ia64.
59135         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59136         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59137         on i386, x86_64, ia64.
59138         * tests/test-vasnprintf-posix.c: Include float.h.
59139         (LDBL80_WORDS): New macro.
59140         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59141         on i386, x86_64, ia64.
59142         * tests/test-vasprintf-posix.c: Include float.h.
59143         (LDBL80_WORDS): New macro.
59144         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59145         on i386, x86_64, ia64.
59146         * tests/test-snprintf-posix.c: Include float.h.
59147         * tests/test-sprintf-posix.c: Likewise.
59148         * tests/test-vsnprintf-posix.c: Likewise.
59149         * tests/test-vsprintf-posix.c: Likewise.
59150
59151 2007-06-05  Bruno Haible  <bruno@clisp.org>
59152
59153         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59154         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59155         non-IEEE numbers on i386, x86_64, ia64.
59156         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59157         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59158         * tests/test-isnanl.h: Include float.h.
59159         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59160
59161 2007-06-05  Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59164         also the %a / %A. Handle the %a / %A code before this extra handling.
59165
59166 2007-06-05  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59169         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59170
59171 2007-06-05  Bruno Haible  <bruno@clisp.org>
59172
59173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59174         typo in variable name.
59175
59176 2007-06-05  Eric Blake  <ebb9@byu.net>
59177
59178         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59179         Reported by Simon Josefsson.
59180
59181 2007-06-04  Bruno Haible  <bruno@clisp.org>
59182
59183         Avoid test failures on some PowerPC platforms.
59184         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59185         Define differently for PowerPC.
59186         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59187         Reported by Gary V. Vaughan <gary@gnu.org>.
59188
59189 2007-06-02  Bruno Haible  <bruno@clisp.org>
59190
59191         Fix test-stdint failure on FreeBSD/ia64.
59192         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59193         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59194         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59195         * doc/headers/stdint.texi: Update.
59196
59197 2007-06-01  Bruno Haible  <bruno@clisp.org>
59198
59199         * tests/test-binary-io.c (main): Pass a third argument to open().
59200         Reported by Gary V. Vaughan <gary@gnu.org>.
59201
59202 2007-06-01  Bruno Haible  <bruno@clisp.org>
59203
59204         * doc/functions/frexpl.texi: Update for mingw.
59205
59206 2007-06-01  Bruno Haible  <bruno@clisp.org>
59207
59208         * tests/test-lseek.c (main): Disable test of errno for invalid third
59209         argument.
59210         * doc/functions/lseek.texi: Update.
59211         Reported by Gary V. Vaughan <gary@gnu.org>.
59212
59213 2007-05-28  Bruno Haible  <bruno@clisp.org>
59214
59215         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59216
59217 2007-05-31  Eric Blake  <ebb9@byu.net>
59218
59219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59220         cross compiling.
59221
59222 2007-05-30  Eric Blake  <ebb9@byu.net>
59223         and Bruno Haible  <bruno@clisp.org>
59224
59225         Work around mingw test failures exposed by m4-1.4.9b.
59226         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59227         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59228         moment.
59229
59230 2007-05-30  Bruno Haible  <bruno@clisp.org>
59231
59232         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59233         assuming that they are closed. Needed on HP-UX 11.
59234
59235 2007-05-29  Bruno Haible  <bruno@clisp.org>
59236
59237         Fix a problem with #include_next.
59238         * lib/dirent_.h: Split the double-inclusion guard.
59239         * lib/fcntl_.h: Likewise.
59240         * lib/float_.h: Likewise.
59241         * lib/iconv_.h: Likewise.
59242         * lib/inttypes_.h: Likewise.
59243         * lib/locale_.h: Likewise.
59244         * lib/math_.h: Likewise.
59245         * lib/netinet_in_.h: Likewise.
59246         * lib/search_.h: Likewise.
59247         * lib/signal_.h: Likewise.
59248         * lib/stdint_.h: Likewise.
59249         * lib/stdio_.h: Likewise.
59250         * lib/stdlib_.h: Likewise.
59251         * lib/string_.h: Likewise.
59252         * lib/sys_select_.h: Likewise.
59253         * lib/sys_socket_.h: Likewise.
59254         * lib/sys_stat_.h: Likewise.
59255         * lib/sys_time_.h: Likewise.
59256         * lib/sysexits_.h: Likewise.
59257         * lib/time_.h: Likewise.
59258         * lib/unistd_.h: Likewise.
59259         * lib/wchar_.h: Likewise.
59260         * lib/wctype_.h: Likewise.
59261
59262 2007-05-29  Bruno Haible  <bruno@clisp.org>
59263
59264         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59265         for the moment.
59266
59267 2007-05-29  Bruno Haible  <bruno@clisp.org>
59268
59269         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59270         invocation.
59271         Reported by Eric Blake.
59272
59273 2007-05-29  Bruno Haible  <bruno@clisp.org>
59274
59275         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59276         compiling case.
59277
59278 2007-05-29  Eric Blake  <ebb9@byu.net>
59279             Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59282         cross compiles.
59283
59284 2007-05-28  Eric Blake  <ebb9@byu.net>
59285
59286         * modules/closein-tests (test_closein_LDADD): Support test on
59287         cygwin with libtool.
59288
59289 2007-05-28  Bruno Haible  <bruno@clisp.org>
59290
59291         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59292         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59293         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59294         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59295         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59296         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59297         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59298         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59299         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59300
59301 2007-05-28  Eric Blake  <ebb9@byu.net>
59302
59303         Unconditionally include <config.h> in unit tests.
59304         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59305         * tests/test-allocsa.c, tests/test-arcfour.c,
59306         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59307         tests/test-array_list.c, tests/test-array_oset.c,
59308         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59309         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59310         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59311         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59312         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59313         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59314         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59315         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59316         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59317         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59318         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59319         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59320         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59321         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59322         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59323         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59324         test-md5.c, test-memmem.c, test-printf-posix.c,
59325         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59326         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59327         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59328         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59329         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59330         test-vasnprintf-posix2.c, test-vasnprintf.c,
59331         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59332         test-vfprintf-posix.c, test-vprintf-posix.c,
59333         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59334         test-xvasprintf.c: Likewise.
59335
59336 2007-05-28  Bruno Haible  <bruno@clisp.org>
59337
59338         * gnulib-tool (func_import): Remember the --with-tests command-line
59339         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59340         Reported by Eric Blake.
59341
59342 2007-05-28  Bruno Haible  <bruno@clisp.org>
59343
59344         * modules/ftell-tests: New file.
59345         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59346         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59347
59348         * lib/ftell.c: New file.
59349         * modules/ftell: New file.
59350         * m4/ftell.m4: New file.
59351         * doc/functions/ftell.texi: Update.
59352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59353         REPLACE_FTELL.
59354         * lib/stdio_.h (rpl_ftell): New declaration.
59355         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59356         REPLACE_FTELL.
59357
59358 2007-05-28  Eric Blake  <ebb9@byu.net>
59359
59360         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59361
59362 2007-05-28  Bruno Haible  <bruno@clisp.org>
59363
59364         * modules/fseek-tests: New file.
59365         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59366         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59367
59368         * lib/fseek.c: New file.
59369         * modules/fseek: New file.
59370         * m4/fseek.m4: New file.
59371         * doc/functions/fseek.texi: Update.
59372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59373         REPLACE_FSEEK.
59374         * lib/stdio_.h (rpl_fseek): New declaration.
59375         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59376         REPLACE_FSEEK.
59377
59378 2007-05-28  Bruno Haible  <bruno@clisp.org>
59379
59380         * lib/stdio_.h (fflush): More comments.
59381
59382 2007-05-28  Bruno Haible  <bruno@clisp.org>
59383
59384         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59385         runtime test.
59386
59387 2007-05-28  Eric Blake  <ebb9@byu.net>
59388
59389         Improve lseek module.
59390         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59391         * lib/unistd_.h (lseek): Scale back link warning message.
59392         * tests/test-lseek.c: Beef up test.
59393         * tests/test-lseek.sh: Exercise more facets of lseek.
59394         Reported by Bruno Haible.
59395
59396 2007-05-28  Bruno Haible  <bruno@clisp.org>
59397
59398         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59399         to define.
59400
59401 2007-05-27  Bruno Haible  <bruno@clisp.org>
59402
59403         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59404
59405 2007-05-27  Bruno Haible  <bruno@clisp.org>
59406
59407         * modules/openmp: New file.
59408         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59409         Noah Misch.
59410
59411 2007-05-26  Bruno Haible  <bruno@clisp.org>
59412
59413         * modules/chdir-long (Depends-on): Add fchdir.
59414         * modules/chdir-safer (Depends-on): Likewise.
59415         * modules/fts (Depends-on): Likewise.
59416         * modules/fts-lgpl (Depends-on): Likewise.
59417         * modules/openat (Depends-on): Likewise.
59418         * modules/savewd (Depends-on): Likewise.
59419
59420 2007-05-24  Eric Blake  <ebb9@byu.net>
59421
59422         Fix lseek on mingw.
59423         * modules/lseek: New module.
59424         * m4/lseek.m4: New file.
59425         * lib/lseek.c: New file.
59426         * modules/lseek-tests: New file.
59427         * tests/test-lseek.c: New file.
59428         * tests/test-lseek.sh: New file.
59429         * MODULES.html.sh: Document lseek module.
59430         * modules/fflush (Depends-on): Add lseek, fseeko.
59431         * modules/fseeko (Depends-on): Likewise.
59432         * modules/ftello (Depends-on): Likewise.
59433         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59434         broken.
59435         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59436         broken.
59437         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59438         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59439         * lib/ftello.c (rpl_ftello): Likewise.
59440         * tests/test-fseeko.c (main): Test this.
59441         * tests/test-fseeko.sh: Likewise.
59442         * tests/test-ftello.c (main): Likewise.
59443         * tests/test-ftello.sh: Likewise.
59444         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59445         implies replacing fseek.
59446         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59447         HAVE_FTELLO.
59448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59449         * modules/unistd (Makefile.am): Likewise.
59450         * lib/unistd_.h (lseek): Declare a replacement.
59451         * doc/functions/lseek.texi (lseek): Document this fix.
59452         * doc/functions/fseek.texi (fseek): Likewise.
59453         * doc/functions/ftell.texi (ftell): Likewise.
59454
59455 2007-05-24  Bruno Haible  <bruno@clisp.org>
59456
59457         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59458         in the printed representation of a NaN.
59459         * tests/test-vasprintf-posix.c (test_function): Likewise.
59460         * tests/test-snprintf-posix.h (test_function): Likewise.
59461         * tests/test-sprintf-posix.h (test_function): Likewise.
59462         Reported by Eric Blake.
59463
59464 2007-05-23  Eric Blake  <ebb9@byu.net>
59465
59466         Fix fseeko/ftello on cygwin 1.5.24.
59467         * doc/functions/fseeko.texi (fseeko): Document the fix.
59468         * doc/functions/ftello.texi (ftello): Document the fix.
59469         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59470         * doc/functions/stdout.text (stdout): New file.
59471         * doc/functions/stderr.text (stderr): New file.
59472         * doc/gnulib.texi (Function Substitutes): Use new files.
59473         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59474         prior to 1.7.0.
59475         * tests/test-ftello.c (main): Likewise for ftello.
59476         * tests/test-fseeko.sh: New file.
59477         * tests/test-ftello.sh: New file.
59478         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59479         with seekable stdin.
59480         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59481         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59482         (gl_REPLACE_FSEEKO): New macro.
59483         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59484         * modules/fseeko (Files): Distribute fseeko.c.
59485         * modules/ftello (Files): Distribute ftello.c.
59486         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59487         mode.
59488         * lib/ftello.c (rpl_ftello): New file.
59489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59490         fseeko, ftello.
59491         (gl_STDIN_LARGE_OFFSET): New macro.
59492         * modules/stdio (Makefile.am): Perform the replacement.
59493         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59494
59495 2007-05-23  Bruno Haible  <bruno@clisp.org>
59496
59497         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59498         GNULIB_POSIXCHECK is defined.
59499
59500 2007-05-21  Bruno Haible  <bruno@clisp.org>
59501
59502         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59503         Check also the output for NaN arguments. When cross-compiling, guess
59504         no on IRIX.
59505         * lib/vasnprintf.c: Update comments.
59506         * tests/test-vasnprintf-posix.c (strisnan): New function.
59507         (test_function): Use it.
59508         * tests/test-vasprintf-posix.c (strisnan): New function.
59509         (test_function): Use it.
59510         * tests/test-snprintf-posix.h (strisnan): New function.
59511         (test_function): Use it.
59512         * tests/test-sprintf-posix.h (strisnan): New function.
59513         (test_function): Use it.
59514         Reported by Eric Blake.
59515
59516 2007-05-20  Bruno Haible  <bruno@clisp.org>
59517
59518         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59519         numbers that fails on BeOS.
59520         * doc/functions/frexpl.texi: Update.
59521
59522 2007-05-20  Jim Meyering  <jim@meyering.net>
59523
59524         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59525         forced upon us by glibc-2.6.
59526
59527 2007-05-20  Bruno Haible  <bruno@clisp.org>
59528
59529         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59530         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59531         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59532         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59533         NEED_PRINTF_INFINITE.
59534         (is_infinitel): New function.
59535         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59537         gl_PREREQ_VASNPRINTF_INFINITE.
59538         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59539         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59540         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59541         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59542         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59543         gl_PREREQ_VASNPRINTF_INFINITE.
59544         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59545         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59546         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59547         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59548         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59549         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59550         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59551         * doc/functions/fprintf.texi: Update.
59552         * doc/functions/printf.texi: Update.
59553         * doc/functions/snprintf.texi: Update.
59554         * doc/functions/sprintf.texi: Update.
59555         * doc/functions/vfprintf.texi: Update.
59556         * doc/functions/vprintf.texi: Update.
59557         * doc/functions/vsnprintf.texi: Update.
59558         * doc/functions/vsprintf.texi: Update.
59559
59560 2007-05-20  Bruno Haible  <bruno@clisp.org>
59561
59562         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59563         was not found in libc.
59564         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59565
59566 2007-05-20  Bruno Haible  <bruno@clisp.org>
59567
59568         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59569         printed as "-nan" instead of "nan".
59570         * tests/test-vasprintf-posix.c (test_function): Likewise.
59571         * tests/test-snprintf-posix.h (test_function): Likewise.
59572         * tests/test-sprintf-posix.h (test_function): Likewise.
59573         Needed for HP-UX 11.
59574
59575 2007-05-20  Jim Meyering  <jim@meyering.net>
59576
59577         Fix buggy test for the fchownat-deref bug.
59578         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59579         symlink required for the run-test.  Without it, this test would
59580         always declare that fchownat doesn't work, and client code would
59581         unnecessarily use the replacement function with fixed libc.
59582         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59583         Reported by Greg Schafer.
59584
59585 2007-05-19  Bruno Haible  <bruno@clisp.org>
59586
59587         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59588         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59589         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59590         Needed for IRIX 6.5 and Solaris 2.5.1.
59591
59592 2007-05-19  Bruno Haible  <bruno@clisp.org>
59593
59594         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59595         (test_function): Skip tests involving -0.0 on platforms where
59596         -0.0 = 0.0.
59597         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59598         (test_function): Skip tests involving -0.0 on platforms where
59599         -0.0 = 0.0.
59600         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59601         (test_function): Skip tests involving -0.0 on platforms where
59602         -0.0 = 0.0.
59603         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59604         (test_function): Skip tests involving -0.0 on platforms where
59605         -0.0 = 0.0.
59606         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59607         tests.
59608         * tests/test-printf-posix.h (test_function): Likewise.
59609         * tests/test-printf-posix.output: Remove all -0.0 related results.
59610         Needed for IRIX 6.5.
59611
59612 2007-05-19  Bruno Haible  <bruno@clisp.org>
59613
59614         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59615         printed as "nan0x7fffffff" instead of "nan".
59616         * tests/test-vasprintf-posix.c (test_function): Likewise.
59617         * tests/test-snprintf-posix.h (test_function): Likewise.
59618         * tests/test-sprintf-posix.h (test_function): Likewise.
59619         * tests/test-fprintf-posix.h (NaN): Remove macro.
59620         (test_function): Remove all NaN related tests.
59621         * tests/test-printf-posix.h (NaN): Remove macro.
59622         (test_function): Remove all NaN related tests.
59623         * tests/test-printf-posix.output: Remove all NaN related results.
59624         Needed for IRIX 6.5.
59625
59626 2007-05-19  Bruno Haible  <bruno@clisp.org>
59627
59628         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59629         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59630
59631 2007-05-19  Bruno Haible  <bruno@clisp.org>
59632
59633         * lib/float_.h: New file.
59634         * m4/float_h.m4: New file.
59635         * modules/float: New file.
59636         * modules/isnanl (Dependencies): Add float.
59637         * modules/isnanl-nolibm (Dependencies): Likewise.
59638         * modules/mathl (Dependencies): Likewise.
59639         * modules/printf-frexpl (Dependencies): Likewise.
59640         * modules/signbit (Dependencies): Likewise.
59641         * modules/vasnprintf (Dependencies): Likewise.
59642         * doc/headers/float.texi: Update.
59643
59644 2007-05-19  Jim Meyering  <jim@meyering.net>
59645
59646         * lib/utimens.c (gl_futimens): Rename from futimens,
59647         now that glibc-2.6 declares futimens.
59648         * lib/utimens.h: Likewise.
59649
59650 2007-05-19  Bruno Haible  <bruno@clisp.org>
59651
59652         Avoid test failures on mingw.
59653         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59654         * tests/test-printf-posix.sh: Likewise.
59655         * tests/test-vfprintf-posix.sh: Likewise.
59656         * tests/test-vprintf-posix.sh: Likewise.
59657
59658 2007-05-19  Bruno Haible  <bruno@clisp.org>
59659
59660         Fix *printf result for NaN, Inf, -0.0 on mingw.
59661         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59662         * lib/vasnprintf.c: Include math.h and isnan.h.
59663         (is_infinite_or_zero): New function.
59664         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59665         values in the %f, %F, %e, %E, %g, %G directives.
59666         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59667         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59668         gl_PRINTF_INFINITE and test its result. Invoke
59669         gl_PREREQ_VASNPRINTF_INFINITE.
59670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59674         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59676         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59677         * doc/functions/fprintf.texi: Update.
59678         * doc/functions/printf.texi: Update.
59679         * doc/functions/snprintf.texi: Update.
59680         * doc/functions/sprintf.texi: Update.
59681         * doc/functions/vfprintf.texi: Update.
59682         * doc/functions/vprintf.texi: Update.
59683         * doc/functions/vsnprintf.texi: Update.
59684         * doc/functions/vsprintf.texi: Update.
59685
59686 2007-05-19  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59689         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59690         Instead of multiplying with 10^k, set extra_zeroes to k.
59691         (scale10_round_long_double): Remove function.
59692
59693 2007-05-18  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59696         introduced on 2007-05-06.
59697
59698 2007-05-18  Bruno Haible  <bruno@clisp.org>
59699
59700         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59701         %g directives.
59702         * tests/test-vasprintf-posix.c (test_function): Likewise.
59703         * tests/test-snprintf-posix.h (test_function): Likewise.
59704         * tests/test-sprintf-posix.h (test_function): Likewise.
59705
59706 2007-05-18  Bruno Haible  <bruno@clisp.org>
59707
59708         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59709         (strmatch): New function.
59710         (test_function): Test the %f directive on numbers of various exponents.
59711         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59712         (strmatch): New function.
59713         (test_function): Test the %f directive on numbers of various exponents.
59714         * tests/test-snprintf-posix.h (strmatch): New function.
59715         (test_function): Test the %f directive on numbers of various exponents.
59716         * tests/test-sprintf-posix.h (strmatch): New function.
59717         (test_function): Test the %f directive on numbers of various exponents.
59718         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59719         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59720         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59721         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59722
59723 2007-05-18  Bruno Haible  <bruno@clisp.org>
59724
59725         Add support for 'long double' number output.
59726         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59727         * lib/vasnprintf.c: Include math.h and float+.h.
59728         (mp_limb_t): New type.
59729         (GMP_LIMB_BITS): New macro.
59730         (mp_twolimb_t): New type.
59731         (GMP_TWOLIMB_BITS): New macro.
59732         (mpn_t): New type.
59733         (multiply, divide, convert_to_decimal, decode_long_double,
59734         scale10_round_long_double, scale10_round_decimal_long_double,
59735         floorlog10l): New functions.
59736         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59737         for the %f, %F, %e, %E, %g, %G directives.
59738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59739         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59740         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59741         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59742         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59743         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59744         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59745         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59746         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59747         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59748         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59749         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59750         * modules/snprintf-posix (Depends-on): Likewise.
59751         * modules/sprintf-posix (Depends-on): Likewise.
59752         * modules/vasnprintf-posix (Depends-on): Likewise.
59753         * modules/vasprintf-posix (Depends-on): Likewise.
59754         * modules/vfprintf-posix (Depends-on): Likewise.
59755         * modules/vsnprintf-posix (Depends-on): Likewise.
59756         * modules/vsprintf-posix (Depends-on): Likewise.
59757         * modules/vasnprintf (Files): Add lib/float+.h.
59758         * doc/functions/fprintf.texi: Update.
59759         * doc/functions/printf.texi: Update.
59760         * doc/functions/snprintf.texi: Update.
59761         * doc/functions/sprintf.texi: Update.
59762         * doc/functions/vfprintf.texi: Update.
59763         * doc/functions/vprintf.texi: Update.
59764         * doc/functions/vsnprintf.texi: Update.
59765         * doc/functions/vsprintf.texi: Update.
59766
59767 2007-05-18  Bruno Haible  <bruno@clisp.org>
59768
59769         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59770
59771 2007-05-18  Bruno Haible  <bruno@clisp.org>
59772
59773         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59774         for printing 64-bit integers. Needed for mingw.
59775
59776 2007-05-18  Bruno Haible  <bruno@clisp.org>
59777
59778         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59779         gl_FUNC_FREXPL_WORKS.
59780         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59781
59782 2007-05-18  Bruno Haible  <bruno@clisp.org>
59783
59784         * modules/frexpl-nolibm-tests: New file.
59785
59786         * modules/frexpl-nolibm: New file.
59787         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59788
59789 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59790
59791         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59792         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59793         GCC 4.2, which otherwise issues a lot of warnings.
59794         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59795         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59796         Likewise.
59797         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59798         * modules/iconv_open (iconv.h): Likewise.
59799         * modules/locale (locale.h): Likewise.
59800         * modules/netinet_in (netinet/in.h): Likewise.
59801         * modules/sys_select (sys_select.h): Likewise.
59802         * modules/sys_socket (sys/socket.h): Likewise.
59803         * modules/sys_stat (sys/stat.h): Likewise.
59804         * modules/sysexits (sysexits.h): Likewise.
59805         * modules/unistd (unistd.h): Likewise.
59806
59807 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59808
59809         * modules/closein-tests (Makefile.am): Distribute
59810         `test-closein.sh'.
59811
59812 2007-05-17  Bruno Haible  <bruno@clisp.org>
59813
59814         * tests/test-printf-posix.output: Renamed from
59815         tests/test-fprintf-posix.out.
59816         * modules/fprintf-posix-tests: Update.
59817         * modules/printf-posix-tests: Update.
59818         * modules/vfprintf-posix-tests: Update.
59819         * modules/vprintf-posix-tests: Update.
59820         * tests/test-fprintf-posix.sh: Update.
59821         * tests/test-printf-posix.sh: Update.
59822         * tests/test-vfprintf-posix.sh: Update.
59823         * tests/test-vprintf-posix.sh: Update.
59824         Reported by Ralf Wildenhues.
59825
59826 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59827
59828         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59829         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59830         GCC 4.2, which otherwise issues a lot of warnings.
59831         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59832         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59833         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59834         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59835         it should no longer be needed.
59836         * lib/string_.h: Likewise.
59837         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59838         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59839         * modules/inttypes (inttypes.h): Likewise.
59840         * modules/math (math.h): Likewise.
59841         * modules/search (search.h): Likewise.
59842         * modules/signal (signal.h): Likewise.
59843         * modules/stdint (stdint.h): Likewise.
59844         * modules/stdio (stdio.h): Likewise.
59845         * modules/stdlib (stdlib.h): Likewise.
59846         * modules/string (string.h): Likewise.
59847         * modules/sys_time (sys/time.h): Likewise.
59848         * modules/time (time.h): Likewise.
59849         * modules/wchar (wchar.h): Likewise.
59850         * modules/wctype (wtype.h): Likewise.
59851
59852 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59853
59854         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59855
59856 2007-05-13  Bruno Haible  <bruno@clisp.org>
59857
59858         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59859         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59860         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59861         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59862         (gl_PREREQ_STRTOK_R): Don't require it here.
59863
59864 2007-05-13  Bruno Haible  <bruno@clisp.org>
59865
59866         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59867         when used in C++ mode.
59868
59869 2007-05-12  Bruno Haible  <bruno@clisp.org>
59870
59871         * lib/linebuffer.h: Tweak doc.
59872         * lib/linebuffer.c: Likewise.
59873
59874 2007-05-12  James Youngman  <jay@gnu.org>
59875
59876         * lib/linebuffer.c (readlinebuffer_delim): New function,
59877         like readlinebuffer, but use a caller-specified delimiter.
59878         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59879         as the delimiter.
59880         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59881
59882 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59883
59884         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59885         * modules/openat (Files): Remove openat-die.c.
59886         (Depends-on): Add openat-die.
59887         * modules/openat-die: New module.
59888
59889 2007-05-06  Bruno Haible  <bruno@clisp.org>
59890
59891         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59892         Update with info about Cygwin.
59893         * doc/functions/fprintf.texi: Update.
59894         * doc/functions/printf.texi: Update.
59895         * doc/functions/snprintf.texi: Update.
59896         * doc/functions/sprintf.texi: Update.
59897         * doc/functions/vfprintf.texi: Update.
59898         * doc/functions/vprintf.texi: Update.
59899         * doc/functions/vsnprintf.texi: Update.
59900         * doc/functions/vsprintf.texi: Update.
59901         Reported by Eric Blake.
59902
59903 2007-05-06  Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59906         padding ourselves for the floating-point directives.
59907         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59909         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59910         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59911         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59912         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59913         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59915         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59916         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59917         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59918         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59919         * tests/test-snprintf-posix.h (test_function): Also check the width
59920         and some flags in the %f directive.
59921         * tests/test-sprintf-posix.h (test_function): Likewise.
59922         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59923         * tests/test-vasprintf-posix.c (test_function): Likewise.
59924         * doc/functions/fprintf.texi: Update.
59925         * doc/functions/printf.texi: Update.
59926         * doc/functions/snprintf.texi: Update.
59927         * doc/functions/sprintf.texi: Update.
59928         * doc/functions/vfprintf.texi: Update.
59929         * doc/functions/vprintf.texi: Update.
59930         * doc/functions/vsnprintf.texi: Update.
59931         * doc/functions/vsprintf.texi: Update.
59932
59933 2007-05-06  Bruno Haible  <bruno@clisp.org>
59934
59935         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59936         pass the ' flag character to sprintf or snprintf.
59937         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59939         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59940         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59941         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59942         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59943         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59944         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59945         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59946         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59947         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59948         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59949         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59950         flag.
59951         * tests/test-sprintf-posix.h (test_function): Likewise.
59952         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59953         * tests/test-vasprintf-posix.c (test_function): Likewise.
59954         * doc/functions/fprintf.texi: Update.
59955         * doc/functions/printf.texi: Update.
59956         * doc/functions/snprintf.texi: Update.
59957         * doc/functions/sprintf.texi: Update.
59958         * doc/functions/vfprintf.texi: Update.
59959         * doc/functions/vprintf.texi: Update.
59960         * doc/functions/vsnprintf.texi: Update.
59961         * doc/functions/vsprintf.texi: Update.
59962
59963 2007-05-01  Bruno Haible  <bruno@clisp.org>
59964
59965         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59966
59967 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59968
59969         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59970         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59971
59972 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59975         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59976         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59977
59978 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59979
59980         * lib/argp-help.c (struct hol_entry): New member `ord'.
59981         (HOL_ENTRY_PTRCMP): Use ord for comparison
59982         (hol_sort): Initialize ord.
59983
59984 2007-05-01  Bruno Haible  <bruno@clisp.org>
59985
59986         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59987         Reported by Eric Blake.
59988         * doc/gnulib.texi (Function Substitutes): Update.
59989
59990 2007-05-01  Bruno Haible  <bruno@clisp.org>
59991
59992         * doc/functions.texi: Remove file, now redundant through
59993         doc/functions/*.texi.
59994
59995 2007-05-01  Bruno Haible  <bruno@clisp.org>
59996
59997         * modules/argp (Depends-on): Add sleep.
59998
59999 2007-05-01  Bruno Haible  <bruno@clisp.org>
60000
60001         * modules/sleep-tests: New file.
60002         * tests/test-sleep.c: New file.
60003
60004         * modules/sleep: New file.
60005         * lib/sleep.c: New file.
60006         * m4/sleep.m4: New file.
60007         * lib/unistd_.h (sleep): New declaration.
60008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60009         HAVE_SLEEP.
60010         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60011         * doc/functions/sleep.texi: Document the sleep module.
60012
60013 2007-05-01  Bruno Haible  <bruno@clisp.org>
60014
60015         * lib/sigprocmask.h: Remove file.
60016         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60017         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60018         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60019         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60020         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60021         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60022         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60023         HAVE_SIGSET_T as a shell variable.
60024         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60025         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60026         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60027         (Depends-on): Add signal. Remove verify.
60028         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60029         (Include): Mention <signal.h> instead of sigprocmask.h.
60030         * NEWS: Mention the change.
60031         * lib/fatal-signal.c: Don't include sigprocmask.h.
60032
60033 2007-05-01  Bruno Haible  <bruno@clisp.org>
60034
60035         * modules/signal: New file.
60036         * lib/signal_.h: New file.
60037         * m4/signal_h.m4: New file.
60038
60039 2007-05-01  Bruno Haible  <bruno@clisp.org>
60040
60041         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60042         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60043         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60044         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60045
60046 2007-05-01  Bruno Haible  <bruno@clisp.org>
60047
60048         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60049         configure time.
60050         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60051         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60052         * modules/sys_stat (Makefile.am): Substitute their values into
60053         sys/stat.h.
60054
60055 2007-05-01  Bruno Haible  <bruno@clisp.org>
60056
60057         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60058         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60059         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60060
60061 2007-05-01  Bruno Haible  <bruno@clisp.org>
60062
60063         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60064         'assert' module here.
60065
60066 2007-05-01  Bruno Haible  <bruno@clisp.org>
60067
60068         * doc/functions/*.texi: New files.
60069         * doc/functions/google-ranking.txt: New file.
60070         * doc/gnulib.texi (Function Substitutes): New chapter.
60071         (ctime, inet_ntoa): Remove sections.
60072         * doc/ctime.texi: Remove file.
60073         * doc/inet_ntoa.texi: Remove file.
60074         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60075         dependencies.
60076         (%.info): New rule, specifying a --reference-limit.
60077
60078 2007-05-01  Bruno Haible  <bruno@clisp.org>
60079
60080         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60081
60082 2007-05-01  Bruno Haible  <bruno@clisp.org>
60083
60084         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60085         the portability of 'mkdir' to mingw systems.
60086
60087 2007-05-01  Bruno Haible  <bruno@clisp.org>
60088
60089         * doc/headers/google-ranking.txt: New file.
60090
60091 2007-04-30  Eric Blake  <ebb9@byu.net>
60092
60093         Prefer fseeko to fseek.
60094         * modules/getpass (Depends-on): Add fseeko.
60095         * lib/getpass.c (getpass): Use fseeko, not fseek.
60096
60097 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60098
60099         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60100         assumes the sorting is stable, while most qsort implementations
60101         are not.  Use argument addresses to ensure they never compare as
60102         equal.
60103
60104         * tests/test-argp-2.sh (usage-indent test): Fix output
60105         (func_compare): Restore diff options
60106         * tests/test-argp.c: Restore #include "progname.h"
60107
60108 2007-04-29  Bruno Haible  <bruno@clisp.org>
60109
60110         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60111         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60112         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60114         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60115         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60116         (TESTS, check_PROGRAMS): Add test-snprintf.
60117         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60118         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60119         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60120         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60121         assertions that fail on HP-UX, OSF/1, or IRIX.
60122         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60123
60124 2007-04-29  Bruno Haible  <bruno@clisp.org>
60125
60126         * MODULES.html.sh (posix_functions): Remove 'contents'.
60127
60128 2007-04-29  Karl Berry  <karl@gnu.org>
60129
60130         * config/srclist.txt (gendocs_template_min): new entry.
60131
60132 2007-04-29  Bruno Haible  <bruno@clisp.org>
60133
60134         Work around fpurge bug on BSD systems.
60135         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60136         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60137         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60138         fpurge to rpl_fpurge if the system already has this function.
60139         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60140         the case where the system already has this function. Correct invariants
60141         on BSD systems.
60142         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60143         BSD systems.
60144
60145 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60146
60147         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60148         proposed by Sven Verdoolaege.
60149
60150         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60151         options.
60152         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60153         (usage and help tests): Update
60154
60155 2007-04-29  Bruno Haible  <bruno@clisp.org>
60156
60157         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60158         Print more information in case of failure. Disable a test on BeOS.
60159
60160 2007-04-29  Bruno Haible  <bruno@clisp.org>
60161
60162         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60163         This helps debugging on systems on which no gdb is available.
60164
60165 2007-04-29  Bruno Haible  <bruno@clisp.org>
60166
60167         * lib/freading.h: Improve comments.
60168         * lib/fwriting.h: Likewise.
60169         * tests/test-freading.c (main): Don't check freading immediately after
60170         repositioning. Needed for glibc.
60171
60172 2007-04-29  Bruno Haible  <bruno@clisp.org>
60173
60174         * lib/freading.c (freading): Trivial simplification.
60175
60176 2007-04-28  Bruno Haible  <bruno@clisp.org>
60177
60178         * tests/test-fwriting.c (main): Also test the interaction between
60179         fflush and fwriting.
60180         * modules/fwriting-tests (Depends-on): Add fflush.
60181
60182         * tests/test-freading.c (main): Also test the interaction between
60183         fflush and freading.
60184         * modules/freading-tests (Depends-on): Add fflush.
60185
60186 2007-04-28  Bruno Haible  <bruno@clisp.org>
60187
60188         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60189         fseeko and ftello.
60190         Suggested by Eric Blake.
60191
60192 2007-04-28  Jim Meyering  <jim@meyering.net>
60193
60194         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60195         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60196         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60197
60198 2007-04-27  Eric Blake  <ebb9@byu.net>
60199
60200         * doc/headers/assert.texi (assert.h): Document assert module use.
60201
60202 2007-04-27  Bruno Haible  <bruno@clisp.org>
60203
60204         * doc/headers/*.texi: New files.
60205         * doc/gnulib.texi (Header File Substitutes): New chapter.
60206         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60207         dependencies.
60208         (standards.info ,standards.html, standards.dvi): Update dependencies.
60209         (mostlyclean, clean): New targets.
60210
60211 2007-04-27  Bruno Haible  <bruno@clisp.org>
60212
60213         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60214         * modules/sysexits (Files, Makefile.am): Update.
60215
60216         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60217         * modules/sys_socket (Files, Makefile.am): Update.
60218
60219         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60220         * modules/sys_stat (Files, Makefile.am): Update.
60221
60222 2007-04-27  Eric Blake  <ebb9@byu.net>
60223
60224         * lib/freading.h: Improve comments.
60225         * lib/fwriting.h: Likewise.
60226         * lib/fflush.c: Likewise.
60227
60228         Fix closein for mingw.
60229         * modules/closein-tests: Add tests for closein.
60230         * tests/test-closein.c: New file.
60231         * tests/test-closein.sh: Likewise.
60232         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60233         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60234
60235 2007-04-27  Bruno Haible  <bruno@clisp.org>
60236
60237         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60238         version is < 6.
60239         * lib/math_.h [__DECC]: Likewise.
60240         * lib/stdio_.h [__DECC]: Likewise.
60241         * lib/stdlib_.h [__DECC]: Likewise.
60242         * lib/string_.h [__DECC]: Likewise.
60243         * lib/time_.h [__DECC]: Likewise.
60244         * lib/wchar_.h [__DECC]: Likewise.
60245         * lib/wctype_.h [__DECC]: Likewise.
60246
60247 2007-04-27  Bruno Haible  <bruno@clisp.org>
60248
60249         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60250
60251 2007-04-27  Bruno Haible  <bruno@clisp.org>
60252
60253         * lib/fflush.c: Add comments.
60254         * modules/fpurge-tests (Depends-on): Add fflush.
60255         * modules/freadable-tests (Depends-on): Likewise.
60256         * modules/fwritable-tests (Depends-on): Likewise.
60257
60258 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60259
60260         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60261         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60262         Report by Bruno Haible <bruno@clisp.org>.
60263
60264 2007-04-26  Eric Blake  <ebb9@byu.net>
60265
60266         Fix fflush on mingw.
60267         * modules/fflush (Depends-on): Add freading.
60268         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60269         but unread data.
60270
60271 2007-04-26  Eric Blake  <ebb9@byu.net>
60272         and Bruno Haible  <bruno@clisp.org>
60273
60274         Implement freading and fwriting.
60275         * lib/freading.c: New file.
60276         * lib/freading.h: Likewise.
60277         * m4/freading.m4: Likewise.
60278         * modules/freading: Likewise.
60279         * modules/freading-tests: Likewise.
60280         * tests/test-freading.c: Likewise.
60281         * lib/fwriting.c: New file.
60282         * lib/fwriting.h: Likewise.
60283         * m4/fwriting.m4: Likewise.
60284         * modules/fwriting: Likewise.
60285         * modules/fwriting-tests: Likewise.
60286         * tests/test-fwriting.c: Likewise.
60287         * MODULES.html.sh (File stream based Input/Output): Mention them.
60288
60289 2007-04-26  Bruno Haible  <bruno@clisp.org>
60290
60291         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60292         'long' when we assume it.
60293         Suggested by Eric Blake.
60294
60295 2007-04-26  Bruno Haible  <bruno@clisp.org>
60296
60297         Ensure fseeko, ftello are declared on glibc systems.
60298         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60299         * modules/fseeko (configure.ac-early): Likewise.
60300         * modules/ftello (configure.ac-early): Likewise.
60301         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60302         AC_FUNC_FSEEKO for this.
60303         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60304         (gl_CHECK_FSEEKO): Remove macro.
60305
60306 2007-04-26  Bruno Haible  <bruno@clisp.org>
60307
60308         * tests/test-fflush.c (main): Also check the ftell result after
60309         fflush and fseek/fseeko.
60310         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60311         file descriptor position cache in the stream.
60312         * lib/fseeko.c (rpl_fseeko): Likewise.
60313
60314 2007-04-26  Bruno Haible  <bruno@clisp.org>
60315
60316         * modules/fflush-tests (Depends-on): Add fseeko.
60317
60318 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60319             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60320
60321         * lib/argz_.h: ensure error_t definition is obtained in same
60322         mechanism system argz.h would have.
60323         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60324         argz facilities are known bad.  Err on the side of caution if
60325         cross-compiling.
60326
60327 2007-04-25  Eric Blake  <ebb9@byu.net>
60328
60329         * lib/fpurge.c (includes): Use stdlib.h for free.
60330         * tests/test-fflush.c (main): Also test fflush-fseeko.
60331
60332 2007-04-25  Bruno Haible  <bruno@clisp.org>
60333
60334         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60335         * lib/fseeko.c: New file.
60336         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60337         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60338         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60339         gl_FUNC_FSEEKO.
60340         (gl_FUNC_FSEEKO): Invoke it.
60341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60342         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60343         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60344
60345 2007-04-25  Bruno Haible  <bruno@clisp.org>
60346
60347         * modules/fflush (Depends-on): Add ftello.
60348
60349 2007-04-25  Bruno Haible  <bruno@clisp.org>
60350
60351         * modules/ftello-tests: New file.
60352         * tests/test-ftello.c: New file.
60353
60354         * modules/ftello: New file.
60355         * m4/ftello.m4: New file.
60356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60357         HAVE_FTELLO.
60358         * lib/stdio_.h (ftello): New declaration.
60359         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60360         HAVE_FTELLO.
60361
60362 2007-04-25  Bruno Haible  <bruno@clisp.org>
60363
60364         * modules/fseeko-tests: New file.
60365         * tests/test-fseeko.c: New file.
60366
60367         * modules/fseeko: New file.
60368         * m4/fseeko.m4: New file.
60369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60370         HAVE_FSEEKO.
60371         * lib/stdio_.h (fseeko): New declaration.
60372         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60373         HAVE_FSEEKO.
60374
60375 2007-04-25  Bruno Haible  <bruno@clisp.org>
60376
60377         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60378
60379 2007-04-25  Bruno Haible  <bruno@clisp.org>
60380
60381         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60382         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60383         * tests/test-unistd.c: Likewise.
60384         * tests/test-fcntl.c: Likewise.
60385
60386 2007-04-23  Eric Blake  <ebb9@byu.net>
60387
60388         * lib/fflush.c: Fix missing include.
60389         Reported by Bruno Haible.
60390
60391 2007-04-23  Bruno Haible  <bruno@clisp.org>
60392
60393         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60394         Reported by Eric Blake.
60395
60396 2007-04-23  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60399
60400 2007-04-23  Bruno Haible  <bruno@clisp.org>
60401
60402         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60403
60404 2007-04-23  Bruno Haible  <bruno@clisp.org>
60405
60406         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60407         Needed on HP-UX 11.
60408
60409 2007-04-16  Eric Blake  <ebb9@byu.net>
60410
60411         Make fflush rely on fpurge.
60412         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60413         open coding all variants.
60414         * modules/fflush (Depends-on): Add fpurge and unistd.
60415         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60416         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60417
60418         Fix --with-tests compilation on cygwin.
60419         * modules/argmatch-tests (Makefile.am): List gnulib library first
60420         in LDADD.
60421         * modules/argp-tests (Makefile.am): Likewise.
60422         * modules/array-list-tests (Makefile.am): Likewise.
60423         * modules/array-oset-tests (Makefile.am): Likewise.
60424         * modules/avltree-list-tests (Makefile.am): Likewise.
60425         * modules/avltree-oset-tests (Makefile.am): Likewise.
60426         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60427         * modules/carray-list-tests (Makefile.am): Likewise.
60428         * modules/dirname-tests (Makefile.am): Likewise.
60429         * modules/frexp-tests (Makefile.am): Likewise.
60430         * modules/isnanl-tests (Makefile.am): Likewise.
60431         * modules/linked-list-tests (Makefile.am): Likewise.
60432         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60433         * modules/lock-tests (Makefile.am): Likewise.
60434         * modules/rbtree-list-tests (Makefile.am): Likewise.
60435         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60436         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60437         * modules/tls-tests (Makefile.am): Likewise.
60438         * modules/tsearch-tests (Makefile.am): Likewise.
60439         * modules/xvasprintf-tests (Makefile.am): Likewise.
60440
60441         Fix fpurge for cygwin.
60442         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60443         value.
60444         * modules/fpurge-tests (Depends-on): Clean up trash.
60445
60446 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60447
60448         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60449
60450         * m4/autobuild.m4: Re-indent.
60451
60452 2007-04-13  Bruno Haible  <bruno@clisp.org>
60453
60454         * modules/fpurge-tests: New file.
60455         * tests/test-fpurge.c: New file.
60456
60457         * modules/fpurge: New file.
60458         * lib/fpurge.h: New file.
60459         * lib/fpurge.c: New file.
60460         * m4/fpurge.m4: New file.
60461
60462 2007-04-13  Bruno Haible  <bruno@clisp.org>
60463
60464         * modules/fbufmode-tests: New file.
60465         * tests/test-fbufmode.c: New file.
60466
60467         * modules/fbufmode: New file.
60468         * lib/fbufmode.h: New file.
60469         * lib/fbufmode.c: New file.
60470         * m4/fbufmode.m4: New file.
60471
60472 2007-04-13  Bruno Haible  <bruno@clisp.org>
60473
60474         * modules/fwritable-tests: New file.
60475         * tests/test-fwritable.c: New file.
60476
60477         * modules/fwritable: New file.
60478         * lib/fwritable.h: New file.
60479         * lib/fwritable.c: New file.
60480         * m4/fwritable.m4: New file.
60481
60482 2007-04-13  Bruno Haible  <bruno@clisp.org>
60483
60484         * modules/freadable-tests: New file.
60485         * tests/test-freadable.c: New file.
60486
60487         * modules/freadable: New file.
60488         * lib/freadable.h: New file.
60489         * lib/freadable.c: New file.
60490         * m4/freadable.m4: New file.
60491
60492 2007-04-13  Bruno Haible  <bruno@clisp.org>
60493
60494         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60495         MOSTLYCLEANFILES.
60496
60497 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60498
60499         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60500         gzip bootstrap.conf to avoid dragging in i18n machinery.
60501         (gnulib_tool_option): Use it.
60502
60503 2007-04-13  Bruno Haible  <bruno@clisp.org>
60504
60505         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60506         %F directives.
60507         * tests/test-vasprintf-posix.c (test_function): Likewise.
60508         * tests/test-snprintf-posix.h (test_function): Likewise.
60509         * tests/test-sprintf-posix.h (test_function): Likewise.
60510         * tests/test-fprintf-posix.h (test_function): Likewise.
60511         * tests/test-printf-posix.h (test_function): Likewise.
60512         * tests/test-fprintf-posix.out: Likewise.
60513
60514 2007-04-13  Bruno Haible  <bruno@clisp.org>
60515
60516         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60517         * modules/tls-tests (configure.ac): Likewise.
60518         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60519
60520 2007-04-13  Bruno Haible  <bruno@clisp.org>
60521
60522         * lib/tls.c (glthread_tls_get): Fix return type.
60523         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60524
60525 2007-04-12  Eric Blake  <ebb9@byu.net>
60526
60527         * modules/gettime (Depends-on): Remove gettime.
60528         Reported by Dmitry V. Levin.
60529
60530 2007-04-12  Bruno Haible  <bruno@clisp.org>
60531
60532         * modules/fflush (Include): Mention <stdio.h>.
60533         * modules/strtoimax (Include): Mention <inttypes.h>.
60534         * modules/strtoumax (Include): Likewise.
60535
60536 2007-04-12  Eric Blake  <ebb9@byu.net>
60537
60538         * .cvsignore: New file.
60539         * .gitignore: Likewise.
60540
60541 2007-04-12  Bruno Haible  <bruno@clisp.org>
60542
60543         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60544         not before, since $(LDADD) often contains libgnu.a.
60545         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60546         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60547         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60548         Needed on Cygwin.
60549
60550 2007-04-12  Eric Blake  <ebb9@byu.net>
60551
60552         Work around glibc's failure to flush stdin on fclose.
60553         * lib/closein.c (close_stdin): Flush stdin before closing.
60554
60555         Work around glibc's failure to reset seekable stdin on exit.
60556         * modules/closein: New module.
60557         * lib/closein.c: New file.
60558         * lib/closein.h: Likewise.
60559         * m4/closein.m4: Likewise.
60560         * MODULES.html.sh (File stream based Input/Output): Document it.
60561
60562 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60563
60564         * gnulib-tool: Rename generated 'autobuild' script to
60565         'do-autobuild' in --create-megatestdir output.
60566
60567         * doc/gnulib.texi (Build robot for gnulib): Fix.
60568
60569 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60570
60571         * modules/sysexits (Depends-on): Add absolute-header.
60572
60573 2007-04-12  Eric Blake  <ebb9@byu.net>
60574
60575         No need to preserve errno on success.
60576         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60577         Reported by Bruno Haible.
60578
60579 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60580
60581         * MODULES.html.sh (Support for maintaining and releasing
60582         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60583
60584 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60585
60586         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60587
60588 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60589
60590         * modules/autobuild: New module.
60591
60592         * m4/autobuild.m4: New file.
60593
60594 2007-04-11  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60597         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60598         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60600         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60601         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60602         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60603         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60604         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60605         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60606         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60607         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60608         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60609         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60610         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60611         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60613         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60614         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60615         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60616         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60617         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60619         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60620         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60622         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60623         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60624         Reported by Eric Blake.
60625
60626 2007-04-11  Bruno Haible  <bruno@clisp.org>
60627
60628         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60629
60630 2007-04-10  Bruno Haible  <bruno@clisp.org>
60631
60632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60633         for NaN and Infinity. Needed on FreeBSD 6.1.
60634         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60635         regarding results for "%010a" of Infinity and NaN.
60636         * tests/test-vasprintf-posix.c (test_function): Likewise.
60637         * tests/test-snprintf-posix.h (test_function): Likewise.
60638         * tests/test-sprintf-posix.h (test_function): Likewise.
60639         * tests/test-fprintf-posix.h (test_function): Likewise.
60640         * tests/test-printf-posix.h (test_function): Likewise.
60641         * tests/test-fprintf-posix.out: Likewise.
60642
60643 2007-04-10  Bruno Haible  <bruno@clisp.org>
60644
60645         * modules/locale-tests: New file.
60646         * tests/test-locale.c: New file.
60647
60648         * modules/locale: New file.
60649         * lib/locale_.h: New file.
60650         * m4/locale_h.m4: New file.
60651
60652 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60653             Bruno Haible  <bruno@clisp.org>
60654
60655         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60656         be determined, test for availability of the copysignf, copysign,
60657         copysignl functions.
60658         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60659         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60660         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60661
60662 2007-04-09  Eric Blake  <ebb9@byu.net>
60663
60664         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60665         * modules/stdio (Makefile.am): Support fflush.
60666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60667         * modules/fflush: New file.
60668         * lib/fflush.c: Likewise.
60669         * m4/fflush.m4: Likewise.
60670         * modules/fflush-tests: New test.
60671         * tests/test-fflush.c: Likewise.
60672         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60673
60674 2007-04-06  Bruno Haible  <bruno@clisp.org>
60675
60676         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60677         (VASNPRINTF): Use signbit for faster determination whether to print a
60678         minus sign.
60679         * modules/vasnprintf (Files): Remove lib/float+.h.
60680         * modules/fprintf-posix (Depends-on): Add signbit.
60681         * modules/snprintf-posix (Depends-on): Likewise.
60682         * modules/sprintf-posix (Depends-on): Likewise.
60683         * modules/vasnprintf-posix (Depends-on): Likewise.
60684         * modules/vasprintf-posix (Depends-on): Likewise.
60685         * modules/vfprintf-posix (Depends-on): Likewise.
60686         * modules/vsnprintf-posix (Depends-on): Likewise.
60687         * modules/vsprintf-posix (Depends-on): Likewise.
60688
60689 2007-04-06  Bruno Haible  <bruno@clisp.org>
60690
60691         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60692         * tests/test-frexpl.c (main): Likewise.
60693         * tests/test-ldexpl.c (main): Likewise.
60694         * modules/frexp-tests (Depends-on): Add signbit.
60695         * modules/frexpl-tests (Depdends-on): Likewise.
60696         * modules/ldexpl-tests (Depdends-on): Likewise.
60697
60698 2007-04-06  Bruno Haible  <bruno@clisp.org>
60699
60700         * modules/signbit-tests: New file.
60701         * tests/test-signbit.c: New file.
60702
60703         * modules/signbit: New file.
60704         * lib/signbitf.c: New file.
60705         * lib/signbitd.c: New file.
60706         * lib/signbitl.c: New file.
60707         * m4/signbit.m4: New file.
60708         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60709         (signbit): New macro.
60710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60711         REPLACE_SIGNBIT.
60712         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60713         REPLACE_FREXPL into math.h.
60714
60715 2007-04-06  Bruno Haible  <bruno@clisp.org>
60716
60717         * modules/isnanf-nolibm-tests: New file.
60718         * tests/test-isnanf.c: New file.
60719
60720         * modules/isnanf-nolibm: New file.
60721         * lib/isnanf.h: New file.
60722         * lib/isnanf.c: New file.
60723         * lib/isnan.c: Consider the USE_FLOAT macro.
60724         * m4/isnanf.m4: New file.
60725
60726 2007-04-06  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60729         (Link): New section.
60730
60731         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60732
60733 2007-04-06  Bruno Haible  <bruno@clisp.org>
60734
60735         Assume the 'long double' type.
60736         * m4/longdouble.m4: Remove file.
60737         * config/srclist.txt: Don't mention longdouble.m4.
60738         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60739         * lib/float+.h: Likewise.
60740         * lib/frexp.c: Likewise.
60741         * lib/printf-args.h: Likewise.
60742         * lib/printf-args.c: Likewise.
60743         * lib/printf-frexp.c: Likewise.
60744         * lib/printf-parse.c: Likewise.
60745         * lib/vasnprintf.c: Likewise.
60746         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60747         * m4/intl.m4: Likewise.
60748         * m4/isnanl.m4: Likewise.
60749         * m4/printf.m4: Likewise.
60750         * m4/printf-frexpl.m4: Likewise.
60751         * m4/vasnprintf.m4: Likewise.
60752         * modules/allocsa (Files): Remove m4/longdouble.m4.
60753         * modules/gettext (Files): Likewise.
60754         * modules/relocatable-prog-wrapper (Files): Likewise.
60755         * modules/vasnprintf (Files): Likewise.
60756         * modules/isnanl (Files): Likewise.
60757         (Include): Simplify.
60758         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60759         (Include): Simplify.
60760         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60761         (Include): Simplify.
60762         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60763         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60764         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60765         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60766         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60767         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60768         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60769         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60770         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60771         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60772         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60773         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60774         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60775         * tests/test-isnanl.c: Likewise.
60776         * tests/test-snprintf-posix.h: Likewise.
60777         * tests/test-sprintf-posix.h: Likewise.
60778         * tests/test-vasnprintf-posix.c: Likewise.
60779         * tests/test-vasnprintf-posix2.c: Likewise.
60780         * tests/test-vasprintf-posix.c: Likewise.
60781
60782 2007-04-06  Bruno Haible  <bruno@clisp.org>
60783
60784         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60785         * lib/math_.h [__DECC]: Include the overridden include file through
60786         #include_next, outside the double-inclusion guard.
60787         * lib/stdio_.h [__DECC]: Likewise.
60788         * lib/stdlib_.h [__DECC]: Likewise.
60789         * lib/string_.h [__DECC]: Likewise.
60790         * lib/time_.h [__DECC]: Likewise.
60791         * lib/wchar_.h [__DECC]: Likewise.
60792         * lib/wctype_.h [__DECC]: Likewise.
60793         * lib/inttypes_.h [__DECC]: Likewise.
60794         Reported by Albert Chin <china@thewrittenword.com> in
60795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60796
60797 2007-04-04  Eric Blake  <ebb9@byu.net>
60798
60799         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60800         1.5.x.
60801
60802 2007-04-04  Bruno Haible  <bruno@clisp.org>
60803
60804         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60805         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60806
60807 2007-04-04  Bruno Haible  <bruno@clisp.org>
60808
60809         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60810         results for "%010a" of Infinity and NaN.
60811         * tests/test-vasprintf-posix.c (test_function): Likewise.
60812         * tests/test-snprintf-posix.h (test_function): Likewise.
60813         * tests/test-sprintf-posix.h (test_function): Likewise.
60814         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60815         * tests/test-printf-posix.h (test_function): Likewise.
60816         * tests/test-fprintf-posix.out: Update.
60817         Needed for FreeBSD 6.1.
60818
60819 2007-04-04  Bruno Haible  <bruno@clisp.org>
60820
60821         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60822         directly used by the gnulib modules nor by gnulib-tool.
60823
60824 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60825
60826         * DEPENDENCIES: Give overall description of version dependency
60827         desirability.  Use more-typical names for apps.
60828         Add shell, coreutils, diffutils, grep, tar, gzip.
60829
60830 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60831
60832         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60833
60834 2007-04-04  Karl Berry  <karl@gnu.org>
60835
60836         * MODULES.html.sh (func_module): missing '.
60837
60838 2007-04-03  Bruno Haible  <bruno@clisp.org>
60839
60840         * modules/argmatch-tests (Makefile.am): New variable
60841         test_argmatch_LDADD.
60842         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60843         * modules/array-list-tests (Makefile.am): New variable
60844         test_array_list_LDADD.
60845         * modules/array-oset-tests (Makefile.am): New variable
60846         test_array_oset_LDADD.
60847         * modules/avltree-list-tests (Makefile.am): New variable
60848         test_avltree_list_LDADD.
60849         * modules/avltree-oset-tests (Makefile.am): New variable
60850         test_avltree_oset_LDADD.
60851         * modules/avltreehash-list-tests (Makefile.am): New variable
60852         test_avltreehash_list_LDADD.
60853         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60854         test_canonicalize_lgpl_LDADD.
60855         * modules/carray-list-tests (Makefile.am): New variable
60856         test_carray_list_LDADD.
60857         * modules/dirname-tests (Makefile.am): New variable
60858         test_dirname_LDADD.
60859         * modules/linked-list-tests (Makefile.am): New variable
60860         test_linked_list_LDADD.
60861         * modules/linkedhash-list-tests (Makefile.am): New variable
60862         test_linkedhash_list_LDADD.
60863         * modules/rbtree-list-tests (Makefile.am): New variable
60864         test_rbtree_list_LDADD.
60865         * modules/rbtree-oset-tests (Makefile.am): New variable
60866         test_rbtree_oset_LDADD.
60867         * modules/rbtreehash-list-tests (Makefile.am): New variable
60868         test_rbtreehash_list_LDADD.
60869         * modules/xvasprintf-tests (Makefile.am): New variable
60870         test_xvasprintf_LDADD.
60871         Reported by Eric Blake.
60872
60873 2007-04-03  Eric Blake  <ebb9@byu.net>
60874
60875         * DEPENDENCIES: Weaken m4 requirements.
60876
60877 2007-04-03  Bruno Haible  <bruno@clisp.org>
60878
60879         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60880         * modules/isnanl-tests (configure.ac): Likewise.
60881
60882 2007-04-03  Ben Pfaff  <blp@gnu.org>
60883
60884         * modules/iconv_open: Add $(srcdir)/ to source directory
60885         references in Makefile fragments that call gperf, to fix VPATH
60886         builds.
60887
60888 2007-04-03  Bruno Haible  <bruno@clisp.org>
60889
60890         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60891         * lib/ldexpl.c: Undo last change.
60892
60893 2007-04-03  Bruno Haible  <bruno@clisp.org>
60894
60895         * modules/printf-frexpl (Depends-on): Undo last change.
60896         (Files): Add m4/ldexpl.m4.
60897
60898 2007-04-03  Bruno Haible  <bruno@clisp.org>
60899
60900         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60901         * modules/isnanl (Link): New section.
60902
60903         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60904         * modules/frexp (Link): New section.
60905
60906         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60907         * modules/frexpl (Link): New section.
60908
60909         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60910         * modules/ldexpl (Link): New section.
60911
60912 2007-04-03  Bruno Haible  <bruno@clisp.org>
60913
60914         * modules/TEMPLATE-EXTENDED: New file.
60915         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60916
60917 2007-04-03  Bruno Haible  <bruno@clisp.org>
60918
60919         * DEPENDENCIES: New file.
60920         Suggested by Simon Josefsson.
60921
60922 2007-04-03  Bruno Haible  <bruno@clisp.org>
60923
60924         * doc/gnulib.texi: Escape @.
60925
60926 2007-04-03  James Youngman  <jay@gnu.org>
60927         and Paul Eggert  <eggert@cs.ucla.edu>
60928
60929         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60930         birthtime on all systems that have birthtime, not just those which
60931         use st_birthtimensec rather than st_birthtim.  Putting zero in
60932         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60933         that the birth time is not available for files on an NFS mount.
60934
60935 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60936
60937         * modules/memxor: Move back from crypto/, suggested by Bruno.
60938         * modules/crypto/hmac-sha1: Fix memxor dependency.
60939
60940         * modules/crypto/gc: Moved from ../.
60941
60942 2007-04-02  Eric Blake  <ebb9@byu.net>
60943
60944         * lib/ldexpl.c (includes): Avoid libm.
60945
60946         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60947
60948 2007-04-02  Bruno Haible  <bruno@clisp.org>
60949
60950         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60951         on IRIX.
60952
60953 2007-04-02  Bruno Haible  <bruno@clisp.org>
60954
60955         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60956         x86 or x86_64 platforms running MacOS X.
60957         Reported by Ryan Schmidt <@ryandesign.com>.
60958
60959 2007-04-02  Bruno Haible  <bruno@clisp.org>
60960
60961         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60962         i386.
60963
60964 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60965
60966         * modules/crypto/arcfour: Moved from ../.
60967         * modules/crypto/arcfour-tests: Moved from ../.
60968         * modules/crypto/arctwo: Moved from ../.
60969         * modules/crypto/arctwo-tests: Moved from ../.
60970         * modules/crypto/des: Moved from ../.
60971         * modules/crypto/des-tests: Moved from ../.
60972         * modules/crypto/gc-arcfour: Moved from ../.
60973         * modules/crypto/gc-arcfour-tests: Moved from ../.
60974         * modules/crypto/gc-arctwo: Moved from ../.
60975         * modules/crypto/gc-arctwo-tests: Moved from ../.
60976         * modules/crypto/gc-des: Moved from ../.
60977         * modules/crypto/gc-des-tests: Moved from ../.
60978         * modules/crypto/gc-hmac-md5: Moved from ../.
60979         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60980         * modules/crypto/gc-hmac-sha1: Moved from ../.
60981         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60982         * modules/crypto/gc-md2: Moved from ../.
60983         * modules/crypto/gc-md2-tests: Moved from ../.
60984         * modules/crypto/gc-md4: Moved from ../.
60985         * modules/crypto/gc-md4-tests: Moved from ../.
60986         * modules/crypto/gc-md5: Moved from ../.
60987         * modules/crypto/gc-md5-tests: Moved from ../.
60988         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
60989         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
60990         * modules/crypto/gc-random: Moved from ../.
60991         * modules/crypto/gc-rijndael: Moved from ../.
60992         * modules/crypto/gc-rijndael-tests: Moved from ../.
60993         * modules/crypto/gc-sha1: Moved from ../.
60994         * modules/crypto/gc-sha1-tests: Moved from ../.
60995         * modules/crypto/gc-tests: Moved from ../.
60996         * modules/crypto/hmac-md5: Moved from ../.
60997         * modules/crypto/hmac-md5-tests: Moved from ../.
60998         * modules/crypto/hmac-sha1: Moved from ../.
60999         * modules/crypto/hmac-sha1-tests: Moved from ../.
61000         * modules/crypto/md2: Moved from ../.
61001         * modules/crypto/md2-tests: Moved from ../.
61002         * modules/crypto/md4: Moved from ../.
61003         * modules/crypto/md4-tests: Moved from ../.
61004         * modules/crypto/md5: Moved from ../.
61005         * modules/crypto/md5-tests: Moved from ../.
61006         * modules/crypto/memxor: Moved from ../.
61007         * modules/crypto/rijndael: Moved from ../.
61008         * modules/crypto/rijndael-tests: Moved from ../.
61009         * modules/crypto/sha1: Moved from ../.
61010
61011 2007-03-30  James Youngman  <jay@gnu.org>
61012
61013         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61014         rename() to change the ctime of a file (because ctime is unaffected
61015         by rename on jfs2 on AIX 5.1).
61016         (main): Start by doing cleanup, in case a previous run failed leaving
61017         test files behind.
61018
61019 2007-03-31  Bruno Haible  <bruno@clisp.org>
61020
61021         Support old proprietary implementations of iconv.
61022         * modules/iconv_open: New file.
61023         * lib/iconv_.h: New file.
61024         * m4/iconv_h.m4: New file.
61025         * lib/iconv_open.c: New file.
61026         * lib/iconv_open-aix.gperf: New file.
61027         * lib/iconv_open-hpux.gperf: New file.
61028         * lib/iconv_open-irix.gperf: New file.
61029         * lib/iconv_open-osf.gperf: New file.
61030         * m4/iconv_open.m4: New file.
61031         * modules/linebreak (Depends-on): Add iconv_open.
61032         * modules/striconv (Depends-on): Likewise.
61033         * modules/striconveh (Depends-on): Likewise.
61034         * modules/unicodeio (Depends-on): Likewise.
61035         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61036         (iconv_t)(-1).
61037         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61038         conversion if cd is (iconv_t)(-1).
61039         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61040         is not possible.
61041
61042 2007-03-31  Bruno Haible  <bruno@clisp.org>
61043
61044         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61045         work on Solaris either. Protect also second use of "autodetect_jp".
61046
61047 2007-03-31  Bruno Haible  <bruno@clisp.org>
61048
61049         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61050         the function is not present.
61051
61052 2007-03-31  Bruno Haible  <bruno@clisp.org>
61053
61054         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61055         the function is not present.
61056
61057 2007-03-31  Bruno Haible  <bruno@clisp.org>
61058
61059         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61060         a bug in HP-UX iconv_open().
61061
61062 2007-03-31  Bruno Haible  <bruno@clisp.org>
61063
61064         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61065         (Mathematics <math.h>): New section, add fpieee.
61066         (Input/output <stdio.h>): Add fseterr.
61067         (Mathematics <math.h>): New section, add printf-frexp.
61068         (Container data structures): Add sublist.
61069         (Core language properties): Add fpucw, inline.
61070         (Functions for greatest-width integer types <inttypes.h>): Add
61071         imaxabs, imaxdiv, inttypes.
61072         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61073         isnanl-nolibm, ldexp.
61074         (Mathematics <math.h>): New section, add printf-frexpl.
61075         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61076         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61077         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61078         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61079         (Unicode string functions): Add unistr/u*-mbtoucr.
61080         (Java): Add javacomp-script, javaexec-script.
61081         (C#): Add csharpcomp-script, csharpexec-script.
61082         (Support for building libraries and executables): Add havelib,
61083         relocatable-*.
61084         (Support for maintaining and releasing projects): Renamed from
61085         'Support for maintaining and release projects'. Add announce-gen.
61086
61087 2007-03-31  Bruno Haible  <bruno@clisp.org>
61088
61089         * README: Talk primarily about git.
61090         (git and CVS): Renamed from CVS.
61091         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61092         gnulib is available through git.
61093         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61094
61095 2007-03-30  Bruno Haible  <bruno@clisp.org>
61096
61097         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61098         * lib/poll_.h: Likewise.
61099         * lib/stat_.h: Likewise.
61100         * lib/sys_time_.h: Likewise.
61101         * lib/sysexit_.h: Likewise.
61102         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61103         * lib/stdbool_.h: Likewise.
61104         * lib/byteswap_.h: Add double-inclusion guard.
61105
61106 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61107
61108         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61109
61110 2007-03-30  Karl Berry  <karl@gnu.org>
61111
61112         * config/srclist-update: double space after USA in the license
61113         substitution, since that's how it's usually (?) written.
61114
61115 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61116
61117         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61118         reported by Bruno Haible.
61119
61120 2007-03-29  Bruno Haible  <bruno@clisp.org>
61121
61122         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61123         a bug in AIX iconv().
61124
61125 2007-03-29  Bruno Haible  <bruno@clisp.org>
61126
61127         * modules/ldexpl-tests: New file.
61128         * tests/test-ldexpl.c: New file.
61129
61130 2007-03-29  Bruno Haible  <bruno@clisp.org>
61131
61132         * lib/ldexpl.c: Include fpucw.h.
61133         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61134         multiplication.
61135         * modules/ldexpl (Depends-on): Add fpucw.
61136
61137 2007-03-29  Bruno Haible  <bruno@clisp.org>
61138
61139         * modules/ldexpl: New file.
61140         * m4/ldexpl.m4: New file.
61141         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61142         set.
61143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61144         REPLACE_LDEXPL.
61145         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61146         REPLACE_LDEXPL.
61147         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61148         gl_FUNC_LDEXPL_WORKS.
61149         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61150         * modules/mathl (Files): Remove lib/ldexpl.c.
61151         (Depends-on): Add ldexpl.
61152
61153 2007-03-29  Bruno Haible  <bruno@clisp.org>
61154
61155         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61156
61157 2007-03-29  Bruno Haible  <bruno@clisp.org>
61158
61159         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61160         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61161         and possibly also HP-UX.
61162         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61163         work on AIX, IRIX, HP-UX, OSF/1.
61164         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61165         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61166         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61167         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61168         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61169         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61170
61171 2007-03-29  Bruno Haible  <bruno@clisp.org>
61172
61173         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61174
61175 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61176
61177         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61178         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61179
61180 2007-03-29  Eric Blake  <ebb9@byu.net>
61181
61182         * lib/acl-internal.h: Remove redundant include.
61183         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61184         Cygwin when a file is locked.
61185
61186 2007-03-29  Bruno Haible  <bruno@clisp.org>
61187
61188         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61189         file.
61190         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61191
61192 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61193
61194         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61195         try to remove a parent directory if the child couldn't be removed
61196         (except for the first rmdir, which could fail because the child
61197         doesn't exist).  Problem reported by Jeff Blaine in
61198         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61199
61200 2007-03-28  Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/striconveh.c (utf8conv_carefully): New function.
61203         (mem_cd_iconveh_internal): Invoke it.
61204
61205 2007-03-28  Bruno Haible  <bruno@clisp.org>
61206
61207         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61208         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61209         input.
61210         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61211         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61212         unistr/u8-uctomb.
61213
61214 2007-03-28  Bruno Haible  <bruno@clisp.org>
61215
61216         * modules/unistr/u8-mbtoucr: New file.
61217         * lib/unistr/u8-mbtoucr.c: New file.
61218         * modules/unistr/u16-mbtoucr: New file.
61219         * lib/unistr/u16-mbtoucr.c: New file.
61220         * modules/unistr/u16-mbtoucr: New file.
61221         * lib/unistr/u16-mbtoucr.c: New file.
61222         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61223
61224 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61225             Bruno Haible  <bruno@clisp.org>
61226
61227         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61228         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61229         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61230
61231         * m4/stdio_h.m4: Add stubs for vasprintf too.
61232
61233         * modules/stdio: Support vasprintf in sed command.
61234
61235         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61236         vasprintf.h.  Add stdio module indicator.
61237
61238         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61239         vasprintf.h.
61240
61241         * lib/vasprintf.h: File removed.
61242
61243         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61244         * lib/vasprintf.c: Ditto.
61245         * lib/xvasprintf.c: Ditto.
61246         * tests/test-vasprintf-posix.c: Ditto.
61247         * tests/test-vasprintf.c: Ditto.
61248
61249 2007-03-27  Bruno Haible  <bruno@clisp.org>
61250
61251         Make vasnprintf multithread-safe.
61252         * lib/vasnprintf.c (decimal_point_char): New function.
61253         (VASNPRINTF): Use it.
61254         Suggested by Simon Josefsson.
61255
61256 2007-03-27  Eric Blake  <ebb9@byu.net>
61257
61258         Support sub-second birthtime on cygwin.
61259         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61260         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61261         (get_stat_birthtime): Also work with st_birthtim.
61262
61263 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61264
61265         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61266         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61267         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61268         (get_stat_birthtime_ns): Simplify compile-time tests.
61269         (get_stat_birthtime): Change the API to look like
61270         get_stat_mtime etc., except return a negative tv_nsec on error.
61271         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61272         Don't check for "spare" fields.
61273         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61274         or for struct stat.st_birthtime, as these tests aren't used.
61275         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61276
61277 2007-03-27  Bruno Haible  <bruno@clisp.org>
61278
61279         * lib/stat-time.h: Include <sys/stat.h>.
61280
61281 2007-03-27  James Youngman  <jay@gnu.org>
61282
61283         * lib/stat-time.h (get_stat_birthtime): New function for
61284           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61285         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61286           and its variants.
61287         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61288         * modules/stat-time-test: New file.
61289         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61290
61291 2007-03-26  Bruno Haible  <bruno@clisp.org>
61292
61293         Better support of signalling NaNs.
61294         * lib/atanl.c: Include isnanl.h.
61295         (atanl): Perform test for NaN at the beginning of the function and
61296         through a call to isnanl.
61297         * lib/cosl.c: Include isnanl.h.
61298         (cosl): Perform test for NaN at the beginning of the function and
61299         through a call to isnanl.
61300         * lib/ldexpl.c: Include isnanl.h.
61301         (ldexpl): Perform test for NaN through a call to isnanl.
61302         * lib/logl.c: Include isnanl.h.
61303         (logl): Perform test for NaN at the beginning of the function and
61304         through a call to isnanl.
61305         * lib/sinl.c: Include isnanl.h.
61306         (sinl): Perform test for NaN at the beginning of the function and
61307         through a call to isnanl.
61308         * lib/sqrtl.c: Include isnanl.h.
61309         (sqrtl): Perform test for NaN at the beginning of the function and
61310         through a call to isnanl.
61311         * lib/tanl.c: Include isnanl.h.
61312         (tanl): Perform test for NaN at the beginning of the function and
61313         through a call to isnanl.
61314         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61315         * modules/mathl (Depends-on): Add isnanl.
61316
61317 2007-03-26  Eric Blake  <ebb9@byu.net>
61318
61319         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61320         regression in logic sense of previous patch.
61321
61322 2007-03-26  Bruno Haible  <bruno@clisp.org>
61323
61324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61325         unportable shell command "if ! ...".
61326         Reported by Ralf Wildenhues.
61327
61328 2007-03-25  Bruno Haible  <bruno@clisp.org>
61329
61330         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61331         <sysexits.h> file, and only add EX_CONFIG.
61332         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61333         absolute file name and whether it is sufficient. Substitute also
61334         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61335         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61336         ABSOLUTE_SYSEXITS_H into sysexits.h.
61337
61338 2007-03-25  Bruno Haible  <bruno@clisp.org>
61339
61340         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61341         hints is NULL.
61342
61343 2007-03-25  Bruno Haible  <bruno@clisp.org>
61344
61345         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61346         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61347
61348 2007-03-25  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/vasnprintf.c: Include langinfo.h.
61351         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61352         multithread-safe.
61353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61355         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61356         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61357         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61358         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61359         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61360         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61361         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61362         Reported by Simon Josefsson.
61363
61364 2007-03-25  Bruno Haible  <bruno@clisp.org>
61365
61366         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61367         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61368         * modules/vasnprintf (Depends-on): Add stdint.
61369
61370 2007-03-25  Bruno Haible  <bruno@clisp.org>
61371
61372         * modules/fpieee: New file.
61373         * m4/fpieee.m4: New file.
61374         * modules/isnan-nolibm (Depends-on): Add fpieee.
61375         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61376         * modules/isnanl (Depends-on): Add fpieee.
61377
61378 2007-03-25  Bruno Haible  <bruno@clisp.org>
61379
61380         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61381
61382 2007-03-25  Bruno Haible  <bruno@clisp.org>
61383
61384         Avoid test failures on IRIX 6.5.
61385         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61386         (main): Use it.
61387         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61388         macros.
61389         (main): Use them.
61390
61391 2007-03-25  Bruno Haible  <bruno@clisp.org>
61392
61393         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61394         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61395         exists but doesn't work.
61396         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61397         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61399         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61400         math.h.
61401
61402 2007-03-25  Bruno Haible  <bruno@clisp.org>
61403
61404         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61405         returns inf. Needed on IRIX 6.5.
61406
61407 2007-03-25  Bruno Haible  <bruno@clisp.org>
61408
61409         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61410         (main): Use isnanl instead of x != x idiom.
61411         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61412
61413         * tests/test-frexp.c: Include isnan.h.
61414         (main): Use isnan instead of x != x idiom.
61415         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61416
61417 2007-03-25  Bruno Haible  <bruno@clisp.org>
61418
61419         * tests/test-frexp.c (NaN): New function/macro.
61420         (main): Use it instead of 0.0 / 0.0.
61421         * tests/test-isnan.c (NaN): New function/macro.
61422         (main): Use it instead of 0.0 / 0.0.
61423         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61424         (test_function): Use it instead of 0.0 / 0.0.
61425         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61426         (test_function): Use it instead of 0.0 / 0.0.
61427         * tests/test-snprintf-posix.h (NaN): New function/macro.
61428         (test_function): Use it instead of 0.0 / 0.0.
61429         * tests/test-sprintf-posix.h (NaN): New function/macro.
61430         (test_function): Use it instead of 0.0 / 0.0.
61431         * tests/test-fprintf-posix.h (NaN): New function/macro.
61432         (test_function): Use it instead of 0.0 / 0.0.
61433         * tests/test-printf-posix.h (NaN): New function/macro.
61434         (test_function): Use it instead of 0.0 / 0.0.
61435
61436         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61437
61438 2007-03-25  Bruno Haible  <bruno@clisp.org>
61439
61440         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61441
61442 2007-03-25  Bruno Haible  <bruno@clisp.org>
61443
61444         * lib/regexec.c (merge_state_with_log): Make static.
61445
61446 2007-03-25  Bruno Haible  <bruno@clisp.org>
61447
61448         * lib/trigl.c (kernel_rem_pio2): Make static.
61449
61450 2007-03-25  Bruno Haible  <bruno@clisp.org>
61451
61452         * lib/sincosl.c (sincosl_table): Make static.
61453
61454 2007-03-25  Bruno Haible  <bruno@clisp.org>
61455
61456         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61457         if the compiler does not support C99.
61458
61459 2007-03-25  Bruno Haible  <bruno@clisp.org>
61460
61461         * modules/time (Makefile.am): Ensure all rule action lines start with a
61462         tab.
61463
61464 2007-03-24  Bruno Haible  <bruno@clisp.org>
61465
61466         * modules/tsearch-tests: New file.
61467         * tests/test-tsearch.sh: New file.
61468         * tests/test-tsearch.c: New file, mostly copied from glibc.
61469
61470         * modules/search-tests: New file.
61471         * tests/test-search.c: New file.
61472
61473         * modules/search: New file.
61474         * lib/search_.h: New file, incorporating lib/tsearch.h.
61475         * m4/search_h.m4: New file.
61476         * lib/tsearch.h: Remove file.
61477         * lib/tsearch.c: Include search.h instead of tsearch.h.
61478         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61479         HAVE_TSEARCH.
61480         * modules/tsearch (Files): Remove lib/tsearch.h.
61481         (Depends-on): Add search.
61482         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61483         (Include): Change tsearch.h into search.h.
61484
61485 2007-03-24  Bruno Haible  <bruno@clisp.org>
61486
61487         * modules/fpucw: New file.
61488         * lib/fpucw.h: New file.
61489         * lib/frexp.c: Include fpucw.h.
61490         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61491         (FUNC): Use them.
61492         * lib/printf-frexp.c: Include fpucw.h.
61493         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61494         (FUNC): Use them.
61495         * lib/vasnprintf.c: Include fpucw.h.
61496         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61497         'long double' calculations.
61498         * tests/test-frexpl.c: Include fpucw.h.
61499         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61500         * tests/test-printf-frexpl.c: Include fpucw.h.
61501         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61502         * modules/frexpl (Depends-on): Add fpucw.
61503         * modules/printf-frexpl (Depends-on): Likewise.
61504         * modules/fprintf-posix (Depends-on): Likewise.
61505         * modules/snprintf-posix (Depends-on): Likewise.
61506         * modules/sprintf-posix (Depends-on): Likewise.
61507         * modules/vasnprintf-posix (Depends-on): Likewise.
61508         * modules/vasprintf-posix (Depends-on): Likewise.
61509         * modules/vfprintf-posix (Depends-on): Likewise.
61510         * modules/vsnprintf-posix (Depends-on): Likewise.
61511         * modules/vsprintf-posix (Depends-on): Likewise.
61512         * modules/frexpl-tests (Depends-on): Likewise.
61513         * modules/printf-frexpl-tests (Depends-on): Likewise.
61514
61515 2007-03-24  Bruno Haible  <bruno@clisp.org>
61516
61517         * lib/float+.h: New file.
61518         * lib/isnan.c: Include float+.h.
61519         (SIZE): New macro.
61520         (FUNC): Compare only SIZE bytes of the value.
61521         * lib/vasnprintf.c: Include float+.h.
61522         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61523         SIZEOF_LDBL or SIZEOF_DBL bytes.
61524         * modules/isnan-nolibm (Files): Add lib/float+.h.
61525         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61526         * modules/isnanl (Files): Add lib/float+.h.
61527         * modules/vasnprintf (Files): Add lib/float+.h.
61528
61529 2007-03-24  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61532         include isnanl-nolibm.h.
61533
61534 2007-03-24  Bruno Haible  <bruno@clisp.org>
61535
61536         * tests/test-read-file.c (main): Don't produce spurious output for
61537         expected situations. Make the test fail if it encountered unexpected
61538         results.
61539
61540 2007-03-24  Bruno Haible  <bruno@clisp.org>
61541
61542         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61543         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61544
61545 2007-03-24  Bruno Haible  <bruno@clisp.org>
61546
61547         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61548
61549 2007-03-24  Bruno Haible  <bruno@clisp.org>
61550
61551         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61552         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61553
61554         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61555         * modules/utf8-ucs4: Turn into a symbolic link to module
61556         unistr/u8-mbtouc.
61557
61558         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61559         utf8-ucs4-unsafe.
61560         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61561         unistr/u8-mbtouc-unsafe.
61562
61563         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61564         * modules/utf16-ucs4: Turn into a symbolic link to module
61565         unistr/u16-mbtouc.
61566
61567         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61568         utf16-ucs4-unsafe.
61569         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61570         unistr/u16-mbtouc-unsafe.
61571
61572         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61573         * modules/ucs4-utf8: Turn into a symbolic link to module
61574         unistr/u8-ubtomb.
61575
61576         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61577         * modules/ucs4-utf16: Turn into a symbolic link to module
61578         unistr/u16-ubtomb.
61579
61580 2007-03-24  Bruno Haible  <bruno@clisp.org>
61581
61582         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61583         Enable the function only if HAVE_INLINE.
61584         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61585         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61586         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61587         Enable the function only if HAVE_INLINE.
61588         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61589         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61590         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61591         Enable the function only if HAVE_INLINE.
61592         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61593         Enable the function only if HAVE_INLINE.
61594         * modules/utf8-ucs4: Update.
61595         * modules/utf8-ucs4-unsafe: Update.
61596         * modules/utf16-ucs4: Update.
61597         * modules/utf16-ucs4-unsafe: Update.
61598         * modules/ucs4-utf8: Update.
61599         * modules/ucs4-utf16: Update.
61600
61601 2007-03-24  Bruno Haible  <bruno@clisp.org>
61602
61603         * lib/utf8-ucs4.h: Remove file.
61604         * lib/utf8-ucs4-unsafe.h: Remove file.
61605         * lib/utf16-ucs4.h: Remove file.
61606         * lib/utf16-ucs4-unsafe.h: Remove file.
61607         * lib/ucs4-utf8.h: Remove file.
61608         * lib/ucs4-utf16.h: Remove file.
61609         * lib/unistr.h: Include their previous contents.
61610         * m4/utf-ucs4.m4: Remove file.
61611         * m4/ucs4-utf.m4: Remove file.
61612         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61613         (Depends-on): Add unistr/base.
61614         (configure.ac): Remove gl_UTF_UCS4.
61615         (Makefile.am): Update.
61616         (Include): Change to unistr.h.
61617         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61618         (Depends-on): Add unistr/base.
61619         (configure.ac): Remove gl_UTF_UCS4.
61620         (Makefile.am): Update.
61621         (Include): Change to unistr.h.
61622         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61623         (Depends-on): Add unistr/base.
61624         (configure.ac): Remove gl_UTF_UCS4.
61625         (Makefile.am): Update.
61626         (Include): Change to unistr.h.
61627         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61628         (Depends-on): Add unistr/base.
61629         (configure.ac): Remove gl_UTF_UCS4.
61630         (Makefile.am): Update.
61631         (Include): Change to unistr.h.
61632         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61633         (Depends-on): Add unistr/base.
61634         (configure.ac): Remove gl_UCS4_UTF.
61635         (Makefile.am): Update.
61636         (Include): Change to unistr.h.
61637         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61638         (Depends-on): Add unistr/base.
61639         (configure.ac): Remove gl_UCS4_UTF.
61640         (Makefile.am): Update.
61641         (Include): Change to unistr.h.
61642         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61643         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61644         utf8-ucs4-unsafe.h.
61645         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61646         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61647         utf16-ucs4-unsafe.h.
61648         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61649         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61650         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61651         * lib/unistr/u8-strchr.c: Likewise.
61652         * lib/unistr/u8-strrchr.c: Likewise.
61653         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61654         * lib/unistr/u16-strchr.c: Likewise.
61655         * lib/unistr/u16-strrchr.c: Likewise.
61656         * lib/striconveh.c: Update.
61657         * lib/linebreak.c: Update.
61658
61659 2007-03-24  Bruno Haible  <bruno@clisp.org>
61660
61661         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61662         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61663
61664 2007-03-22  Bruno Haible  <bruno@clisp.org>
61665
61666         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61667
61668 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61669
61670         * MODULES.html.sh (File system functions): New module write-any-file.
61671         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61672         * m4/write-any-file.m4: New files.
61673
61674 2007-03-23  Eric Blake  <ebb9@byu.net>
61675
61676         * gnulib-tool: Rearrange space-tab sequences, since some editors
61677         like to eat them.
61678
61679 2007-03-23  Eric Blake  <ebb9@byu.net>
61680
61681         * lib/version-etc.c (version_etc_va): Update license wording to
61682         be more concise.  Recommended by Richard Stallman.
61683
61684 2007-03-22  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/poll.c (MSG_PEEK): New fallback definition.
61687
61688 2007-03-22  Bruno Haible  <bruno@clisp.org>
61689
61690         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61691         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61692         (main): Update.
61693         Fixes a compilation error on BeOS.
61694
61695 2007-03-22  Bruno Haible  <bruno@clisp.org>
61696
61697         * modules/frexpl-tests: New file.
61698         * tests/test-frexpl.c: New file.
61699
61700         * modules/frexpl: New file.
61701         * m4/frexpl.m4: New file.
61702         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61703         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61705         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61706         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61707         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61708
61709 2007-03-22  Bruno Haible  <bruno@clisp.org>
61710
61711         * lib/frexpl.c: Share code with lib/frexp.c.
61712         * modules/mathl (Files): Add lib/frexp.c.
61713         (Depends-on): Add isnanl-nolibm.
61714
61715 2007-03-22  Bruno Haible  <bruno@clisp.org>
61716
61717         * modules/printf-frexp (Files): Add m4/frexp.m4.
61718         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61719         only if the found frexp function actually works.
61720
61721 2007-03-22  Bruno Haible  <bruno@clisp.org>
61722
61723         * lib/frexp.c: Remove older implementation that uses divisions.
61724
61725 2007-03-21  Bruno Haible  <bruno@clisp.org>
61726
61727         * modules/frexp-tests: New file.
61728         * tests/test-frexp.c: New file.
61729
61730         * modules/frexp: New file.
61731         * lib/frexp.c: New file.
61732         * m4/frexp.m4: New file.
61733         * lib/math_.h (frexp): New declaration.
61734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61735         REPLACE_FREXP.
61736         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61737
61738 2007-03-21  Bruno Haible  <bruno@clisp.org>
61739
61740         * modules/isnanl-tests: New file.
61741         * tests/test-isnanl.c: New file.
61742
61743         * modules/isnanl: New file.
61744         * lib/isnanl.h: New file.
61745         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61746         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61747         gl_FUNC_ISNANL_WORKS.
61748         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61749         New macros.
61750
61751 2007-03-21  Bruno Haible  <bruno@clisp.org>
61752
61753         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61754         lib/isnanl.h.
61755         (Include): Update.
61756         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61757         * lib/vasnprintf.c: Update.
61758         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61759         tests/test-isnanl.h, remove tests/test-isnanl.c.
61760         (Makefile.am): Update.
61761         * tests/test-isnanl-nolibm.c: New file.
61762         * tests/test-isnanl.h: New file.
61763         * tests/test-isnanl.c: Remove file.
61764
61765 2007-03-21  Jim Meyering  <jim@meyering.net>
61766
61767         When trying to open ".", treat ESTALE like EACCES.
61768         * lib/savewd.c (savewd_save): Resort to forking not just upon
61769         failure with EACCES, but also when errno is ESTALE.
61770
61771 2007-03-20  Bruno Haible  <bruno@clisp.org>
61772
61773         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61774         Needed on AIX 5.1. Reported by Matthew Woehlke.
61775
61776 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61777
61778         Suggestions by Bruno Haible:
61779         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61780         our own.
61781         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61782         * modules/acl (Depends-on): Add gettext.
61783
61784 2007-03-19  Bruno Haible  <bruno@clisp.org>
61785
61786         * modules/iconvme: Remove file.
61787         * lib/iconvme.h: Remove file.
61788         * lib/iconvme.c: Remove file.
61789         * m4/iconvme.m4: Remove file.
61790
61791 2007-03-19  Bruno Haible  <bruno@clisp.org>
61792
61793         * doc/relocatable-maint.texi: Break long shell script line.
61794         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61795
61796 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61797
61798         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61799         handle file_has_acl.
61800         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61801         * lib/acl.c: Move header inclusions and related macro defns into
61802         lib/acl-internal.h.
61803         (S_ISLNK): Remove defn, since that's now done for us.
61804         (file_has_acl): Move to lib/file-has-acl.c.
61805         Call acl_trivial if available.  This is the crucial part of the fix.
61806         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61807         shared within the library.  Rewrite a bit, partly to make it compatible
61808         with the GNU coding style.
61809         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61810         Remove unnecessary double-quotes.
61811         Don't test for acl_to_text; the build will catch that.
61812         Replace acl_entries if it doesn't exist and it is needed.
61813         Check for -lsec and acl_trivial (as used on Solaris 10).
61814         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61815         lib/file-has-acl.c.
61816         (Depends-on): Add sys_stat, for S_ISLNK.
61817
61818 2007-03-19  Ben Pfaff  <blp@gnu.org>
61819
61820         * doc/gnulib.texi: Fix typos.
61821         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61822
61823 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61824
61825         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61826         If size is zero here, buf must be zero.
61827
61828 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61829
61830         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61831         <bruno@clisp.org>.
61832
61833 2007-03-18  Bruno Haible  <bruno@clisp.org>
61834
61835         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61836         Suggested by Eric Blake.
61837
61838 2007-03-18  Ben Pfaff  <blp@gnu.org>
61839
61840         * doc/relocatable.texi: Recommend using as prefix a directory
61841         that does not exist and will never be created.  Based on
61842         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61843         and others.
61844
61845 2007-03-17  Bruno Haible  <bruno@clisp.org>
61846
61847         * lib/fchownat.c: Include lchown.h.
61848
61849 2007-03-17  Bruno Haible  <bruno@clisp.org>
61850
61851         Fix endless loop when the given allocated size was > INT_MAX.
61852         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61853         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61854         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61855         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61856         * lib/sprintf.c (sprintf): Likewise.
61857
61858 2007-03-17  Bruno Haible  <bruno@clisp.org>
61859
61860         * tests/test-argp-2.sh (func_compare): Output a context diff.
61861
61862 2007-03-17  Bruno Haible  <bruno@clisp.org>
61863
61864         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61865         locale's decimal-point character.
61866
61867 2007-03-17  Bruno Haible  <bruno@clisp.org>
61868
61869         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61870         before comparing it. Needed because on some platforms (e.g. x86) a
61871         'long double' occupies less bytes than sizeof (long double).
61872
61873 2007-03-17  Bruno Haible  <bruno@clisp.org>
61874
61875         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61876         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61877         * tests/test-getaddrinfo.c (simple): Likewise.
61878         * tests/test-read-file.c (main): Likewise.
61879
61880 2007-03-17  Bruno Haible  <bruno@clisp.org>
61881
61882         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61883
61884 2007-03-17  Bruno Haible  <bruno@clisp.org>
61885
61886         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61887         unused variable.
61888
61889 2007-03-17  Bruno Haible  <bruno@clisp.org>
61890
61891         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61892         * tests/test-c-strncasecmp.c: Likewise.
61893
61894 2007-03-17  Bruno Haible  <bruno@clisp.org>
61895
61896         * modules/stdlib (Depends-on): Add unistd.
61897         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61898         Needed for MacOS X 10.3.
61899
61900 2007-03-17  Bruno Haible  <bruno@clisp.org>
61901
61902         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61903
61904 2007-03-17  Bruno Haible  <bruno@clisp.org>
61905
61906         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61907
61908 2007-03-17  Bruno Haible  <bruno@clisp.org>
61909
61910         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61911         to reflect files copied from gnulib (with or without modifications).
61912         Suggested by Jim Meyering.
61913
61914 2007-03-17  Eric Blake  <ebb9@byu.net>
61915
61916         * NEWS: Document stdlib change from 2007-02-18.
61917
61918 2007-03-17  Jim Meyering  <jim@meyering.net>
61919
61920         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61921         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61922         someone uses a name containing shell meta-characters.
61923         Reported by Alfred M. Szmidt.
61924
61925         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61926
61927 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61928
61929         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61930         and copy gettext configuration files only if configure.ac contains
61931         a use of AM_GNU_GETTEXT_VERSION.
61932
61933 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61934
61935         * build-aux/bootstrap (gnulib_name): New variable.
61936         (gnulib_tool_options): Use it.
61937
61938 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61939
61940         * tests/test-des.c: Use new namespace.
61941
61942 2007-03-15  Bruno Haible  <bruno@clisp.org>
61943
61944         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61945         Reported by James Youngman <jay@gnu.org>.
61946
61947 2007-03-15  Bruno Haible  <bruno@clisp.org>
61948
61949         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61950         declared prototype. Needed with cc on OSF/1 5.1.
61951
61952 2007-03-15  Bruno Haible  <bruno@clisp.org>
61953
61954         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61955         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61956         (struct gl_list_implementation): Add dispose_fn argument to the
61957         'create_empty', 'create' methods.
61958         (struct gl_list_impl_base): Add field 'dispose_fn'.
61959         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61960         argument.
61961         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61962         dispose_fn argument.
61963         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61964         dispose_fn on the dropped values.
61965         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61966         dispose_fn argument.
61967         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61968         dropped values.
61969         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61970         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61971         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61972         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61973         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61974         argument.
61975         (gl_tree_list_free): Call dispose_fn on the dropped values.
61976         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61977         the dropped values.
61978         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61979         Add dispose_fn argument.
61980         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61981         Call dispose_fn on the dropped values.
61982         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61983         Add dispose_fn argument.
61984         (gl_sublist_create): Initialize the 'dispose_fn' field.
61985         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61986         * tests/test-array_list.c (main): Update.
61987         * tests/test-carray_list.c (main): Update.
61988         * tests/test-avltree_list.c (main): Update.
61989         * tests/test-rbtree_list.c (main): Update.
61990         * tests/test-avltreehash_list.c (main): Update.
61991         * tests/test-rbtreehash_list.c (main): Update.
61992         * tests/test-linked_list.c (main): Update.
61993         * tests/test-linkedhash_list.c (main): Update.
61994         * tests/test-array_oset.c (main): Update.
61995
61996 2007-03-15  Bruno Haible  <bruno@clisp.org>
61997
61998         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
61999         (gl_oset_create_empty): Add dispose_fn argument.
62000         (struct gl_oset_implementation): Add dispose_fn argument to
62001         'create_empty' method.
62002         (struct gl_oset_impl_base): Add dispose_fn field.
62003         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62004         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62005         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62006         values.
62007         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62008         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62009         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62010         dropped value.
62011         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62012         dropped value.
62013         * tests/test-array_oset.c (main): Update.
62014         * tests/test-avltree_oset.c (main): Update.
62015         * tests/test-rbtree_oset.c (main): Update.
62016         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62017
62018 2007-03-13  Bruno Haible  <bruno@clisp.org>
62019
62020         * tests/test-stdbool.c (i): Update after last patch.
62021
62022 2007-03-12  Bruno Haible  <bruno@clisp.org>
62023
62024         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62025         the iswprint macro. Needed on Solaris 2.5.1.
62026
62027 2007-03-12  Bruno Haible  <bruno@clisp.org>
62028
62029         * tests/test-printf-frexp.c (main): Declare x as volatile.
62030
62031 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62032
62033         * doc/gnulib.texi (Build robot for gnulib): New section.
62034
62035 2007-03-12  Jim Meyering  <jim@meyering.net>
62036
62037         * build-aux/bootstrap: New file.
62038         * build-aux/bootstrap.conf: New file, from coreutils.
62039
62040 2007-03-11  Bruno Haible  <bruno@clisp.org>
62041
62042         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62043
62044 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62045
62046         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62047         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62048         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62049
62050 2007-03-11  Bruno Haible  <bruno@clisp.org>
62051
62052         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62053         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62054
62055 2007-03-11  Bruno Haible  <bruno@clisp.org>
62056
62057         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62058         formula. Needed for SunPRO C 5.0.
62059
62060 2007-03-11  Bruno Haible  <bruno@clisp.org>
62061
62062         * modules/long-options (Depends-on): Add getopt.
62063
62064 2007-03-11  Bruno Haible  <bruno@clisp.org>
62065
62066         * modules/modechange (Depends-on): Add stdbool.
62067
62068 2007-03-11  Bruno Haible  <bruno@clisp.org>
62069
62070         * modules/i-ring (Depends-on): Add stdbool.
62071
62072 2007-03-11  Bruno Haible  <bruno@clisp.org>
62073
62074         * modules/gc-des (Depends-on): Add stdbool.
62075
62076 2007-03-11  Bruno Haible  <bruno@clisp.org>
62077
62078         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62079
62080 2007-03-11  Bruno Haible  <bruno@clisp.org>
62081
62082         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62083
62084 2007-03-11  Bruno Haible  <bruno@clisp.org>
62085
62086         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62087
62088 2007-03-11  Bruno Haible  <bruno@clisp.org>
62089
62090         * lib/vasnprintf.c (sprintf): Undefine.
62091
62092 2007-03-11  Bruno Haible  <bruno@clisp.org>
62093
62094         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62095         initializers in SunPRO C and Compaq C compilers.
62096
62097 2007-03-11  Bruno Haible  <bruno@clisp.org>
62098
62099         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62100         decrementing code ANSI C compliant.
62101
62102 2007-03-11  Bruno Haible  <bruno@clisp.org>
62103
62104         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62105         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62106
62107 2007-03-11  Bruno Haible  <bruno@clisp.org>
62108
62109         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62110         <stdbool.h> substitute doesn't pass.
62111
62112 2007-03-11  Bruno Haible  <bruno@clisp.org>
62113
62114         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62115
62116 2007-03-11  Bruno Haible  <bruno@clisp.org>
62117
62118         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62119         script, for submission to autobuild.josefsson.org.
62120
62121 2007-03-10  Bruno Haible  <bruno@clisp.org>
62122
62123         * modules/canonicalize-lgpl-tests: New file.
62124         * tests/test-canonicalize-lgpl.sh: New file.
62125         * tests/test-canonicalize-lgpl.c: New file.
62126
62127         * modules/c-strcase-tests: New file.
62128         * tests/test-c-strcase.sh: New file.
62129         * tests/test-c-strcasecmp.c: New file.
62130         * tests/test-c-strncasecmp.c: New file.
62131
62132         * modules/atexit-tests: New file.
62133         * tests/test-atexit.sh: New file.
62134         * tests/test-atexit.c: New file.
62135
62136 2007-03-10  Bruno Haible  <bruno@clisp.org>
62137
62138         * tests/test-binary-io.sh: Use temporary filenames that are not so
62139         likely to clash with those of other tests (in a parallel make).
62140         * tests/test-binary-io.c: Likewise.
62141
62142 2007-03-10  Bruno Haible  <bruno@clisp.org>
62143
62144         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62145         fallback; use #error instead.
62146         Suggested by Simon Josefsson.
62147
62148 2007-03-10  Bruno Haible  <bruno@clisp.org>
62149
62150         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62151         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62152         first and the last.
62153
62154 2007-03-10  Bruno Haible  <bruno@clisp.org>
62155
62156         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62157
62158 2007-03-10  Bruno Haible  <bruno@clisp.org>
62159
62160         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62161         "make distcheck".
62162         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62163         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62164         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62165
62166 2007-03-10  Bruno Haible  <bruno@clisp.org>
62167
62168         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62169         variable.
62170         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62171         variable.
62172
62173 2007-03-09  Eric Blake  <ebb9@byu.net>
62174         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62175
62176         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62177         types are not being provided by gnulib.
62178         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62179         types are supported.
62180
62181 2007-03-10  Bruno Haible  <bruno@clisp.org>
62182
62183         * lib/stdio_.h (__attribute__): New macro.
62184         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62185         vsprintf): Specify __attribute__ __format__ for GCC.
62186         Suggested by Eric Blake.
62187
62188 2007-03-09  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/printf-posix-tests: New file.
62191         * tests/test-printf-posix.sh: New file.
62192         * tests/test-printf-posix.c: New file.
62193
62194         * modules/printf-posix: New file.
62195         * lib/printf.c: New file.
62196         * m4/printf-posix-rpl.m4: New file.
62197         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62198         REPLACE_PRINTF.
62199         * lib/stdio_.h (printf): New declaration.
62200         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62201         ____strfmon____): New macros.
62202         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62203         REPLACE_PRINTF.
62204
62205 2007-03-09  Bruno Haible  <bruno@clisp.org>
62206
62207         * tests/test-vasnprintf-posix2.sh: New file.
62208         * tests/test-vasnprintf-posix2.c: New file.
62209         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62210         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62211         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62212
62213         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62214         a locale dependent decimal point, rather than always '.'.
62215
62216 2007-03-09  Eric Blake  <ebb9@byu.net>
62217
62218         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62219         spite of platforms like Tandem/NSK that define it to -1.
62220
62221 2007-03-08  Bruno Haible  <bruno@clisp.org>
62222
62223         * modules/vprintf-posix-tests: New file.
62224         * tests/test-vprintf-posix.sh: New file.
62225         * tests/test-vprintf-posix.c: New file.
62226         * tests/test-printf-posix.h: New file.
62227
62228         * modules/vprintf-posix: New file.
62229         * lib/vprintf.c: New file.
62230         * m4/vprintf-posix.m4: New file.
62231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62232         REPLACE_VPRINTF.
62233         * lib/stdio_.h (vprintf): New declaration.
62234         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62235         REPLACE_VPRINTF.
62236
62237 2007-03-08  Bruno Haible  <bruno@clisp.org>
62238
62239         * modules/fprintf-posix-tests: New file.
62240         * tests/test-fprintf-posix.sh: New file.
62241         * tests/test-fprintf-posix.c: New file.
62242
62243         * modules/fprintf-posix: New file.
62244         * lib/fprintf.c: New file.
62245         * m4/fprintf-posix.m4: New file.
62246         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62247         REPLACE_FPRINTF.
62248         * lib/stdio_.h (fprintf): New declaration.
62249         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62250         REPLACE_FPRINTF.
62251
62252 2007-03-08  Bruno Haible  <bruno@clisp.org>
62253
62254         * modules/vfprintf-posix-tests: New file.
62255         * tests/test-vfprintf-posix.sh: New file.
62256         * tests/test-vfprintf-posix.c: New file.
62257         * tests/test-fprintf-posix.h: New file.
62258         * tests/test-fprintf-posix.out: New file.
62259
62260         * modules/vfprintf-posix: New file.
62261         * lib/vfprintf.c: New file.
62262         * m4/vfprintf-posix.m4: New file.
62263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62264         REPLACE_VFPRINTF.
62265         * lib/stdio_.h (vfprintf): New declaration.
62266         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62267         REPLACE_VFPRINTF.
62268
62269 2007-03-08  Bruno Haible  <bruno@clisp.org>
62270
62271         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62272
62273 2007-03-08  Bruno Haible  <bruno@clisp.org>
62274
62275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62276         instead of 'expr' invocations.
62277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62280         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62281         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62282         Suggested by Paul Eggert.
62283
62284 2007-03-08  Bruno Haible  <bruno@clisp.org>
62285
62286         * modules/fseterr-tests: New file.
62287         * tests/test-fseterr.c: New file.
62288
62289         * modules/fseterr: New file.
62290         * lib/fseterr.h: New file.
62291         * lib/fseterr.c: New file.
62292
62293 2007-03-08  Bruno Haible  <bruno@clisp.org>
62294
62295         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62296         * lib/getopt_.h: Likewise.
62297         * lib/mbswidth.h: Likewise.
62298         * lib/setenv.h: Likewise.
62299         * lib/vasnprintf.h: Likewise.
62300         * lib/vasprintf.h: Likewise.
62301         * lib/verror.h: Likewise.
62302         * lib/xsetenv.h: Likewise.
62303         * lib/xvasprintf.h: Likewise.
62304
62305 2007-03-08  Jim Meyering  <jim@meyering.net>
62306
62307         * users.txt: Add parted.
62308
62309         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62310
62311 2007-03-07  Bruno Haible  <bruno@clisp.org>
62312
62313         * m4/printf.m4: Make the shell script snippets copy&pastable.
62314
62315 2007-03-02  Bruno Haible  <bruno@clisp.org>
62316
62317         * lib/netinet_in_.h: New file.
62318         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62319         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62320         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62321         (Depends-on): Add absolute-header.
62322         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62323         into netinet/in.h.
62324
62325 2007-03-03  Bruno Haible  <bruno@clisp.org>
62326
62327         * lib/sys_select_.h: New file.
62328         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62329         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62330         * modules/sys_select (Files): Add lib/sys_select_.h.
62331         (Depends-on): Add absolute-header.
62332         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62333         into sys/select.h.
62334
62335 2007-03-02  Bruno Haible  <bruno@clisp.org>
62336
62337         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62338         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62339         values.
62340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62341         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62342         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62343         * modules/sys_socket (Depends-on): Add absolute-header.
62344         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62345         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62346         (Include): Remove requirement of inclusion of <sys/types.h>.
62347
62348 2007-03-02  Bruno Haible  <bruno@clisp.org>
62349
62350         * lib/byteswap_.h (bswap_32): Fix formula.
62351
62352 2007-03-06  Bruno Haible  <bruno@clisp.org>
62353
62354         * modules/sprintf-posix-tests: New file.
62355         * tests/test-sprintf-posix.c: New file.
62356
62357         * modules/sprintf-posix: New file.
62358         * lib/sprintf.c: New file.
62359         * m4/sprintf-posix.m4: New file.
62360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62361         REPLACE_SPRINTF.
62362         * lib/stdio_.h (sprintf): New declaration.
62363         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62364         REPLACE_SPRINTF.
62365
62366 2007-03-06  Bruno Haible  <bruno@clisp.org>
62367
62368         * modules/vsprintf-posix-tests: New file.
62369         * tests/test-vsprintf-posix.c: New file.
62370         * tests/test-sprintf-posix.h: New file.
62371
62372         * modules/vsprintf-posix: New file.
62373         * lib/vsprintf.c: New file.
62374         * m4/vsprintf-posix.m4: New file.
62375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62376         REPLACE_VSPRINTF.
62377         * lib/stdio_.h (vsprintf): New declaration.
62378         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62379         REPLACE_VSPRINTF.
62380
62381 2007-03-06  Bruno Haible  <bruno@clisp.org>
62382
62383         * modules/vsnprintf (Depend-on): Remove minmax.
62384
62385 2007-03-06  Bruno Haible  <bruno@clisp.org>
62386
62387         * modules/snprintf-posix-tests: New file.
62388         * tests/test-snprintf-posix.c: New file.
62389
62390         * modules/snprintf-posix: New file.
62391         * m4/snprintf-posix.m4: New file.
62392         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62393         gl_FUNC_SNPRINTF.
62394         (gl_FUNC_SNPRINTF): Invoke it.
62395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62396         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62397         is set.
62398         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62399
62400 2007-03-06  Bruno Haible  <bruno@clisp.org>
62401
62402         * modules/vsnprintf-posix-tests: New file.
62403         * tests/test-vsnprintf-posix.c: New file.
62404         * tests/test-snprintf-posix.h: New file.
62405
62406         * modules/vsnprintf-posix: New file.
62407         * m4/vsnprintf-posix.m4: New file.
62408         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62409         gl_FUNC_VSNPRINTF.
62410         (gl_FUNC_VSNPRINTF): Invoke it.
62411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62412         * lib/stdio_.h (vsnprintf): Define as a replacement if
62413         REPLACE_VSNPRINTF is set.
62414         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62415
62416 2007-03-06  Bruno Haible  <bruno@clisp.org>
62417
62418         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62419         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62420
62421 2007-03-06  Bruno Haible  <bruno@clisp.org>
62422
62423         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62424         (asinl): Declare also if HAVE_DECL_ASINL is set.
62425         (atanl): Declare also if HAVE_DECL_ATANL is set.
62426         (ceill): Declare also if HAVE_DECL_CEILL is set.
62427         (cosl): Declare also if HAVE_DECL_COSL is set.
62428         (expl): Declare also if HAVE_DECL_EXPL is set.
62429         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62430         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62431         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62432         (logl): Declare also if HAVE_DECL_LOGL is set.
62433         (sinl): Declare also if HAVE_DECL_SINL is set.
62434         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62435         (tanl): Declare also if HAVE_DECL_TANL is set.
62436         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62438         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62439         declaration of frexpl, ldexpl.
62440         * modules/printf-frexpl (Depends-on): Add math.
62441         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62442
62443 2007-03-05  Bruno Haible  <bruno@clisp.org>
62444
62445         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62446         frexpl and ldexpl are declared.
62447         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62448
62449 2007-03-05  Bruno Haible  <bruno@clisp.org>
62450
62451         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62452         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62453
62454 2007-03-05  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/stdio_.h: Include <stddef.h>.
62457
62458 2007-03-05  Bruno Haible  <bruno@clisp.org>
62459
62460         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62461
62462 2007-03-05  Bruno Haible  <bruno@clisp.org>
62463
62464         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62465         NetBSD 4, from Ralf Wildenhues.
62466
62467 2007-03-04  Bruno Haible  <bruno@clisp.org>
62468
62469         * lib/vasprintf.h: Update #if logic for the case when the functions
62470         exist but are overridden.
62471
62472 2007-03-04  Bruno Haible  <bruno@clisp.org>
62473
62474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62475         implementations: glibc-2.4 and MacOS X 10.3.
62476         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62477         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62478         * tests/test-vasprintf-posix.c (test_function): Likewise.
62479
62480 2007-03-04  Bruno Haible  <bruno@clisp.org>
62481
62482         * modules/vasprintf-posix-tests: New file.
62483         * tests/test-vasprintf-posix.c: New file.
62484
62485         * modules/vasprintf-posix: New file.
62486         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62487         defined.
62488         * m4/vasprintf-posix.m4: New file.
62489         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62490         gl_FUNC_VASPRINTF.
62491         (gl_FUNC_VASPRINTF): Invoke it.
62492         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62493         here.
62494         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62495
62496 2007-03-04  Bruno Haible  <bruno@clisp.org>
62497
62498         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62499         REPLACE_GETTIMEOFDAY.
62500         * modules/sys_time (Makefile.am): Likewise.
62501         * m4/sys_time_h.m4: Likewise.
62502         * m4/gettimeofday.m4: Likewise.
62503
62504 2007-03-04  Bruno Haible  <bruno@clisp.org>
62505
62506         * modules/vasnprintf-posix-tests: New file.
62507         * tests/test-vasnprintf-posix.c: New file.
62508
62509         * modules/vasnprintf-posix: New file.
62510         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62511         printf-frexpl.h.
62512         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62513         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62514         REPLACE_VASNPRINTF is defined.
62515         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62516         gl_FUNC_VASNPRINTF.
62517         (gl_FUNC_VASNPRINTF): Invoke it.
62518         * m4/vasnprintf-posix.m4: New file.
62519         * m4/printf.m4: New file.
62520
62521 2007-03-04  Bruno Haible  <bruno@clisp.org>
62522
62523         Compile progreloc.c only if --enable-relocatable is specified.
62524         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62525         if --enable-relocatable was specified.
62526         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62527         lib_SOURCES.
62528
62529 2007-03-04  Jim Meyering  <jim@meyering.net>
62530
62531         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62532         Use it consistently, rather than enumerating errno constants.
62533
62534 2007-03-04  Bruno Haible  <bruno@clisp.org>
62535
62536         * modules/xvasprintf-tests: New file.
62537         * tests/test-xvasprintf.c: New file.
62538
62539         * modules/vasprintf-tests: New file.
62540         * tests/test-vasprintf.c: New file.
62541
62542         * modules/vasnprintf-tests: New file.
62543         * tests/test-vasnprintf.c: New file.
62544
62545         * modules/vsnprintf-tests: New file.
62546         * tests/test-vsnprintf.c: New file.
62547
62548         * modules/snprintf-tests: New file.
62549         * tests/test-snprintf.c: New file.
62550
62551 2007-03-04  Bruno Haible  <bruno@clisp.org>
62552
62553         Compile relocatable.c only if --enable-relocatable is specified.
62554         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62555         gl_RELOCATABLE_LIBRARY.
62556         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62557         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62558         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62559         gl_RELOCATABLE_LIBRARY.
62560         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62561         (Makefile.am): Remove lib_SOURCES.
62562         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62563         gl_RELOCATABLE_LIBRARY.
62564         (Makefile.am): Remove lib_SOURCES.
62565         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62566         always.
62567         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62568         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62569
62570 2007-03-04  Bruno Haible  <bruno@clisp.org>
62571
62572         * modules/argmatch-tests: New file.
62573         * tests/test-argmatch.c: New file.
62574
62575         * tests/test-allocsa.c (main): Halve the number of loop runs.
62576
62577         * modules/alloca-opt-tests: New file.
62578         * tests/test-alloca-opt.c: New file.
62579
62580 2007-03-04  Jim Meyering  <jim@meyering.net>
62581
62582         Work around difference between Linux ACLs and Solaris 10 ZFS.
62583         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62584         for EINVAL.
62585
62586 2007-03-03  Bruno Haible  <bruno@clisp.org>
62587
62588         * modules/relocatable-prog (Depends-on): Add back progreloc's
62589         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62590
62591 2007-03-03  Bruno Haible  <bruno@clisp.org>
62592
62593         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62594         * modules/relocatable-lib: New file.
62595
62596 2007-03-03  Bruno Haible  <bruno@clisp.org>
62597
62598         * modules/relocatable-prog: Renamed from modules/relocatable.
62599         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62600
62601 2007-03-03  Bruno Haible  <bruno@clisp.org>
62602
62603         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62604         m4/relocatable-lib.m4.
62605         (Depends-on): Remove 'relocatable'.
62606         (configure.ac): Add gl_RELOCATABLE_NOP.
62607
62608 2007-03-03  Bruno Haible  <bruno@clisp.org>
62609
62610         * modules/relocatable-prog-wrapper: New file.
62611         * modules/relocatable (Depends-on): Add it. Remove all other
62612         dependencies except progname.
62613         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62614
62615         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62616         (gl_FUNC_STRERROR): Nop.
62617         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62618
62619         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62620         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62621
62622         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62623         (gl_FUNC_READLINK): Update.
62624
62625         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62626
62627 2007-03-03  Bruno Haible  <bruno@clisp.org>
62628
62629         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62630         * modules/xreadlink (Depends-on): Add unistd.
62631         * modules/xreadlink-with-size (Depends-on): Likewise.
62632
62633 2007-03-03  Bruno Haible  <bruno@clisp.org>
62634
62635         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62636         extracted from gt_FUNC_SETENV.
62637         (gt_FUNC_SETENV): Remove macro.
62638         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62639         remove gt_FUNC_SETENV.
62640
62641 2007-03-03  Bruno Haible  <bruno@clisp.org>
62642
62643         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62644         ENABLE_RELOCATABLE here.
62645         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62646
62647 2007-03-03  Bruno Haible  <bruno@clisp.org>
62648
62649         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62650         * tests/test-rbtreehash_list.c: Include progname.h.
62651         (main): Call set_program_name.
62652
62653         * modules/rbtree-oset-tests (Depends-on): Add progname.
62654         * tests/test-rbtree_oset.c: Include progname.h.
62655         (main): Call set_program_name.
62656
62657         * modules/rbtree-list-tests (Depends-on): Add progname.
62658         * tests/test-rbtree_list.c: Include progname.h.
62659         (main): Call set_program_name.
62660
62661         * modules/linked-list-tests (Depends-on): Add progname.
62662         * tests/test-linked_list.c: Include progname.h.
62663         (main): Call set_program_name.
62664
62665 2007-03-03  Bruno Haible  <bruno@clisp.org>
62666
62667         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62668         All uses of __restrict changed to _Restrict_.
62669         * lib/glob_.h (__restrict): Remove macro.
62670
62671 2007-03-02  Bruno Haible  <bruno@clisp.org>
62672
62673         * modules/gettext (configure.ac): Require gettext infrastructure
62674         from version 0.16.1.
62675
62676 2007-03-02  Bruno Haible  <bruno@clisp.org>
62677
62678         * modules/linkedhash-list-tests (Depends-on): Add progname.
62679         * tests/test-linkedhash_list.c: Include progname.h.
62680         (main): Call set_program_name.
62681
62682         * modules/carray-list-tests (Depends-on): Add progname.
62683         * tests/test-carray_list.c: Include progname.h.
62684         (main): Call set_program_name.
62685
62686         * modules/avltreehash-list-tests (Depends-on): Add progname.
62687         * tests/test-avltreehash_list.c: Include progname.h.
62688         (main): Call set_program_name.
62689
62690         * modules/avltree-oset-tests (Depends-on): Add progname.
62691         * tests/test-avltree_oset.c: Include progname.h.
62692         (main): Call set_program_name.
62693
62694         * modules/avltree-list-tests (Depends-on): Add progname.
62695         * tests/test-avltree_list.c: Include progname.h.
62696         (main): Call set_program_name.
62697
62698         * modules/array-oset-tests (Depends-on): Add progname.
62699         * tests/test-array_oset.c: Include progname.h.
62700         (main): Call set_program_name.
62701
62702         * modules/array-list-tests (Depends-on): Add progname.
62703         * tests/test-array_list.c: Include progname.h.
62704         (main): Call set_program_name.
62705
62706         * modules/argp-tests (Depends-on): Add progname.
62707         * tests/test-argp.c: Include argp.h first. Include progname.h.
62708         (main): Call set_program_name.
62709
62710 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62711
62712         * doc/gnulib-tool.texi (Initial import): Reword description of
62713         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62714         limited effect even if defined after the first system include.
62715
62716 2007-03-01  Bruno Haible  <bruno@clisp.org>
62717
62718         * build-aux/config.libpath: Update to libtool-1.5.22.
62719         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62720
62721 2007-03-01  Bruno Haible  <bruno@clisp.org>
62722
62723         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62724         foo_CFLAGS.
62725         Reported by Ralf Wildenhues.
62726
62727 2007-03-01  Bruno Haible  <bruno@clisp.org>
62728
62729         * build-aux/install-reloc: Remove object files left over by some
62730         compilers.
62731         Reported by Ralf Wildenhues.
62732
62733 2007-03-01  Bruno Haible  <bruno@clisp.org>
62734
62735         * build-aux/install-reloc: Break long lines.
62736
62737 2007-03-01  Bruno Haible  <bruno@clisp.org>
62738
62739         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62740         Reported by Ralf Wildenhues.
62741
62742 2007-03-01  Bruno Haible  <bruno@clisp.org>
62743
62744         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62745         include ordering constraints.
62746
62747 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62748
62749         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62750         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62751         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62752         as another example.
62753         * lib/time_.h: Fix misspelling.
62754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62755         Require gl_HEADER_TIME_H_DEFAULTS.
62756         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62757         * m4/time_r.m4 (gl_TIME_R): Likewise.
62758         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62759
62760 2007-03-01  Bruno Haible  <bruno@clisp.org>
62761
62762         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62763         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62764
62765 2007-03-01  Jim Meyering  <jim@meyering.net>
62766
62767         * modules/xreadlink (Maintainer): Add my name.
62768         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62769
62770 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62771             Bruno Haible  <bruno@clisp.org>
62772
62773         * build-aux/install-reloc: Compile also c-ctype.c.
62774         * build-aux/relocatable.sh.in: New file.
62775         * doc/relocatable.texi: New file.
62776         * doc/relocatable-maint.texi: New file.
62777         * doc/gnulib.texi: Include relocatable-maint.texi.
62778         * lib/progreloc.c: Include unistd.h unconditionally.
62779         * lib/relocwrapper.c: Include unistd.h unconditionally.
62780         Include c-ctype.h.
62781         (add_dotbin): Use c_tolower.
62782         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62783         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62784         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62785         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62786         to m4/relocatable-lib.m4.
62787         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62788         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62789         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62790         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62791         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62792         * modules/relocatable: New file.
62793         * modules/relocatable-lib: New file.
62794         * modules/relocatable-script: New file.
62795
62796 2007-02-28  Bruno Haible  <bruno@clisp.org>
62797
62798         Import --enable-relocatable infrastructure.
62799         * build-aux/config.libpath: New file, from GNU gettext.
62800         * build-aux/install-reloc: New file, from GNU gettext.
62801         * build-aux/reloc-ldflags: New file, from GNU gettext.
62802         * lib/relocatable.h: New file, from GNU gettext.
62803         * lib/relocatable.c: New file, from GNU gettext.
62804         * lib/relocwrapper.c: New file, from GNU gettext.
62805         * m4/relocatable.m4: New file, from GNU gettext.
62806
62807 2007-02-28  Bruno Haible  <bruno@clisp.org>
62808
62809         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62810
62811         * modules/xreadlink: New file, from GNU gettext with modifications.
62812         * lib/xreadlink.c: New file, from GNU gettext.
62813         * lib/xreadlink.h: Add comments.
62814         (xreadlink): New declaration.
62815
62816         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62817         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62818         lib/xreadlink-with-size.c.
62819         (configure.ac): Remove gl_XREADLINK invocation.
62820         (Makefile.am): Augment lib_SOURCES.
62821         * m4/xreadlink.m4: Remove file.
62822         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62823         (xreadlink_with_size): Renamed from xreadink.
62824         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62825         * modules/canonicalize (Depends-on): Replace xreadlink with
62826         xreadlink-with-size.
62827         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62828
62829 2007-02-25  Jim Meyering  <jim@meyering.net>
62830
62831         * build-aux/announce-gen: When complaining about excess arguments,
62832         list them.
62833
62834 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62835
62836         * README: Document signed integer overflow situation more
62837         accurately.
62838
62839 2007-02-25  Bruno Haible  <bruno@clisp.org>
62840
62841         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62842         'a' or 'A' conversion.
62843
62844 2007-02-25  Bruno Haible  <bruno@clisp.org>
62845
62846         * modules/filename: Renamed from modules/pathname.
62847         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62848         lib/concatpath.c with lib/concat-filename.c.
62849         (Makefile.am): Update.
62850         (Include): Replace pathname.h with filename.h.
62851         * lib/filename.h: Renamed from lib/pathname.h.
62852         (concatenated_filename): Renamed from concatenated_pathname.
62853         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62854         (concatenated_filename): Renamed from concatenated_pathname.
62855         * lib/findprog.c: Include filename.h instead of pathname.h.
62856         (find_in_path): Update.
62857         * lib/javacomp.c: Include filename.h instead of pathname.h.
62858         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62859         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62860         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62861         is_oldgcj_14_13_usable, is_javac_usable): Update.
62862         * lib/javaexec.c: Include filename.h instead of pathname.h.
62863         (execute_java_class): Update.
62864         * modules/findprog: Update.
62865         * modules/javacomp: Update.
62866         * modules/javaexec: Update.
62867         * MODULES.html.sh (File system functions): Add 'filename', remove
62868         'pathname'.
62869
62870 2007-02-25  Bruno Haible  <bruno@clisp.org>
62871
62872         * modules/printf-frexpl-tests: New file.
62873         * tests/test-printf-frexpl.c: New file.
62874
62875         * modules/printf-frexpl: New file.
62876         * lib/printf-frexpl.h: New file.
62877         * lib/printf-frexpl.c: New file.
62878         * m4/printf-frexpl.m4: New file.
62879
62880 2007-02-25  Bruno Haible  <bruno@clisp.org>
62881
62882         * modules/printf-frexp-tests: New file.
62883         * tests/test-printf-frexp.c: New file.
62884
62885         * modules/printf-frexp: New file.
62886         * lib/printf-frexp.h: New file.
62887         * lib/printf-frexp.c: New file.
62888         * m4/printf-frexp.m4: New file.
62889
62890 2007-02-25  Bruno Haible  <bruno@clisp.org>
62891
62892         Assume automake >= 1.10 for the tests.
62893         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62894         * modules/arctwo-tests: Likewise.
62895         * modules/argp-tests: Likewise.
62896         * modules/avltree-list-tests: Likewise.
62897         * modules/avltree-oset-tests: Likewise.
62898         * modules/avltreehash-list-tests: Likewise.
62899         * modules/carray-list-tests: Likewise.
62900         * modules/crc-tests: Likewise.
62901         * modules/des-tests: Likewise.
62902         * modules/gc-arcfour-tests: Likewise.
62903         * modules/gc-arctwo-tests: Likewise.
62904         * modules/gc-des-tests: Likewise.
62905         * modules/gc-hmac-md5-tests: Likewise.
62906         * modules/gc-hmac-sha1-tests: Likewise.
62907         * modules/gc-md2-tests: Likewise.
62908         * modules/gc-md4-tests: Likewise.
62909         * modules/gc-md5-tests: Likewise.
62910         * modules/gc-pbkdf2-sha1-tests: Likewise.
62911         * modules/gc-rijndael-tests: Likewise.
62912         * modules/gc-sha1-tests: Likewise.
62913         * modules/gc-tests: Likewise.
62914         * modules/getaddrinfo-tests: Likewise.
62915         * modules/hmac-md5-tests: Likewise.
62916         * modules/hmac-sha1-tests: Likewise.
62917         * modules/linked-list-tests: Likewise.
62918         * modules/linkedhash-list-tests: Likewise.
62919         * modules/lock-tests: Likewise.
62920         * modules/md2-tests: Likewise.
62921         * modules/md4-tests: Likewise.
62922         * modules/md5-tests: Likewise.
62923         * modules/rbtree-list-tests: Likewise.
62924         * modules/rbtree-oset-tests: Likewise.
62925         * modules/rbtreehash-list-tests: Likewise.
62926         * modules/read-file-tests: Likewise.
62927         * modules/rijndael-tests: Likewise.
62928         * modules/stdint-tests: Likewise.
62929         * modules/tls-tests: Likewise.
62930
62931 2007-02-24  Bruno Haible  <bruno@clisp.org>
62932
62933         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62934         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62935         function; instead check whether isnan with a double argument links.
62936         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62937         function; instead check whether isnan with a 'long double' argument
62938         links.
62939         Reported by Eric Blake <ebb9@byu.net>.
62940
62941 2007-02-24  Bruno Haible  <bruno@clisp.org>
62942
62943         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62944         defined.
62945         * lib/isnanl.c: Remove all code. Just include isnan.c.
62946         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62947
62948 2007-02-25  Jim Meyering  <jim@meyering.net>
62949
62950         Avoid conflicting types for 'unsetenv' on FreeBSD.
62951         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62952         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62953         in stdlib.h.
62954
62955 2007-02-24  Bruno Haible  <bruno@clisp.org>
62956
62957         * modules/isnanl-nolibm-tests: New file.
62958         * tests/test-isnanl.c: New file.
62959
62960         * modules/isnanl-nolibm: New file.
62961         * lib/isnanl.h: New file.
62962         * lib/isnanl.c: New file.
62963         * m4/isnanl.m4: New file.
62964
62965 2007-02-24  Bruno Haible  <bruno@clisp.org>
62966
62967         * modules/isnan-nolibm-tests: New file.
62968         * tests/test-isnan.c: New file.
62969
62970         * modules/isnan-nolibm: New file.
62971         * lib/isnan.h: New file.
62972         * lib/isnan.c: New file.
62973         * m4/isnan.m4: New file.
62974
62975 2007-02-24  Bruno Haible  <bruno@clisp.org>
62976
62977         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62978         assume that an exponent fits in 20 bits.
62979
62980 2007-02-24  Jim Meyering  <jim@meyering.net>
62981
62982         * m4/regex.m4: Update the description of the configure-time option,
62983         --without-included-regex, to state accurately what the defaults are,
62984         and perhaps to give people an idea why using this option is risky.
62985
62986 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62987
62988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
62989         loops on small arguments.  This attempts to avoid the problem
62990         Bruno Haible reported for AIX 4.3.2 in
62991         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
62992
62993 2007-02-23  Bruno Haible  <bruno@clisp.org>
62994
62995         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
62996         Needed for help2man.
62997
62998 2007-02-23  Karl Berry  <karl@gnu.org>
62999
63000         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63001         exists, foo.h should be cvs-ignored, not committed.
63002
63003 2007-02-23  Eric Blake  <ebb9@byu.net>
63004
63005         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63006         * lib/stat-time.h (includes): Likewise.
63007         * lib/utimecmp.c (includes): Likewise.
63008         * lib/utimens.h (includes): Likewise.
63009         * lib/getdate.y (includes): Also include "timespec.h" for use
63010         internal to the module.
63011         * modules/utimens (Depends-on): Revert yesterday's patch.
63012         * modules/nanosleep (Depends-on): Add missing dependency.
63013
63014 2007-02-22  Bruno Haible  <bruno@clisp.org>
63015
63016         * lib/glob.c: Don't include getlogin_r.h.
63017
63018 2007-02-22  Jim Meyering  <jim@meyering.net>
63019
63020         * modules/utimens (Depends-on): Add timespec, required for
63021         utimens.h's inclusion of timespec.h.
63022
63023 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63024
63025         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63026         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63027         Schwab in
63028         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63029         I'll try to think of a better way to fix the Solaris problem.
63030
63031         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63032         like glibc; on Solaris 10, it fails with errno == EINVAL.
63033         POSIX says the behavior is unspecified if the first argument is NULL,
63034         so play it safe and never pass NULL to the system getcwd.
63035
63036 2007-02-21  Jim Meyering  <jim@meyering.net>
63037
63038         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63039         of gettimeofday.  It would conflict with the one now always
63040         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63041         an IRIX 6.5 build failure.
63042
63043 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63044
63045         Minor fixups to port to Solaris 10 with Sun C 5.8.
63046         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63047         * modules/getcwd (Depends-on): Add dirfd.
63048         * lib/putenv.c (putenv): #undef it.
63049         (rpl_putenv): New decl.
63050         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63051
63052 2007-02-20  Bruno Haible  <bruno@clisp.org>
63053
63054         * modules/stdio-tests: New file.
63055         * tests/test-stdio.c: New file.
63056
63057         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63058         (Depends-on): Add stdio.
63059         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63060         (Include): Use <stdio.h> instead of vsnprintf.h.
63061         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63062         HAVE_DECL_VSNPRINTF.
63063         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63064
63065         * modules/snprintf (Files): Remove lib/snprintf.h.
63066         (Depends-on): Add stdio.
63067         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63068         (Include): Use <stdio.h> instead of snprintf.h.
63069         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63070         HAVE_DECL_SNPRINTF.
63071         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63072         * lib/getaddrinfo.c: Likewise.
63073
63074         * modules/stdio: New file.
63075         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63076         * lib/snprintf.h: Remove file.
63077         * lib/vsnprintf.h: Remove file.
63078         * lib/.cppi-disable: Remove snprintf.h.
63079         * m4/stdio_h.m4: New file.
63080         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63081
63082 2007-02-20  Jim Meyering  <jim@meyering.net>
63083
63084         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63085         used by e.g., mingw.  From Bruno Haible.
63086
63087 2007-02-19  Bruno Haible  <bruno@clisp.org>
63088
63089         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63090         warnings.
63091         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63092
63093 2007-02-19  Bruno Haible  <bruno@clisp.org>
63094
63095         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63096         from mingw users.
63097
63098 2007-02-19  Bruno Haible  <bruno@clisp.org>
63099
63100         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63101         warnings.
63102         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63103
63104 2007-02-19  Jim Meyering  <jim@meyering.net>
63105
63106         Don't use FD after a successful "fdopendir (fd)".
63107         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63108         Reset it by calling dirfd on the just-obtained DIR*.
63109
63110         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63111         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63112
63113 2007-02-18  Bruno Haible  <bruno@clisp.org>
63114
63115         * lib/readlink.c: Include <unistd.h>.
63116         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63117         HAVE_READLINK.
63118         * modules/readlink (Depends-on): Add unistd.
63119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63120         (Include): Add <unistd.h>.
63121
63122         * lib/getlogin_r.h: Remove file.
63123         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63124         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63125         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63126         HAVE_DECL_GETLOGIN_R.
63127         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63129         (Include): Use <unistd.h> instead of getlogin_r.h.
63130
63131         * lib/getcwd.h: Remove file.
63132         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63133         * lib/xgetcwd.c: Likewise.
63134         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63135         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63136         * modules/getcwd (Files): Remove lib/getcwd.h.
63137         (Depends-on): Add unistd.
63138         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63139         (Include): Use <unistd.h> instad of getcwd.h.
63140
63141         * lib/ftruncate.c: Include <unistd.h> first.
63142         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63143         Set HAVE_FTRUNCATE.
63144         * modules/ftruncate (Depends-on): Add unistd.
63145         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63146
63147         * lib/fchdir.c: Include <unistd.h> first.
63148         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63150         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63151         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63152         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63153
63154         * lib/dup2.c: Include <unistd.h> first.
63155         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63156         HAVE_DUP2.
63157         * modules/dup2 (Depends-on): Add unistd.
63158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63159
63160         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63161         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63162         REPLACE_CHOWN. Don't define chown as a macro here.
63163         * modules/chown (Depends-on): Add unistd.
63164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63165
63166         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63167         Add definition for GL_LINK_WARNING.
63168         (chown, dup2): New declarations.
63169         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63170         link warning.
63171         (ftruncate): New declaration.
63172         (getcwd): New declaration, taken from old getcwd.h.
63173         (getlogin_r): New declaration, taken from old getlogin_r.h.
63174         (readlink): New declaration.
63175         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63176         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63177         (gl_PREREQ_UNISTD): Remove macro.
63178         (gl_UNISTD_MODULE_INDICATOR): New macro.
63179         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63180         many new variables. Don't set UNISTD_H.
63181         * modules/unistd (Description): Change.
63182         (Depends-on): Add link-warning.
63183         (configure.ac): Update.
63184         (Makefile.am): Create unistd.h always. Substitute many new variables
63185         into it.
63186
63187 2007-02-18  Bruno Haible  <bruno@clisp.org>
63188
63189         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63190         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63191         HAVE_GETSUBOPT.
63192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63193         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63194         * lib/getsubopt.h: Remove file.
63195         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63196         (Depends-on): Add stdlib.
63197         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63198         (Includes): Use <stdlib.h> instead of getsubopt.h.
63199         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63200         Set HAVE_GETSUBOPT.
63201         * lib/getsubopt.c: Don't include getsubopt.h.
63202
63203 2007-02-18  Bruno Haible  <bruno@clisp.org>
63204
63205         * modules/fchdir (Depends-on): Add dup2.
63206
63207 2007-02-18  Bruno Haible  <bruno@clisp.org>
63208
63209         * lib/stdlib_.h: Handle glibc's special invocation convention
63210         specially.
63211
63212 2007-02-18  Bruno Haible  <bruno@clisp.org>
63213
63214         * modules/stdlib-tests: New file.
63215         * tests/test-stdlib.c: New file.
63216
63217         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63218         (Depends-on): Add stdlib.
63219         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63220         (Includes): Use <stdlib.h> instead of mkstemp.h.
63221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63222         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63223         * lib/mkstemp.c: Don't include mkstemp.h.
63224         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63225         * lib/stdlib--.h: Don't include mkstemp.h.
63226
63227         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63228         (Depends-on): Add stdlib.
63229         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63230         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63231         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63232         HAVE_MKDTEMP.
63233         * lib/mkdtemp.c: Don't include mkdtemp.h.
63234         * lib/clean-temp.c: Don't include mkdtemp.h.
63235
63236         * modules/exit (Files): Remove lib/exit.h.
63237         (Depends-on): Add stdlib.
63238         (Makefile.am): Remove lib_SOURCES.
63239         (Include): Use <stdlib.h> instead of exit.h.
63240         * lib/argmatch.c: Don't include exit.h.
63241         * lib/execute.c: Likewise.
63242         * lib/pagealign_alloc.c: Likewise.
63243         * lib/pipe.c: Likewise.
63244         * lib/wait-process.c: Likewise.
63245         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63246         * lib/exitfail.c: Likewise.
63247         * lib/savewd.c: Likewise.
63248         * lib/xsetenv.c: Likewise.
63249
63250         * modules/stdlib: New file.
63251         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63252         and extra comments about mkstemp().
63253         * lib/exit.h: Remove file.
63254         * lib/mkdtemp.h: Remove file.
63255         * lib/mkstemp.h: Remove file.
63256         * m4/stdlib_h.m4: New file.
63257         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63258
63259 2007-02-18  Bruno Haible  <bruno@clisp.org>
63260
63261         * modules/math-tests: New file.
63262         * tests/test-math.c: New file.
63263
63264         * modules/math: New file.
63265         * modules/mathl (Files): Remove lib/mathl.h.
63266         (Depends-on): Add math.
63267         (Makefile.am): Don't mention mathl.h.
63268         (Include): Use <math.h> instead of mathl.h.
63269         * lib/math_.h: New file.
63270         * lib/mathl.h: Remove file.
63271         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63272         mathl.h.
63273         * lib/asinl.c: Likewise.
63274         * lib/atanl.c: Likewise.
63275         * lib/ceill.c: Likewise.
63276         * lib/cosl.c: Likewise.
63277         * lib/expl.c: Likewise.
63278         * lib/floorl.c: Likewise.
63279         * lib/frexpl.c: Likewise.
63280         * lib/ldexpl.c: Likewise.
63281         * lib/logl.c: Likewise.
63282         * lib/sincosl.c: Likewise.
63283         * lib/sinl.c: Likewise.
63284         * lib/sqrtl.c: Likewise.
63285         * lib/tanl.c: Likewise.
63286         * lib/trigl.c: Likewise.
63287         * m4/math_h.m4: New file.
63288         * MODULES.html.sh (Mathematics): Add math.
63289
63290 2007-02-17  Bruno Haible  <bruno@clisp.org>
63291
63292         * modules/wctype-tests: New file.
63293         * tests/test-wctype.c: New file.
63294
63295         * modules/wchar-tests: New file.
63296         * tests/test-wchar.c: New file.
63297
63298         * modules/unistd-tests: New file.
63299         * tests/test-unistd.c: New file.
63300
63301         * modules/time-tests: New file.
63302         * tests/test-time.c: New file.
63303
63304         * modules/sysexits-tests: New file.
63305         * tests/test-sysexits.c: New file.
63306
63307         * modules/sys_time-tests: New file.
63308         * tests/test-sys_time.c: New file.
63309
63310         * modules/sys_stat-tests: New file.
63311         * tests/test-sys_stat.c: New file.
63312
63313         * modules/sys_socket-tests: New file.
63314         * tests/test-sys_socket.c: New file.
63315
63316         * modules/sys_select-tests: New file.
63317         * tests/test-sys_select.c: New file.
63318
63319         * modules/string-tests: New file.
63320         * tests/test-string.c: New file.
63321
63322         * modules/stdbool-tests: New file.
63323         * tests/test-stdbool.c: New file.
63324
63325         * modules/netinet_in-tests: New file.
63326         * tests/test-netinet_in.c: New file.
63327
63328         * modules/inttypes-tests: New file.
63329         * tests/test-inttypes.c: New file.
63330
63331         * modules/fcntl-tests: New file.
63332         * tests/test-fcntl.c: New file.
63333
63334         * modules/byteswap-tests: New file.
63335         * tests/test-byteswap.c: New file.
63336
63337         * modules/arpa_inet-tests: New file.
63338         * tests/test-arpa_inet.c: New file.
63339
63340 2007-02-17  Bruno Haible  <bruno@clisp.org>
63341
63342         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63343         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63344         if the corresponding module is not enabled. Emit link warnings if
63345         the function is used nevertheless.
63346         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63347         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63348         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63349         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63350         * modules/inttypes (Depends-on): Add link-warning.
63351         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63352         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63353         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63354         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63355         * modules/imaxdiv (configure.ac): Likewise.
63356         * modules/strtoimax (configure.ac): Likewise.
63357         * modules/strtoumax (configure.ac): Likewise.
63358
63359 2007-02-17  Bruno Haible  <bruno@clisp.org>
63360
63361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63362         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63363         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63364         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63365
63366 2007-02-17  Bruno Haible  <bruno@clisp.org>
63367
63368         * modules/link-warning: New file.
63369         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63370         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63371         * modules/string (Depends-on): Add link-warning.
63372         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63373         string.h.
63374         * MODULES.html.sh (Support for building libraries and executables): Add
63375         link-warning.
63376
63377 2007-02-17  Bruno Haible  <bruno@clisp.org>
63378
63379         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63380         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63381         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63382         long lines.
63383
63384 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63385             Bruno Haible  <bruno@clisp.org>
63386
63387         * modules/tmpfile: New file.
63388         * lib/tmpfile.c: New file.
63389         * m4/tmpfile.m4: New file.
63390         * MODULES.html.sh (func_all_modules): New section "Input/output".
63391
63392 2007-02-15  Bruno Haible  <bruno@clisp.org>
63393
63394         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63395         (supports_delete_on_close): New function.
63396         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63397
63398 2007-02-14  Bruno Haible  <bruno@clisp.org>
63399
63400         * modules/mbspcasecmp-tests: New file.
63401         * tests/test-mbspcasecmp.sh: New file.
63402         * tests/test-mbspcasecmp.c: New file.
63403
63404         New module mbspcasecmp.
63405         * modules/mbspcasecmp: New file.
63406         * lib/mbspcasecmp.c: New file.
63407         * lib/string_.h (strncasecmp): Change warning message.
63408         (mbspcasecmp): New declaration.
63409         * m4/mbspcasecmp.m4: New file.
63410         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63411         GNULIB_MBSPCASECMP.
63412         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63413         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63414
63415 2007-02-14  Bruno Haible  <bruno@clisp.org>
63416
63417         * modules/mbsncasecmp-tests: New file.
63418         * tests/test-mbsncasecmp.sh: New file.
63419         * tests/test-mbsncasecmp.c: New file.
63420
63421         New module mbsncasecmp.
63422         * modules/mbsncasecmp: New file.
63423         * lib/mbsncasecmp.c: New file.
63424         * lib/string_.h (mbsncasecmp): New declaration.
63425         * m4/mbsncasecmp.m4: New file.
63426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63427         GNULIB_MBSNCASECMP.
63428         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63429         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63430
63431 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63432
63433         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63434         Verify that it doesn't overlap with our flags.
63435         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63436         do not have the desired effect in multibyte locales; instead, use
63437         mbscasecmp.
63438         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63439         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63440         we don't require GNU fnmatch ourselves (if our users require it, they
63441         should do so explicitly).
63442
63443         Fix regex code so it doesn't rely on strcasecmp.
63444         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63445         Otherwise, include gnulib's langinfo.h.
63446         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63447         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63448         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63449         * modules/regex (FILES): Remove m4/codeset.m4.
63450         (Depends-on): Add localcharset.  Remove strcase.
63451
63452 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63453
63454         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63455         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63456
63457 2007-02-13  Bruno Haible  <bruno@clisp.org>
63458
63459         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63460         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63461
63462 2007-02-12  Bruno Haible  <bruno@clisp.org>
63463
63464         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63465         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63466         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63467         time warning rather than a link error.
63468
63469 2007-02-12  Bruno Haible  <bruno@clisp.org>
63470
63471         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63472         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63473         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63474
63475 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63476
63477         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63478         args, not 2.
63479
63480 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63481
63482         New module 'time', so that apps can include <time.h> as per
63483         POSIX and GNU instead of separate include files like time_r.h
63484         and timegm.h.  This implementation tries out a simpler approach
63485         for replacing decls in standard include files (as compared to
63486         the string module), somewhat as an experiment.
63487
63488         * config/srclist.txt: Comment out mktime.c for now.
63489         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63490         since it doesn't apply any more.  Use generic wording instead.
63491         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63492         'time'.
63493         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63494         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63495         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63496         Don't include <sys/types.h>; no longer needed since we assume C89.
63497         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63498         * lib/strftime.c: Likewise.
63499         * lib/time_r.c: Likewise.
63500         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63501         * lib/nanosleep.c: Include <time.h> first, to check interface.
63502         * lib/strptime.c: Likewise.
63503         * lib/time_r.c: Likewise.
63504         * lib/timegm.c: Likewise.
63505         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63506         needed.
63507         * lib/timegm.c: Don't include timegm.h; no longer needed.
63508         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63509         time.h now handles any problems in that area.
63510         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63511         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63512         that time.h defines struct timespec.
63513         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63514         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63515         handles that.
63516         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63517         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63518         needed.  Set REPLACE_LOCALTIME.
63519         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63520         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63521         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63522         nanosleep; time_h.m4 now does that.  Don't require
63523         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63524         module handles this now.
63525         * modules/getdate (Depends-on): Remove timespec.  Add time.
63526         * modules/nanosleep (Depends-on): Likewise.
63527         * modules/stat-time (Depends-on): Likewise.
63528         * modules/nanosleep (Include): Include time.h, not timespec.h.
63529         * modules/strptime (Files): Remove lib/strptime.h.
63530         (Depends-on): Add extensions, time.
63531         (Include): Include time.h, not strptime.h.
63532         * modules/time_r (Files): Remove lib/time_r.h.
63533         (Depends-on): Add time.
63534         (Include): Include time.h, not time_r.h.
63535         * modules/timegm: Likewise.
63536         * modules/timespec (Description): Now does timespec-related decls
63537         of our own, instead of struct timespec itself.
63538         (Depends-on): Add time; remove extensions.
63539         (Maintainer): Add self.
63540         * modules/utimecmp (Depends-on): Add time; remove timespec.
63541         * modules/utimens (Depends-on): Likewise.
63542         * modules/xnanosleep (Depends-on): Likewise.
63543
63544 2007-02-11  Bruno Haible  <bruno@clisp.org>
63545
63546         * lib/c-strstr.c: Include allocsa.h.
63547         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63548         * lib/c-strcasestr.c: Include allocsa.h.
63549         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63550         * lib/strcasestr.c: Include allocsa.h.
63551         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63552         * lib/mbsstr.c: Include allocsa.h.
63553         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63554         allocsa/freesa instead of malloc/free.
63555         * lib/mbscasestr.c: Include allocsa.h.
63556         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63557         allocsa/freesa instead of malloc/free.
63558         * modules/c-strstr (Depends-on): Add allocsa.
63559         * modules/c-strcasestr (Depends-on): Likewise.
63560         * modules/strcasestr (Depends-on): Likewise.
63561         * modules/mbsstr (Depends-on): Likewise.
63562         * modules/mbscasestr (Depends-on): Likewise.
63563
63564 2007-02-11  Bruno Haible  <bruno@clisp.org>
63565
63566         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63567
63568         * modules/mbsspn-tests: New file.
63569         * tests/test-mbsspn.sh: New file.
63570         * tests/test-mbsspn.c: New file.
63571
63572 2007-02-11  Bruno Haible  <bruno@clisp.org>
63573
63574         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63575
63576         * modules/mbspbrk-tests: New file.
63577         * tests/test-mbspbrk.sh: New file.
63578         * tests/test-mbspbrk.c: New file.
63579
63580 2007-02-11  Bruno Haible  <bruno@clisp.org>
63581
63582         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63583         unneeded cast.
63584
63585         * modules/mbscspn-tests: New file.
63586         * tests/test-mbscspn.sh: New file.
63587         * tests/test-mbscspn.c: New file.
63588
63589 2007-02-11  Bruno Haible  <bruno@clisp.org>
63590
63591         * modules/mbscasecmp-tests: New file.
63592         * tests/test-mbscasecmp.sh: New file.
63593         * tests/test-mbscasecmp.c: New file.
63594
63595 2007-02-11  Bruno Haible  <bruno@clisp.org>
63596
63597         Ensure O(n) worst-case complexity of mbscasestr.
63598         * lib/mbscasestr.c: Include stdbool.h.
63599         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63600         functions.
63601         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63602         the bookkeeping indicates that it's worth it.
63603         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63604
63605         * modules/mbscasestr-tests: New file.
63606         * tests/test-mbscasestr1.c: New file.
63607         * tests/test-mbscasestr2.sh: New file.
63608         * tests/test-mbscasestr2.c: New file.
63609         * tests/test-mbscasestr3.sh: New file.
63610         * tests/test-mbscasestr3.c: New file.
63611         * tests/test-mbscasestr4.sh: New file.
63612         * tests/test-mbscasestr4.c: New file.
63613         * m4/locale-tr.m4: New file.
63614
63615 2007-02-11  Bruno Haible  <bruno@clisp.org>
63616
63617         Ensure O(n) worst-case complexity of mbsstr.
63618         * lib/mbsstr.c: Include stdbool.h.
63619         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63620         functions.
63621         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63622         bookkeeping indicates that it's worth it.
63623         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63624
63625         * modules/mbsstr-tests: New file.
63626         * tests/test-mbsstr1.c: New file.
63627         * tests/test-mbsstr2.sh: New file.
63628         * tests/test-mbsstr2.c: New file.
63629         * tests/test-mbsstr3.sh: New file.
63630         * tests/test-mbsstr3.c: New file.
63631         * m4/locale-fr.m4: New file.
63632
63633 2007-02-11  Bruno Haible  <bruno@clisp.org>
63634
63635         * lib/mbsrchr.c (mbsrchr): Fix bug.
63636
63637         * modules/mbsrchr-tests: New file.
63638         * tests/test-mbsrchr.sh: New file.
63639         * tests/test-mbsrchr.c: New file.
63640
63641 2007-02-11  Bruno Haible  <bruno@clisp.org>
63642
63643         * lib/mbschr.c (mbschr): Fix bug.
63644
63645         * modules/mbschr-tests: New file.
63646         * tests/test-mbschr.sh: New file.
63647         * tests/test-mbschr.c: New file.
63648         * m4/locale-zh.m4: New file.
63649
63650 2007-02-11  Bruno Haible  <bruno@clisp.org>
63651
63652         Support for copying multibyte string iterators.
63653         * lib/mbiter.h: Include <string.h>.
63654         (mbiter_multi_copy): New function.
63655         (mbi_copy): New macro.
63656         * lib/mbuiter.h: Include <string.h>.
63657         (mbuiter_multi_copy): New function.
63658         (mbui_copy): New macro.
63659
63660 2007-02-11  Bruno Haible  <bruno@clisp.org>
63661
63662         New module mbslen.
63663         * modules/mbslen: New file.
63664         * lib/mbslen.c: New file.
63665         * lib/string_.h (mbslen): New declaration.
63666         * m4/mbslen.m4: New file.
63667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63668         GNULIB_MBSLEN.
63669         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63670         * MODULES.html.sh (Internationalization functions): Add mbslen.
63671
63672 2007-02-11  Bruno Haible  <bruno@clisp.org>
63673
63674         Ensure O(n) worst-case complexity of strcasestr substitute.
63675         * lib/strcasestr.c: Include stdbool.h.
63676         (knuth_morris_pratt): New function.
63677         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63678         bookkeeping indicates that it's worth it.
63679         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63680
63681         * modules/strcasestr-tests: New file.
63682         * tests/test-strcasestr.c: New file.
63683
63684 2007-02-11  Bruno Haible  <bruno@clisp.org>
63685
63686         Ensure O(n) worst-case complexity of c_strcasestr.
63687         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63688         (knuth_morris_pratt): New function.
63689         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63690         the bookkeeping indicates that it's worth it.
63691         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63692
63693         * modules/c-strcasestr-tests: New file.
63694         * tests/test-c-strcasestr.c: New file.
63695
63696 2007-02-11  Bruno Haible  <bruno@clisp.org>
63697
63698         Ensure O(n) worst-case complexity of c_strstr.
63699         * lib/c-strstr.c: Include stdbool.h, string.h.
63700         (knuth_morris_pratt): New function.
63701         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63702         bookkeeping indicates that it's worth it.
63703         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63704
63705         * lib/c-strstr.c: Complete rewrite for maintainability.
63706
63707         * modules/c-strstr-tests: New file.
63708         * tests/test-c-strstr.c: New file.
63709
63710 2007-02-11  Bruno Haible  <bruno@clisp.org>
63711
63712         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63713         5.2.1 and earlier, whereby \055 was treated just like the range
63714         delimiter '-'.
63715         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63716
63717 2007-02-08  Bruno Haible  <bruno@clisp.org>
63718
63719         * modules/regex (Depends-on): Add stdbool.
63720         Reported by Dalibor Topic <robilad@kaffe.org>.
63721
63722 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63723
63724         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63725         Prefer returning from main to exiting from it.
63726         Remove unnecessary parens after sizeof.
63727
63728 2007-02-05  Bruno Haible  <bruno@clisp.org>
63729
63730         New module mbssep.
63731         * modules/mbssep: New file.
63732         * lib/mbssep.c: New file.
63733         * lib/string_.h (strsep): Add a conditional link warning.
63734         (mbssep): New declaration.
63735         * m4/mbssep.m4: New file.
63736         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63737         GNULIB_MBSSEP.
63738         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63739         * MODULES.html.sh (Internationalization functions): Add mbssep.
63740
63741 2007-02-05  Bruno Haible  <bruno@clisp.org>
63742
63743         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63744         Optimize search in case of 1 delimiter.
63745
63746 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63747
63748         * lib/acl.h: Include sys/types.h before sys/acl.h.
63749
63750 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63751
63752         Merge upstream fix for glibc bugzilla #3957:
63753
63754         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63755
63756         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63757         bit for RE_HAT_LISTS_NOT_NEWLINE.
63758         (build_charclass_op): Remove bogus comment.
63759
63760 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63761
63762         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63763
63764 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63767         * lib/memmem.c [!defined _LIBC]: Include config.h.
63768
63769 2007-02-04  Bruno Haible  <bruno@clisp.org>
63770
63771         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63772         warning message.
63773
63774 2007-02-04  Bruno Haible  <bruno@clisp.org>
63775
63776         New module mbstok_r.
63777         * modules/mbstok_r: New file.
63778         * lib/mbstok_r.c: New file.
63779         * lib/string_.h (strtok_r): Change argument names to match the
63780         comments. Add a conditional link warning.
63781         (mbstok_r): New declaration.
63782         * m4/mbstok_r.m4: New file.
63783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63784         GNULIB_MBSTOK_R.
63785         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63786         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63787
63788 2007-02-04  Bruno Haible  <bruno@clisp.org>
63789
63790         New module mbsspn.
63791         * modules/mbsspn: New file.
63792         * lib/mbsspn.c: New file.
63793         * lib/string_.h (strspn): Add a conditional link warning.
63794         (mbsspn): New declaration.
63795         * m4/mbsspn.m4: New file.
63796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63797         GNULIB_MBSSPN.
63798         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63799         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63800
63801 2007-02-04  Bruno Haible  <bruno@clisp.org>
63802
63803         New module mbspbrk.
63804         * modules/mbspbrk: New file.
63805         * lib/mbspbrk.c: New file.
63806         * lib/string_.h (strpbrk): Add a conditional link warning.
63807         (mbspbrk): New declaration.
63808         * m4/mbspbrk.m4: New file.
63809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63810         GNULIB_MBSPBRK.
63811         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63812         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63813
63814 2007-02-04  Bruno Haible  <bruno@clisp.org>
63815
63816         New module mbscspn.
63817         * modules/mbscspn: New file.
63818         * lib/mbscspn.c: New file.
63819         * lib/string_.h (strcspn): Add a conditional link warning.
63820         (mbscspn): New declaration.
63821         * m4/mbscspn.m4: New file.
63822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63823         GNULIB_MBSCSPN.
63824         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63825         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63826
63827 2007-02-04  Bruno Haible  <bruno@clisp.org>
63828
63829         New module mbscasestr, reduced goal of strcasestr.
63830         * modules/mbscasestr: New file.
63831         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63832         (mbscasestr): Renamed from strcasestr.
63833         * lib/strcasestr.c: Don't include mbuiter.h.
63834         (strcasestr): Remove support for multibyte locales.
63835         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63836         Change the conditional link warning.
63837         (mbscasestr): New declaration.
63838         * m4/mbscasestr.m4: New file.
63839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63840         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63841         REPLACE_STRCASESTR.
63842         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63844         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63845         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63846         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63847         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63848         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63849         (Depends-on): Remove mbuiter.
63850         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63851
63852 2007-02-04  Bruno Haible  <bruno@clisp.org>
63853
63854         Simplify handling of strncasecmp.
63855         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63856         the conditional link warning.
63857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63858         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63859         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63860         * modules/strcase (configure.ac): Don't invoke
63861         gl_STRING_MODULE_INDICATOR.
63862         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63863
63864 2007-02-04  Bruno Haible  <bruno@clisp.org>
63865
63866         New module mbscasecmp, reduced goal of strcasecmp.
63867         * modules/mbscasecmp: New file.
63868         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63869         (mbscasecmp): Renamed from strcasecmp.
63870         * lib/strcasecmp.c: Don't include mbuiter.h.
63871         (strcasecmp): Remove support for multibyte locales.
63872         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63873         Change the conditional link warning.
63874         (mbscasecmp): New declaration.
63875         * m4/mbscasecmp.m4: New file.
63876         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63877         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63878         REPLACE_STRCASECMP.
63879         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63880         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63881         GNULIB_MBSCASECMP.
63882         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63883         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63884         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63885         (Depends-on): Remove mbuiter.
63886         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63887
63888 2007-02-04  Bruno Haible  <bruno@clisp.org>
63889
63890         New module mbsstr. Remove module strstr.
63891         * modules/mbsstr: New file.
63892         * modules/strstr: Remove file.
63893         * lib/mbsstr.c: Renamed from lib/strstr.c.
63894         (mbsstr): Renamed from strstr.
63895         * lib/string_.h (strstr): Remove declaration. Change the conditional
63896         link warning.
63897         (mbsstr): New declaration.
63898         * m4/mbsstr.m4: New file.
63899         * m4/strstr.m4: Remove file.
63900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63901         REPLACE_STRSTR.
63902         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63903         Don't initialize GNULIB_STRSTR.
63904         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63905         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63906         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63907         (Support for systems lacking ANSI C 89): Remove strstr.
63908
63909 2007-02-04  Bruno Haible  <bruno@clisp.org>
63910
63911         New module mbsrchr.
63912         * modules/mbsrchr: New file.
63913         * lib/mbsrchr.c: New file.
63914         * lib/string_.h (strrchr): Add a conditional link warning.
63915         (mbsrchr): New declaration.
63916         * m4/mbsrchr.m4: New file.
63917         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63918         GNULIB_MBSRCHR.
63919         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63920         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63921
63922 2007-02-04  Bruno Haible  <bruno@clisp.org>
63923
63924         New module mbschr.
63925         * modules/mbschr: New file.
63926         * lib/mbschr.c: New file.
63927         * lib/string_.h (strchr): Add a conditional link warning.
63928         (mbschr): New declaration.
63929         * m4/mbschr.m4: New file.
63930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63931         GNULIB_MBSCHR.
63932         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63933         * MODULES.html.sh (Internationalization functions): Add mbschr.
63934
63935 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63938
63939         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63940
63941 2007-02-04  Bruno Haible  <bruno@clisp.org>
63942
63943         New module description section 'configure.ac-early'.
63944         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63945         (func_get_autoconf_early_snippet): New function.
63946         (func_import, func_create_testdir): Use it. Remove special cases for
63947         modules 'extensions' and 'lock'.
63948         * modules/extensions (configure.ac-early): Require
63949         gl_USE_SYSTEM_EXTENSIONS.
63950         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63951
63952 2007-02-04  Bruno Haible  <bruno@clisp.org>
63953
63954         Make use of gcj-4.3's -fsource and -ftarget option.
63955         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63956         and if so try the options -fsource and -ftarget.
63957         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63958         source_version, ftarget_option, target_version arguments.
63959         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63960         (is_envjavac_oldgcj_14_14_usable): Renamed from
63961         is_envjavac_gcj_14_14_usable.
63962         (is_envjavac_oldgcj_14_13_usable): Renamed from
63963         is_envjavac_gcj_14_13_usable.
63964         (is_gcj_present): Update.
63965         (is_gcj_43, is_gcj43_usable): New functions.
63966         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63967         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63968         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63969         try the options -fsource and -ftarget.
63970
63971 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63972
63973         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63974         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63975         larger value.
63976
63977 2007-02-03  Jim Meyering  <jim@meyering.net>
63978
63979         Give tools a better chance to allocate space for very large buffers.
63980         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63981
63982         Make pwd and readlink work also when run with an unreadable parent dir
63983         on systems with openat support.
63984         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63985         provided getcwd function, even when we have openat support.
63986         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63987
63988 2007-02-02  Bruno Haible  <bruno@clisp.org>
63989
63990         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63991         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
63992         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
63993         portability problems if one of these functions is only used on specific
63994         platforms.
63995         Reported by Paul Eggert.
63996
63997 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
63998
63999         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64000         is causing more trouble than it's curing.
64001         * lib/regex_internal.h (__mempcpy): Remove.
64002         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64003         (and make the code a tad smaller to boot).
64004         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64005
64006 2007-02-02  Jim Meyering  <jim@meyering.net>
64007
64008         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64009         section, not in the Makefile.am: one.
64010
64011 2007-02-02  Eric Blake  <ebb9@byu.net>
64012
64013         * lib/strchrnul.c: Always include config.h first.
64014
64015         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64016         gnulib strstr is not necessary here.
64017
64018 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64019
64020         * m4/socklen.m4: Fix typo.
64021
64022 2007-02-02  Eric Blake  <ebb9@byu.net>
64023
64024         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64025         * modules/netinet_in (Makefile.am): Likewise.
64026
64027 2007-02-01  Bruno Haible  <bruno@clisp.org>
64028
64029         * lib/string_.h (GL_LINK_WARNING): New macro.
64030         (strcasecmp, strstr, strcasestr): If provided by the system,
64031         conditionally define as a macro that leads to a warning instead of to
64032         an error.
64033         (strncasecmp): Conditionally define as a macro that leads to a warning.
64034
64035 2007-02-01  Karl Berry  <karl@gnu.org>
64036
64037         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64038
64039 2007-02-01  Bruno Haible  <bruno@clisp.org>
64040
64041         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64042         renamings.
64043
64044 2007-02-01  Eric Blake  <ebb9@byu.net>
64045
64046         * modules/regex (Depends-on): Revert dependence on mempcpy.
64047         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64048         module's definition of mempcpy.
64049         Reported by Paul Eggert.
64050
64051 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64052
64053         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64054         the symbol XYZ before redefining it.  This fixes a problem with
64055         programs that don't use XYZ, when compiled on systems that define
64056         XYZ to something else.
64057
64058 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64061         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64062         writeable to group or other and (2) is intended to have a special
64063         mode bit that is set or cleared.  In such a case, the directory
64064         should be neither group- nor other-writeable until the special
64065         mode bits are right.
64066
64067 2007-01-31  Eric Blake  <ebb9@byu.net>
64068
64069         * modules/mountlist (Depends-on): Add strstr.
64070
64071         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64072         bug.
64073         * modules/string (Makefile.am): Remove redundant replacement.
64074         * modules/regex (Depends-on): Add mempcpy.
64075
64076 2007-01-31  Bruno Haible  <bruno@clisp.org>
64077
64078         New module description field 'Link'.
64079         * gnulib-tool (func_usage): Document --extract-link-directive.
64080         (sed_extract_prog): Recognize 'Link' directive.
64081         (func_get_link_directive): New function.
64082         (func_import): Show summary of link directives.
64083         Handle --extract-link-directive option.
64084         * modules/acl (Link): New section.
64085         * modules/clock-time (Link): New section.
64086         * modules/euidaccess (Link): New section.
64087         * modules/gettext (Link): New section.
64088         * modules/iconv (Link): New section.
64089         * modules/lock (Link): New section.
64090         * modules/nanosleep (Link): New section.
64091         * modules/readline (Link): New section.
64092
64093 2007-01-27  Bruno Haible  <bruno@clisp.org>
64094
64095         Enforce the use of gnulib modules for unportable <string.h> functions.
64096         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64097         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64098         (gl_HEADER_STRING_H_BODY): Require it.
64099         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64100         the symbol XYZ to one that gives a link error.
64101         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64102         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64103         * modules/mempcpy (configure.ac): Likewise.
64104         * modules/memrchr (configure.ac): Likewise.
64105         * modules/stpcpy (configure.ac): Likewise.
64106         * modules/stpncpy (configure.ac): Likewise.
64107         * modules/strcase (configure.ac): Likewise.
64108         * modules/strcasestr (configure.ac): Likewise.
64109         * modules/strchrnul (configure.ac): Likewise.
64110         * modules/strdup (configure.ac): Likewise.
64111         * modules/strndup (configure.ac): Likewise.
64112         * modules/strnlen (configure.ac): Likewise.
64113         * modules/strpbrk (configure.ac): Likewise.
64114         * modules/strsep (configure.ac): Likewise.
64115         * modules/strstr (configure.ac): Likewise.
64116         * modules/strtok_r (configure.ac): Likewise.
64117
64118 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64119
64120         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64121
64122 2007-01-30  Jim Meyering  <jim@meyering.net>
64123
64124         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64125
64126 2007-01-29  Bruno Haible  <bruno@clisp.org>
64127
64128         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64129         * lib/execute.c: Likewise.
64130         * lib/pipe.c: Likewise.
64131         * lib/printf-args.h: Likewise.
64132         * lib/printf-args.c: Likewise.
64133         * lib/printf-parse.c: Likewise.
64134         * lib/vasnprintf.c: Likewise.
64135
64136 2007-01-29  Eric Blake  <ebb9@byu.net>
64137
64138         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64139         declaration.
64140
64141 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64142
64143         * lib/strptime.h (strptime): Use 'restrict' for args where
64144         POSIX requires this.
64145         * lib/strptime.c (strptime): Likewise.
64146         Change license notice from LGPL to GPL, since gnulib-tool will
64147         change this as needed.
64148         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64149         defined.
64150         Include "strptime.h" first, to check interface.
64151         Do not #undef _LIBC and _NL_CURRENT.
64152         Do not include <stdlib.h>; no longer needed.
64153         Include "time_r.h" and declare ptime_locale_status
64154         only if _LIBC is not defined.
64155         (__P): Remove unused macro.
64156         (match_string): Bring back glibc version, but use it only if _LIBC
64157         is defined.
64158         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64159         Remove unnecessary assertion and abort() call.
64160         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64161         * m4/strptime.m4: Fix serial number comment.
64162         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64163         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64164         (Depends-on): Add time_r.
64165
64166 2007-01-29  Bruno Haible  <bruno@clisp.org>
64167
64168         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64169         strptime.
64170         * modules/strptime (Depends-on): Add stdbool.
64171         * lib/strptime.h: Include <time.h> always. Add comments.
64172
64173 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64174
64175         * modules/strptime: New file.
64176         * lib/strptime.h: New file.
64177         * lib/strptime.c: New file.
64178         * m4/strptime.m4: New file.
64179
64180 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64181
64182         * MODULES.html.sh: New module mpsort.
64183         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64184
64185         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64186         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64187         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64188         All uses changed.
64189         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64190         All uses changed.
64191         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64192         to _Restrict_.
64193         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64194         the parameter matches the prototype.
64195
64196 2007-01-28  Jim Meyering  <jim@meyering.net>
64197
64198         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64199         sys/time.h here, reverting that part of the previous patch:
64200         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64201
64202 2007-01-28  Bruno Haible  <bruno@clisp.org>
64203
64204         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64205         value of $(SYS_TIME_H).
64206         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64207         remove it conditionally, too. [added by Jim Meyering]
64208         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64209         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64210         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64211         GETTIMEOFDAY_REPLACEMENT to 1.
64212
64213 2007-01-28  Bruno Haible  <bruno@clisp.org>
64214
64215         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64216         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64218         Set UNISTD_H instead of UNISTD_H2.
64219         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64220
64221 2007-01-28  Bruno Haible  <bruno@clisp.org>
64222
64223         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64224         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64225
64226 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64227
64228         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64229         (func_create_testdir): Ensure C locale for `grep' and `tr'
64230         character ranges.
64231         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64232         ACLOCAL_AMFLAGS parsing state machine.
64233
64234 2007-01-27  Bruno Haible  <bruno@clisp.org>
64235
64236         * modules/unistr/base: Update.
64237
64238 2007-01-27  Bruno Haible  <bruno@clisp.org>
64239
64240         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64241         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64242         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64243         modules/unistr/u32-mbtouc.
64244         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64245         * lib/unistr.h: Update.
64246         * lib/linebreak.c: Update.
64247         * modules/unistr/u32-mbtouc: Renamed from
64248         modules/unistr/u32-mbtouc-safe.
64249         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64250         * lib/unistr.h: Update.
64251         * lib/unistr/u32-to-u8.c: Update.
64252         * lib/unistr/u32-to-u16.c: Update.
64253
64254 2007-01-27  Bruno Haible  <bruno@clisp.org>
64255
64256         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64257         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64258         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64259         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64260         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64261         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64262         modules/unistr/u16-mbtouc.
64263         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64264         * lib/unistr.h: Update.
64265         * lib/linebreak.c: Update.
64266         * modules/linebreak: Update.
64267         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64268         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64269         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64270         * modules/unistr/u16-mbtouc: Renamed from
64271         modules/unistr/u16-mbtouc-safe.
64272         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64273         * lib/unistr.h: Update.
64274         * lib/unistr/u16-to-u8.c: Update.
64275         * modules/unistr/u16-to-u8: Update.
64276         * lib/unistr/u16-to-u32.c: Update.
64277         * modules/unistr/u16-to-u32: Update.
64278
64279 2007-01-27  Bruno Haible  <bruno@clisp.org>
64280
64281         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64282         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64283         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64284         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64285         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64286         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64287         modules/unistr/u8-mbtouc.
64288         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64289         * lib/unistr.h: Update.
64290         * lib/striconveh.c: Update.
64291         * modules/striconveh: Update.
64292         * lib/linebreak.c: Update.
64293         * modules/linebreak: Update.
64294         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64295         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64296         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64297         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64298         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64299         * lib/unistr.h: Update.
64300         * lib/striconveh.c: Update.
64301         * modules/striconveh: Update.
64302         * lib/unistr/u8-to-u16.c: Update.
64303         * modules/unistr/u8-to-u16: Update.
64304         * lib/unistr/u8-to-u32.c: Update.
64305         * modules/unistr/u8-to-u32: Update.
64306
64307 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64308
64309         Sync from Libtool.
64310         * lib/argz.c: Do not include strings.h nor memory.h, include
64311         string.h unconditionally.  Patch by Simon Josefsson.
64312
64313 2007-01-27  Bruno Haible  <bruno@clisp.org>
64314
64315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64316         from gl_HEADER_STRING_H_BODY.
64317         (gl_HEADER_STRING_H_BODY): Require it.
64318         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64319         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64320         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64321         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64322         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64323         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64324         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64325         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64326         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64327         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64328         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64329         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64330         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64331         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64332         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64333
64334 2007-01-27  Bruno Haible  <bruno@clisp.org>
64335
64336         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64337         check_PROGRAMS into noinst_PROGRAMS.
64338         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64339         check_PROGRAMS in this case.
64340         (func_import): Set for_test to false.
64341         (func_create_testdir): Set for_test to true.
64342
64343 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64344             Bruno Haible  <bruno@clisp.org>
64345
64346         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64347         (Depends-on): Add string.
64348         (Includes): Use <string.h> instead of strcasestr.h.
64349         * modules/string (Makefile.am): Also substitute the value of
64350         REPLACE_STRCASESTR.
64351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64352         assume strcasestr is declared in <string.h> not <strings.h>. Also
64353         set REPLACE_STRCASESTR.
64354         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64355         REPLACE_STRCASESTR.
64356         * lib/strcasestr.h: Remove file.
64357         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64358         * lib/string_.h (strcasestr): New declaration.
64359
64360 2007-01-27  Bruno Haible  <bruno@clisp.org>
64361
64362         * lib/string_.h: Use 'extern'.
64363
64364 2007-01-27  Jim Meyering  <jim@meyering.net>
64365
64366         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64367         of set-but-not-used local, "q".
64368
64369         * lib/mempcpy.c: Include <config.h> before <string.h>.
64370         This fixes a compilation error on HP-UX, due to the system's
64371         "restrict"-using mempcpy prototype.
64372
64373 2007-01-26  Bruno Haible  <bruno@clisp.org>
64374
64375         Small optimization.
64376         * lib/javacomp.c: Include c-strstr.h.
64377          (is_envjavac_gcj): Use c_strstr instead of strstr.
64378         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64379
64380 2007-01-26  Bruno Haible  <bruno@clisp.org>
64381
64382         * MODULES.html.sh (Unicode string functions): Add the new modules.
64383
64384         * modules/uniconv/u32-strconv-to-locale: New file.
64385         * lib/uniconv/u32-strconv-to-locale.c: New file.
64386
64387         * modules/uniconv/u16-strconv-to-locale: New file.
64388         * lib/uniconv/u16-strconv-to-locale.c: New file.
64389
64390         * modules/uniconv/u8-strconv-to-locale: New file.
64391         * lib/uniconv/u8-strconv-to-locale.c: New file.
64392
64393         * modules/uniconv/u32-strconv-from-locale: New file.
64394         * lib/uniconv/u32-strconv-from-locale.c: New file.
64395
64396         * modules/uniconv/u16-strconv-from-locale: New file.
64397         * lib/uniconv/u16-strconv-from-locale.c: New file.
64398
64399         * modules/uniconv/u8-strconv-from-locale: New file.
64400         * lib/uniconv/u8-strconv-from-locale.c: New file.
64401
64402         * modules/uniconv/u32-strconv-to-enc: New file.
64403         * lib/uniconv/u32-strconv-to-enc.c: New file.
64404         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64405         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64406
64407         * modules/uniconv/u16-strconv-to-enc: New file.
64408         * lib/uniconv/u16-strconv-to-enc.c: New file.
64409         * lib/uniconv/u-strconv-to-enc.h: New file.
64410         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64411         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64412
64413         * modules/uniconv/u8-strconv-to-enc: New file.
64414         * lib/uniconv/u8-strconv-to-enc.c: New file.
64415         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64416         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64417
64418         * modules/uniconv/u32-strconv-from-enc: New file.
64419         * lib/uniconv/u32-strconv-from-enc.c: New file.
64420         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64421         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64422
64423         * modules/uniconv/u16-strconv-from-enc: New file.
64424         * lib/uniconv/u16-strconv-from-enc.c: New file.
64425         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64426         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64427
64428         * modules/uniconv/u8-strconv-from-enc: New file.
64429         * lib/uniconv/u8-strconv-from-enc.c: New file.
64430         * lib/uniconv/u-strconv-from-enc.h: New file.
64431         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64432         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64433
64434         * modules/uniconv/u32-conv-from-enc: New file.
64435         * lib/uniconv/u32-conv-from-enc.c: New file.
64436         * modules/uniconv/u32-conv-from-enc-tests: New file.
64437         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64438
64439         * modules/uniconv/u16-conv-from-enc: New file.
64440         * lib/uniconv/u16-conv-from-enc.c: New file.
64441         * lib/uniconv/u-conv-from-enc.h: New file.
64442         * modules/uniconv/u16-conv-from-enc-tests: New file.
64443         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64444
64445         * modules/uniconv/u8-conv-from-enc: New file.
64446         * lib/uniconv/u8-conv-from-enc.c: New file.
64447         * modules/uniconv/u8-conv-from-enc-tests: New file.
64448         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64449
64450         * modules/uniconv/base: New file.
64451         * lib/uniconv.h: New file.
64452
64453 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64454
64455         * doc/gnulib-tool.texi (Initial import): Update to match current
64456         behavior with strdup module.
64457         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64458         * lib/memmem.h: Remove; all uses removed.  This is now done
64459         by <string.h>.
64460         * lib/mempcpy.h: Likewise.
64461         * lib/memrchr.h: Likewise.
64462         * lib/stpcpy.h: Likewise.
64463         * lib/stpncpy.h: Likewise.
64464         * lib/strcase.h: Likewise.
64465         * lib/strchrnul.h: Likewise.
64466         * lib/strdup.h: Likewise.
64467         * lib/strndup.h: Likewise.
64468         * lib/strnlen.h: Likewise.
64469         * lib/strpbrk.h: Likewise.
64470         * lib/strsep.h: Likewise.
64471         * lib/strstr.h: Likewise.
64472         * lib/strtok_r.h: Likewise.
64473         * lib/string_.h: New file.
64474         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64475         Rely on <string.h> instead.
64476         * lib/canon-host.c: Likewise.
64477         * lib/chdir-long.c: Likewise.
64478         * lib/concatpath.c: Likewise.
64479         * lib/exclude.c: Likewise.
64480         * lib/fchdir.c: Likewise.
64481         * lib/getaddrinfo.c: Likewise.
64482         * lib/getcwd.c: Likewise.
64483         * lib/getsubopt.c: Likewise.
64484         * lib/glob.c: Likewise.
64485         * lib/hard-locale.c: Likewise.
64486         * lib/iconvme.c: Likewise.
64487         * lib/javacomp.c: Likewise.
64488         * lib/mempcpy.c: Likewise.
64489         * lib/memrchr.c: Likewise.
64490         * lib/regex_internal.h: Likewise.
64491         * lib/stpncpy.c: Likewise.
64492         * lib/strcasecmp.c: Likewise.
64493         * lib/strchrnul.c: Likewise.
64494         * lib/strdup.c: Likewise.
64495         * lib/striconv.c: Likewise.
64496         * lib/striconveh.c: Likewise.
64497         * lib/striconveha.c: Likewise.
64498         * lib/strncasecmp.c: Likewise.
64499         * lib/strndup.c: Likewise.
64500         * lib/strnlen.c: Likewise.
64501         * lib/strsep.c: Likewise.
64502         * lib/strstr.c: Likewise.
64503         * lib/strtok_r.c: Likewise.
64504         * lib/userspec.c: Likewise.
64505         * lib/w32spawn.h: Likewise.
64506         * lib/xstrndup.c: Likewise.
64507         * lib/mountlist.c (strstr): Remove decl.
64508         * m4/string_h.m4: New file.
64509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64510         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64511         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64512         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64513         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64514         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64515         Set REPLACE_STRCASECMP if necessary.
64516         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64517         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64518         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64519         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64520         HAVE_DECL_STRDUP if necessary.
64521         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64522         since gl_FUNC_STRNDUP does that now.
64523         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64524         Check for decl here...
64525         (gl_PREREQ_STRNLEN): ... not here.
64526         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64527         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64528         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64529         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64530         necessary.
64531         * modules/string: New file.
64532         * modules/memmem (Files): Remove special-purpose include file.
64533         (Depends-on): Add string.
64534         (Include): Include <string.h>, not the removed file.
64535         * modules/mempcpy: Likewise.
64536         * modules/memrchr: Likewise.
64537         * modules/stpcpy: Likewise.
64538         * modules/stpncpy: Likewise.
64539         * modules/strcase: Likewise.
64540         * modules/strchrnul: Likewise.
64541         * modules/strdup: Likewise.
64542         * modules/strndup: Likewise.
64543         * modules/strnlen: Likewise.
64544         * modules/strpbrk: Likewise.
64545         * modules/strsep: Likewise.
64546         * modules/strstr: Likewise.
64547         * modules/strtok_r: Likewise.
64548         * tests/test-dirname.c: Don't include "strdup.h", since
64549         <string.h> now suffices.
64550         * tests/test-memmem.c: Don't include "memmem.h", since
64551         <string.h> now suffices.
64552
64553 2007-01-25  Bruno Haible  <bruno@clisp.org>
64554
64555         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64556         *resultp is 0.
64557
64558         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64559         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64560         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64561         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64562
64563         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64564         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64565         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64566         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64567         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64568         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64569
64570 2007-01-24  Bruno Haible  <bruno@clisp.org>
64571
64572         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64573         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64574         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64575         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64576         gl_FUNC_FTS_CORE.
64577         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64578         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64579         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64580         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64581         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64582         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64583         gl_FUNC_FCHOWNAT.
64584         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64585         gl_FUNC_STRFTIME.
64586         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64587         Reported by Ralf Wildenhues.
64588
64589 2007-01-24  Bruno Haible  <bruno@clisp.org>
64590
64591         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64592         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64593         gl_GETADDRINFO.
64594         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64595         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64596         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64597
64598 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64599
64600         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64601         Don't use 'exit'; just return from 'main'.
64602         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64603
64604         * lib/fnmatch_.h: Readjust white space and comments to match
64605         glibc, to avoid spurious diffs.
64606
64607 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64608
64609         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64610         2004-12-01 change by Jakub Jelinek, since this code won't compile
64611         if !LIBC.  Problem reported by Bob Proulx.
64612
64613 2007-01-23  Bruno Haible  <bruno@clisp.org>
64614
64615         * lib/striconveh.c: Include c-strcaseeq.h.
64616         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64617         * modules/striconveh (Depends-on): Add c-strcaseeq.
64618
64619 2007-01-23  Bruno Haible  <bruno@clisp.org>
64620
64621         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64622
64623         * modules/c-strcaseeq: New file.
64624         * lib/c-strcaseeq.h: New file.
64625
64626         * modules/streq: New file.
64627         * lib/streq.h: New file.
64628
64629 2007-01-23  Bruno Haible  <bruno@clisp.org>
64630
64631         * modules/striconveha-tests: New file.
64632         * tests/test-striconveha.c: New file.
64633
64634         * lib/striconveha.h: Include <stdbool.h>.
64635         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64636         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64637         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64638         (mem_iconveha): New function.
64639         (str_iconveha_notranslit): Renamed from str_iconveha.
64640         (str_iconveha): New function.
64641         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64642         c-strcase.
64643
64644 2007-01-23  Bruno Haible  <bruno@clisp.org>
64645
64646         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64647         encodings without forgiving before trying any encoding with handler.
64648         (str_iconveha): Try all encodings without forgiving before trying any
64649         encoding with handler.
64650
64651 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64652
64653         Import the following changes from libc.
64654
64655         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64656
64657         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64658
64659         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64660
64661         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64662         normal_bracket label.
64663
64664         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64665
64666         [BZ #361]
64667         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64668         to normal_bracket after fetching the next character.
64669
64670 2007-01-22  Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64673         argument.
64674         * lib/striconveh.c (iconv_carefully_1): New function.
64675         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64676         argument.
64677         (str_cd_iconveh): Update.
64678         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64679         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64680         * tests/test-striconveh.c (MAGIC): New macro.
64681         (new_offsets): New function.
64682         (main): Test call with and without offsets.
64683
64684 2007-01-22  Bruno Haible  <bruno@clisp.org>
64685
64686         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64687         * modules/sys_select (Makefile.am): Likewise.
64688         * modules/sys_socket (Makefile.am): Likewise.
64689         * modules/sys_time (Makefile.am): Likewise.
64690
64691 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64692
64693         * modules/gettimeofday (License): Change from GPL to LGPL, since
64694         gettimeofday is a library function.
64695
64696 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64697
64698         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64699
64700 2007-01-21  Bruno Haible  <bruno@clisp.org>
64701
64702         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64703
64704 2007-01-21  Bruno Haible  <bruno@clisp.org>
64705
64706         * modules/striconveha: New file.
64707         * lib/striconveha.h: New file.
64708         * lib/striconveha.c: New file.
64709         * MODULES.html.sh (Internationalization functions): Add striconveha.
64710         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64711         string.
64712         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64713
64714 2007-01-21  Bruno Haible  <bruno@clisp.org>
64715
64716         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64717         * lib/striconveh.c (str_iconveh): Likewise.
64718
64719 2007-01-21  Bruno Haible  <bruno@clisp.org>
64720
64721         * lib/striconveh.h (mem_iconveh): New declaration.
64722         * lib/striconveh.c (mem_iconveh): New function.
64723         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64724
64725 2007-01-21  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64728
64729         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64730         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64731         original result buffer.
64732         (str_cd_iconveh): Update.
64733         * tests/test-striconveh.c (main): Update.
64734
64735         * lib/striconv.h (mem_cd_iconv): Change specification.
64736         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64737         result buffer.
64738         (str_cd_iconv): Update.
64739         * tests/test-striconv.c (main): Update.
64740
64741 2007-01-21  Bruno Haible  <bruno@clisp.org>
64742
64743         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64744
64745 2007-01-20  Jim Meyering  <jim@meyering.net>
64746
64747         * lib/userspec.c (parse_with_separator): If a user or group string
64748         starts with "+", skip the corresponding name-to-ID look-up, since
64749         such a look-up must fail: user and group names may not include "+".
64750
64751 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64752
64753         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64754         since we now assume the sys_time module.
64755         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64756         check for sys/time.h; no longer needed.
64757         * modules/poll (Depends-on): Depend on sys_time.
64758
64759 2007-01-18  Bruno Haible  <bruno@clisp.org>
64760
64761         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64762         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64763
64764         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64765         gettimeofday.
64766
64767         * tests/test-gettimeofday.c: Include <time.h>.
64768         (dummy): Remove variable.
64769
64770         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64771         gl_HEADER_SYS_TIME_H.
64772         (gl_HEADER_SYS_TIME_H): New macro.
64773
64774         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64775         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64776         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64777         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64778         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64779         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64780         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64781         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64782         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64783         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64784         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64785
64786         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64787         last change; it caused a compilation error when cross-compiling to
64788         Cygwin.
64789
64790 2007-01-18  Jim Meyering  <jim@meyering.net>
64791
64792         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64793         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64794         than the race-prone "test -d sys || mkdir sys".
64795         (configure.ac): Use AC_PROG_MKDIR_P.
64796         * modules/sys_select: Likewise.
64797         * modules/sys_socket: Likewise.
64798         * modules/sys_time: Likewise.
64799
64800 2007-01-18  Eric Blake  <ebb9@byu.net>
64801
64802         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64803         replace gettimeofday.
64804         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64805         name, to avoid infinite recursion.
64806
64807 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64808
64809         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64810         module sys_time.
64811         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64812         assume timespec.h defines struct timeval.
64813         * lib/settime.c: Likewise.
64814         * lib/utimens.c: Likewise.
64815         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64816         since we now assume the gettimeofday module.
64817         * lib/tempname.c (__gen_tempname): Likewise.
64818         * lib/gettimeofday.h: Remove.
64819         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64820         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64821         Include <time.h>, for 'time()'.
64822         (localtime_buffer_addr): Also use this workaround if
64823         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64824         to simplify the uses.  All uses changed.
64825         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64826         that #undef is inside {}, and 'const' follows type name consistently.
64827         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64828         (gettimeofday): Do not use the maximum possible value for
64829         tv->tv_usec, since that might break usages other than ls.c.
64830         Instead, we'll leave ls.c alone.  This undoes today's patch
64831         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64832         we've never observed the problem but might as well keep the
64833         canary.
64834         * lib/nanosleep.c: Include timespec.h first, for interface check.
64835         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64836         now assume the sys_time module.
64837         * lib/tempname.c: Likewise.
64838         * lib/timespec.h: Likewise.
64839         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64840         needed.
64841         * lib/strftime.c: Likewise.
64842         * lib/timespec.h: Likewise.
64843         * lib/posixtm.c: Include posixtm.h first, for interface check.
64844         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64845         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64846         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64847         * lib/sys_time_.h: New file.
64848         * lib/timespec.h (struct timespec): Use long int, not long.
64849         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64850         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64851         Remove obsolescent call to AC_HEADER_TIME.
64852         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64854         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64855         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64856         Likewise.
64857         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64858         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64859         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64860         into the sys_time module.  Check for gettimeofday just once.
64861         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64862         for gettimeofday signature to just check the signature.  Merely
64863         compile it, since linking doesn't test signature.  Improve test for
64864         whether gettimeofday.o is actually needed.
64865         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64866         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64867         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64868         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64869         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64870         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64871         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64872         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64873         than worrying about sys/time.h.
64874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64875         Don't bother worrying about TIME_WITH_SYS_TIME.
64876         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64877         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64878         * m4/sys_time_h.m4: New file.
64879         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64880         Don't include sys/time.h.  Return from main rather than exiting.
64881         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64882         all uses changed.
64883         * modules/gethrxtime (Depends-on): Add sys_time.
64884         * modules/gettime (Depends-on): Likewise.
64885         * modules/gettimeofday (Depends-on): Likewise.
64886         * modules/nanosleep (Depends-on): Likewise.
64887         * modules/settime (Depends-on): Likewise.
64888         * modules/tempname (Depends-on): Likewise.
64889         * modules/utimens (Depends-on): Likewise.
64890         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64891         (Include): Change back to <sys/time.h>.
64892         (Maintainer): Add self.
64893         * modules/sys_time: New file.
64894         * modules/tempname (Depends-on): Add gettimeofday.
64895         * tests/test-gettimeofday.c: Include <sys/time.h>
64896         rather than gettimeofday.h.
64897
64898 2007-01-17  Bruno Haible  <bruno@clisp.org>
64899
64900         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64901         the license default to GPL.
64902         (func_create_testdir): Don't complain if a module is LGPL and its
64903         tests module depends on GPLed modules.
64904
64905 2007-01-17  Bruno Haible  <bruno@clisp.org>
64906
64907         * lib/gettimeofday.c (gettimeofday): Add code for the case
64908         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64909         maximum possible value for tv->tv_usec, rather than the minimum one.
64910
64911 2005-10-08  Martin Lambers  <marlam@marlam.de>
64912 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64913 2007-01-16  Bruno Haible  <bruno@clisp.org>
64914
64915         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64916         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64917         gl_FUNC_GETTIMEOFDAY.
64918         (Include): Add gettimeofday.h.
64919         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64920         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64921         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64922         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64923         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64924         * lib/gettimeofday.h: New file.
64925         * lib/gettimeofday.c: Include <sys/timeb.h>.
64926         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64927         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64928         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64929         fall back on time().
64930
64931         * tests/test-gettimeofday.c: New file.
64932         * modules/gettimeofday-tests: New file.
64933
64934 2007-01-16  Eric Blake  <ebb9@byu.net>
64935
64936         * modules/fnmatch (Depends-on): Depend on wchar.
64937         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64938         * m4/fnmatch.m4: Likewise.
64939         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64940         * m4/mbchar.m4: Likewise.
64941         * modules/mbswidth (Depends-on): Depend on wchar.
64942         * lib/mbswidth.c: Assume <wchar.h>.
64943         * m4/mbswidth.m4: Likewise.
64944         * modules/quotearg (Depends-on): Depend on wchar.
64945         * lib/quotearg.c: Assume <wchar.h>.
64946         * m4/quotearg.m4: Likewise.
64947         * modules/regex (Depends-on): Depend on wchar.
64948         * lib/regex_internal.h: Assume <wchar.h>.
64949         * m4/regex.m4: Likewise.
64950         * modules/stdint (Depends-on): Depend on wchar.
64951         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64952         * m4/stdint.m4: Likewise.
64953         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64954         * modules/strftime (Depends-on): Depend on wchar.
64955         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64956         * modules/strtol (Depends-on): Depend on wchar.
64957         * lib/strtol.c: Assume <wchar.h>.
64958         * modules/wcwidth (Depends-on): Depend on wchar.
64959         * lib/wcwidth.h: Assume <wchar.h>.
64960         * m4/wcwidth.m4: Likewise.
64961
64962 2007-01-16  Bruno Haible  <bruno@clisp.org>
64963
64964         * modules/csharpexec-script: New, created from...
64965         * modules/csharpexec: ... this.
64966
64967 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64968
64969         * modules/javaexec-script: New, created from...
64970         * modules/javaexec: ... this.
64971
64972 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64973
64974         * modules/poll (Dependencies): Add sys_select.
64975
64976 2007-01-15  Jim Meyering  <jim@meyering.net>
64977
64978         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64979         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64980         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64981         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64982
64983 2007-01-15  Bruno Haible  <bruno@clisp.org>
64984
64985         * modules/striconveh: New file.
64986         * lib/striconveh.h: New file.
64987         * lib/striconveh.c: New file.
64988         * MODULES.html.sh (Internationalization functions): Add striconveh.
64989
64990         * modules/striconveh-tests: New file.
64991         * tests/test-striconveh.c: New file.
64992
64993 2007-01-15  Bruno Haible  <bruno@clisp.org>
64994
64995         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
64996         not from GNU libiconv or GNU libc.
64997
64998 2007-01-15  Bruno Haible  <bruno@clisp.org>
64999
65000         * doc/gnulib-intro.texi (Copyright): Explain the different license
65001         terms for module descriptions, autoconf macros, tests, documentation.
65002
65003 2007-01-14  Bruno Haible  <bruno@clisp.org>
65004
65005         * modules/striconv-tests: New file.
65006         * tests/test-striconv.c: New file.
65007
65008 2007-01-14  Bruno Haible  <bruno@clisp.org>
65009
65010         * modules/iconv-tests: New file.
65011         * tests/test-iconv.c: New file.
65012
65013 2007-01-14  Bruno Haible  <bruno@clisp.org>
65014
65015         * gnulib-tool (func_get_license): For test modules, use the license of
65016         the main module.
65017
65018 2007-01-14  Bruno Haible  <bruno@clisp.org>
65019
65020         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65021         if iconv is found to exist.
65022
65023 2007-01-14  Bruno Haible  <bruno@clisp.org>
65024
65025         * modules/c-ctype-tests: New file.
65026         * tests/test-c-ctype.c: New file.
65027
65028 2007-01-14  Bruno Haible  <bruno@clisp.org>
65029
65030         * modules/binary-io-tests: New file.
65031         * tests/test-binary-io.sh: New file.
65032         * tests/test-binary-io.c: New file.
65033
65034 2007-01-14  Bruno Haible  <bruno@clisp.org>
65035
65036         * modules/array-oset-tests: New file.
65037         * tests/test-array_oset.c: New file.
65038
65039 2007-01-14  Bruno Haible  <bruno@clisp.org>
65040
65041         * modules/array-list-tests: New file.
65042         * tests/test-array_list.c: New file.
65043
65044 2007-01-14  Bruno Haible  <bruno@clisp.org>
65045
65046         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65047         and make.
65048         Reported by Simon Josefsson in
65049         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65050
65051 2007-01-14  Bruno Haible  <bruno@clisp.org>
65052
65053         * modules/allocsa-tests: New file.
65054         * tests/test-allocsa.c: New file.
65055
65056 2007-01-14  Bruno Haible  <bruno@clisp.org>
65057
65058         * modules/fchdir (Depends-on): Add absolute-header.
65059         * modules/unistd (Depends-on): Likewise.
65060
65061 2006-12-30  Bruno Haible  <bruno@clisp.org>
65062
65063         * modules/fchdir: New file.
65064         * modules/unistd (Files): Add lib/unistd_.h.
65065         (Makefile.am): Generate unistd.h from unistd_.h.
65066         * lib/fchdir.c: New file.
65067         * lib/dirent_.h: New file.
65068         * lib/unistd_.h: New file.
65069         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65070         * m4/fchdir.m4: New file.
65071         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65072         (gl_HEADER_UNISTD): Invoke it.
65073         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65074         function.
65075         * lib/backupfile.c (opendir, closedir): Undefine.
65076         * lib/chown.c (open, close): Undefine.
65077         * lib/clean-temp.c (open, close): Undefine.
65078         * lib/copy-file.c (open, close): Undefine.
65079         * lib/execute.c (open, close): Undefine.
65080         * lib/fsusage.c (open, close): Undefine.
65081         * lib/gc-gnulib.c (open, close): Undefine.
65082         * lib/getcwd.c (opendir, closedir): Undefine.
65083         * lib/glob.c (opendir, closedir): Undefine.
65084         * lib/javacomp.c (open, close): Undefine.
65085         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65086         * lib/openat-proc.c (open, close): Undefine.
65087         * lib/pagealign_alloc.c (open, close): Undefine.
65088         * lib/pipe.c (open, close): Undefine.
65089         * lib/progreloc.c (open, close): Undefine.
65090         * lib/savedir.c (opendir, closedir): Undefine.
65091         * lib/utime.c (open, close): Undefine.
65092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65093
65094 2007-01-10  Bruno Haible  <bruno@clisp.org>
65095
65096         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65097
65098 2007-01-12  Eric Blake  <ebb9@byu.net>
65099
65100         Provide a robust <wchar.h>.  Further simplifications are now
65101         possible in other modules, but not included here.
65102         * modules/wchar: New module.
65103         * m4/wchar.m4: New file.
65104         * lib/wchar_.h: Likewise.
65105         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65106         of the new module.
65107         * MODULES.html.sh (Extended multibyte and wide character utilities):
65108         New section.
65109
65110 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65111
65112         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65113         to a reasonable default for memory allocation.
65114         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65115         file system that reports garbage st_size values for symlinks.
65116         Problem reported by Liyang Hu.
65117
65118 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65119
65120         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65121         Emacs .#* auto-save files).
65122
65123 2007-01-11  Bruno Haible  <bruno@clisp.org>
65124
65125         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65126         directory.
65127
65128 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65129
65130         Use @...@ consistently in lib/wctype_.h.
65131         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65132         on it being set to 1 or 0.
65133         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65134         go back to AC_SUBSTing it.
65135         * modules/wctype (Makefile.am): Undo previous change.
65136
65137 2007-01-10  Eric Blake  <ebb9@byu.net>
65138
65139         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65140         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65141         * modules/wctype (Makefile.am): Likewise.
65142         Reported by Chris McGuire.
65143
65144 2007-01-10  Jim Meyering  <jim@meyering.net>
65145
65146         fts.c: a small readability/maintainability improvement
65147         * lib/fts.c (fts_read): Make this code slightly more readable and
65148         maintainable by hoisting the "sp->fts_cur = p" assignments to
65149         immediately follow the statements that set P.  Derived from
65150         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65151
65152 2007-01-10  Eric Blake  <ebb9@byu.net>
65153
65154         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65155         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65156         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65157         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65158         Reported by Chris McGuire.
65159
65160 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65161
65162         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65163         in sed script.
65164
65165 2007-01-09  Bruno Haible  <bruno@clisp.org>
65166
65167         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65168         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65169         variables.
65170         (func_module): Use them.
65171
65172 2007-01-09  Bruno Haible  <bruno@clisp.org>
65173
65174         * modules/unistr/base: New file.
65175         * lib/unistr.h: New file.
65176
65177         * modules/unistr/u8-to-u16: New file.
65178         * lib/unistr/u8-to-u16.c: New file.
65179
65180         * modules/unistr/u8-to-u32: New file.
65181         * lib/unistr/u8-to-u32.c: New file.
65182
65183         * modules/unistr/u16-to-u8: New file.
65184         * lib/unistr/u16-to-u8.c: New file.
65185
65186         * modules/unistr/u16-to-u32: New file.
65187         * lib/unistr/u16-to-u32.c: New file.
65188
65189         * modules/unistr/u32-to-u8: New file.
65190         * lib/unistr/u32-to-u8.c: New file.
65191
65192         * modules/unistr/u32-to-u16: New file.
65193         * lib/unistr/u32-to-u16.c: New file.
65194
65195         * modules/unistr/u8-check: New file.
65196         * modules/unistr/u16-check: New file.
65197         * modules/unistr/u32-check: New file.
65198         * lib/unistr/u8-check.c: New file.
65199         * lib/unistr/u16-check.c: New file.
65200         * lib/unistr/u32-check.c: New file.
65201
65202         * modules/unistr/u8-chr: New file.
65203         * modules/unistr/u16-chr: New file.
65204         * modules/unistr/u32-chr: New file.
65205         * lib/unistr/u8-chr.c: New file.
65206         * lib/unistr/u16-chr.c: New file.
65207         * lib/unistr/u32-chr.c: New file.
65208
65209         * modules/unistr/u8-cmp: New file.
65210         * modules/unistr/u16-cmp: New file.
65211         * modules/unistr/u32-cmp: New file.
65212         * lib/unistr/u8-cmp.c: New file.
65213         * lib/unistr/u16-cmp.c: New file.
65214         * lib/unistr/u32-cmp.c: New file.
65215
65216         * modules/unistr/u8-cpy: New file.
65217         * modules/unistr/u16-cpy: New file.
65218         * modules/unistr/u32-cpy: New file.
65219         * lib/unistr/u8-cpy.c: New file.
65220         * lib/unistr/u16-cpy.c: New file.
65221         * lib/unistr/u32-cpy.c: New file.
65222         * lib/unistr/u-cpy.h: New file.
65223
65224         * modules/unistr/u8-cpy-alloc: New file.
65225         * modules/unistr/u16-cpy-alloc: New file.
65226         * modules/unistr/u32-cpy-alloc: New file.
65227         * lib/unistr/u8-cpy-alloc.c: New file.
65228         * lib/unistr/u16-cpy-alloc.c: New file.
65229         * lib/unistr/u32-cpy-alloc.c: New file.
65230         * lib/unistr/u-cpy-alloc.h: New file.
65231
65232         * modules/unistr/u8-endswith: New file.
65233         * modules/unistr/u16-endswith: New file.
65234         * modules/unistr/u32-endswith: New file.
65235         * lib/unistr/u8-endswith.c: New file.
65236         * lib/unistr/u16-endswith.c: New file.
65237         * lib/unistr/u32-endswith.c: New file.
65238         * lib/unistr/u-endswith.h: New file.
65239
65240         * modules/unistr/u8-mblen: New file.
65241         * modules/unistr/u16-mblen: New file.
65242         * modules/unistr/u32-mblen: New file.
65243         * lib/unistr/u8-mblen.c: New file.
65244         * lib/unistr/u16-mblen.c: New file.
65245         * lib/unistr/u32-mblen.c: New file.
65246
65247         * modules/unistr/u8-mbtouc: New file.
65248         * modules/unistr/u16-mbtouc: New file.
65249         * modules/unistr/u32-mbtouc: New file.
65250         * lib/unistr/u8-mbtouc.c: New file.
65251         * lib/unistr/u16-mbtouc.c: New file.
65252         * lib/unistr/u32-mbtouc.c: New file.
65253
65254         * modules/unistr/u8-mbtouc-safe: New file.
65255         * modules/unistr/u16-mbtouc-safe: New file.
65256         * modules/unistr/u32-mbtouc-safe: New file.
65257         * lib/unistr/u8-mbtouc-safe.c: New file.
65258         * lib/unistr/u16-mbtouc-safe.c: New file.
65259         * lib/unistr/u32-mbtouc-safe.c: New file.
65260
65261         * modules/unistr/u8-move: New file.
65262         * modules/unistr/u16-move: New file.
65263         * modules/unistr/u32-move: New file.
65264         * lib/unistr/u8-move.c: New file.
65265         * lib/unistr/u16-move.c: New file.
65266         * lib/unistr/u32-move.c: New file.
65267         * lib/unistr/u-move.h: New file.
65268
65269         * modules/unistr/u8-next: New file.
65270         * modules/unistr/u16-next: New file.
65271         * modules/unistr/u32-next: New file.
65272         * lib/unistr/u8-next.c: New file.
65273         * lib/unistr/u16-next.c: New file.
65274         * lib/unistr/u32-next.c: New file.
65275
65276         * modules/unistr/u8-prev: New file.
65277         * modules/unistr/u16-prev: New file.
65278         * modules/unistr/u32-prev: New file.
65279         * lib/unistr/u8-prev.c: New file.
65280         * lib/unistr/u16-prev.c: New file.
65281         * lib/unistr/u32-prev.c: New file.
65282
65283         * modules/unistr/u8-set: New file.
65284         * modules/unistr/u16-set: New file.
65285         * modules/unistr/u32-set: New file.
65286         * lib/unistr/u8-set.c: New file.
65287         * lib/unistr/u16-set.c: New file.
65288         * lib/unistr/u32-set.c: New file.
65289         * lib/unistr/u-set.h: New file.
65290
65291         * modules/unistr/u8-startswith: New file.
65292         * modules/unistr/u16-startswith: New file.
65293         * modules/unistr/u32-startswith: New file.
65294         * lib/unistr/u8-startswith.c: New file.
65295         * lib/unistr/u16-startswith.c: New file.
65296         * lib/unistr/u32-startswith.c: New file.
65297         * lib/unistr/u-startswith.h: New file.
65298
65299         * modules/unistr/u8-stpcpy: New file.
65300         * modules/unistr/u16-stpcpy: New file.
65301         * modules/unistr/u32-stpcpy: New file.
65302         * lib/unistr/u8-stpcpy.c: New file.
65303         * lib/unistr/u16-stpcpy.c: New file.
65304         * lib/unistr/u32-stpcpy.c: New file.
65305         * lib/unistr/u-stpcpy.h: New file.
65306
65307         * modules/unistr/u8-stpncpy: New file.
65308         * modules/unistr/u16-stpncpy: New file.
65309         * modules/unistr/u32-stpncpy: New file.
65310         * lib/unistr/u8-stpncpy.c: New file.
65311         * lib/unistr/u16-stpncpy.c: New file.
65312         * lib/unistr/u32-stpncpy.c: New file.
65313         * lib/unistr/u-stpncpy.h: New file.
65314
65315         * modules/unistr/u8-strcat: New file.
65316         * modules/unistr/u16-strcat: New file.
65317         * modules/unistr/u32-strcat: New file.
65318         * lib/unistr/u8-strcat.c: New file.
65319         * lib/unistr/u16-strcat.c: New file.
65320         * lib/unistr/u32-strcat.c: New file.
65321         * lib/unistr/u-strcat.h: New file.
65322
65323         * modules/unistr/u8-strchr: New file.
65324         * modules/unistr/u16-strchr: New file.
65325         * modules/unistr/u32-strchr: New file.
65326         * lib/unistr/u8-strchr.c: New file.
65327         * lib/unistr/u16-strchr.c: New file.
65328         * lib/unistr/u32-strchr.c: New file.
65329
65330         * modules/unistr/u8-strcmp: New file.
65331         * modules/unistr/u16-strcmp: New file.
65332         * modules/unistr/u32-strcmp: New file.
65333         * lib/unistr/u8-strcmp.c: New file.
65334         * lib/unistr/u16-strcmp.c: New file.
65335         * lib/unistr/u32-strcmp.c: New file.
65336
65337         * modules/unistr/u8-strcpy: New file.
65338         * modules/unistr/u16-strcpy: New file.
65339         * modules/unistr/u32-strcpy: New file.
65340         * lib/unistr/u8-strcpy.c: New file.
65341         * lib/unistr/u16-strcpy.c: New file.
65342         * lib/unistr/u32-strcpy.c: New file.
65343         * lib/unistr/u-strcpy.h: New file.
65344
65345         * modules/unistr/u8-strcspn: New file.
65346         * modules/unistr/u16-strcspn: New file.
65347         * modules/unistr/u32-strcspn: New file.
65348         * lib/unistr/u8-strcspn.c: New file.
65349         * lib/unistr/u16-strcspn.c: New file.
65350         * lib/unistr/u32-strcspn.c: New file.
65351         * lib/unistr/u-strcspn.h: New file.
65352
65353         * modules/unistr/u8-strdup: New file.
65354         * modules/unistr/u16-strdup: New file.
65355         * modules/unistr/u32-strdup: New file.
65356         * lib/unistr/u8-strdup.c: New file.
65357         * lib/unistr/u16-strdup.c: New file.
65358         * lib/unistr/u32-strdup.c: New file.
65359         * lib/unistr/u-strdup.h: New file.
65360
65361         * modules/unistr/u8-strlen: New file.
65362         * modules/unistr/u16-strlen: New file.
65363         * modules/unistr/u32-strlen: New file.
65364         * lib/unistr/u8-strlen.c: New file.
65365         * lib/unistr/u16-strlen.c: New file.
65366         * lib/unistr/u32-strlen.c: New file.
65367         * lib/unistr/u-strlen.h: New file.
65368
65369         * modules/unistr/u8-strmblen: New file.
65370         * modules/unistr/u16-strmblen: New file.
65371         * modules/unistr/u32-strmblen: New file.
65372         * lib/unistr/u8-strmblen.c: New file.
65373         * lib/unistr/u16-strmblen.c: New file.
65374         * lib/unistr/u32-strmblen.c: New file.
65375
65376         * modules/unistr/u8-strmbtouc: New file.
65377         * modules/unistr/u16-strmbtouc: New file.
65378         * modules/unistr/u32-strmbtouc: New file.
65379         * lib/unistr/u8-strmbtouc.c: New file.
65380         * lib/unistr/u16-strmbtouc.c: New file.
65381         * lib/unistr/u32-strmbtouc.c: New file.
65382
65383         * modules/unistr/u8-strncat: New file.
65384         * modules/unistr/u16-strncat: New file.
65385         * modules/unistr/u32-strncat: New file.
65386         * lib/unistr/u8-strncat.c: New file.
65387         * lib/unistr/u16-strncat.c: New file.
65388         * lib/unistr/u32-strncat.c: New file.
65389         * lib/unistr/u-strncat.h: New file.
65390
65391         * modules/unistr/u8-strncmp: New file.
65392         * modules/unistr/u16-strncmp: New file.
65393         * modules/unistr/u32-strncmp: New file.
65394         * lib/unistr/u8-strncmp.c: New file.
65395         * lib/unistr/u16-strncmp.c: New file.
65396         * lib/unistr/u32-strncmp.c: New file.
65397
65398         * modules/unistr/u8-strncpy: New file.
65399         * modules/unistr/u16-strncpy: New file.
65400         * modules/unistr/u32-strncpy: New file.
65401         * lib/unistr/u8-strncpy.c: New file.
65402         * lib/unistr/u16-strncpy.c: New file.
65403         * lib/unistr/u32-strncpy.c: New file.
65404         * lib/unistr/u-strncpy.h: New file.
65405
65406         * modules/unistr/u8-strnlen: New file.
65407         * modules/unistr/u16-strnlen: New file.
65408         * modules/unistr/u32-strnlen: New file.
65409         * lib/unistr/u8-strnlen.c: New file.
65410         * lib/unistr/u16-strnlen.c: New file.
65411         * lib/unistr/u32-strnlen.c: New file.
65412         * lib/unistr/u-strnlen.h: New file.
65413
65414         * modules/unistr/u8-strpbrk: New file.
65415         * modules/unistr/u16-strpbrk: New file.
65416         * modules/unistr/u32-strpbrk: New file.
65417         * lib/unistr/u8-strpbrk.c: New file.
65418         * lib/unistr/u16-strpbrk.c: New file.
65419         * lib/unistr/u32-strpbrk.c: New file.
65420         * lib/unistr/u-strpbrk.h: New file.
65421
65422         * modules/unistr/u8-strrchr: New file.
65423         * modules/unistr/u16-strrchr: New file.
65424         * modules/unistr/u32-strrchr: New file.
65425         * lib/unistr/u8-strrchr.c: New file.
65426         * lib/unistr/u16-strrchr.c: New file.
65427         * lib/unistr/u32-strrchr.c: New file.
65428
65429         * modules/unistr/u8-strspn: New file.
65430         * modules/unistr/u16-strspn: New file.
65431         * modules/unistr/u32-strspn: New file.
65432         * lib/unistr/u8-strspn.c: New file.
65433         * lib/unistr/u16-strspn.c: New file.
65434         * lib/unistr/u32-strspn.c: New file.
65435         * lib/unistr/u-strspn.h: New file.
65436
65437         * modules/unistr/u8-strstr: New file.
65438         * modules/unistr/u16-strstr: New file.
65439         * modules/unistr/u32-strstr: New file.
65440         * lib/unistr/u8-strstr.c: New file.
65441         * lib/unistr/u16-strstr.c: New file.
65442         * lib/unistr/u32-strstr.c: New file.
65443         * lib/unistr/u-strstr.h: New file.
65444
65445         * modules/unistr/u8-strtok: New file.
65446         * modules/unistr/u16-strtok: New file.
65447         * modules/unistr/u32-strtok: New file.
65448         * lib/unistr/u8-strtok.c: New file.
65449         * lib/unistr/u16-strtok.c: New file.
65450         * lib/unistr/u32-strtok.c: New file.
65451         * lib/unistr/u-strtok.h: New file.
65452
65453         * modules/unistr/u8-uctomb: New file.
65454         * modules/unistr/u16-uctomb: New file.
65455         * modules/unistr/u32-uctomb: New file.
65456         * lib/unistr/u8-uctomb.c: New file.
65457         * lib/unistr/u16-uctomb.c: New file.
65458         * lib/unistr/u32-uctomb.c: New file.
65459
65460         * MODULES.html.sh (Unicode string functions): Add the new modules.
65461
65462 2007-01-08  Bruno Haible  <bruno@clisp.org>
65463
65464         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65465         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65466         subdirectories.
65467
65468 2007-01-08  Karl Berry  <karl@gnu.org>
65469
65470         * doc/error.texi: mention that main() fns must set program_name
65471         when progname is used.
65472
65473 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65474
65475         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65476         WCTYPE_H is empty, for the benefit of builds from non-distclean
65477         directories.  Problem reported by Eric Blake in
65478         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65479
65480 2007-01-08  Bruno Haible  <bruno@clisp.org>
65481
65482         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65483         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65484         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65485         PROVIDE_CANONICALIZE_FILENAME_MODE.
65486         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65487
65488 2007-01-08  Bruno Haible  <bruno@clisp.org>
65489
65490         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65491         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65492         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65493         * lib/fts.c: Likewise.
65494         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65495
65496 2006-12-25  Bruno Haible  <bruno@clisp.org>
65497
65498         * modules/utf8-ucs4-safe: New file.
65499         * lib/utf8-ucs4-safe.h: New file.
65500         * lib/unistr/utf8-ucs4-safe.c: New file.
65501
65502         * modules/utf16-ucs4-safe: New file.
65503         * lib/utf16-ucs4-safe.h: New file.
65504         * lib/unistr/utf16-ucs4-safe.c: New file.
65505
65506         * MODULES.html.sh (Unicode string functions): Add the new modules.
65507
65508 2007-01-08  Bruno Haible  <bruno@clisp.org>
65509
65510         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65511         (Depends-on): Add unitypes.
65512         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65513         (u8_mbtouc_aux): Move out to separate file.
65514         (u8_mbtouc): Use ucs4_t, uint8_t types.
65515         * lib/unistr/utf8-ucs4.c: New file.
65516
65517         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65518         (Depends-on): Add unitypes.
65519         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65520         (u16_mbtouc_aux): Move out to separate file.
65521         (u16_mbtouc): Use ucs4_t, uint16_t types.
65522         * lib/unistr/utf16-ucs4.c: New file.
65523
65524         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65525         (Depends-on): Add unitypes.
65526         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65527         (u8_uctomb_aux): Move out to separate file.
65528         (u8_uctomb): Use ucs4_t, uint8_t types.
65529         * lib/unistr/ucs4-utf8.c: New file.
65530
65531         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65532         (Depends-on): Add unitypes.
65533         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65534         (u16_uctomb_aux): Move out to separate file.
65535         (u16_uctomb): Use ucs4_t, uint16_t types.
65536         * lib/unistr/ucs4-utf16.c: New file.
65537
65538 2006-12-25  Bruno Haible  <bruno@clisp.org>
65539
65540         * modules/unitypes: New file.
65541         * lib/unitypes.h: New file.
65542         * MODULES.html.sh (func_all_modules): New section "Unicode string
65543         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65544         this section. Add unitypes.
65545
65546 2007-01-08  Bruno Haible  <bruno@clisp.org>
65547
65548         Avoid variable names that conflict with those from libtool.
65549         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65550         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65551         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65552         library_names_spec to acl_library_names_spec, hardcode_* to
65553         acl_hardcode_*.
65554         Reported by Ralf Wildenhues.
65555
65556 2007-01-08  Bruno Haible  <bruno@clisp.org>
65557
65558         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65559         definition.
65560         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65561         definition.
65562         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65563         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65564         definition.
65565         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65566         definition.
65567         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65568         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65569         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65570         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65571         definition.
65572         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65573         definition.
65574         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65575         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65576         GC_USE_<algorithm>.
65577         * lib/gc-libgcrypt.c: Likewise.
65578         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65579         * modules/gc-arctwo (configure.ac): Likewise.
65580         * modules/gc-des (configure.ac): Likewise.
65581         * modules/gc-hmac-md5 (configure.ac): Likewise.
65582         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65583         * modules/gc-md2 (configure.ac): Likewise.
65584         * modules/gc-md4 (configure.ac): Likewise.
65585         * modules/gc-md5 (configure.ac): Likewise.
65586         * modules/gc-random (configure.ac): Likewise.
65587         * modules/gc-rijndael (configure.ac): Likewise.
65588         * modules/gc-sha1 (configure.ac): Likewise.
65589
65590 2007-01-08  Bruno Haible  <bruno@clisp.org>
65591
65592         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65593         macro definition.
65594         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65595         definition.
65596         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65597         definition.
65598         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65599         * modules/fcntl-safer (configure.ac): Likewise.
65600         * modules/fopen-safer (configure.ac): Likewise.
65601         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65602         GNULIB_FWRITEERROR macro definition.
65603
65604 2007-01-08  Bruno Haible  <bruno@clisp.org>
65605
65606         * m4/gnulib-common.m4: New file.
65607         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65608         (func_get_filelist): Add m4/gnulib-common.m4.
65609
65610 2007-01-08  Bruno Haible  <bruno@clisp.org>
65611
65612         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65613         command.
65614
65615 2007-01-08  Jim Meyering  <jim@meyering.net>
65616
65617         Use a more robust test for a "can't happen" condition.
65618         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65619         narrowed the st_size value.  Presuming the "can't happen" condition
65620         is true, that narrowing could conceivably convert an invalid st_size
65621         value into a valid one.  Instead, use a change based on Matthew
65622         Woehlke's original patch.
65623
65624         Slight readability improvement: use an assert-like macro
65625         in place of literal "abort ()" uses.
65626         * lib/fts.c (fts_assert): Define.
65627         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65628         Use this macro instead of a bare 'abort'.
65629
65630 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65631
65632         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65633         simply work around them.
65634         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65635         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65636         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65637         declaring.
65638         Don't bother to define as macros, since the standard doesn't require it.
65639         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65640         longer worry about IRIX 5.3.
65641         (HAVE_WCTYPE_CTMP_BUG): Remove.
65642
65643 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65644
65645         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65646         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65647         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65648         Problems reported by Georg Schwarz for IRIX 5.3.
65649
65650         * gnulib-tool (autoconf_minversion): Take the maximum version number
65651         found, not the minimum.  Problem reported by James Youngman.
65652
65653 2007-01-03  Karl Berry  <karl@gnu.org>
65654
65655         * doc/error.texi: new file, explaining interaction with progname.
65656         * doc/gnulib.texi: include it.  Update copyright.
65657
65658 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65659
65660         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65661         AC_CANONICAL_HOST, to improve autobuild outputs.
65662
65663 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65664             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65665
65666         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65667         sockets, server sockets, and other file descriptors.  Count errors
65668         to compute the return value.  Reorder the code a bit to be easier
65669         to follow.  Don't set event bits that were not requested (except
65670         POLLERR and POLLHUP).
65671
65672 2007-01-01  Bruno Haible  <bruno@clisp.org>
65673
65674         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65675
65676 2007-01-03  Jim Meyering  <jim@meyering.net>
65677
65678         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65679
65680 2007-01-02  Bruno Haible  <bruno@clisp.org>
65681
65682         * modules/settime (Include): Require timespec.h.
65683         * modules/nanosleep (Include): Likewise.
65684
65685 2007-01-01  Bruno Haible  <bruno@clisp.org>
65686
65687         * gnulib-tool (func_emit_copyright_notice): Bump year.
65688         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65689
65690 2007-01-01  Bruno Haible  <bruno@clisp.org>
65691
65692         Improve support for OpenBSD.
65693         * build-aux/config.rpath (libname_spec): Export.
65694         (library_names_spec): New variable. Export.
65695         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65696         library_names_spec from the config.rpath output. Locate shared library
65697         through the name pattern in library_names_spec.
65698
65699 2007-01-01  Eric Blake  <ebb9@byu.net>
65700
65701         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65702
65703 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65706         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65707         assume the C locale, and avoid an "eval" that could cause trouble.
65708         Problem with SORT reported by Bob Proulx.
65709
65710         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65711         Define.  Trivial patch from Henning Nielsen Lund, originally
65712         sent to bug-grep@gnu.org today.
65713
65714 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65715
65716         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65717         struct stat.  Problem reported by Henning Nielsen Lund.
65718         * lib/acl.c: Include acl.h first, to check interface.  Don't
65719         bother to include sys/types.h and sys/stat.h again.
65720
65721 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65722
65723         Import the following change from libc; problem reported by
65724         Sven Verdoolaege.
65725
65726         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65727
65728         [BZ #1373]
65729         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65730
65731 2006-12-28  Jim Meyering  <jim@meyering.net>
65732
65733         * build-aux/announce-gen: Do not assume that the package
65734         builds any of tar.gz, tar.bz2, and .xdelta files.
65735         Suggestion from Simon Josefsson.
65736
65737 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65738
65739         * modules/announce-gen: New file.
65740
65741 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65742
65743         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65744         handles its gotchas now.
65745         * lib/mbswidth.c: Likewise.
65746         * lib/wcwidth.h: Likewise.
65747         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65748         and iswcntrl; the wctype module does this stuff now.
65749         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65751         * modules/mbchar (Depends-on): Add wctype.
65752         * modules/mbswidth (Depends-on): Likewise.
65753         * modules/wcwidth (Depends-on): Likewise.
65754
65755 2006-12-27  Eric Blake  <ebb9@byu.net>
65756
65757         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65758         module uses more than what <wctype.h> is required to provide.
65759
65760 2006-12-26  Eric Blake  <ebb9@byu.net>
65761
65762         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65763
65764 2006-12-26  Eric Blake  <ebb9@byu.net>
65765
65766         * modules/absolute-header: New module.
65767         * modules/fcntl (Depends-on): Depend on it.
65768         * modules/inttypes (Depends-on): Likewise.
65769         * modules/stdint (Depends-on): Likewise.
65770         * modules/sys_stat (Depends-on): Likewise.
65771         * modules/wctype (Depends-on): Likewise.
65772         * MODULES.html.sh (Support for building libraries and
65773         executables): Document it.
65774
65775 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         * gnulib-tool (SED): Remove, undoing previous change.
65778         The problem was that it broke coreutils on Solaris, because
65779         "sed --posix" leaked into a makefile.
65780         (sed): New alias, if 'alias' and GNU sed.
65781
65782 2006-12-24  Jim Meyering  <jim@meyering.net>
65783
65784         Work around an fchownat bug in glibc-2.4:
65785         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65786         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65787         in spite of the -P option.
65788         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65789         New macros.
65790         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65791         * modules/openat (Files): Add lib/fchownat.c.
65792         * lib/openat.c (fchownat): Don't define here.  Move to...
65793         * lib/fchownat.c: ...this new file.
65794
65795 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65796
65797         Fix bug reported by Bruno Haible in
65798         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65799         where quotearg.c didn't compile on Mac OS X 10.2 because it
65800         lacks <wchar.h> and wint_t.
65801         * lib/wctype_.h (__wctype_wint_t): New type.
65802         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65803         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65804         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65805         Arg is now of type __wctype_wint_t, not wint_t.
65806         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65807         substitute HAVE_WINT_T.
65808         * modules/wctype (Files): Add m4/wint_t.m4.
65809         (wctype.h): Substitute HAVE_WINT_T.
65810
65811 2006-12-23  Bruno Haible  <bruno@clisp.org>
65812
65813         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65814
65815 2006-12-23  Bruno Haible  <bruno@clisp.org>
65816
65817         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65818         S_ISLNK.
65819         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65820         mingw.
65821
65822 2006-12-22  Bruno Haible  <bruno@clisp.org>
65823
65824         * lib/copy-file.c: Include acl.h.
65825         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65826         Close the file descriptors only after being done with copy_acl.
65827         * modules/copy-file (Depends-on): Add acl.
65828
65829 2006-12-22  Bruno Haible  <bruno@clisp.org>
65830
65831         * gnulib-tool (SED): New variable.
65832         Use $SED instead of sed everywhere.
65833
65834 2006-12-22  Bruno Haible  <bruno@clisp.org>
65835
65836         * modules/no-c++: New file.
65837         * m4/no-c++.m4: New file.
65838         * MODULES.html.sh (Support for building libraries and executables):
65839         Add no-c++.
65840
65841 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65842
65843         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65844         Include <limits.h>, and use its INT_MAX to rewrite the
65845         j loop so that it does not overflow 'int'.  Problem reported by
65846         Ralf Wildenhues in
65847         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65848         Play it safe by shifting left by 1 rather than multiplying by 2,
65849         as GCC is less likely to optimize this away when the value
65850         is signed (when it assumes overflow leads to undefined behavior).
65851         Also, don't assume time_t uses two's complement.
65852
65853 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * MODULES.html.sh: New module wctype.
65856         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65857         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65858         <wctype.h>, since the new wctype module should fix this.
65859         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65860         the wctype module should arrange for it.
65861         * lib/regex_internal.h: Likewise.
65862         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65863         since the wctype module should handle this now.
65864         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65865         * modules/fnmatch (Depends-on): Add wctype.
65866         * modules/quotearg (Depends-on): Likewise.
65867         * modules/regex (Depends-on): Likewise.
65868
65869 2006-12-19  Bruno Haible  <bruno@clisp.org>
65870
65871         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65872         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65873
65874 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65875
65876         * modules/savewd (Depends-on): Fix dependency on fcntl.
65877
65878 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65879
65880         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65881         conforms to C99, rather than relying on the user's environment
65882         setting of STDINT_H.
65883
65884 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65885         and Eric Blake  <ebb9@byu.net>
65886
65887         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65888         This is more consistent with the other defines here.
65889         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65890         Port to z/OS.  Problem reported by Paul Gilmartin.
65891         Change local vars to use gl_ prefix rather than ac_.
65892         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65893         with other defines.
65894         * modules/double-slash-root: New module.
65895         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65896         (Depends-on): Add double-slash-root.
65897         * MODULES.html.sh (File system functions): Mention new module.
65898
65899 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65900
65901         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65902         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65903         This is for the benefit of gzip, which doesn't do i18n.
65904
65905 2006-12-12  Jim Meyering  <jim@meyering.net>
65906
65907         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65908         Reported by Andreas Schwab <schwab@suse.de>.
65909
65910 2006-12-12  Bruno Haible  <bruno@clisp.org>
65911
65912         Merge these changes.
65913         2006-09-05  Bruno Haible  <bruno@clisp.org>
65914         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65915         iconv_alloc succeeded.
65916         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65917         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65918         test for " && dest " at the end - dest is always != NULL there. Call
65919         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65920         with 2xNULL arguments, also to flush the state storage. Handle the
65921         IRIX iconv behaviour. Realloc the final result, to throw away unused
65922         memory.
65923
65924 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65925
65926         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65927         and fchmodat unconditionally, since glibc 2.4 has them.
65928         Problem reported by Arkadiusz Miskiewicz.
65929
65930 2006-12-10  Bruno Haible  <bruno@clisp.org>
65931
65932         * gnulib-tool (func_import): Show the include files only for those
65933         modules that are copied and specified.
65934         Reported by Karl Berry.
65935
65936 2006-12-08  Jim Meyering  <jim@meyering.net>
65937
65938         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65939         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65940
65941         * build-aux/announce-gen: Add two new options, both optional:
65942         --bootstrap-tools=TOOL_LIST
65943               a comma-separated list of tools, e.g.,
65944               autoconf,automake,bison,gnulib
65945         --gnulib-snapshot-date=DATE
65946               if gnulib is in the bootstrap tool list,
65947               then report this as the snapshot date.
65948               If not specified, use the current date/time.
65949               If you specify a date here, be sure it's UTC.
65950
65951 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65952
65953         * tests/test-argp-2.sh: Fix test to match actual output.
65954         (func_compare): Fix sed script to be portable.
65955
65956 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65957
65958         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65959         workaround for this case.  It is not autoconfigured now; offhand
65960         it's hard to see how to autoconfigure it.
65961
65962 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65963
65964         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65965         a directory that is about to be chowned.  Such a directory's
65966         initial file permissions should permit the owner only and this
65967         should not be changed until after the chown, since the group and
65968         other bits would be incorrect if they granted permission before
65969         the chown.
65970
65971         Fix porting problem for iswctype reported by Georg Schwarz in:
65972         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65973         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65974         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65975         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65976         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65977
65978 2006-12-03  Jim Meyering  <jim@meyering.net>
65979
65980         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65981         p->fts_statp may not yet be defined.
65982         (fts_read): Instead, set it in the caller, once p->fts_statp is
65983         sure to be defined, and corresponds to a top-level directory.
65984         This bug made du -x fail.  Here's the coreutils test case:
65985         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65986         Reported by Mike Frysinger.
65987
65988 2006-12-01  Jim Meyering  <jim@meyering.net>
65989
65990         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
65991         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
65992         Reported by Simon Josefsson.
65993
65994 2006-11-30  Jim Meyering  <jim@meyering.net>
65995
65996         * m4/warning.m4: Use the all-permissive copyright notice
65997         recommended by RMS (rather than LGPL).
65998         * m4/vararrays.m4: Likewise.
65999         * m4/flexmember.m4: Likewise.
66000
66001 2006-11-29  Bruno Haible  <bruno@clisp.org>
66002
66003         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66004         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66005         using +=.
66006         Reported by Simon Josefsson <simon@josefsson.org>.
66007
66008 2006-11-28  James Youngman <jay@gnu.org>
66009
66010         * README: Advise users that they might find the bug-gnulib@gnu.org
66011         and autotools-announce@gnu.org mailing lists useful.
66012
66013 2006-11-28  Bruno Haible  <bruno@clisp.org>
66014
66015         * m4/ptrdiff_max.m4: Remove file.
66016
66017 2006-11-21  Bruno Haible  <bruno@clisp.org>
66018
66019         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66020         _AC_COMPUTE_INT.
66021         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66022         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66023         _AC_COMPUTE_INT.
66024         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66025         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66026         _AC_COMPUTE_INT.
66027         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66028
66029 2006-11-28  Jim Meyering  <jim@meyering.net>
66030
66031         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66032         warning from "gcc -Wshadow" about shadowing the builtin.
66033
66034 2006-11-27  Bruno Haible  <bruno@clisp.org>
66035
66036         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66037         _AC_COMPUTE_INT.
66038         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66039
66040 2006-11-27  Bruno Haible  <bruno@clisp.org>
66041             Paul Eggert  <eggert@cs.ucla.edu>
66042
66043         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66044
66045 2006-11-26  Bruno Haible  <bruno@clisp.org>
66046
66047         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66048         noinst_LTLIBRARIES.
66049
66050 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66051             Bruno Haible  <bruno@clisp.org>
66052
66053         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66054         if compiling with "gcc -ansi".
66055
66056 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66057
66058         Fix some incompatibilities with gcc -ansi -pedantic.
66059         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66060         if compiling pedantically with GCC, unless it's C99 or later.
66061         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66062         it mishandles gcc -ansi -pedantic as well.
66063         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66064         if gcc -pedantic.
66065         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66066         initializers for struct if -pedantic, unless it's C99 or later.
66067
66068 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66069
66070         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66071         Don't close an fd more than once. Identical atimes indicate
66072         success, not failure.
66073
66074 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66075
66076         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66077
66078 2006-11-23  Jim Meyering  <jim@meyering.net>
66079
66080         * build-aux/announce-gen: New file.  From coreutils.
66081
66082 2006-11-22  Jim Meyering  <jim@meyering.net>
66083
66084         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66085         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66086         (fts_read): Use a temporary to narrow the overused st_size member
66087         before using it in a switch statement.  Reported by Matthew Woehlke.
66088
66089         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66090         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66091
66092 2006-11-20  Bruno Haible  <bruno@clisp.org>
66093
66094         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66095         changequote instead of pairs of brackets.
66096         Reported by Andreas Schwab <schwab@suse.de>.
66097
66098 2006-11-21  Jim Meyering  <jim@meyering.net>
66099
66100         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66101         so as to remain compatible with older compilers.
66102         Patch from Michael Deutschmann.
66103
66104 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66105
66106         * MODULES.html.sh (File system functions): Add openat.
66107
66108         * lib/openat.h (rpl_fstatat): New macro, if
66109         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66110         (fstatat): Define to rpl_fstatat under the same conditions,
66111         unless COMPILING_FSTATAT.
66112         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66113         seems to have the bug.
66114         * lib/fstatat.c: New file.
66115         * modules/openat (Files): Add it.
66116
66117 2006-11-20  Bruno Haible  <bruno@clisp.org>
66118
66119         * Makefile: New file.
66120
66121 2006-11-20  Jim Meyering  <jim@meyering.net>
66122
66123         The beginnings of syntax-related checks for gnulib.
66124         * lib/Makefile: New file.
66125         * lib/t-idcache: New script.  Ensure that the two halves of
66126         idcache.c stay in sync.
66127
66128         * lib/idcache.c: Adjust comments in user- and group- portions to
66129         be more accurate, and to be consistent with one another.
66130
66131 2006-11-20  Jim Meyering  <jim@meyering.net>
66132
66133         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66134         continue using the flexible array member (thus, this module performs
66135         half as many malloc calls), with the addition that...
66136         (getgroup, getuser): Consistently record a non-match via an empty
66137         "name" string, and map an empty string match to a NULL return value.
66138         * modules/idcache (Depends-on): Re-add flexmember.
66139
66140         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66141         (getuidbyname, getgroup, getgidbyname): Likewise.
66142
66143         Use cleaner syntax: NULL rather than 0.
66144         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66145
66146 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66147
66148         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66149         It mishandled the case where the group was missing.
66150         Problem reported by Greg Schafer.
66151         * modules/idcache: Likewise.
66152
66153 2006-11-18  Jim Meyering  <jim@meyering.net>
66154
66155         * check-module (%exempt_header): Add exception for some
66156         conditionally-included headers.
66157
66158         * modules/i-ring (Depends-on): Add verify.
66159         (License): Change to LGPL.
66160
66161 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66162
66163         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66164         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66165         and inttostr.h.  Use snprintf rather than uinttostr, so that
66166         LGPLed code doesn't depend on GPLed.
66167
66168 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66169
66170         * modules/inline (License): Change from GPL to LGPL.
66171
66172 2006-11-17  Jim Meyering  <jim@meyering.net>
66173
66174         * modules/d-type (License): Switch to LGPL.
66175
66176 2006-11-15  Bruno Haible  <bruno@clisp.org>
66177
66178         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66179
66180 2006-11-15  Eric Blake  <ebb9@byu.net>
66181
66182         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66183         the module dependency.
66184
66185 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66186             Bruno Haible  <bruno@clisp.org>
66187
66188         * gnulib-tool (func_create_testdir): Add license consistency check.
66189
66190 2006-11-15  Eric Blake  <ebb9@byu.net>
66191
66192         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66193         random "(cached)" in configure output.
66194
66195 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66196
66197         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66198         test for conforming inttypes.h is both announced and cached.
66199
66200         * MODULES.html.sh (seen_modules, seen_files): New variables.
66201         (func_module): Rewrite to use a few less gnulib-tool and sed
66202         invocations.  Avoid a couple of quadratic algorithms for ...
66203         (missed_modules, missed_files): ... these, with ...
66204         (func_append, func_tmpdir): ... these new functions, from
66205         gnulib-tool.  Analogously, install traps for cleanup.
66206
66207         * tests/test-gc.c (main): Remove unused variables.
66208         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66209
66210 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66211
66212         * modules/inttostr (License): Change to LGPL.
66213
66214 2006-11-14  Eric Blake  <ebb9@byu.net>
66215
66216         * modules/tempname (License): Change to LGPL.
66217
66218 2006-11-14  Eric Blake  <ebb9@byu.net>
66219
66220         * doc/functions.texi (Function Portability): *printf functions on
66221         Cygwin now understand all POSIX size specifiers.
66222
66223 2006-11-14  Bruno Haible  <bruno@clisp.org>
66224
66225         * modules/c-ctype (License): Change to LGPL.
66226
66227 2006-11-12  Bruno Haible  <bruno@clisp.org>
66228
66229         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66230         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66231         for GNOME libraries, for which the include files are installed in
66232         subdirectories of $prefix/include.
66233
66234 2006-11-12  Bruno Haible  <bruno@clisp.org>
66235
66236         * m4/lib-link.m4: Require at least autoconf-2.54.
66237         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66238         name to underscores for the --with option.
66239
66240 2006-11-13  Bruno Haible  <bruno@clisp.org>
66241
66242         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66243         the tests directory.
66244         Reported by Ralf Wildenhues.
66245
66246 2006-11-13  Bruno Haible  <bruno@clisp.org>
66247
66248         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66249         (func_emit_initmacro_end): Undo the override here.
66250         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66251         Works around the famous automake error in coreutils.
66252
66253 2006-11-13  Eric Blake  <ebb9@byu.net>
66254
66255         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66256         element, not its node.
66257
66258 2006-11-12  Bruno Haible  <bruno@clisp.org>
66259
66260         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66261         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66262
66263 2006-11-12  Bruno Haible  <bruno@clisp.org>
66264
66265         * gnulib-tool: New option --local-symlink.
66266         (func_usage): Document it.
66267         (lsymbolic): New variable.
66268         (func_import, func_create_testdir): If --symlink was not specified,
66269         test whether --local-symlink was specified and the file comes from
66270         the local_gnulib_dir.
66271
66272 2006-11-12  Bruno Haible  <bruno@clisp.org>
66273
66274         * gnulib-tool (func_ln): New function.
66275         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66276
66277 2006-11-12  Bruno Haible  <bruno@clisp.org>
66278
66279         Finish support for source files in subdirectories.
66280         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66281         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66282         AUTOMAKE_OPTIONS.
66283         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66284
66285 2006-11-12  Bruno Haible  <bruno@clisp.org>
66286
66287         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66288         EXTRA_lib_SOURCES augmentation.
66289         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66290
66291 2006-11-12  Jim Meyering  <jim@meyering.net>
66292
66293         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66294         file descriptors.  This also averts a failure on systems with
66295         native openat support when a traversed directory lacks "x" access.
66296         * lib/fts_.h: Include "i-ring.h"
66297         (struct FTS) [fts_fd_ring]: New member.
66298         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66299         (FCHDIR): Add parentheses.
66300         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66301         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66302         When descending, rather than simply closing the previous
66303         fts_cwd_fd value, push that file descriptor onto the ring.
66304         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66305         (fts_open): Initialize the new fd_ring member.
66306         (fts_close): Clear the ring.
66307         (fts_safe_changedir): When possible, use our new fd_ring to skip
66308         the diropen and fstat and dev/ino comparison that would normally
66309         accompany a virtual `chdir ("..")'.
66310
66311         * modules/fts (Depends-on): Add i-ring.
66312         * modules/i-ring: New module.
66313         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66314         * m4/i-ring.m4: New file.
66315
66316 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66317
66318         * gnulib-tool (func_create_testdir): Fix replacement of
66319         `build-aux' in configure.ac.  Run autotools in gltests
66320         subdirectory.
66321         (func_create_testdir, func_create_megatestdir, test): There is
66322         no need for '--force' in most autotool invocations in a new
66323         tree.  Actually fail the whole test if any of the tools, or the
66324         configure or make stages fail.
66325
66326         Sync from Automake.
66327         * build-aux/gnupload: Revert last change.  Add pointer to upload
66328         instructions of the GNU Maintenance Instructions.
66329         Suggestion by Karl Berry.
66330
66331 2006-11-10  Jim Meyering  <jim@meyering.net>
66332
66333         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66334
66335 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66336
66337         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66338         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66339         (bind_textdomain_codeset) [! ENABLE_NLS]:
66340         Evaluate all the arguments.  That way, callers get compatible behavior
66341         if the arguments have side effects.  Also, it avoids some GCC
66342         diagnostics in some cases; Joel E. Denny reported problems when Bison
66343         was configured with --enable-gcc-warnigs.
66344
66345 2006-11-10  Jim Meyering  <jim@meyering.net>
66346
66347         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66348         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66349         account.
66350
66351 2006-11-10  Jim Meyering  <jim@meyering.net>
66352
66353         * modules/inline: New file/module.
66354         * modules/xalloc (Files): Remove m4/inline.m4.
66355         (Depends-on): Add inline, instead.
66356         * modules/oset: Likewise.
66357         * modules/list: Likewise.
66358
66359 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66360
66361         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66362         Problem reported by Matthew Woehlke.
66363
66364 2006-11-09  Bruno Haible  <bruno@clisp.org>
66365
66366         * lib/tempname.c (gen_tempname): Remove variant that invokes
66367         __gen_tempname.
66368         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66369         __gen_tempname.
66370
66371 2006-11-08  Bruno Haible  <bruno@clisp.org>
66372
66373         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66374         to 'yes' instead of 'cross-compiling'.
66375
66376 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66377
66378         * lib/quotearg.h (quotearg_free): New decl.
66379         * lib/quotearg.c (quotearg_free): New function.
66380         (slot0, nslots, slotvec0, slotvec):
66381         Now file-scope so that quotearg_free can get at them.
66382
66383 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66384
66385         Sync from Automake.
66386         * build-aux/gnupload: Add missing 'gnu' to example URL.
66387         Report by Karl Berry.
66388
66389 2006-11-08  Bruno Haible  <bruno@clisp.org>
66390
66391         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66392         Suggested by Paul Eggert.
66393
66394 2006-11-08  Jim Meyering  <jim@meyering.net>
66395
66396         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66397         It's already included if !_LIBC.
66398         (fts_safe_changedir): Add a comment.
66399
66400 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66401
66402         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66403         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66404         Matthew Woehlke.
66405
66406         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66407         definitions up, to avoid colliding with change below.
66408         (static_inline) [HAVE_INLINE]: New macro.
66409         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66410         Provide extern decls when !HAVE_INLINE.  Do not define unless
66411         static_inline is defined, either by us or by xmalloc.c.  Use
66412         static_inline rather than static inline.
66413         (XCALLOC): Optimize sizeof(T) = 1 case.
66414         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66415
66416 2006-11-07  Bruno Haible  <bruno@clisp.org>
66417
66418         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66419         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66420         AC_C_INLINE.
66421         * modules/xalloc (Files): Add m4/inline.m4.
66422
66423 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66424
66425         * README: Fix typo.
66426         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66427         (Miscellanous Notes): ...from this.
66428
66429 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66430
66431         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66432         Mention that offsetof should be used instead of sizeof.
66433         From Bruno Haible.
66434
66435 2006-11-07  Bruno Haible  <bruno@clisp.org>
66436
66437         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66438
66439 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66440
66441         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66442         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66443         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66444         (gl_tree_add_before, gl_tree_add_after):
66445         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66446         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66447         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66448         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66449         (gl_linked_add_after, gl_linked_add_at): Likewise.
66450         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66451         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66452         (gl_tree_add_before, gl_tree_add_after): Likewise.
66453         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66454         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66455         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66456
66457 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66458
66459         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66460
66461 2006-11-06  Bruno Haible  <bruno@clisp.org>
66462
66463         * m4/inline.m4: New file.
66464         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66465         * modules/list (Files): Add m4/inline.m4.
66466         * modules/oset (Files): Likewise.
66467
66468 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66469
66470         * lib/idcache.c: Include <stddef.h>, for offsetof.
66471         (struct userid.name): Change from char * to a flexible array member.
66472         All uses changed.
66473         * modules/idcache (Depends-on): Add flexmember.
66474
66475         * MODULES.html.sh (Core language properties): New module flexmember.
66476         * modules/flexmember, m4/flexmember.m4: New files.
66477
66478         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66479         inline functions that are identical with the old xnmalloc_inline,
66480         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66481         that we can avoid some unnecessary integer multiplications and
66482         divisions in the common case where the element size is known at
66483         compile time.
66484         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66485         needed.
66486         (xnboundedmalloc): Remove.
66487         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66488         arguments, for consistency with rest of this header.
66489         (xcharalloc): Rewrite using XNMALLOC.
66490         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66491         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66492         versions have been moved to lib/xalloc.h and renamed to be the
66493         non-*_inline versions.
66494         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66495         and xnrealloc functions, since those functions are now inline and
66496         now call us.
66497         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66498         renaming described above.
66499         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66500         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66501         captures the dependency in AC_C_INLINE.
66502
66503         New module canonicalize-lgpl, proposed by Charles Wilson in
66504         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66505         with a few small changes afterwards.
66506         * MODULES.html.sh (File system functions): New module
66507         canonicalize-lgpl.
66508         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66509         and canonicalize_file_name.
66510         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66511         * modules/canonicalize-lgpl: New files.
66512
66513 2006-11-05  Bruno Haible  <bruno@clisp.org>
66514
66515         * gnulib-tool (func_import, func_create_testdir): Create directories
66516         also for files in subdirectories of lib/.
66517
66518 2006-11-05  Bruno Haible  <bruno@clisp.org>
66519
66520         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66521         ANSI C compliant.
66522
66523 2006-11-03  Bruno Haible  <bruno@clisp.org>
66524
66525         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66526         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66527         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66528         (xnboundedmalloc): New inline function.
66529         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66530         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66531         xmalloc.
66532         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66533         xmalloc.
66534         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66535         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66536         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66537         xmalloc.
66538         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66539         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66540         xmalloc.
66541         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66542         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66543         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66544         xmalloc.
66545         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66546         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66547         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66548         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66549         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66550         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66551         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66552
66553 2006-11-03  Bruno Haible  <bruno@clisp.org>
66554
66555         * lib/c-ctype.h [C++]: Define functions without name mangling.
66556         * lib/fwriteerror.h [C++]: Likewise.
66557         * lib/gcd.h [C++]: Likewise.
66558         * lib/linebreak.h [C++]: Likewise.
66559
66560 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66563         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66564         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66565         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66566         Check for functions and headers just once.
66567         Check for declaration of canonicalize_file_name.
66568         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66569
66570 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66571
66572         * gnulib-tool (func_import): Fix typo in actioncmd.
66573
66574 2006-11-02  Bruno Haible  <bruno@clisp.org>
66575
66576         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66577         newline sequence in the Makefile.am snippet as a space, like "make"
66578         does.
66579         Reported by Roger Persson <perrog@gmail.com>.
66580
66581 2006-11-01  Bruno Haible  <bruno@clisp.org>
66582
66583         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66584         already declared in <string.h>.
66585         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66586
66587 2006-11-01  Bruno Haible  <bruno@clisp.org>
66588
66589         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66590         * lib/strcase.h: Include <string.h>.
66591         (strcasecmp): Define to rpl_strcasecmp here.
66592
66593 2006-11-01  Bruno Haible  <bruno@clisp.org>
66594
66595         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66596
66597 2006-11-01  Eric Blake  <ebb9@byu.net>
66598
66599         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66600
66601         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66602
66603 2006-10-29  Bruno Haible  <bruno@clisp.org>
66604
66605         Make it compile in C++ mode.
66606         * lib/full-write.c (full_rw): Add a cast.
66607
66608 2006-11-01  Bruno Haible  <bruno@clisp.org>
66609
66610         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66611         be POSIX compliant.
66612         Reported by Roger Persson <perrog@gmail.com>.
66613
66614 2006-11-01  Eric Blake  <ebb9@byu.net>
66615
66616         * lib/getopt_.h: Fix comments.
66617
66618 2006-10-31  Eric Blake  <ebb9@byu.net>
66619
66620         * modules/tmpdir (Depends-on): Add sys_stat.
66621         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66622         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66623         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66624         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66625         tempname.
66626
66627 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66628
66629         Avoid some C++ diagnostics reported by Bruno Haible.
66630         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66631         xmalloc.
66632         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66633         (struct slotvec): Move to top level.
66634         (quotearg_n_options): Rewrite to avoid xmalloc.
66635         * lib/xalloc.h (xcharalloc): New function.
66636         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66637         [defined __cplusplus]: Add function template that provides result
66638         type propagation.  This part of the change is from Bruno Haible.
66639
66640 2006-10-29  Bruno Haible  <bruno@clisp.org>
66641
66642         Make it compile in C++ mode.
66643         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66644         * lib/strnlen1.c (strnlen1): Cast memchr result.
66645         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66646         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66647         (create_temp_dir): Rename local variable 'template'.
66648         (compile_csharp_using_sscli): Add cast.
66649         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66650         * lib/findprog.c (find_in_path): Likewise.
66651         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66652         * lib/wait-process.c (register_slave_subprocess): Likewise.
66653
66654 2006-10-22  Bruno Haible  <bruno@clisp.org>
66655
66656         * modules/tsearch: New file.
66657         * lib/tsearch.h: New file.
66658         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66659         * m4/tsearch.m4: New file.
66660         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66661
66662 2006-10-29  Eric Blake  <ebb9@byu.net>
66663
66664         * lib/arcfour.c: Assume config.h.
66665         * lib/arctwo.c: Likewise.
66666         * lib/base64.c: Likewise.
66667         * lib/check-version.c: Likewise.
66668         * lib/crc.c: Likewise.
66669         * lib/des.c: Likewise.
66670         * lib/gc-gnulib.c: Likewise.
66671         * lib/gc-libgcrypt.c: Likewise.
66672         * lib/gc-pbkdf2-sha1.c: Likewise.
66673         * lib/getaddrinfo.c: Likewise.
66674         * lib/getdelim.c: Likewise.
66675         * lib/getline.c: Likewise.
66676         * lib/hmac-md5.c: Likewise.
66677         * lib/hmac-sha1.c: Likewise.
66678         * lib/iconvme.c: Likewise.
66679         * lib/md2.c: Likewise.
66680         * lib/md4.c: Likewise.
66681         * lib/memxor.c: Likewise.
66682         * lib/read-file.c: Likewise.
66683         * lib/readline.c: Likewise.
66684         * lib/rijndael-alg-fst.c: Likewise.
66685         * lib/rijndael-api-fst.c: Likewise.
66686         * lib/xgetdomainname.c: Likewise.
66687
66688 2006-10-28  Eric Blake  <ebb9@byu.net>
66689
66690         * lib/xstrndup.c: Assume config.h.
66691
66692 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66693
66694         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66695         stat-macros.h is now for our own macros, whereas stat_h is for
66696         macros in the <sys/stat.h> name space.
66697         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66698         (STAT_MACROS_H): Remove.
66699         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66700         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66701         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66702         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66703         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66704         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66705         Move these macros to ...
66706         * lib/stat_.h: here.  Don't include stat-macros.h.
66707         * lib/canonicalize.c: Don't include stat-macros.h.
66708         * lib/chown.c: Likewise.
66709         * lib/euidaccess.c: Likewise.
66710         * lib/file-type.c: Likewise.
66711         * lib/filemode.c: Likewise.
66712         * lib/glob.c: Likewise.
66713         * lib/isapipe.c: Likewise.
66714         * lib/lchown.c: Likewise.
66715         * lib/lstat.c: Likewise.
66716         * lib/mkdir-p.c: Likewise.
66717         * lib/rmdir.c: Likewise.
66718         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66720         unless mkdir isn't declared, to speed up 'configure'.
66721         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66722         would define all the S_* symbols.
66723         * modules/canonicalize (Depends-on):
66724         Depend on sys_stat, not stat-macros.
66725         * modules/chown: Likewise.
66726         * modules/euidaccess: Likewise.
66727         * modules/filemode: Likewise.
66728         * modules/file-type: Likewise.
66729         * modules/glob: Likewise.
66730         * modules/isapipe: Likewise.
66731         * modules/lchown: Likewise.
66732         * modules/lstat: Likewise.
66733         * modules/mkancesdirs: Likewise.
66734         * modules/rmdir: Likewise.
66735         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66736         * modules/modechange: Likewise.
66737         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66738         (configure.ac): Remove gl_STAT_MACROS.
66739         * modules/sys_stat (Depends-on): Remove stat-macros.
66740
66741 2006-10-27  Bruno Haible  <bruno@clisp.org>
66742
66743         * m4/signed.m4: Remove file.
66744         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66745         invocation.
66746         * modules/vasnprintf (Files): Remove m4/signed.m4.
66747
66748 2006-10-27  Bruno Haible  <bruno@clisp.org>
66749
66750         Update to GNU gettext 0.16.
66751         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66752         m4/inttypes-h.m4, m4/signed.m4.
66753         * m4/gettext.m4: Update to GNU gettext 0.16.
66754         * m4/intl.m4: New file, from GNU gettext.
66755         * m4/intldir.m4: New file, from GNU gettext.
66756         * config/srclist.txt: Update
66757
66758 2006-10-27  Eric Blake  <ebb9@byu.net>
66759
66760         * MODULES.html.sh: Document tempname.
66761         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66762         dependencies.
66763         (Files): Move lib/tempname.c...
66764         * modules/tempname: ...to this new module.
66765         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66766         (gl_PREREQ_TEMPNAME): Move...
66767         * m4/tempname.m4: ...to this new file.
66768         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66769         * modules/sys_stat (Depends-on): Add stat-macros.
66770         * lib/stat_.h (includes): Pick up stat macros.
66771         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66772         if stat macros are broken.
66773         * lib/tempname.c (includes): No need to include "stat-macros.h".
66774         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66775         (direxists, __path_search) [!_LIBC]: Don't compile these in
66776         gnulib; the tmpdir module covers that.
66777         * lib/tempname.h: New file.
66778
66779 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66780
66781         * COPYING: Explain how gnulib-tool converts licence headers.
66782         Almost all wording by Eric Blake.
66783
66784 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66785
66786         * lib/mbchar.h (is_basic_table): Make read-only.
66787         * lib/mbchar.c (is_basic_table): Likewise.
66788         Reported by John Darrington.
66789
66790 2006-10-25  Bruno Haible  <bruno@clisp.org>
66791
66792         * lib/progname.h (set_program_name): Undefine before defining.
66793
66794 2006-10-25  Bruno Haible  <bruno@clisp.org>
66795
66796         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66797         false for non-gcc C++ compilers.
66798         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66799
66800 2006-10-24  Bruno Haible  <bruno@clisp.org>
66801
66802         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66803         iconv implementations like Irix iconv.
66804
66805 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66806
66807         * modules/vararrays: New file.
66808         * m4/vararrays.m4: New file, taken from diffutils.
66809         * MODULES.html.sh: New module vararrays.
66810
66811 2006-10-24  Karl Berry  <karl@gnu.org>
66812
66813         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66814         Don't call GNU Unix.
66815
66816 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66817
66818         * users.txt: Add Libtool.
66819
66820         Sync from Libtool:
66821
66822         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66823
66824         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66825         to gnulib's policy of including config.h unconditionally.
66826
66827 2006-10-24  Bruno Haible  <bruno@clisp.org>
66828
66829         * modules/wcwidth (Files): Add m4/wint_t.m4.
66830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66831         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66832
66833 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66834
66835         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66836         to pacify GCC with some -W flags enabled.  Problem reported by
66837         Bruno Haible.
66838
66839 2006-10-24  Jim Meyering  <jim@meyering.net>
66840
66841         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66842         Reported by Karl Berry.
66843
66844 2006-10-23  Bruno Haible  <bruno@clisp.org>
66845
66846         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66847
66848 2006-10-24  Bruno Haible  <bruno@clisp.org>
66849
66850         * lib/gl_list.h: Use C comment style, not C++ comment style.
66851
66852 2006-10-23  Eric Blake  <ebb9@byu.net>
66853
66854         * lib/getaddrinfo.c (includes): Add missing include.
66855
66856 2006-10-23  Bruno Haible  <bruno@clisp.org>
66857             Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         Ability to rename obstack_free.
66860         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66861         obstack_free.
66862         (obstack_free): Invoke the __obstack_free macro.
66863         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66864
66865 2006-10-23  Bruno Haible  <bruno@clisp.org>
66866             Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66869         __argc, __argv from the declaration. (They are defined as macros on
66870         mingw.)
66871
66872 2006-10-22  Bruno Haible  <bruno@clisp.org>
66873
66874         * doc/gnulib-intro.texi: New file.
66875         * doc/gnulib.texi: Include it.
66876
66877 2006-10-21  Bruno Haible  <bruno@clisp.org>
66878
66879         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66880         "Introduction", "Miscellanous Notes", "Particular Modules".
66881
66882 2006-10-21  Bruno Haible  <bruno@clisp.org>
66883
66884         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66885         Change mostlyclean-local rule to avoid sh syntax error from bash
66886         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66887
66888 2006-10-23  Jim Meyering  <jim@meyering.net>
66889
66890         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66891         in place of snprintf.
66892
66893         * modules/inttostr (Files): Add lib/uinttostr.c.
66894         * lib/uinttostr.c (inttostr): New file/function.
66895         * lib/inttostr.h (uinttostr): Declare.
66896         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66897         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66898         Add uinttostr.
66899         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66900
66901 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66902
66903         * lib/canonicalize.c (ELOOP): Define if not already defined.
66904         Problem reported by Bruno Haible in
66905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66906
66907 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66908
66909         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66910         Problem reported by Perry Smith and Ville Laurikari.
66911
66912         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66913         uses.
66914
66915 2006-10-19  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66918         for mingw.
66919
66920 2006-10-19  Bruno Haible  <bruno@clisp.org>
66921
66922         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66923         Needed for mingw.
66924
66925 2006-10-19  Bruno Haible  <bruno@clisp.org>
66926
66927         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66928
66929 2006-10-19  Bruno Haible  <bruno@clisp.org>
66930
66931         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66932         it.
66933
66934 2006-10-19  Bruno Haible  <bruno@clisp.org>
66935
66936         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66937         invocation.
66938
66939 2006-10-19  Bruno Haible  <bruno@clisp.org>
66940
66941         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66942         mountlist by default.
66943
66944 2006-10-16  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/c-strstr.c: Include c-strstr.h.
66947
66948 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66949
66950         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66951         in a slash.
66952
66953 2006-10-18  Bruno Haible  <bruno@clisp.org>
66954
66955         * lib/lock.h [C++]: Wrap definitions in extern "C".
66956
66957 2006-10-18  Bruno Haible  <bruno@clisp.org>
66958
66959         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66960         gl_LIBOBJS list.
66961
66962 2006-10-18  Bruno Haible  <bruno@clisp.org>
66963
66964         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66965
66966 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66967
66968         * lib/xstrtol.h: Include gettext.h.
66969         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66970         Problem reported by Eric Blake.
66971         * modules/xstrtol (Depends-on): Add gettext-h.
66972
66973 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66974
66975         * lib/strftime.c (advance): New macro.
66976         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66977         incomplete type, so you can't add 0 to it.  Problem and patch
66978         reported by Eelco Dolstra for dietlibc.
66979
66980 2006-10-18  Jim Meyering  <jim@meyering.net>
66981
66982         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66983         type for a local, and rename it: s/up/user_proc/.
66984
66985 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66986
66987         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
66988         READ_UTMP_USER_PROCESS.
66989         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
66990
66991 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66992
66993         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
66994         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
66995
66996 2006-10-17  Eric Blake  <ebb9@byu.net>
66997
66998         * lib/sigprocmask.c (sigprocmask): Fix typo.
66999
67000         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67001
67002         * modules/clean-temp (Makefile.am): Don't add to make output...
67003         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67004         config.h.
67005
67006 2006-10-17  Bruno Haible  <bruno@clisp.org>
67007
67008         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67009         differently if DEFAULT_TEXT_DOMAIN is set.
67010
67011 2006-10-16  Bruno Haible  <bruno@clisp.org>
67012
67013         * lib/clean-temp.c: Include fwriteerror.h.
67014
67015 2006-10-16  Bruno Haible  <bruno@clisp.org>
67016
67017         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67018
67019 2006-10-16  Bruno Haible  <bruno@clisp.org>
67020
67021         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67022         * lib/sigprocmask.h: Include <sys/types.h>.
67023         (sigset_t): Use the system's definition if present.
67024
67025 2006-10-17  Eric Blake  <ebb9@byu.net>
67026
67027         * lib/xvasprintf.c (includes): Assume config.h.
67028         * lib/xasprintf.c (includes): Likewise.
67029
67030 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67031
67032         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67033         at least as wide as intmax_t.
67034
67035 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67036
67037         (Imported from Automake.)
67038         * build-aux/gnupload: Update to version 1.1 of directive file.
67039
67040 2006-10-16  Eric Blake  <ebb9@byu.net>
67041
67042         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67043         match Automake 1.10a.
67044
67045 2006-10-14  Bruno Haible  <bruno@clisp.org>
67046
67047         * modules/sigprocmask: New file.
67048         * lib/sigprocmask.h: New file.
67049         * lib/sigprocmask.c: New file.
67050         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67051         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67052         request sigprocmask.o.
67053         (gl_PREREQ_SIGPROCMASK): New macro.
67054         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67055         (Depends-on): Add sigprocmask.
67056         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67057         gt_SIGNALBLOCKING. Test for 'raise' only once.
67058         * lib/fatal-signal.c: Include sigprocmask.h.
67059         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67060         unblock_fatal_signals): Define always.
67061         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67062         sigprocmask.
67063
67064 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67065
67066         Sync from Automake.
67067         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67068         which incorrectly sets the mode of an existing destination
67069         directory.  In some cases the unpatched install-sh could do the
67070         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67071         system.  We hope this is rare in practice, but it's clearly worth
67072         fixing.  Problem reported by Alex Unleashed in
67073         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67074         Also, don't bother to check for -m bugs unless we're using -m;
67075         suggested by Stepan Kasal.
67076
67077 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67078
67079         Sync from Automake.
67080         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67081         `-c' flag, so they appear at the same position as in %FASTDEP%
67082         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67083         which ignores unknown options only after the first non-option.
67084         Bug report against M4 by Nelson H. F. Beebe.
67085
67086 2006-10-13  Jim Meyering  <jim@meyering.net>
67087
67088         Fix a bug in yesterday's change.
67089         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67090         p->fts_statp->st_dev would be used uninitialized.
67091         Ensures that we always call fts_stat on the very first entry.
67092         Miklos Szeredi reported that find -xdev stopped working.
67093
67094 2006-10-12  Bruno Haible  <bruno@clisp.org>
67095
67096         * gnulib-tool (func_get_automake_snippet): Append an automatically
67097         computed EXTRA_DIST augmentation.
67098         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67099         * modules/alloca-opt (Makefile.am): Likewise.
67100         * modules/allocsa (Makefile.am): Likewise.
67101         * modules/arcfour (Makefile.am): Likewise.
67102         * modules/arctwo (Makefile.am): Likewise.
67103         * modules/argmatch (Makefile.am): Likewise.
67104         * modules/argz (Makefile.am): Likewise.
67105         * modules/atexit (Makefile.am): Likewise.
67106         * modules/backupfile (Makefile.am): Likewise.
67107         * modules/byteswap (Makefile.am): Likewise.
67108         * modules/c-strtod (Makefile.am): Likewise.
67109         * modules/c-strtold (Makefile.am): Likewise.
67110         * modules/calloc (Makefile.am): Likewise.
67111         * modules/canon-host (Makefile.am): Likewise.
67112         * modules/canonicalize (Makefile.am): Likewise.
67113         * modules/chdir-long (Makefile.am): Likewise.
67114         * modules/chdir-safer (Makefile.am): Likewise.
67115         * modules/check-version (Makefile.am): Likewise.
67116         * modules/chown (Makefile.am): Likewise.
67117         * modules/cloexec (Makefile.am): Likewise.
67118         * modules/close-stream (Makefile.am): Likewise.
67119         * modules/closeout (Makefile.am): Likewise.
67120         * modules/crc (Makefile.am): Likewise.
67121         * modules/csharpexec (Makefile.am): Likewise.
67122         * modules/cycle-check (Makefile.am): Likewise.
67123         * modules/des (Makefile.am): Likewise.
67124         * modules/dev-ino (Makefile.am): Likewise.
67125         * modules/dirfd (Makefile.am): Likewise.
67126         * modules/dirname (Makefile.am): Likewise.
67127         * modules/dup2 (Makefile.am): Likewise.
67128         * modules/eealloc (Makefile.am): Likewise.
67129         * modules/error (Makefile.am): Likewise.
67130         * modules/euidaccess (Makefile.am): Likewise.
67131         * modules/exclude (Makefile.am): Likewise.
67132         * modules/exitfail (Makefile.am): Likewise.
67133         * modules/fcntl-safer (Makefile.am): Likewise.
67134         * modules/fcntl (Makefile.am): Likewise.
67135         * modules/file-type (Makefile.am): Likewise.
67136         * modules/fileblocks (Makefile.am): Likewise.
67137         * modules/filemode (Makefile.am): Likewise.
67138         * modules/filenamecat (Makefile.am): Likewise.
67139         * modules/fnmatch (Makefile.am): Likewise.
67140         * modules/fopen-safer (Makefile.am): Likewise.
67141         * modules/fpending (Makefile.am): Likewise.
67142         * modules/fprintftime (Makefile.am): Likewise.
67143         * modules/free (Makefile.am): Likewise.
67144         * modules/fsusage (Makefile.am): Likewise.
67145         * modules/ftruncate (Makefile.am): Likewise.
67146         * modules/fts (Makefile.am): Likewise.
67147         * modules/gc-arcfour (Makefile.am): Likewise.
67148         * modules/gc-des (Makefile.am): Likewise.
67149         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67150         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67151         * modules/gc-md4 (Makefile.am): Likewise.
67152         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67153         * modules/gc-sha1 (Makefile.am): Likewise.
67154         * modules/gc (Makefile.am): Likewise.
67155         * modules/getaddrinfo (Makefile.am): Likewise.
67156         * modules/getcwd (Makefile.am): Likewise.
67157         * modules/getdelim (Makefile.am): Likewise.
67158         * modules/getdomainname (Makefile.am): Likewise.
67159         * modules/getgroups (Makefile.am): Likewise.
67160         * modules/gethostname (Makefile.am): Likewise.
67161         * modules/gethrxtime (Makefile.am): Likewise.
67162         * modules/getline (Makefile.am): Likewise.
67163         * modules/getloadavg (Makefile.am): Likewise.
67164         * modules/getlogin_r (Makefile.am): Likewise.
67165         * modules/getndelim2 (Makefile.am): Likewise.
67166         * modules/getopt (Makefile.am): Likewise.
67167         * modules/getpagesize (Makefile.am): Likewise.
67168         * modules/getpass-gnu (Makefile.am): Likewise.
67169         * modules/getpass (Makefile.am): Likewise.
67170         * modules/getsubopt (Makefile.am): Likewise.
67171         * modules/gettime (Makefile.am): Likewise.
67172         * modules/gettimeofday (Makefile.am): Likewise.
67173         * modules/getugroups (Makefile.am): Likewise.
67174         * modules/getusershell (Makefile.am): Likewise.
67175         * modules/glob (Makefile.am): Likewise.
67176         * modules/group-member (Makefile.am): Likewise.
67177         * modules/hard-locale (Makefile.am): Likewise.
67178         * modules/hash (Makefile.am): Likewise.
67179         * modules/hmac-md5 (Makefile.am): Likewise.
67180         * modules/hmac-sha1 (Makefile.am): Likewise.
67181         * modules/human (Makefile.am): Likewise.
67182         * modules/idcache (Makefile.am): Likewise.
67183         * modules/imaxabs (Makefile.am): Likewise.
67184         * modules/imaxdiv (Makefile.am): Likewise.
67185         * modules/inet_ntop (Makefile.am): Likewise.
67186         * modules/inet_pton (Makefile.am): Likewise.
67187         * modules/intprops (Makefile.am): Likewise.
67188         * modules/inttostr (Makefile.am): Likewise.
67189         * modules/inttypes (Makefile.am): Likewise.
67190         * modules/isapipe (Makefile.am): Likewise.
67191         * modules/javaversion (Makefile.am): Likewise.
67192         * modules/lchmod (Makefile.am): Likewise.
67193         * modules/lchown (Makefile.am): Likewise.
67194         * modules/localcharset (Makefile.am): Likewise.
67195         * modules/long-options (Makefile.am): Likewise.
67196         * modules/lstat (Makefile.am): Likewise.
67197         * modules/malloc (Makefile.am): Likewise.
67198         * modules/mathl (Makefile.am): Likewise.
67199         * modules/mbchar (Makefile.am): Likewise.
67200         * modules/md2 (Makefile.am): Likewise.
67201         * modules/md4 (Makefile.am): Likewise.
67202         * modules/md5 (Makefile.am): Likewise.
67203         * modules/memcasecmp (Makefile.am): Likewise.
67204         * modules/memchr (Makefile.am): Likewise.
67205         * modules/memcmp (Makefile.am): Likewise.
67206         * modules/memcoll (Makefile.am): Likewise.
67207         * modules/memcpy (Makefile.am): Likewise.
67208         * modules/memmem (Makefile.am): Likewise.
67209         * modules/memmove (Makefile.am): Likewise.
67210         * modules/mempcpy (Makefile.am): Likewise.
67211         * modules/memrchr (Makefile.am): Likewise.
67212         * modules/memset (Makefile.am): Likewise.
67213         * modules/memxor (Makefile.am): Likewise.
67214         * modules/mkancesdirs (Makefile.am): Likewise.
67215         * modules/mkdir-p (Makefile.am): Likewise.
67216         * modules/mkdir (Makefile.am): Likewise.
67217         * modules/mkdtemp (Makefile.am): Likewise.
67218         * modules/mkstemp (Makefile.am): Likewise.
67219         * modules/mktime (Makefile.am): Likewise.
67220         * modules/modechange (Makefile.am): Likewise.
67221         * modules/mountlist (Makefile.am): Likewise.
67222         * modules/nanosleep (Makefile.am): Likewise.
67223         * modules/obstack (Makefile.am): Likewise.
67224         * modules/openat (Makefile.am): Likewise.
67225         * modules/pagealign_alloc (Makefile.am): Likewise.
67226         * modules/pathmax (Makefile.am): Likewise.
67227         * modules/physmem (Makefile.am): Likewise.
67228         * modules/poll (Makefile.am): Likewise.
67229         * modules/posixtm (Makefile.am): Likewise.
67230         * modules/posixver (Makefile.am): Likewise.
67231         * modules/putenv (Makefile.am): Likewise.
67232         * modules/quote (Makefile.am): Likewise.
67233         * modules/quotearg (Makefile.am): Likewise.
67234         * modules/raise (Makefile.am): Likewise.
67235         * modules/read-file (Makefile.am): Likewise.
67236         * modules/readline (Makefile.am): Likewise.
67237         * modules/readlink (Makefile.am): Likewise.
67238         * modules/readtokens (Makefile.am): Likewise.
67239         * modules/readutmp (Makefile.am): Likewise.
67240         * modules/realloc (Makefile.am): Likewise.
67241         * modules/regex (Makefile.am): Likewise.
67242         * modules/rename-dest-slash (Makefile.am): Likewise.
67243         * modules/rename (Makefile.am): Likewise.
67244         * modules/rijndael (Makefile.am): Likewise.
67245         * modules/rmdir (Makefile.am): Likewise.
67246         * modules/rpmatch (Makefile.am): Likewise.
67247         * modules/safe-read (Makefile.am): Likewise.
67248         * modules/safe-write (Makefile.am): Likewise.
67249         * modules/same-inode (Makefile.am): Likewise.
67250         * modules/same (Makefile.am): Likewise.
67251         * modules/save-cwd (Makefile.am): Likewise.
67252         * modules/savedir (Makefile.am): Likewise.
67253         * modules/setenv (Makefile.am): Likewise.
67254         * modules/settime (Makefile.am): Likewise.
67255         * modules/sha1 (Makefile.am): Likewise.
67256         * modules/sig2str (Makefile.am): Likewise.
67257         * modules/snprintf (Makefile.am): Likewise.
67258         * modules/stat-macros (Makefile.am): Likewise.
67259         * modules/stat-time (Makefile.am): Likewise.
67260         * modules/stdbool (Makefile.am): Likewise.
67261         * modules/stdint (Makefile.am): Likewise.
67262         * modules/stdlib-safer (Makefile.am): Likewise.
67263         * modules/stpcpy (Makefile.am): Likewise.
67264         * modules/stpncpy (Makefile.am): Likewise.
67265         * modules/strcase (Makefile.am): Likewise.
67266         * modules/strcasestr (Makefile.am): Likewise.
67267         * modules/strchrnul (Makefile.am): Likewise.
67268         * modules/strcspn (Makefile.am): Likewise.
67269         * modules/strdup (Makefile.am): Likewise.
67270         * modules/strerror (Makefile.am): Likewise.
67271         * modules/strftime (Makefile.am): Likewise.
67272         * modules/strndup (Makefile.am): Likewise.
67273         * modules/strnlen (Makefile.am): Likewise.
67274         * modules/strpbrk (Makefile.am): Likewise.
67275         * modules/strsep (Makefile.am): Likewise.
67276         * modules/strstr (Makefile.am): Likewise.
67277         * modules/strtod (Makefile.am): Likewise.
67278         * modules/strtoimax (Makefile.am): Likewise.
67279         * modules/strtok_r (Makefile.am): Likewise.
67280         * modules/strtol (Makefile.am): Likewise.
67281         * modules/strtoll (Makefile.am): Likewise.
67282         * modules/strtoul (Makefile.am): Likewise.
67283         * modules/strtoull (Makefile.am): Likewise.
67284         * modules/strtoumax (Makefile.am): Likewise.
67285         * modules/strverscmp (Makefile.am): Likewise.
67286         * modules/sys_socket (Makefile.am): Likewise.
67287         * modules/sys_stat (Makefile.am): Likewise.
67288         * modules/sysexits (Makefile.am): Likewise.
67289         * modules/time_r (Makefile.am): Likewise.
67290         * modules/timegm (Makefile.am): Likewise.
67291         * modules/timespec (Makefile.am): Likewise.
67292         * modules/tmpfile-safer (Makefile.am): Likewise.
67293         * modules/trim (Makefile.am): Likewise.
67294         * modules/unistd-safer (Makefile.am): Likewise.
67295         * modules/unlinkdir (Makefile.am): Likewise.
67296         * modules/unlocked-io (Makefile.am): Likewise.
67297         * modules/userspec (Makefile.am): Likewise.
67298         * modules/utime (Makefile.am): Likewise.
67299         * modules/utimecmp (Makefile.am): Likewise.
67300         * modules/utimens (Makefile.am): Likewise.
67301         * modules/vasnprintf (Makefile.am): Likewise.
67302         * modules/vasprintf (Makefile.am): Likewise.
67303         * modules/vsnprintf (Makefile.am): Likewise.
67304         * modules/xalloc (Makefile.am): Likewise.
67305         * modules/xgetcwd (Makefile.am): Likewise.
67306         * modules/xnanosleep (Makefile.am): Likewise.
67307         * modules/xreadlink (Makefile.am): Likewise.
67308         * modules/xstrtod (Makefile.am): Likewise.
67309         * modules/xstrtol (Makefile.am): Likewise.
67310         * modules/xstrtold (Makefile.am): Likewise.
67311         * modules/yesno (Makefile.am): Likewise.
67312         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67313
67314 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67315
67316         * modules/error (Makefile.am): Distribute files through
67317         EXTRA_DIST, not lib_SOURCES.
67318
67319 2006-10-12  Eric Blake  <ebb9@byu.net>
67320
67321         * modules/error (Makefile.am): Distribute files in /lib.
67322         * modules/obstack (Makefile.am): Likewise.
67323
67324 2006-10-12  Bruno Haible  <bruno@clisp.org>
67325
67326         * modules/acl (Makefile.am): Distribute all files in lib/ through
67327         EXTRA_DIST.
67328         * modules/arcfour (Makefile.am): Likewise.
67329         * modules/arctwo (Makefile.am): Likewise.
67330         * modules/argmatch (Makefile.am): Likewise.
67331         * modules/argz (Makefile.am): Likewise.
67332         * modules/atexit (Makefile.am): Likewise.
67333         * modules/backupfile (Makefile.am): Likewise.
67334         * modules/c-strtod (Makefile.am): Likewise.
67335         * modules/c-strtold (Makefile.am): Likewise.
67336         * modules/calloc (Makefile.am): Likewise.
67337         * modules/canon-host (Makefile.am): Likewise.
67338         * modules/canonicalize (Makefile.am): Likewise.
67339         * modules/chdir-long (Makefile.am): Likewise.
67340         * modules/chdir-safer (Makefile.am): Likewise.
67341         * modules/check-version (Makefile.am): Likewise.
67342         * modules/chown (Makefile.am): Likewise.
67343         * modules/cloexec (Makefile.am): Likewise.
67344         * modules/close-stream (Makefile.am): Likewise.
67345         * modules/closeout (Makefile.am): Likewise.
67346         * modules/crc (Makefile.am): Likewise.
67347         * modules/cycle-check (Makefile.am): Likewise.
67348         * modules/des (Makefile.am): Likewise.
67349         * modules/dirfd (Makefile.am): Likewise.
67350         * modules/dirname (Makefile.am): Likewise.
67351         * modules/dup2 (Makefile.am): Likewise.
67352         * modules/euidaccess (Makefile.am): Likewise.
67353         * modules/exclude (Makefile.am): Likewise.
67354         * modules/exitfail (Makefile.am): Likewise.
67355         * modules/fcntl-safer (Makefile.am): Likewise.
67356         * modules/file-type (Makefile.am): Likewise.
67357         * modules/fileblocks (Makefile.am): Likewise.
67358         * modules/filemode (Makefile.am): Likewise.
67359         * modules/filenamecat (Makefile.am): Likewise.
67360         * modules/fnmatch (Makefile.am): Likewise.
67361         * modules/fopen-safer (Makefile.am): Likewise.
67362         * modules/fpending (Makefile.am): Likewise.
67363         * modules/fprintftime (Makefile.am): Likewise.
67364         * modules/free (Makefile.am): Likewise.
67365         * modules/fsusage (Makefile.am): Likewise.
67366         * modules/ftruncate (Makefile.am): Likewise.
67367         * modules/fts (Makefile.am): Likewise.
67368         * modules/gc (Makefile.am): Likewise.
67369         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67370         * modules/getaddrinfo (Makefile.am): Likewise.
67371         * modules/getcwd (Makefile.am): Likewise.
67372         * modules/getdelim (Makefile.am): Likewise.
67373         * modules/getdomainname (Makefile.am): Likewise.
67374         * modules/getgroups (Makefile.am): Likewise.
67375         * modules/gethostname (Makefile.am): Likewise.
67376         * modules/gethrxtime (Makefile.am): Likewise.
67377         * modules/getline (Makefile.am): Likewise.
67378         * modules/getloadavg (Makefile.am): Likewise.
67379         * modules/getlogin_r (Makefile.am): Likewise.
67380         * modules/getopt (Makefile.am): Likewise.
67381         * modules/getpass (Makefile.am): Likewise.
67382         * modules/getpass-gnu (Makefile.am): Likewise.
67383         * modules/getsubopt (Makefile.am): Likewise.
67384         * modules/gettime (Makefile.am): Likewise.
67385         * modules/gettimeofday (Makefile.am): Likewise.
67386         * modules/getugroups (Makefile.am): Likewise.
67387         * modules/getusershell (Makefile.am): Likewise.
67388         * modules/glob (Makefile.am): Likewise.
67389         * modules/group-member (Makefile.am): Likewise.
67390         * modules/hard-locale (Makefile.am): Likewise.
67391         * modules/hash (Makefile.am): Likewise.
67392         * modules/hmac-md5 (Makefile.am): Likewise.
67393         * modules/hmac-sha1 (Makefile.am): Likewise.
67394         * modules/human (Makefile.am): Likewise.
67395         * modules/idcache (Makefile.am): Likewise.
67396         * modules/imaxabs (Makefile.am): Likewise.
67397         * modules/imaxdiv (Makefile.am): Likewise.
67398         * modules/inet_ntop (Makefile.am): Likewise.
67399         * modules/inet_pton (Makefile.am): Likewise.
67400         * modules/inttostr (Makefile.am): Likewise.
67401         * modules/isapipe (Makefile.am): Likewise.
67402         * modules/lchown (Makefile.am): Likewise.
67403         * modules/long-options (Makefile.am): Likewise.
67404         * modules/lstat (Makefile.am): Likewise.
67405         * modules/malloc (Makefile.am): Likewise.
67406         * modules/mathl (Makefile.am): Likewise.
67407         * modules/mbchar (Makefile.am): Likewise.
67408         * modules/md2 (Makefile.am): Likewise.
67409         * modules/md4 (Makefile.am): Likewise.
67410         * modules/md5 (Makefile.am): Likewise.
67411         * modules/memcasecmp (Makefile.am): Likewise.
67412         * modules/memchr (Makefile.am): Likewise.
67413         * modules/memcmp (Makefile.am): Likewise.
67414         * modules/memcoll (Makefile.am): Likewise.
67415         * modules/memcpy (Makefile.am): Likewise.
67416         * modules/memmem (Makefile.am): Likewise.
67417         * modules/memmove (Makefile.am): Likewise.
67418         * modules/mempcpy (Makefile.am): Likewise.
67419         * modules/memrchr (Makefile.am): Likewise.
67420         * modules/memset (Makefile.am): Likewise.
67421         * modules/memxor (Makefile.am): Likewise.
67422         * modules/mkancesdirs (Makefile.am): Likewise.
67423         * modules/mkdir (Makefile.am): Likewise.
67424         * modules/mkdir-p (Makefile.am): Likewise.
67425         * modules/mkdtemp (Makefile.am): Likewise.
67426         * modules/mkstemp (Makefile.am): Likewise.
67427         * modules/mktime (Makefile.am): Likewise.
67428         * modules/modechange (Makefile.am): Likewise.
67429         * modules/mountlist (Makefile.am): Likewise.
67430         * modules/nanosleep (Makefile.am): Likewise.
67431         * modules/openat (Makefile.am): Likewise.
67432         * modules/pagealign_alloc (Makefile.am): Likewise.
67433         * modules/physmem (Makefile.am): Likewise.
67434         * modules/poll (Makefile.am): Likewise.
67435         * modules/posixtm (Makefile.am): Likewise.
67436         * modules/posixver (Makefile.am): Likewise.
67437         * modules/putenv (Makefile.am): Likewise.
67438         * modules/quote (Makefile.am): Likewise.
67439         * modules/quotearg (Makefile.am): Likewise.
67440         * modules/raise (Makefile.am): Likewise.
67441         * modules/read-file (Makefile.am): Likewise.
67442         * modules/readline (Makefile.am): Likewise.
67443         * modules/readlink (Makefile.am): Likewise.
67444         * modules/readtokens (Makefile.am): Likewise.
67445         * modules/readutmp (Makefile.am): Likewise.
67446         * modules/realloc (Makefile.am): Likewise.
67447         * modules/regex (Makefile.am): Likewise.
67448         * modules/rename (Makefile.am): Likewise.
67449         * modules/rename-dest-slash (Makefile.am): Likewise.
67450         * modules/rijndael (Makefile.am): Likewise.
67451         * modules/rmdir (Makefile.am): Likewise.
67452         * modules/rpmatch (Makefile.am): Likewise.
67453         * modules/safe-read (Makefile.am): Likewise.
67454         * modules/safe-write (Makefile.am): Likewise.
67455         * modules/same (Makefile.am): Likewise.
67456         * modules/save-cwd (Makefile.am): Likewise.
67457         * modules/savedir (Makefile.am): Likewise.
67458         * modules/setenv (Makefile.am): Likewise.
67459         * modules/settime (Makefile.am): Likewise.
67460         * modules/sha1 (Makefile.am): Likewise.
67461         * modules/sig2str (Makefile.am): Likewise.
67462         * modules/snprintf (Makefile.am): Likewise.
67463         * modules/stdlib-safer (Makefile.am): Likewise.
67464         * modules/stpcpy (Makefile.am): Likewise.
67465         * modules/stpncpy (Makefile.am): Likewise.
67466         * modules/strcase (Makefile.am): Likewise.
67467         * modules/strcasestr (Makefile.am): Likewise.
67468         * modules/strchrnul (Makefile.am): Likewise.
67469         * modules/strcspn (Makefile.am): Likewise.
67470         * modules/strdup (Makefile.am): Likewise.
67471         * modules/strerror (Makefile.am): Likewise.
67472         * modules/strftime (Makefile.am): Likewise.
67473         * modules/strndup (Makefile.am): Likewise.
67474         * modules/strnlen (Makefile.am): Likewise.
67475         * modules/strpbrk (Makefile.am): Likewise.
67476         * modules/strsep (Makefile.am): Likewise.
67477         * modules/strstr (Makefile.am): Likewise.
67478         * modules/strtod (Makefile.am): Likewise.
67479         * modules/strtoimax (Makefile.am): Likewise.
67480         * modules/strtok_r (Makefile.am): Likewise.
67481         * modules/strtol (Makefile.am): Likewise.
67482         * modules/strtoll (Makefile.am): Likewise.
67483         * modules/strtoul (Makefile.am): Likewise.
67484         * modules/strtoull (Makefile.am): Likewise.
67485         * modules/strtoumax (Makefile.am): Likewise.
67486         * modules/strverscmp (Makefile.am): Likewise.
67487         * modules/time_r (Makefile.am): Likewise.
67488         * modules/timegm (Makefile.am): Likewise.
67489         * modules/tmpfile-safer (Makefile.am): Likewise.
67490         * modules/unistd-safer (Makefile.am): Likewise.
67491         * modules/unlinkdir (Makefile.am): Likewise.
67492         * modules/userspec (Makefile.am): Likewise.
67493         * modules/utime (Makefile.am): Likewise.
67494         * modules/utimecmp (Makefile.am): Likewise.
67495         * modules/utimens (Makefile.am): Likewise.
67496         * modules/vasnprintf (Makefile.am): Likewise.
67497         * modules/vasprintf (Makefile.am): Likewise.
67498         * modules/vsnprintf (Makefile.am): Likewise.
67499         * modules/xalloc (Makefile.am): Likewise.
67500         * modules/xgetcwd (Makefile.am): Likewise.
67501         * modules/xnanosleep (Makefile.am): Likewise.
67502         * modules/xreadlink (Makefile.am): Likewise.
67503         * modules/xstrtod (Makefile.am): Likewise.
67504         * modules/xstrtol (Makefile.am): Likewise.
67505         * modules/xstrtold (Makefile.am): Likewise.
67506         * modules/yesno (Makefile.am): Likewise.
67507
67508 2006-10-12  Jim Meyering  <jim@meyering.net>
67509
67510         * m4/getloadavg.m4: Revert the change below.
67511
67512         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67513         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67514         fail with a symlink, which is what coreutils' ./bootstrap now
67515         creates by default.
67516
67517 2006-10-12  Bruno Haible  <bruno@clisp.org>
67518
67519         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67520         mingw.
67521         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67522         MSVC and mingw explicitly.
67523
67524 2006-10-11  Simon Josefsson  <jas@extundo.com>
67525             Bruno Haible  <bruno@clisp.org>
67526
67527         Add support for multiple gnulib-tool invocations in the scope of a
67528         single configure.ac file.
67529         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67530         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67531         with the same contents as the _LIBADD variable.
67532         (func_emit_initmacro_start, func_emit_initmacro_end,
67533         func_emit_initmacro_done): New functions.
67534         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67535         gl_LIBOBJS and gl_LTLIBOBJS.
67536
67537 2006-10-11  Bruno Haible  <bruno@clisp.org>
67538
67539         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67540         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67541         autoreconf. Instead, invoke autopoint explicitly but move back the
67542         *.m4 files from gnulib.
67543
67544 2006-10-11  Bruno Haible  <bruno@clisp.org>
67545
67546         * gnulib-tool (func_usage): Make module names after --create-testdir
67547         optional.
67548         (func_create_testdir): If no module was specified, use nearly all
67549         modules.
67550
67551 2006-10-12  Jim Meyering  <jim@meyering.net>
67552
67553         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67554         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67555         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67556         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67557         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67558         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67559         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67560         (fts_set_stat_required): New function.
67561         (fts_open): Defer the calls to fts_stat, if possible or requested.
67562         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67563         into fts_stat itself.
67564         (fts_read): Perform any required (deferred) fts_stat call.
67565         (fts_build): Likewise, for the directory we're about to open and read.
67566         In the readdir loop, carefully decide whether each entry will require
67567         an eventual call to fts_stat, using dirent.d_type info if available.
67568         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67569         a command line argument into this function.  Update all callers.
67570         Map a return value of FTS_DOT to FTS_D for a command line argument.
67571         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67572         Thanks to Miklos Szeredi for his tenacity and for the initial
67573         bug report about "find" failing on a FUSE-based file system.
67574
67575         * lib/fts.c (fts_open): Use consistent indentation.
67576
67577 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67578
67579         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67580         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67581         reported by Jim Meyering.  All uses of cache variables renamed
67582         to match Autoconf's.
67583         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67584         the other one.
67585
67586         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67587         Fix misspelling in diagnostic.
67588
67589 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67590
67591         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67592         defined.  Problem reported by Matthew Woehlke.
67593
67594         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67595         Add support for Tandem NonStop R series.
67596         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67597         Use new macro.
67598
67599         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67600         (has_trailing_slash): Omit size arg; all callers changed.
67601         Omit 'inline', since it doesn't help performance and we'd
67602         need to configure it.
67603         Don't count //, ///, etc. as having a trailing slash.
67604         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67605         (rpl_rename_dest_slash): On failure, use rename's errno rather
67606         than (in some cases) an incorrect or junk errno.
67607         Simplify code by removing need to compute length; this does
67608         cause it to make two passes instead of one over the file name,
67609         but it's worth it.
67610
67611         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67612         change, since Autoconf's version may no longer be appropriate now
67613         that we are using CVS Autoconf's version.  Add support for Tandem.
67614
67615 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67616             Bruno Haible  <bruno@clisp.org>
67617
67618         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67619         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67620         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67621         gl_AC_TYPE_LONG_LONG.
67622
67623         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67624         instead of HAVE_LONG_LONG.
67625         * lib/printf-args.c (printf_fetchargs): Likewise.
67626         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67627         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67628         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67629         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67630         gl_AC_TYPE_LONG_LONG.
67631
67632 2006-10-11  Bruno Haible  <bruno@clisp.org>
67633
67634         * m4/longlong.m4: Add comments.
67635         * m4/ulonglong.m4: Likewise.
67636
67637 2006-10-10  Bruno Haible  <bruno@clisp.org>
67638
67639         Make it possible to #define stpcpy, strdup to aliases.
67640         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67641         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67642
67643 2006-10-10  Bruno Haible  <bruno@clisp.org>
67644
67645         Make it possible to #define gcd to an alias.
67646         * lib/gcd.c: Include config.h.
67647
67648 2006-10-10  Bruno Haible  <bruno@clisp.org>
67649
67650         Make it possible to #define c_isascii to an alias.
67651         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67652         defined. Undefine the macros before defining them, to avoid gcc
67653         warnings.
67654         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67655         define NO_C_CTYPE_MACROS early.
67656
67657 2006-10-10  Bruno Haible  <bruno@clisp.org>
67658
67659         Make it possible to #define set_program_name to an alias.
67660         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67661         ENABLE_RELOCATABLE early.
67662
67663 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67666         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67667         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67668         More generally, don't assume that 64-bit signed int is available
67669         if unsigned int is, and vice versa.
67670         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67671         unsigned symbols, not on their signed counterparts.
67672         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67673         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67674         (UINT64_C, UINTMAX_C):
67675         Likewise.
67676         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67677         unsigned counterparts.
67678         (Have_long_long, Unsigned): New macros.
67679         (Int): Renamed from INT.
67680         (strtoimax): Use the new macros.
67681         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67682         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67683         * modules/inttypes (inttypes.h): Substitute
67684         HAVE_UNSIGNED_LONG_LONG_INT.
67685         * modules/stdint (stdint.h): Likewise.
67686         (Files): Add m4/ulonglong.m4.
67687
67688 2006-10-10  Bruno Haible  <bruno@clisp.org>
67689
67690         Fix a gcc -Wshadow warning.
67691         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67692         to 'bucket'.
67693         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67694         gl_linked_indexof_from_to): Likewise.
67695         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67696         Likewise.
67697         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67698         Likewise.
67699         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67700         Reported by Eric Blake.
67701
67702 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67703
67704         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67705         for NetBSD.  Problem reported by Bruno Haible.
67706
67707 2006-10-09  Jim Meyering  <jim@meyering.net>
67708
67709         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67710         Patch from Bruno Haible.
67711
67712 2006-10-09  Jim Meyering  <jim@meyering.net>
67713
67714         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67715         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67716         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67717
67718 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67719
67720         Don't include <config.h> twice; this doesn't work in some cases,
67721         e.g., when config.h has "#define intmax_t long long int" and
67722         we include <config.h>, <inttypes.h>, <config.h> in that order.
67723         Problem reported by Matthew Woehlke in:
67724         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67725         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67726         * lib/fts-cycle.c: Don't include config.h.
67727         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67728         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67729         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67730         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67731         inttypes.h.
67732         * lib/xstrtoumax.c: Likewise.
67733         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67734         __strtol and the like, so that this module is more like its siblings.
67735         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67736         Remove; no longer needed now that we assume gnulib inttypes.h.
67737
67738 2006-10-08  Bruno Haible  <bruno@clisp.org>
67739
67740         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67741         option.
67742
67743 2006-10-07  Jim Meyering  <jim@meyering.net>
67744
67745         * modules/inttypes (inttypes.h): Revert what seems to have been
67746         an inadvertent part of today's change: use "|", not "/" in the
67747         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67748
67749 2006-10-07  Bruno Haible  <bruno@clisp.org>
67750
67751         * modules/sublist: New file.
67752
67753 2006-10-07  Bruno Haible  <bruno@clisp.org>
67754
67755         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67756         * modules/argz (argz.h): Likewise.
67757         * modules/arpa_inet (arpa/inet.h): Likewise.
67758         * modules/byteswap (byteswap.h): Likewise.
67759         * modules/configmake (configmake.h): Likewise.
67760         * modules/fcntl (fcntl.h): Likewise.
67761         * modules/fnmatch (fnmatch.h): Likewise.
67762         * modules/getopt (getopt.h): Likewise.
67763         * modules/glob (glob.h): Likewise.
67764         * modules/inttypes (inttypes.h): Likewise.
67765         * modules/netinet_in (netinet/in.h): Likewise.
67766         * modules/poll (poll.h): Likewise.
67767         * modules/stdbool (stdbool.h): Likewise.
67768         * modules/stdint (stdint.h): Likewise.
67769         * modules/sys_select (sys/select.h): Likewise.
67770         * modules/sys_socket (sys/socket.h): Likewise.
67771         * modules/sys_stat (sys/stat.h): Likewise.
67772         * modules/sysexits (sysexits.h): Likewise.
67773         * modules/unistd (unistd.h): Likewise.
67774         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67775         Add a "DO NOT EDIT" comment to the generated file.
67776         (func_import): Likewise for gnulib-comp.m4.
67777
67778 2006-10-07  Bruno Haible  <bruno@clisp.org>
67779
67780         * lib/gl_sublist.h: New file.
67781         * lib/gl_sublist.c: New file.
67782
67783 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67784
67785         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67786         name (relative to the original working directory) and the file
67787         name component (relative to the temporary working directory).  All
67788         callers changed.
67789         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67790         * lib/mkdir-p.c (make_dir_parents): Likewise.
67791         * lib/mkdir-p.h (make_dir_parents): Likewise.
67792
67793 2006-10-06  Eric Blake  <ebb9@byu.net>
67794
67795         Define several macros for use by the clean-temp module.
67796         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67797         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67798         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67799
67800         * lib/clean-temp.h (close_stream_temp): New declaration.
67801         * lib/clean-temp.c (includes): Pull in headers according to what
67802         other modules are in use.
67803         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67804
67805 2006-10-06  Bruno Haible  <bruno@clisp.org>
67806
67807         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67808         instead of fopen, fwriteerror.
67809
67810 2006-10-06  Bruno Haible  <bruno@clisp.org>
67811
67812         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67813         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67814         int.
67815         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67816         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67817         Return an error indicator.
67818         Suggested by Eric Blake.
67819
67820 2006-10-06  Bruno Haible  <bruno@clisp.org>
67821
67822         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67823         Reported by Eric Blake.
67824
67825 2006-10-06  Bruno Haible  <bruno@clisp.org>
67826
67827         * modules/closeout (Description): Mention stderr too.
67828
67829 2006-10-06  Bruno Haible  <bruno@clisp.org>
67830         and Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         * lib/closeout.c (close_stdout): Also close stderr.
67833         * lib/closeout.h: Update comment.
67834
67835 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67838         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67839         * lib/dirchownmod.c: Include lchown.h.
67840         * lib/lchown.c: Don't include files that lchown.h now includes.
67841         Don't declare chown, since lchown.h now does that.
67842         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67843         (lchown): Define to rpl_chown if lchown is declared but
67844         does not exist.  Declare using a prototype if lchown is not
67845         declared.  Add a copyright notice.
67846         * lib/mkstemp.h: Include <unistd.h>.
67847         * lib/openat.c: Include lchown.h.
67848
67849         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67850         we now test for that separately.
67851         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67852         rather than O_NOFOLLOW, when testing whether it's possible to
67853         avoid a race condition reliably.
67854         * lib/savewd.c (savewd_chdir): Likewise.
67855
67856         Remove macros that are no longer needed now that stdint.h is
67857         reliable.
67858         * lib/fsusage.c (UINTMAX_MAX): Remove.
67859         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67860         * lib/utimecmp.c (SIZE_MAX): Remove.
67861
67862         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67863
67864         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67865         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67866         O_NOATIME works.
67867
67868 2006-10-05  Bruno Haible  <bruno@clisp.org>
67869
67870         * lib/gl_list.h (gl_sortedlist_search_from_to,
67871         gl_sortedlist_indexof_from_to): New declarations.
67872         (gl_list_implementation): New fields sortedlist_search_from_to,
67873         sortedlist_indexof_from_to.
67874         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67875         inline functions.
67876         * lib/gl_list.c (gl_sortedlist_search_from_to,
67877         gl_sortedlist_indexof_from_to): New functions.
67878         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67879         function.
67880         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67881         (gl_array_sortedlist_search_from_to): New function.
67882         (gl_array_list_implementation): Update.
67883         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67884         function.
67885         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67886         (gl_carray_sortedlist_search_from_to): New function.
67887         (gl_carray_list_implementation): Update.
67888         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67889         gl_linked_sortedlist_indexof_from_to): New functions.
67890         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67891         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67892         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67893         gl_tree_sortedlist_indexof_from_to): New functions.
67894         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67895         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67896         Update.
67897         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67898         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67899         Update.
67900
67901 2006-10-05  Bruno Haible  <bruno@clisp.org>
67902
67903         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67904         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67905         (struct gl_list_implementation): Add fields search_from_to,
67906         indexof_from_to. Remove fields search, indexof.
67907         (gl_list_search): Use the search_from_to method.
67908         (gl_list_search_from, gl_list_search_from_to): New functions.
67909         (gl_list_indexof): Use the indexof_from_to method.
67910         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67911         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67912         (gl_list_search_from, gl_list_search_from_to): New functions.
67913         (gl_list_indexof): Use the indexof_from_to method.
67914         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67915         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67916         gl_array_indexof. Add start_index, end_index arguments.
67917         (gl_array_search_from_to): Renamed from gl_array_search. Add
67918         start_index, end_index arguments.
67919         (gl_array_remove, gl_array_list_implementation): Update.
67920         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67921         gl_carray_indexof. Add start_index, end_index arguments.
67922         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67923         start_index, end_index arguments.
67924         (gl_carray_remove, gl_carray_list_implementation): Update.
67925         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67926         gl_linked_search. Add start_index, end_index arguments.
67927         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67928         start_index, end_index arguments.
67929         (gl_linked_remove): Update.
67930         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67931         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67932         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67933         field to 'size_t'.
67934         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67935         gl_tree_search. Add start_index, end_index arguments.
67936         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67937         start_index, end_index arguments.
67938         (gl_tree_remove): Update.
67939         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67940         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67941         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67942         function.
67943         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67944         gl_tree_search. Add start_index, end_index arguments.
67945         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67946         start_index, end_index arguments.
67947         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67948         Update.
67949         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67950
67951 2006-10-05  Bruno Haible  <bruno@clisp.org>
67952
67953         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67954
67955         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67956         fwriteerror_temp): New declarations.
67957         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67958         (descriptors): New variable.
67959         (cleanup): First, close the descriptors.
67960         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67961         fclose_temp, fwriteerror_temp): New functions.
67962
67963 2006-10-04  Jim Meyering  <jim@meyering.net>
67964
67965         * lib/fts.c (fts_open): Tiny comment change.
67966
67967 2006-10-04  Bruno Haible  <bruno@clisp.org>
67968
67969         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67970         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67971         gl_LOCK_BODY.
67972         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67973         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67974         gl_LOCK_EARLY_BODY.
67975         (gl_LOCK): Require gl_LOCK_BODY.
67976
67977 2006-10-04  Bruno Haible  <bruno@clisp.org>
67978
67979         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67980         (gl_oset_search_atleast): New declaration.
67981         (struct gl_oset_implementation): Add field 'search_atleast'.
67982         (gl_oset_search_atleast): New inline function.
67983         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67984         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67985         (gl_array_oset_implementation): Update.
67986         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67987         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
67988         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
67989
67990 2006-10-04  Bruno Haible  <bruno@clisp.org>
67991
67992         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
67993
67994 2006-10-03  Bruno Haible  <bruno@clisp.org>
67995
67996         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
67997         from gl_avltreehash_list_implementation.
67998
67999 2006-10-03  Bruno Haible  <bruno@clisp.org>
68000
68001         * lib/gl_oset.c (gl_oset_add): Fix return type.
68002
68003 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68004
68005         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68006
68007 2006-10-02  Eric Blake  <ebb9@byu.net>
68008
68009         * modules/strnlen (Depends-on): Add extensions.
68010
68011 2006-10-02  Eric Blake  <ebb9@byu.net>
68012
68013         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68014         definition in 2.60+.
68015
68016 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68017
68018         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68019         checks.
68020
68021 2006-10-02  Bruno Haible  <bruno@clisp.org>
68022
68023         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68024         to the AUTOMAKE_OPTIONS.
68025         Reported by Jim Meyering.
68026
68027 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68028
68029         Work around bug in Solaris 10 /proc file system:
68030         /proc/self/fd/NNN/.. isn't the parent directory of
68031         the directory whose file descriptor is NNN.  This needs to
68032         be worked around at run time, not compile time, since a
68033         program might be built on Solaris 8, where things work, and
68034         run on Solaris 10.
68035         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68036         to use the following interface instead:
68037         (OPENAT_BUFFER_SIZE): New macro.
68038         (openat_proc_name): New function.
68039         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68040         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68041         Likewise.
68042         * lib/openat-proc.c: New file.
68043         * modules/openat (Files): Add lib/openat-proc.c.
68044         (Depends-on): Add same-inode, stdbool.
68045         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68046
68047 2006-09-29  Bruno Haible  <bruno@clisp.org>
68048
68049         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68050         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68051         argument. Set stdout_closed before testing for ferror, not after.
68052         (fwriteerror, fwriteerror_no_ebadf): New functions.
68053
68054 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68055
68056         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68057
68058 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68059
68060         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68061         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68062
68063 2006-09-28  Jim Meyering  <jim@meyering.net>
68064
68065         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68066         Include <unistd.h>.
68067
68068 2006-09-28  Bruno Haible  <bruno@clisp.org>
68069
68070         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68071         * modules/linkedhash-list (Depends-on): Likewise.
68072         * modules/rbtreehash-list (Depends-on): Likewise.
68073
68074 2006-09-28  Bruno Haible  <bruno@clisp.org>
68075
68076         * lib/strndup.h: Simplify the redefinition of strndup.
68077         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68078         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68079
68080 2006-09-28  Bruno Haible  <bruno@clisp.org>
68081
68082         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68083         * lib/gl_linkedhash_list.c: Likewise.
68084         * lib/gl_rbtreehash_list.c: Likewise.
68085
68086 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68087
68088         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68089         getaddrinfo.
68090
68091         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68092         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68093         it causes <stdio_ext.h> to cause a compile-time error.
68094         Problem reported by Nelson H. F. Beebe.
68095         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68096         of HAVE_DECL___PENDING.
68097
68098         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68099         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68100         declaration.
68101
68102 2006-09-27  Jim Meyering  <jim@meyering.net>
68103
68104         This file could end up with a definition for a function
68105         named __strndup, rather than rpl_strndup on a system with
68106         incomplete weak_alias support.
68107         * lib/strndup.c (strndup): Rename from __strndup.
68108         Remove #defines that used to map __strndup to strndup.
68109         Don't use K&R prototypes.
68110         Remove LIBC-related code, since this file is not sync'd with glibc.
68111         * lib/strndup.h: Revamp, accordingly.
68112         * m4/strndup.m4: Modernize.
68113
68114 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68115
68116         * modules/savewd (Depends-on): Add 'raise'.
68117         * lib/savewd.c: Include <signal.h>, for 'raise'.
68118
68119 2006-09-26  Jim Meyering  <jim@meyering.net>
68120
68121         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68122         when we detect Darwin 8.7.0's acl_get_file bug.
68123         Rearrange to perform the new (below) run-test while $LIBS
68124         contains any acl-related library.  Set USE_ACL at the end.
68125         (gl_ACL_GET_FILE): New function.
68126
68127 2006-09-26  Eric Blake  <ebb9@byu.net>
68128
68129         * lib/verror.c: Include <config.h> unconditionally.
68130
68131 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68132
68133         * modules/clock-time (Maintainer): Add self.
68134         * modules/getlogin_r (Depends-on): Add extensions.
68135
68136 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68137
68138         * modules/clock-time: New module.
68139         * modules/nanosleep (Depends-on): Add clock-time.
68140         * modules/gethrxtime (Depends-on): Likewise.
68141         * modules/gettime (Depends-on): Likewise.
68142         * modules/settime (Depends-on): Likewise.
68143
68144         * modules/fts-lgpl: Depend on openat.
68145         * modules/mkancesdirs: Depend on savewd.
68146         * modules/mkdir-p: Likewise.
68147
68148 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68149
68150         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68151
68152         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68153         `gl_have_arbitrary_file_name_length_limit' to
68154         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68155         actually works between configure runs.
68156
68157 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68158             Bruno Haible  <bruno@clisp.org>
68159
68160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68161
68162 2006-09-25  Jim Meyering  <jim@meyering.net>
68163
68164         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68165         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68166
68167 2006-09-25  Eric Blake  <ebb9@byu.net>
68168
68169         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68170         exec's in 2006-09-18 patch when shuffling fds.
68171
68172 2006-09-25  Bruno Haible  <bruno@clisp.org>
68173
68174         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68175         Reported by Jim Meyering.
68176
68177 2006-09-24  Jim Meyering  <jim@meyering.net>
68178
68179         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68180         compare a pointer against a literal "0".  That caused failures with
68181         at least HP-UX's hpcc.
68182
68183 2006-09-22  Simon Josefsson  <jas@extundo.com>
68184
68185         * modules/gc-sha1:
68186         * modules/gc-md4:
68187         * modules/gc-hmac-sha1:
68188         * modules/gc-hmac-md5:
68189         * modules/gc-des:
68190         * modules/gc-arcfour: Distribute more files.
68191
68192 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68193
68194         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68195         (gl_linked_iterator_from_to): Initialize struct completely.
68196         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68197         (gl_tree_iterator_from_to): Likewise
68198         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68199         * lib/gl_array_list.c [lint] (gl_array_iterator)
68200         (gl_array_iterator_from_to): Likewise.
68201         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68202         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68203         (gl_carray_iterator_from_to): Likewise.
68204
68205         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68206         * lib/md4.c (md4_process_block): Remove unused variable.
68207         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68208         parentheses for clarity.
68209
68210 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68211
68212         * modules/bison-i18n (Depends-on): Add gettext.
68213
68214 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68215
68216         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68217         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68218         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68219         also add missing comma that caused broken test.
68220         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68221         stdlib.h, for `abort'.
68222         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68223         variables.
68224         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68225         include unistd.h if present, for `rmdir'.
68226         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68227         variables.
68228         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68229         in the process include standard headers for prototypes.
68230         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68231         gets declared on GNU/Linux.
68232         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68233         unistd.h, for `rmdir'.
68234         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68235
68236         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68237         always true.
68238         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68239
68240         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68241
68242 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68243
68244         * gnulib-tool (func_version): Create output all at once.  This
68245         may help avoid triggering unnecessary SIGPIPEs, and at any
68246         rate it doesn't hurt.
68247
68248 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68249             Bruno Haible  <bruno@clisp.org>
68250
68251         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68252         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68253         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68254
68255         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68256         (gl_FUNC_VASPRINTF): Invoke it.
68257
68258 2006-09-22  Bruno Haible  <bruno@clisp.org>
68259
68260         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68261         getloadavg.c as first argument.
68262
68263 2006-09-22  Bruno Haible  <bruno@clisp.org>
68264
68265         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68266         at the beginning of the gl_INIT macro.
68267         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68268         gl_GETLOADAVG.
68269
68270 2006-09-22  Bruno Haible  <bruno@clisp.org>
68271
68272         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68273         module.
68274         Suggested by Ralf Wildenhues.
68275
68276 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68277
68278         Import this patch from libc:
68279
68280         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68281
68282         * lib/regex_internal.c (re_string_reconstruct): Handle
68283         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68284         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68285         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68286         re_string_context_at.
68287
68288         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68289         now requires it.
68290         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68291         gl_REGEX now does it for us.
68292         (gl_REGEX): Add test taken from
68293         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68294
68295         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68296         Check that large offsets work.  Modernize Autoconf usages.
68297         Prefer "yes" to mean a good thing rather than a bad.
68298         Don't put "#define mkstemp" in config.h, as this might interfere
68299         with standard system headers that "#define mkstemp mkstemp64".
68300
68301         * modules/mkstemp (Depends-on): Add extensions, so that
68302         mkstemp is visible on some platforms.
68303         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68304         (Include): Change to "mkstemp.h" from <stdlib.h>.
68305         (Files): Add mkstemp.h.
68306
68307         * lib/mkstemp.h: New file, since some standard headers
68308         #define mkstemp.
68309         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68310         Include "mkstemp.h".
68311         Make the _LIBC code resemble glibc original more,
68312         e.g., use K&R style.
68313         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68314         (mkstemp): Remove, since mkstemp.h does this for us.
68315         * lib/stdlib--.h: Include mkstemp.h.
68316
68317         Import this patch from libc:
68318
68319         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68320
68321         * lib/tempname.c (__gen_tempname): Change attempts_min
68322         into a macro.  Use preprocessor to decide how to initialize
68323         attempts [Coverity CID 67].
68324
68325 2006-09-20  Bruno Haible  <bruno@clisp.org>
68326
68327         * lib/mkdtemp.c: Import from libc.
68328         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68329                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68330                 attempts_min into a macro.  Use preprocessor to decide how to
68331                 initialize attempts [Coverity CID 67].
68332         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68333                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68334                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68335
68336 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68337
68338         * gnulib-tool (func_exit): New function, to allow to pass the
68339         exit status portably through the trap.  Use everywhere.
68340         (--help, --version): Signal a write error.
68341         (trap): catch SIGPIPE, for write errors.
68342         Exit at the end of the trap, with the correct exit status.
68343
68344 2006-09-19  Karl Berry  <karl@gnu.org>
68345
68346         * doc/gnulib.texi: note about the license texinfo files.
68347
68348 2006-09-19  Eric Blake  <ebb9@byu.net>
68349
68350         * gnulib-tool: Avoid space-tab.
68351
68352 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68353
68354         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68355         that prevented coreutils 6.1 from building.  Problem reported
68356         by Petter Reinholdtsen.
68357
68358 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         * gnulib-tool (avoidlist): Fix typo that broke options like
68361         --avoid=lock that are used by coreutils bootstrap.
68362
68363 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68364
68365         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68366         more systematically.
68367
68368 2006-09-18  Jim Meyering  <jim@meyering.net>
68369
68370         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68371
68372 2006-09-18  Bruno Haible  <bruno@clisp.org>
68373
68374         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68375
68376 2006-09-18  Bruno Haible  <bruno@clisp.org>
68377
68378         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68379         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68380         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68381         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68382         * m4/gettext.m4: Require autoconf >= 2.52.
68383         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68384         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68385         of gl_cv_header_inttypes_h.
68386
68387 2006-09-18  Bruno Haible  <bruno@clisp.org>
68388
68389         * lib/javaversion.c: Include configmake.h.
68390
68391 2006-09-18  Bruno Haible  <bruno@clisp.org>
68392
68393         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68394         avoid that the while loops be executed in a subshell.
68395
68396 2006-09-18  Bruno Haible  <bruno@clisp.org>
68397
68398         * MODULES.html.sh (func_module): Break long lines.
68399         Suggested by Bruce Korb <bkorb@gnu.org>.
68400
68401 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68402
68403         Speed up by a factor of 1.12.
68404         * gnulib-tool (nl): New variable.
68405         (func_import): Rewrite include directive extraction to only read each
68406         directive once.
68407
68408 2006-09-17  Bruno Haible  <bruno@clisp.org>
68409
68410         * modules/javaversion (Makefile.am): Remove DEFS setting.
68411         (Depends-on): Add configmake, for PKGDATADIR definition.
68412
68413 2006-09-17  Bruno Haible  <bruno@clisp.org>
68414
68415         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68416
68417 2006-09-17  Bruno Haible  <bruno@clisp.org>
68418
68419         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68420         (func_modules_transitive_closure, func_modules_add_dummy,
68421         func_modules_to_filelist, func_import, func_create_testdir,
68422         func_create_megatestdir, ...): Use it wherever possible.
68423         Suggested by Ralf Wildenhues.
68424
68425 2006-09-16  Karl Berry  <karl@gnu.org>
68426
68427         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68428         to avoid sectioning errors.
68429         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68430         [ifinfo]: blank line after @center-ed titles.
68431         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68432         Spell FSF address consistently with others.
68433         (These changes approved by rms.)
68434
68435 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68436
68437         Speed up by a factor of 1.61.
68438         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68439         already checked module names again.
68440
68441 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68442
68443         Speed up by a factor of 1.13.
68444         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68445         for new_files, and the input to func_add_or_update.
68446
68447 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68448
68449         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68450         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68451
68452 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68453
68454         * modules/mkancesdirs (Depends-on): Add fcntl.
68455         * modules/savewd: New file.
68456         * MODULES.html.sh (File system functions): Add savewd.
68457
68458         * modules/configmake (Makefile.am): Add support for the
68459         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68460
68461 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68462
68463         * m4/savewd.m4: New file.
68464
68465 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68466
68467         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68468         (dirchownmod): New arg FD.  All callers changed.
68469         Use FD rather than opening the directory ourself, as opening is
68470         now the caller's responsibility.
68471         * lib/dirchownmod.h: Likewise.
68472         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68473         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68474         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68475         (test_dir): Remove.
68476         (mkancesdirs): Return length of prefix of FILE that has already
68477         been made, or -2 if there is a child doing the work.  Redo
68478         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68479         ".", and treat ".." specially since it might stray back into
68480         already-created areas.  Use a subprocess if necessary.  New arg
68481         WD; all users changed.  MAKE_DIR function should now return 1
68482         if it creates a directory that is not readable.  Return -2 if
68483         a child process is spun off.
68484         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68485         Adjust signature to match code.
68486         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68487         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68488         all users changed.
68489         * lib/savewd.c, lib/savewd.h: New files.
68490
68491 2006-09-15  Jim Meyering  <jim@meyering.net>
68492
68493         * modules/rename-dest-slash: New module.
68494         * MODULES.html.sh (posix_compat): Add it here.
68495
68496         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68497
68498 2006-09-15  Jim Meyering  <jim@meyering.net>
68499
68500         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68501         file.
68502
68503         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68504
68505 2006-09-15  Jim Meyering  <jim@meyering.net>
68506
68507         * lib/rename-dest-slash.c (has_trailing_slash): Use
68508         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68509         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68510         test before testing whether SRC is a directory.
68511         Suggestions from Bruno Haible.
68512
68513         Avoid a warning about an unused variable.
68514         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68515         into the #ifdef block where it's used.
68516
68517         * lib/rename-dest-slash.c: New file.
68518
68519 2006-09-14  Bruno Haible  <bruno@clisp.org>
68520
68521         * lib/allocsa.c: Include <config.h> unconditionally.
68522         * lib/asnprintf.c: Likewise.
68523         * lib/asprintf.c: Likewise.
68524         * lib/c-strcasecmp.c: Likewise.
68525         * lib/c-strcasestr.c: Likewise.
68526         * lib/c-strncasecmp.c: Likewise.
68527         * lib/c-strstr.c: Likewise.
68528         * lib/classpath.c: Likewise.
68529         * lib/clean-temp.c: Likewise.
68530         * lib/concatpath.c: Likewise.
68531         * lib/copy-file.c: Likewise.
68532         * lib/csharpcomp.c: Likewise.
68533         * lib/csharpexec.c: Likewise.
68534         * lib/execute.c: Likewise.
68535         * lib/fatal-signal.c: Likewise.
68536         * lib/findprog.c: Likewise.
68537         * lib/fwriteerror.c: Likewise.
68538         * lib/gl_array_list.c: Likewise.
68539         * lib/gl_array_oset.c: Likewise.
68540         * lib/gl_avltree_list.c: Likewise.
68541         * lib/gl_avltree_oset.c: Likewise.
68542         * lib/gl_avltreehash_list.c: Likewise.
68543         * lib/gl_carray_list.c: Likewise.
68544         * lib/gl_linked_list.c: Likewise.
68545         * lib/gl_linkedhash_list.c: Likewise.
68546         * lib/gl_list.c: Likewise.
68547         * lib/gl_oset.c: Likewise.
68548         * lib/gl_rbtree_list.c: Likewise.
68549         * lib/gl_rbtree_oset.c: Likewise.
68550         * lib/gl_rbtreehash_list.c: Likewise.
68551         * lib/imaxabs.c: Likewise.
68552         * lib/imaxdiv.c: Likewise.
68553         * lib/javacomp.c: Likewise.
68554         * lib/javaexec.c: Likewise.
68555         * lib/javaversion.c: Likewise.
68556         * lib/linebreak.c: Likewise.
68557         * lib/localcharset.c: Likewise.
68558         * lib/lock.c: Likewise.
68559         * lib/mbchar.c: Likewise.
68560         * lib/mbswidth.c: Likewise.
68561         * lib/mkdtemp.c: Likewise.
68562         * lib/pipe.c: Likewise.
68563         * lib/printf-args.c: Likewise.
68564         * lib/printf-parse.c: Likewise.
68565         * lib/progname.c: Likewise.
68566         * lib/progreloc.c: Likewise.
68567         * lib/readlink.c: Likewise.
68568         * lib/sh-quote.c: Likewise.
68569         * lib/stpcpy.c: Likewise.
68570         * lib/stpncpy.c: Likewise.
68571         * lib/strcasecmp.c: Likewise.
68572         * lib/strcasestr.c: Likewise.
68573         * lib/strcspn.c: Likewise.
68574         * lib/striconv.c: Likewise.
68575         * lib/strncasecmp.c: Likewise.
68576         * lib/strnlen1.c: Likewise.
68577         * lib/strstr.c: Likewise.
68578         * lib/strtok_r.c: Likewise.
68579         * lib/tls.c: Likewise.
68580         * lib/tmpdir.c: Likewise.
68581         * lib/unicodeio.c: Likewise.
68582         * lib/unsetenv.c: Likewise.
68583         * lib/vasnprintf.c: Likewise.
68584         * lib/vasprintf.c: Likewise.
68585         * lib/wait-process.c: Likewise.
68586         * lib/xallocsa.c: Likewise.
68587         * lib/xsetenv.c: Likewise.
68588         * lib/xstriconv.c: Likewise.
68589
68590 2006-09-13  Simon Josefsson  <jas@extundo.com>
68591
68592         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68593         that internally, suggested by Ralf Wildenhues
68594         <Ralf.Wildenhues@gmx.de>.
68595
68596 2006-09-13  Simon Josefsson  <jas@extundo.com>
68597
68598         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68599         @LIBOBJS@.
68600         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68601
68602 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68603
68604         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68605         longer worry about uses that don't define HAVE_CONFIG_H.
68606         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68607         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68608         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68609         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68610         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68611         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68612         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68613         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68614         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68615         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68616         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68617         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68618         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68619         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68620         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68621         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68622         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68623         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68624         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68625         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68626         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68627         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68628         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68629         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68630         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68631         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68632         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68633         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68634         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68635         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68636         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68637         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68638         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68639         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68640         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68641         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68642         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68643         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68644         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68645         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68646         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68647         Likewise.
68648
68649 2006-09-13  Eric Blake  <ebb9@byu.net>
68650
68651         * lib/getopt.c: Fix typo in last commit.
68652
68653 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68654
68655         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68656         dgettext.
68657
68658 2006-09-12  Jim Meyering  <jim@meyering.net>
68659
68660         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68661         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68662         Reported by Nelson H. F. Beebe.
68663
68664 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68665
68666         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68667         program_invocation_name and program_invocation_short_name are
68668         initialized.
68669         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68670         and program_invocation_short_name to argp.h, so they are visible
68671         to user programs.
68672         * lib/argp.h: Likewise
68673
68674 2006-09-10  Bruno Haible  <bruno@clisp.org>
68675
68676         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68677         m4/inttypes_h.m4, m4/uintmax_t.m4.
68678
68679 2006-09-10  Bruno Haible  <bruno@clisp.org>
68680
68681         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68682         gl_AC_TYPE_UINTMAX_T.
68683
68684 2006-09-10  Bruno Haible  <bruno@clisp.org>
68685
68686         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68687
68688 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68689
68690         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68691         convention.  Text proposed by Bruno Haible.
68692         (struct argp_option): Document the use of N_() wrappers.
68693
68694         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68695         '\v', and translate the two parts separately, instead of feeding
68696         the whole string to gettext.  This allows to exclude
68697         '\v' from the strings visible to the translator by writing doc
68698         strings as N_("..") "\v" N_("..").
68699
68700 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         * config/srclist.txt: Undo latest change; the bug was fixed.
68703
68704 2006-09-09  Bruno Haible  <bruno@clisp.org>
68705
68706         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68707         assignments if building a library without libtool.
68708         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68709         in func_emit_lib_Makefile_am.
68710         (func_import): When building a static library libfoo.a, arrange to
68711         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68712         (func_create_testdir): Likewise.
68713         * modules/gc (configure.ac, Makefile.am): If building statically,
68714         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68715         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68716         * modules/striconv (configure.ac, Makefile.am): Likewise.
68717         Based on a suggestion by Ralf Wildenhues.
68718
68719 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68720
68721         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68722         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68723         Also:
68724
68725         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68726         Add year_2050_test to catch glibc bug 2821
68727         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68728
68729         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68730         Prefer #ifdef to #if.
68731
68732         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68733         Return from 'main' instead of calling 'exit'.
68734
68735 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68736
68737         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68738         returned the maximum time_t value rather than (time_t) -1.
68739         Problem originally reported by William Bardwell
68740         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68741
68742         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68743         Moved to here ...
68744         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68745         ... from here.
68746
68747 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68748
68749         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68750         2821 is fixed.
68751
68752 2006-09-08  Jim Meyering  <jim@meyering.net>
68753
68754         Don't make generated files read-only.  That would bother too many
68755         people.  However, do retain the ability to work when targets are
68756         read-only: remove the destination and temporary files before writing
68757         them (when generated via sed or echo), or by using the -f option for
68758         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68759         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68760         * modules/byteswap, modules/configmake, modules/fcntl:
68761         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68762         * modules/localcharset, modules/netinet_in, modules/poll:
68763         * modules/stdbool, modules/stdint, modules/sys_select:
68764         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68765
68766 2006-09-08  Jim Meyering  <jim@meyering.net>
68767
68768         Avoid new build failure on FreeBSD 6.0.
68769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68770         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68771         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68772
68773 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68774
68775         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68776
68777 2006-09-07  Jim Meyering  <jim@meyering.net>
68778
68779         Fix global typo in last change: use chmod u-w, not chmod u-x.
68780         Spotted by Paul Eggert and Bruce Korb.
68781         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68782         * modules/byteswap, modules/configmake, modules/fcntl:
68783         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68784         * modules/localcharset, modules/netinet_in, modules/poll:
68785         * modules/stdbool, modules/stdint, modules/sys_select:
68786         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68787
68788 2006-09-06  Jim Meyering  <jim@meyering.net>
68789
68790         Make generated files be read-only.
68791         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68792         Ensure that each generated file is now read-only.
68793         * modules/argz: Likewise.
68794         * modules/arpa_inet: Likewise.
68795         * modules/byteswap: Likewise.
68796         * modules/configmake: Likewise.
68797         * modules/fcntl: Likewise.
68798         * modules/fnmatch: Likewise.
68799         * modules/getopt: Likewise.
68800         * modules/glob: Likewise.
68801         * modules/inttypes: Likewise.
68802         * modules/netinet_in: Likewise.
68803         * modules/poll: Likewise.
68804         * modules/stdbool: Likewise.
68805         * modules/stdint: Likewise.
68806         * modules/sys_select: Likewise.
68807         * modules/sys_socket: Likewise.
68808         * modules/sys_stat: Likewise.
68809         * modules/sysexits: Likewise.
68810         * modules/localcharset: Same as above, but continue using temporary
68811         file named "t-$@" (why different?) rather than the "$@-t" used
68812         everywhere else.
68813
68814         * modules/sysexits (Makefile.am): Replace literal occurrences
68815         of "sysexit.h" more readable, and more consistent, "$@".
68816
68817 2006-09-06  Bruno Haible  <bruno@clisp.org>
68818
68819         * modules/striconv: New file.
68820         * modules/xstriconv: New file.
68821         * MODULES.html.sh (Internationalization functions): Add striconv,
68822         xstriconv.
68823
68824 2006-09-06  Bruno Haible  <bruno@clisp.org>
68825
68826         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68827         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68828         not using libtool correctly.
68829
68830 2006-09-06  Bruno Haible  <bruno@clisp.org>
68831
68832         * lib/striconv.h: New file.
68833         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68834         iconvstring.c.
68835         * lib/xstriconv.h: New file.
68836         * lib/xstriconv.c: New file.
68837
68838 2006-09-06  Bruno Haible  <bruno@clisp.org>
68839
68840         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68841         lib_..._LDFLAGS.
68842
68843 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68844
68845         * lib/argz_.h: Sync from Libtool.
68846
68847         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68848                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68849
68850         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68851
68852 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68853
68854         * modules/trim: New file.
68855
68856 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68857
68858         * lib/trim.h: New file.
68859         * lib/trim.c: New file.
68860
68861 2006-09-05  Bruno Haible  <bruno@clisp.org>
68862
68863         * MODULES.html.sh (String handling): Add trim.
68864
68865 2006-09-04  Karl Berry  <karl@gnu.org>
68866
68867         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68868         until next release.
68869
68870 2006-09-03  Bruno Haible  <bruno@clisp.org>
68871
68872         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68873         correctly.
68874
68875 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68876
68877         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68878         not gl_GETLOADAVG.  Omit unneeded semicolons.
68879         Problems reported by Ralf Wildenhues in
68880         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68881         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68882         at the end, which is the usual gnulib style.
68883
68884         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68885         of doing all the work ourselves.
68886         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68887         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68888
68889 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68890
68891         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68892         Problem reported by Ralf Wildenhues in
68893         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68894
68895         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68896         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68897
68898 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68899
68900         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68901         yesterday's patch by changing test -n to test -z.
68902
68903 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68904
68905         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68906         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68907         the former is now obsolescent.
68908
68909         * modules/chdir-long (Depends-on): Add fcntl.
68910
68911 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68912
68913         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68914         obsolescent, and programs should use gnulib instead.
68915         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68916         but with prefixes changed.
68917
68918 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68919
68920         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68921         or stdbool.h, because they might not exist while configuring.
68922
68923         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68924         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68925         does that for us.
68926         (O_DIRECTORY): Remove.
68927
68928 2006-08-31  Eric Blake  <ebb9@byu.net>
68929
68930         * gnulib-tool: Don't let emacs change spaces to TAB.
68931
68932 2006-08-31  Bruno Haible  <bruno@clisp.org>
68933
68934         * gnulib-tool: When calling func_import more than once, do it in a
68935         subshell.
68936         Reported by Eric Blake <ebb9@byu.net>.
68937
68938 2006-08-31  Bruno Haible  <bruno@clisp.org>
68939
68940         * gnulib-tool (nl): Remove variable.
68941         (sed_transform_lib_file): Use more robust test for config-h module.
68942         (func_import): Fix typo in 2006-08-25 patch.
68943
68944 2006-08-31  Bruno Haible  <bruno@clisp.org>
68945
68946         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68947         specified, augment Makefile.am variables instead of assigning them.
68948
68949 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68950
68951         Work around a bug in both the Linux and SunOS 64-bit kernels:
68952         nanosleep mishandles sleeps for longer than 2**31 seconds.
68953         Problem reported by Frank v Waveren in
68954         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68956         Check for nanosleep bug.
68957         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68958
68959 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         Work around a bug in both the Linux and SunOS 64-bit kernels:
68962         nanosleep mishandles sleeps for longer than 2**31 seconds.
68963         Problem reported by Frank v Waveren in
68964         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68965         * lib/nanosleep.c (BILLION): New constant.
68966         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68967         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68968         implementation.
68969
68970 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         * modules/nanosleep (Depends-on): Add gettime.
68973
68974 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68975         and Simon Josefsson  <jas@extundo.com>
68976         and Oskar Liljeblad  <oskar@osk.mine.nu>
68977
68978         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68979         * gnulib-tool (func_import): New license type 'unmodifiable license
68980         text'.
68981         * modules/fdl: Use it.  Longer description.
68982         * module/gpl, module/lgpl: New files.
68983
68984 2006-08-30  Jim Meyering  <jim@meyering.net>
68985
68986         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68987         shadowing the parameter.
68988
68989 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68990
68991         Sync from Libtool:
68992
68993         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68994
68995         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
68996         sharing with gnulib.  Report by Eric Blake.
68997
68998 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
68999
69000         * modules/isapipe: New file.
69001         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69002
69003 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69004
69005         * modules/configmake (Makefile.am): Add a comment, and omit
69006         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69007         by Bruno Haible.
69008
69009 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69010
69011         * m4/isapipe.m4: New file.
69012
69013 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * lib/isapipe.c, lib/isapipe.h: New files.
69016
69017 2006-08-29  Jim Meyering  <jim@meyering.net>
69018
69019         * modules/configmake (Makefile.am): Make configmake.h depend on
69020         Makefile.  Otherwise, a stale configmake.h could hang around.
69021
69022 2006-08-29  Eric Blake  <ebb9@byu.net>
69023
69024         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69025         resolution of upstream bug 3044.
69026
69027 2006-08-29  Bruno Haible  <bruno@clisp.org>
69028
69029         * modules/localcharset (Depends-on): Add configmake.
69030         (Makefile.am): Remove setting of LIBDIR through DEFS.
69031
69032 2006-08-29  Bruno Haible  <bruno@clisp.org>
69033
69034         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69035         defined.
69036
69037 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69038
69039         * modules/fcntl: New file.
69040         * modules/chdir-safer (Depends-on): Add fcntl.
69041         * modules/fts: Likewise.
69042         * modules/mkdir-p: Likewise.
69043
69044         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69045         This undoes the most recent change, since we're now addressing the
69046         problem in a different way.
69047
69048         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69049         into output, since the output might be called Makefile.am even
69050         if $makefile_name is something different.
69051         (func_import): Use $makefile_am rather than
69052         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69053         empty.
69054
69055         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69056
69057 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69058
69059         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69060         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69061         recent change to stdint.m4, since we're now addressing the problem in a
69062         different way.
69063
69064 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69065
69066         * m4/fcntl_h.m4: New file.
69067
69068 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * lib/fcntl_.h: New file.
69071         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69072         the fcntl module.
69073         * lib/dirchownmod.c: Likewise.
69074         * lib/fts.c: Likewise.
69075
69076         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69077         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69078         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69079         just before including <inttypes.h>, to avoid circular inclusion.
69080
69081 2006-08-28  Jim Meyering  <jim@meyering.net>
69082
69083         * doc/visibility.texi: Actually read and correct the grammar of the
69084         sentence affected by yesterday's change.
69085
69086 2006-08-28  Eric Blake  <ebb9@byu.net>
69087
69088         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69089         needs wrapper.
69090
69091 2006-08-28  Eric Blake  <ebb9@byu.net>
69092
69093         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69094
69095 2006-08-28  Eric Blake  <ebb9@byu.net>
69096
69097         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69098
69099 2006-08-28  Bruno Haible  <bruno@clisp.org>
69100
69101         * modules/c-strstr: New file, from GNU gettext.
69102         * MODULES.html.sh (String handling): Add c-strstr.
69103
69104 2006-08-28  Bruno Haible  <bruno@clisp.org>
69105
69106         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69107         macros.
69108         Reported by Eric Blake.
69109
69110 2006-08-28  Bruno Haible  <bruno@clisp.org>
69111
69112         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69113         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69114         * lib/vasprintf.c: Include errno.h, limits.h.
69115         (EOVERFLOW): New fallback definition.
69116         (vasprintf): Test here whether the string length is > INT_MAX.
69117         * lib/vsnprintf.c: Include errno.h, limits.h.
69118         (EOVERFLOW): New fallback definition.
69119         (vsnprintf): Fix bug when generated string was too long for the buffer.
69120         Test here whether the string length is > INT_MAX.
69121
69122 2006-08-28  Bruno Haible  <bruno@clisp.org>
69123
69124         * lib/inttypes_.h (SCNX*): Remove definitions.
69125         Reported by Eric Blake.
69126
69127 2006-08-28  Bruno Haible  <bruno@clisp.org>
69128
69129         * lib/c-strstr.h: New file, from GNU gettext.
69130         * lib/c-strstr.c: New file, from GNU gettext.
69131
69132 2006-08-28  Bruno Haible  <bruno@clisp.org>
69133
69134         * gnulib-tool: Reorder some statements.
69135
69136 2006-08-28  Bruno Haible  <bruno@clisp.org>
69137
69138         * gnulib-tool: New option --makefile-name.
69139         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69140         $makefile_name.
69141         (func_import): Write $makefile_name to the cache file, and read it from
69142         there unless explicitly specified. Use $makefile_name as file name
69143         instead of Makefile.am. Adjust the recommendations accordingly.
69144
69145 2006-08-28  Bruno Haible  <bruno@clisp.org>
69146
69147         * gnulib-tool (func_verify_module): Check against misapplying patch.
69148
69149 2006-08-28  Bruno Haible  <bruno@clisp.org>
69150
69151         * gnulib-tool (func_relativize, func_relconcat): New functions.
69152         Give an error if --local-dir is given with --update.
69153         Remove trailing slashes from $local_gnulib_dir.
69154         (func_import): Store the relativized $local_gnulib_dir in
69155         gnulib-cache.m4, and read it from there if not specified explicitly.
69156
69157 2006-08-28  Bruno Haible  <bruno@clisp.org>
69158
69159         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69160         is the current directory. Respect also $local_gnulib_dir.
69161
69162 2006-08-28  Bruno Haible  <bruno@clisp.org>
69163             Simon Josefsson  <jas@extundo.com>
69164
69165         BeOS portability.
69166         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69167
69168 2006-08-27  Jim Meyering  <jim@meyering.net>
69169
69170         * doc/visibility.texi: Remove duplicate word: "pointer".
69171
69172 2006-08-26  Bruno Haible  <bruno@clisp.org>
69173
69174         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69175         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69176         (Makefile.am): Create inttypes.h from inttypes_.h.
69177         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69178
69179         * modules/imaxabs: New file.
69180
69181         * modules/imaxdiv: New file.
69182
69183 2006-08-26  Bruno Haible  <bruno@clisp.org>
69184
69185         * m4/inttypes.m4: New file.
69186         * m4/_inttypes_h.m4: Remove file.
69187         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69188         PRI_MACROS_BROKEN.
69189         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69190
69191         * m4/imaxabs.m4: New file.
69192
69193         * m4/imaxdiv.m4: New file.
69194
69195 2006-08-26  Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/inttypes_.h: New file.
69198         * lib/inttypes.h: Remove file.
69199         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69200
69201         * lib/imaxabs.c: New file.
69202
69203         * lib/imaxdiv.c: New file.
69204
69205 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69206
69207         New config-h module, so that "make" output needn't be cluttered
69208         by -DHAVE_CONFIG_H.
69209         * MODULES.html.sh (Support for building libraries and executables):
69210         Add config-h.
69211         * modules/config-h: New file.
69212         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69213         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69214         the config-h module is used.
69215
69216         New configmake module, so that "make" output needn't be cluttered
69217         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69218         * MODULES.html.sh (Support for building libraries and executables):
69219         Add configmake.
69220         * modules/configmake: New file.
69221
69222 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         * m4/config-h.m4: New file.
69225
69226 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         * config/srclist.txt: Add elisp-comp.
69229
69230 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69231
69232         * MODULES.html.sh (Support for building libraries and executables):
69233         Add elisp-comp.
69234         * build-aux/elisp-comp: New file.
69235         * modules/elisp-comp: New file.
69236
69237 2006-08-24  Bruno Haible  <bruno@clisp.org>
69238
69239         * gnulib-tool (func_create_testdir): Use non-default values of
69240         sourcebase and m4base.
69241
69242 2006-08-24  Bruno Haible  <bruno@clisp.org>
69243
69244         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69245         HTML structure.
69246
69247 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69248
69249         * modules/openat (Depends-on): Add lchown.
69250
69251 2006-08-23  Bruno Haible  <bruno@clisp.org>
69252
69253         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69254         of gl_LOCK_EARLY instead of gl_LOCK.
69255
69256 2006-08-23  Bruno Haible  <bruno@clisp.org>
69257
69258         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69259         on OSF/1 to no.
69260         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69261
69262 2006-08-23  Bruno Haible  <bruno@clisp.org>
69263
69264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69265         as unusable.
69266
69267         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69268         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69269         (gl_LOCK): New macro.
69270
69271 2006-08-22  Simon Josefsson  <jas@extundo.com>
69272
69273         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69274         to md5 module.
69275
69276 2006-08-22  Simon Josefsson  <jas@extundo.com>
69277
69278         * MODULES.html.sh: Add "Support for maintaining and release
69279         projects".
69280
69281         * build-aux/gnupload: New file, from coreutils.
69282
69283 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69284
69285         Avoid the need for AC_LIBSOURCES in m4 macros.
69286         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69287         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69288         * modules/check-version (EXTRA_DIST): Add check-version.h.
69289         * modules/crc (EXTRA_DIST): Add crc.h.
69290         * modules/des (EXTRA_DIST): Add des.h.
69291         * modules/gc (EXTRA_DIST): Add gc.h.
69292         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69293         * modules/getline (EXTRA_DIST): Add getline.h.
69294         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69295         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69296         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69297         * modules/md2 (EXTRA_DIST): Add md2.h.
69298         * modules/md4 (EXTRA_DIST): Add md4.h.
69299         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69300         * modules/read-file (EXTRA_DIST): Add read-file.h.
69301         * modules/readline (EXTRA_DIST): Add readline.h.
69302         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69303         rijndael-api-fst.h.
69304
69305 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69306
69307         * m4/rijndael.m4 (gl_ARCFOUR):
69308         * m4/arctwo.m4 (gl_ARCTWO):
69309         * m4/check-version.m4 (gl_CHECK_VERSION):
69310         * m4/crc.m4 (gl_CRC):
69311         * m4/des.m4 (gl_DES):
69312         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69313         * m4/gc.m4 (gl_GC):
69314         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69315         * m4/getline.m4 (gl_FUNC_GETLINE):
69316         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69317         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69318         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69319         * m4/md2.m4 (gl_MD2):
69320         * m4/md4.m4 (gl_MD4):
69321         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69322         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69323         * m4/readline.m4 (gl_FUNC_READLINE):
69324         * m4/rijndael.m4 (gl_RIJNDAEL):
69325         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69326         to get the necessary .h files and whatnot.
69327
69328 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69329
69330         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69331         gnulib rather than the other way around.
69332         * config/srclistvars.sh (COREUTILS): Remove.
69333
69334 2006-08-22  Jim Meyering  <jim@meyering.net>
69335
69336         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69337
69338         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69339
69340 2006-08-22  Eric Blake  <ebb9@byu.net>
69341
69342         * modules/regexprops-generic: New file.
69343         * MODULES.html.sh (Support for building documentation): List it.
69344
69345 2006-08-22  Eric Blake  <ebb9@byu.net>
69346
69347         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69348         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69349         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69350         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69351
69352 2006-08-22  Bruno Haible  <bruno@clisp.org>
69353
69354         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69355         and lib_LTLIBRARIES like the other lib_* variables.
69356
69357 2006-08-22  Bruno Haible  <bruno@clisp.org>
69358
69359         * build-aux/x-to-1.in: New file, from GNU gettext.
69360
69361 2006-08-22  Bruno Haible  <bruno@clisp.org>
69362
69363         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69364         <utmpx.h> exists.
69365
69366 2006-08-22  Bruno Haible  <bruno@clisp.org>
69367
69368         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69369         <utmpx.h> exists.
69370
69371 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69372
69373         BeOS portability.
69374         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69375         exist.
69376         Problem reported by Bruno Haible.
69377
69378 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69379
69380         Avoid the need for AC_LIBSOURCES in m4 macros.
69381         * modules/acl (EXTRA_DIST): Add acl.h.
69382         * modules/argmatch (Files): Add m4/argmatch.m4.
69383         (configure.ac): Add gl_ARGMATCH.
69384         (EXTRA_DIST): Renamed from lib_SOURCES, for
69385         consistency with the other modules.  Remove argmatch.c.
69386         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69387         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69388         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69389         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69390         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69391         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69392         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69393         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69394         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69395         * modules/closeout (EXTRA_DIST): Add closeout.h.
69396         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69397         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69398         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69399         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69400         dirname.h; remove basename.c and stripslash.c.
69401         * modules/exclude (EXTRA_DIST): Add exclude.h.
69402         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69403         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69404         * modules/file-type (EXTRA_DIST): Add file-type.h.
69405         * modules/filemode (EXTRA_DIST): Add filemode.h.
69406         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69407         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69408         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69409         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69410         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69411         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69412         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69413         * modules/getdate (EXTRA_DIST): Add getdate.c.
69414         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69415         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69416         * modules/getpass (EXTRA_DIST): Add getpass.h.
69417         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69418         * modules/group-member (EXTRA_DIST): Add group-member.h.
69419         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69420         * modules/hash (EXTRA_DIST): Add hash.h.
69421         * modules/human (EXTRA_DIST): Add human.h.
69422         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69423         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69424         * modules/lchown (EXTRA_DIST): Add lchown.h.
69425         * modules/long-options (EXTRA_DIST): Add long-options.h.
69426         * modules/lstat (EXTRA_DIST): Add lstat.h.
69427         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69428         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69429         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69430         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69431         * modules/memxor (EXTRA_DIST): Add memxor.h.
69432         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69433         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69434         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69435         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69436         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69437         * modules/physmem (EXTRA_DIST): Add physmem.h.
69438         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69439         * modules/posixver (EXTRA_DIST): Add posixver.h.
69440         * modules/quote (EXTRA_DIST): Add quote.h.
69441         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69442         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69443         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69444         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69445         regex_internal.h regexec.c.
69446         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69447         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69448         * modules/same (EXTRA_DIST): Add same.h.
69449         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69450         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69451         * modules/savedir (EXTRA_DIST): Add savedir.h.
69452         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69453         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69454         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69455         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69456         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69457         * modules/strdup (EXTRA_DIST): Add strdup.h.
69458         * modules/strftime (EXTRA_DIST): Add strftime.h.
69459         * modules/strndup (EXTRA_DIST): Add strndup.h.
69460         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69461         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69462         * modules/time_r (EXTRA_DIST): Add time_r.h.
69463         * modules/timespec (EXTRA_DIST): Add timespec.h.
69464         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69465         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69466         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69467         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69468         * modules/userspec (EXTRA_DIST): Add userspec.h.
69469         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69470         * modules/utimens (EXTRA_DIST): Add utimens.h.
69471         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69472         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69473         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69474         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69475         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69476         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69477         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69478         * modules/yesno (EXTRA_DIST): Add yesno.h.
69479
69480 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69481
69482         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69483
69484         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69485         * m4/dev-ino.m4, same-inode.m4: Remove.
69486
69487         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69488         * m4/acl.m4 (AC_FUNC_ACL):
69489         * m4/backupfile.m4 (gl_BACKUPFILE):
69490         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69491         * m4/canon-host.m4 (gl_CANON_HOST):
69492         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69493         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69494         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69495         * m4/cloexec.m4 (gl_CLOEXEC):
69496         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69497         * m4/closeout.m4 (gl_CLOSEOUT):
69498         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69499         * m4/dirname.m4 (gl_DIRNAME):
69500         * m4/exclude.m4 (gl_EXCLUDE):
69501         * m4/exitfail.m4 (gl_EXITFAIL):
69502         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69503         * m4/file-type.m4 (gl_FILE_TYPE):
69504         * m4/filemode.m4 (gl_FILEMODE):
69505         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69506         * m4/fpending.m4 (gl_FUNC_FPENDING):
69507         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69508         * m4/fts.m4 (gl_FUNC_FTS):
69509         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69510         * m4/getdate.m4 (gl_GETDATE):
69511         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69512         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69513         * m4/getpass.m4 (gl_FUNC_GETPASS):
69514         * m4/gettime.m4 (gl_GETTIME):
69515         * m4/getugroups.m4 (gl_GETUGROUPS):
69516         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69517         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69518         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69519         * m4/hash.m4 (gl_HASH):
69520         * m4/idcache.m4 (gl_IDCACHE):
69521         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69522         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69523         * m4/long-options.m4 (gl_LONG_OPTIONS):
69524         * m4/lstat.m4 (gl_FUNC_LSTAT):
69525         * m4/md5.m4 (gl_MD5):
69526         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69527         * m4/memcoll.m4 (gl_MEMCOLL):
69528         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69529         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69530         * m4/memxor.m4 (gl_MEMXOR):
69531         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69532         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69533         * m4/modechange.m4 (gl_MODECHANGE):
69534         * m4/mountlist.m4 (gl_MOUNTLIST):
69535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69536         * m4/openat.m4 (gl_FUNC_OPENAT):
69537         * m4/pathmax.m4 (gl_PATHMAX):
69538         * m4/physmem.m4 (gl_PHYSMEM):
69539         * m4/posixtm.m4 (gl_POSIXTM):
69540         * m4/posixver.m4 (gl_POSIXVER):
69541         * m4/quote.m4 (gl_QUOTE):
69542         * m4/quotearg.m4 (gl_QUOTEARG):
69543         * m4/readtokens.m4 (gl_READTOKENS):
69544         * m4/readutmp.m4 (gl_READUTMP):
69545         * m4/regex.m4 (gl_REGEX):
69546         * m4/safe-read.m4 (gl_SAFE_READ):
69547         * m4/safe-write.m4 (gl_SAFE_WRITE):
69548         * m4/same.m4 (gl_SAME):
69549         * m4/save-cwd.m4 (gl_SAVE_CWD):
69550         * m4/savedir.m4 (gl_SAVEDIR):
69551         * m4/settime.m4 (gl_SETTIME):
69552         * m4/sha1.m4 (gl_SHA1):
69553         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69554         * m4/stat-macros.m4 (gl_STAT_MACROS):
69555         * m4/stat-time.m4 (gl_STAT_TIME):
69556         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69557         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69558         * m4/strdup.m4 (gl_FUNC_STRDUP):
69559         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69560         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69561         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69562         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69563         * m4/time_r.m4 (gl_TIME_R):
69564         * m4/timespec.m4 (gl_TIMESPEC):
69565         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69566         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69567         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69568         * m4/userspec.m4 (gl_USERSPEC):
69569         * m4/utimecmp.m4 (gl_UTIMECMP):
69570         * m4/utimens.m4 (gl_UTIMENS):
69571         * m4/xalloc.m4 (gl_XALLOC):
69572         * m4/xgetcwd.m4 (gl_XGETCWD):
69573         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69574         * m4/xreadlink.m4 (gl_XREADLINK):
69575         * m4/xstrtod.m4 (gl_XSTRTOD):
69576         * m4/yesno.m4 (gl_YESNO):
69577         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69578         to get the necessary .h files and whatnot.
69579
69580 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69581             Bruno Haible  <bruno@clisp.org>
69582
69583         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69584         /bin/sh understanding of '!' conditional negation.
69585
69586 2006-08-21  Jim Meyering  <jim@meyering.net>
69587
69588         * modules/openat (Depends-on): Really alphabetize.
69589
69590         * modules/acl (Depends-on): Add error and quote.
69591
69592         * check-module (find_included_lib_files): Add at-func.c to the
69593         ok-to-include-more-than-once white list.
69594
69595         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69596
69597 2006-08-21  Bruno Haible  <bruno@clisp.org>
69598
69599         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69600         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69601         Reported by Martin Lambers <marlam@marlam.de>.
69602
69603 2006-08-21  Bruno Haible  <bruno@clisp.org>
69604
69605         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69606         specify an installation location, don't emit a noinst_LIBRARIES or
69607         noinst_LTLIBRARIES assignment.
69608
69609 2006-08-21  Bruno Haible  <bruno@clisp.org>
69610
69611         BeOS portability.
69612         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69613         BeOS has mbrtowc() but no <wctype.h>.
69614
69615 2006-08-21  Bruno Haible  <bruno@clisp.org>
69616
69617         BeOS portability.
69618         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69619         exist.
69620
69621 2006-08-21  Bruno Haible  <bruno@clisp.org>
69622
69623         BeOS portability.
69624         * lib/mbchar.h: Include <wctype.h> only if it exists.
69625
69626 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         Remove files that are no longer needed by their respective modules.
69629         * m4/obstack.m4: Remove.
69630         * m4/strerror_r.m4: Remove.
69631         * m4/uint32_t.m4: Remove.
69632         * m4/uintptr_t.m4: Remove.
69633         * m4/ullong_max.m4: Remove.
69634         * m4/xstrtoimax.m4: Remove.
69635         * m4/xstrtoumax.m4: Remove.
69636
69637         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69638         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69639         dependencies now capture this.
69640
69641         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69642         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69643         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69644         * m4/human.m4 (gl_HUMAN): Likewise.
69645         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69646         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69647
69648         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69649
69650         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69651         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69652         stdint.
69653         * m4/human.m4 (gl_HUMAN): Likewise.
69654         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69655         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69656         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69657         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69658         * m4/xstrtol (gl_XSTRTOL): Likewise.
69659
69660         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69661         AC_TYPE_LONG_LONG_INT.
69662         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69663         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69664         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69665         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69666
69667         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69668         on stdbool.
69669
69670         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69671         (gl_PREREQ_XSTRTOUL): Remove.
69672
69673         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69674
69675         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69676         mode.
69677
69678 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69679
69680         Add and change modules to make it easier for coreutils to use
69681         gnulib-tool.
69682         * modules/backupfile (Files): Remove m4/d-ino.m4.
69683         (Depends-on): Add d-ino.
69684         * modules/cycle-check (Depends-on): Add stdint.
69685         (lib_SOURCES): Add cycle-check.h.
69686         * modules/d-ino: New module.
69687         * modules/d-type: New module.
69688         * modules/error (Files): Remove m4/strerror_r.m4.
69689         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69690         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69691         m4/inttypes_h.m4, m4/uintmax_t.m4.
69692         (Depends-on): Add stdint.
69693         (lib_SOURCES): Add fsusage.h.
69694         * modules/getcwd (Files): Remove d-ino.m4.
69695         (Depends-on): Add d-ino.
69696         * modules/getndelim2 (Depends-on): Add stdint.
69697         * modules/glob (Files): Remove m4/d-type.m4.
69698         (Depends-on): Add d-type.
69699         * modules/host-os: New module.
69700         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69701         m4/inttypes_h.m4, m4/uintmax_t.m4.
69702         * Depends-on: Add stdint.
69703         (lib_SOURCES): Add human.h.
69704         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69705         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69706         m4/uintmax_t.m4, m4/ulonglong.m4.
69707         (Depends-on): Add stdint.
69708         (EXTRA_DIST): Add inttostr.h.
69709         * modules/lchmod: New module.
69710         * modules/link-follow: New module.
69711         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69712         (Depends-on): Add lchmod.
69713         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69714         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69715         (Depends-on): Add stdint.
69716         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69717         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69718         (Depends-on): Add stdint.
69719         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69720         * modules/perl: New module.
69721         * modules/regex (Depends-on): Add stdint.
69722         * modules/rmdir-errno: New module.
69723         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69724         m4/intmax_t.m4.
69725         (Depends-on): Add stdint.
69726         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69727         m4/uintmax_t.m4.
69728         (Depends-on): Add stdint.
69729         * modules/unlink-busy: New module.
69730         * modules/utimecmp (Depends-on): Add stdint.
69731         * modules/uptime: New module.
69732         * modules/winsz-ioctl: New module.
69733         * modules/winsz-termios: New module.
69734         * modules/xnanosleep (Depends-on): Add nanosleep.
69735         * modules/ullong_max: Remove.
69736         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69737         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69738         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69739         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69740         (Depends-on): Add inttypes.
69741         (lib_SOURCES): Add xstrtol.h.
69742         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69743         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69744         * MODULES.html.sh: Move 'assert' into the assert section.
69745         Move 'dummy' into the linking section.
69746         Remove ullong_max.
69747         Add section for compatibility checks for POSIX:2001 functions,
69748         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69749         winsz-ioctl, and winsz-termios into it.
69750         Add lchmod.
69751         Add top-level Misc section and put host-os, perl, and uptime
69752         into it.
69753
69754 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69757         now assume the stdint module.  Do not include inttypes.h.
69758         * lib/fsusage.h: Likewise.
69759         * lib/getndelim2.c: Likewise.
69760         * lib/human.h: Likewise.
69761         * lib/inttostr.h: Likewise.
69762         * lib/obstack.c: Likewise.
69763         * lib/regex_internal.h: Likewise.
69764         * lib/tempname.c: Likewise.
69765         * lib/utimecmp.c: Likewise.
69766         * lib/xstrtol.h: Likewise.
69767
69768         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69769
69770         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69771         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69772         * lib/xtime.h: Likewise.
69773
69774 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69775
69776         * modules/openat (Files): Add lib/fchmodat.c.
69777         Fixes problem reported by Jay Youngman.
69778
69779 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69780
69781         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69782         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69783
69784 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69785             Bruno Haible  <bruno@clisp.org>
69786
69787         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69788         and is a script that invokes bison. Tighten the code. Add comments.
69789
69790 2006-08-18  Jim Meyering  <jim@meyering.net>
69791
69792         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69793         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69794         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69795         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69796
69797 2006-08-18  Bruno Haible  <bruno@clisp.org>
69798
69799         * modules/bison-i18n: New file.
69800         * MODULES.html.sh (Internationalization functions): Add it.
69801
69802 2006-08-18  Bruno Haible  <bruno@clisp.org>
69803
69804         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69805         sys/statvfs.h. When getmntinfo was found, check its declaration and
69806         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69807
69808 2006-08-18  Bruno Haible  <bruno@clisp.org>
69809
69810         * m4/bison-i18n.m4: New file, from bison.
69811
69812 2006-08-18  Bruno Haible  <bruno@clisp.org>
69813
69814         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69815         (ME_DUMMY): Treat "kernfs" as a dummy.
69816         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69817
69818 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69819
69820         Update from coreutils.
69821
69822         2006-08-15  Jim Meyering  <jim@meyering.net>
69823
69824         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69825
69826         2006-01-17  Jim Meyering  <jim@meyering.net>
69827
69828         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69829
69830         2006-01-11  Jim Meyering  <jim@meyering.net>
69831
69832         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69833         Check for the lchmod function.
69834
69835 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69836
69837         Update from coreutils.
69838
69839         * lib/__fpending.h: Add copyright notice.
69840         * lib/fprintftime.h: Likewise.
69841         * lib/savedir.c: Use (C) in copyright notice.
69842         * lib/savedir.h: Likewise.
69843
69844         2006-08-15  Jim Meyering  <jim@meyering.net>
69845
69846         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69847         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69848         in support of the EXPECTED_ERRNO macro.
69849         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69850         definitions.  Instead, define the appropriate symbols and include
69851         "at-func.c".
69852         * lib/mkdirat.c (mkdirat): Likewise.
69853         * lib/fchmodat.c (fchmodat): Likewise.
69854         (ENOSYS): Remove definition.
69855         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69856         it.  Don't include "unistd--.h" -- it wasn't ever used.
69857
69858         2006-01-17  Jim Meyering  <jim@meyering.net>
69859
69860         Rewrite fts.c not to change the current working directory,
69861         by using openat, fstatat, fdopendir, etc..
69862
69863         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69864         (HAVE_OPENAT_SUPPORT): Define.
69865         [_LIBC] (fchdir): Don't undef or define; no longer used.
69866         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69867         Now, this `function' always succeeds, and consumes its file descriptor
69868         parameter -- so callers must not close such FDs.  Update callers.
69869         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69870         (diropen): Add parameter, SP.  Adjust all callers.
69871         Implement using diropen_fd, rather than open.
69872         (fts_open): Initialize new member, fts_cwd_fd.
69873         Remove fts_rft-setting code.
69874         (fts_close): Close fts_cwd_fd, if necessary.
69875         (__opendir2): Define in terms of opendir or opendirat,
69876         depending on whether the FST_NOCHDIR flag is set.
69877         (fts_build): Since fts_safe_changedir consumes its FD, and since
69878         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69879         and close the dup'd file descriptor upon failure.
69880         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69881         (fts_safe_changedir): Tweak semantics to reflect that this function
69882         now calls cwd_advance_fd and hence consumes its FD argument.
69883         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69884         [struct FTS] (fts_rft): Remove now-unused member.
69885         [struct FTS] (fts_cycle.state): Improve comment.
69886
69887         * lib/openat.c (openat_needs_fchdir): New function.
69888         * lib/openat.h (openat_needs_fchdir): Declare it.
69889
69890 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69891
69892         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69893         Problem and fix reported by Pádraig Brady in
69894         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69895
69896 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69897
69898         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69899
69900 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69901
69902         * lib/memcoll.c (memcoll): Optimize for the common case where the
69903         arguments are bytewise equal.
69904
69905 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69906
69907         * doc/regexprops-generic.texi: Add a copyright notice.
69908
69909 2006-08-15  Bruno Haible  <bruno@clisp.org>
69910
69911         * modules/tmpdir (License): Change to LGPL.
69912
69913 2006-08-15  Bruno Haible  <bruno@clisp.org>
69914
69915         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69916         module.
69917
69918 2006-08-14  Simon Josefsson  <jas@extundo.com>
69919
69920         * config/srclist.txt: Add gnupload.
69921
69922 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69923
69924         Change copyright notice from LGPL 2 to GPL 2, since that's the
69925         standard form used in the gnulib repository.
69926         * tests/test-lock.c: Likewise.
69927         * tests/test-stdint.c: Likewise.
69928         * tests/test-tls.c: Likewise.
69929
69930         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69931         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69932         Add copyright notice.
69933
69934         * check-module: Add copyright notice.  Output a copyright
69935         notice if "--version" is specified.
69936         * modules/COPYING: New file.
69937         * tests/test-getaddrinfo.c: Add copyright notice.
69938         * tests/test-verify.c: Likewise.
69939
69940 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69941
69942         Change copyright notice from LGPL 2 to GPL 2, since that's the
69943         standard form used in the gnulib repository.
69944         * lib/lock.c: LGPL -> GPL.
69945         * lib/lock.h: Likewise.
69946         * lib/strnlen1.c: Likewise.
69947         * lib/strnlen1.h: Likewise.
69948         * lib/tls.c: Likewise.
69949         * lib/tls.h: Likewise.
69950         * lib/tmpdir.c: Likewise.
69951
69952         * lib/TODO: Remove; this belongs only in coreutils.
69953
69954 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69955
69956         Add copyright notices to long-enough files that lack them, since
69957         otherwise the files aren't clearly free.  Use the same notice that
69958         getdate.texi already uses.
69959         * doc/alloca-opt.texi: Add copyright notice.
69960         * doc/alloca.texi: Likewise.
69961         * doc/ctime.texi: Likewise.
69962         * doc/functions.texi: Likewise.
69963         * doc/gcd.texi: Likewise.
69964         * doc/gnulib-tool.texi: Likewise.
69965         * doc/inet_ntoa.texi: Likewise.
69966         * doc/visibility.texi: Likewise.
69967
69968         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69969         * doc/quote.texi: Add copyright notice.
69970
69971         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69972         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69973         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69974         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69975         is now obsolete, and give a pointer to the Sun list.
69976         Add copyright notice.
69977
69978 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69979
69980         * config/srclistvars.sh: Add copyright notice.
69981
69982 2006-08-14  Eric Blake  <ebb9@byu.net>
69983
69984         Import the following change from libc:
69985
69986         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69987
69988         Upstream bug 2997.
69989         * lib/misc/error.c: Add space between program name and message if file
69990         name is missing.
69991
69992 2006-08-12  Karl Berry  <karl@gnu.org>
69993
69994         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
69995         remove, these originate in gnulib now.
69996
69997 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69998
69999         * doc/Makefile (standards.info standards.html standards.dvi):
70000         Also depend on make-stds.texi.
70001
70002 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70005         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70006
70007         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70008         in wchar_t.  Problem reported by Eric Blake.
70009
70010         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70011         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70012         Also, help the compiler to keep LEN in a register.
70013
70014 2006-08-11  Eric Blake  <ebb9@byu.net>
70015
70016         * users.txt: Sort.  Add tar.
70017
70018 2006-08-11  Bruno Haible  <bruno@clisp.org>
70019
70020         * users.txt: New file.
70021
70022 2006-08-11  Bruno Haible  <bruno@clisp.org>
70023
70024         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70025         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70026
70027 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70028
70029         * modules/snprintf (Depends-on): Remove minmax.
70030         (Maintainer): Add self and Bruno.
70031
70032 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70033
70034         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70035         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70036         (EOVERFLOW): Define if the system does not.
70037         Do not include "minmax.h"; it wasn't used.
70038         (snprintf): Don't assume size_t promotes to an unsigned type.
70039         Fix bug when generated string was too long for the buffer: the
70040         buffer's contents are supposed to be the initial prefix of the
70041         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70042         exceeds INT_MAX; do the check ourselves.
70043
70044         Import the following changes from libc:
70045
70046         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70047
70048         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70049         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70050         set wc to the byte which couldn't be converted.
70051         (re_string_reconstruct): Don't clear valid_raw_len before calling
70052         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70053         tip_context using re_string_context_at.
70054
70055         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70056
70057         * lib/posix/regex.h: g++ still cannot handled [restrict].
70058
70059         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70060
70061         * lib/posix/regex.h: Remove special handling for VMS.
70062
70063 2006-08-10  Jim Meyering  <jim@meyering.net>
70064
70065         * modules/same-inode: New module.
70066         * modules/dev-ino: New module.
70067         * modules/cycle-check: Depend on these modules, rather than simply
70068         including their .h files.
70069         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70070         required via m4/cycle-check.m4.
70071         * modules/same: Depend on new same-inode module, rather than
70072         including same-inode.h.
70073         * modules/chdir-safer: New file.
70074
70075         * modules/chown (Depends-on): Add stat-macros.
70076
70077 2006-08-10  Jim Meyering  <jim@meyering.net>
70078
70079         * m4/cycle-check.m4: New file.
70080         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70081         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70082
70083 2006-08-10  Eric Blake  <ebb9@byu.net>
70084
70085         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70086         in from original proposal.
70087
70088 2006-08-10  Eric Blake  <ebb9@byu.net>
70089         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70090
70091         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70092         namespace.
70093
70094 2006-08-10  Bruno Haible  <bruno@clisp.org>
70095
70096         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70097         as well.
70098
70099 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70100
70101         Sync from coreutils.
70102
70103         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70104
70105         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70106         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70107
70108 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70109
70110         * modules/restrict: Remove; no longer needed now that we assume
70111         Autoconf 2.59 or later.
70112         * MODULES.html.sh: Remove 'restrict'.
70113         * modules/argp (Depends-on): Remove 'restrict'.
70114         * modules/base64 (Depends-on): Likewise.
70115         * modules/gc (Depends-on): Likewise.
70116         * modules/getaddrinfo (Depends-on): Likewise.
70117         * modules/glob (Depends-on): Likewise.
70118         * modules/inet_ntop (Depends-on): Likewise.
70119         * modules/inet_pton (Depends-on): Likewise.
70120         * modules/memxor (Depends-on): Likewise.
70121         * modules/regex (Depends-on): Likewise.
70122         * modules/strtok_r (Depends-on): Likewise.
70123         * modules/time_r (Depends-on): Likewise.
70124
70125 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70128         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70129         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70130         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70131         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70132         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70133         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70134         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70135
70136         Merge from coreutils.
70137         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70138         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70139         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70140         * m4/time_r.m4 (gl_TIME_R): Likewise.
70141
70142 2006-08-09  Karl Berry  <karl@gnu.org>
70143
70144         * config/srclist.txt: no more gettext-tools, per Bruno.
70145
70146 2006-08-08  Eric Blake  <ebb9@byu.net>
70147
70148         * modules/verror: New module.
70149         * MODULES.html.sh: Document it.
70150
70151 2006-08-08  Eric Blake  <ebb9@byu.net>
70152
70153         * lib/verror.h, lib/verror.c: New files.
70154
70155 2006-08-08  Eric Blake  <ebb9@byu.net>
70156
70157         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70158         verror_at_line output complies with GNU Coding Standards even when
70159         file is NULL.
70160
70161 2006-08-07  Bruno Haible  <bruno@clisp.org>
70162
70163         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70164         versions of AIX.
70165         Reported by Ralf Wildenhues.
70166
70167 2006-08-07  Bruno Haible  <bruno@clisp.org>
70168
70169         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70170         in an AC_DEFUN. Needed so that the autoconf snippets can use
70171         AC_REQUIRE.
70172
70173 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70174
70175         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70176         Initialize pkgdata_DATA.
70177         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70178         overriding it.
70179
70180 2006-08-06  Eric Blake  <ebb9@byu.net>
70181
70182         * lib/error.h: Fold in some upstream changes from glibc.
70183         * lib/error.c: Likewise.
70184
70185 2006-08-04  Bruno Haible  <bruno@clisp.org>
70186
70187         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70188         Make the mostlyclean-local rule depend on mostlyclean-generic.
70189         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70190
70191 2006-07-31  Bruno Haible  <bruno@clisp.org>
70192
70193         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70194         <stdlib.h>, <string.h>.
70195
70196 2006-07-30  Bruno Haible  <bruno@clisp.org>
70197
70198         * modules/readlink (License): Change to LGPL.
70199
70200 2006-07-30  Bruno Haible  <bruno@clisp.org>
70201
70202         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70203         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70204         set PKGDATADIR to point to it.
70205
70206 2006-07-30  Bruno Haible  <bruno@clisp.org>
70207
70208         * modules/csharpexec (configure.ac): Comment out macro invocation.
70209         * modules/javaexec (configure.ac): Likewise.
70210         * modules/javacomp-script (configure.ac): Likewise.
70211
70212         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70213
70214 2006-07-30  Bruno Haible  <bruno@clisp.org>
70215
70216         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70217         linked-list.
70218
70219 2006-07-30  Bruno Haible  <bruno@clisp.org>
70220
70221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70222
70223 2006-07-30  Bruno Haible  <bruno@clisp.org>
70224
70225         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70226         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70227         get removed.
70228
70229 2006-07-29  Bruno Haible  <bruno@clisp.org>
70230
70231         Make it possible for gnulib-tool to work with locally modified or
70232         augmented gnulib repositories.
70233         * gnulib-tool (func_usage): Document --local-dir option.
70234         (local_gnulib_dir): New variable.
70235         Handle --local-dir option.
70236         (func_lookup_file): New function.
70237         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70238         (func_get_description, func_get_filelist, func_get_description,
70239         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70240         func_get_automake_snippet, func_get_include_directive,
70241         func_get_license, func_get_maintainer): Use func_lookup_file.
70242         (func_import, func_create_testdir): Use func_lookup_file.
70243
70244 2006-07-29  Bruno Haible  <bruno@clisp.org>
70245
70246         * modules/setenv (Depends-on): Add unistd.
70247
70248 2006-07-29  Bruno Haible  <bruno@clisp.org>
70249
70250         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70251
70252 2006-07-29  Bruno Haible  <bruno@clisp.org>
70253
70254         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70255
70256 2006-07-29  Bruno Haible  <bruno@clisp.org>
70257
70258         * gnulib-tool (import, update): If there is no Makefile.am, look at
70259         aclocal.m4, instead of bailing out.
70260
70261 2006-07-29  Bruno Haible  <bruno@clisp.org>
70262
70263         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70264         Categorize the options by when they are useful.
70265
70266 2006-07-29  Bruno Haible  <bruno@clisp.org>
70267
70268         * gnulib-tool (func_usage): Document option --no-libtool.
70269         Handle option --no-libtool.
70270         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70271         for changed semantics of $libtool variable.
70272         (func_import): Likewise. If libtool is not used, show this through
70273         an option --no-libtool.
70274         (func_create_testdir): Update.
70275
70276 2006-07-29  Bruno Haible  <bruno@clisp.org>
70277
70278         * gnulib-tool (func_import): Extend error message about missing
70279         --doc-base.
70280
70281 2006-07-29  Bruno Haible  <bruno@clisp.org>
70282
70283         * gnulib-tool (func_import): Don't create the $docbase directory if
70284         there is no file to store there.
70285
70286 2006-07-29  Bruno Haible  <bruno@clisp.org>
70287
70288         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70289         relevant, look for configure.ac there, not in the current directory.
70290         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70291
70292 2006-07-29  Bruno Haible  <bruno@clisp.org>
70293
70294         * gnulib-tool (SORT): New variable.
70295         (func_usage): Undocument --assume-autoconf option.
70296         Remove --assume-autoconf option handling.
70297         (autoconf_minversion): Determine from the contents of configure.ac.
70298         (func_import): Remove autoconf_minversion handling.
70299         Suggested by Eric Blake.
70300
70301 2006-07-29  Bruno Haible  <bruno@clisp.org>
70302
70303         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70304
70305 2006-07-29  Bruno Haible  <bruno@clisp.org>
70306
70307         * config/srclist.txt (*setenv.[ch]): Remove rules.
70308
70309 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70310
70311         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70312
70313 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70314
70315         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70316         arpa/inet.h.
70317
70318 2006-07-28  Simon Josefsson  <jas@extundo.com>
70319
70320         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70321         * modules/inet_pton (Depends-on): Likewise.
70322
70323 2006-07-28  Simon Josefsson  <jas@extundo.com>
70324
70325         * m4/netinet_in_h.m4: New file.
70326
70327 2006-07-28  Simon Josefsson  <jas@extundo.com>
70328
70329         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70330         #include's.
70331
70332 2006-07-28  Simon Josefsson  <jas@extundo.com>
70333
70334         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70335         #include's.
70336
70337 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70338
70339         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70340         setgid on directories only if they set these bits.
70341         * lib/modechange.h: Remove obsolete comment about masks.
70342
70343 2006-07-28  Eric Blake  <ebb9@byu.net>
70344
70345         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70346         macro expansion.
70347
70348 2006-07-28  Bruno Haible  <bruno@clisp.org>
70349
70350         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70351
70352 2006-07-28  Bruno Haible  <bruno@clisp.org>
70353
70354         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70355
70356 2006-07-28  Bruno Haible  <bruno@clisp.org>
70357
70358         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70359         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70360         Define fallbacks.
70361         Avoids link error on FreeBSD 4.x.
70362         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70363
70364         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70365         encoding.
70366         * lib/mbswidth.c (iswcntrl): Likewise.
70367
70368 2006-07-27  Bruno Haible  <bruno@clisp.org>
70369
70370         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70371         test.
70372
70373 2006-07-27  Bruno Haible  <bruno@clisp.org>
70374
70375         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70376         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70377         defined.
70378
70379 2006-07-26  Eric Blake  <ebb9@byu.net>
70380
70381         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70382
70383 2006-07-26  Eric Blake  <ebb9@byu.net>
70384
70385         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70386         like mingw that lack mkstemp.
70387         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70388         avoid compilation warning on mingw.
70389
70390 2006-07-26  Bruno Haible  <bruno@clisp.org>
70391
70392         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70393         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70394         INT_FAST*_MIN, INTPTR_MIN.
70395
70396 2006-07-25  Bruno Haible  <bruno@clisp.org>
70397
70398         * modules/version-etc (Depends-on): Add stdarg.
70399
70400 2006-07-25  Bruno Haible  <bruno@clisp.org>
70401
70402         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70403         complex commands.
70404
70405 2006-07-25  Bruno Haible  <bruno@clisp.org>
70406
70407         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70408         defined in <stdarg.h> or config.h.
70409
70410 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70411
70412         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70413         (gl_STDIO_SAFER): Remove.
70414
70415 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70416
70417         * MODULES.html.sh (File stream based Input/Output):
70418         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70419         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70420         * modules/fopen-safer, modules/tmpfile-safer: New files.
70421         * modules/stdio-safer: Remove.
70422
70423 2006-07-24  Bruno Haible  <bruno@clisp.org>
70424
70425         * modules/tmpdir: New file.
70426         * MODULES.html.sh (File system functions): Add it.
70427
70428 2006-07-24  Bruno Haible  <bruno@clisp.org>
70429
70430         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70431         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70432
70433 2006-07-24  Bruno Haible  <bruno@clisp.org>
70434
70435         * modules/clean-temp: New file.
70436
70437 2006-07-24  Bruno Haible  <bruno@clisp.org>
70438
70439         * m4/tmpdir.m4: New file, from GNU gettext.
70440
70441 2006-07-24  Bruno Haible  <bruno@clisp.org>
70442
70443         * lib/tmpdir.h: New file, from GNU gettext.
70444         * lib/tmpdir.c: New file, from GNU gettext.
70445
70446 2006-07-24  Bruno Haible  <bruno@clisp.org>
70447
70448         * lib/clean-temp.h: New file, from GNU gettext.
70449         * lib/clean-temp.c: New file, from GNU gettext.
70450
70451 2006-07-23  Eric Blake  <ebb9@byu.net>
70452
70453         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70454         (Depends-on): Add binary-io.
70455
70456 2006-07-23  Eric Blake  <ebb9@byu.net>
70457
70458         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70459
70460 2006-07-23  Eric Blake  <ebb9@byu.net>
70461
70462         * lib/tmpfile-safer.c: New file.
70463         * lib/stdio-safer.h (fopen_safer): Add prototype.
70464         * lib/stdio--.h (tmpfile): Make safer.
70465
70466 2006-07-23  Bruno Haible  <bruno@clisp.org>
70467
70468         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70469         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70470         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70471         gl_linked_remove_at): Use it.
70472
70473 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70474         and Simon Josefsson <jas@extundo.com>
70475
70476         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70477
70478         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70479
70480 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70481
70482         * modules/close-stream: New file.
70483         * modules/closeout (Description): Make it clear that it exits
70484         with a diagnostic on error.
70485         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70486         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70487
70488 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70489
70490         * m4/close-stream.m4: New file.
70491
70492 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * lib/close-stream.c, lib/close-stream.h: New files.
70495
70496 2006-07-22  Bruno Haible  <bruno@clisp.org>
70497
70498         Merge from GNU gettext 0.15.
70499
70500         2006-05-01  Bruno Haible  <bruno@clisp.org>
70501
70502                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70503
70504         2006-07-22  Bruno Haible  <bruno@clisp.org>
70505
70506                 * modules/javaversion: New file.
70507                 * MODULES.html.sh (Java): Add javaversion.
70508
70509         2006-03-12  Bruno Haible  <bruno@clisp.org>
70510
70511                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70512
70513         2005-12-04  Bruno Haible  <bruno@clisp.org>
70514
70515                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70516                 (untested).
70517
70518         2006-06-21  Bruno Haible  <bruno@clisp.org>
70519
70520                 Avoid warnings from recent versions of mcs.
70521                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70522                 -o, -L, -r any more. Use options documented since mcs-1.0
70523                 instead. Similarly for -g.
70524
70525         2005-12-04  Bruno Haible  <bruno@clisp.org>
70526
70527                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70528                 .resources, not .resource.
70529
70530         2005-07-09  Bruno Haible  <bruno@clisp.org>
70531
70532                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70533                 add a .dll suffix.
70534                 Reported by Mark Junker <mjscod@gmx.de>.
70535
70536         2006-07-22  Bruno Haible  <bruno@clisp.org>
70537
70538                 * modules/gettext: Upgrade to gettext-0.15.
70539                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70540                 m4/visibility.m4.
70541                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70542
70543 2006-07-22  Bruno Haible  <bruno@clisp.org>
70544
70545         Merge from GNU gettext 0.15.
70546
70547         2006-03-25  Bruno Haible  <bruno@clisp.org>
70548
70549                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70550
70551         2006-07-21  Bruno Haible  <bruno@clisp.org>
70552
70553                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70554                 "1.1".
70555
70556         2006-05-09  Bruno Haible  <bruno@clisp.org>
70557
70558                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70559                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70560                 for the conftestver execution.
70561
70562         2006-05-01  Bruno Haible  <bruno@clisp.org>
70563
70564                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70565                 optional target-version argument. Verify that the compiler
70566                 groks source of the specified source-version, or add -source
70567                 option as necessary. Verify that the compiler produces
70568                 bytecode in the specified target-version, or add -target and
70569                 -source options as necessary. Make the result of the test
70570                 available as variable CONF_JAVAC. Also log error output in
70571                 config.log.
70572
70573         2006-03-11  Bruno Haible  <bruno@clisp.org>
70574
70575                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70576
70577         2006-05-09  Bruno Haible  <bruno@clisp.org>
70578
70579                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70580                 CLASSPATH_SEPARATOR to a semicolon.
70581
70582         2006-03-12  Bruno Haible  <bruno@clisp.org>
70583
70584                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70585                 available as variable CONF_JAVA, for subsequent autoconf
70586                 tests. Also log error output in config.log.
70587
70588         2006-07-19  Bruno Haible  <bruno@clisp.org>
70589
70590                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70591                 that getline works on glibc2 systems. Needed to avoid trouble
70592                 in relocatable.c.
70593                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70594
70595         2005-12-04  Bruno Haible  <bruno@clisp.org>
70596
70597                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70598                 launcher (untested).
70599
70600         2005-12-04  Bruno Haible  <bruno@clisp.org>
70601
70602                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70603
70604         2006-07-22  Bruno Haible  <bruno@clisp.org>
70605
70606                 * gettext.m4: Update from GNU gettext-0.15.
70607                 * nls.m4: Likewise.
70608                 * po.m4: Likewise.
70609                 * inttypes-pri.m4: Likewise.
70610                 * inttypes-h.m4: Renamed from inttypes.m4.
70611                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70612
70613 2006-07-22  Bruno Haible  <bruno@clisp.org>
70614
70615         Merge from GNU gettext 0.15.
70616
70617         2005-07-05  Bruno Haible  <bruno@clisp.org>
70618
70619                 * printf-args.c (printf_fetchargs): Work around broken
70620                 definition of wint_t on mingw.
70621
70622         2005-02-12  Bruno Haible  <bruno@clisp.org>
70623
70624                 * xallocsa.h: Add extern "C" for C++.
70625
70626         2006-05-17  Bruno Haible  <bruno@clisp.org>
70627
70628                 Cygwin portability.
70629                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70630
70631         2006-04-30  Bruno Haible  <bruno@clisp.org>
70632
70633                 * progreloc.c: Include <mach-o/dyld.h> if available.
70634                 (find_executable): Use _NSGetExecutablePath when possible.
70635
70636         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70637
70638                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70639                 function.
70640
70641         2005-12-29  Bruno Haible  <bruno@clisp.org>
70642
70643                 * progreloc.c (set_program_name_and_installdir): Fix
70644                 compilation error.
70645
70646         2005-12-04  Bruno Haible  <bruno@clisp.org>
70647
70648                 Cygwin portability.
70649                 * progreloc.c: Include <windows.h> also on Cygwin.
70650                 (find_executable): Add support for Cygwin.
70651                 (set_program_name_and_installdir): Handle also platforms with
70652                 nonempty EXEEXT.
70653
70654         2006-07-11  Bruno Haible  <bruno@clisp.org>
70655
70656                 * javacomp.c: Fix a comment.
70657                 Reported by Jim Meyering.
70658
70659         2006-04-30  Bruno Haible  <bruno@clisp.org>
70660
70661                 * javacomp.h (compile_java_class): Add source_version,
70662                 target_version arguments.
70663                 * javacomp.c: Rewritten to choose only a compiler that
70664                 respects the specified source_version and target_version.
70665
70666         2006-06-27  Bruno Haible  <bruno@clisp.org>
70667
70668                 Assume correct S_ISDIR macro.
70669                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70670
70671         2006-07-22  Bruno Haible  <bruno@clisp.org>
70672
70673                 * javaversion.h: New file, from GNU gettext.
70674                 * javaversion.c: New file, from GNU gettext.
70675                 * javaversion.java: New file, from GNU gettext.
70676                 * javaversion.class: New file, from GNU gettext.
70677
70678         2006-05-17  Bruno Haible  <bruno@clisp.org>
70679
70680                 Cygwin portability.
70681                 * javaexec.c (execute_java_class): Test for jview program
70682                 also on Cygwin.
70683
70684         2006-04-09  Bruno Haible  <bruno@clisp.org>
70685
70686                 * fatal-signal.c: Don't include string.h.
70687                 (at_fatal_signal): Use a copying loop instead of memcpy.
70688
70689         2005-12-04  Bruno Haible  <bruno@clisp.org>
70690
70691                 * csharpexec.c: Add support for 'clix' launcher (untested).
70692                 (execute_csharp_using_sscli): New function.
70693                 (execute_csharp_program): Call it.
70694
70695         2006-06-21  Bruno Haible  <bruno@clisp.org>
70696
70697                 Avoid warnings from recent versions of mcs.
70698                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70699                 -o, -L, -r any more. Use options documented since mcs-1.0
70700                 instead. Similarly for -g.
70701
70702         2005-07-09  Bruno Haible  <bruno@clisp.org>
70703
70704                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70705                 add a .dll suffix.
70706                 Reported by Mark Junker <mjscod@gmx.de>.
70707
70708         2006-06-17  Bruno Haible  <bruno@clisp.org>
70709
70710                 * config.charset: Update for NetBSD 3.0.
70711
70712         2006-05-17  Bruno Haible  <bruno@clisp.org>
70713
70714                 Cygwin portability.
70715                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70716
70717         2006-05-16  Bruno Haible  <bruno@clisp.org>
70718
70719                 * localcharset.c [CYGWIN]: Include <windows.h>.
70720                 (get_charset_aliases): For Cygwin, return the same CPxxx
70721                 aliases list as under WIN32.
70722                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70723                 the environment variables. Fall back to GetACP().
70724
70725         2006-04-05  Bruno Haible  <bruno@clisp.org>
70726
70727                 * config.charset: Update Juan Manuel Guerrero's address.
70728
70729         2005-02-12  Bruno Haible  <bruno@clisp.org>
70730
70731                 * allocsa.h: Add extern "C" for C++.
70732
70733         2005-02-10  Bruno Haible  <bruno@clisp.org>
70734
70735                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70736                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70737
70738         2006-07-22  Bruno Haible  <bruno@clisp.org>
70739
70740                 * gettext.h: Update to GNU gettext-0.15.
70741
70742 2006-07-22  Bruno Haible  <bruno@clisp.org>
70743
70744         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70745         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70746         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70747
70748 2006-07-21  Eric Blake  <ebb9@byu.net>
70749
70750         * modules/stdlib-safer: New file.
70751         * MODULES.html.sh (File stream based Input/Output): Add
70752         stdlib-safer.
70753
70754 2006-07-21  Eric Blake  <ebb9@byu.net>
70755
70756         * lib/stdlib-safer.h: New file from coreutils, required by
70757         stdlib--.h.
70758
70759 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70760
70761         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70762
70763 2006-07-20  Bruno Haible  <bruno@clisp.org>
70764
70765         * gnulib-tool: Recognize new option --assume-autoconf.
70766         (autoconf_minversion): New variable.
70767         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70768
70769 2006-07-20  Bruno Haible  <bruno@clisp.org>
70770
70771         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70772
70773 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70774
70775         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70776         Reindent and repaginate.
70777
70778 2006-07-19  Derek Price  <derek@ximbiot.com>
70779
70780         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70781         Correct grammar.
70782
70783 2006-07-17  Bruno Haible  <bruno@clisp.org>
70784
70785         * modules/list: New file.
70786         * modules/array-list: New file.
70787         * modules/carray-list, modules/carray-list-tests: New files.
70788         * modules/linked-list, modules/linked-list-tests: New files.
70789         * modules/avltree-list, modules/avltree-list-tests: New files.
70790         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70791         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70792         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70793         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70794         * modules/oset: New file.
70795         * modules/array-oset: New file.
70796         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70797         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70798         * tests/test-carray_list.c: New file.
70799         * tests/test-linked_list.c: New file.
70800         * tests/test-avltree_list.c: New file.
70801         * tests/test-rbtree_list.c: New file.
70802         * tests/test-linkedhash_list.c: New file.
70803         * tests/test-avltreehash_list.c: New file.
70804         * tests/test-rbtreehash_list.c: New file.
70805         * tests/test-avltree_oset.c: New file.
70806         * tests/test-rbtree_oset.c: New file.
70807         * MODULES.html.sh (Container data structures): New section.
70808
70809 2006-07-17  Bruno Haible  <bruno@clisp.org>
70810
70811         * m4/gl_list.m4: New file.
70812
70813 2006-07-17  Bruno Haible  <bruno@clisp.org>
70814
70815         * lib/gl_list.h: New file.
70816         * lib/gl_list.c: New file.
70817         * lib/gl_array_list.h: New file.
70818         * lib/gl_array_list.c: New file.
70819         * lib/gl_carray_list.h: New file.
70820         * lib/gl_carray_list.c: New file.
70821         * lib/gl_linked_list.h: New file.
70822         * lib/gl_linked_list.c: New file.
70823         * lib/gl_anylinked_list1.h: New file.
70824         * lib/gl_anylinked_list2.h: New file.
70825         * lib/gl_avltree_list.h: New file.
70826         * lib/gl_avltree_list.c: New file.
70827         * lib/gl_anyavltree_list1.h: New file.
70828         * lib/gl_anyavltree_list2.h: New file.
70829         * lib/gl_rbtree_list.h: New file.
70830         * lib/gl_rbtree_list.c: New file.
70831         * lib/gl_anyrbtree_list1.h: New file.
70832         * lib/gl_anyrbtree_list2.h: New file.
70833         * lib/gl_anytree_list1.h: New file.
70834         * lib/gl_anytree_list2.h: New file.
70835         * lib/gl_linkedhash_list.h: New file.
70836         * lib/gl_linkedhash_list.c: New file.
70837         * lib/gl_anyhash_list1.h: New file.
70838         * lib/gl_anyhash_list2.h: New file.
70839         * lib/gl_avltreehash_list.h: New file.
70840         * lib/gl_avltreehash_list.c: New file.
70841         * lib/gl_rbtreehash_list.h: New file.
70842         * lib/gl_rbtreehash_list.c: New file.
70843         * lib/gl_anytreehash_list1.h: New file.
70844         * lib/gl_anytreehash_list2.h: New file.
70845
70846         * lib/gl_oset.h: New file.
70847         * lib/gl_oset.c: New file.
70848         * lib/gl_array_oset.h: New file.
70849         * lib/gl_array_oset.c: New file.
70850         * lib/gl_avltree_oset.h: New file.
70851         * lib/gl_avltree_oset.c: New file.
70852         * lib/gl_rbtree_oset.h: New file.
70853         * lib/gl_rbtree_oset.c: New file.
70854         * lib/gl_anytree_oset.h: New file.
70855
70856 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * m4/mkancesdirs.m4: New file.
70859         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70860         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70861         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70862         it.
70863
70864 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70865
70866         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70867         * lib/mkancesdirs.h: New files.
70868         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70869         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70870         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70871         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70872         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70873         callers changed.  Revamp internals significantly, by not
70874         attempting to create directories that are temporarily more
70875         permissive than the final results.  Do not attempt to use
70876         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70877         This removes some race conditions, fixes some bugs, and simplifies
70878         things.  Use new dirchownmod function to do owner and mode changes.
70879         * lib/mkdir-p.h: Likewise.
70880         * lib/modechange.c (octal_to_mode): New function.
70881         (struct mode_change): New member mentioned.
70882         (make_node_op_equals): New arg mentioned.  All callers changed.
70883         (mode_compile): Keep track of which mode bits the user has explicitly
70884         mentioned.
70885         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70886         New arg PMODE_BITS, to keep track of which mode bits the user
70887         mentioned; it treats S_ISUID and S_ISGID speciall.
70888         All callers changed.
70889         * lib/modechange.h: Likewise.
70890
70891 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * MODULES.html.sh: Add mkancestors.
70894         * modules/mkancesdirs: New module.
70895         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70896         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70897         The chdir-safer and afs files are now orphans; I'll remove them
70898         unless someone speaks up.
70899         Add lib/dirchownmod.c, lib/dirchownmod.h.
70900         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70901         Add lchown, mkancesdirs.
70902         (Maintainer): Add self.
70903
70904 2006-07-15  Karl Berry  <karl@gnu.org>
70905
70906         * gnulib-tool: help message wording/arrangement.
70907
70908 2006-07-14  Simon Josefsson  <jas@extundo.com>
70909
70910         * doc/gnulib.texi (Libtool and Windows): New section.
70911
70912 2006-07-12  Simon Josefsson  <jas@extundo.com>
70913
70914         * modules/gendocs (License): Fix license, approved by Karl.
70915
70916 2006-07-12  Eric Blake  <ebb9@byu.net>
70917
70918         * MODULES.html.sh: Add gendocs.
70919
70920 2006-07-11  Eric Blake  <ebb9@byu.net>
70921
70922         * modules/fdl: New module, to install doc/fdl.texi.
70923         * MODULES.html.sh: Add new section for documentation modules.
70924         * gnulib-tool: Avoid space-tab.
70925         (--doc-base): New option, to manage files from doc.
70926
70927 2006-07-11  Eric Blake  <ebb9@byu.net>
70928
70929         * m4/absolute-header.m4: Fix comments to match recent change.
70930
70931 2006-07-11  Eric Blake  <ebb9@byu.net>
70932
70933         * gnulib-tool: List --doc-base before --tests-base.
70934
70935 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70936
70937         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70938
70939 2006-07-11  Bruno Haible  <bruno@clisp.org>
70940
70941         * README: Mention where to put documentation.
70942
70943 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70944
70945         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70946
70947 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70950         to stdint.m4.
70951
70952 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70953
70954         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70955         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70956         "no/such/file/stdint.h" when there is no such file, so that
70957         the resulting C code can be parsed by dodgy compilers.
70958         Problems reported by Bob Proulx.
70959
70960 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70961
70962         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70963         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70964         macros into the GNU _D_EXACT_NAMLEN.
70965         * lib/savedir.c:  Likewise.
70966         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70967
70968 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70969         and Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70972         * m4/savedir.m4:
70973         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70974         macros into the GNU _D_EXACT_NAMLEN.
70975
70976 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70979         around the absolute name, to work around a problem with the HP-UX
70980         11.23 native C compiler, reported by Bob Proulx.
70981
70982 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         * doc/maintain.texi, make-stds.texi: Sync from
70985         <http://savannah.gnu.org/projects/gnustandards>.
70986
70987 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
70990
70991 2006-07-09  Jim Meyering  <jim@meyering.net>
70992
70993         * m4/glob.m4: Remove a doubled word in a comment.
70994
70995 2006-07-09  Jim Meyering  <jim@meyering.net>
70996
70997         * lib/argp-pv.c: Remove a doubled word in a comment.
70998         * lib/check-version.c (check_version): Likewise.
70999         * lib/javacomp.c (compile_java_class): Likewise.
71000
71001 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71004         for the benefit of people using Autoconf 2.60.  If you want to
71005         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71006         (or m4/onceonly.m4, if pre-2.57) manually.
71007
71008 2006-07-08  Jim Meyering  <jim@meyering.net>
71009
71010         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71011         comment.
71012         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71013         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71014         comment.
71015
71016 2006-07-08  Jim Meyering  <jim@meyering.net>
71017
71018         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71019
71020 2006-07-07  Simon Josefsson  <jas@extundo.com>
71021
71022         * tests/test-crc.c: Change expected crc value, the test vector
71023         were probably computed using the old broken crc.c?
71024
71025 2006-07-06  Simon Josefsson  <jas@extundo.com>
71026
71027         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71028         now the canonical place for the M4 file).
71029
71030         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71031         from the sys_socket dependency now.
71032
71033         * modules/inet_pton (Files): Ditto.
71034
71035         * modules/inet_ntop (Files): Ditto.
71036
71037 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71038
71039         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71040         not gl_PREREQ_GETUSERSHELL.
71041
71042 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71043
71044         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71045         with only one argument, for Autoconf 2.60.
71046         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71047         expand to nothing, so add a shell command to avoid syntax error.
71048         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71049
71050 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71051
71052         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71053
71054 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71055
71056         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71057         no longer needed.  Check for isblank decl.
71058         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71059         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71060         of existence.
71061
71062 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71063
71064         * lib/getloadavg.c: Use __VMS, not VMS.
71065         * lib/getopt.c: Likewise.
71066         * lib/getpagesize.h: Likewise.
71067         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71068         and probably does not work.
71069
71070 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * lib/.cppi-disable: Add wcwidth.
71073         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71074         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71075         (ISGRAPH): Remove.  All uses changed to isgraph.
71076         (FOLD) [!defined _LIBC]: Remove special case.
71077         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71078         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71079         HAVE_ISBLANK.
71080         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71081         case.
71082
71083 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71084
71085         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71086         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71087         brackets.  Other minor changes to suppress some compiler
71088         warnings.
71089
71090 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71091         and Paul Eggert  <eggert@cs.ucla.edu>
71092
71093         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71094         of invoking obsolescent AC_HEADER_DIRENT macro.
71095         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71096         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71097         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71098         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71099         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71100         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71101         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71102         * m4/readdir.m4: Remove; no longer needed.
71103
71104 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71105         and Paul Eggert  <eggert@cs.ucla.edu>
71106
71107         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71108         Don't worry about this obsolete case any more.
71109         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71110         directories.
71111         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71112         worry about this obsolete case any more.
71113         * lib/fts.c: Likewise.
71114         * lib/getcwd.c: Likewise.
71115         * lib/glob.h: Likewise.
71116         * lib/savedir.c: Likewise.
71117
71118 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71119
71120         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71121         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71122         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71123         needed.
71124         All uses removed.
71125         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71126         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71127         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71128         needed.
71129         * m4/getdate.m4 (gl_GETDATE): Likewise.
71130         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71131         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71132         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71133         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71134         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71135         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71136         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71137         needed.
71138
71139 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71140
71141         * lib/memcasecmp.c: Include <limits.h>.
71142         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71143         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71144         Don't assume isdigit succeeds only on '0' through '9'.
71145
71146 2006-07-05  Eric Blake  <ebb9@byu.net>
71147
71148         * modules/getaddrinfo (Depends-on): Add snprintf.
71149
71150 2006-07-05  Eric Blake  <ebb9@byu.net>
71151
71152         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71153         to avoid 'header present but could not be compiled' on cygwin.
71154
71155 2006-07-05  Eric Blake  <ebb9@byu.net>
71156
71157         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71158         missing from netdb.h.
71159         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71160
71161 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71162
71163         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71164         no longer needed.
71165         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71166         * m4/getdate.m4 (gl_GETDATE): Likewise.
71167         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71168         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71169         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71170         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71171         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71172
71173 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71174
71175         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71176         All uses of is_space replaced by isspace.
71177         * lib/exit.h: Don't talk about STDC_HEADERS.
71178         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71179         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71180         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71181         replaced by isprint etc.
71182         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71183         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71184         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71185         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71186         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71187         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71188
71189 2006-07-05  Bruno Haible  <bruno@clisp.org>
71190
71191         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71192         the function exists, before testing against AIX.
71193         Reported by Martin Lambers <marlam@marlam.de>.
71194
71195 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71198         From Mark D. Baushke.
71199
71200 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71201
71202         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71203         to the absolute name, not just one, to bypass Sun C 5.8's
71204         "warning: #include of /usr/include/... may be non-portable".
71205
71206 2006-07-04  Eric Blake  <ebb9@byu.net>
71207
71208         * modules/dirname-tests: New test module.
71209         * tests/test-dirname.c: New file, replacing dirname.c
71210         TEST_DIRNAME section that was recently deleted.
71211
71212 2006-07-04  Bruno Haible  <bruno@clisp.org>
71213
71214         Assume ANSI C header files and <ctype.h> functions.
71215         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71216         (mbsnwidth): Use isprint, iscntrl instead.
71217
71218 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71219
71220         Merge from coreutils.
71221         * MODULES.html.sh: Add xstrtold.
71222         * modules/xstrtold: New file.
71223         * modules/cycle-check (Files): Add lib/same-inode.h.
71224         * modules/dirname (Files): Add m4/double-slash-root.m4.
71225         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71226         * modules/mkdir-p (Files): Add lib/same-inode.h.
71227         * modules/same (Files): Add lib/same-inode.h.
71228
71229 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71230
71231         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71232         This is to keep the terminology clean; POSIX talks about
71233         "absolute pathnames", not "full pathnames", but the GNU
71234         Coding Standards say to use "path" for something else;
71235         so use "absolute" to keep both sides happy.
71236         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71237         Set gl_absolute_header, not gl_full_header_path.
71238         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71239         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71240         All uses changed.
71241
71242         Merge from coreutils.
71243
71244         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71245
71246         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71247         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71248         want to require the building of c-strtod.o.
71249         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71250         needs -lm directly.
71251         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71252
71253         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71254
71255         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71256         --as-needed option if available.  Problem reported by Albert Chin in
71257         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71258         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71259         cc merely issues a bunch of annoying warnings for --as-needed
71260         (this problem was reported by Bob Proulx).  Also, try linking with
71261         -lm to detect a bug in binutils 2.16 (this problem was reported
71262         by Ralf Wildenhues).
71263
71264         2006-06-18  Jim Meyering  <jim@meyering.net>
71265
71266         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71267         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71268         macro.
71269         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71270         also check for glibc-2.4's abort-inducing bug.
71271
71272         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71273         Low-probability clean-up should be to use rmdir to get rid of
71274         the just-created directory, not unlink.
71275
71276         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71277         configure fail, and request a bug report to inform us about it.
71278         Add a comment that, barring reports to the contrary, in 2007 we'll
71279         assume ftruncate is universally available.
71280
71281         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71284
71285         2006-03-12  Jim Meyering  <jim@meyering.net>
71286
71287         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71288         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71289         * m4/same.m4 (gl_SAME): Likewise.
71290         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71291
71292         2006-03-11  Eric Blake  <ebb9@byu.net>
71293
71294         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71295         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71296         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71297         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71298
71299 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71302         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71303         reported by Mark D. Baushke, one in
71304         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71305
71306         Merge from coreutils.
71307
71308         * lib/.cppi-disable: Add stdint_.h.
71309         * lib/.cvsignore: Add stdint.h.
71310
71311         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71314         both double and long double versions.
71315         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71316         * lib/xstrtold.c: New file.
71317         * lib/xstrtod.h (xstrtold): New decl.
71318
71319         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71320
71321         * lib/filemode.c (setst): Remove.
71322         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71323         (arguably) clearer, and the generated code is a bit smaller on my
71324         Debian GNU/Linux stable x86 host.
71325
71326         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71327
71328         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71329         Assume that filemode.h includes sys/types.h and sys/stat.h.
71330         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71331         (ftypelet): Reorder to put common cases first, for efficiency.
71332         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71333         to do 'M'.
71334         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71335         of 10, for compatibility with FreeBSD.  All callers changed.
71336         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71337         types that can't be deduced solely from st_mode.  First arg is now a
71338         const pointer.
71339         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71340         (strmode): Renamed from mode_string.
71341         (filemodestring): New decl.
71342         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71343         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71344         needed.
71345         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71346
71347         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71348
71349         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71350         fsusage.h now does that.  Include fsusage.h first, to test interface.
71351         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71352         at most one method (the old code could have generated decls that
71353         didn't conform to C89, not that this was ever exercised).
71354         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71355
71356         2006-03-19  Jim Meyering  <jim@meyering.net>
71357
71358         Work even in a chroot where d_ino values for entries in "/"
71359         don't match the stat.st_ino values for the same names.
71360         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71361         number, iterate through all entries again, using lstat instead.
71362         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71363         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71364
71365         * lib/getcwd.c (__getcwd): Clarify a comment.
71366         Use memcpy in place of a call to strcpy.
71367
71368         2006-03-12  Jim Meyering  <jim@meyering.net>
71369
71370         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71371         matches that of the current directory (which we're about to chdir ".."
71372         out of), then save the dev-ino of the parent, instead.
71373
71374         * lib/same-inode.h (SAME_INODE): New file/macro.
71375         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71376         Include "same-inode.h", instead.
71377         * lib/same.c: Likewise.
71378         * lib/cycle-check.h: Include "same-inode.h".
71379         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71380         * lib/cycle-check.c (SAME_INODE): Remove definition.
71381         * lib/root-dev-ino.h: Include "same-inode.h".
71382
71383         2006-03-11  Eric Blake  <ebb9@byu.net>
71384
71385         * lib/same.c (same_name): s/base_name/last_component/
71386         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71387         * lib/filenamecat.c (file_name_concat): Likewise.
71388
71389         2006-03-11  Eric Blake  <ebb9@byu.net>,
71390                     Paul Eggert  <eggert@cs.ucla.edu>
71391
71392         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71393         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71394         drive prefix.
71395         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71396         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71397         (last_component): New method.
71398         * lib/dirname.c (dir_len): Determine when drive letters need a
71399         subsequent slash.  Preserve // when it is special.
71400         (dir_name): Don't append dot when drive letter is absolute.
71401         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71402         * lib/basename.c (base_name): New semantics - malloc the result.
71403         Preserve // when it is special.  Preserve relative files that look
71404         like drive letters.
71405         (base_len): Preserve // when it is special.
71406         (last_component): New method, similar to old base_name semantics.
71407         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71408         base_name.  Strip redundant slashes from ///.
71409
71410 2006-07-03  Jim Meyering  <jim@meyering.net>
71411
71412         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71413         macro is used before the first cycle_check call.
71414
71415 2006-07-03  Eric Blake  <ebb9@byu.net>
71416
71417         * modules/dirname (Depends-on): Add xstrndup.
71418
71419 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71422         test cases, so that config.log is a bit easier to follow.
71423
71424 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71425
71426         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71427         both are 64 bits, since this seems to be the tradition, and this
71428         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71429         we ever run into a host that prefers long long to long in this
71430         case, we'll need another configure-time test.  Problem reported by
71431         Jim Meyering.
71432
71433 2006-07-02  Eric Blake  <ebb9@byu.net>
71434
71435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71436
71437 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         * modules/inttypes (Depends-on): No longer depends on stdint.
71440         * modules/stdint (Description): Say more about assumptions.
71441         Say that the fast types might differ.  Say macros are used.
71442         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71443         (Makefile.am): Revise list of substituted symbols to match
71444         new stdint.m4.
71445         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71446         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71447         * tests/test-stdint.c (verify_same_types)
71448         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71449         the code conforms to C99/C89.
71450         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71451         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71452
71453 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71456         but fix a bug, by requiring at least 64 bits.
71457         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71458         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71459         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71460         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71461
71462         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71463         changes.  Make 2.59 a prerequisite.  Check and substitute for
71464         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71465         inttypes.h.  Do not use special include files; just use the
71466         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71467         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71468         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71469         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71470         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71471         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71472         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71473         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71474         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71475         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71476         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71477         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71478         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71479         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71480         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71481         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71482         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71483         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71484         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71485         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71486         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71487         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71488         not check for things that C99 does not require, e.g., int8_t.  If
71489         a test isn't needed unless <stdint.h> isn't working, and is
71490         unlikely to be needed for any other reason, then don't do it
71491         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71492         size_t, since we assume C89 freestanding at least.  Do not check
71493         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71494         the right thing even if the types are not defined.  Instead use:
71495         (gl_STDINT_TYPE_PROPERTIES): New macro.
71496         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71497         testing whether <sys/types.h> clashes, as Autoconf does this for
71498         us now.  All uses removed.
71499         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71500         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71501         (gl_CHECK_TYPE_SAME):
71502         Remove; no longer needed.
71503         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71504         exists, since we'll return 0 anyway in that case.
71505         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71506
71507 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71508
71509         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71510         possible collision with system files.
71511         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71512         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71513         WCHAR_MIN and WCHAR_MAX in this case.
71514         (<stddef.h>): Do not include; no longer needed.
71515         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71516         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71517         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71518         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71519         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71520         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71521         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71522         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71523         !defined(__c99))]: Include in this case too, since it's harmless
71524         now.
71525         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71526         dangerous to do so.
71527         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71528         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71529         (_STDINT_MIN, _STDINT_MAX): New macros.
71530         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71531         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71532         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71533         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71534         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71535         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71536         macros, not typedefs; this simplifies things quite a bit.
71537         Use long int for all types narrower than int64_t.
71538         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71539         Define in terms of long long int or int64_t or long int,
71540         not int64_t or int32_t.  This saves some compile-time testing.
71541         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71542         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71543         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71544         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71545         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71546         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71547         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71548         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71549         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71550         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71551         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71552         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71553         undef any previous version and define our own version, for
71554         simplicity and consistency with the new macros for types.
71555         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71556         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71557         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71558         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71559         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71560         @WINT_T_SUFFIX@ to keep things simple here.
71561         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71562         Simplify by assuming typical 8/16/32/64 host, since we're
71563         already doing that elsewhere anyway.
71564         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71565         and assume long long int is 64 bits if available.  This
71566         speeds up 'configure'.
71567
71568 2006-07-01  Eric Blake  <ebb9@byu.net>
71569
71570         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71571         Reported by Andreas Buening.
71572
71573 2006-07-01  Eric Blake  <ebb9@byu.net>
71574
71575         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71576
71577 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71578
71579         * lib/getaddrinfo.c: fixed typo
71580
71581 2006-06-29  Jim Meyering  <jim@meyering.net>
71582
71583         * modules/strftime (Maintainer): Add my name, since with the
71584         FPRINTFTIME changes strftime.c has forked from glibc.
71585
71586 2006-06-29  Eric Blake  <ebb9@byu.net>
71587
71588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71589
71590 2006-06-29  Eric Blake  <ebb9@byu.net>
71591
71592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71593
71594 2006-06-29  Eric Blake  <ebb9@byu.net>
71595
71596         * lib/stat_.h: New file.
71597
71598 2006-06-29  Eric Blake  <ebb9@byu.net>
71599
71600         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71601         unused static function.
71602
71603 2006-06-29  Eric Blake  <ebb9@byu.net>
71604
71605         * doc/functions.texi (Function Portability): Document missing lstat
71606         on mingw.
71607
71608 2006-06-29  Eric Blake  <ebb9@byu.net>
71609
71610         * MODULES.html.sh: Add sys_stat.
71611         * modules/sys_stat: New module.
71612         * modules/mkstemp (Depends-on): Add sys_stat.
71613
71614 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71615
71616         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71617
71618 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71619
71620         * m4/c-bs-a.m4: Removed.
71621
71622 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71623
71624         * lib/strftime.c: Assume strftime() exists.
71625
71626 2006-06-29  Derek Price  <derek@ximbiot.com>
71627
71628         * modules/c-bs-a: Removed - \a is C89.
71629         * MODULES.html.sh: Remove c-bs-a.
71630
71631 2006-06-29  Bruno Haible  <bruno@clisp.org>
71632
71633         * modules/wcwidth (License): Change to LGPL.
71634
71635 2006-06-28  Simon Josefsson  <jas@extundo.com>
71636
71637         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71638         on _WIN32.
71639
71640         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71641         getnameinfo.
71642
71643 2006-06-28  Simon Josefsson  <jas@extundo.com>
71644
71645         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71646
71647 2006-06-28  Simon Josefsson  <jas@extundo.com>
71648
71649         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71650         functions there.  It will succeed on Windows XP, but on Windows
71651         2000 and (presumably) earlier, it will fail, and use the internal
71652         re-implementation.
71653         (use_win32_p): New function.
71654         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71655         Support AI_NUMERICSERV to disable getservbyname.
71656         (getnameinfo): New function, only supports
71657         NI_NUMERICHOST|NI_NUMERICSERV for now.
71658
71659         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71660         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71661         getnameinfo.
71662
71663 2006-06-28  Eric Blake  <ebb9@byu.net>
71664
71665         * modules/wcwidth: New file.
71666         * modules/mbchar (Depends-on): Add wcwidth.
71667         * modules/mbswidth (Depends-on): Add wcwidth.
71668         * MODULES.html.sh: Add wcwidth.
71669
71670 2006-06-28  Eric Blake  <ebb9@byu.net>
71671
71672         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71674
71675 2006-06-28  Eric Blake  <ebb9@byu.net>
71676
71677         * lib/xvasprintf.h: Fix comments.
71678
71679 2006-06-28  Eric Blake  <ebb9@byu.net>
71680
71681         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71682         * lib/mbswidth.c (wcwidth): Move from here...
71683         * lib/wcwidth.h: ...to this new file.
71684
71685 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71686
71687         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71688
71689         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71690         it's obsolete.
71691         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71692
71693 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71694
71695         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71696         Autoconf 2.60 says this stuff was obsolete.
71697
71698 2006-06-28  Bruno Haible  <bruno@clisp.org>
71699
71700         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71701
71702 2006-06-28  Bruno Haible  <bruno@clisp.org>
71703
71704         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71705         gt_TYPE_WCHAR_T.
71706
71707 2006-06-28  Bruno Haible  <bruno@clisp.org>
71708
71709         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71710         declaration for wcwidth.
71711         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71712
71713 2006-06-28  Bruno Haible  <bruno@clisp.org>
71714
71715         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71716         (mkdir): Define using _mkdir.
71717
71718 2006-06-28  Bruno Haible  <bruno@clisp.org>
71719
71720         * lib/getaddrinfo.h: Fix POSIX URL.
71721         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71722         _WIN32.
71723         (use_win32_p): Make static.
71724         (getaddrinfo): Reject service name if it is empty or does not consist
71725         solely of decimal digits, or if its value is > 65535.
71726         (getnameinfo): Remove useless casts.
71727
71728 2006-06-27  Simon Josefsson  <jas@extundo.com>
71729
71730         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71731         Eggert and Martin Lambers.
71732
71733 2006-06-27  Simon Josefsson  <jas@extundo.com>
71734
71735         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71736         Eggert and Martin Lambers.
71737
71738 2006-06-27  Bruno Haible  <bruno@clisp.org>
71739
71740         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71741         result to 0, not to empty.
71742         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71743
71744 2006-06-27  Bruno Haible  <bruno@clisp.org>
71745
71746         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71747
71748 2006-06-26  Simon Josefsson  <jas@extundo.com>
71749
71750         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71751         present.
71752
71753 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71754
71755         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71756         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71757         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71758
71759 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71760
71761         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71762
71763 2006-06-26  Bruno Haible  <bruno@clisp.org>
71764
71765         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71766
71767 2006-06-26  Bruno Haible  <bruno@clisp.org>
71768
71769         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71770
71771 2006-06-26  Bruno Haible  <bruno@clisp.org>
71772
71773         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71774         SGI C compiler in pre-C99 mode.
71775         Suggested by Mark D. Baushke and Larry Jones.
71776
71777 2006-06-26  Bruno Haible  <bruno@clisp.org>
71778
71779         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71780         WCHAR_MAX.
71781         Reported by Mark D. Baushke and Larry Jones.
71782
71783 2006-06-26  Bruno Haible  <bruno@clisp.org>
71784
71785         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71786         in pre-C99 mode.
71787         Suggested by Mark D. Baushke and Larry Jones.
71788
71789 2006-06-23  Simon Josefsson  <jas@extundo.com>
71790             Bruno Haible  <bruno@clisp.org>
71791
71792         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71793         Emit mostlyclean-local rule.
71794         (func_emit_tests_Makefile_am): Likewise.
71795         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71796
71797 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71798
71799         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71800
71801 2006-06-23  Bruno Haible  <bruno@clisp.org>
71802
71803         * tests/test-stdint.c: Update to match ISO C 99 Technical
71804         Corrigendum 1.
71805
71806 2006-06-23  Bruno Haible  <bruno@clisp.org>
71807
71808         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71809
71810 2006-06-23  Bruno Haible  <bruno@clisp.org>
71811
71812         * lib/stdint_.h: Treat IRIX like OpenBSD.
71813
71814 2006-06-23  Bruno Haible  <bruno@clisp.org>
71815
71816         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71817         ISO C 99 Technical Corrigendum 1.
71818
71819 2006-06-22  Simon Josefsson  <jas@extundo.com>
71820
71821         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71822         MinGW.
71823
71824 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71825
71826         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71827         needed.  Some compiler complained about some of them.  Problem reported
71828         by Larry Jones in
71829         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71830
71831 2006-06-21  Simon Josefsson  <jas@extundo.com>
71832
71833         * tests/test-getaddrinfo.c: New file.
71834
71835         * modules/getaddrinfo-tests: New file.
71836
71837         * MODULES.html.sh: Add inet_pton.
71838
71839         * modules/inet_pton: New file.
71840
71841 2006-06-21  Simon Josefsson  <jas@extundo.com>
71842
71843         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71844         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71845         of using the (limited) gnulib implementation on Windows XP.
71846
71847         * m4/inet_pton.m4: New file.
71848
71849 2006-06-21  Simon Josefsson  <jas@extundo.com>
71850
71851         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71852         variable.
71853
71854         * lib/socket_.h: Don't define WINVER.
71855
71856         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71857         slightly modified to work in gnulib.
71858
71859 2006-06-21  Simon Josefsson  <jas@extundo.com>
71860
71861         * doc/gnulib.texi (Windows sockets): Add.
71862
71863 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71864
71865         * lib/read-file.c (fread_file): Start with buffer allocation of
71866         0 bytes rather than 1 byte; this simplifies the code.
71867         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71868         code to free buffer and save/restore errno.
71869         (internal_read_file): Remove unused local.
71870
71871 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71872
71873         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71874         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71875         Problem reported by Denis Excoffier in
71876         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71877
71878 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71879
71880         * modules/sys_socket, modules/socklen: Include sys/types since
71881         FreeBSD 4.x's sys/socket.h needs it.
71882
71883 2006-06-19  Simon Josefsson  <jas@extundo.com>
71884
71885         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71886
71887 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71888
71889         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71890
71891 2006-06-19  Bruno Haible  <bruno@clisp.org>
71892
71893         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71894         and FULL_PATH_INTTYPES_H in angle brackets.
71895         Reported by Mark D. Baushke <mdb@gnu.org>.
71896
71897 2006-06-17  Eric Blake  <ebb9@byu.net>
71898
71899         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71900         errno.
71901
71902 2006-06-17  Bruno Haible  <bruno@clisp.org>
71903
71904         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71905         <sys/inttypes.h>.
71906
71907 2006-06-17  Bruno Haible  <bruno@clisp.org>
71908
71909         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71910         whether errno is declared. Assume <errno.h> declares errno.
71911
71912 2006-06-17  Bruno Haible  <bruno@clisp.org>
71913
71914         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71915
71916 2006-06-17  Bruno Haible  <bruno@clisp.org>
71917
71918         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71919         problem on Solaris 2.5.1.
71920
71921 2006-06-16  Eric Blake  <ebb9@byu.net>
71922
71923         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71924         * lib/unicodeio.c [!defined errno]: Likewise.
71925         * lib/strtol.c [!defined errno]: Likewise.
71926         * lib/strtod.c [!defined errno]: Likewise.
71927
71928 2006-06-15  Eric Blake  <ebb9@byu.net>
71929
71930         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71931
71932 2006-06-15  Eric Blake  <ebb9@byu.net>
71933
71934         * config/srclist.txt (ssize_t.m4): Lose sync.
71935
71936 2006-06-15  Bruno Haible  <bruno@clisp.org>
71937
71938         * modules/stdint (Files): Include m4/full-header-path.m4,
71939         m4/size_max.m4, m4/wchar_t.m4.
71940         (Makefile.am): Many more substitutions.
71941         * modules/stdint-tests: New file.
71942         * tests/test-stdint.c: New file.
71943
71944 2006-06-15  Bruno Haible  <bruno@clisp.org>
71945
71946         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71947         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71948         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71949         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71950         gl_CHECK_TYPE_SAME): New macros.
71951
71952 2006-06-15  Bruno Haible  <bruno@clisp.org>
71953
71954         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71955
71956 2006-06-15  Bruno Haible  <bruno@clisp.org>
71957
71958         * lib/stdint_.h: Rewritten to be fully auto-configured.
71959         Fixes bug on HP-UX/IA64.
71960
71961 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         * lib/getdate.y (__attribute__): Don't define if already defined.
71964         Problem reported by Larry Jones.
71965         * lib/utimens.c (__attribute__): Likewise.
71966
71967 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71968
71969         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71970         reported by Andreas Schwab.
71971
71972 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71973             Bruno Haible  <bruno@clisp.org>
71974
71975         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71976         check for the declaration of strnlen and a run test that exposes the
71977         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71978         rpl_strndup.
71979
71980 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71981             Bruno Haible  <bruno@clisp.org>
71982
71983         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71984
71985 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71986
71987         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
71988         compile test, for Tru64 4.0D.
71989
71990 2006-05-28  Karl Berry  <karl@gnu.org>
71991
71992         * config/srclist.txt (printf-args.c): lose sync.
71993
71994 2006-05-26  Martin Lambers  <marlam@marlam.de>
71995
71996         * lib/getpass.c: Updates the test for the native W32 API, and adds
71997         missing includes, thus fixing compilation warnings.
71998
71999 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72000
72001         * lib/exclude.c (exclude_fnmatch): New function.
72002         (excluded_file_name): Call exclude_fnmatch.
72003         * lib/exclude.h (excluded_file_name): New prototype
72004
72005 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72006
72007         * lib/tempname.c (small_open, large_open): New macros.
72008         (__open, __open64) [!_LIBC]: Remove.
72009         (__gen_tempname): Use small_open and large_open instead of __open
72010         and __open64.  This fixes a portability bug on HP-UX 11.11i
72011         reported by Simon Wing-Tang in
72012         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72013
72014 2006-05-24  Bruno Haible  <bruno@clisp.org>
72015
72016         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72017         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72018         Reported by Thorsten Maerz <torte@netztorte.de> via
72019         Aaron Stone <aaron@serendipity.cx>.
72020
72021 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72022
72023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72024         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72025         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72026         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72027         not really conditional on the cache.
72028         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72029
72030 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72031
72032         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72033         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72034         (my_usleep): Don't mishandle maximum value.
72035
72036 2006-05-19  Jim Meyering  <jim@meyering.net>
72037
72038         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72039
72040 2006-05-17  Bruno Haible  <bruno@clisp.org>
72041
72042         Cygwin portability.
72043         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72044
72045 2006-05-17  Bruno Haible  <bruno@clisp.org>
72046
72047         * lib/stdint_.h: Fix recognition of Cygwin.
72048
72049 2006-05-15  Bruno Haible  <bruno@clisp.org>
72050
72051         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72052         on libtool patch by Ralf Wildenhues.
72053
72054 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72055
72056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72057         test for C99 conformance; (bool) 0.5 is an integer constant
72058         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72059         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72060
72061 2006-05-11  Simon Josefsson  <jas@extundo.com>
72062
72063         * m4/xvasprintf.m4: Fix obvious typo.
72064
72065 2006-05-11  Jim Meyering  <jim@meyering.net>
72066
72067         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72068         James Lemley.
72069
72070 2006-05-10  Simon Josefsson  <jas@extundo.com>
72071
72072         * lib/md4.c: Typo fix, update copyright years.
72073         (K1, K2): Don't use L because it turn computations into 64-bit on
72074         64-bit platforms.
72075
72076 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72077
72078         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72079         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72080         unwanted sign propagation, e.g., on hosts with 64-bit int.
72081         There still are some problems with reeelly weird theoretical hosts
72082         (e.g., 33-bit int) but it's not worth worrying about now.
72083         * lib/sha1.c (rol): Likewise.
72084         (K1, K2, K3, K4): Remove unnecessary L suffix.
72085
72086 2006-05-10  Bruno Haible  <bruno@clisp.org>
72087
72088         * lib/des.c: Cast to avoid warnings.
72089
72090 2006-05-09  Bruno Haible  <bruno@clisp.org>
72091
72092         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72093         (Depends-on): Depend also on xsize, stdarg.
72094         (configure.ac): Add gl_XVASPRINTF.
72095
72096 2006-05-09  Bruno Haible  <bruno@clisp.org>
72097
72098         * m4/xvasprintf.m4: New file.
72099
72100 2006-05-09  Bruno Haible  <bruno@clisp.org>
72101
72102         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72103         (EOVERFLOW): Define fallback value.
72104         (xstrcat): New function.
72105         (xvasprintf): Recognize the special case of a string concatenation.
72106
72107 2006-05-08  Eric Blake  <ebb9@byu.net>
72108
72109         * gnulib-tool (func_version): Base copyright year on CVS date.
72110         (func_emit_copyright_notice): New function.
72111         (func_emit_lib_Makefile_am): Use it.
72112         (func_emit_tests_Makefile_am): Likewise.
72113         (func_import): Likewise.
72114
72115 2006-05-08  Bruno Haible  <bruno@clisp.org>
72116
72117         * modules/stdarg: New file.
72118         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72119
72120 2006-05-08  Bruno Haible  <bruno@clisp.org>
72121
72122         * m4/stdarg.m4: New file, from GNU gettext.
72123
72124 2006-05-08  Bruno Haible  <bruno@clisp.org>
72125
72126         * config/srclist.txt (build-aux/config.rpath): different from latest
72127         release.
72128
72129 2006-05-08  Bruno Haible  <bruno@clisp.org>
72130
72131         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72132
72133 2006-05-05  Jim Meyering  <jim@meyering.net>
72134
72135         * m4/warning.m4: New file, derived from bison's file by the same name.
72136
72137 2006-05-03  Bruno Haible  <bruno@clisp.org>
72138
72139         * lib/stdint_.h: Shorter URL.
72140         * lib/inttypes.h: Likewise.
72141
72142 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72145
72146 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         * lib/verify.h: Document the internals better.  Most of this change
72149         was written by Bruno Haible.
72150
72151 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72152
72153         * doc/verify.texi: New file, partly based on a proposal by
72154         Bruno Haible.
72155
72156 2006-05-02  Bruno Haible  <bruno@clisp.org>
72157
72158         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72159         test from here...
72160         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72161
72162 2006-04-29  Bruno Haible  <bruno@clisp.org>
72163
72164         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72165         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72166
72167 2006-04-29  Bruno Haible  <bruno@clisp.org>
72168
72169         * gnulib-tool: Make --update option actually work.
72170
72171 2006-04-29  Bruno Haible  <bruno@clisp.org>
72172
72173         * doc/gcd.texi: New file.
72174         * doc/gnulib.texi: Include it.
72175
72176 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72177
72178         * lib/getdate.y (get_date): When adding relative date, start with the
72179         initial time, not with the result of the first mktime call.
72180
72181 2006-04-25  Bruno Haible  <bruno@clisp.org>
72182
72183         * gnulib-tool (func_import): Output the include directives in three
72184         blocks, sorted separately.
72185         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72186
72187 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72188
72189         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72190         to define main with arguments, for C++.  Reported by Eric Blake.
72191         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72192         Prefer 'int main ()' to 'int main (void)', for C++.
72193         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72194         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72195         for 'main', for C99 and C++.
72196
72197 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72198
72199         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72200         Don't assume that exit status -1 is valid.
72201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72202         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72203         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72204         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72205         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72206         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72207         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72208         functions can be used without declaring them, or that you can
72209         exit with status -1.
72210         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72211
72212 2006-04-24  Karl Berry  <karl@gnu.org>
72213
72214         * config/srclist.txt (longdouble.m4): sync lost.
72215
72216 2006-04-24  Eric Blake  <ebb9@byu.net>
72217
72218         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72219
72220 2006-04-24  Bruno Haible  <bruno@clisp.org>
72221
72222         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72223         poll() implementation in AIX.
72224         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72225
72226 2006-04-24  Bruno Haible  <bruno@clisp.org>
72227
72228         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72229         assigned exactly once.
72230
72231 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72232             Bruno Haible  <bruno@clisp.org>
72233
72234         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72235         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72236         for AM_CPPFLAGS.
72237
72238 2006-04-23  Bruno Haible  <bruno@clisp.org>
72239
72240         * modules/copy-file: Depend on unistd.
72241         * modules/execute: Likewise.
72242         * modules/fatal-signal: Likewise.
72243         * modules/findprog: Likewise.
72244         * modules/mkdtemp : Likewise.
72245         * modules/pipe: Likewise.
72246         * modules/wait-process: Likewise.
72247
72248 2006-04-23  Bruno Haible  <bruno@clisp.org>
72249
72250         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72251         condition was already detected.
72252         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72253
72254 2006-04-23  Bruno Haible  <bruno@clisp.org>
72255
72256         * lib/copy-file.c: Include <unistd.h> unconditionally.
72257         * lib/execute.c: Likewise.
72258         * lib/fatal-signal.c: Likewise.
72259         * lib/findprog.c: Likewise.
72260         * lib/mkdtemp.c: Likewise.
72261         * lib/pipe.h: Likewise.
72262         * lib/pipe.c: Likewise.
72263         * lib/wait-process.h: Likewise.
72264
72265 2006-04-23  Bruno Haible  <bruno@clisp.org>
72266
72267         * gnulib-tool (func_usage): Fix --import description. Document
72268         --update.
72269         (func_import): Create temporary file in a temporary directory, if
72270         --dry-run is specified. Silence errors from 'grep' when there are no
72271         m4 files in $m4dir.
72272         (func_create_testdir): Silence errors from 'grep' when there are no
72273         m4 files in $m4dir.
72274         Reported by Karl Berry <karl@freefriends.org>.
72275
72276 2006-04-20  Bruno Haible  <bruno@clisp.org>
72277
72278         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72279         one argument, so that the code will be portable to Autoconf 2.60.
72280         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72281         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72282         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72283
72284 2006-04-19  Derek Price  <derek@ximbiot.com>
72285             Eric Blake  <ebb9@byu.net>
72286
72287         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72288         rather than "/full/path.h".  Update comment to match.  Shorten &
72289         generalize m4_translit call via AS_TR_CPP.
72290
72291 2006-04-19  Derek Price  <derek@ximbiot.com>
72292             Eric Blake  <ebb9@byu.net>
72293
72294         * lib/inttypes.h: Correct grammar in comment.
72295
72296 2006-04-18  Derek Price  <derek@ximbiot.com>
72297             Paul Eggert  <eggert@cs.ucla.edu>
72298
72299         * modules/inttypes: New file.
72300         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72301
72302 2006-04-18  Derek Price  <derek@ximbiot.com>
72303             Paul Eggert  <eggert@cs.ucla.edu>
72304
72305         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72306         New files.
72307
72308 2006-04-18  Derek Price  <derek@ximbiot.com>
72309             Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * lib/inttypes.h: New file.
72312         * lib/strtoimax.c: Assume <inttypes.h>.
72313
72314 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72315
72316         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72317         isn't mounted.  Problem reported by Kir Kolyshkin.
72318
72319 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72320
72321         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72322         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72323         Derek R. Price.
72324         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72325         implementation.
72326
72327 2006-04-12  Eric Blake  <ebb9@byu.net>
72328
72329         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72330         is now done automatically by the corresponding Autoconf macro.
72331
72332 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72333
72334         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72335         time_r.h.
72336
72337 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         Merge regex changes from libc, removing some of our
72340         POSIX-conformance changes that were rejected and redoing them in a
72341         less-intrusive way.
72342
72343         * lib/regcomp.c (re_compile_internal, init_dfa):
72344         Length arg is now size_t, not Idx.  All uses changed.
72345         (peek_token): Forward decl now says internal_function.
72346         (__re_error_msgid, __re_error_msgid_idx):
72347         Now static rather than extern with attribute_hidden.
72348         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72349         For some reason libc prefers K&R style defns for external functions.
72350         (regerror) [!defined _LIBC]: Likewise.
72351         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72352         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72353         (build_range_exp, build_collating_symbol):
72354         Use K&R-style defn.
72355         (re_compile_fastmap): Use '\0' to memset, not 0.
72356         (utf8_sb_map): Make the calculations more obvious.
72357         (init_dfa, parse_bracket_exp, build_charclass_op):
72358         Call calloc and cast result, as glibc does.
72359         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72360         (build_range_exp, build_collating_symbol):
72361         Now internal functions.
72362
72363         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72364
72365         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72366         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72367         Don't depend on VMS; depend on __VMS instead, for POSIX
72368         namespace cleanness.
72369         (regoff_t): Define to ssize_t, not long int.
72370
72371         Remove the REG_ macros named below.  Instead, make the old names
72372         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72373         __USE_GNU_REGEX.
72374         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72375         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72376         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72377         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72378         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72379         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72380         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72381         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72382         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72383         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72384         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72385         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72386         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72387         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72388         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72389         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72390         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72391         (REG_NREGS):
72392         Remove.  All uses replaced by the old RE_* names.
72393         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72394         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72395         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72396         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72397         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72398         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72399         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72400         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72401         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72402         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72403         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72404         Don't bother having these macros be independent of each others'
72405         values, since they no longer exist in the POSIX name space.
72406
72407         Rename the following member names back to their old names,
72408         unless !__USE_GNU_REGEX.  All uses changed back.
72409         (buffer): Renamed from re_buffer.
72410         (allocated): Renamed from re_allocated.
72411         (used): Renamed from re_used.
72412         (syntax): Renamed from re_syntax.
72413         (fastmap): Renamed from re_fastmap.
72414         (translate): Renamed from re_translate.
72415         (can_be_null): Renamed from re_can_be_null.
72416         (regs_allocated): Renamed from re_regs_allocated.
72417         (fastmap_accurate): Renamed from re_fastmap_accurate.
72418         (no_sub): Renamed from re_no_sub.
72419         (not_bol): Renamed from re_not_bol.
72420         (not_eol): Renamed from re_not_eol.
72421         (newline_anchor): Renamed from re_newline_anchor.
72422         (num_regs): Renamed from rm_num_regs.
72423         (start): Renamed from rm_start.
72424         (end): Renamed from rm_end.
72425
72426         (free_state): Move up a bit.
72427
72428         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72429         #define to be empty.
72430         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72431         when that is what is intended.
72432         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72433         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72434         (MAX): New macro.
72435         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72436         All uses changed back to re_malloc, etc.  It's now the caller's
72437         responsibility to check for overflow; all callers changed.
72438         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72439         (re_x2nrealloc): Remove.
72440         (free_state): Remove decl.
72441
72442         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72443         (re_set_registers, re_exec):
72444         Use K&R-style defn.
72445
72446         2006-01-31  Roland McGrath  <roland@redhat.com>
72447
72448         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72449         Reported by Mike Frysinger <vapier@gentoo.org>.
72450
72451         2006-01-15  Andreas Jaeger  <aj@suse.de>
72452
72453         [BZ #1950]
72454         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72455         build_wcs_upper_buffer change.
72456         (build_wcs_upper_buffer): Change return type.
72457
72458         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72459
72460         * lib/regex_internal.h: Include <stdint.h> if available.
72461
72462         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72463
72464         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72465
72466         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72467
72468         * lib/regcomp.c: Adjust for changed secondary hash function.
72469
72470         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72471
72472         * lib/regex.h: Pretty printing.
72473         Clean up namespace a bit.
72474
72475         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72476
72477         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72478         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72479
72480         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72481                     Ulrich Drepper  <drepper@redhat.com>
72482
72483         [BZ #1302]
72484         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72485         changed.
72486         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72487
72488         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72489
72490         [BZ #281]
72491         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72492         * lib/regcomp.c: Remove unnecessary uses of
72493         unsigned RE_TRANSLATE_TYPE.
72494         * lib/regex_internal.h: Likewise.
72495         * lib/regex_internal.c: Likewise.
72496         * lib/regexec.c: Likewise.
72497         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72498
72499         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72500
72501         * lib/regexec.c (find_recover_state): Remove unnecessary
72502         initialization.
72503         (transit_state_bkref): Make DFA a const pointer.
72504         (get_subexp): Likewise.
72505         (check_arrival): Likewise.
72506         (update_cur_sifted_state): Likewise.
72507         (re_search_internal): Likewise.
72508         (prune_impossible_nodes): Likewise.
72509         (acquire_init_state_context): Likewise.
72510         (proceed_next_node): Likewise.
72511         (set_regs): Likewise.
72512         (free_fail_stack_return): Likewise.
72513         (check_arrival_expand_ecl): Mark DFA parameter as const.
72514         (check_arrival_expand_ecl_sub): Likewise.
72515         (check_subexp_limits): Likewise.
72516         (sub_epsilon_src_nodes):  Likewise.
72517         (add_epsilon_src_nodes):  Likewise.
72518         (merge_state_array): Likewise.
72519         (update_regs): Likewise.
72520         (build_trtable): Likewise.
72521         (sift_states_backward): Mark MCTX parameter as const.
72522         (build_sifted_states): Likewise.
72523         (update_cur_sifted_state): Likewise.
72524         (sift_states_mkref): Likewise.
72525         (check_arrival_expand_ecl): Mark eclosure as const.
72526         (check_dst_limits_calc_pos_1): Likewise.
72527         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72528         pointer.
72529
72530         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72531
72532         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72533         (transit_state_sb): Likewise.
72534         (transit_state_mb): Likewise.
72535         (sift_states_iter_mb): Likewise.
72536         (check_arrival_add_next_nodes): Likewise.
72537         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72538         [_LIBC] (re_search_2_stub): Use mempcpy.
72539
72540         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72541         mbrtowc for very simple UTF-8 case.
72542
72543         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72544         a pointer-to-const.
72545         (re_acquire_state_context): Likewise.
72546         * lib/regex_internal.h: Adjust prototypes.
72547
72548         * lib/regex.c: Prevent using C++ compilers.
72549
72550         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72551         (re_acquire_state_context): Likewise.
72552
72553 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72554
72555         * modules/regex (Depends-on): Add ssize_t.
72556
72557 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72558
72559         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72560         translation table.
72561
72562 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72563
72564         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72565
72566 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72567             Bruno Haible  <bruno@clisp.org>
72568
72569         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72570         <sys/types.h> and <inttypes.h>.
72571
72572 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72573
72574         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72575         `__error_t_defined', so argp.h will not typedef the former.
72576
72577 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72580         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72581         glibc names.  Even if glibc is changed to conform to POSIX, the
72582         traditional names will be available anyway, since regex depends on
72583         the extensions module.  Also, fix a longstanding typo in the
72584         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72585         reported by Emanuele Giaquinta.  Also, change sense of cached
72586         variable, so that the message makes sense.
72587
72588 2006-03-24  Simon Josefsson  <jas@extundo.com>
72589
72590         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72591         including some doc fixes.
72592         (base64_encode_alloc): Fix +1 bug on allocation failures.
72593
72594 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72595
72596         * lib/base64.c (base64_encode): Do not read past end of array with
72597         unsanitized input on systems with CHAR_BIT > 8.
72598
72599 2006-03-24  Eric Blake  <ebb9@byu.net>
72600
72601         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72602
72603 2006-03-22  Karl Berry  <karl@gnu.org>
72604
72605         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72606         * config/srclistvars.sh (COREUTILS): new var.
72607
72608 2006-03-17  Jim Meyering  <jim@meyering.net>
72609
72610         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72611         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72612
72613 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72614
72615         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72616         no longer needs it.  Instead, check that regoff_t is as least
72617         as wide as ptrdiff_t.
72618
72619         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72620         so that our regex.h stays compatible with the installed regex.
72621         This is helpful for installers who configure --without-included-regex.
72622         Problem reported by Emanuele Giaquinta.
72623
72624 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72625
72626         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72627         Typedef to long int, not to off_, as POSIX will likely change
72628         in that direction.
72629
72630 2006-03-15  Eric Blake  <ebb9@byu.net>
72631
72632         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72633
72634 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72635
72636         * lib/argp-help.c (validate_uparams): Fix typo
72637         * lib/argp-parse.c (argp_default_options): Consistently begin help
72638         messages with a lowercase letter.
72639
72640 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72641
72642         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72643         overrun buffers and shouldn't be used (much as gets shouldn't be
72644         used).
72645         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72646
72647 2006-03-08  Simon Josefsson  <jas@extundo.com>
72648
72649         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72650         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72651
72652 2006-03-08  Simon Josefsson  <jas@extundo.com>
72653
72654         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72655         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72656
72657 2006-03-08  Simon Josefsson  <jas@extundo.com>
72658
72659         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72660         signal that configure disabled the device.
72661
72662 2006-03-08  Simon Josefsson  <jas@extundo.com>
72663
72664         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72665         languages.
72666
72667 2006-03-07  Simon Josefsson  <jas@extundo.com>
72668
72669         * modules/getopt (Depends-on): Add unistd.
72670
72671         * modules/unistd: New file.
72672
72673 2006-03-07  Simon Josefsson  <jas@extundo.com>
72674
72675         * modules/gc-random: New file.
72676
72677 2006-03-07  Simon Josefsson  <jas@extundo.com>
72678
72679         * m4/unistd_h.m4: New file.
72680
72681 2006-03-07  Simon Josefsson  <jas@extundo.com>
72682
72683         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72684         test to be side-effect free by storing the result in the cache
72685         variable gl_cv_lib_readline, and moving the assignment of
72686         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72687         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72688
72689 2006-03-07  Simon Josefsson  <jas@extundo.com>
72690
72691         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72692         error on missing devices (the functions will return an error).
72693
72694         * m4/gc.m4: Move random stuff to gc-random.m4
72695
72696 2006-03-07  Simon Josefsson  <jas@extundo.com>
72697
72698         * lib/unistd_.h: New file.
72699
72700 2006-03-07  Simon Josefsson  <jas@extundo.com>
72701
72702         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72703
72704 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72705
72706         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72707         Problem reported by Juan Manuel Guerrero.
72708
72709 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72710
72711         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72712         the unistd module.
72713         * lib/getlogin_r.c: Likewise.
72714         * lib/getlogin_r.h: Likewise.
72715         * lib/glob.c: Likewise.
72716         * lib/pagealign_alloc.c: Likewise.
72717         * lib/unistd_.h: Remove; no longer needed.
72718
72719 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72720
72721         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72722         Add unistd.
72723         * modules/c-stack (Depends-on): Add unistd.
72724         * modules/getlogin_r: Likewise.
72725         * modules/glob: Likewise.
72726         * modules/pagealign_alloc: Likewise.
72727         * modules/unistd (Files): Remove lib/unistd_.h.
72728         (EXTRA_DIST): Remove.
72729         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72730         need unistd_.h.
72731         (MOSTLYCLEANFILES): Remove unistd.h-t.
72732
72733 2006-03-03  Simon Josefsson  <jas@extundo.com>
72734
72735         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72736
72737 2006-03-03  Simon Josefsson  <jas@extundo.com>
72738
72739         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72740         libidn and bison.
72741
72742 2006-03-03  Simon Josefsson  <jas@extundo.com>
72743
72744         * build-aux/maint.mk: Add indent target.
72745
72746 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72747
72748         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72749         our replacement poll.h in any case, to avoid a differing
72750         declaration from a system header.  Seen on AIX.
72751
72752 2006-03-01  Simon Josefsson  <jas@extundo.com>
72753
72754         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72755         <kasal@ucw.cz>.
72756
72757 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72758
72759         * modules/gettime (Depends-on): Add extensions module.
72760         * modules/nanosleep (Depends-on): Likewise.
72761         * modules/settime (Depends-on): Likewise.
72762
72763 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72764
72765         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72766         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72767         pedantically.
72768         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72769         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72770
72771         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72772         not "==".  Reported by Ralf Wildenhues.
72773
72774 2006-03-01  Karl Berry  <karl@gnu.org>
72775
72776         * doc/Copyright/request-*: new files, synced from gnuorg.
72777
72778 2006-03-01  Karl Berry  <karl@gnu.org>
72779
72780         * config/srclist.txt (Copyright/*): new entries.
72781
72782 2006-02-28  Simon Josefsson  <jas@extundo.com>
72783
72784         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72785
72786 2006-02-27  Simon Josefsson  <jas@extundo.com>
72787
72788         * lib/base64.h: Indent #define's.  From Jim Meyering
72789         <jim@meyering.net>.
72790
72791 2006-02-27  Jim Meyering  <jim@meyering.net>
72792
72793         Revert the change of 2006-02-24, so these files can continue
72794         to be sync'd from gettext.
72795         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72796         of `config.h'.
72797
72798 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72799
72800         * modules/intprops: New file.
72801         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72802         Add intprops.
72803         * modules/getloadavg (Files): Remove lib/intprops.h.
72804         (Depends-on): Add intprops.
72805         * modules/human: Likewise.
72806         * modules/inttostr: Likewise.
72807         * modules/openat: Likewise.
72808         * modules/sig2str: Likewise.
72809         * modules/userspec: Likewise.
72810         * modules/utimecmp: Likewise.
72811         * modules/xnanosleep: Likewise.
72812         * modules/xstrtol: Likewise.
72813
72814 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72815
72816         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72817         * modules/lock-tests (TESTS): Use $(EXEEXT).
72818         * modules/tls-tests: Likewise.
72819         * modules/argp-tests: Likewise.
72820         (check_PROGRAMS): New var, replacing...
72821         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72822
72823 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72824
72825         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72826         `config.h'.
72827
72828 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72829
72830         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72831
72832 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72833
72834         Sync from coreutils.
72835         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72836         gl_CHDIR_SAFER.
72837
72838 2006-02-22  Jim Meyering  <jim@meyering.net>
72839
72840         Sync from coreutils.
72841         * m4/chdir-safer.m4: New file.
72842
72843 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72846         AT_FDCWD exceeds INT_MAX.
72847         * lib/openat.h (AT_FDCWD): Likewise.
72848
72849 2006-02-17  Eric Blake  <address@hidden>
72850
72851         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72852
72853 2006-02-16  Simon Josefsson  <jas@extundo.com>
72854
72855         * modules/getaddrinfo (Depends-on): Add sys_socket.
72856
72857 2006-02-15  Simon Josefsson  <jas@extundo.com>
72858
72859         * build-aux/maint.mk: Add dsyntax-check rule.
72860
72861 2006-02-15  Eric Blake  <ebb9@byu.net>
72862
72863         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72864         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72865         'present but cannot compile' warnings on cygwin.
72866         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72867         use ws2tcpip.h if sys/socket.h works.
72868         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72869         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72870
72871 2006-02-14  Simon Josefsson  <jas@extundo.com>
72872
72873         * modules/maintainer-makefile (Files): Rename.
72874
72875         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72876         and (the local) Makefile.cfg to maint-cfg.mk.
72877
72878         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72879         to the latter.
72880
72881         * modules/maintainer-makefile: New module.
72882
72883         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72884         severaly stripped to make it possible to build it up from scratch
72885         with reliable tests.
72886
72887         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72888         fixes to permit overriding the default actions when configure and
72889         makefile are not available.
72890
72891 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72892
72893         Sync from coreutils.
72894         * modules/lstat (Depends-on): Don't depend on xalloc.
72895         (License): Change from GPL to LGPL, since this is now simply a
72896         replacement for a libc function.
72897
72898 2006-02-14  Jim Meyering  <jim@meyering.net>
72899
72900         Sync from coreutils.
72901
72902         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72903         failure on deficient systems, and simplify gnulib lgpl dependencies.
72904         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72905         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72906
72907         * lib/xalloc-die.c: Remove unused definition of N_.
72908
72909 2006-02-14  Jim Meyering  <jim@meyering.net>
72910
72911         Sync from coreutils.
72912         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72913         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72914         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72915         double-quote uses of that variable, to accommodate the rare case in
72916         which getmntent is available in none of the libraries checked.  This
72917         happens at least on FreeBSD 5.0.
72918
72919 2006-02-13  Simon Josefsson  <jas@extundo.com>
72920
72921         * gnulib-tool (Usage): Fix --import, from
72922         karl@freefriends.org (Karl Berry).
72923
72924 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72925
72926         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72927
72928 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72929
72930         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72931         "autoupdate" on 2005-12-12.
72932
72933 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72934
72935         * modules/closeout (Depends-on): Remove atexit.
72936
72937 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72938
72939         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72940         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72941
72942 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72943
72944         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72945         __EXTENSIONS__ if this causes compilation to fail.  Problem
72946         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72947         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72948
72949 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72950
72951         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72952         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72953         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72954         All uses changed.
72955
72956 2006-01-26  Simon Josefsson  <jas@extundo.com>
72957
72958         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72959         prototype is visible on mingw32.
72960
72961         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72962         for mingw32.
72963
72964         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72965         mingw32).
72966
72967 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72970         attempt to open for write; this always fails, at least on POSIX
72971         hosts.  This reinstates the 2006-01-09 change, which was
72972         inadvertently removed.
72973
72974 2006-01-26  Bruno Haible  <bruno@clisp.org>
72975
72976         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72977         Reported by Paul Eggert.
72978
72979 2006-01-26  Bruno Haible  <bruno@clisp.org>
72980             Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * lib/stdbool_.h (_Bool)
72983         [(! (defined __cplusplus || defined __BEOS__)
72984           && !defined __GNUC__
72985           && !(defined __HP_cc || defined __xlc__
72986                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72987                || defined __sgi))]:
72988         #define to signed char in these cases too; this simplifies
72989         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
72990         etc., separately) and makes it more conservative.
72991
72992 2006-01-25  Simon Josefsson  <jas@extundo.com>
72993
72994         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
72995         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
72996         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
72997
72998 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72999
73000         * lib/argp-namefrob.h: Bugfix. Remove stray #
73001
73002 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73003
73004         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73005         so that we test the test.
73006         Check for yet another HP-UX cc bug involving *bool |= bool.
73007
73008 2006-01-25  Karl Berry  <karl@gnu.org>
73009
73010         * config/srclist.txt (vasnprintf.c): sync lost.
73011
73012 2006-01-25  Jim Meyering  <jim@meyering.net>
73013
73014         Sync from the stable (b5) branch of coreutils:
73015
73016         * lib/fts.c (fts_children): Don't let close() clobber errno from
73017         failed fchdir().
73018
73019         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73020         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73021         a dangling symlink.  That can also happen at least for ELOOP.
73022         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73023         FYI, this bug predates the inclusion of fts.c in coreutils.
73024
73025         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73026         in their own block, so pre-c99 compilers don't object.
73027
73028         Avoid the double-free (first in fts_read, second in fts_close) that
73029         would occur when an `active' directory is made inaccessible (e.g.,
73030         via chmod a-x) during a traversal.
73031         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73032         before returning.  Reproduce this failure by
73033         mkdir -p a/b; cd a; chmod a-x . b
73034         Reported by Stavros Passas.
73035
73036 2006-01-25  Jim Meyering  <jim@meyering.net>
73037
73038         * lib/fileblocks.c: Remove more useless parentheses.
73039         * lib/readutmp.h: Likewise.
73040
73041 2006-01-25  Bruno Haible  <bruno@clisp.org>
73042
73043         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73044         warnings.
73045         Reported by Paul Eggert.
73046
73047 2006-01-25  Bruno Haible  <bruno@clisp.org>
73048
73049         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73050         rid of a trap command. For Solaris sh.
73051         Reported by Mark D. Baushke <mdb@gnu.org>.
73052
73053 2006-01-24  Simon Josefsson  <jas@extundo.com>
73054
73055         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73056         Bruno.
73057
73058 2006-01-24  Karl Berry  <karl@gnu.org>
73059
73060         * config/srclist.txt (argp-namefrob.h): sync lost.
73061
73062 2006-01-24  Jim Meyering  <jim@meyering.net>
73063
73064         * modules/openat (Files): Add lib/intprops.h.
73065         From Mark D. Baushke.
73066
73067 2006-01-24  Jim Meyering  <jim@meyering.net>
73068
73069         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73070         Reported by Mark D. Baushke.
73071
73072 2006-01-24  Jim Meyering  <jim@meyering.net>
73073
73074         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73075
73076 2006-01-24  Bruno Haible  <bruno@clisp.org>
73077
73078         * modules/strnlen (Maintainer): Change from glibc to all.
73079
73080 2006-01-24  Bruno Haible  <bruno@clisp.org>
73081
73082         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73083         Patch by Paul Eggert.
73084
73085 2006-01-24  Bruno Haible  <bruno@clisp.org>
73086
73087         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73088         already has it.
73089         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73090         2005-11-26.
73091
73092         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73093         'signed char' to avoid problems with the built-in _Bool type.
73094         Reported by Paul Eggert on 2005-11-26.
73095
73096 2006-01-24  Bruno Haible  <bruno@clisp.org>
73097
73098         * gnulib-tool (func_import): Avoid constructing complicated sed
73099         expressions inside backquote.
73100         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73101
73102 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73103
73104         These changes imported from libc.
73105         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73106         test and two separate function calls.
73107         * lib/strndup.c (__strndup): Add libc_hidden_def.
73108
73109 2006-01-23  Simon Josefsson  <jas@extundo.com>
73110
73111         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73112         Remove the test_*_SOURCES variable: automake infers it by default.
73113         * modules/tls-tests: Likewise.
73114
73115 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73116
73117         Work around porting bugs reported by Dieter in
73118         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73119         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73120         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73121         Include "getopt.h" first, to check interface.
73122         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73123         !HAVE_DECL_GETENV.
73124         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73125         (__strndup): Revert to K&R-style function dfns, the glibc style.
73126         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73127         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73128         Include strnlen.h first, to get prototype properly.
73129         (strnlen): Renamed from __strnlen.
73130         Remove weak alias.
73131
73132 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73135
73136 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73137
73138         * config/srclist.txt: Adjust to reflect glibc reorganization.
73139         This affects only comments.
73140
73141 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73142
73143          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73144          Reported by Bruce Korb <bkorb@gnu.org>.
73145
73146 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73147
73148         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73149         to pacify gcc -Wswitch-default.
73150
73151 2006-01-22  Bruno Haible  <bruno@clisp.org>
73152
73153         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73154         temporary buffer for sprintf, take into account the precision also
73155         for 'd', 'i', 'u', 'o', 'x', 'X'.
73156
73157 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73158
73159         * modules/argp-tests: New module
73160         * tests/test-argp.c: New file
73161         * tests/test-argp-2.sh: New file
73162
73163 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73164
73165         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73166         (__argp_base_name): Removed
73167         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73168         typo.
73169         (__argp_base_name): Provide macro definition or extern declaration
73170         depending on the configuration
73171
73172 2006-01-20  Simon Josefsson  <jas@extundo.com>
73173
73174         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73175
73176 2006-01-20  Simon Josefsson  <jas@extundo.com>
73177
73178         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73179
73180 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73181
73182         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73183         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73184         Suggested by Bruno Haible.
73185
73186 2006-01-20  Karl Berry  <karl@gnu.org>
73187
73188         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73189         until changes propagate, I guess.
73190
73191 2006-01-19  Simon Josefsson  <jas@extundo.com>
73192
73193         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73194
73195 2006-01-19  Simon Josefsson  <jas@extundo.com>
73196
73197         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73198
73199 2006-01-19  Simon Josefsson  <jas@extundo.com>
73200
73201         * gnulib-tool: Set check_PROGRAMS.
73202
73203         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73204         modules/des-tests, modules/gc-arcfour-tests,
73205         modules/gc-arctwo-tests, modules/gc-des-tests,
73206         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73207         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73208         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73209         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73210         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73211         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73212         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73213         test_*_SOURCES.
73214
73215 2006-01-18  Simon Josefsson  <jas@extundo.com>
73216
73217         * modules/socklen (Depends-on): Depend on sys_socket.
73218
73219 2006-01-18  Simon Josefsson  <jas@extundo.com>
73220
73221         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73222         modules/des-tests, modules/gc-arcfour-tests,
73223         modules/gc-arctwo-tests, modules/gc-des-tests,
73224         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73225         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73226         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73227         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73228         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73229         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73230         $(EXEEXT) to automake TESTS variable, for mingw32.
73231
73232 2006-01-17  Simon Josefsson  <jas@extundo.com>
73233
73234         * modules/socklen (Include): Need sys/socket.h.
73235
73236 2006-01-17  Bruno Haible  <bruno@clisp.org>
73237
73238         * modules/ssize_t (Include): Add <sys/types.h>.
73239
73240 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73241
73242         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73243         it's not portable and it doesn't work with cross-compiles.
73244         Problem reported by Bruno Haible.  Fix missing-$ typo in
73245         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73246         -zignore from being used with Sun's C compiler.
73247
73248 2006-01-12  Simon Josefsson  <jas@extundo.com>
73249
73250         * lib/base64.c: Fix warning, reported by Bruno Haible
73251         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73252
73253 2006-01-12  Bruno Haible  <bruno@clisp.org>
73254
73255         * modules/ldd: New file.
73256         * build-aux/ldd.sh.in: New file.
73257         * MODULES.html.sh (Support for building libraries and executables): Add
73258         ldd.
73259
73260 2006-01-12  Bruno Haible  <bruno@clisp.org>
73261
73262         * m4/ldd.m4: New file.
73263
73264 2006-01-12  Bruno Haible  <bruno@clisp.org>
73265
73266         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73267         endless loop while replacing $auxdir with build-aux.
73268
73269 2006-01-11  Simon Josefsson  <jas@extundo.com>
73270
73271         * lib/stdint_.h (SIZE_MAX): Add missing (.
73272
73273 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73274
73275         Sync from coreutils.
73276         * lib/md5.c: Fix commentary typos.
73277         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73278         * lib/md5.h (__attribute__): Remove; unused.
73279         * lib/sha1.c: Fix commentary to match md5 better.
73280         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73281         so that we don't need to worry about alignment.  All uses changed.
73282         This merges the 2005-10-28 md5 change into sha1.
73283
73284 2006-01-11  Jim Meyering  <jim@meyering.net>
73285
73286         Sync from coreutils.
73287         * lib/md5.c (OP): Fix spacing.
73288
73289 2006-01-11  Bruno Haible  <bruno@clisp.org>
73290
73291         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73292         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73293         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73294
73295 2006-01-11  Bruno Haible  <bruno@clisp.org>
73296
73297         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73298         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73299         the "early" section as well.
73300
73301 2006-01-11  Bruno Haible  <bruno@clisp.org>
73302
73303         Avoid "ar: no archive members specified" error on MacOS X.
73304         * gnulib-tool (func_modules_add_dummy): New function.
73305         (func_import, func_create_testdir): Invoke it.
73306
73307 2006-01-11  Bruno Haible  <bruno@clisp.org>
73308
73309         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73310         with $auxdir in AC_CONFIG_FILES statements.
73311
73312 2006-01-11  Bruno Haible  <bruno@clisp.org>
73313
73314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73315         Initialize also noinst_HEADERS to empty.
73316
73317 2006-01-11  Bruno Haible  <bruno@clisp.org>
73318
73319         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73320         variables.
73321         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73322         autoreconf.
73323
73324 2006-01-11  Bruno Haible  <bruno@clisp.org>
73325
73326         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73327         overridable by the user.
73328         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73329
73330 2006-01-10  Simon Josefsson  <jas@extundo.com>
73331
73332         * modules/sys_socket: New file.
73333
73334 2006-01-10  Simon Josefsson  <jas@extundo.com>
73335
73336         * m4/sys_socket_h.m4: New file.
73337
73338 2006-01-10  Simon Josefsson  <jas@extundo.com>
73339
73340         * lib/socket_.h: New file.
73341
73342 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73343
73344         * modules/readutmp (Maintainer): Add myself.
73345
73346 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73347
73348         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73349         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73350         People who are still concerned with buggy memcmp implementations
73351         can invoke gl_FUNC_MEMCMP themselves.
73352
73353 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73354
73355         * lib/regex_internal.h (BITSET_WORD_BITS):
73356         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73357         preprocessor mishandles large unsigned values as if they were signed.
73358         Problem reported by Claudio Fontana in
73359         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73360
73361 2006-01-10  Jim Meyering  <jim@meyering.net>
73362
73363         Avoid the double-free (first in fts_read, second in fts_close) that
73364         would occur when an `active' directory is made inaccessible (e.g.,
73365         via chmod a-x) during a traversal.
73366         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73367         before returning.  Reproduce this failure by
73368         mkdir -p a/b; cd a; chmod a-x . b
73369         Reported by Stavros Passas.
73370
73371         Sync from coreutils.
73372         * lib/sha1.c: Tweak grammar in a comment.
73373
73374 2006-01-10  Jim Meyering  <jim@meyering.net>
73375
73376         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73377         Patch by Joerg Sonnenberger.
73378
73379 2006-01-10  Bruno Haible  <bruno@clisp.org>
73380
73381         * modules/readutmp: Depend on module free.
73382         * modules/strtok_r: Depend on module restrict.
73383
73384 2006-01-10  Bruno Haible  <bruno@clisp.org>
73385
73386         * modules/gettext (configure.ac): Add an invocation of
73387         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73388
73389 2006-01-10  Bruno Haible  <bruno@clisp.org>
73390
73391         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73392         Reported by Werner Lemberg <wl@gnu.org>.
73393
73394 2006-01-10  Bruno Haible  <bruno@clisp.org>
73395
73396         * lib/localcharset.c: Update from GNU gettext.
73397
73398 2006-01-10  Bruno Haible  <bruno@clisp.org>
73399
73400         * lib/argp.h (__const): Remove macro. Use const instead.
73401         * lib/argp-fmtstream.h (__const): Likewise.
73402         * lib/glob_.h (__const): Remove macro.
73403         * lib/glob-libc.h: Use const instead of __const.
73404
73405 2006-01-10  Bruno Haible  <bruno@clisp.org>
73406
73407         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73408         variable.
73409         Needed to avoid an automake error regarding the 'gettext' module.
73410
73411 2006-01-09  Simon Josefsson  <jas@extundo.com>
73412
73413         * modules/inet_ntop (Depends-on): Add restrict.
73414
73415 2006-01-09  Simon Josefsson  <jas@extundo.com>
73416
73417         * modules/gc-rijndael-tests (License): Put under LGPL.
73418
73419         * modules/gc-des-tests (License): Likewise.
73420
73421         * modules/gc-arcfour-tests (License): Likewise.
73422
73423         * modules/gc-arctwo-tests (License): Likewise.
73424
73425         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73426
73427         * modules/gc-hmac-sha1-tests (Files): Likewise.
73428
73429         * modules/gc-hmac-md5-tests (License): Likewise.
73430
73431         * modules/gc-sha1-tests (License): Likewise.
73432
73433         * modules/gc-md5-tests (License): Likewise.
73434
73435         * modules/gc-md4-tests (License): Likewise.
73436
73437         * modules/gc-md2-tests (License): Likewise.
73438
73439         * modules/gc-tests (License): Likewise.
73440
73441         * modules/des-tests (License): Likewise.
73442
73443         * modules/md4-tests (License): Likewise.
73444
73445         * modules/md2-tests (License): Likewise.
73446
73447 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73448
73449         Sync from coreutils:
73450
73451         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73452         * modules/lib-ignore: New file.
73453         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73454         chdir-safer.m4, lchmod.m4.
73455         * modules/openat: Add mkdirat.c, openat-priv.h.
73456
73457 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73458
73459         Sync from coreutils.
73460         * m4/lib-ignore.m4: New file.
73461         * m4/lchmod.m4: New file.
73462
73463 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73464
73465         Sync from coreutils.
73466         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73467         for write access: POSIX says that must fail.
73468         * lib/fts.c (diropen): Likewise.
73469         * lib/save-cwd.c (save_cwd): Likewise.
73470         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73471         well, for minor improvements on hosts that lack O_DIRECTORY.
73472         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73473         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73474         Fall back on chown if open failed with EACCES.
73475
73476         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73477         Report an error at compile-time if only a 1-second nominal clock
73478         resolution is found.
73479
73480         * lib/lchmod.h: New file.
73481         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73482         (make_dir_parents): Use lchown rather than chown, and
73483         lchmod rather than chmod.
73484
73485         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73486         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73487         "proc" reported by n0dalus.
73488
73489         * lib/mountlist.c: Include <limits.h>.
73490         (dev_from_mount_options)
73491         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73492         New function.  It no longer assumes "dev=" has the System V meaning
73493         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73494         (read_file_system_list)
73495         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73496         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73497         dev= in that case.
73498
73499         * lib/posixtm.h (PDS_PRE_2000): New macro.
73500         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73501         allow_century.  All usages changed.  Reject dates outside the range
73502         1969-1999 if PDS_PRE_2000 is used.
73503
73504 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73505
73506         Sync from coreutils.
73507         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73508         (Time of day items): Mention the possibility of leap seconds.
73509         Problem reported by Dr. David Alan Gilbert.
73510
73511 2006-01-09  Jim Meyering  <jim@meyering.net>
73512
73513         Sync from coreutils.
73514
73515         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73516
73517         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73518
73519         * lib/modechange.c (mode_compile): Reject an invalid mode string
73520         that starts with an octal digit.  From Andreas Gruenbacher.
73521
73522         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73523         and dup to open_safer and dup_safer, respectively.
73524         (openat_permissive): Fix typo in comment.
73525
73526         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73527         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73528         (_): Remove; no longer needed.
73529         (openat): Renamed from rpl_openat; no need for rpl_openat
73530         since openat.h renames openat for us.
73531         Replace most of the body with a call to openat_permissive,
73532         to avoid duplicate code.
73533         Port to (probably hypothetical) environments were mode_t is
73534         wider than int.
73535         (openat_permissive): Require mode arg, so that we can check
73536         types better.  Put it just after flags.  Change cwd failure
73537         indicator from pointer-to-bool to pointer-to-errno-value.
73538         All callers changed.
73539         Invoke openat_save_fail and/or openat_restore_fail if
73540         cwd_errno is null, so that openat can call us.
73541         (openat_permissive, fdopendir, fstatat, unlinkat):
73542         Simplify errno handling to avoid some duplicate code,
73543         as it's OK to set errno on success.
73544         * lib/openat.h: Revamp code so that function macros depend on
73545         __OPENAT_PREFIX only, not also on AT_FDCWD.
73546         (openat_ro): Remove.  Caller changed to use openat_permissive.
73547         (openat_permissive): Now a macro, if not a function.
73548         (openat_restore_fail, openat_save_fail): Now always functions,
73549         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73550
73551         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73552         and openat.c.
73553         * lib/mkdirat.c: Include openat-priv.h.
73554         Remove definitions of macros defined therein.
73555         * lib/openat.c: Likewise.
73556
73557         * lib/mkdirat.c (mkdirat): New file and function.
73558         * lib/openat.h (mkdirat): Declare.
73559
73560         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73561
73562         * lib/openat.h (openat_permissive): Declare.
73563         (openat_ro): Define.
73564
73565         * lib/openat.c (EXPECTED_ERRNO): New macro.
73566         (openat_permissive): New function -- used in remove.c rewrite.
73567         (all functions): Set errno just before returning, only if there
73568         was an actual failure.
73569         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73570
73571         Emulate openat-family functions using Linux's procfs, if possible.
73572         Idea and some code based on Ulrich Drepper's glibc changes.
73573
73574         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73575         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73576         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73577         before falling back on save_cwd and restore_cwd.
73578         (fdopendir, fstatat, unlinkat): Likewise.
73579
73580         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73581         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73582
73583         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73584         as second argument to va_arg.  Otherwise, some versions of gcc
73585         warn that `if this code is reached, the program will abort'.
73586
73587 2006-01-09  Jim Meyering  <jim@meyering.net>
73588
73589         Sync from coreutils.
73590         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73591         Require openat-priv.h.
73592
73593 2006-01-09  Bruno Haible  <bruno@clisp.org>
73594
73595         * modules/strnlen (Include): Use strnlen.h.
73596
73597 2006-01-09  Bruno Haible  <bruno@clisp.org>
73598
73599         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73600
73601 2006-01-09  Bruno Haible  <bruno@clisp.org>
73602
73603         * lib/sysexit_.h (EX_OK): New macro.
73604         Suggested by Martin Lambers <marlam@marlam.de>.
73605
73606 2006-01-09  Bruno Haible  <bruno@clisp.org>
73607
73608         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73609         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73610
73611 2006-01-09  Bruno Haible  <bruno@clisp.org>
73612
73613         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73614         numbers.
73615
73616 2006-01-09  Bruno Haible  <bruno@clisp.org>
73617
73618         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73619         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73620         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73621         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73622
73623 2006-01-09  Bruno Haible  <bruno@clisp.org>
73624
73625         * build-aux/javacomp.sh.in: New file, moved from lib/.
73626         * modules/javacomp-script (Files): Update.
73627         (configure.ac): Add AC_CONFIG_FILES invocation.
73628         (EXTRA_DIST): Remove variable.
73629
73630         * build-aux/javaexec.sh.in: New file, moved from lib/.
73631         * modules/javaexec (Files): Update.
73632         (configure.ac): Add AC_CONFIG_FILES invocation.
73633         (EXTRA_DIST): Remove javaexec.sh.in.
73634
73635         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73636         * modules/csharpcomp-script (Files): Update.
73637         (configure.ac): Add AC_CONFIG_FILES invocation.
73638         (EXTRA_DIST): Remove variable.
73639
73640         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73641         * modules/csharpexec (Files): Update.
73642         (configure.ac): Add AC_CONFIG_FILES invocation.
73643         (EXTRA_DIST): Remove csharpexec.sh.in.
73644
73645 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73646
73647         Sync from coreutils.
73648
73649         Add POSIX ACL support
73650         * lib/acl.h (copy_acl, set_acl): Add declarations.
73651         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73652         systems other than Linux.
73653         (chmod_or_fchmod): New function: use fchmod when possible,
73654         and chmod otherwise.
73655         (file_has_acl): Add a POSIX ACL implementation, with a
73656         Linux-specific subcase.
73657         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73658         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73659         acls are unsupported.
73660         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73661         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73662         are unsupported.
73663
73664 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73665
73666         Sync from coreutils.
73667         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73668
73669 2006-01-07  Bruno Haible  <bruno@clisp.org>
73670
73671         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73672         gl_EARLY.
73673
73674 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73675
73676         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73677         Problem reported for Mingw by Mark Junker.
73678
73679 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * README: Gnulib normally doesn't generate a tarball.
73682
73683 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73684
73685         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73686         long int, not int, for nanosecond counts, so that people who are
73687         used to POSIX struct timespec won't be surprised.  Reported by Jim
73688         Meyering.
73689
73690 2005-12-28  Bruno Haible  <bruno@clisp.org>
73691
73692         * build-aux/config.rpath: Update from GNU gettext.
73693
73694 2005-12-16  Jim Meyering  <jim@meyering.net>
73695
73696         * modules/fprintftime: New module.
73697         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73698
73699 2005-12-16  Jim Meyering  <jim@meyering.net>
73700
73701         * m4/fprintftime.m4: New file.
73702
73703 2005-12-16  Jim Meyering  <jim@meyering.net>
73704
73705         * lib/fprintftime.c, lib/fprintftime.h: New files.
73706
73707 2005-12-15  Simon Josefsson  <jas@extundo.com>
73708
73709         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73710         new m4/socklen.m4.
73711
73712 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73713
73714         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73715         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73716
73717 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73718
73719         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73720         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73721         struct uparams is valid. Fall back to the default values if it is
73722         not.
73723
73724 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73725
73726         * modules/argp (Files): Add argp-pin.c
73727         (Depends-on): dirname
73728         (lib_SOURCES): Add argp-pin.c
73729
73730 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73731
73732         * m4/argp.m4:  Check if program_invocation_name and
73733         program_invocation_short_name are declared and define appropriate
73734         macros if they are not.
73735
73736 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73737
73738         * lib/argp-help.c (__argp_base_name): New function
73739         (__argp_short_program_name): Rewrite using __argp_base_name
73740         * lib/argp-namefrob.h: Define program_invocation_name and
73741         program_invocation_short_name if requested
73742         (__argp_base_name): Add prototype
73743         * lib/argp-parse.c (argp_def): Use gettext wrappers
73744         (argp_default_parser): Use __argp_base_name
73745         * lib/argp-pin.c: New file. Defines program_invocation_name and
73746         program_invocation_short_name on systems that lack them.
73747
73748 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73749
73750         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73751         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73752         porting problem reported by Georg Schwarz in
73753         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73754
73755 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73758         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73759         porting problem reported by Georg Schwarz in
73760         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73761
73762 2005-12-05  Bruno Haible  <bruno@clisp.org>
73763
73764         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73765         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73766         Reported by Mark Junker <mjscod@gmx.de>.
73767
73768 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73771         Use implementation from Albert Chin, with some
73772         comments/corrections by Stepan Kasal and myself.
73773
73774 2005-12-02  Bruno Haible  <bruno@clisp.org>
73775
73776         * gnulib-tool (func_import): Accept GPLed build tool modules when
73777         --lgpl is given.
73778         * modules/csharpcomp-script: New file.
73779         * modules/csharpcomp: Depend on it.
73780         * modules/javacomp-script: New file.
73781         * modules/javacomp: Depend on it.
73782         Suggested by Simon Josefsson.
73783
73784 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73785
73786         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73787         statement, to work around an HP-UX 10.20 compiler bug reported by
73788         Peter O'Gorman.
73789
73790 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         * modules/savedir (Depends-on): Add openat.
73793
73794 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73795
73796         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73797         (uintmax_t) [defined uintmax_t]: Do not declare.
73798         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73799         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73800         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73801         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73802         sake of portability to weird hosts that C allows (though we don't
73803         know of any practical examples).
73804
73805         * lib/savedir.h (fdsavedir): New decl.
73806         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73807         contains most of the former guts of savedir.
73808         (savedir): Use savedirstream.
73809         Include "openat.h".
73810
73811 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73812
73813         * modules/obstack (Files): Add m4/ulonglong.m4.
73814         Problem reported by Davide Angelocola.
73815
73816 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73817
73818         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73819         coreutils no longer futzes with rounding modes.
73820
73821 2005-11-14  Jim Meyering  <jim@meyering.net>
73822
73823         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73824         replacement of mkstemp.
73825
73826 2005-11-10  Simon Josefsson  <jas@extundo.com>
73827
73828         * lib/readline.c: Remove EOL.
73829
73830 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73831
73832         * modules/gethrxtime (Depends-on): Add gettime.
73833
73834 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73835
73836         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73837         or gettimeofday; no longer needed.
73838
73839 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73840
73841         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73842         time business.
73843         (gethrxtime) [! (HAVE_NANOUPTIME
73844         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73845         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73846         our own approximation.
73847
73848 2005-11-08  Eric Blake  <ebb9@byu.net>
73849
73850         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73851
73852 2005-11-08  Eric Blake  <ebb9@byu.net>
73853
73854         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73855
73856 2005-11-04  Bruno Haible  <bruno@clisp.org>
73857
73858         * gnulib-tool: Implement --update mode.
73859
73860 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         Fix porting problem reported by Theodoros V. Kalamatianos.
73863         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73864         Don't assume that futimes failing means we must fail.
73865
73866 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73867
73868         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73869         variables to suggest the intended function of the PATH_MAX check.
73870
73871 2005-10-30  Kean Johnston  <jkj@sco.com>
73872
73873         Trivial changes to support SCO systems.
73874         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73875         as PATH_MAX.
73876         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73877         where __ptr is null when no I/O is pending.
73878
73879 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73880
73881         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73882         leave errno alone.  Problem reported by Dmitry V. Levin.
73883
73884 2005-10-28  Simon Josefsson  <jas@extundo.com>
73885
73886         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73887         Test more.
73888
73889         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73890
73891         * modules/md2, modules/md2-tests: New files.
73892
73893 2005-10-28  Simon Josefsson  <jas@extundo.com>
73894
73895         * m4/inet_ntop.m4: More tests.
73896
73897         * m4/gc-md2.m4, md2.m4: New file.
73898
73899 2005-10-28  Simon Josefsson  <jas@extundo.com>
73900
73901         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73902         "restrict" keywords, as per POSIX.  Protect the function
73903         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73904         Don't use K&R prototypes.  Check the sprintf return values.
73905         Re-define EAFNOSUPPORT if not present.  Indent.
73906
73907         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73908         suggested by Bruno Haible <bruno@clisp.org>.
73909
73910         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73911
73912         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73913
73914         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73915         libgcrypt).
73916
73917         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73918
73919         * lib/md2.h, lib/md2.c: New files.
73920
73921 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73922
73923         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73924         errno alone.  Problem reported by Frederic Jolliton.
73925
73926 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73927
73928         * modules/verify (License): Change from GPL to LGPL.  This is a
73929         tiny module and there are apparently near-equivalents that are
73930         under the BSD license.
73931
73932 2005-10-24  Simon Josefsson  <jas@extundo.com>
73933
73934         * modules/sha1: Relicense to LGPL.
73935
73936 2005-10-24  Simon Josefsson  <jas@extundo.com>
73937
73938         * lib/md4.h: Shrink buffer size, now that we changed the type.
73939
73940 2005-10-23  Simon Josefsson  <jas@extundo.com>
73941
73942         * gnulib-tool (func_import): Fix --tests-base.
73943
73944 2005-10-22  Simon Josefsson  <jas@extundo.com>
73945
73946         * modules/arcfour (Depends-on): Need stdint.
73947
73948 2005-10-22  Simon Josefsson  <jas@extundo.com>
73949
73950         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73951         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73952
73953 2005-10-22  Simon Josefsson  <jas@extundo.com>
73954
73955         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73956         suggested by Bruno Haible <bruno@clisp.org>.
73957
73958 2005-10-22  Simon Josefsson  <jas@extundo.com>
73959
73960         * lib/crc.h: Include stddef.h, for size_t.
73961
73962 2005-10-22  Simon Josefsson  <jas@extundo.com>
73963
73964         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73965         arcfour_context struct (simplify test vector testing in GNU
73966         Shishi).
73967
73968 2005-10-21  Simon Josefsson  <jas@extundo.com>
73969
73970         * modules/des, modules/des-tests: New files.
73971
73972         * modules/gc-des, modules/gc-des-tests: New files.
73973
73974         * tests/test-des.c, tests/test-gc-des.c: New file.
73975
73976 2005-10-21  Simon Josefsson  <jas@extundo.com>
73977
73978         * modules/arctwo, modules/arctwo-tests: New files.
73979
73980         * tests/test-arctwo.c: New file.
73981
73982         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73983
73984         * tests/test-gc-arctwo.c: New file.
73985
73986 2005-10-21  Simon Josefsson  <jas@extundo.com>
73987
73988         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
73989         Bruno Haible <bruno@clisp.org>.
73990
73991         * m4/gc-des.m4: New file.
73992
73993 2005-10-21  Simon Josefsson  <jas@extundo.com>
73994
73995         * m4/arctwo.m4: New file.
73996
73997         * m4/gc-arctwo.m4: New file.
73998
73999 2005-10-21  Simon Josefsson  <jas@extundo.com>
74000
74001         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74002         block.
74003
74004 2005-10-21  Simon Josefsson  <jas@extundo.com>
74005
74006         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74007         <bruno@clisp.org>.
74008
74009         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74010
74011         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74012         Bruno Haible <bruno@clisp.org>.
74013
74014         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74015         <bruno@clisp.org>.
74016
74017 2005-10-21  Simon Josefsson  <jas@extundo.com>
74018
74019         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74020
74021 2005-10-21  Simon Josefsson  <jas@extundo.com>
74022
74023         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74024
74025 2005-10-21  Simon Josefsson  <jas@extundo.com>
74026
74027         * lib/des.h, lib/des.c: New files.
74028
74029         * lib/gc-gnulib.c: Support DES.c
74030
74031 2005-10-21  Simon Josefsson  <jas@extundo.com>
74032
74033         * lib/arctwo.h, lib/arctwo.c: New files.
74034
74035         * lib/gc-gnulib.c: Support ARCTWO.
74036
74037 2005-10-21  Simon Josefsson  <jas@extundo.com>
74038
74039         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74040         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74041
74042 2005-10-21  Simon Josefsson  <jas@extundo.com>
74043
74044         * gnulib-tool (func_import, func_create_testdir): Define automake
74045         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74046         Makefile.am snippet),
74047         suggested by Bruno Haible <bruno@clisp.org>.
74048
74049         * modules/gc (Makefile.am): Use it.
74050
74051 2005-10-21  Bruno Haible  <bruno@clisp.org>
74052
74053         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74054         patch.
74055
74056 2005-10-19  Simon Josefsson  <jas@extundo.com>
74057
74058         * tests/test-gc-rijndael.c: New file.
74059
74060         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74061
74062 2005-10-19  Simon Josefsson  <jas@extundo.com>
74063
74064         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74065         interface too.
74066
74067 2005-10-19  Simon Josefsson  <jas@extundo.com>
74068
74069         * tests/test-gc-arcfour.c: New file.
74070
74071         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74072
74073 2005-10-19  Simon Josefsson  <jas@extundo.com>
74074
74075         * modules/gc-md4, modules/gc-md4-tests: New file.
74076
74077         * tests/test-gc-md4.c: New file.
74078
74079 2005-10-19  Simon Josefsson  <jas@extundo.com>
74080
74081         * m4/gc-md4.m4: New file.
74082
74083 2005-10-19  Simon Josefsson  <jas@extundo.com>
74084
74085         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74086         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74087         <kasal@ucw.cz>.
74088
74089 2005-10-19  Simon Josefsson  <jas@extundo.com>
74090
74091         * m4/gc-arcfour.m4: New file.
74092
74093         * m4/gc-rijndael.m4: New file.
74094
74095 2005-10-19  Simon Josefsson  <jas@extundo.com>
74096
74097         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74098
74099 2005-10-19  Simon Josefsson  <jas@extundo.com>
74100
74101         * lib/gc-gnulib.c: Support ARCFOUR.
74102
74103 2005-10-19  Simon Josefsson  <jas@extundo.com>
74104
74105         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74106         support.
74107
74108         * lib/gc.h: Add ECB enum type.
74109
74110         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74111
74112 2005-10-18  Simon Josefsson  <jas@extundo.com>
74113
74114         * tests/test-md5.c: New file.
74115
74116         * modules/md5-tests: New file.
74117
74118 2005-10-18  Simon Josefsson  <jas@extundo.com>
74119
74120         * tests/test-md4.c: New file.
74121
74122         * modules/md4, modules/md4-tests: New files.
74123
74124 2005-10-18  Simon Josefsson  <jas@extundo.com>
74125
74126         * m4/md4.m4: New file.
74127
74128 2005-10-18  Simon Josefsson  <jas@extundo.com>
74129
74130         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74131
74132 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74133
74134         * gnulib-tool (func_create_testdir): Omit the second check whether
74135         BUILT_SOURCES in nonempty.
74136
74137 2005-10-17  Simon Josefsson  <jas@extundo.com>
74138
74139         * tests/test-rijndael.c: New file.
74140
74141 2005-10-17  Simon Josefsson  <jas@extundo.com>
74142
74143         * modules/sha1: Depend on stdint instead of md5.
74144
74145         * modules/md5: Depend on stdint, remove uint32_t.
74146
74147 2005-10-17  Simon Josefsson  <jas@extundo.com>
74148
74149         * modules/gc-sha1-tests: New file.
74150
74151         * tests/test-gc-sha1.c: New file.
74152
74153 2005-10-17  Simon Josefsson  <jas@extundo.com>
74154
74155         * m4/md5.m4: Remove call to uint32_t.m4.
74156
74157 2005-10-17  Simon Josefsson  <jas@extundo.com>
74158
74159         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74160
74161         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74162         md5.h.
74163
74164         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74165
74166         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74167
74168 2005-10-17  Simon Josefsson  <jas@extundo.com>
74169
74170         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74171
74172 2005-10-17  Simon Josefsson  <jas@extundo.com>
74173
74174         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74175
74176 2005-10-17  Simon Josefsson  <jas@extundo.com>
74177
74178         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74179
74180         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74181
74182 2005-10-17  Bruno Haible  <bruno@clisp.org>
74183
74184         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74185         that it can also be used in a test.
74186
74187 2005-10-16  Bruno Haible  <bruno@clisp.org>
74188
74189         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74190         TESTS_ENVIRONMENT, so that individual tests can augment it.
74191
74192         * gnulib-tool (func_create_testdir): Use an intermediate target for
74193         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74194         macros, like $(ALLOCA_H), which cannot be passed through the command
74195         line.
74196
74197 2005-10-15  Simon Josefsson  <jas@extundo.com>
74198
74199         * modules/rijndael-tests: New file.
74200
74201         * modules/rijndael: New file.
74202
74203 2005-10-15  Simon Josefsson  <jas@extundo.com>
74204
74205         * m4/rijndael.m4: New file.
74206
74207 2005-10-15  Simon Josefsson  <jas@extundo.com>
74208
74209         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74210
74211         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74212
74213 2005-10-14  Simon Josefsson  <jas@extundo.com>
74214
74215         * tests/test-arcfour.c: New file.
74216
74217         * modules/arcfour, modules/arcfour-tests: New files.
74218
74219 2005-10-14  Simon Josefsson  <jas@extundo.com>
74220
74221         * m4/arcfour.m4: New file.
74222
74223 2005-10-14  Simon Josefsson  <jas@extundo.com>
74224
74225         * lib/arcfour.h, lib/arcfour.c: New files.
74226
74227 2005-10-14  Roland McGrath  <roland@redhat.com>
74228
74229         Import from libc.  [BZ #1331]
74230         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74231         macro argument.
74232         Reported by Matej Vela <vela@debian.org>.
74233
74234 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74235
74236         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74237         include <wchar.h>; no longer needed.
74238
74239 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74242
74243 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74244         and  Ulrich Drepper  <drepper@redhat.com>
74245
74246         Import from libc.
74247         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74248         instead of inline stream orientation test and two separate
74249         function calls.  Pay no attention to USE_IN_LIBIO.
74250
74251 2005-10-13  Simon Josefsson  <jas@extundo.com>
74252
74253         * modules/gc-hmac-md5-tests: New file.
74254
74255         * tests/test-gc-hmac-sha1.c: New file.
74256
74257         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74258
74259         * modules/gc-hmac-md5-tests: New file.
74260
74261         * tests/test-gc-md5.c: New file.
74262
74263         * modules/gc-md5-tests: New file.
74264
74265 2005-10-13  Simon Josefsson  <jas@extundo.com>
74266
74267         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74268         Move memory allocation outside of loop.
74269
74270 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74271
74272         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74273         intermediate directory is in a read-only file system.  Problem
74274         reported by Eric Blake.
74275
74276 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74277
74278         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74279
74280 2005-10-12  Simon Josefsson  <jas@extundo.com>
74281
74282         * tests/test-hmac-sha1.c: New file.
74283
74284         * modules/hmac-sha1-tests: New file.
74285
74286         * modules/hmac-sha1: New file.
74287
74288 2005-10-12  Simon Josefsson  <jas@extundo.com>
74289
74290         * modules/gc-sha1: New file.
74291
74292 2005-10-12  Simon Josefsson  <jas@extundo.com>
74293
74294         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74295
74296         * tests/test-gc-pbkdf2-sha1.c: New file.
74297
74298 2005-10-12  Simon Josefsson  <jas@extundo.com>
74299
74300         * modules/gc-md5, modules/gc-hmac-md5: New files.
74301
74302         * modules/gc (Files): Remove md5, memxor and hmac files.
74303
74304 2005-10-12  Simon Josefsson  <jas@extundo.com>
74305
74306         * m4/gc-pbkdf2-sha1.m4: New file.
74307
74308         * m4/gc-hmac-sha1.m4: New file.
74309
74310         * m4/gc-sha1: New file.
74311
74312         * m4/hmac-sha1.m4: New file.
74313
74314 2005-10-12  Simon Josefsson  <jas@extundo.com>
74315
74316         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74317
74318         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74319
74320 2005-10-12  Simon Josefsson  <jas@extundo.com>
74321
74322         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74323         suggested by Bruno Haible <bruno@clisp.org>.
74324
74325 2005-10-12  Simon Josefsson  <jas@extundo.com>
74326
74327         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74328
74329 2005-10-12  Simon Josefsson  <jas@extundo.com>
74330
74331         * lib/gc-pbkdf2-sha1.c: New file.
74332
74333         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74334
74335 2005-10-12  Simon Josefsson  <jas@extundo.com>
74336
74337         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74338
74339         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74340
74341 2005-10-12  Simon Josefsson  <jas@extundo.com>
74342
74343         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74344         GC_USE_HMAC_MD5, respectively.
74345
74346         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74347         (gc_md5): Fix typo.
74348
74349         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74350
74351         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74352
74353         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74354
74355 2005-10-12  Bruno Haible  <bruno@clisp.org>
74356
74357         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74358         Reported by Stepan Kasal <kasal@ucw.cz>.
74359
74360 2005-10-11  Simon Josefsson  <jas@extundo.com>
74361
74362         * tests/test-crc.c: New file.
74363
74364         * modules/crc, modules/crc-tests: New files.
74365
74366 2005-10-11  Simon Josefsson  <jas@extundo.com>
74367
74368         * m4/crc.m4: New file.
74369
74370 2005-10-11  Simon Josefsson  <jas@extundo.com>
74371
74372         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74373
74374         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74375
74376         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74377
74378 2005-10-11  Simon Josefsson  <jas@extundo.com>
74379
74380         * lib/crc.h, lib/crc.c: New files.
74381
74382         * lib/gc.h (gc_hash_buffer): Add doc.
74383
74384 2005-10-11  Bruno Haible  <bruno@clisp.org>
74385
74386         * modules/c-strcasestr: New file.
74387         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74388
74389 2005-10-11  Bruno Haible  <bruno@clisp.org>
74390
74391         * modules/c-strcase: New file.
74392         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74393
74394 2005-10-11  Bruno Haible  <bruno@clisp.org>
74395
74396         * lib/strcasecmp.c: Include limits.h.
74397         (strcasecmp): Avoid integer overflow on exotic platforms.
74398         * lib/strncasecmp.c: Include limits.h.
74399         (strncasecmp): Avoid integer overflow on exotic platforms.
74400         Reported by Paul Eggert.
74401
74402 2005-10-11  Bruno Haible  <bruno@clisp.org>
74403
74404         * lib/c-strcasestr.h: New file, from GNU gettext.
74405         * lib/c-strcasestr.c: New file, from GNU gettext.
74406
74407 2005-10-11  Bruno Haible  <bruno@clisp.org>
74408
74409         * lib/c-strcase.h: New file, from GNU gettext.
74410         * lib/c-strcasecmp.c: New file, from GNU gettext.
74411         * lib/c-strncasecmp.c: New file, from GNU gettext.
74412
74413 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74414
74415         * modules/mempcpy (License): GPL -> LGPL.
74416         * modules/strchrnul (License): Likewise.
74417         * modules/sysexits (License): Likewise.
74418
74419 2005-10-08  Simon Josefsson  <jas@extundo.com>
74420
74421         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74422
74423 2005-10-07  Simon Josefsson  <jas@extundo.com>
74424
74425         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74426
74427 2005-10-06  Simon Josefsson  <jas@extundo.com>
74428
74429         * tests/test-hmac-md5.c: New file.
74430
74431         * modules/hmac-md5-tests: New file.
74432
74433         * modules/hmac-md5: New file.
74434
74435 2005-10-06  Simon Josefsson  <jas@extundo.com>
74436
74437         * m4/hmac-md5.m4: New file.
74438
74439         * m4/memxor.m4: Require gl_C_RESTRICT.
74440
74441 2005-10-06  Simon Josefsson  <jas@extundo.com>
74442
74443         * lib/memxor.c (memxor): Avoid casts and warnings.
74444
74445 2005-10-06  Simon Josefsson  <jas@extundo.com>
74446
74447         * lib/hmac-md5.c: New file.
74448
74449         * lib/hmac.h: New file.
74450
74451 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74452
74453         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74454         promotes to int, not unsigned int, to catch the AIX 5.3
74455         compiler bug.
74456
74457 2005-10-05  Simon Josefsson  <jas@extundo.com>
74458
74459         * modules/memxor: New file.
74460
74461         * modules/iconv (Files): Move config.rpath to havelib, it is used
74462         there.
74463
74464         * modules/havelib (Files): Add config.rpath.
74465
74466 2005-10-05  Simon Josefsson  <jas@extundo.com>
74467
74468         * m4/memxor.m4: New file.
74469
74470 2005-10-05  Simon Josefsson  <jas@extundo.com>
74471
74472         * lib/memxor.c (memxor): Fix compiler error.
74473
74474         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74475         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74476
74477         * lib/memxor.h, lib/memxor.c: New files.
74478
74479         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74480         we assume all systems have it, suggested by Jim Meyering
74481         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74482         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74483         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74484         same reasons.
74485
74486 2005-10-05  Simon Josefsson  <jas@extundo.com>
74487
74488         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74489
74490 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74493         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74494         needed, since the source code now assumes these .h files.
74495
74496 2005-10-05  Derek Price  <derek@ximbiot.com>
74497
74498         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74499
74500 2005-10-05  Bruno Haible  <bruno@clisp.org>
74501
74502         * modules/stdint (License): Change to LGPL.
74503
74504 2005-10-04  Simon Josefsson  <jas@extundo.com>
74505
74506         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74507         D. Baushke" <mdb@gnu.org>.
74508
74509 2005-10-04  Bruno Haible  <bruno@clisp.org>
74510
74511         * lib/verify.h (verify_true): Provide alternative definition for C++.
74512
74513 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74514
74515         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74516         (SSIZE_MAX): New macro, if not already defined.
74517         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74518         than 2 GiB.
74519
74520 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74521
74522         Sync from coreutils.
74523         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74524         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74525         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74526         ULLONG_MAX doesn't work with 2.7.2.1.
74527
74528 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74529
74530         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74531         From Ben Pfaff.
74532
74533         * modules/exclude (Depends-on): Depend on verify.
74534         * modules/strtoimax (Depends-on): Likewise.
74535         * modules/utimecmp (Depends-on): Likewise.
74536
74537 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * lib/exclude.c: Include verify.h.
74540         (verify): Remove.  All callers changed to use verify.h's version.
74541         * lib/strtoimax.c: Likewise.
74542         * lib/utimecmp.c: Likewis.e
74543
74544         Sync from coreutils.
74545         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74546         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74547         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74548         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74549         bother returning ENOSYS if settimeofday or stime fails; just let
74550         them return whatever errno they want to return.
74551         * lib/utimens.c: Include unistd.h, for dup2.
74552         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74553         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74554
74555 2005-10-02  Jim Meyering  <jim@meyering.net>
74556
74557         Sync from coreutils.
74558         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74559         from glibc-2.2.5 that fails for read-only files.
74560
74561 2005-10-02  Jim Meyering  <jim@meyering.net>
74562
74563         Sync from coreutils.
74564         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74565         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74566         `#if HAVE_CONFIG_H'.
74567         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74568         Remove AT_FDCWD test.
74569         Do not consume the fd unless successful.
74570         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74571         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74572         block, so that we don't even try to compile it if settimeofday is
74573         available.  This works around a compilation failure on OSF1 V5.1,
74574         due to stime requiring a `long int*' while tv_sec is `int'.
74575
74576 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74577
74578         Sync from coreutils.
74579         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74580         against `yes', rather than just testing for nonempty.
74581
74582 2005-10-01  Simon Josefsson  <jas@extundo.com>
74583
74584         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74585         and Darwin.
74586
74587         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74588         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74589         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74590         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74591         Check if struct addrinfo is declared.
74592
74593 2005-10-01  Simon Josefsson  <jas@extundo.com>
74594
74595         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74596         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74597         AI_* and EAI_* definitions.  Protect function declarations.
74598
74599 2005-10-01  Jim Meyering  <jim@meyering.net>
74600
74601         Sync from coreutils.
74602
74603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74604         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74605         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74606         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74607         in the inet and nsl libraries.  Required on Solaris 5.7.
74608
74609 2005-10-01  Jim Meyering  <jim@meyering.net>
74610
74611         Sync from coreutils.
74612         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74613         in the inet and nsl libraries.  Required on Solaris 5.7.
74614
74615 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74616
74617         * lib/getdelim.c (getdelim): Remove unused variables.
74618
74619 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74622         so that the code works even with ancient cpp.  Portability problem
74623         with GCC 2.7.2.1 reported by Thomas M.Ott.
74624
74625 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74626
74627         * modules/regex (Depends-on): Add strcase.
74628
74629         * modules/gethostname (Licence): Change from GPL to LGPL, since
74630         gethostname.c is a trivial implementation of a standard library
74631         function.
74632         * modules/poll (License): Change from GPL to LGPL, since it's
74633         derived from LGPL code.
74634
74635 2005-09-27  Jim Meyering  <jim@meyering.net>
74636
74637         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74638         HAVE_CONFIG_H.
74639
74640         * lib/intprops.h (signed_type_or_expr__): Define.
74641         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74642         for unsigned types.
74643
74644 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74645
74646         * lib/verify.h (verify_expr): Remove, replacing with:
74647         (verify_true): New macro that returns true instead of void.
74648         (verify_type__): Remove.
74649         (verify): Use verify_true rather than verify_type__.
74650
74651 2005-09-26  Bruno Haible  <bruno@clisp.org>
74652
74653         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74654         is necessary.
74655         (lib_SOURCES): Remove mbchar.c.
74656         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74657         (Files): Add m4/mbrtowc.m4.
74658         * modules/mbiter: Likewise.
74659         * modules/mbuiter: Likewise.
74660
74661 2005-09-26  Bruno Haible  <bruno@clisp.org>
74662
74663         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74664         compile mbchar.c if they are not both present.
74665         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74666         * m4/mbiter.m4 (gl_MBITER): Likewise.
74667         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74668         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74669         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74670
74671 2005-09-25  Jim Meyering  <jim@meyering.net>
74672
74673         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74674         also uses socklen_t.
74675
74676 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74677
74678         * lib/utimens.c (ENOSYS): Define if not already defined.
74679         (futimens): Support having a null PATH if the file descriptor
74680         is nonnegative.
74681
74682         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74683         Remove.
74684         (__attribute): Define to empty unless GCC 3.1 or later.
74685         This works around a core dump on OpenBSD 3.4, which has GCC
74686         2.95.3, which dumps core when given __attribute__(()).  It also
74687         simplifies other tests, since we really don't want to bother with
74688         worrying about which ancient version of GCC supported what.
74689         Original problem reported by Yoann Vandoorselaere, with part of
74690         the fix suggested by Derek Price.
74691
74692 2005-09-24  Jim Meyering  <jim@meyering.net>
74693
74694         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74695         so we can once again use a positive bitfield width of 1 -- now we
74696         don't have to explain why we were using a bitfield width of 2.
74697
74698 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74699
74700         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74701         and similarly for the other external symbols.  Problem reported
74702         by James Gallager.
74703
74704         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74705         bug reported by Jim Meyering.
74706
74707         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74708         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74709         not needed, since socklen is a prerequisite module.
74710
74711 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74714         Problem reported by Eric Blake.
74715         (getaddrinfo): Initialize se so that it's not garbage.
74716         Redo internal storage allocation so that it doesn't make unportable
74717         assumptions about alignment.
74718         Fix a memory leak.
74719
74720         * lib/utimens.c (futimens): Use futimesat if available.
74721         Prefer it to futimes since it doesn't have the futimes bug.
74722
74723         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74724         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74725         Instead, declare a function that returns a pointer to an array,
74726         and use verify_type__ to declare the size of the array.
74727         Problem and germ of a solution reported by Bruno Haible.
74728         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74729         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74730
74731 2005-09-23  Jim Meyering  <jim@meyering.net>
74732
74733         Sync from coreutils.
74734         Correct build failure (socklen_t not defined) on at least
74735         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74736         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74737
74738 2005-09-23  Jim Meyering  <jim@meyering.net>
74739
74740         * modules/getaddrinfo (Depends-on): Add socklen.
74741
74742 2005-09-23  Bruno Haible  <bruno@clisp.org>
74743
74744         * tests/test-verify.c: New file.
74745
74746 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74747
74748         Sync from coreutils.
74749
74750         * modules/argmatch (Depends-on): Add verify.
74751         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74752         unistd-safer.
74753         * modules/save-cwd (Depends-on): Likewise.
74754
74755         * modules/openat (Files): Add lib/openat-die.c.
74756         (Depends-on): Remove error, exitfail.
74757         Add dirname.
74758
74759         * modules/verify: New file.
74760         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74761         with "verify" module.
74762
74763 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74764
74765         Sync from coreutils.
74766
74767         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74768         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74769         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74770         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74771         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74772         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74773         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74774         Don't bother checking for string.h, stdlib.h, unistd.h.
74775         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74776         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74777         module's job.
74778         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74779         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74780
74781         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74782         (gl_GETDATE): Use it.
74783
74784         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74785
74786 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74787
74788         Sync from coreutils.
74789
74790         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74791         stat-time.h.
74792         * lib/argmatch.h: Include verify.h
74793         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74794         (ARGMATCH_ASSERT): Remove; unused.
74795         * lib/canonicalize.c: Assume STDC_HEADERS.
74796         * lib/exclude.c: Include "strcase.h".
74797         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74798         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74799         and stdio-safer.h.
74800         (getusershell): Call fopen, not fopen_safer.
74801         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74802         Do not include unistd-safer.h.
74803         (save_cwd): Don't call fd_safer; no longer needed
74804         now that we include fcntl--.h.
74805
74806         * lib/getdate.y (relative_time): New type.
74807         (RELATIVE_TIME_0): New constant.
74808         (parser_control): Use relative_time instead of doing it ourselves.
74809         (%union): Add new relative_time rel member.
74810         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74811         Now typeless.
74812         (relunit, relunit_snumber): Now of type rel.
74813         (zone, rel, relunit, get_date): Adjust to above changes.
74814
74815         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74816         Do not include unistd-safer.h.
74817         (getloadavg): Don't call fd_safer; no longer needed
74818         now that we include fcntl--.h.
74819
74820         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74821         (make_dir_parents): Treat ENOSYS like EEXIST.
74822
74823         Improve quality of diagnostics on restore_cwd failure.
74824         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74825         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74826         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74827         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74828         each time through the loop.  Do not diagnose restore_cwd failure;
74829         that is the caller's job (and perhaps the caller does not care).
74830
74831         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74832         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74833         If the file already exists but is not a directory, don't bother
74834         to try to make its parents.
74835         Close potential file descriptor leak if we can't chdir("/") (!).
74836         Don't always return true if chdir($PWD) fails; return true only
74837         if the requested action was done successfully (except for the
74838         chdir($PWD)).
74839         Don't log final directory unless we actually made it.
74840         Refactor to avoid duplicate code to fix up permissions.
74841         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74842
74843         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74844         to make it a bit faster and (I hope) clearer.
74845         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74846         Fix bug in formats like %2N.
74847
74848         * lib/verify.h: New file.
74849
74850 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74851
74852         Sync from coreutils.
74853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74854
74855 2005-09-22  Jim Meyering  <jim@meyering.net>
74856
74857         Sync from coreutils.
74858
74859         * m4/lstat.m4 (gl_FUNC_LSTAT):
74860         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74861         Remove obsolete comment.
74862         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74863         * m4/xstrtod.m4: Likewise.
74864
74865         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74866
74867 2005-09-22  Jim Meyering  <jim@meyering.net>
74868
74869         Sync from coreutils.
74870
74871         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74872
74873         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74874         the .tm_year member, since otherwise gcc-4.0 would now warn about
74875         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74876
74877         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74878         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74879
74880         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74881         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74882         when run in a time zone for which daylight savings time is in effect
74883         for the starting date.
74884
74885         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74886         stop us from restricting permissions of just-created absolute-named
74887         directories.
74888         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74889         to restore initial working directory.
74890         * lib/mkdir-p.c (make_dir_parents): New parameter:
74891         different_working_dir, to tell caller if/when we change the working
74892         directory and are unable to return to the initial one.
74893         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74894         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74895         `return false'.  This fixes a bug introduced on 2004-07-30.
74896
74897         * lib/openat.c (fdopendir): Be sure to close the supplied
74898         file descriptor before returning.  This makes our replacement
74899         implementation a little closer to Solaris's, where fdopendir
74900         ties the file descriptor to the returned DIR* pointer.
74901         * lib/openat.c (unlinkat): New function.
74902         * lib/openat.h (unlinkat): Add prototype.
74903         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74904         (openat_restore_fail): Rename from openat_restore_die.
74905         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74906
74907         Provide an alternative to exiting immediately upon save_cwd or
74908         restore_cwd failure.  Now, an application can arrange e.g.,
74909         to perform a longjump in that case.
74910         * lib/openat.c: Include dirname.h.
74911         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74912         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74913         and openat_restore_die rather than calling error directly.
74914         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74915
74916         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74917         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74918         define.
74919
74920         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74921         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74922                             int utc, int nanoseconds);
74923         Background:
74924         date should not have to allocate a megabyte of virtual memory to
74925         handle a format argument like +%1048575T.  When implemented with
74926         strftime, it must allocate such a buffer, use strftime to fill it
74927         in, print it, then free it.
74928         With fprintftime, it simply prints everything and exits.
74929         With no need for memory allocation, that's one fewer way to fail.
74930         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74931         optional field width, not before, so we accept %9:z, not %:9z.
74932         (my_strftime): Be sure to use L_('x') for literals.
74933
74934         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74935         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74936         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74937         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74938         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74939         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74940         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74941         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74942         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74943         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74944         * lib/xgethostname.c, lib/xreadlink.c:
74945         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74946
74947         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74948         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74949         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74950         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74951         and don't include <sys/file.h>).
74952
74953 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74954
74955         Sync from coreutils.
74956
74957         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74958         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74959         [!LDAV_DONE]: Avoid unused variable warning.
74960
74961 2005-09-21  Bruno Haible  <bruno@clisp.org>
74962
74963         * lib/unicodeio.h (unicode_to_mb): New declaration.
74964
74965 2005-09-20  Derek Price  <derek@ximbiot.com>
74966
74967         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74968         getaddrinfo.h.
74969
74970 2005-09-20  Bruno Haible  <bruno@clisp.org>
74971
74972         * gnulib-tool: Remove trailing slashes from the values specified for
74973         --source-base, --m4-base, --tests-base, --aux-dir.
74974         Suggested by Simon Josefsson <jas@extundo.com>.
74975
74976 2005-09-20  Bruno Haible  <bruno@clisp.org>
74977
74978         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74979         func_modules_to_filelist, func_import, func_create_testdir): Make all
74980         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74981         change when gnulib-tool is invoked in a different locale.
74982
74983 2005-09-19  Simon Josefsson  <jas@extundo.com>
74984
74985         * m4/socklen.m4: Fix typo.
74986
74987 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74988
74989         Use a consistent style for including <config.h>.
74990         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
74991         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
74992         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
74993         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
74994         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
74995         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
74996         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
74997         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
74998         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
74999         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75000         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75001         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75002         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75003         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75004         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75005         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75006         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75007         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75008         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75009         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75010         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75011         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75012         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75013         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75014         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75015         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75016         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75017         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75018         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75019         lib/xstrtoumax.c, lib/yesno.c:
75020         Standardize inclusion of config.h.
75021         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75022         lib/inttostr.h:  Removed inclusion of config.h from header files.
75023         * lib/inttostr.c:  Adjusted in-tree users.
75024         * lib/timespec.h: Remove superfluous warning to include config.h.
75025         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75026         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75027         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75028         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75029         config.h with HAVE_CONFIG_H.
75030
75031 2005-09-19  Jim Meyering  <jim@meyering.net>
75032
75033         * modules/pathmax (License): Change to LGPL.
75034
75035 2005-09-19  Derek Price  <derek@ximbiot.com>
75036
75037         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75038
75039 2005-09-19  Bruno Haible  <bruno@clisp.org>
75040
75041         * gnulib-tool (import): Provide default for --tests-base.
75042
75043 2005-09-19  Bruno Haible  <bruno@clisp.org>
75044
75045         * doc/quote.texi: New file, extracted from gnulib.texi.
75046         * doc/ctime.texi: New file, extracted from gnulib.texi.
75047         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75048         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75049         * doc/gnulib.texi: Include them.
75050
75051 2005-09-18  Bruno Haible  <bruno@clisp.org>
75052
75053         Portability fix.
75054         * gnulib-tool (func_readlink): New function.
75055         (func_ln_if_changed): Use it.
75056
75057 2005-09-18  Bruno Haible  <bruno@clisp.org>
75058
75059         * gnulib-tool: Support --with-tests also with --import.
75060         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75061         (func_import): Use variables $testsbase and $inctests. Emit a
75062         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75063         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75064         SUBDIRS += $testsdir.
75065         (func_create_testdir): Update.
75066
75067 2005-09-18  Bruno Haible  <bruno@clisp.org>
75068
75069         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75070         instead of $dry_run.
75071         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75072         (func_ln_if_changed): Don't handle dry-run here.
75073         (func_import): In dry-run mode, detect more precisely which actions
75074         would be performed, and don't use "...ing" verbs.
75075
75076 2005-09-18  Bruno Haible  <bruno@clisp.org>
75077
75078         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75079         (func_import): Use join on two temporary files instead of three nested
75080         loops, in order to determine which files are new or old.
75081
75082 2005-09-18  Bruno Haible  <bruno@clisp.org>
75083
75084         * gnulib-tool (func_import): Comment out code that spits out the
75085         new files with --dry-run.
75086
75087 2005-09-18  Bruno Haible  <bruno@clisp.org>
75088
75089         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75090
75091 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75092
75093         * lib/stat-time.h: New file.
75094         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75095         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75096         in a different way.
75097         (timespec_cmp): New function.
75098         * lib/utimecmp.c: Include stat-time.h.
75099         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75100         members exist, not on the obsolescent ST_MTIM_NSEC.
75101         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75102
75103 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75106
75107 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75108
75109         * MODULES.html.sh (File system functions): Add stat-time.
75110         * modules/stat-time: New file.
75111         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75112         is now done in a different way, by the stat-time module.
75113         * modules/utimecmp (Depends-on): Add stat-time.
75114
75115 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * m4/st_mtim.m4: Remove.  Superseded by...
75118         * m4/stat-time.m4: New file.
75119         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75120         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75121
75122 2005-09-15  Derek Price  <derek@ximbiot.com>
75123
75124         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75125
75126 2005-09-15  Derek Price  <derek@ximbiot.com>
75127
75128         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75129         * lib/regex_internal.c: Ditto, using this...
75130         (__GNUC_PREREQ): ...new macro.
75131         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75132         using...
75133         (__GNUC_PREREQ): ...this new macro.
75134
75135         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75136
75137 2005-09-15  Derek Price  <derek@ximbiot.com>
75138             Paul Eggert  <eggert@cs.ucla.edu>
75139
75140         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75141         changes, consolidating in...
75142         * lib/regex_internal.h: ...this file.
75143
75144 2005-09-13  Jim Meyering  <jim@meyering.net>
75145
75146         * lib/canon-host.c: Filter through gnu indent and reword comments
75147         slightly.
75148         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75149
75150 2005-09-13  Derek Price  <derek@ximbiot.com>
75151
75152         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75153         failure.
75154         Reported by Jim Meyering  <jim@meyering.net>.
75155
75156 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75157
75158         * lib/base64.c: Typo.
75159         (base64_encode): Put b64str in initialized data section.
75160
75161 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75162
75163         Merge glibc and coreutils changes into gnulib, plus a few
75164         extra fixes.
75165         * lib/md5.c: Use #error rather than a string.
75166         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75167         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75168         (__attribute__): Define to empty for non recent-GCC.
75169         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75170         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75171         Renamed from their non-__ counterparts, with new macros replacing
75172         them if not _LIBC.  Add __THROW attribute.
75173         (rol): Remove.
75174         (struct md5_ctx): Align buffer if using GCC.
75175         * lib/sha1.h (struct sha1_ctx): Likewise.
75176         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75177         The old name was backwards.
75178         (NOTSWAP): Remove; not used.
75179         (rol): New macro, moved here from md5.h.
75180         (sha1_process_block): Remove a FIXME that doesn't make sense.
75181
75182 2005-09-12  Derek Price  <derek@ximbiot.com>
75183
75184         Return usable errors from canon-host.
75185         * lib/canon-host.h: New file.
75186         * lib/canon-host.c (canon_host): Wrap...
75187         (canon_host_r): ...this new function, which now relies exclusively on
75188         getaddrinfo.
75189         (ch_strerror): New function.
75190         (last_cherror): New global.
75191         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75192         interface.
75193         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75194         void *.
75195         (freeaddrinfo): Free ai->ai_canonname when set.
75196
75197 2005-09-12  Derek Price  <derek@ximbiot.com>
75198
75199         Make canon-host require getaddrinfo.
75200         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75201         AC_LIBSOURCE canon-host.h.  Call...
75202         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75203         gl_GETADDRINFO.
75204         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75205
75206 2005-09-12  Derek Price  <derek@ximbiot.com>
75207
75208         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75209         LGPL.
75210         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75211
75212 2005-09-12  Derek Price  <derek@ximbiot.com>
75213
75214         * lib/gai_strerror.c: Include config.h when available.  Include
75215         getaddrinfo.h before other headers to test interface.
75216         Reported by Larry Jones <lawrence.jones@ugs.com>.
75217
75218 2005-09-12  Derek Price  <derek@ximbiot.com>
75219             Paul Eggert  <eggert@cs.ucla.edu>
75220
75221         * modules/glob (Files): Add glob-libc.h.
75222
75223 2005-09-12  Derek Price  <derek@ximbiot.com>
75224             Paul Eggert  <eggert@cs.ucla.edu>
75225
75226         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75227         glob_.h, glob-libc.h.
75228         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75229
75230 2005-09-12  Derek Price  <derek@ximbiot.com>
75231             Paul Eggert  <eggert@cs.ucla.edu>
75232
75233         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75234         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75235         protecting things that should be done only in gnulib contexts.
75236         * lib/glob_.h: New file, containing only the glob things needed for
75237         gnulib.
75238         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75239         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75240         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75241         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75242         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75243         and to respect the namespace rules better.
75244
75245 2005-09-08  Simon Josefsson  <jas@extundo.com>
75246
75247         * modules/socklen: New file.
75248
75249 2005-09-08  Simon Josefsson  <jas@extundo.com>
75250
75251         * m4/socklen.m4: New file.
75252
75253 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75254
75255         * modules/utimens (Files): Add m4/utimbuf.m4, since
75256         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75257         Reported by Sergey Poznyakoff.
75258
75259 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75260
75261         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75262         definitions, since that's the preferred style in glibc.
75263         Fix a minor spacing issue, and update copyright notice to match
75264         glibc's.
75265
75266 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75267
75268         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75269
75270 2005-09-06  Simon Josefsson  <jas@extundo.com>
75271
75272         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75273         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75274
75275 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75276
75277         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75278         warning.
75279
75280 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         * config/srclist.txt: Add glibc bug 1302.
75283
75284 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75285
75286         Change bitset word type from unsigned int to unsigned long int,
75287         as this has better performance on typical 64-bit hosts.
75288         Port bitset code to hosts with unusual word sizes.
75289         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75290         (build_collating_symbol):
75291         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75292         argument is a bitset.  This is merely a style issue, but it makes
75293         it clearer that an entire array is expected.
75294         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75295         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75296         Port to the case where bitset_word is not the same as unsigned int.
75297         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75298         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75299         Likewise.
75300         * lib/regexec.c (check_dst_limits_calc_pos_1,
75301         check_subexp_matching_top):
75302         (build_trtable, group_nodes_into_DFAstates):
75303         Likewise.
75304         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75305         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75306         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75307         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75308         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75309         * lib/regcomp.c (optimize_subexps, lower_subexp):
75310         Work even if bitset_word has holes in its bitwise representation.
75311         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75312         * lib/regexec.c (check_dst_limits_calc_pos_1,
75313         check_subexp_matching_top):
75314         Likewise.
75315         * lib/regex_internal.c (re_string_reconstruct):
75316         Don't assume UCHAR_MAX == 255.
75317         * lib/regex_internal.h (bitset_set_all): Likewise.
75318         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75319         All uses changed.
75320         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75321         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75322         All uses changed.
75323         (BITSET_WORD_MAX): New macro.
75324         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75325         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75326         (bitset_empty, bitset_copy):
75327         Prefer sizeof (bitset) to multiplying it out ourselves.
75328         (bitset_not_merge): Remove; unused.
75329         (bitset_contain): Return bool, not unsigned int with one bit on.
75330         All callers changed.
75331         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75332         alignment than re_node_set; do this by defining a new internal
75333         type struct dests_alloc and using it to allocate memory.
75334
75335 2005-09-05  Bruno Haible  <bruno@clisp.org>
75336
75337         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75338         links.
75339
75340 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75341
75342         * modules/size_max (Makefile.am): Add size_max.h
75343
75344 2005-09-04  Derek Price  <derek@ximbiot.com>
75345
75346         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75347
75348 2005-09-03  Simon Josefsson  <jas@extundo.com>
75349
75350         * gnulib-tool: Fix typo.
75351
75352 2005-09-03  Simon Josefsson  <jas@extundo.com>
75353
75354         * config/srclist.txt: Add glibc bug 1293.
75355
75356 2005-09-03  Derek Price  <derek@ximbiot.com>
75357
75358         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75359         From Larry Jones <lawrence.jones@ugs.com>.
75360
75361 2005-09-02  Simon Josefsson  <jas@extundo.com>
75362
75363         * modules/socklen: New file.
75364
75365 2005-09-02  Simon Josefsson  <jas@extundo.com>
75366
75367         * modules/havelib: New module.
75368
75369         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75370         Use havelib.
75371
75372 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75373
75374         Check for arithmetic overflow when calculating sizes, to prevent
75375         some buffer-overflow issues.  These patches are conservative, in the
75376         sense that when I couldn't determine whether an overflow was possible,
75377         I inserted a run-time check.
75378         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75379         macros.
75380         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75381         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75382         (re_xnrealloc, re_x2nrealloc): New inline functions.
75383         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75384         parse_bracket_exp):
75385         (build_equiv_class, build_charclass): Check for arithmetic overflow
75386         in size expression calculations.
75387         * lib/regex_internal.c (re_string_realloc_buffers):
75388         (build_wcs_upper_buffer, re_node_set_add_intersect):
75389         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75390         (re_dfa_add_node, register_state): Likewise.
75391         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75392         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75393         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75394         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75395
75396 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75399         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75400
75401 2005-09-02  Bruno Haible  <bruno@clisp.org>
75402
75403         Support for lib vs. lib64 distinction on biarch platforms.
75404         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75405         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75406         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75407
75408 2005-09-02  Bruno Haible  <bruno@clisp.org>
75409
75410         * gnulib-tool (import): In the other first-use case, provide defaults
75411         as well.
75412
75413 2005-09-02  Bruno Haible  <bruno@clisp.org>
75414
75415         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75416         patches not yet found in the latest gettext release.
75417
75418 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75419
75420         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75421         to avoid a collision with bits/local_lim.h in glibc.
75422         All uses changed.  Problem reported by Dmitry V. Levin in
75423         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75424
75425         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75426         bugs in int versus size_t comparisons.
75427         (re_string_context_at): Fix bug where the code assumed that
75428         Idx is signed.
75429
75430         Use bool where appropriate.
75431         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75432         All callers changed.
75433         (calc_eclosure_iter): Likewise, for ROOT arg.
75434         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75435         (build_charclass_op): Likewise, for NON_MATCH arg.
75436         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75437         (re_string_construct_common): Likewise, for ICASE arg.
75438         * lib/regexec.c (re_search_2_stub, re_search_stub):
75439         Likewise, for RET_LEN arg.
75440         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75441         (set_regs): Likewise, for FL_BACKTRACK arg.
75442         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75443         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75444         (calc_eclosure_iter, parse_bracket_exp):
75445         Use bool for internal variables that are booleans.
75446         * lib/regexec.c (re_search_internal, check_matching,
75447         proceed_next_node):
75448         (set_regs, build_sifted_states, sift_states_bkref):
75449         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75450         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75451         (find_collation_sequence_value):
75452         Likewise.
75453         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75454         (re_node_set_compare):
75455         Return bool, not int. All callers changed.
75456         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75457         (build_trtable, check_node_accept): Likewise.
75458         * lib/regex_internal.h: Include stdbool.h.
75459
75460         Fix bugs uncovered when converting to bool.
75461         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75462         failure instead of charging ahead blindly.
75463         * lib/regex_internal.c (register_state): Likewise.
75464         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75465         for freeing internal storage.
75466         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75467         bitset pieces used as boolean, to avoid undefined behavior
75468         on hosts that do int overflow checking.
75469
75470 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75471
75472         * config/srclist.txt: Add glibc bugs 1285-1287.
75473
75474 2005-09-01  Jim Meyering  <jim@meyering.net>
75475
75476         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75477         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75478         Require gl_STAT_MACROS, too.
75479
75480 2005-09-01  Bruno Haible  <bruno@clisp.org>
75481
75482         * gnulib-tool (import): In the first-use case, provide defaults.
75483
75484 2005-09-01  Bruno Haible  <bruno@clisp.org>
75485
75486         * gnulib-tool (func_import): Remove the .tmp files.
75487
75488 2005-09-01  Bruno Haible  <bruno@clisp.org>
75489
75490         * gnulib-tool (func_import): Fix handling of symbolic links.
75491
75492 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75495         old glibc regex code mishandles strings longer than 2**31 bytes.
75496         This patch fixes this when the regex code is used in gnulib
75497         (i.e., outside glibc).
75498
75499         This patch should not affect the use of the regex code inside
75500         glibc.  No doubt this problem also needs to be handled for glibc
75501         as well, but the result will be an incompatible change to the
75502         glibc ABI, and the old ABI will have to be supported too.  That
75503         can be the the subject for another patch.
75504
75505         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75506         governing whether the rest of this patch is active.  By default,
75507         the macro is disabled and the patch has no effect.
75508         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75509         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75510         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75511         (re_match_2, re_set_registers): Use the new types.
75512         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75513         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75514         New macros.
75515         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75516         (re_string_context_at, bin_tree_t, re_dfastate_t):
75517         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75518         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75519         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75520         (re_string_char_size_at, re_string_wchar_at):
75521         (re_string_elem_size_at):
75522         Use the new types and macros to port to 64-bit hosts.
75523         Use unsigned types for internal values, so that the code
75524         mostly works even for arrays larger than SSIZE_MAX.
75525         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75526         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75527         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75528         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75529         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75530         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75531         (calc_inveclosure, parse_dup_op, build_range_exp):
75532         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75533         (fetch_number, create_token_tree, mark_opt_subexp):
75534         Likewise.
75535         * lib/regex_internal.c (re_string_construct_common,
75536         create_ci_newstate):
75537         (create_cd_newstate, re_string_allocate, re_string_construct):
75538         (re_string_realloc_buffers, build_wcs_upper_buffer):
75539         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75540         (re_string_reconstruct, re_string_peek_byte_case):
75541         (re_string_fetch_byte_case, re_string_context_at):
75542         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75543         (re_node_set_init_copy, re_node_set_add_intersect):
75544         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75545         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75546         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75547         (re_acquire_state, re_acquire_state_context, register_state):
75548         Likewise.
75549         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75550         search_cur_bkref_entry):
75551         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75552         (re_search_internal, re_search_2_stub, re_search_stub)
75553         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75554         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75555         (update_cur_sifted_state, check_dst_limits):
75556         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75557         (check_subexp_limits, sift_states_bkref, merge_state_array):
75558         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75559         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75560         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75561         (expand_bkref_cache, check_node_accept_bytes):
75562         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75563         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75564         (acquire_init_state_context, check_halt_node_context):
75565         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75566         (sift_states_backward, clean_state_log_if_needed):
75567         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75568         (find_recover_state, transit_state_sb, transit_state_mb):
75569         (transit_state_bkref, build_trtable, match_ctx_clean):
75570         Likewise.
75571         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75572         to work around an assumption that REG_MISSING is negative.
75573
75574         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75575         (seek_collating_symbol_entry) [defined _LIBC]:
75576         (lookup_collation_sequence_value) [defined _LIBC]:
75577         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75578         Use prototypes rather than old-style function definitions.
75579         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75580         (transit_state_sb) [0]:
75581         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75582
75583         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75584         rm_eo.
75585
75586         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75587         (optimize_subexps, lower_subexp):
75588         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75589         since the signed shift might overflow.  Use 1u<<31 instead.
75590         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75591         Likewise.
75592         * lib/regexec.c (check_dst_limits_calc_pos_1,
75593         check_subexp_matching_top): Likewise.
75594
75595         * lib/regcomp.c (optimize_subexps, lower_subexp):
75596         Use CHAR_BIT rather than 8, for clarity.
75597         * lib/regexec.c (check_dst_limits_calc_pos_1):
75598         (check_subexp_matching_top): Likewise.
75599         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75600         have to worry about portability issues when shifting it left.
75601         Remove no-longer-needed test for table_size > 0.
75602         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75603         in a word, as the resulting behavior is undefined.
75604         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75605         in one case, a <= should have been an <, and in another case the
75606         whole test was missing.
75607         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75608         the standard name CHAR_BIT.
75609         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75610         this is not true on one's complement and signed-magnitude hosts.
75611
75612         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75613         next_last_offset.
75614         (struct re_dfa_t): Remove unused member states_alloc.
75615         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75616
75617 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75618
75619         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75620         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75621         and large-file glibc and in 32-bit large-file Solaris.
75622
75623 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75624
75625         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75626         lengths fit in regoff_t; this isn't true if regoff_t is the same
75627         width as size_t.
75628         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75629         (= START + RANGE) instead of RANGE.  This avoids overflow
75630         problems when regoff_t is the same width as size_t.
75631         All callers changed.
75632         (re_search_2_stub): Check for overflow when adding the
75633         sizes of the two strings.
75634         (re_search_stub): Check for overflow when adding START
75635         to RANGE; if it occurs, substitute the extreme value.
75636
75637 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75640
75641 2005-08-31  Jim Meyering  <jim@meyering.net>
75642
75643         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75644         a pointer-to-const.
75645         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75646         (register_state): Likewise.
75647         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75648         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75649         (group_nodes_into_DFAstates): Likewise.
75650
75651 2005-08-31  Jim Meyering  <jim@meyering.net>
75652
75653         * check-module: Add a FIXME comment.
75654
75655 2005-08-31  Eric Blake  <ebb9@byu.net>
75656
75657         * modules/unistd-safer (Files): Add unistd--.h.
75658         * modules/stdio-safer (Files): Add stdio--.h.
75659
75660 2005-08-31  Derek Price  <derek@ximbiot.com>
75661
75662         * lib/getdelim.c (getdelim): Return EOF on EOF.
75663         Reported by Larry Jones <lawrence.jones@ugs.com>.
75664
75665 2005-08-31  Bruno Haible  <bruno@clisp.org>
75666
75667         Avoid unnecessary diffs in the generated lib/Makefile.am.
75668         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75669         the generated files.
75670         (func_import): Don't set cmd.
75671
75672 2005-08-31  Bruno Haible  <bruno@clisp.org>
75673
75674         * lib/strstr.c: Include <stddef.h>, for NULL.
75675         * lib/strcasestr.c: Likewise.
75676         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75677
75678 2005-08-31  Bruno Haible  <bruno@clisp.org>
75679
75680         * gnulib-tool: New option --macro-prefix.
75681         (func_import): Use macro_prefix.
75682         (import): Handle option --macro-prefix.
75683
75684 2005-08-31  Bruno Haible  <bruno@clisp.org>
75685
75686         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75687         Also use new variables cached_lgpl, cached_libtool.
75688
75689 2005-08-31  Bruno Haible  <bruno@clisp.org>
75690
75691         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75692         always instantiating them.
75693
75694 2005-08-31  Bruno Haible  <bruno@clisp.org>
75695
75696         * gnulib-tool (func_import): Read the previous cached settings
75697         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75698         earlier added by gnulib but are now dropped. Warn when a gnulib file
75699         overwrites a non-gnulib file.
75700
75701 2005-08-31  Bruno Haible  <bruno@clisp.org>
75702
75703         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75704         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75705         projects that don't keep autogenerated files in CVS. Put into
75706         actioncmd only the specified modules, not the transitive closure.
75707
75708 2005-08-31  Bruno Haible  <bruno@clisp.org>
75709
75710         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75711         Create directories that shall be filled.
75712         (import): Don't look for gl_* macros in configure.ac. Recurse across
75713         all directories containing a gnulib-cache.m4 files, if meaningful.
75714
75715 2005-08-31  Bruno Haible  <bruno@clisp.org>
75716
75717         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75718         (import): Set seen_libtool when we see gl_LIBTOOL.
75719
75720 2005-08-31  Bruno Haible  <bruno@clisp.org>
75721
75722         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75723         declaration macro definitions from generated gnulib.m4.
75724
75725 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75726
75727         * lib/iconvme.h: Add prototype for iconv_alloc.
75728
75729 2005-08-29  Simon Josefsson  <jas@extundo.com>
75730
75731         * lib/iconvme.c: Fix errno.
75732
75733 2005-08-29  Bruno Haible  <bruno@clisp.org>
75734
75735         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75736         that it works when the directory contains spaces.
75737
75738 2005-08-29  Bruno Haible  <bruno@clisp.org>
75739
75740         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75741
75742 2005-08-29  Bruno Haible  <bruno@clisp.org>
75743
75744         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75745         Emit more advice.
75746
75747 2005-08-29  Bruno Haible  <bruno@clisp.org>
75748         and Stepan Kasal  <kasal@ucw.cz>
75749
75750         * check-module: If more parameters are given, check each of them
75751         separately; add more exceptions, as noted by Jim Meyering.
75752         (check_module): New procedure.
75753         (%exempt_header): Now contains all exceptions.
75754
75755 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75756
75757         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75758
75759 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75760
75761         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75762
75763 2005-08-28  Bruno Haible  <bruno@clisp.org>
75764
75765         * m4/gnulib-tool.m4: New file.
75766
75767 2005-08-27  Jim Meyering  <jim@meyering.net>
75768
75769         * modules/unistd-safer (Files): Add pipe-safer.c.
75770         * modules/fcntl-safer (Files): Add creat-safer.c.
75771
75772 2005-08-27  Jim Meyering  <jim@meyering.net>
75773
75774         * m4/stdlib-safer.m4: New file.  From coreutils.
75775         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75776         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75777         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75778         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75779         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75780
75781 2005-08-27  Jim Meyering  <jim@meyering.net>
75782
75783         * lib/fopen-safer.c: Merge minor changes from coreutils.
75784         * lib/dup-safer.c: Likewise.
75785         * lib/fd-safer.c: Likewise.
75786
75787         Merge from coreutils.
75788         * lib/stdio--.h: New file.
75789         * lib/stdlib--.h: New file.
75790         * lib/mkstemp-safer.c: New file.
75791
75792         GNU tar needs these.
75793         * lib/pipe-safer.c: New file.
75794         * lib/creat-safer.c: New file.
75795         * lib/fcntl--.h (creat): Define to creat_safer.
75796         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75797         * lib/unistd--.h (pipe): Define to pipe_safer.
75798         * lib/unistd-safer.h: Declare pipe_safer.
75799
75800 2005-08-26  Simon Josefsson  <jas@extundo.com>
75801
75802         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75803         Haible <bruno@clisp.org>.
75804
75805 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75806
75807         * lib/regex_internal.h: Remove all references to
75808         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75809         or better.
75810         (bitset_not, bitset_merge, bitset_not_merge):
75811         (bitset_mask, re_string_allocate, re_string_construct):
75812         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75813         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75814         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75815         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75816         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75817         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75818         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75819         (re_acquire_state_context):
75820         Remove unnecessary forward decls.
75821         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75822         Put __attribute at function definition,
75823         now that the function decl has been removed.
75824         * lib/regex_internal.c (re_string_peek_byte_case):
75825         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75826         Likewise.
75827
75828 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75829
75830         * m4/regex.m4: Add AC_PREREQ(2.50).
75831         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75832
75833 2005-08-25  Simon Josefsson  <jas@extundo.com>
75834
75835         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75836         __fsetlocking.
75837
75838 2005-08-25  Simon Josefsson  <jas@extundo.com>
75839
75840         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75841         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75842         GLIBC specific code.
75843
75844 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         Make regex safe for g++.  This fixes one real bug (an "err"
75847         that should have been "*err").  g++ problem reported by
75848         Sam Steingold.
75849         * lib/regex_internal.h (re_calloc): New macro, consistent with
75850         re_malloc etc.  All callers of calloc changed to use re_calloc.
75851         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75852         not int.  All callers changed.
75853         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75854         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75855         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75856         (find_recover_state): Change "err" to "*err"; this fixes what
75857         appears to be a real bug.
75858         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75859         versus int.
75860
75861 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75862
75863         * modules/regex (Depends-on): Add malloc, since the code
75864         assumes that !malloc(0) means failure.
75865
75866 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75867
75868         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75869
75870         alloca modernization/simplification for regex.
75871         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75872         needs to be at the start of the file, and can be moved into
75873         regex_internal.h and simplified.
75874         * lib/regex_internal.h: Include <alloca.h>.
75875         (__libc_use_alloca) [!defined _LIBC]: New macro.
75876         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75877         now works outside glibc.
75878
75879 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75880
75881         * config/srclist.txt: Add glibc bugs 1241, 1245.
75882
75883 2005-08-25  Jim Meyering  <jim@meyering.net>
75884
75885         * lib/open-safer.c: Include <config.h>.
75886         Otherwise, we'd lose LARGEFILE support in any file using
75887         e.g. "fcntl--.h"
75888
75889 2005-08-25  Bruno Haible  <bruno@clisp.org>
75890
75891         * m4/minmax.m4: Require autoconf 2.52.
75892         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75893         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75894         alternatives of translit over the alphabet.
75895         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75896
75897 2005-08-24  Simon Josefsson  <jas@extundo.com>
75898
75899         * tests/test-getpass.c: New file.
75900
75901 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75902
75903         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75904         for GNU regex features.
75905
75906 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75909         * lib/regex.h (regerror): Likewise.
75910
75911         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75912         requires this.  (The code never needed it.)
75913
75914         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75915         All uses of recently-renamed identifiers changed to use the new,
75916         POSIX-compliant names.  The code will build and run just fine
75917         without these changes, but it's better to eat our own dog food
75918         and use the standard-conforming names.
75919
75920         * lib/regex.h: Fix a multitude of POSIX name space violations.
75921         These changes have an effect only for programs that define
75922         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75923         do not change anything for programs compiled in the normal way.
75924         Also, there is no effect on the ABI.
75925
75926         (_REGEX_SOURCE): New macro.
75927         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75928         defined and _GNU_SOURCE is not; this fixes a name space violation.
75929
75930         Rename the following macros to obey POSIX requirements.
75931         The old names are still visible as macros if _REGEX_SOURCE is defined.
75932         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75933         RE_BACKSLASH_ESCAPE_IN_LISTS.
75934         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75935         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75936         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75937         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75938         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75939         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75940         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75941         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75942         (REG_INTERVALS): renamed from RE_INTERVALS.
75943         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75944         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75945         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75946         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75947         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75948         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75949         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75950         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75951         RE_UNMATCHED_RIGHT_PAREN_ORD.
75952         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75953         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75954         (REG_DEBUG): renamed from RE_DEBUG.
75955         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75956         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75957         unusual, since we can't clash with the POSIX REG_ICASE.
75958         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75959         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75960         (REG_NO_SUB): renamed from RE_NO_SUB.
75961         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75962         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75963         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75964         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75965         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75966         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75967         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75968         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75969         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75970         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75971         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75972         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75973         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75974         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75975         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75976         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75977         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75978         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75979         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75980         (REG_FIXED): Renamed from REGS_FIXED.
75981         (REG_NREGS): Renamed from RE_NREGS.
75982
75983         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75984         of other REG_* macros, since POSIX says the user is allowed to
75985         #undef these macros selectively.
75986
75987         (reg_errcode_t): Update comment stating what other tables need
75988         to be consistent.
75989
75990         Rename the following enum values to obey POSIX requirements.
75991         The old names are still visible as macros.
75992         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
75993         is not defined, since GNU is supposed to be a superset of POSIX as
75994         much as possible, and since we want reg_errcode_t to be a signed
75995         type for implementation consistency.
75996         (_REG_NOERROR): Renamed from REG_NOERROR.
75997         (_REG_NOMATCH): Renamed from REG_NOMATCH.
75998         (_REG_BADPAT): Renamed from REG_BADPAT.
75999         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76000         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76001         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76002         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76003         (_REG_EBRACK): Renamed from REG_EBRACK.
76004         (_REG_EPAREN): Renamed from REG_EPAREN.
76005         (_REG_EBRACE): Renamed from REG_EBRACE.
76006         (_REG_BADBR): Renamed from REG_BADBR.
76007         (_REG_ERANGE): Renamed from REG_ERANGE.
76008         (_REG_ESPACE): Renamed from REG_ESPACE.
76009         (_REG_BADRPT): Renamed from REG_BADRPT.
76010         (_REG_EEND): Renamed from REG_EEND.
76011         (_REG_ESIZE): Renamed from REG_ESIZE.
76012         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76013         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76014         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76015         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76016         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76017
76018         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76019         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76020         changed.  But support the old name if the new one is not defined
76021         and if _REGEX_SOURCE.
76022
76023         Change the following member names in struct re_pattern_buffer.
76024         The old names are still supported if !_REGEX_SOURCE.
76025         The new names are always supported, regardless of _REGEX_SOURCE.
76026         (re_buffer): Renamed from buffer.
76027         (re_allocated): Renamed from allocated.
76028         (re_used): Renamed from used.
76029         (re_syntax): Renamed from syntax.
76030         (re_fastmap): Renamed from fastmap.
76031         (re_translate): Renamed from translate.
76032         (re_can_be_null): Renamed from can_be_null.
76033         (re_regs_allocated): Renamed from regs_allocated.
76034         (re_fastmap_accurate): Renamed from fastmap_accurate.
76035         (re_no_sub): Renamed from no_sub.
76036         (re_not_bol): Renamed from not_bol.
76037         (re_not_eol): Renamed from not_eol.
76038         (re_newline_anchor): Renamed from newline_anchor.
76039
76040         Change the following member names in struct re_registers.
76041         The old names are still supported if !_REGEX_SOURCE.
76042         The new names are always supported, regardless of _REGEX_SOURCE.
76043         (rm_num_regs): Renamed from num_regs.
76044         (rm_start): Renamed from start.
76045         (rm_end): Renamed from end.
76046
76047         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76048         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76049         Prepend __ to parameter names.
76050
76051         Undo yesterday's changes.
76052
76053 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76056         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76057         lib/regex.c.
76058
76059 2005-08-24  Jim Meyering  <jim@meyering.net>
76060
76061         Sync from coreutils.
76062         * m4/fcntl-safer.m4: New file.
76063
76064         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76065         and object files for this module.
76066
76067 2005-08-24  Jim Meyering  <jim@meyering.net>
76068
76069         Sync from coreutils.
76070         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76071
76072 2005-08-24  Jim Meyering  <jim@meyering.net>
76073
76074         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76075         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76076
76077 2005-08-24  Jim Meyering  <jim@meyering.net>
76078
76079         * modules/fcntl-safer: New module.
76080         * modules/fts (Depends-on): Add fcntl-safer.
76081         * MODULES.html.sh (File descriptor based Input/Output):
76082         Add fcntl-safer.
76083
76084 2005-08-24  Bruno Haible  <bruno@clisp.org>
76085
76086         Support for unit test modules.
76087         * modules/README: Mention tests modules.
76088         * modules/TEMPLATE-TESTS: New file.
76089         * gnulib-tool: New options --extract-tests-module, --with-tests and
76090         --tests-base (unused for the moment).
76091         (testsbase, inctests): New variables.
76092         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76093         (func_verify_module): Exclude TEMPLATE-TESTS.
76094         (func_verify_nontests_module, func_verify_tests_module): New functions.
76095         (func_get_dependencies): Add implicit dependency for tests modules.
76096         (func_get_tests_module): New function.
76097         (func_modules_transitive_closure): When --with-tests was specified,
76098         include the unit tests as well, unless explicitly avoided.
76099         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76100         (func_emit_tests_Makefile_am): New function.
76101         (func_create_testdir): When --with-tests was specified, emit a
76102         tests/ directory.
76103         * MODULES.html.sh (Future developments): Update.
76104
76105 2005-08-24  Bruno Haible  <bruno@clisp.org>
76106
76107         * modules/tls-tests: New file.
76108         * tests/test-tls.c: New file, from GNU gettext.
76109
76110 2005-08-24  Bruno Haible  <bruno@clisp.org>
76111
76112         * modules/lock-tests: New file.
76113         * tests/test-lock.c: New file, from GNU gettext.
76114
76115 2005-08-24  Bruno Haible  <bruno@clisp.org>
76116
76117         * lib/lock.h: Add multiple inclusion guard.
76118         * lib/tls.h: Add multiple inclusion guard.
76119
76120 2005-08-24  Bruno Haible  <bruno@clisp.org>
76121
76122         * gnulib-tool: Add support for the --aux-dir option to
76123         --create-testdir, --create-megatestdir, --test, --megatest.
76124         (func_create_testdir, func_create_megatestdir): Optionally emit a
76125         AC_CONFIG_AUX_DIR directive.
76126         (create-testdir, create-megatestdir, test, megatest): Provide a
76127         default value for $auxdir.
76128
76129 2005-08-24  Bruno Haible  <bruno@clisp.org>
76130
76131         * gnulib-tool (import): Use compound statement instead of subshell
76132         where possible.
76133
76134 2005-08-24  Bruno Haible  <bruno@clisp.org>
76135
76136         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76137
76138 2005-08-24  Bruno Haible  <bruno@clisp.org>
76139
76140         * gnulib-tool (func_version): Update.
76141
76142 2005-08-24  Bruno Haible  <bruno@clisp.org>
76143
76144         * gnulib-tool (func_import, func_create_testdir,
76145         func_create_megatestdir): Quote all autoconf macro arguments.
76146
76147 2005-08-24  Bruno Haible  <bruno@clisp.org>
76148
76149         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76150         option --force, because --force causes the aclocal.m4 of each
76151         subdirectory to be newer than the corresponding config.h.in.
76152
76153 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76154
76155         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76156         All contents moved to gl_REGEX.
76157         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76158         assume that it does.
76159
76160 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76161
76162         * lib/regex.h (REG_NOSYS)
76163         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76164         Define, since POSIX requires it as of 2001.
76165         (_REG_ENOSYS)
76166         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76167         New private symbol, used to keep the enum signed in all cases.
76168         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76169         Youngman in
76170         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76171
76172         * lib/regex_internal.c (re_string_skip_chars, register_state):
76173         (calc_state_hash):
76174         Remove forward decls; no longer needed now that we use prototypes.
76175         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76176         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76177         (clean_state_log_if_needed): Likewise.
76178
76179 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76180
76181         * config/srclist.txt: Add glibc bugs 1231-1233.
76182
76183 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76184
76185         Fix problems reported by Sam Steingold in
76186         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76187         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76188         assumed that reg_errcode_t is a signed type, which is not
76189         necessarily true if _XOPEN_SOURCE is not defined.
76190         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76191         since some compilers warn about it otherwise.
76192
76193 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76194
76195         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76196         (init_word_char, create_initial_state, duplicate_node_closure):
76197         (fetch_token, peek_token_bracket, build_range_exp):
76198         (build_collating_symbol): Remove forward decls; no longer needed
76199         now that we use prototypes.
76200
76201         * lib/regcomp.c:
76202         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76203         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76204         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76205         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76206         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76207         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76208         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76209         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76210         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76211         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76212         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76213         (build_charclass, build_charclass_op, fetch_number, create_tree):
76214         (create_token_tree, mark_opt_subexp, duplicate_tree):
76215         Use prototypes rather than old-style definitions.
76216
76217         * lib/regex_internal.c:
76218         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76219         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76220         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76221         (re_string_reconstruct, re_string_peek_byte_case):
76222         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76223         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76224         (re_node_set_init_copy, re_node_set_add_intersect):
76225         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76226         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76227         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76228         (re_acquire_state, re_acquire_state_context, register_state):
76229         (create_ci_newstate, create_cd_newstate, free_state):
76230         Likewise.
76231         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76232         re_search_2):
76233         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76234         (re_search_internal, prune_impossible_nodes):
76235         (acquire_init_state_context, check_matching, static):
76236         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76237         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76238         (update_regs, sift_states_backward, build_sifted_states):
76239         (clean_state_log_if_needed, merge_state_array):
76240         (update_cur_sifted_state, add_epsilon_src_nodes):
76241         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76242         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76243         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76244         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76245         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76246         (check_arrival, check_arrival_add_next_nodes):
76247         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76248         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76249         (check_node_accept_bytes, check_node_accept, extend_buffers):
76250         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76251         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76252         (sift_ctx_init):
76253         Likewise.
76254
76255         * lib/regex_internal.h:
76256         (re_string_allocate, re_string_construct, re_string_reconstruct):
76257         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76258         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76259         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76260         (re_string_context_at, re_string_peek_byte_case):
76261         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76262         is defined, since we now use prototypes always.
76263
76264         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76265         C89 or better.  All uses removed.
76266
76267 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76268
76269         * config/srclist.txt: Add glibc bugs 1220-1227.
76270
76271 2005-08-20  Jim Meyering  <jim@meyering.net>
76272
76273         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76274         of unused local, dfa.
76275
76276 2005-08-20  Bruno Haible  <bruno@clisp.org>
76277
76278         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76279
76280 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76281
76282         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76283         (re_node_set_insert_last, re_dfa_add_node):
76284         Rename local variables to avoid GCC shadowing warnings.
76285
76286 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76287
76288         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76289         [defined lint]: Suppress bogus uninitialized-variable warnings.
76290
76291         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76292         and let the caller return REG_ESPACE if out of space.  This
76293         removes an uninitialied-variable warning with GCC 4.0.1, and also
76294         avoids taking the address of a local variable.  All callers
76295         changed.
76296
76297 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76298
76299         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76300         $LIBCSRC/posix/regexec.c.
76301         Add glibc bug 1217 for regcomp.c.
76302
76303 2005-08-19  Jim Meyering  <jim@meyering.net>
76304
76305         * lib/regexec.c (proceed_next_node): Redo local variables to
76306         avoid GCC shadowing warnings.
76307
76308 2005-08-18  Bruno Haible  <bruno@clisp.org>
76309
76310         * lib/strstr.c (strstr): Fix return value in multibyte case.
76311         * lib/strcasestr.c (strcasestr): Likewise.
76312
76313 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76316
76317 2005-08-17  Jim Meyering  <jim@meyering.net>
76318
76319         Make the %s format (seconds since the epoch) work for a negative
76320         number and when used with a zero-padded field width, e.g. %015s.
76321
76322         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76323         label so that it precedes the code to set `digits'.  Otherwise,
76324         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76325         print `00-22'.  Now, it prints `-0022', as it should.
76326
76327 2005-08-17  Bruno Haible  <bruno@clisp.org>
76328
76329         * modules/strstr (Files): Add m4/mbrtowc.m4.
76330         (Depends-on): Add mbuiter.
76331
76332 2005-08-17  Bruno Haible  <bruno@clisp.org>
76333
76334         * modules/strcasestr: New file.
76335         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76336         strcasestr.
76337
76338 2005-08-17  Bruno Haible  <bruno@clisp.org>
76339
76340         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76341
76342 2005-08-17  Bruno Haible  <bruno@clisp.org>
76343
76344         * modules/mbuiter: New file.
76345         * MODULES.html.sh (Extended multibyte and wide character utilities):
76346         Add mbuiter.
76347
76348 2005-08-17  Bruno Haible  <bruno@clisp.org>
76349
76350         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76351         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76352
76353 2005-08-17  Bruno Haible  <bruno@clisp.org>
76354
76355         * m4/strcasestr.m4: New file.
76356
76357 2005-08-17  Bruno Haible  <bruno@clisp.org>
76358
76359         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76360         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76361
76362 2005-08-17  Bruno Haible  <bruno@clisp.org>
76363
76364         * lib/strcasestr.h: New file.
76365         * lib/strcasestr.c: New file.
76366
76367 2005-08-17  Bruno Haible  <bruno@clisp.org>
76368
76369         * lib/strcasecmp.c: Use mbuiter.h.
76370
76371 2005-08-17  Bruno Haible  <bruno@clisp.org>
76372
76373         * lib/mbuiter.h: New file.
76374
76375 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76376
76377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76378         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76379         and gl_GETOPT are both invoked via different paths (as happens
76380         with GNU tar CVS because it uses both argp and getopt), the former
76381         wins.
76382
76383 2005-08-16  Bruno Haible  <bruno@clisp.org>
76384
76385         * modules/tls: New file.
76386         * MODULES.html.sh (Multithreading): Add tls.
76387
76388 2005-08-16  Bruno Haible  <bruno@clisp.org>
76389
76390         * modules/strnlen1: New file.
76391         * MODULES.html.sh (String handling): Add strnlen1.
76392
76393 2005-08-16  Bruno Haible  <bruno@clisp.org>
76394
76395         * modules/strcase (Files): Add m4/mbrtowc.m4.
76396         (Depends-on): Add strnlen1, mbchar.
76397
76398 2005-08-16  Bruno Haible  <bruno@clisp.org>
76399
76400         * modules/mbiter: New file.
76401         * MODULES.html.sh (Extended multibyte and wide character utilities):
76402         Add mbiter.
76403
76404 2005-08-16  Bruno Haible  <bruno@clisp.org>
76405
76406         * modules/mbfile: New file.
76407         * MODULES.html.sh (Extended multibyte and wide character utilities):
76408         Add mbfile.
76409
76410 2005-08-16  Bruno Haible  <bruno@clisp.org>
76411
76412         * modules/mbchar: New file.
76413         * MODULES.html.sh (Extended multibyte and wide character utilities):
76414         New section.
76415
76416 2005-08-16  Bruno Haible  <bruno@clisp.org>
76417
76418         * m4/tls.m4: New file, from GNU gettext.
76419
76420 2005-08-16  Bruno Haible  <bruno@clisp.org>
76421
76422         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76423         always.
76424         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76425
76426 2005-08-16  Bruno Haible  <bruno@clisp.org>
76427
76428         * m4/mbiter.m4: New file.
76429
76430 2005-08-16  Bruno Haible  <bruno@clisp.org>
76431
76432         * m4/mbfile.m4: New file.
76433
76434 2005-08-16  Bruno Haible  <bruno@clisp.org>
76435
76436         * m4/mbchar.m4: New file.
76437
76438 2005-08-16  Bruno Haible  <bruno@clisp.org>
76439
76440         * lib/tls.h: New file, from GNU gettext.
76441         * lib/tls.c: New file, from GNU gettext.
76442
76443 2005-08-16  Bruno Haible  <bruno@clisp.org>
76444
76445         * lib/strnlen1.h: New file.
76446         * lib/strnlen1.c: New file.
76447
76448 2005-08-16  Bruno Haible  <bruno@clisp.org>
76449
76450         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76451         (mbi_init): Update.
76452         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76453         NUL byte, not after it.
76454
76455 2005-08-16  Bruno Haible  <bruno@clisp.org>
76456
76457         * lib/strcase.h (strcasecmp): Add note in comments.
76458         * lib/strncasecmp.c: Use code from strcasecmp.c.
76459         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76460         (strcasecmp): Work correctly in multibyte locales.
76461
76462 2005-08-16  Bruno Haible  <bruno@clisp.org>
76463
76464         * lib/mbiter.h: New file.
76465
76466 2005-08-16  Bruno Haible  <bruno@clisp.org>
76467
76468         * lib/mbfile.h: New file.
76469
76470 2005-08-16  Bruno Haible  <bruno@clisp.org>
76471
76472         * lib/mbchar.h: New file.
76473         * lib/mbchar.c: New file.
76474
76475 2005-08-16  Bruno Haible  <bruno@clisp.org>
76476
76477         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76478         the valid ones. Makes the comparison operations transitive:
76479         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76480         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76481
76482 2005-08-15  Simon Josefsson  <jas@extundo.com>
76483
76484         * modules/ssize_t (License): Change to 'unlimited'.
76485
76486         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76487
76488 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76489
76490         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76491         Add comments for each pending glibc patch.
76492
76493 2005-08-15  Bruno Haible  <bruno@clisp.org>
76494
76495         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76496         __cplusplus is defined.
76497
76498 2005-08-14  Jim Meyering  <jim@meyering.net>
76499
76500         Sync from coreutils.
76501
76502         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76503         Use the hash-table-based cycle-detection code not just when
76504         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76505         Reported by James Youngman in
76506         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76507         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76508         FTS_TIGHT_CYCLE_CHECK.
76509         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76510         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76511         once again.
76512         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76513         * lib/fts.c (fd_safer): Remove decl.
76514         Include fcntl--.h rather than unistd-safer.h
76515         (fts_safe_changedir): Don't call fd_safer; no longer needed
76516         now that we include fcntl--.h.
76517
76518 2005-08-12  Simon Josefsson  <jas@extundo.com>
76519
76520         * modules/getndelim2: Use ssize_t module.
76521         * modules/getnline: Likewise.
76522         * modules/safe-read: Likewise.
76523         * modules/xreadlink: Likewise.
76524
76525         * modules/ssize_t: New file.
76526
76527 2005-08-12  Simon Josefsson  <jas@extundo.com>
76528
76529         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76530
76531 2005-08-12  Simon Josefsson  <jas@extundo.com>
76532
76533         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76534         ssize_t.
76535
76536 2005-08-12  Simon Josefsson  <jas@extundo.com>
76537
76538         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76539         readline, getdelim and check_version.
76540         (Support for systems lacking ISO C 99: Sizes of integer types):
76541         Add size_max.
76542
76543 2005-08-12  Bruno Haible  <bruno@clisp.org>
76544
76545         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76546
76547 2005-08-11  Simon Josefsson  <jas@extundo.com>
76548
76549         * modules/readline: New file.
76550
76551         * modules/strnlen (Files): Add strnlen.h.
76552
76553 2005-08-11  Simon Josefsson  <jas@extundo.com>
76554
76555         * m4/readline.m4: New file.
76556
76557 2005-08-11  Simon Josefsson  <jas@extundo.com>
76558
76559         * lib/readline.h, readline.c: New file.
76560
76561 2005-08-11  Simon Josefsson  <jas@extundo.com>
76562
76563         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76564         gl_AVOID.
76565
76566 2005-08-11  Bruno Haible  <bruno@clisp.org>
76567
76568         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76569
76570 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76571
76572         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76573
76574 2005-08-10  Simon Josefsson  <jas@extundo.com>
76575
76576         * tests/test-iconvme.c: New file.
76577
76578 2005-08-10  Simon Josefsson  <jas@extundo.com>
76579
76580         * m4/strnlen.m4: New file.
76581
76582         * m4/strndup.m4: Don't check for strnlen declaration, done in
76583         strnlen.m4.
76584
76585 2005-08-10  Simon Josefsson  <jas@extundo.com>
76586
76587         * lib/strndup.c: Use strnlen.h.
76588
76589         * lib/strnlen.h: New file.
76590
76591 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76592
76593         * README: Typos.
76594
76595 2005-08-02  Simon Josefsson  <jas@extundo.com>
76596
76597         * modules/readline: New file.
76598
76599 2005-08-02  Simon Josefsson  <jas@extundo.com>
76600
76601         * modules/getdelim: New file.
76602
76603         * modules/getline: Rewrite, don't use getndelim2.
76604
76605 2005-08-02  Simon Josefsson  <jas@extundo.com>
76606
76607         * m4/getline.m4: Separate out getdelim stuff into separate module.
76608
76609         * m4/getdelim.m4: New file.
76610
76611 2005-08-02  Simon Josefsson  <jas@extundo.com>
76612
76613         * lib/getline.h, getline.c: Rewrite.
76614
76615         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76616
76617 2005-07-31  Bruno Haible  <bruno@clisp.org>
76618
76619         * lib/lock.h (gl_lock_initializer): New macro.
76620         (gl_lock_define_initialized): Use it.
76621         (gl_rwlock_initializer): New macro.
76622         (gl_rwlock_define_initialized): Use it.
76623         (gl_recursive_lock_initializer): New macro.
76624         (gl_recursive_lock_define_initialized): Use it.
76625
76626 2005-07-30  Karl Berry  <karl@gnu.org>
76627
76628         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76629         Report from Ben Pfaff, regarding getopt.
76630
76631 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76632
76633         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76634         normal way.
76635         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76636         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76637         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76638         (gl_GETOPT): Use the new macros.  Most of the implementation
76639         is moved to the new macros.  This is for programs like Emacs
76640         that don't want all the functionality of gl_GETOPT.
76641
76642 2005-07-26  Bruno Haible  <bruno@clisp.org>
76643
76644         * m4/lock.m4: Update from GNU gettext.
76645
76646 2005-07-26  Bruno Haible  <bruno@clisp.org>
76647
76648         * lib/lock.h: Update from GNU gettext.
76649         * lib/lock.c: Update from GNU gettext.
76650
76651 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76652
76653         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76654         obsolescent AC_TRY_RUN.  Include the default includes files, for
76655         'exit'.
76656
76657 2005-07-24  Bruno Haible  <bruno@clisp.org>
76658
76659         * modules/visibility: New file.
76660         * MODULES.html.sh (Misc): Add visibility.
76661
76662 2005-07-24  Bruno Haible  <bruno@clisp.org>
76663
76664         * m4/visibility.m4: New file.
76665
76666 2005-07-24  Bruno Haible  <bruno@clisp.org>
76667
76668         * doc/visibility.texi: New file.
76669
76670 2005-07-22  Bruno Haible  <bruno@clisp.org>
76671
76672         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76673         $(ALLOCA_H), redundant through BUILT_SOURCES.
76674         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76675         redundant through BUILT_SOURCES.
76676         * modules/byteswap (Makefile.am): Remove explicit dependency on
76677         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76678         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76679         $(FNMATCH_H), redundant through BUILT_SOURCES.
76680         * modules/getopt (Makefile.am): Remove explicit dependency on
76681         $(GETOPT_H), redundant through BUILT_SOURCES.
76682         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76683         redundant through BUILT_SOURCES.
76684         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76685         redundant through BUILT_SOURCES.
76686         * modules/stdbool (Makefile.am): Remove explicit dependency on
76687         $(STDBOOL_H), redundant through BUILT_SOURCES.
76688         * modules/stdint (Makefile.am): Remove explicit dependency on
76689         $(STDINT_H), redundant through BUILT_SOURCES.
76690         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76691         Remove explicit dependency on $(SYSEXITS_H).
76692         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76693
76694 2005-07-18  Simon Josefsson  <jas@extundo.com>
76695
76696         * lib/check-version.c (check_version): Accept identical versions too.
76697
76698 2005-07-18  Bruno Haible  <bruno@clisp.org>
76699
76700         * modules/lock: New file.
76701         * MODULES.html.sh (Multithreading): New section.
76702
76703 2005-07-18  Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/lock.m4: New file, from GNU gettext.
76706
76707 2005-07-18  Bruno Haible  <bruno@clisp.org>
76708
76709         * lib/lock.h: New file, from GNU gettext.
76710         * lib/lock.c: New file, from GNU gettext.
76711
76712 2005-07-18  Bruno Haible  <bruno@clisp.org>
76713
76714         * lib/lock.h (gl_once_t): New type.
76715         (gl_once_define, gl_once): New macros.
76716         * lib/lock.c (fresh_once): New variable.
76717         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76718         functions.
76719
76720 2005-07-16  Simon Josefsson  <jas@extundo.com>
76721
76722         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76723         workaround, suggested by Bruno.
76724
76725 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * modules/xalloc (Depends-on): Add xalloc-die.
76728         * modules/xvasprintf (Depends-on): Add xalloc-die.
76729
76730 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76733         with a minor change.
76734
76735 2005-07-15  Bruno Haible  <bruno@clisp.org>
76736
76737         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76738         When using lib/poll.c, define poll as rpl_poll.
76739
76740 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76741
76742         * modules/argp (Depends-on): Remove unlocked-io.
76743
76744 2005-07-14  Derek Price  <derek@ximbiot.com>
76745
76746         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76747         for glob symlink bug.
76748
76749 2005-07-14  Bruno Haible  <bruno@clisp.org>
76750
76751         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76752         Instead, test for *_unlocked function declarations directly.
76753
76754 2005-07-11  Simon Josefsson  <jas@extundo.com>
76755
76756         * modules/size_max: New file.
76757
76758         * modules/xsize: Depend on size_max module for size_max.m4.
76759
76760 2005-07-11  Simon Josefsson  <jas@extundo.com>
76761
76762         * lib/size_max.h: New file.
76763
76764 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76765
76766         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76767         copyright symbol and the year.
76768         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76769         (version_etc_va): Use parameterized copyright notice.
76770         Reword to conform to the current GNU coding standards.
76771
76772 2005-07-11  Karl Berry  <karl@gnu.org>
76773
76774         * doc/gnulib.texi (Quoting): new node.
76775         (Initial import): more info, from Patrice.
76776
76777 2005-07-11  Bruno Haible  <bruno@clisp.org>
76778
76779         * gnulib-tool (func_usage): Document option --avoid.
76780         (Command line options): Handle --avoid.
76781         (func_acceptable): New function.
76782         (func_modules_transitive_closure): Use it.
76783
76784 2005-07-11  Bruno Haible  <bruno@clisp.org>
76785
76786         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76787         Reported by Jim Meyering.
76788
76789 2005-07-10  Bruno Haible  <bruno@clisp.org>
76790
76791         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76792         Needed when size_t is smaller than 'unsigned int'.
76793         Reported by Paul Eggert.
76794
76795 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76796
76797         * modules/argp (Depends-on): Add unlocked-io
76798
76799 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76800
76801         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76802         block of defines.
76803
76804 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76807         fix now.
76808
76809 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76810         and Paul Eggert  <eggert@cs.ucla.edu>
76811
76812         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76813         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76814
76815 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         * modules/regex (Files): Add lib/regex_internal.c,
76818         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76819         (Depends-on): Add extensions.
76820         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76821
76822 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76823
76824         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76825         pathconf.
76826         * m4/same.m4 (gl_SAME): Likewise.
76827         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76828
76829         * m4/regex.m4: Adjust to new libc regex implementation.
76830         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76831         all the .c and .h parts of (the new) regex.
76832         Quote the m4 stuff better.
76833         Check for RE_ICASE bug of old gnulib.
76834         Check for REG_STARTEND of recent libc.
76835         Rename local variables from jm_* to gl_*.
76836         Quote operand of "test -f".
76837         Say "recent enough" version of libc, not "version 2".
76838         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76839         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76840         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76841         Remove check for btowc, isascii.
76842         Require AM_LANGINFO_CODESET.
76843
76844 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76845
76846         * lib/regex.c, regex.h: Sync from libc.
76847         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76848         * lib/regexec.c:
76849         New files, synced from libc, except that regex_internal.h
76850         currently has a small porting fix.
76851
76852 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76855         regex_internal.c, regexec.c.
76856         Add regex_internal.h too, but as a comment, since the libc version
76857         is currently broken in gnulib mode.
76858
76859 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         Support programs like Emacs that use gnulib but not gettext.
76862         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76863         * modules/gettext-h: New file.
76864         * modules/gettext (Files): Remove lib/gettext.h.
76865         (Depends-on): Add gettext-h.
76866         (Makefile.am): Remove lib_SOURCES.
76867         * modules/argmatch, modules/c-stack, modules/closeout:
76868         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76869         * modules/execute, modules/file-type, modules/getaddrinfo:
76870         * modules/getopt, modules/human, modules/javacomp:
76871         * modules/javaexec, modules/mkdir-p, modules/obstack:
76872         * modules/openat, modules/pagealign_alloc, modules/pipe:
76873         * modules/quotearg, modules/regex, modules/rpmatch:
76874         * modules/unicodeio, modules/userspec, modules/version-etc:
76875         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76876         * modules/xsetenv:
76877         Depend on gettext-h, not gettext.
76878
76879 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76880
76881         * gnulib-tool (func_import): Add support for 'public domain' license.
76882         * modules/alloca, modules/atexit, modules/memmove:
76883         Now public domain, not GPL.
76884         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76885         * modules/realloc, modules/strerror, modules/strtod:
76886         Now LGPL, not GPL.
76887
76888 2005-07-05  Bruno Haible  <bruno@clisp.org>
76889
76890         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76891         autoconf CVS. Needed for mingw.
76892
76893 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         Remove the dependency of the strftime module on the tzset module.
76896         * modules/strftime (Depends-on): Remove dependency on tzset.
76897
76898 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         Remove the dependency of the strftime module on the tzset module.
76901         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76902         gl_FUNC_TZSET_CLOBBER.
76903
76904 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         Remove the dependency of the strftime module on the tzset module.
76907         * lib/strftime.c (my_strftime)
76908         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76909         Copy the input structure, to work around some of the bug with
76910         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76911         Solaris releases, you should also use the tzset module, but we won't
76912         require it as a dependency any more since we don't want LGPLed code
76913         to depend on GPLed code.
76914
76915 2005-07-02  Jim Meyering  <jim@meyering.net>
76916
76917         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76918         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76919         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76920         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76921
76922 2005-07-02  Jim Meyering  <jim@meyering.net>
76923
76924         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76925
76926 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76927
76928         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76929         declares only 'struct timespec;' (!).
76930
76931 2005-07-01  Jim Meyering  <jim@meyering.net>
76932
76933         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76934         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76935         * lib/save-cwd.c, tempname.c:
76936         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76937         and don't include <sys/file.h>).
76938
76939 2005-06-29  Jim Meyering  <jim@meyering.net>
76940
76941         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76942         type name.  Use the variable name instead.
76943         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76944         Likewise.
76945
76946 2005-06-28  Simon Josefsson  <jas@extundo.com>
76947
76948         * modules/check-version (Files): Add check-version.m4.
76949
76950 2005-06-28  Simon Josefsson  <jas@extundo.com>
76951
76952         * m4/check-version.m4: New file, suggested by Jim Meyering
76953         <jim@meyering.net>.
76954
76955 2005-06-28  Simon Josefsson  <jas@extundo.com>
76956
76957         * lib/check-version.h, lib/check-version.c: New files.
76958
76959 2005-06-28  Simon Josefsson  <jas@extundo.com>
76960
76961         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76962         collision with global variable.  Better indentation.  Don't
76963         increment buffer pointer beyond buffer end.  Based on comments
76964         from Paul Eggert <eggert@cs.ucla.edu>.
76965
76966         * lib/base64.h: Indent.
76967
76968 2005-06-28  Simon Josefsson  <jas@extundo.com>
76969
76970         * doc/gnulib.texi (Library version handling): New section.
76971
76972 2005-06-28  Jim Meyering  <jim@meyering.net>
76973
76974         * check-module (find_included_lib_files): Hard-code another
76975         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76976         but modules/fts-lgpl (correctly) does not list those files.
76977
76978         * modules/canonicalize (Files): Add lib/pathmax.h.
76979
76980 2005-06-25  Simon Josefsson  <jas@extundo.com>
76981
76982         * modules/check-version: New file.
76983
76984 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76985
76986         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76987         initializer of struct addrinfo, as an indication that we don't
76988         care how many members the structure has.
76989
76990 2005-06-24  Derek Price  <derek@ximbiot.com>
76991         and Bruno Haible  <bruno@clisp.org>
76992
76993         Remove stat module & update lstat.
76994         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
76995         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
76996         * m4/stat.m4: Remove this file.
76997
76998 2005-06-24  Derek Price  <derek@ximbiot.com>
76999         and Bruno Haible  <bruno@clisp.org>
77000
77001         Remove stat module & update lstat.
77002         * lib/stat.c: Remove this file...
77003         (slash_aware_lstat): ...moving this content and its support...
77004         * lib/lstat.c (rpl_lstat): ...into here.
77005         * lib/lstat.h: New file.
77006
77007 2005-06-24  Derek Price  <derek@ximbiot.com>
77008         and Bruno Haible  <bruno@clisp.org>
77009
77010         Remove stat module & update lstat.
77011         * config/srclist.txt (libc sources): Remove stat.
77012
77013 2005-06-24  Derek Price  <derek@ximbiot.com>
77014         and Bruno Haible  <bruno@clisp.org>
77015
77016         Remove stat module & update lstat.
77017         * MODULES.html.sh (stat): Remove.
77018         * MODULES.html: Regenerated.
77019         * modules/lstat (Description): Correct function name.
77020         (Files): Add "lstat.h".
77021         (Depends-on): Remove stat, add xalloc, stat-macros.
77022         * modules/stat: Remove this file.
77023         (Include): Add "lstat.h", remove <sys/stat.h>.
77024
77025 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77026
77027         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77028         (ranged_convert): Don't save conversion in a temporary struct.
77029         This causes a warning with GCC 4.0.0, and anyway in the typical
77030         case it's not worth the extra 100 bytes or so of code.
77031         (ranged_convert, __mktime_internal): When calling a function via a
77032         pointer P, use P () rather than (*P) (), as we now assume C89 or
77033         better.
77034
77035 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77036
77037         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77038         "who -r" failed to give output.  Problem reported by Tim Waugh.
77039
77040         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77041         (xcalloc): Use it to avoid needless tests.
77042         Problem reported by Jim Meyering.
77043
77044 2005-06-20  Derek Price  <derek@ximbiot.com>
77045
77046         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77047         unnecessary for Autoconfs > 2.59c.
77048
77049 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77050
77051         * lib/argp.h (__option_is_short): Check upper limit of
77052         __key. Isprint() requires its argument to have the value
77053         of an unsigned char or EOF.
77054
77055 2005-06-16  Jim Meyering  <jim@meyering.net>
77056
77057         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77058         when either N or S is zero.
77059
77060 2005-06-16  Derek Price  <derek@ximbiot.com>
77061
77062         * m4/bison.m4: Declare YACC & YFLAGS precious.
77063
77064 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77065
77066         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77067         multibyte string or pattern, fall back on unibyte matching.
77068         Problem reported by James Youngman.
77069
77070 2005-06-08  Bruno Haible  <bruno@clisp.org>
77071
77072         * modules/csharpcomp: New file.
77073         * MODULES.html.sh (C#): Add csharpcomp.
77074
77075 2005-06-08  Bruno Haible  <bruno@clisp.org>
77076
77077         * m4/csharpcomp.m4: New file, from GNU gettext.
77078
77079 2005-06-08  Bruno Haible  <bruno@clisp.org>
77080
77081         * lib/csharpcomp.h: New file, from GNU gettext.
77082         * lib/csharpcomp.c: New file, from GNU gettext.
77083         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77084
77085 2005-06-08  Bruno Haible  <bruno@clisp.org>
77086
77087         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77088         warning on mingw.
77089
77090 2005-06-07  Derek Price  <derek@ximbiot.com>
77091
77092         Sync from CVS.
77093         * lib/glob_.h: Indent nested #ifdef.
77094
77095 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77096
77097         Sync from coreutils.
77098         Use "file name" when talking about file names, instead of "filename"
77099         or "path", as per the GNU coding standards.
77100         * lib/mkdir-p.c: Renamed from makepath.c.
77101         (make_dir_parents): Renamed from make_path.  All callers changed.
77102         * lib/mkdir-p.h: Likewise.  All includers changed.
77103         * lib/filenamecat.c: Renamed from path-concat.c.
77104         (file_name_concat): Renamed from path_concat.  All callers changed.
77105         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77106         * lib/filenamecat.h: Likewise.  All includers changed.
77107         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77108         in comments or local variable names.
77109         * lib/basename.c: Likewise.
77110         * lib/canonicalize.c, canonicalize.h: Likewise.
77111         * lib/dirname.c, dirname.h: Likewise.
77112         * lib/euidaccess.c: Likewise.
77113         * lib/exclude.c: Likewise
77114         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77115         * lib/fsusage.c, fsuage.h: Likewise.
77116         * lib/fts.c, fts_.h: Likewise.
77117         * lib/getcwd.c: Likewise.
77118         * lib/getloadavg.c: Likewise.
77119         * lib/mkstemp.c: Likewise.
77120         * lib/mountlist.c, mountlist.h: Likewise.
77121         * lib/openat.c, openat.h: Likewise.
77122         * lib/readlink-stub.c: Likewise.
77123         * lib/readutmp.c, readutmp.h: Likewise.
77124         * lib/rename.c: Likewise.
77125         * lib/rmdir.c: Likewise.
77126         * lib/same.c: Likewise.
77127         * lib/savedir.c: Likewise.
77128         * lib/stripslash.c: Likewise.
77129         * lib/tempname.c: Likewise.
77130         * lib/xreadlink.c: Likewise.
77131         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77132         All uses changed.
77133         * lib/exclude.h: Likewise.
77134
77135         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77136         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77137         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77138         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77139         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77140         files have been getting away with it for years (MORE/BSD 4.3
77141         is extinct now).
77142         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77143         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77144
77145         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77146         Define to 256, not 255, as per modern POSIX.
77147
77148 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77149
77150         Sync from coreutils.
77151         Use "file name" when talking about file names, instead of "filename"
77152         or "path", as per the GNU coding standards.
77153         * MODULES.html.sh: mkdir-p renamed from makepath.
77154         filenamecat renamed from path-concat.
77155         * modules/filenamecat: Renamed from modules/path-concat.
77156         (Files): filenamecat.h and filenamecat.c renamed from
77157         path-concat.h and path-concat.c.
77158         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77159         (Include): filenamecat.h, not path-concat.h.
77160         * modules/mkdir-p: Renamed from modules/makepath.
77161         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77162         makepath.c.
77163         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77164         (Include): mkdir-p.h, not makepath.h.
77165
77166 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         Sync from coreutils.
77169         * m4/mkdir-p.m4: Renamed from makepath.m4.
77170         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77171         Rename files from makepath.c to mkdir-p.c, and from
77172         makepath.h to mkdir-p.h.
77173         * m4/filenamecat.m4: Renamed from path-concat.m4.
77174         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77175         Rename files from path-concat.c to filenamecat.c,
77176         and from path-concat.h to filenamecat.h.
77177         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77178         "file name" in local variables or comments.
77179         * m4/rename.m4: Likewise.
77180
77181 2005-06-01  Bruno Haible  <bruno@clisp.org>
77182
77183         * modules/csharpexec: New file.
77184         * MODULES.html.sh (C#): New section.
77185
77186 2005-06-01  Bruno Haible  <bruno@clisp.org>
77187
77188         * m4/csharp.m4: New file, from GNU gettext.
77189         * m4/csharpexec.m4: New file, from GNU gettext.
77190
77191 2005-06-01  Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/csharpexec.h: New file, from GNU gettext.
77194         * lib/csharpexec.c: New file, from GNU gettext.
77195         * lib/csharpexec.sh.in: New file, from GNU gettext.
77196
77197 2005-05-31  Derek Price  <derek@ximbiot.com>
77198             Paul Eggert  <eggert@cs.ucla.edu>
77199
77200         Sync from cvs.
77201         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77202
77203 2005-05-31  Derek Price  <derek@ximbiot.com>
77204             Paul Eggert  <eggert@cs.ucla.edu>
77205
77206         Sync from cvs.
77207         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77208
77209 2005-05-29  Derek Price  <derek@ximbiot.com>
77210
77211         * config/srclist.txt (glob_.h, glob.c): Add these files.
77212
77213 2005-05-29  Derek Price  <derek@ximbiot.com>
77214
77215         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77216         * modules/glob: New file.
77217         * modules/getlogin_r: Add link to POSIX spec in description.
77218
77219 2005-05-29  Derek Price  <derek@ximbiot.com>
77220             Paul Eggert  <eggert@cs.ucla.edu>
77221
77222         * m4/glob.m4: New file.
77223
77224 2005-05-29  Derek Price  <derek@ximbiot.com>
77225             Paul Eggert  <eggert@cs.ucla.edu>
77226
77227         * lib/glob_.h, lib/glob.c: New files.
77228
77229 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77230
77231         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77232         * modules/fts-lgpl (Depends-on): Remove gettext.
77233
77234 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77235
77236         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77237         and don't require gt_INTTYPES_PRI.
77238
77239 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77240
77241         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77242
77243         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77244         the configuration hassle isn't worth it.
77245         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77246         (LONGEST_MODIFIER, PRIuMAX): Remove.
77247
77248 2005-05-27  Bruno Haible  <bruno@clisp.org>
77249
77250         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77251
77252 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77253
77254         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77255         _POSIX_PTHREAD_SEMANTICS for Solaris.
77256
77257 2005-05-25  Derek Price  <derek@ximbiot.com>
77258
77259         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77260
77261 2005-05-25  Derek Price  <derek@ximbiot.com>
77262             Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77265         * lib/getlogin_r.c, getlogin_r.h: New files.
77266
77267 2005-05-25  Bruno Haible  <bruno@clisp.org>
77268             Derek Price  <derek@ximbiot.com>
77269
77270         * lib/getlogin_r.h: Simplify API documentation.
77271
77272 2005-05-23  Derek Price  <derek@ximbiot.com>
77273
77274         * modules/minmax (Files): Add m4/minmax.m4.
77275         (configure.ac): Add gl_MINMAX.
77276
77277 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77278
77279         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77280         so that unistd-safer.h (GPL'ed code) need not be included.
77281
77282 2005-05-22  Bruno Haible  <bruno@clisp.org>
77283
77284         * m4/minmax.m4: New file.
77285         Based on a patch by Derek Price <derek@ximbiot.com>.
77286
77287 2005-05-22  Bruno Haible  <bruno@clisp.org>
77288
77289         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77290         (INT64_MIN): Fix definition.
77291         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77292
77293         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77294         NEED_SIGNED_INT_TYPES.
77295
77296         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77297         HAVE_SYSTEM_INTTYPES.
77298
77299 2005-05-22  Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77302         Also include <sys/param.h> if it defines MIN, MAX.
77303         Based on a patch by Derek Price <derek@ximbiot.com>.
77304
77305 2005-05-21  Jim Meyering  <jim@meyering.net>
77306
77307         * modules/fts (Files): Add m4/inttypes-pri.m4.
77308         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77309
77310 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         New fts module.
77313         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77314         (setup_dir, free_dir): New functions.
77315         (enter_dir, leave_dir): Define trivial
77316         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77317         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77318         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77319         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77320         Move to fts-cycle.c.
77321         (fts_open): Use setup_dir.
77322         (fts_close): Use free_dir.
77323         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77324         This adds a label and some gotos, but the alternatives were messier.
77325         Check for memory allocation failure when entering a dir.
77326         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77327         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77328         (FTS): New member fts_cycle, that is a union that contains the
77329         old active_dir_ht and cycle_state.  All uses changed to mention
77330         fts_cycle.ht and fts_cycle.state.
77331         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77332         fts.c, with the following changes:
77333         (setup_dir, free_dir): New functions.
77334         (enter_dir): Now returns bool.  Return true if successful, false
77335         if memory exhausted.  All callers changed.
77336         Do not bother partly cleaning up on
77337         memory allocation failure; that is free_dir's job.
77338         However, free ad if hash_insert fails, to avoid memory leak.
77339         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77340         fts->fts_options to see which union member to use.
77341
77342 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77343
77344         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77345         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77346
77347 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77348
77349         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77350
77351 2005-05-20  Jim Meyering  <jim@meyering.net>
77352
77353         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77354         Now a macro, to pacify GCC.
77355
77356 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77357
77358         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77359         of -1.
77360
77361 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77362
77363         * lib/chown.c (rpl_chown): Return -1 on failure.
77364
77365 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77366
77367         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77368         Don't check for stddef.h.
77369         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77370         don't use its results.
77371         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77372         since we include them unconditionally.  Don't require
77373         AM_STDBOOL_H, since stdbool is a prerequisite.
77374         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77375         since we assume C89 or better.
77376         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77377         as we don't use their results.
77378         Don't check for fchdir, memmove, memset, strrchr, as we use
77379         them unconditionally.
77380         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77381         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77382
77383 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77386         Include <stddef.h> unconditionally, since we assume C89 now.
77387         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77388         * lib/fts.c: Include fts_.h first, to check interface.
77389         Do not include intprops.h; no longer needed.
77390         Include cycle-check.h and hash.h, since fts_.h no longer does.
77391         Remove unnecessary casts of closedir to void.
77392         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77393         decide whether to decrement nlinks.
77394         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77395         (FTS): Use struct hash_table * instead of Hash_table, so that
77396         we no longer need to include hash.h here.
77397
77398 2005-05-18  Jim Meyering  <jim@meyering.net>
77399
77400         * modules/dirfd (License): Change to LGPL.  Most of the code
77401         is already in the public domain.
77402
77403 2005-05-18  Jim Meyering  <jim@meyering.net>
77404
77405         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77406         Reported by Yoann Vandoorselaere.
77407
77408 2005-05-17  Jim Meyering  <jim@meyering.net>
77409
77410         * m4/fts.m4: New file, from coreutils.
77411
77412 2005-05-17  Jim Meyering  <jim@meyering.net>
77413
77414         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77415
77416 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77417
77418         Sync from coreutils.
77419         * m4/unlinkdir.m4: New file.
77420
77421 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         Sync from coreutils.
77424         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77425         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77426         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77427         White space changes only.
77428         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77429         special.
77430         * lib/yesno.c: Include getline.h, not ctype.h.
77431         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77432         Use getline to remove arbitrary restriction on response length.
77433
77434 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77435
77436         * config/srclist-update: Spell out "Street" in FSF postal
77437         mail address; this is the style the FSF seems to prefer.
77438
77439         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77440         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77441         this updates FSF postal mail address.
77442
77443         Sync from coreutils.
77444         * modules/unlinkdir: New file.
77445         * modules/yesno (Depends-on): Add getline.
77446         * MODULES.html.sh (File system functions): Add unlinkdir.
77447
77448 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77451         lib/strsep.h:
77452         Change the initial comment to refer to GPL, not LGPL.
77453         gnulib-tool will change it to LGPL as needed.
77454
77455         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77456         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77457         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77458         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77459         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77460         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77461         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77462         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77463         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77464         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77465         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77466         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77467         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77468         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77469         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77470         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77471         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77472         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77473         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77474         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77475         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77476         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77477         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77478         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77479         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77480         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77481         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77482         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77483         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77484         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77485         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77486         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77487         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77488         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77489         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77490         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77491         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77492         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77493         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77494         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77495         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77496         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77497         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77498         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77499         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77500         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77501         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77502         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77503         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77504         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77505         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77506         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77507         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77508         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77509         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77510         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77511         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77512         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77513         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77514         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77515         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77516         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77517         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77518         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77519         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77520         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77521         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77522         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77523         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77524         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77525         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77526         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77527         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77528         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77529         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77530         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77531         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77532         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77533         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77534         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77535         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77536         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77537         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77538         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77539         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77540         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77541         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77542         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77543         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77544         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77545         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77546         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77547         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77548         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77549         lib/yesno.c, lib/yesno.h:
77550         Update FSF postal mail address.
77551
77552 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77555         tests/test-memmem.c, tests/test-stpncpy.c:
77556         Update FSF postal mail address.
77557
77558 2005-05-13  Bruno Haible  <bruno@clisp.org>
77559
77560         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77561         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77562         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77563         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77564         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77565         Add support for 64-bit integers in the MSVC compiler.
77566
77567 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77568
77569         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77570
77571 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77572
77573         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77574
77575 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77576
77577         * doc/getdate.texi (General date syntax): Don't say that date
77578         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77579         Problem reported by Nic Ferrier.
77580
77581 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77582
77583         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77584         specified in ai_socktype. Fix invalid ai_protocol
77585         check. ai_protocol is usually set to 0 or depending on
77586         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77587         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77588         ai_socktype / ai_protocol in the returned addrinfo structure.
77589
77590 2005-05-10  Simon Josefsson  <jas@extundo.com>
77591
77592         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77593         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77594
77595 2005-05-10  Karl Berry  <karl@gnu.org>
77596
77597         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77598         (from http://www.gnu.org/licenses).
77599         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77600         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77601         fdl.texi suffices.
77602
77603 2005-05-10  Karl Berry  <karl@gnu.org>
77604
77605         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77606         (COPYING.DOC): remove.
77607
77608         * config/srclist-update: new FSF address.
77609
77610 2005-05-10  Derek Price  <derek@ximbiot.com>
77611
77612         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77613         possible.
77614
77615 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77616             Bruno Haible  <bruno@clisp.org>
77617
77618         * modules/inet_ntop: New file.
77619         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77620         inet_ntop.
77621
77622 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77623             Bruno Haible  <bruno@clisp.org>
77624
77625         * m4/inet_ntop.m4: New file.
77626
77627 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77628             Bruno Haible  <bruno@clisp.org>
77629
77630         * lib/inet_ntop.h: New file.
77631         * lib/inet_ntop.c: New file, from glibc with modifications.
77632
77633 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77634
77635         * modules/time_r (License): Change to LGPL.
77636         * modules/extensions (License): Change to LGPL.  Actually,
77637         the license is more permissive than that, but currently gnulib-tool
77638         doesn't know how to handle more-permissive licenses.
77639
77640         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77641         Problem reported by Dave Love.
77642
77643 2005-05-08  Jim Meyering  <jim@meyering.net>
77644
77645         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77646         blank.
77647
77648 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77649
77650         * modules/argmatch (Depends-on): Add stdbool.
77651         * modules/backupfile (Depends-on): Likewise.
77652         * modules/chdir-long (Depends-on): Likewise.
77653         * modules/closeout (Depends-on): Likewise.
77654         * modules/cycle-check (Depends-on): Likewise.
77655         * modules/dirname (Depends-on): Likewise.
77656         * modules/fnmatch (Depends-on): Likewise.
77657         * modules/fsusage (Depends-on): Likewise.
77658         * modules/fwriteerror (Depends-on): Likewise.
77659         * modules/getcwd (Depends-on): Likewise.
77660         * modules/getloadavg (Depends-on): Likewise.
77661         * modules/hard-locale (Depends-on): Likewise.
77662         * modules/makepath (Depends-on): Likewise.
77663         * modules/mountlist (Depends-on): Likewise.
77664         * modules/nanosleep (Depends-on): Likewise.
77665         * modules/posixtm (Depends-on): Likewise.
77666         * modules/quotearg (Depends-on): Likewise.
77667         * modules/readtokens (Depends-on): Likewise.
77668         * modules/readtokens0 (Depends-on): Likewise.
77669         * modules/readutmp (Depends-on): Likewise.
77670         * modules/save-cwd (Depends-on): Likewise.
77671         * modules/strftime (Depends-on): Likewise.
77672         * modules/userspec (Depends-on): Likewise.
77673         * modules/utimecmp (Depends-on): Likewise.
77674         * modules/xgetcwd (Depends-on): Likewise.
77675         * modules/xnanosleep (Depends-on): Likewise.
77676         * modules/xstrtod (Depends-on): Likewise.
77677         * modules/yesno (Depends-on): Likewise.
77678
77679 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77680
77681         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77682         needless checks.
77683
77684 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         Merge from coreutils.  Among other things,
77687         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77688         * lib/fd-safer.c: New file.
77689         * lib/fcntl-safer.h, open-safer.c: Remove.
77690         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77691         * lib/dup-safer.c: Include unistd-safer.h first.
77692         Don't include errno.h.
77693         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77694         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77695         * lib/file-type.c: Rely on file-type.h change.
77696         * lib/getloadavg.c: Include unistd-safer.h.
77697         (getloadavg): Use safer open.
77698         * lib/getusershell.c: Include "stdio-safer.h".
77699         (getusershell): Use safer fopen.
77700         * lib/long-options.c (long_options): Use NULL rather than 0.
77701         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77702         'free'.
77703         * lib/modechange.c: Likewise.
77704         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77705         (MODE_DONE): New constant.
77706         (struct mode_change): Remove 'next' member.
77707         (make_node_op_equals): New function; like the old one of the
77708         same name, except it allocates an array.
77709         (mode_compile, mode_create_from_ref): Use it.
77710         (mode_compile): Allocate result as an array, not a linked list.
77711         Parse octal string ourself, so that we catch mistakes like "+0".
77712         (mode_adjust): Arg is an array, not a linked list.
77713         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77714         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77715         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77716         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77717         Remove.  This is now stat-macros.h's job.
77718         (talloc): Remove.  All callers replaced by xalloc, so that
77719         our invokers don't have to worry about reporting memory failures.
77720         (make_node_op_equals): Remove.
77721         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77722         New constants.
77723         (struct mode_change): Moved here from modechange.h.
77724         (mode_append_entry): Remove.
77725         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77726         apps to have incorrect behavior.  Use simpler algorithm for head
77727         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77728         Detect more invalid usages rather than having somewhat-random behavior.
77729         Don't insert an "a=" action, as that leads to incorrect behavior.
77730         (mode_compile, mode_create_from_ref): Return NULL on error instead
77731         of an enum, since now there's only one way to have an error.  All
77732         callers changed.
77733         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77734         at the correct time.  Simplify calculation of "+u" and its ilk.
77735         Don't mishandle "+X".
77736         (mode_free): Remove "register" and localize decls.
77737         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77738         (struct mode_change): Move to modechange.c; callers don't
77739         need to see this stuff.
77740         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77741         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77742         (mode_change, mode_adjust): Reflect the new signatures noted above.
77743         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77744         that might redefine system include files.
77745         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77746         (my_usleep): Use NULL rather than (void *) 0.
77747         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77748         Use siginterrupt to specify that system calls should be interrupted.
77749         (rpl_nanosleep): Move initialization of suspended closer to call of
77750         my_usleep.
77751         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77752         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77753         (desirable_utmp_entry): New function.
77754         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77755         using x2nrealloc, to simplify logic.
77756         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77757         size calculation.  Do not assume utmp file is a regular file.
77758         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77759         (READ_UTMP_CHECK_PIDS): New constant.
77760         * lib/save-cwd.c: Include unistd-safer.h.
77761         (save_cwd): Use fd_safer.
77762         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77763         [!_LIBC] Include "stat-macros.h" instead.
77764         * lib/unistd-safer.h (fd_safer): New decl.
77765
77766 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77767
77768         * modules/getloadavg (Depends-on): Add unistd-safer.
77769         * modules/getusershell (Depends-on): Add stdio-safer.
77770         * modules/lstat (Depends-on): Remove xalloc.
77771         * modules/mkstemp (Depends-on): Add stat-macros.
77772         * modules/modechange (Depends-on): Remove xstrtol.
77773         Add stat-macros, xalloc.
77774         * modules/save-cwd (Depends-on): Add unistd-safer.
77775         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77776         * modules/unistd-safer (Files): Add lib/fd-safer.c
77777         (Makefile.am): Remove lib_SOURCES.
77778
77779         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77780         Remove fcntl-safer; unistd-safer supersedes it.
77781
77782 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77785         AC_HEADER_STAT.
77786         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77787         (gl_PREREQ_CHOWN): Remove.
77788         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77789         it.  Don't require AC_HEADER_STAT.
77790         (gl_PREREQ_LSTAT): Remove.
77791         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77792         Don't require AC_HEADER_STAT.
77793         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77794         (gl_PREREQ_RMDIR): Remove.
77795         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77796         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77797         the stat-macros module a prerequisite.
77798         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77799         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77800         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77801         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77802         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77803         variable names.
77804         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77805         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77806         variable prefixes.
77807         * m4/fcntl-safer.m4: Remove.
77808         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77809         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77810         Invoke gl_PREREQ_FD_SAFER.
77811         (gl_PREREQ_FD_SAFER): New macro.
77812         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77813         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77814         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77815         Remove duplicate call to AC_LIBOBJ(readutmp).
77816         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77817
77818         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77819         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77820
77821 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77822
77823         * MODULES.html.sh (Misc): Add byteswap.
77824
77825 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77826
77827         * modules/getcwd (Depends-on): Add extensions.
77828         * modules/openat (Depends-on): Likewise.
77829
77830 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77831
77832         * modules/byteswap: New file.
77833
77834 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77835
77836         * m4/byteswap.m4: New file.
77837
77838 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77839
77840         * lib/byteswap_.h: New file.
77841
77842 2005-04-25  Karl Berry  <karl@gnu.org>
77843
77844         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77845
77846 2005-04-25  Albert Chin  <china@thewrittenword.com>
77847
77848         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77849         Toolkit C bug.
77850
77851 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77852
77853         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77854         (func_ln_if_changed): Remove forcibly for no error message
77855         in case file does not exist.
77856
77857 2005-04-19  Simon Josefsson  <jas@extundo.com>
77858
77859         * gnulib-tool (Options): Make --symlink mean --symbolic.
77860
77861 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77862
77863         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77864
77865 2005-04-16  Simon Josefsson  <jas@extundo.com>
77866
77867         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77868
77869 2005-04-15  Simon Josefsson  <jas@extundo.com>
77870
77871         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77872
77873 2005-04-15  Simon Josefsson  <jas@extundo.com>
77874
77875         * gnulib-tool: Rename --symlink to --symbolic.
77876
77877 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77878
77879         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77880         symbolic links to files instead of copying/moving.  Add --aux-dir,
77881         specifying directory relative --dir where auxiliary build tools
77882         are placed.
77883
77884 2005-04-14  Bruno Haible  <bruno@clisp.org>
77885
77886         * modules/allocsa (License): Change to LGPL.
77887         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77888
77889 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77890
77891         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77892         that "UTC +1 second" continues to work.  Problem reported
77893         by Dmitry V. Levin.
77894         (relunit_snumber): New rule.
77895         (relunit): Use it.
77896
77897 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * lib/getdate.y (universal_time_zone_table): New constant.
77900         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77901         universal_time_zone_table.
77902         (lookup_zone): Prefer universal_time_zone_table to
77903         local_time_zone_table, so that "GMT" time stamps are allowed in
77904         London during the summer.  Problem reported by Ian Abbott.
77905
77906 2005-04-12  Jim Meyering  <jim@meyering.net>
77907
77908         * lib/human.c (humblock): Set *options even when returning due to
77909         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77910         warning from gcc-4.
77911
77912 2005-04-09  Jim Meyering  <jim@meyering.net>
77913
77914         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77915         -Wuninitialized: initialize tm0.tm_year.
77916
77917 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77918
77919         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77920         count, since there's no maximum.  All uses changed.
77921         Add member dsts_seen.
77922         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77923         not being INT_MAX.
77924         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77925         Use pc_rels_seen to decide whther a date is absolute.
77926
77927         * lib/getdate.y (number): Don't overwrite year.
77928         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77929         check.
77930
77931 2005-04-02  Simon Josefsson  <jas@extundo.com>
77932
77933         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77934         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77935
77936 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77937
77938         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77939         where no absolute path name can be longer than PATH_MAX.
77940
77941 2005-03-27  Jim Meyering  <jim@meyering.net>
77942
77943         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77944
77945 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77948         "one's complement" -> "ones' complement" in comment, as per Knuth.
77949         "value of type" -> "type or expression" in comment.
77950         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77951
77952 2005-03-26  Jim Meyering  <jim@meyering.net>
77953
77954         Comment nits.
77955         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77956         Correct typos: s/or/of/.
77957
77958 2005-03-26  Jim Meyering  <jim@meyering.net>
77959
77960         * modules/check-include-files: Move to ../ and rename to...
77961         * check-module: ...this.
77962
77963 2005-03-25  Jim Meyering  <jim@meyering.net>
77964
77965         * modules/xvasprintf (Files): Add xalloc.h.
77966
77967 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77968
77969         * modules/gettext (Files): config/config.rpath ->
77970         build-aux/config.rpath
77971         * modules/iconv (Files): Likewise.
77972         Problem reported by Oskar Liljeblad.
77973
77974 2005-03-23  Jim Meyering  <jim@meyering.net>
77975
77976         * modules/check-include-files: New script to check for
77977         missing dependencies, multiple includes, etc.
77978
77979         * modules/c-strtold (Depends-on): Add xalloc.
77980         * modules/c-strtod (Depends-on): Add xalloc.
77981         * modules/hash (Depends-on): Add xalloc.
77982         (Files): Remove lib/xalloc.h.
77983
77984         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77985         * modules/userspec (Files): Add lib/inttostr.h.
77986
77987 2005-03-23  Jim Meyering  <jim@meyering.net>
77988
77989         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
77990
77991 2005-03-22  Jim Meyering  <jim@meyering.net>
77992
77993         * modules/stat-macros: New module.
77994         * modules/canonicalize, modules/euidaccess, modules/file-type,
77995         * modules/filemode, modules/lchown, modules/makepath,
77996         * modules/rmdir, modules/stat: Depend on new stat-macros module
77997         rather than listing lib/stat-macros.h manually.
77998         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
77999
78000 2005-03-22  Jim Meyering  <jim@meyering.net>
78001
78002         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78003
78004 2005-03-22  Bruno Haible  <bruno@clisp.org>
78005
78006         * config/srclist.txt: Replace target directory 'config' with
78007         'build-aux'.
78008         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78009         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78010         ../build-aux/.
78011
78012 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78013
78014         * modules/chdir-long (Depends-on): Add mempcpy.
78015
78016         * modules/acl, modules/backupfile, modules/c-strtod,
78017         modules/c-strtold, modules/canon-host, modules/canonicalize,
78018         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78019         modules/exclude, modules/exitfail, modules/file-type,
78020         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78021         modules/getdate, modules/getline, modules/getpagesize,
78022         modules/getpass, modules/getugroups, modules/group-member,
78023         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78024         modules/inttostr, modules/long-options, modules/makepath,
78025         modules/md5, modules/memcasecmp, modules/memcoll,
78026         modules/modechange, modules/mountlist, modules/path-concat,
78027         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78028         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78029         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78030         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78031         modules/strftime, modules/strndup, modules/strverscmp,
78032         modules/timespec, modules/unlocked-io, modules/userspec,
78033         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78034         modules/yesno:
78035         Remove lib_SOURCES line from Makefile.am section, as this is now
78036         done automatically by the corresponding Autoconf macro.
78037
78038 2005-03-21  Jim Meyering  <jim@meyering.net>
78039
78040         Changes imported from coreutils.
78041
78042         * lib/cycle-check.c: Don't include xalloc.h.
78043
78044         * lib/path-concat.c: Don't include assert.h.
78045         (path_concat): Remove assertion that would have triggered
78046         for ABASE starting with more than one slash.
78047         Reported by Andreas Schwab.
78048
78049         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78050         properly when ABASE is an absolute file name.
78051         Correct the description of this function.
78052         Include <assert.h>.
78053         Add an assertion and a test driver.
78054         This fixes a bug introduced on 2004-07-02.
78055         Andreas Schwab reported the resulting failure of cp --parents:
78056         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78057
78058 2005-03-21  Jim Meyering  <jim@meyering.net>
78059
78060         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78061         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78062
78063 2005-03-21  Jim Meyering  <jim@meyering.net>
78064         and  Paul Eggert  <eggert@cs.ucla.edu>
78065
78066         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78067         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78068         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78069         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78070         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78071         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78072         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78073         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78074         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78075         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78076         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78077         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78078         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78079         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78080         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78081         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78082         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78083         for these modules.
78084
78085 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78086
78087         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78088         (which shouldn't happen), generate nothing instead of returning 0
78089         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78090
78091 2005-03-16  Bruno Haible  <bruno@clisp.org>
78092
78093         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78094         HAVE_LONGLONG_64BIT.
78095
78096 2005-03-16  Bruno Haible  <bruno@clisp.org>
78097
78098         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78099         HAVE_LONGLONG_64BIT.
78100
78101 2005-03-16  Bruno Haible  <bruno@clisp.org>
78102
78103         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78104         HAVE_LONGLONG_64BIT.
78105
78106 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78107
78108         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78109         reliably distinguish strftime failure from empty output on POSIX
78110         hosts.
78111
78112 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78115         (iconv_string): Don't guess a size-zero buffer, as that might cause
78116         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78117         result would be 'too large', where 'too large' is (heuristically)
78118         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78119         overflow concerns.  This will prevent some unwanted malloc failures
78120         when the inputs are very large.
78121
78122 2005-03-15  Karl Berry  <karl@gnu.org>
78123
78124         * config/srclist.txt (config.rpath): from gettext.
78125         * config/config.rpath: update.
78126
78127 2005-03-15  Bruno Haible  <bruno@clisp.org>
78128
78129         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78130         to 'negate'.
78131
78132         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78133         variable.
78134
78135         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78136         results.
78137
78138 2005-03-14  Simon Josefsson  <jas@extundo.com>
78139
78140         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78141         <fx@gnu.org>.
78142
78143 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78144
78145         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78146         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78147         intprops.h.
78148         * lib/strtol.c: Likewise.
78149
78150 2005-03-14  Jim Meyering  <jim@meyering.net>
78151
78152         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78153         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78154         to be nonzero so that we (and caller) can detect the difference
78155         between a valid zero-length expansion and an error return, even
78156         when the underlying strftime fails before writing anything into
78157         that location.
78158
78159 2005-03-14  Bruno Haible  <bruno@clisp.org>
78160
78161         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78162         Update from GNU gettext 0.14.3.
78163
78164 2005-03-10  Jim Meyering  <jim@meyering.net>
78165
78166         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78167
78168 2005-03-10  Jim Meyering  <jim@meyering.net>
78169
78170         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78171         so that this module works on systems without fchdir.
78172
78173 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78174
78175         Factor int-properties macros into a single file, except for
78176         glibc-related files.
78177         * lib/intprops.h: New file.
78178         * lib/getloadavg.c: Include it instead of limits.h.
78179         (INT_STRLEN_BOUND): Remove.
78180         * lib/human.c: Include intprops.h.
78181         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78182         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78183         302/1000.
78184         * lib/inttostr.h: Include intprops.h instead of limits.h.
78185         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78186         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78187         for consistency with intprops.h.
78188         (time_t_is_integer, twos_complement_arithmetic): Use them.
78189         * lib/sig2str.h: Include <signal.h>, intprops.h.
78190         (INT_STRLEN_BOUND): Remove.
78191         * lib/strftime.c (TYPE_SIGNED): Remove.
78192         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78193         * lib/strtol.c: Adjust comments to match intprops.h.
78194         * lib/userspec.c: Include intprops.h.
78195         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78196         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78197         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78198         instead of rolling our own expressions.
78199         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78200
78201         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78202         instead of int.
78203         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78204         the right thing even if adding 1900 would overflow.  Similarly
78205         for tm_mon + 1 and tm_yday + 1.
78206         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78207         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78208         (DO_SIGNED_NUMBER): New macro.
78209         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78210
78211 2005-03-07  Bruno Haible  <bruno@clisp.org>
78212
78213         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78214
78215 2005-03-07  Bruno Haible  <bruno@clisp.org>
78216
78217         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78218
78219 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78220
78221         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78222         (func_import): Only replace files via --import when they have actually
78223         changed.
78224
78225 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78226
78227         * m4/mmap-anon.m4: New file.
78228         * m4/pagealign_alloc.m4: New file.
78229
78230 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78231             Bruno Haible  <bruno@clisp.org>
78232
78233         * modules/pagealign_alloc: New file.
78234         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78235
78236 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78237             Bruno Haible  <bruno@clisp.org>
78238
78239         * lib/pagealign_alloc.h: New file.
78240         * lib/pagealign_alloc.c: New file.
78241
78242 2005-03-03  Bruno Haible  <bruno@clisp.org>
78243
78244         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78245         Use an all-permissive copyright notice, recommended by RMS.
78246
78247 2005-03-02  Bruno Haible  <bruno@clisp.org>
78248
78249         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78250         of AIX, the replacement has to be done only after <string.h> is
78251         included, therefore not in config.h. stpncpy.h does the replacement,
78252         and stpncpy.c uses it.
78253
78254 2005-03-02  Bruno Haible  <bruno@clisp.org>
78255
78256         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78257         stpncpy.c uses it.
78258
78259 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78260
78261         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78262         The workaround isn't strictly needed for POSIX conformance, and
78263         it's too much of a pain to configure and maintain.  We'll ask
78264         people to fix their kernels instead.
78265         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78266         (NANOSLEEP_BUG_WORKAROUND): Remove.
78267         (xnanosleep): Remove the workaround.
78268
78269 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78270
78271         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78272         Reported by Derek Price.
78273         (Include): Add "timespec.h".
78274
78275         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78276
78277 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78278
78279         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78280         to detect nanosleep bug.
78281
78282 2005-03-01  Bruno Haible  <bruno@clisp.org>
78283
78284         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78285
78286 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78287
78288         * modules/gethrxtime: New file.
78289         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78290         (Depends-on): Add gethrxtime.
78291         (configure.ac): Add gl_XNANOSLEEP.
78292         (Makefile.am): Remove lib_SOURCES line.
78293
78294 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78297         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78298
78299 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78302         * lib/timespec.h (gettime): Return void, since it always
78303         succeeds now.  All uses changed.
78304         * lib/gettime.c (gettime): Likewise.
78305         [HAVE_NANOTIME]: Prefer nanotime.
78306         Assume gettimeofday succeeds, as POSIX requires.
78307         Assime time () succeeds, since other code already does.
78308         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78309         (timespec_subtract): Remove.
78310         (NANOSLEEP_BUG_WORKAROUND): New constant.
78311         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78312         things considerably.  Use it only on GNU/Linux hosts, since the
78313         workaround shouldn't be needed elsewhere.
78314
78315 2005-02-24  Bruno Haible  <bruno@clisp.org>
78316
78317         * modules/gettext (Files): Add m4/glibc2.m4.
78318
78319 2005-02-24  Bruno Haible  <bruno@clisp.org>
78320
78321         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78322         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78323         * m4/progtest.m4:
78324         Update from GNU gettext 0.14.2.
78325         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78326
78327 2005-02-24  Bruno Haible  <bruno@clisp.org>
78328
78329         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78330         * lib/config.charset: Update from GNU gettext 0.14.2.
78331
78332 2005-02-24  Bruno Haible  <bruno@clisp.org>
78333
78334         * lib/gettext.h: Update from GNU gettext 0.14.2.
78335
78336 2005-02-23  Simon Josefsson  <jas@extundo.com>
78337
78338         * m4/iconvme.m4: New file.
78339
78340 2005-02-23  Jim Meyering  <jim@meyering.net>
78341
78342         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78343         change.
78344         Thanks to Bruno Haible for catching it.
78345
78346 2005-02-22  Simon Josefsson  <jas@extundo.com>
78347
78348         * modules/iconvme: New file.
78349
78350         * MODULES.html.sh: Add iconvme.
78351
78352 2005-02-22  Simon Josefsson  <jas@extundo.com>
78353
78354         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78355
78356 2005-02-22  Simon Josefsson  <jas@extundo.com>
78357
78358         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78359
78360 2005-02-22  Jim Meyering  <jim@meyering.net>
78361
78362         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78363         s/ifndef/ifdef/.
78364
78365 2005-02-20  Neil Conway  <neilc@samurai.com>
78366
78367         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78368         returned by OSX/Darwin if the specified buffer is not large
78369         enough for the hostname.
78370
78371 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78372
78373         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78374         pass it to _help, otherwise the latter coredumps trying to
78375         dereference state.root_argp.
78376
78377 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78378
78379         * modules/chdir-long (Depends-on): Add memrchr.
78380         * modules/memrchr (Files): Add lib/memrchr.h.
78381         (Include): "memrchr.h".
78382
78383 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78384
78385         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78386
78387 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78388
78389         * lib/memrchr.h: New file.
78390         * lib/chdir-long.c: Include it.
78391         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78392         Don't bother including stddef.h.
78393
78394 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78397         inclusion.
78398         Include <sys/types.h>, for dev_t.
78399         (ME_DUMMY, ME_REMOTE): Move from here....
78400         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78401         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78402         Dmitry V. Levin.
78403         Include mountlist.h first, to test the interface.
78404
78405 2005-01-29  Bruno Haible  <bruno@clisp.org>
78406
78407         * lib/progname.c (program_name): Initialize.
78408         Needed when linking statically on MacOS X.
78409
78410 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78411
78412         Sync from coreutils.
78413         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78414         (Depends-on): Add c-strtod.
78415         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78416
78417 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78418
78419         Sync from coreutils.
78420         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78421
78422         Remove files that are specific to coreutils.
78423         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78424
78425 2005-01-28  Bruno Haible  <bruno@clisp.org>
78426
78427         * modules/javacomp: New file.
78428         * MODULES.html.sh (Java): Add javacomp.
78429
78430 2005-01-28  Bruno Haible  <bruno@clisp.org>
78431
78432         * m4/javacomp.m4: New file, from GNU gettext.
78433
78434 2005-01-28  Bruno Haible  <bruno@clisp.org>
78435
78436         * lib/javacomp.sh.in: New file, from GNU gettext.
78437         * lib/javacomp.h: New file, from GNU gettext.
78438         * lib/javacomp.c: New file, from GNU gettext.
78439
78440 2005-01-26  Simon Josefsson  <jas@extundo.com>
78441
78442         * lib/gai_strerror.c: Use GPL in header.
78443
78444 2005-01-26  Bruno Haible  <bruno@clisp.org>
78445
78446         * modules/javaexec: New file.
78447         * MODULES.html.sh (Java): Add javaexec.
78448
78449 2005-01-26  Bruno Haible  <bruno@clisp.org>
78450
78451         * m4/javaexec.m4: New file, from GNU gettext.
78452
78453 2005-01-26  Bruno Haible  <bruno@clisp.org>
78454
78455         * lib/javaexec.sh.in: New file, from GNU gettext.
78456         * lib/javaexec.h: New file, from GNU gettext.
78457         * lib/javaexec.c: New file, from GNU gettext.
78458
78459 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78460
78461         * modules/lchown (Depends-on): Remove lchown.h
78462
78463 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78464
78465         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78466         must be defined if the header file was not found, in order
78467         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78468
78469 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78470
78471         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78472         initializers for struct pentry_state.
78473         (__argp_error): Check return value of __asprintf
78474         (__argp_failure): Translate error message
78475
78476         * lib/argp-parse.c: Removed braces around the expansion of N_()
78477
78478 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78479
78480         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78481         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78482         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78483         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78484         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78485         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78486         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78487         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78488         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78489         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78490         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78491         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78492         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78493         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78494         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78495         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78496         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78497         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78498         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78499         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78500         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78501         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78502         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78503         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78504         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78505         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78506         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78507         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78508         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78509         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78510         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78511         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78512         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78513         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78514         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78515         Use an all-permissive copyright notice, recommended by RMS.
78516
78517 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         * modules/chdir-long (Depends-on): Remove mempcpy.
78520
78521 2005-01-21  Jim Meyering  <jim@meyering.net>
78522
78523         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78524         same value as for Solaris 9.
78525
78526         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78527         component length.  This included changing the parameter to be
78528         of type `char *' rather than `char const *'.
78529         * lib/chdir-long.h (chdir_long): Update prototype.
78530
78531         * lib/openat.c (fdopendir, fstatat): New functions.
78532         * lib/openat.h: Include headers required for use of DIR and struct
78533         stat.
78534         [AT_SYMLINK_NOFOLLOW]: Define.
78535         (fdopendir, fstatat): Add prototypes.
78536
78537 2005-01-21  Bruno Haible  <bruno@clisp.org>
78538
78539         * modules/classpath: New file.
78540         * MODULES.html.sh (Java): Add classpath.
78541
78542 2005-01-21  Bruno Haible  <bruno@clisp.org>
78543
78544         * lib/classpath.h: New file, from GNU gettext.
78545         * lib/classpath.c: New file, from GNU gettext.
78546
78547 2005-01-20  Simon Josefsson  <jas@extundo.com>
78548
78549         * modules/version-etc-fsf: New file.
78550
78551 2005-01-20  Simon Josefsson  <jas@extundo.com>
78552
78553         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78554         * lib/version-etc.c: Remove version_etc_copyright.
78555         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78556         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78557
78558 2005-01-20  Simon Josefsson  <jas@extundo.com>
78559
78560         * lib/base64.h (isbase64): Add.
78561
78562         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78563         using a unsigned prototype, don't inline.
78564         (base64_decode): Use it.
78565
78566 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78567
78568         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78569         it.
78570
78571 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78572
78573         * lib/save-cwd.c (save_cwd): Remove code to support the case
78574         where fchdir is missing or flaky.
78575
78576 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78577
78578         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78579
78580 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78583         AC_LIBSOURCES now does this.
78584         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78585         with new ullong_max module.
78586
78587 2005-01-19  Bruno Haible  <bruno@clisp.org>
78588
78589         * modules/sh-quote: New file.
78590         * MODULES.html.sh (Executing programs): Add sh-quote.
78591
78592 2005-01-19  Bruno Haible  <bruno@clisp.org>
78593
78594         * lib/sh-quote.h: New file, from GNU gettext.
78595         * lib/sh-quote.c: New file, from GNU gettext.
78596
78597 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78598
78599         Merge from coreutils.
78600         * m4/ullong_max.m4: New file.
78601         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78602         (gl_MACROS): Assume localeconv exists.
78603
78604 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         Merge changes from coreutils, as described below in several
78607         changelogs dated today.
78608
78609         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78610         (O_DIRECTORY): Remove; not needed here, since "." must be
78611         a directory.  All uses removed.
78612         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78613         universal on Suns, and we also need to test for IRIX.
78614         Revamp code to use 'if' rather than '#if'.
78615         Avoid unnecessary comparison of cwd->desc to 0.
78616
78617         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78618         for known valid error numbers rather than observed invalid ones.
78619
78620 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78621
78622         * modules/ullong_max: New file.
78623
78624         * modules/chdir-long, modules/openat: New files.
78625         * modules/save-cwd (Depends-on): Depend on chdir-long.
78626         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78627
78628 2005-01-18  Jim Meyering  <jim@meyering.net>
78629
78630         Merge from coreutils.
78631         * m4/chdir-long.m4, m4/openat.m4: New files.
78632         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78633         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78634         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78635         is sane and DOES follow symlinks.  Besides, testing 20 different
78636         systems found no broken chown implementations.
78637         Prompted by a change in rsync's copy of this macro.
78638         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78639
78640         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78641
78642         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78643         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78644         NULL-means-set-to-current-time semantics.
78645         Remove temporary file immediately, rather than waiting
78646         for configure's at-exit trap code to do it.
78647
78648 2005-01-18  Jim Meyering  <jim@meyering.net>
78649
78650         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78651
78652         * lib/utimens.c (futimens): Account for the fact that futimes
78653         can also fail with errno == ENOSYS or errno == ENOENT.
78654         Patch from Dmitry V. Levin.
78655
78656         Change the name of the robust chdir function from chdir to chdir_long.
78657         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78658         (restore_cwd): Use chdir_long, not chdir.
78659         * lib/chdir-long.c: Renamed from chdir.c.
78660         * lib/chdir-long.h: Renamed from chdir.h.
78661         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78662         Hurd.
78663
78664 2005-01-18  Bruno Haible  <bruno@clisp.org>
78665
78666         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78667         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78668         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78669         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78670         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78671         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78672         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78673         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78674         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78675         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78676         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78677         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78678         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78679         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78680         Use an all-permissive copyright notice, recommended by RMS.
78681
78682 2005-01-18  Bob Proulx  <bob@proulx.com>
78683
78684         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78685         simplify offsetof() macro construct to avoid compile failure with
78686         native HP-UX 11.0 ANSI C compiler.
78687
78688 2005-01-17  Bruno Haible  <bruno@clisp.org>
78689
78690         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78691         redundant because stpncpy.m4 takes care of it.
78692
78693 2005-01-17  Bruno Haible  <bruno@clisp.org>
78694
78695         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78696
78697 2005-01-17  Bruno Haible  <bruno@clisp.org>
78698
78699         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78700         used.
78701
78702 2005-01-17  Bruno Haible  <bruno@clisp.org>
78703
78704         * lib/fwriteerror.h (fwriteerror): Change specification to include
78705         fclose.
78706         * lib/fwriteerror.c: Include <stdbool.h>.
78707         (fwriteerror): At the end, close the file stream. Record whether
78708         stdout was already closed.
78709
78710 2005-01-17  Bruno Haible  <bruno@clisp.org>
78711
78712         * lib/execute.c (environ): Declare if needed.
78713         * lib/pipe.c (environ): Likewise.
78714         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78715
78716 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78717
78718         * modules/argp: Depend on vsnprintf
78719
78720 2005-01-10  Jim Meyering  <jim@meyering.net>
78721
78722         * modules/closeout (Depends-on): Add atexit.
78723
78724 2005-01-06  Bruno Haible  <bruno@clisp.org>
78725
78726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78727
78728 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78729
78730         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78731         definitions to be after all include files, to avoid collisions.
78732         Problem reported by Bob Proulx.
78733
78734 2005-01-04  Jim Meyering  <jim@meyering.net>
78735
78736         Changes imported from coreutils.
78737         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78738         as the mkstemp template, use a temporary directory and an
78739         8.3-friendly template to avoid trouble on systems like DJGPP.
78740         Reported by Juan M. Guerrero via Stepan Kasal.
78741         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78742         close. Remove the temporary directory right away, rather than waiting
78743         for configure's at-exit trap code to do it.
78744         Suggestion from Stepan Kasal.
78745
78746 2005-01-01  Simon Josefsson  <jas@extundo.com>
78747
78748         * gnulib-tool: Print #include directives when --import'ing.
78749
78750 2004-12-28  Simon Josefsson  <jas@extundo.com>
78751
78752         * tests/test-base64.c: Include required header files.  Remove
78753         unused variables.
78754
78755 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78756
78757         * modules/error (Depends-on): Remove gettext.
78758
78759 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78762         not needed.  This removes a dependency on the gettext module.
78763         [defined _LIBC]: Do not include <libintl.h>; not needed.
78764
78765 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78766
78767         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78768         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78769
78770 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78771
78772         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78773         HAVE_DECL_STRTOLD.
78774
78775 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78776
78777         * modules/getdate (Depends-on): Remove alloca-opt.
78778
78779 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78780
78781         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78782
78783 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         * lib/argp-parse.c: Include <stddef.h>.
78786         (alignof, alignto): New macros.
78787         (parser_init): Don't assume that void * is aligned sufficiently
78788         for struct option.
78789
78790         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78791         need to extend the stack.
78792         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78793         large.
78794
78795 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78796
78797         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78798
78799 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78802         (2004-10-24) change.  Apparently this was a false alarm.
78803
78804         * modules/getdate: Depend on alloca-opt, not alloca.
78805
78806 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78807
78808         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78809         Remove now-obsolete comment about AIX.
78810         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78811         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78812         (YYMAXDEPTH): New macro.
78813
78814 2004-12-18  Simon Josefsson  <jas@extundo.com>
78815
78816         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78817
78818 2004-12-18  Bruno Haible  <bruno@clisp.org>
78819
78820         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78821
78822 2004-12-18  Bruno Haible  <bruno@clisp.org>
78823
78824         * lib/fatal-signal.c (fatal_signals): Make non-const.
78825         (init_fatal_signals): New function.
78826         (uninstall_handlers, install_handlers): Ignore signals that were set to
78827         SIG_IGN.
78828         (at_fatal_signal): Call init_fatal_signals.
78829         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78830         SIG_IGN.
78831         Reported by Paul Eggert.
78832
78833 2004-12-18  Bruno Haible  <bruno@clisp.org>
78834
78835         * doc/alloca.texi: New file.
78836         * doc/alloca-opt.texi: New file.
78837
78838 2004-12-17  Jim Meyering  <jim@meyering.net>
78839
78840         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78841         Otherwise, install-sh could exit with improper exit status when
78842         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78843
78844 2004-12-16  Simon Josefsson  <jas@extundo.com>
78845
78846         * tests/test-base64.c: Add license.
78847
78848 2004-12-15  Stepan Kasal  <address@hidden>
78849
78850         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78851
78852 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78853
78854         * modules/getcwd (Files): Add m4/d-ino.m4.
78855         Suggested by Mark D. Baushke.
78856
78857 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78858
78859         * lib/getdate.y (textint): New member "negative".
78860         (time_zone_hhmm): New function.
78861         Expect 14 shift-reduce conflicts, not 13.
78862         (o_colon_minutes): New rule.
78863         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78864         (yylex): Set the "negative" member of signed numbers.
78865
78866 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * doc/getdate.texi (Time of day items, Time zone items):
78869         Describe new formats +00:00, UTC+00:00.
78870
78871 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78874         spurious "-l"s.  Problem reported by Stepan Kasal.
78875
78876 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78877
78878         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78879         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78880
78881 2004-12-04  Simon Josefsson  <jas@extundo.com>
78882
78883         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78884         Vandoorselaere <yoann@prelude-ids.org>.
78885
78886 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78887
78888         Changes imported from coreutils.
78889         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78890         exist.
78891         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78892
78893 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78894
78895         Changes imported from coreutils.
78896         * lib/hard-locale.c: Assume <locale.h> exists.
78897         Include "strdup.h".
78898         (GLIBC_VERSION): New macro.
78899         (hard_locale): Assume setlocale exists.
78900         Rewrite to avoid #ifdef.
78901         Use strdup rather than malloc + strcpy.
78902         * lib/human.c: Assume <locale.h> exists.
78903         (human_readable): Assume localeconv exists.
78904
78905 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78906
78907         * modules/hard-locale (Depends-on): Add strdup.
78908
78909 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78910
78911         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78912         convert T2, not T.  (Imported from libc.)
78913
78914 2004-11-30  Simon Josefsson  <jas@extundo.com>
78915
78916         * modules/restrict (License): Change to LGPL.
78917
78918 2004-11-30  Simon Josefsson  <jas@extundo.com>
78919
78920         * m4/restrict.m4: Add copyright and copying conditions.
78921
78922 2004-11-30  Simon Josefsson  <jas@extundo.com>
78923
78924         * m4/base64.m4: New file.
78925
78926 2004-11-30  Simon Josefsson  <jas@extundo.com>
78927
78928         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78929         base64.
78930
78931         * tests/test-base64.c: New file.
78932
78933         * modules/base64: New file.
78934
78935 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78936
78937         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78938         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78939
78940         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78941
78942 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78943
78944         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78945         (__getcwd.c): Don't restore errno; glibc doesn't.
78946         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78947         first, falling back to our code only if its results look suspicious.
78948         Ensure that the resulting buffer is only as large as necessary.
78949
78950         * lib/readutmp.c: Include readutmp.h first.
78951         Include <errno.h>, since readutmp.h no longer does that.
78952         * lib/readutmp.h: Don't include <errno.h>,
78953         <sys/param.h>, <time.h>; not needed to establish interface.
78954         (errno): Remove decl.
78955         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78956         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78957         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78958
78959 2004-11-28  Simon Josefsson  <jas@extundo.com>
78960
78961         * lib/base64.h, base64.c: New file.
78962
78963 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78966
78967 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78968
78969         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78970         (Depends-on): Remove pathmax, same.  Add mempcpy.
78971         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78972         (Makefile.am): Append getcwd.h to lib_SOURCES.
78973         (Include): Add getcwd.h.
78974         (Maintainer): Change from Jim Meyering to "all, glibc",
78975         since getdate now uses intended-for-glibc code.
78976         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78977         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78978
78979 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78982         HP's ANSI C compiler.
78983         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78984         Declaring int functions causes warnings on some modern systems and
78985         shouldn't be needed to compile on ancient ones.
78986         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78987         defined.
78988
78989         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
78990         with the following changes.
78991         (__set_errno): Parenthesize properly.
78992         Include <stdbool.h>.
78993         (MIN, MAX, MATCHING_INO): New macros.
78994         (__getcwd): Define with prototype, not K&R form.
78995         Use heuristics to allocate default buffer on stack if possible.
78996         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
78997         behavior, and to avoid the PATH_MAX limit when computing
78998         ../../../../...
78999         Use MATCHING_INO to compare inode number to file.
79000         Check for arithmetic overflow in size calculations.
79001         Fix bug in reallocation of dot array that caused getcwd to fail
79002         on directories nested deeper than 75.
79003         Be more careful about saving errno on error.
79004         Do not use realloc; use only free+malloc, as this is a bit
79005         more flexible and avoids a needless copy operation.
79006         Do not inspect st_dev and st_ino for symbolic links; POSIX
79007         doesn't specify the latter.
79008         Check for closedir errors.
79009         Avoid needless casts.
79010         Use "#ifdef weak_alias" around weak_alias, to be like other
79011         glibc code.
79012         The following changes to getcwd.c have effect only when used in
79013         gnulib; they have no effect inside glibc proper.
79014         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79015         as alloca isn't used.
79016         (alloca, __alloca): Likewise.
79017         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79018         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79019         unconditionally, as gnulib assumes C89 or better.
79020         Do not include <sys/param.h>.
79021         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79022         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79023         better.
79024         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79025         Include <dirent.h> in a way that is compatible with modern Autoconf.
79026         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79027         New macros, if not already defined.
79028         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79029         Use "_LIBC", not "defined _LIBC", for consistency.
79030         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79031         a mempcpy module.
79032         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79033         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79034         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79035         credit only to Jim Meyering and adjust the copyright dates.
79036         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79037         <stdlib.h>, <unistd.h>, "pathmax.h".
79038         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79039         (INITIAL_BUFFER_SIZE): Remove.
79040         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79041
79042 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79043
79044         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79045         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79046         Use the _ONCE methods, for efficiency.
79047         Check for fcntl.h.  In test program, include <errno.h>
79048         and <fcntl.h> if available.  Remove old K&R cruft from
79049         test program.  Check for common errors in GNU/Linux,
79050         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79051         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79052         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79053         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79054         name accordingly.
79055         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79056         accommodate new getcwd.c.
79057         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79058         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79059         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79060         that's all we need now.
79061
79062 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79063
79064         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79065         argp-parse.c depends on getopt internals, that means we should
79066         always use our getopt, to be on the safe side.
79067         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79068         order not to spoil the result of an eventual previous invocation
79069         of gl_GETOPT_SUBSTITUTE.
79070
79071 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79072
79073         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79074         redefinition warnings. To avoid them, include the defines
79075         in `#if !defined __need_getopt ... #endif'. The only place
79076         where __getopt_argv_const is used is in definitions
79077         of getopt_long and getopt_long_only below, which are as well
79078         protected by `#ifndef __need_getopt'.
79079         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79080         __need_getopt after including <stdio.h> and <unistd.h> These
79081         headers might have defined it.
79082
79083 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79086
79087 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79088
79089         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79090         (futimens): New function, which uses futimes if available.
79091         (futimens, utimens): Support timespec==NULL, with same semantics
79092         as utime and utimens.
79093         * lib/utimens.h (futimens): New decl.
79094
79095 2004-11-23  Jim Meyering  <jim@meyering.net>
79096
79097         * lib/getopt_.h: Remove trailing blanks.
79098
79099 2004-11-23  Jim Meyering  <jim@meyering.net>
79100
79101         * lib/__fpending.c: Add comment.
79102
79103 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * modules/canonicalize (Depends-on): Add xreadlink.
79106         Problem reported by James Youngman.
79107
79108 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79109
79110         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79111         New macros.
79112         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79113         optopt): Use them instead of invoking ## directly; otherwise, the
79114         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79115
79116 2004-11-19  Bruno Haible  <bruno@clisp.org>
79117
79118         * lib/strtok_r.c: Move comments from here...
79119         * lib/strtok_r.h: ... to here.
79120
79121 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79122
79123         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79124         implementations that mishandle size_t overflow.
79125
79126 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79127
79128         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79129         might fail.  Problem reported by Yoann Vandoorselaere.
79130         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79131         implementations that mishandle size_t overflow.
79132
79133 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79134
79135         * modules/canon-host (Depends-on): Add strdup.
79136
79137 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79138
79139         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79140
79141 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79142
79143         * lib/canon-host.c: Include "strdup.h".
79144         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79145         Use strdup instead of malloc/strcpy to duplicate strings.
79146
79147         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79148         (human_space_before_unit): New constant.
79149         * lib/human.c (human_readable): Support it.
79150
79151         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79152         (xgetcwd): Set errno correctly when failing.
79153         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79154         the failure is actually due to a PATH_MAX problem.
79155
79156         Further getopt changes to make it more likely that glibc will
79157         buy the changes back.
79158         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79159         (getopt): Use it, so to preserve glibc semantic
79160         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79161         when compiling for libc.
79162         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79163         (getopt_long, getopt_long_only): Use it.
79164
79165         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79166         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79167         (getopt): Argv is now char * const *, as per standard.
79168         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79169         not char *__getopt_argv_const *.
79170         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79171         _getopt_long_only_r): Likewise.
79172         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79173         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79174         _getopt_long_r, _getopt_long_only_r): Likewise.
79175         * lib/getopt_.h (__getopt_argv_const): Remove.
79176         (getopt): Argv is now char * const *, as per standard.
79177
79178         * lib/getdate.y (tORDINAL): New token.
79179         (day, relunit): Allow it for relative times.
79180         (relative_time_table): Use tORDINAL for ordinals.
79181
79182 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79183
79184         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79185         Document that "second" isn't allowed as an ordinal number.
79186
79187 2004-11-16  Jim Meyering  <jim@meyering.net>
79188
79189         * modules/closeout (Depends-on): Add fpending.
79190
79191 2004-11-15  Jim Meyering  <jim@meyering.net>
79192
79193         * lib/closeout.c: Include "__fpending.h" once again.
79194         Include <stdbool.h>.
79195         (close_stdout): Don't fail just because stdout was closed initially,
79196         since some programs don't write to stdout in the normal course of
79197         operation (other than --version and --help), and we don't want this
79198         function to make e.g. `touch file >&-' fail.
79199         But do fail if it was closed and someone has tried to write to it.
79200         E.g., `printf foo >&-' must fail.
79201
79202 2004-11-13  Jim Meyering  <jim@meyering.net>
79203
79204         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79205
79206 2004-11-12  Simon Josefsson  <jas@extundo.com>
79207
79208         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79209         small doc fix is still pending.
79210
79211 2004-11-11  Simon Josefsson  <jas@extundo.com>
79212
79213         * modules/strtok_r: New file.
79214
79215         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79216         strtok_r.
79217
79218 2004-11-11  Simon Josefsson  <jas@extundo.com>
79219
79220         * m4/strtok_r.m4: New file.
79221
79222         * m4/getopt.m4: Replace opterr.
79223
79224 2004-11-11  Simon Josefsson  <jas@extundo.com>
79225
79226         * lib/strtok_r.h, strtok_r.c: New file.
79227
79228 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79231         of replacing opterr, getopt, etc.  This should handle the
79232         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79233
79234 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79235
79236         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79237         we can stop lying to compilers about the constness of argv when we
79238         are compiled outside glibc.
79239         (getopt, getopt_long, getopt_long_only): Use it.
79240         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79241         _getopt_internal, getopt): Likewise.
79242         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79243         _getopt_long_only_r): Likewise.
79244         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79245         _getopt_long_r, _getopt_long_only_r): Likewise.
79246
79247         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79248         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79249         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79250         the other external symbols.
79251         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79252         declaration, since the above renaming now works around collisions.
79253
79254 2004-11-11  Jim Meyering  <jim@meyering.net>
79255
79256         * lib/linebreak.c: Remove trailing blanks.
79257         * lib/alloca_.h: Likewise.
79258         * lib/acosl.c: Likewise.
79259         * lib/euidaccess.c: Likewise.
79260         * lib/allocsa.h: Likewise.
79261
79262 2004-11-10  Simon Josefsson  <jas@extundo.com>
79263
79264         * m4/getaddrinfo.m4: New file.
79265
79266 2004-11-10  Simon Josefsson  <jas@extundo.com>
79267
79268         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79269
79270 2004-11-10  Simon Josefsson  <jas@extundo.com>
79271
79272         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79273         getaddrinfo.
79274
79275         * modules/getaddrinfo: New file.
79276
79277 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79280
79281 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79282
79283         * lib/mktime.c (SHR): New macro, which is a portable
79284         substitute for >> that should work even on Crays.
79285         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79286         Problem reported by Mark D. Baushke in
79287         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79288         * lib/getdate.y (SHR): Likewise.
79289         (tm_diff): Use it.
79290         * lib/strftime.c (SHR): Likewise.
79291         (tm_diff): Use it.
79292         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79293         quote_these_too, so that right shifts are well defined.  All uses
79294         changed.
79295
79296 2004-11-10  Jim Meyering  <jim@meyering.net>
79297
79298         Ensure that no close failure goes unreported.
79299         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79300         return early when it seems there's nothing to flush.
79301         Don't include __fpending.h.
79302
79303 2004-11-10  Jim Meyering  <jim@meyering.net>
79304
79305         * modules/closeout (Depends-on): Remove fpending.
79306
79307 2004-11-10  Jim Meyering  <jim@meyering.net>
79308
79309         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79310
79311 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79312
79313         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79314         gl_FUNC_STRFTIME.
79315         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79316         and AC_REQUIRE when possible, to avoid duplicate checks.
79317         Check for <wchar.h>.
79318
79319 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79320
79321         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79322
79323 2004-11-09  Bruno Haible  <bruno@clisp.org>
79324
79325         * m4/sockpfaf.m4: New file.
79326
79327 2004-11-05  Bruno Haible  <bruno@clisp.org>
79328
79329         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79330         Reported by Mark D. Baushke <mdb@cvshome.org>.
79331
79332 2004-11-04  Bruno Haible  <bruno@clisp.org>
79333
79334         2004-09-11  Bruno Haible  <bruno@clisp.org>
79335                 * allocsa.valgrind: New file.
79336         2004-02-06  Bruno Haible  <bruno@clisp.org>
79337                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79338                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79339                 Reported by Christopher Seip <chris.seip@hp.com>.
79340
79341 2004-11-04  Bruno Haible  <bruno@clisp.org>
79342
79343         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79344         (Makefile.am): Distribute it.
79345
79346 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79349         with errno == ERANGE if the buffer is too small.
79350         Problem reported by Mark D. Baushke.
79351
79352 2004-11-03  Albert Chin  <china@thewrittenword.com>
79353             Paul Eggert  <eggert@cs.ucla.edu>
79354
79355         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79356         equivalent, substitute $ac_type for equivalent type rather than
79357         blindly using uint32_t *always* which won't work if uint32_t is not
79358         available.  Define _UINT32_T to work around typedef of uint32_t if
79359         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79360         2.5.1.
79361
79362 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79363
79364         * m4/jm-macros.m4: Sync from coreutils.
79365         (gl_MACROS): Check for mbrlen, for pathchk.
79366         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79367
79368 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         * lib/xreadlink.c (MAXSIZE): New macro.
79371         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79372         size does not exceed MAXSIZE.  Avoid cast.
79373         As suggested by Mark D. Baushke in
79374         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79375         if readlink fails with buffer size just under MAXSIZE, try again
79376         with MAXSIZE.
79377
79378 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79379
79380         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79381
79382 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79383         and  Paul Eggert  <eggert@cs.ucla.edu>
79384
79385         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79386         (get_date): Overparenthesize to avoid GCC warning.
79387
79388 2004-11-02  Bruno Haible  <bruno@clisp.org>
79389
79390         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79391         returns void.
79392
79393 2004-11-02  Bruno Haible  <bruno@clisp.org>
79394
79395         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79396         function returns void.
79397
79398 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79399
79400         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79401         fflush_unlocked, flockfile, funlockfile, funlockfile,
79402         fputs_unlocked, putc_unlocked.
79403
79404 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79405
79406         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79407         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79408         already declared.
79409
79410 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         * modules/getdate (Files): Add doc/getdate.texi.
79413         (Depends-on): Add setenv, xalloc.
79414
79415 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         * lib/getdate.y: Add support for TZ="foo" within a date string.
79418         Fix some bugs near time_t boundaries.  Reject dates with
79419         out-of-range components, e.g., "Sept 31".
79420         Include <stdlib.h>, "setenv.h", "xalloc.h".
79421         (ISDIGIT_LOCALE): Remove; unused.
79422         Note that the TZ and time functions used here are not reentrant.
79423         (mktime_ok, get_tz): New functions.
79424         (TZBUFSIZE): New constant.
79425         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79426         This requires that we sometimes generate our own TZ="XXX..." setting.
79427
79428 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79429
79430         * doc/getdate.texi: New file, from coreutils with modifications for
79431         the new TZ parsing.
79432
79433 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79434
79435         * lib/mktime.c (not_equal_tm): Remove redundant check.
79436
79437 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79438
79439         * modules/regex (lib_SOURCES): Add regex.c.
79440         Reported by James Youngman in
79441         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79442
79443 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79444
79445         * lib/getdate.y: Use Bison 1.875 features, and some minor
79446         code cleanups.  This change does not affect semantics.
79447         Don't include <stdlib.h>; no longer needed.
79448         Don't include unlocked-io.h; only the "#if TEST" code uses
79449         stdio, and performance isn't crucial there.
79450         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79451         Bison 1.875 features as described below.
79452         All uses of "PC." replaced by "pc->".
79453         (YYSTYPE): Add a forward declaration.
79454         (yylex, yyerror): Use full prototypes in forward decls.
79455         Use "%pure-parser" rather than obsolescent "%pure_parser".
79456         Use %parse-param and %lex-param instead of obsolescent
79457         YYPARSE_PARAM and YYLEX_PARAM.
79458         (meridian_table, month_and_day_table, time_units_table,
79459         relative_time_table, time_zone_table, military_table,
79460         lookup_zone, lookup_word, get_date):
79461         Use NULL instead of 0 where appropriate.
79462         (to_hour): Avoid abort (), to avoid a dependency on
79463         stdlib.h.
79464         (yyerror, yylex): Now accepts parser_control * arg.
79465         (main) [TEST]: Use '\0' rather than 0 for char.
79466
79467 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79468
79469         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79470
79471 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79472
79473         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79474         It's now the caller's responsibility to handle the case where
79475         !HAVE_GETPAGESIZE && !defined getpagesize.
79476
79477         * lib/mktime.c (leapyear): Arg is long int, not int.
79478
79479 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79482
79483 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79484
79485         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79486         missing.  Problem reported by James Youngman.
79487
79488 2004-10-16  Simon Josefsson  <jas@extundo.com>
79489
79490         * gnulib-tool: Fix comments.  Fix parse problem.
79491         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79492
79493 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79494
79495         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79496         implementation of getopt_long.  Problem reported by Alexander Taler in:
79497         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79498
79499 2004-10-15  Bruno Haible  <bruno@clisp.org>
79500
79501         * gnulib-tool: Untabify. Initialize supplied_libname.
79502         (func_usage): More homogenous output.
79503         (func_modules_transitive_closure, func_modules_to_filelist,
79504         func_emit_lib_Makefile_am): New functions.
79505         (func_import): New function, extracted from big case statement. Use
79506         func_get_license, func_modules_transitive_closure,
79507         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79508         opt_lgpl. Don't use test -a, as it's not portable.
79509         (func_create_testdir): Use func_modules_transitive_closure,
79510         func_modules_to_filelist, func_emit_lib_Makefile_am.
79511
79512 2004-10-15  Bruno Haible  <bruno@clisp.org>
79513
79514         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79515
79516 2004-10-15  Bruno Haible  <bruno@clisp.org>
79517
79518         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79519         the portions belonging to each module.
79520         Suggested by Derek Robert Price <derek@ximbiot.com>.
79521
79522 2004-10-12  Simon Josefsson  <jas@extundo.com>
79523
79524         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79525         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79526         to real functions.
79527
79528 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79529
79530         * modules/vsnprintf: New file.
79531
79532 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79533
79534         * m4/vsnprintf.m4: New file.
79535
79536 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79537
79538         * lib/vsnprintf.h: New file.
79539         * lib/vsnprintf.c: New file.
79540
79541 2004-10-11  Bruno Haible  <bruno@clisp.org>
79542
79543         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79544         vsnprintf.
79545
79546 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79547
79548         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79549
79550 2004-10-07  Bruno Haible  <bruno@clisp.org>
79551
79552         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79553         fits into the provided buffer.
79554
79555 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79556
79557         * lib/diacrit.c, diacrit.h: Add GPL notice.
79558
79559         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79560         notice.
79561         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79562         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79563         This avoids a potential constant-folding bug.
79564
79565 2004-10-05  Bruno Haible  <bruno@clisp.org>
79566
79567         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79568         for the declaration of strsep.
79569
79570 2004-10-05  Bruno Haible  <bruno@clisp.org>
79571
79572         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79573
79574 2004-10-04  Simon Josefsson  <jas@extundo.com>
79575
79576         * modules/memmem: New file.
79577         * tests/test-memmem.c: New file.
79578         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79579
79580 2004-10-04  Simon Josefsson  <jas@extundo.com>
79581
79582         * m4/memmem.m4: New file.
79583
79584 2004-10-04  Simon Josefsson  <jas@extundo.com>
79585
79586         * lib/memmem.h: New file.
79587         * lib/memmem.c: New file, taken from glibc.
79588
79589 2004-10-04  Simon Josefsson  <jas@extundo.com>
79590
79591         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79592         '#ifdef USE_UNLOCKED_IO'.
79593
79594 2004-10-04  Simon Josefsson  <jas@extundo.com>
79595
79596         * config/srclist.txt: Add memmem from glibc.
79597
79598 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79599
79600         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79601
79602         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79603         modules/exclude, modules/getdate, modules/getline,
79604         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79605         modules/getusershell, modules/linebuffer, modules/md5,
79606         modules/mountlist, modules/posixtm, modules/readtokens,
79607         modules/readutmp, modules/regex, modules/sha1,
79608         modules/version-etc, modules/yesno:
79609         Remove dependency on unlocked-io.
79610
79611 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79612
79613         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79614
79615         * m4/unlocked-io.m4: Add copyright notice.
79616         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79617
79618 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79619
79620         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79621         * lib/xmalloc.c (xmemdup): Likewise.
79622         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79623         XFREE): Remove these long-obsolescent macros.
79624         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79625         * lib/xstrdup.c: Remove.
79626
79627         * lib/regex.c (re_comp): Cast gettext return value to char *,
79628         Problem reported by Martin Neitzel via Mark D. Baushke.
79629
79630 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79633         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79634         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79635         regex.c, sha1.c, version-etc.c, yesno.c:
79636         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79637         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79638         the includer's responsibility.
79639
79640         Sync from coreutils.
79641
79642         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79643         points to the start of a string, as the C Standard says the
79644         resulting behavior is undefined.
79645
79646         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79647         simple -> simple_backups, numbered_existing ->
79648         numbered_existing_backups, numbered -> numbered_backups
79649         to avoid shadowing problems.  All uses changed.
79650         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79651         * lib/backupfile.c (check_extension, numbered_backup):
79652         Rename locals to avoid shadowing 'basename'.
79653         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79654         once.
79655
79656         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79657         * lib/.cvsignore: Add getopt.h.
79658
79659 2004-10-04  Bruno Haible  <bruno@clisp.org>
79660
79661         * modules/README: New file.
79662         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79663         not a module.
79664
79665 2004-10-02  Jim Meyering  <jim@meyering.net>
79666
79667         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79668
79669 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79670
79671         * modules/strsep: New file.
79672
79673 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79674
79675         * m4/strsep.m4: New file.
79676
79677 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79678
79679         * lib/strsep.h: New file.
79680         * lib/strsep.c: New file.
79681
79682 2004-10-01  Simon Josefsson  <jas@extundo.com>
79683
79684         * lib/snprintf.c (snprintf): Handle size==0.
79685
79686 2004-10-01  Simon Josefsson  <jas@extundo.com>
79687             Bruno Haible  <bruno@clisp.org>
79688
79689         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79690         (snprintf): Declare 'args'.
79691
79692 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79693
79694         * lib/snprintf.c: Remove comments as to why each header is needed.
79695
79696 2004-10-01  Bruno Haible  <bruno@clisp.org>
79697
79698         * MODULES.html.sh: Add strsep.
79699
79700 2004-09-30  Simon Josefsson  <jas@extundo.com>
79701
79702         * modules/snprintf: New file.
79703
79704 2004-09-30  Simon Josefsson  <jas@extundo.com>
79705
79706         * m4/snprintf.m4: New file.
79707
79708 2004-09-30  Simon Josefsson  <jas@extundo.com>
79709
79710         * lib/snprintf.h, lib/snprintf.c: New files.
79711
79712 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79713
79714         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79715         (hol_entry_help): Never translate an empty string.
79716         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79717         * lib/argp.h (OPTION_NO_TRANS): New option.
79718
79719 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79720
79721         * modules/argp (Maintainer): Replace Simon Josefsson
79722         by Sergey Poznyakoff.
79723
79724 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79727         changes merged back into glibc.
79728
79729 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79730
79731         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79732
79733 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79734
79735         * lib/xvasprintf.c: Include xalloc.h.
79736         (xvasprintf): Use xalloc_die, not xmalloc_die.
79737
79738 2004-09-29  Bruno Haible  <bruno@clisp.org>
79739
79740         * modules/alloca-opt: New file, derived from modules/alloca.
79741         * modules/allocsa: Depend on alloca-opt instead of alloca.
79742         * modules/setenv: Likewise.
79743         * modules/vasnprintf: Likewise.
79744         * MODULES.html.sh: Add alloca-opt.
79745
79746 2004-09-28  Simon Josefsson  <jas@extundo.com>
79747
79748         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79749         LGPL, and to replace license template from GPL to LGPL.
79750
79751 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79752
79753         * modules/dummy: Change license to LGPL.
79754
79755 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79756
79757         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79758
79759 2004-09-24  Simon Josefsson  <jas@extundo.com>
79760
79761         * modules/minmax (License): Change from GPL to LGPL.
79762
79763 2004-09-23  Simon Josefsson  <jas@extundo.com>
79764
79765         * gnulib-tool (--import): Typo.
79766
79767 2004-09-23  Simon Josefsson  <jas@extundo.com>
79768
79769         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79770
79771 2004-09-22  Bruno Haible  <bruno@clisp.org>
79772
79773         * modules/*: Add 'License' field.
79774         * gnulib-tool: Accept --extract-license option.
79775         (func_get_license): New function.
79776
79777 2004-09-21  Bruno Haible  <bruno@clisp.org>
79778
79779         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79780         Reported by Simon Josefsson.
79781
79782 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79783
79784         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79785         gl_AC_TYPE_LONG_LONG.
79786
79787 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79788
79789         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79790
79791 2004-09-18  Simon Josefsson  <jas@extundo.com>
79792         and  Paul Eggert  <eggert@cs.ucla.edu>
79793
79794         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79795         calls with autoreconf.  Define GL_LIB.
79796
79797 2004-09-14  Karl Berry  <karl@gnu.org>
79798
79799         * config/srclist.txt: unsync setenv.c, sigh.
79800
79801 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79802
79803         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79804         Problem reported by Bruno Haible in:
79805         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79806
79807 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79808
79809         * config/srclist.txt: Comment out argp-pvh.c.
79810
79811 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79812
79813         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79814         in case some system header has #define'd it.  Problem reported by
79815         Soeren D. Schulze in
79816         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79817
79818 2004-09-09  Karl Berry  <karl@gnu.org>
79819
79820         * regex.[ch]: delete from the root.  These were supposed to be
79821                 synced with emacs cvs, but this has not happened for about
79822                 a year, and anyway nothing else uses emacs regex.[ch].
79823                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79824                 lib/regex[.ch] is untouched.
79825
79826 2004-09-09  Bruno Haible  <bruno@clisp.org>
79827
79828         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79829
79830 2004-09-09  Bruno Haible  <bruno@clisp.org>
79831
79832         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79833         modifications.
79834         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79835
79836 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79837
79838         * modules/xvasprintf: New file.
79839         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79840
79841 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79842
79843         * lib/xvasprintf.h: New file.
79844         * lib/xvasprintf.c: New file.
79845         * lib/xasprintf.c: New file.
79846
79847 2004-09-08  Bruno Haible  <bruno@clisp.org>
79848
79849         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79850
79851 2004-09-08  Bruno Haible  <bruno@clisp.org>
79852
79853         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79854         length is > INT_MAX.
79855         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79856         more.
79857
79858 2004-09-08  Bruno Haible  <bruno@clisp.org>
79859
79860         * lib/stdint_.h: New file, taken from GNU clisp.
79861
79862 2004-09-08  Bruno Haible  <bruno@clisp.org>
79863             Oskar Liljeblad  <oskar@osk.mine.nu>
79864
79865         * modules/stdint: New file.
79866         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79867
79868 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         Import from coreutils.
79871         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79872         strings on unbounded length.  alloca's performance benefits aren't
79873         that important here.
79874         (V_STRDUP): Remove.
79875         (parse_with_separator): New function, with most of the internals
79876         of the old parse_user_spec.  Allow user to omit both user and group,
79877         for compatibility with FreeBSD.
79878         Clone only the user name, not the entire spec.
79879         Do not set *uid, *gid unless entirely successful.
79880         Avoid memory leak in some failing cases.
79881         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79882         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79883         (parse_user_spec): Rewrite to use parse_with_separator.
79884
79885 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79886
79887         * modules/userspec: Don't depend on alloca.
79888
79889 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79890
79891         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79892
79893 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79894
79895         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79896         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79897         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79898
79899 2004-08-16  Simon Josefsson  <jas@extundo.com>
79900
79901         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79902         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79903         Add --dry-run for --import.
79904         Let user provided command line parameters override configure.ac
79905         settings.
79906
79907 2004-08-12  Simon Josefsson  <jas@extundo.com>
79908
79909         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79910         as discussed with Paul Eggert in threads rooted at
79911         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79912         and
79913         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79914         Before, the test was empty, and relied on ELIDE_CODE in source
79915         code.)
79916         (gl_PREREQ_GETOPT): New macro.
79917         (gl_GETOPT): Use them.
79918
79919 2004-08-12  Simon Josefsson  <jas@extundo.com>
79920
79921         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79922         * lib/getopt_.h: Renamed from getopt.h.
79923
79924 2004-08-12  Simon Josefsson  <jas@extundo.com>
79925
79926         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79927         Change default library name from libfoo to libgnu.
79928         Now, if you have a configure.ac that says:
79929                 gl_SOURCE_BASE(gl)
79930                 gl_M4_BASE(gl/m4)
79931                 gl_MODULES(error getopt etcetera)
79932                 gl_INIT
79933         you can import all you need by running:
79934                 ../gnulib/gnulib-tool --import
79935
79936         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79937         (Makefile.am): Rewrite, use logic from argz.
79938         (Include): Use <getopt.h> instead of "getopt.h".
79939
79940 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79941
79942         * modules/argp (Files): Add m4/unlocked-io.m4.
79943         (Depends-on): Add extensions.
79944
79945 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79946
79947         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79948         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79949         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79950         Check for program_invocation_name, program_invocation_short_name,
79951         flockfile, funlockfile, features.h, _getopt_long_only_r.
79952
79953 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79954
79955         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79956         its complicated substitute.
79957         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79958         and program_invocation_name.
79959         (__argp_basename) [!_LIBC]: Remove; the only use was
79960         replaced by its body.
79961         (__argp_short_program_name): Change condition from
79962         !defined __argp_short_program_name to
79963         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79964         to match argp-namefrob.h.
79965         (__argp_failure): Don't assume strerror_r returns char *.
79966         * lib/argp-parse.c (N_): Define unconditionally.
79967         (argp_default_options): Fill out initializers with 0 to avoid
79968         gcc warnings.
79969
79970 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79971
79972         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79973         getopt1.c.
79974
79975 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79976
79977         Merge from coreutils.
79978
79979         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79980
79981         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79982         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79983
79984 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79985
79986         Merge from coreutils.
79987
79988         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
79989         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
79990         for Reliant Unix 5.43.
79991
79992         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
79993         (union fooround): Use uintmax_t, not long int.
79994         The rest is a merge from libc:
79995         [defined _LIBC]: Include <shlib-compat.h>.
79996         (_obstack) [defined _LIBC]: Remove after 2.3.4.
79997
79998         * lib/settime.c (settime): Recode to avoid warning with
79999         Sun Forte C 6U2.
80000
80001         * lib/strverscmp.c: Convert to UTF-8.
80002
80003 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80006         m4/uintmax_t.m4.
80007
80008 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80009
80010         * modules/xalloc-die: New file.
80011         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80012
80013         * modules/md5 (Files): Add m4/uint32_t.m4.
80014         * modules/sha1: Renamed from modules/sha.
80015         (Files):
80016         Rename lib/sha.h to lib/sha1.h.
80017         Rename lib/sha.c to lib/sha1.c.
80018         Rename m4/sha.m4 to m4/sha1.m4.
80019         (lib_SOURCES): Likewise.
80020         (configure.ac): Rename gl_SHA to gl_SHA1.
80021         (Include): sha.h -> sha1.h.
80022
80023 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80026         * m4/sha1.m4: Renamed from sha.m4.
80027         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80028
80029 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80030
80031         * lib/obstack.h (obstack_empty_p):
80032         Don't assume that chunk->contents is suitably aligned.
80033         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80034         Likewise. Problem reported by Benno in
80035         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80036
80037         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80038         readable.  This could be improved further but it'd take some work.
80039
80040 2004-08-08  Simon Josefsson  <jas@extundo.com>
80041
80042         * modules/xgethostname (Depends-on): Remove exit and error (not
80043         used).
80044
80045         * modules/getpass-gnu: Add getpass.h.
80046         (Depends-on): Add stdbool.
80047         * modules/getpass: Add getpass.h.
80048
80049 2004-08-08  Simon Josefsson  <jas@extundo.com>
80050
80051         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80052         Check getpass declaration.
80053
80054 2004-08-08  Simon Josefsson  <jas@extundo.com>
80055
80056         * lib/xgethostname.c: Don't include error.h (not used).
80057
80058         * lib/getpass.h: Add.
80059         * lib/getpass.c: Include getpass.h first.
80060
80061 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         * lib/xalloc-die.c: New file.
80064         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80065         All uses removed.
80066         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80067         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80068         xalloc-die.c.
80069         (_, N_, xalloc_die): Move to xalloc-die.c.
80070         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80071         so that we needn't mess with xalloc_msg_memory_exhausted.
80072
80073         * lib/sha1.h: Renamed from sha.h.
80074         (SHA1_H): Renamed from _SHA_H.
80075         (sha1_ctx): Renamed from sha_ctx.
80076         (sha1_init_ctx): Renamed from sha_init_ctx.
80077         (sha1_process_block): Renamed from sha_process_block.
80078         (sha1_process_bytes): Renamed from sha_process_bytes.
80079         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80080         (sha1_read_ctx): Renamed from sha_read_ctx.
80081         (sha1_stream): Renamed from sha_stream.
80082         (sha1_buffer): Renamed from sha_buffer.
80083         * lib/sha1.c: Likewise; renamed from sha.c.
80084         Do not include <sys/types.h>.
80085         Include <stddef.h> rather than <stdlib.h>.
80086
80087 2004-08-08  Bruno Haible  <bruno@clisp.org>
80088
80089         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80090         FILESYSTEM_PREFIX_LEN.
80091         * lib/progreloc.c: Likewise.
80092         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80093
80094 2004-08-06  Simon Josefsson  <jas@extundo.com>
80095
80096         * modules/progname (Depends-on): Don't depend on stdbool.
80097
80098 2004-08-06  Simon Josefsson  <jas@extundo.com>
80099
80100         * modules/getsubopt: New file.
80101         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80102         getsubopt.
80103
80104 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80105
80106         More merge from coreutils.
80107
80108         * m4/utimens.m4, m4/utimecmp.m4: New files.
80109         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80110         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80111         prereq.m4, sha.m4: Import changes from coreutils.
80112
80113 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         More merge from coreutils.
80116         * modules/raise, modules/readtokens0, modules/utimens:
80117         * modules/utimecmp, module/xnanosleep: New files.
80118         * modules/strftime: Add lib/strftime.h.
80119         Change include from <time.h> to "strftime.h".
80120         * modules/yesno: Add lib/yesno.h.
80121         * modules/backupfile: Remove lib/addext.c.
80122         * modules/euidaccess: Add stat-macros.h.
80123         * modules/canonicalize, modules/euidaccess,
80124         modules/filemode, modules/lchown, modules/makepath,
80125         modules/rmdir, modules/stat: Likewise.
80126
80127 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80128
80129         Merge from tar.
80130         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80131         SIZE_MAX is a valid preprocessor constant.
80132         (__argp_basename): Change from "#ifndef _LIBC"
80133         to "#ifndef __argp_short_program_name", so that
80134         we don't compile these functions for tar.
80135
80136         More merges from coreutils.
80137         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80138         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80139         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80140         * lib/addext.c: Remove; no longer needed.
80141         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80142         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80143         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80144         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80145         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80146         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80147         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80148         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80149         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80150         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80151         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80152         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80153         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80154         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80155         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80156         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80157         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80158         Import changes from coreutils.
80159
80160 2004-08-05  Simon Josefsson  <jas@extundo.com>
80161
80162         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80163
80164 2004-08-05  Simon Josefsson  <jas@extundo.com>
80165
80166         * m4/getsubopt.m4: New file.
80167
80168 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80169
80170         Merge from coreutils.
80171
80172         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80173         * m4/getcwd-path-max.m4: New files.
80174
80175         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80176         FILESYSTEM_PREFIX_LEN ->
80177         FILE_SYSTEM_PREFIX_LEN.
80178         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80179         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80180         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80181         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80182
80183         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80184         prerequisite modules now handle the DOS stuff.
80185         Don't check for unistd.h.
80186
80187 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80188
80189         Merge from coreutils.
80190
80191         * lib/.gdb-history: Remove; this doesn't belong here.
80192
80193         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80194         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80195         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80196         * lib/getcwd.c: New files.
80197
80198         * lib/dirname.h: Include <stdbool.h>.
80199         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80200         for consistency with POSIX terminology.  All uses changed.
80201         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80202         (strip_trailing_slashes): Use bool for booleans.
80203         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80204
80205         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80206         sometimes returns a positive errno value even when it succeeds.
80207         (print_errno_message) [!LIBC]: Fall back on strerror if
80208         __strerror_r fails.
80209
80210         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80211         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80212         (longest_relative_suffix): New function.
80213         (path_concat): Use it.  Assume first argument is not NULL.
80214         Port to DOS.  Omit redundant separators.
80215         Report an error instead of returning NULL.
80216         Use mempcpy instead of memcpy.
80217         (xpath_concat): Remove: not declared or used.
80218
80219         * lib/same.h: Include <stdbool.h>
80220         (same_name): Return bool, not int.
80221         * lib/same.c (same_name): Likewise.
80222         (errno): Don't declare; we assume C89 or better now.
80223
80224         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80225         if not already defined.
80226
80227         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80228         * lib/dup-safer.c (errno): Likewise.
80229
80230 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80231
80232         Merge from coreutils.
80233         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80234         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80235         * modules/path-concat: Don't depend on strdup.
80236
80237 2004-08-03  Simon Josefsson  <jas@extundo.com>
80238
80239         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80240         * lib/progname.h: Don't include stdbool.h.
80241
80242 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80243
80244         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80245         * MODULES.html.sh (func_all_modules): Remove fatal.
80246
80247 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80248
80249         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80250
80251 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80252
80253         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80254         working.
80255
80256 2004-08-02  Simon Josefsson  <jas@extundo.com>
80257
80258         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80259         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80260         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80261
80262 2004-08-01  Simon Josefsson  <jas@extundo.com>
80263
80264         * lib/xgetdomainname.c: Include stdlib.h, for free().
80265
80266 2004-07-19  Bruno Haible  <bruno@clisp.org>
80267
80268         * MODULES.html.sh (func_all_modules): Add dummy.
80269
80270 2004-07-16  Simon Josefsson  <jas@extundo.com>
80271
80272         * modules/dummy: New file.
80273
80274 2004-07-16  Simon Josefsson  <jas@extundo.com>
80275
80276         * lib/dummy.c: New file.
80277
80278 2004-07-16  Bruno Haible  <bruno@clisp.org>
80279
80280         * lib/backupfile.h: Add extern "C" for C++.
80281         * lib/closeout.h: Likewise.
80282         * lib/copy-file.h: Likewise.
80283         * lib/findprog.h: Likewise.
80284         * lib/full-write.h: Likewise.
80285         * lib/pathname.h: Likewise.
80286         * lib/progname.h: Likewise.
80287         * lib/stpcpy.h: Likewise.
80288         * lib/stpncpy.h: Likewise.
80289         * lib/strcase.h: Likewise.
80290         * lib/strstr.h: Likewise.
80291         * lib/xalloc.h: Likewise.
80292
80293         * lib/mbswidth.h: Add extern "C" for C++.
80294         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80295
80296 2004-07-13  Robert Millan  <robertmh@gnu.org>
80297
80298         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80299
80300 2004-07-09  Simon Josefsson  <jas@extundo.com>
80301
80302         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80303         failed without this.)
80304
80305 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80306
80307         * modules/chown (Files): Add lib/fchown-stub.c, since
80308         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80309
80310 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * lib/fchown-stub.c: New file.
80313
80314 2004-06-24  Jim Meyering  <jim@meyering.net>
80315
80316         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80317
80318 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         * modules/argz: Omit "#include".
80321
80322         * MODULES.html.sh (func_all_modules): Add calloc, to match
80323         2004-06-01 addition of calloc module.
80324
80325 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         * m4/argz.m4: New file, which is autoupdated from libtool.
80328
80329 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80330
80331         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80332         libtool.
80333
80334 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80335
80336         * config/srclist-update: Don't insist on "USA." before the
80337         close-comment, as libtool omits the period and puts the */ on a
80338         separate line.
80339         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80340         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80341
80342 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80343
80344         * modules/argz: New file.
80345         * MODULES.html.sh (func_all_modules): Add argz.
80346
80347 2004-06-12  Jim Meyering  <jim@meyering.net>
80348         and  Paul Eggert  <eggert@cs.ucla.edu>
80349
80350         * modules/hash (Files): Add lib/xalloc.h.
80351         * modules/pipe (Depends-on): Add wait-process.
80352         * modules/stat (Depends-on): Add xalloc.
80353         * modules/userspec (Files): Add lib/userspec.h.
80354         * modules/xstrto
80355
80356         Upgrade from gettext-0.13.
80357         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80358         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80359         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80360
80361 2004-06-10  Jim Meyering  <jim@meyering.net>
80362
80363         * lib/calloc.c: New file.
80364
80365 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80366
80367         * lib/getdate.y (yylex): Allow space between sign and number.
80368         Problem reported by Dan Jacobson.
80369
80370 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80371
80372         Merge from coreutils CVS.
80373
80374         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80375         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80376         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80377         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80378         xstrtol.m4: Fix copyright date and/or serial number.
80379
80380         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80381         See if we need an fchown replacement.
80382         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80383         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80384         and use the replacement function if we detect either defect.
80385
80386         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80387         gl_UTIMECMP.
80388
80389 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80390         and  Jim Meyering  <jim@meyering.net>
80391
80392         Merge from coreutils CVS.
80393
80394         * lib/stat-macros.h: New file, with contents from file-type.h
80395         and coreutils' system.h.
80396         * lib/file-type.c: Include "stat-macros.h".
80397         * lib/file-type.h (file_type): Move all macro definitions to new file,
80398         stat-macros.h.
80399
80400         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80401         Wrap old code with this conditional.
80402         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80403         function that does not dereference symlinks.
80404         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80405
80406         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80407         dependency problems.
80408         (xreadlink): Accept new arg SIZE, for efficiency.
80409         All decls and uses changed.
80410         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80411
80412         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80413         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80414
80415         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80416         sysexits.h.
80417
80418 2004-06-01  Jim Meyering  <jim@meyering.net>
80419
80420         * m4/calloc.m4: New file.
80421
80422 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80423
80424         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80425         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80426         Also, fix a typo in a diagnostic.
80427
80428 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80429
80430         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80431         or AC_FUNC_REALLOC.
80432
80433 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80436         macros to be defined.
80437         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80438         the allocator returns NULL because the requested size is zero.
80439
80440 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80441
80442         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80443         var.  Add comment explaining why libc still defines it.  This
80444         merges the following patch from glibc:
80445         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80446
80447 2004-05-20  Andreas Schwab  <schwab@suse.de>
80448
80449         * m4/free.m4: Replace free if it not known to work, not the other
80450         way round.
80451
80452 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80453
80454         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80455         present in glibc since revision 1.1 of this file.
80456         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80457         obstack_alignment_mask, obstack_alloc, obstack_base,
80458         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80459         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80460         obstack_grow0, obstack_init, obstack_int_grow,
80461         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80462         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80463         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80464         nonexistent functions.
80465
80466 2004-05-18  Karl Berry  <karl@gnu.org>
80467
80468         * config/srclist.txt: break link for vasnprintf.c.
80469
80470 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         Port obstack to the AS/400, where pointers are 16 bytes wide and
80473         you cannot cast an integer to a valid pointer.  This patch is
80474         currently waiting to be integrated into glibc; see
80475         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80476
80477         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80478         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80479         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80480         (struct obstack): temp member is now a union of a pointer and
80481         an integer, instead of an integer.  All integer uses changed.
80482         This does not affect the physical layout of struct obstack,
80483         except on hosts (like the AS/400) where the size or alignment of
80484         void * is greater than that of ptrdiff_t.
80485         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80486         __STDC__)]: Store temporary in pointer member of union, not
80487         integer member.
80488         * lib/obstack.c: Include <stddef.h>, for offsetof.
80489         (struct fooalign): Remove; it doesn't need a name.
80490         (union fooround): Change double to long double, and add void *.
80491         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80492         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80493         not a macro.  Hence the values are always int; so remove all
80494         casts-to-int in uses.
80495
80496 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80497
80498         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80499         we can get this patch merged into glibc.
80500
80501 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80502             Paul Eggert  <eggert@cs.ucla.edu>
80503
80504         * m4/argp: Depend on alloca.
80505
80506 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80507             Paul Eggert  <eggert@cs.ucla.edu>
80508
80509         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80510         freecoding.
80511
80512 2004-05-17  Bruno Haible  <bruno@clisp.org>
80513
80514         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80515         precision that consists of a '.' followed by an empty digit string.
80516         Patch by Tor Lillqvist <tml@iki.fi>.
80517
80518 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80519
80520         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80521         for backward compatibility with older code.  We need our own
80522         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80523         it under some other name, and our alloca.h will define it.
80524
80525 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80526             Derek Price  <derek@ximbiot.com>
80527
80528         * lib/alloca.c: Include <alloca.h>, to get our interface.
80529         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80530         include <alloca.h> first.  Use C89 prototype for alloca; this
80531         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80532         Use #elif for simplicity, since we can assume C89 now.
80533         Don't try to source the system alloca.h since it will not be found
80534         and to prevent recursively including its replacement.
80535         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80536         * lib/regex.c: Likewise.
80537
80538 2004-05-16  Derek Price  <derek@ximbiot.com>
80539             Paul Eggert  <eggert@cs.ucla.edu>
80540
80541         getline cleanup.  This changes the getndelim2 API: both order of
80542         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80543         no delimiter).
80544
80545         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80546         interface does that.
80547         (getline): Always use getdelim, so that we don't have two
80548         copies of this code.
80549         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80550         if available.
80551         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80552         (GETNDELIM2_MAXIMUM): New macro.
80553         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80554         instead of the old practice of delim2==0.  All callers changed.
80555         Return -1 on overflow, instead of returning junk.
80556         Do not set *linesize unless allocation succeeds.
80557         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80558         that we include sys/types.h.
80559         * lib/getnline.h: Likewise.
80560         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80561         (getndelim2): Reorder arguments.
80562         * lib/getnline.c (getnline, getndelim):
80563         Don't discard the NMAX argument.
80564         (getnline): Invoke getndelim, to avoid code duplication.
80565         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80566         of (size_t) -1 by callers of the getnline family.
80567
80568 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80569
80570         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80571         Check for gettimeofday.
80572         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80573         Check for settimeofday, stime.
80574
80575 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80576
80577         * lib/nanosleep.c (suspended): Change its type from int to
80578         sig_atomic_t volatile.
80579         (first_call): Make it private to rpl_nanosleep, and have it
80580         be zero initially as that's a bit faster.
80581         (my_usleep): Round up fractional times instead of truncating them,
80582         as this is the usual meaning for 'sleep'.
80583
80584         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80585         doesn't work.
80586         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80587         (ENOSYS): Define if not defined.
80588         (settime): Fall back on stime if it exists and settimeofday fails.
80589         But don't bother with fallbacks if a method fails with errno == EPERM.
80590
80591 2004-05-11  Jim Meyering  <jim@meyering.net>
80592
80593         Prior to this change, the save_cwd caller required read access to the
80594         current directory on most systems (ones with the fchdir function).
80595
80596         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80597         fails, try write-only, and finally, resort to using xgetcwd.
80598
80599 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80600
80601         * lib/obstack.c, obstack.h: Import changes from libc.
80602
80603 2004-04-28  Bruno Haible  <bruno@clisp.org>
80604
80605         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80606         also implicitly appends .exe to executables.
80607         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80608         accepts Windows pathnames.
80609         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80610         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80611         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80612         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80613         Reported by Derek Robert Price <derek@ximbiot.com>.
80614
80615 2004-04-21  Karl Berry  <karl@gnu.org>
80616
80617         * config/srclist.txt (localcharset.c): break sync.
80618
80619 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80620
80621         * m4/host-os.m4: Add a copyright notice.
80622
80623 2004-04-20  Jim Meyering  <jim@meyering.net>
80624
80625         Change UTILS_ to gl_ in AC_DEFINE'd names.
80626         Change utils_- and jm_-prefixed variables, too.
80627         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80628         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80630
80631         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80632         Don't emit trailing blanks.
80633         Also rename jm_-prefixed variables to have gl_ prefix.
80634
80635         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80636         Also rename jm_-prefixed variables to have gl_ prefix.
80637
80638         * m4/jm-macros.m4: Reflect the renamings.
80639         * m4/prereq.m4: Likewise.
80640
80641 2004-04-20  Jim Meyering  <jim@meyering.net>
80642
80643         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80644         memory.
80645
80646 2004-04-20  Jim Meyering  <jim@meyering.net>
80647             Bruno Haible  <bruno@clisp.org>
80648
80649         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80650         memory when realloc fails.
80651
80652 2004-04-19  Jim Meyering  <jim@meyering.net>
80653
80654         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80655         now that readutmp.c may call `free (0)'.
80656
80657 2004-04-19  Bruno Haible  <bruno@clisp.org>
80658
80659         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80660         * m4/inttypes_h.m4: Likewise.
80661         * m4/stdint_h.m4: Likewise.
80662         * m4/intmax_t.m4: Likewise.
80663         * m4/uintmax_t.m4: Likewise.
80664
80665 2004-04-18  Jim Meyering  <jim@meyering.net>
80666
80667         * m4/prereq.m4: Don't forbid jm_ prefix.
80668
80669         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80670         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80671         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80672         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80673         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80674         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80675         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80676         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80677         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80678         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80679         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80680         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80681         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80682         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80683         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80684         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80685         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80686         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80687         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80688
80689 2004-04-18  Jim Meyering  <jim@meyering.net>
80690
80691         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80692         failure, don't leak memory and do call END_UTMP_ENT.
80693
80694 2004-04-16  Jim Meyering  <jim@meyering.net>
80695
80696         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80697         coreutils' stat program.
80698         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80699
80700 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80701
80702         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80703         C89.
80704         (CHAR_BIT): Remove, since we assume C89.
80705         Include <stdint.h> if available, as per current Autoconf CVS advice.
80706
80707 2004-03-31  Jim Meyering  <jim@meyering.net>
80708
80709         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80710         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80711         * m4/xalloc.m4: Likewise.
80712
80713 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80714
80715         Merge from coreutils.
80716
80717         * m4/inttostr.m4: New file.
80718         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80719         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80720         Require gl_CLOCK_TIME.
80721         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80722
80723 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80724
80725         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80726         not bool, to be more consistent with Unix conventions.
80727         Suggested by Bruno Haible.
80728
80729         Merge from coreutils.
80730
80731         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80732         * lib/umaxtostr.c: New files.
80733
80734         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80735         the usual <time.h> dance.
80736         (get_date): Change signature to support fractional time stamps.
80737         All callers changed.
80738         * lib/getdate.y: Include "getdate.h" first, as we can now
80739         assume C89 and don't need to worry about 'const'.
80740         Similarly, include "unlocked-io.h" near start, not in middle.
80741         Include <limits.h>.
80742         (textint.value): Use long int rather than int.
80743         (textint.digits): Use size_t rather than int.
80744         (BILLION, LOG10_BILLION): New constants.
80745         (parser_control): New member rel_ns.  Members day_ordinal,
80746         time_zone, month, day, hour, minutes, rel_year, rel_month,
80747         rel_day, rel_hour, rel_minutes, rel_seconds
80748         are now long int, not int.  Member seconds is now struct timespec,
80749         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80750         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80751         not int.
80752         (%union.intval): Now long int, not int.
80753         New member timespec.
80754         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80755         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80756         (spec): Now is a timespec or an item list.
80757         (timespec, items): New nonterminals.
80758         (time, rel, relunit, number, get_date):
80759         Add support for fractional seconds.
80760         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80761         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80762         (to_hour): First arg is now long int, not int.
80763         (to_year): Returns long int, not int.
80764         Don't treat year -70 like 70.
80765         (tm_diff): Returns long int, not int.
80766         (lookup_word): Use bool instead of int when appropriate.
80767         (yylex): Use size_t for count, not int.
80768         Detect overflow when parsing large integer constants.
80769         Add support for fractions.
80770         (get_date): Make pointers 'const' if possible.
80771         Use more-portable code to detect integer overflow.
80772         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80773         Don't use ctime; it's not reliable if the year has >4 digits.
80774
80775         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80776         This is for compatibility with BSD.
80777
80778         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80779         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80780         From coreutils' system.h.
80781
80782         * lib/userspec.c: Don't include "posixver.h".
80783         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80784         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80785         compatible extension.  Simplify code by removing a boolean int
80786         that was always nonzero if a string was nonnull.
80787
80788 2004-03-30  Jim Meyering  <jim@meyering.net>
80789
80790         Merge from coreutils.
80791
80792         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80793         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80794         on some systems one must include <grp.h> before it.
80795         Reported by Christian Krackowizer.
80796
80797 2004-03-30  Jim Meyering  <jim@meyering.net>
80798
80799         Merge from coreutils.
80800
80801         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80802
80803         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80804         an empty input stream.
80805
80806         * lib/readtokens.c: Include <stdbool.h>.
80807         (readtoken): Use `size_t' rather than int/long.
80808         All callers adjusted.
80809         Use `bool' rather than `int' where appropriate.
80810         Use memset rather than an explicit loop.
80811         Use x2nrealloc rather than xrealloc.
80812         Allow the use of `\0' as a delimiter.
80813         (readtokens): Likewise.
80814         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80815
80816 2004-03-30  Jim Meyering  <jim@meyering.net>
80817
80818         * m4/realloc.m4: Remove file, since now it does no more than
80819         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80820         the `configure.ac' section of module/realloc.
80821         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80822
80823 2004-03-30  Bruno Haible  <bruno@clisp.org>
80824
80825         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80826         nonnull.
80827
80828 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80829
80830         Merge changes to getloadavg.c from coreutils and Emacs.
80831
80832         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80833         Define to an expression, not to the empty string.
80834         Include cloexec.h and xalloc.h.
80835         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80836         Use set_cloexec_flag rather than rolling our own.
80837         * lib/cloexec.c, lib/cloexec.h: New files.
80838
80839 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80840
80841         * m4/cloexec.m4: New file.
80842
80843 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80844
80845         * lib/getopt.h: Sync with libc CVS.
80846
80847 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80848             Bruno Haible  <bruno@clisp.org>
80849
80850         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80851         mbswidth.
80852
80853 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80854             Bruno Haible  <bruno@clisp.org>
80855
80856         * lib/mbswidth.h: Include <wchar.h> only if
80857         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80858         <wchar.h>.
80859         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80860
80861 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80862
80863         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80864         Sync with libc CVS.
80865         * lib/getopt_int.h: New file, also synced from libc.
80866
80867 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80868
80869         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80870         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80871         Bring back getopt.c, getopt.h, getopt1.c.
80872
80873 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80874
80875         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80876         All uses changed.  Check for sa_sigaction member; this fixes
80877         a bug first reported by Jason Andrade in
80878         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80879
80880 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80881
80882         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80883         '#if' expressions.  Unlike the code it replaces, it does not
80884         depend on (defined _SC_PAGESIZE).  However, it does depend on
80885         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80886         first reported by Jason Andrade in
80887         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80888
80889 2004-02-25  Simon Josefsson  <jas@extundo.com>
80890
80891         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80892
80893 2004-02-25  Simon Josefsson  <jas@extundo.com>
80894
80895         * lib/strdup.h: New file.
80896         * lib/strdup.c: Include it.
80897         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80898         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80899
80900 2004-02-23  Karl Berry  <karl@gnu.org>
80901
80902         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80903         (from fencepost.gnu.org:/gd/gnuorg).
80904
80905 2004-02-23  Karl Berry  <karl@gnu.org>
80906
80907         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80908         * config/srclist.txt: add maintain/standards documents.
80909
80910 2004-02-18  Bruno Haible  <bruno@clisp.org>
80911
80912         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80913         Reported by Derek Robert Price <derek@ximbiot.com>.
80914
80915 2004-02-16  Karl Berry  <karl@gnu.org>
80916
80917         * config/mkinstalldirs, install-sh: update from automake.
80918
80919 2004-02-06  Karl Berry  <karl@gnu.org>
80920
80921         * m4/po.m4: update from gettext 0.14.1.
80922
80923 2004-02-06  Karl Berry  <karl@gnu.org>
80924
80925         * lib/config.charset: update from gettext 0.14.1.
80926
80927 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80928
80929         Add comments and code, prompted by suggestions from Bruno Haible
80930         for sh-quote.
80931         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80932         describing the enum quoting_style values.
80933         * lib/quotearg.c (quotearg_alloc): New function.
80934         (quotearg_buffer_restyled): Treat lone { and } as special.
80935         Treat = as special.  Work around bug with older shells
80936         that "see" a '\' that is really the 2nd byte of a multibyte char.
80937         Quote empty string with shell_quoting_style.
80938
80939 2004-02-03  Bruno Haible  <bruno@clisp.org>
80940
80941         * m4/pipe.m4: New file, from GNU gettext.
80942
80943 2004-02-03  Bruno Haible  <bruno@clisp.org>
80944
80945         * lib/pipe.h: New file, from GNU gettext.
80946         * lib/pipe.c: New file, from GNU gettext.
80947
80948 2004-01-27  Bruno Haible  <bruno@clisp.org>
80949
80950         * m4/execute.m4: New file, from GNU gettext.
80951
80952 2004-01-27  Bruno Haible  <bruno@clisp.org>
80953
80954         * lib/execute.h: New file, from GNU gettext.
80955         * lib/execute.c: New file, from GNU gettext.
80956         * lib/w32spawn.h: New file, from GNU gettext.
80957
80958 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80959
80960         Merge from diffutils.
80961
80962         * lib/file-type.c (file_type): Add typed memory objects.
80963         * lib/file-type.h (S_TYPEISTMO): New macro.
80964
80965         * lib/c-stack.h (c_stack_action): Remove argv argument.
80966         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80967         (die): Don't calculate message unless segv_action returns.
80968         (get_stack_location, min_address_from_argv, max_address_from_argv,
80969         volatile stack_base, volatile_stack_size): Remove.
80970         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80971         that every segmentation violation is a stack overflow.  (Ouch!)
80972         See Debian bug 136249 (still outstanding) for more info about why
80973         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80974
80975 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80976
80977         Exit-status fix from coreutils.
80978
80979         Use exit_failure consistently in place of EXIT_FAILURE,
80980         so that program exit statuses are consistent on failure.
80981
80982         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80983         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80984         * lib/argmatch.h: Comment fix to match the above.
80985         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80986         Now a macro referring to exit_failure, instead of a separate
80987         variable.  Include "exitfail.h" to get it.
80988         * lib/xstrtol.h: Include "exitfail.h".
80989         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
80990
80991         * lib/long-options.c (parse_long_options): Use prototype
80992         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
80993         for clarity.
80994
80995 2004-01-21  Jim Meyering  <jim@meyering.net>
80996
80997         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
80998         so as not to conflict with a different-sized __mktime_internal
80999         function in GNU libc.
81000         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81001         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81002
81003 2004-01-20  Karl Berry  <karl@gnu.org>
81004
81005         * config/config.guess: update from config.
81006
81007         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81008
81009 2004-01-20  Bruno Haible  <bruno@clisp.org>
81010
81011         Safer stack allocation.
81012         * lib/setenv.c: Include allocsa.h.
81013         (alloca): Remove fallback definition.
81014         (freea): Remove macro.
81015         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81016         instead of freea.
81017
81018 2004-01-20  Bruno Haible  <bruno@clisp.org>
81019
81020         * m4/eealloc.m4: New file, from GNU gettext.
81021
81022 2004-01-20  Bruno Haible  <bruno@clisp.org>
81023
81024         * m4/allocsa.m4: New file, from GNU gettext.
81025
81026 2004-01-20  Bruno Haible  <bruno@clisp.org>
81027
81028         * lib/xallocsa.h: New file, from GNU gettext.
81029         * lib/xallocsa.c: New file, from GNU gettext.
81030
81031 2004-01-20  Bruno Haible  <bruno@clisp.org>
81032
81033         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81034
81035 2004-01-20  Bruno Haible  <bruno@clisp.org>
81036
81037         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81038         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81039         specially.
81040
81041 2004-01-20  Bruno Haible  <bruno@clisp.org>
81042
81043         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81044         patch.
81045
81046 2004-01-20  Bruno Haible  <bruno@clisp.org>
81047
81048         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81049
81050 2004-01-20  Bruno Haible  <bruno@clisp.org>
81051
81052         * lib/eealloc.h: New file.
81053
81054 2004-01-20  Bruno Haible  <bruno@clisp.org>
81055
81056         * lib/binary-io.h: Avoid warnings on Cygwin.
81057
81058 2004-01-20  Bruno Haible  <bruno@clisp.org>
81059
81060         * lib/allocsa.h: New file, from GNU gettext.
81061         * lib/allocsa.c: New file, from GNU gettext.
81062
81063 2004-01-18  Karl Berry  <karl@gnu.org>
81064
81065         * doc/gpl.texi, doc/lgpl.texi: new files.
81066
81067 2004-01-18  Karl Berry  <karl@gnu.org>
81068
81069         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81070         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81071
81072 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81073
81074         Merge from coreutils.
81075
81076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81077         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81078         (gl_DEFAULT_POSIX2_VERSION): Move
81079         the documentation from 'configure' into 'config.hin',
81080         so that 'configure --help' isn't burdened by it and
81081         we don't have to worry about its formatting there.
81082         Reword the documentation so that it's more succinct
81083         and can be run together into a single paragraph.
81084         * m4/same.m4 (gl_SAME): Check for pathconf.
81085
81086 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81087
81088         Merge from coreutils.
81089
81090         * lib/posixver.c: Include posixver.h.
81091
81092         * lib/same.c: Include <stdbool.h>, <limits.h>.
81093         (_POSIX_NAME_MAX): Define if not defined.
81094         (MIN): New macro.
81095         (same_name): If file names are silently truncated, report
81096         that the file names are the same if they are the same after
81097         the silent truncation.
81098
81099         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81100         conversion function.
81101         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81102         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81103         longer needed.
81104
81105 2004-01-15  Jim Meyering  <jim@meyering.net>
81106
81107         Merge from coreutils.
81108
81109         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81110         if no library is required.
81111         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81112         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81113         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81114         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81115         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81116         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81117         value, $ac_cv_search_crypt, if it's "none required".
81118         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81119         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81120         not gl_FUNC_GETLOADAVG.
81121         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81122         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81123
81124 2004-01-15  Jim Meyering  <jim@meyering.net>
81125
81126         Merge from coreutils.
81127
81128         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81129         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81130         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81131
81132         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81133         optional configure-time default.
81134
81135         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81136
81137         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81138
81139 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81140
81141         Merge from coreutils.
81142
81143         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81144         value, $ac_cv_search_nanosleep, if it's "none required".
81145
81146 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81147
81148         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81149         with like-named macro in fnmatch.c.
81150         (EXT): Use an internal constant instead.
81151
81152         Merge fnmatch patches from glibc.
81153         * lib/fnmatch.c (mbsinit): Remove define.
81154         Add libc_hidden_ver (__fnmatch, fnmatch).
81155         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81156         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81157
81158 2004-01-14  Karl Berry  <karl@gnu.org>
81159
81160         * config/install-sh: update from automake.
81161
81162 2004-01-13  Karl Berry  <karl@gnu.org>
81163
81164         * config/install-sh: update from automake.
81165
81166 2004-01-09  Karl Berry  <karl@gnu.org>
81167
81168         * config/install-sh: update from automake.
81169
81170 2004-01-05  Karl Berry  <karl@gnu.org>
81171
81172         * config/config.{sub,guess}: update from config.
81173
81174 2003-12-31  Karl Berry  <karl@gnu.org>
81175
81176         * config/depcomp: update from automake.
81177
81178 2003-12-14  Karl Berry  <karl@gnu.org>
81179
81180         * lib/config.charset: update from gettext-runtime.
81181
81182 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81183
81184         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81185         Bug reported by Alfred M. Szmidt.
81186
81187 2003-12-03  Bruno Haible  <bruno@clisp.org>
81188
81189         * m4/gettext.m4: Upgrade from gettext-0.13.
81190         * m4/po.m4: Upgrade from gettext-0.13.
81191         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81192         * m4/intmax.m4: New file, from gettext-0.13.
81193         * m4/printf-posix.m4: New file, from gettext-0.13.
81194
81195 2003-11-29  Karl Berry  <karl@gnu.org>
81196
81197         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81198
81199 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81200             Bruno Haible  <bruno@clisp.org>
81201
81202         * lib/printf-parse.h: Don't include sys/types.h.
81203         (ARG_NONE): New macro.
81204         (char_directive): Change type of *arg_index fields to size_t.
81205         * lib/printf-parse.c: Don't include sys/types.h.
81206         (SSIZE_MAX): Remove macro.
81207         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81208         Remove unnecessary overflow check.
81209         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81210         fields.
81211
81212 2003-11-25  Bruno Haible  <bruno@clisp.org>
81213
81214         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81215
81216 2003-11-25  Bruno Haible  <bruno@clisp.org>
81217
81218         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81219         gt_TYPE_SSIZE_T.
81220
81221 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81222
81223         * modules/alloca: Remove dependency on xalloc.
81224
81225 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81226
81227         * lib/alloca.c: Remove dependency on xalloc module.
81228         (xalloc_die): Remove.
81229         (memory_full) [!defined emacs]: New macro.
81230         [!defined emacs]: Don't include xalloc.h.
81231         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81232         address arithmetic overflows.  Change datatypes a bit to avoid
81233         unnecessary casts.
81234
81235 2003-11-22  Jim Meyering  <jim@meyering.net>
81236
81237         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81238         s/size/size_t/.
81239
81240 2003-11-21  Karl Berry  <karl@gnu.org>
81241
81242         * config/config.{sub,guess}: update from config.
81243
81244 2003-11-18  Karl Berry  <karl@gnu.org>
81245
81246         * config/config.{sub,guess}: update from config.
81247
81248         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81249
81250 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81251
81252         * README: Mention that S+T cannot overflow if S is the size of
81253         an existing object and T is sufficiently small.
81254
81255 2003-11-17  Jim Meyering  <jim@meyering.net>
81256
81257         On systems without utime and without a utimes function capable of
81258         dealing with a NULL struct utimbuf* argument, this utime replacement
81259         could -- in unusual circumstances -- leak a file descriptor.
81260         * lib/utime.c: Include <unistd.h> and <errno.h>.
81261         (utime_null): Be sure to close `fd' and to preserve errno.
81262         Reported by Geoff Collyer via Arnold Robbins.
81263
81264 2003-11-17  Bruno Haible  <bruno@clisp.org>
81265
81266         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81267         (Depends-on): Add xsize.
81268
81269 2003-11-17  Bruno Haible  <bruno@clisp.org>
81270
81271         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81272
81273 2003-11-17  Bruno Haible  <bruno@clisp.org>
81274
81275         * lib/vasnprintf.c (alloca): Remove fallback definition.
81276         (freea): Remove definition.
81277         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81278         Reported by Paul Eggert.
81279
81280 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81281             Bruno Haible  <bruno@clisp.org>
81282
81283         Protect against address arithmetic overflow.
81284         * lib/printf-args.h: Include stddef.h.
81285         (arguments): Change type of field 'count' to size_t.
81286         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81287         'unsigned int' where appropriate.
81288         * lib/printf-parse.h: Include sys/types.h.
81289         (char_directive): Change type of *arg_index fields to ssize_t.
81290         (char_directives): Change type of fields 'count', max_*_length to
81291         size_t.
81292         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81293         (SSIZE_MAX): Define fallback value.
81294         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81295         instead of 'int' where appropriate. Check a_allocated, d_allocated
81296         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81297         * lib/vasnprintf.c: Include xsize.h.
81298         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81299         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81300         overflow. Avoid wraparound when converting a width or precision from
81301         decimal to binary.
81302
81303 2003-11-16  Bruno Haible  <bruno@clisp.org>
81304
81305         Update from GNU gettext.
81306         * lib/printf-parse.c: Generalize to it can be compiled for wide
81307         strings.
81308         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81309         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81310         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81311         SNPRINTF): New macros.
81312         Don't include <alloca.h> if the file is used inside libintl.
81313         (local_wcslen): New function, for Solaris 2.5.1.
81314         (VASNPRINTF): Use it instead of wcslen.
81315
81316 2003-11-16  Bruno Haible  <bruno@clisp.org>
81317
81318         * lib/xsize.h (xmax): New function.
81319         (xsum, xsum3, xsum4): Declare as "pure" functions.
81320
81321 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81322
81323         * modules/xalloc (Files): Undo latest change, since xalloc.h
81324         no longer needs SIZE_MAX or PTRDIFF_MAX.
81325
81326 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81327
81328         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81329         gl_PTRDIFF_MAX.
81330
81331 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81332
81333         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81334         "return", to pacify some unknown compiler.  Problem reported
81335         by Joerg Schilling.
81336
81337 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81338
81339         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81340         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81341         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81342         heuristic is just as accurate as far as we know, and it removes a
81343         dependency on size_max.m4 and ptrdiff_max.m4.
81344
81345 2003-11-11  Bruno Haible  <bruno@clisp.org>
81346
81347         * modules/xsize (Files): Add m4/size_max.m4.
81348         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81349
81350 2003-11-11  Bruno Haible  <bruno@clisp.org>
81351
81352         * m4/size_max.m4: New file.
81353         * m4/ptrdiff_max.m4: New file.
81354         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81355         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81356         (gl_XALLOC): Invoke it.
81357
81358 2003-11-11  Bruno Haible  <bruno@clisp.org>
81359
81360         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81361         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81362         defined.
81363
81364 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81365
81366         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81367         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81368         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81369         From Bruno Haible.
81370         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81371         not (size_t) -1, since it's defined here.
81372
81373 2003-11-09  Karl Berry  <karl@gnu.org>
81374
81375         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81376
81377 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81378
81379         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81380         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81381         Reject sizes of exactly SIZE_MAX bytes.
81382         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81383         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81384
81385 2003-11-05  Bruno Haible  <bruno@clisp.org>
81386
81387         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81388         SIZE_MAX defined in <limits.h> on Solaris.
81389
81390 2003-11-04  Jim Meyering  <jim@meyering.net>
81391
81392         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81393         variable names, rather than @VAR@.
81394         * modules/poll: Likewise.
81395
81396 2003-11-04  Bruno Haible  <bruno@clisp.org>
81397
81398         * modules/xsize: New file.
81399         * modules/linebreak: Depend on xsize.
81400         * MODULES.html.sh (func_all_modules): Add xsize.
81401
81402 2003-11-04  Bruno Haible  <bruno@clisp.org>
81403
81404         * m4/xsize.m4: New file.
81405
81406 2003-11-04  Bruno Haible  <bruno@clisp.org>
81407
81408         * lib/xsize.h: New file.
81409         * lib/linebreak.c: Include xsize.h.
81410         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81411         argument for overflow.
81412         Suggested by Paul Eggert.
81413
81414 2003-11-03  Karl Berry  <karl@gnu.org>
81415
81416         * config/config.{guess,sub}: update from config.
81417
81418 2003-11-03  Jim Meyering  <jim@meyering.net>
81419
81420         * modules/userspec (lib_SOURCES): Add userspec.h.
81421         (Include): Add "userspec.h".
81422         Improve description.
81423
81424 2003-11-03  Jim Meyering  <jim@meyering.net>
81425
81426         * lib/userspec.c: Include "userspec.h".
81427         * lib/userspec.h: New file.
81428
81429 2003-11-03  Bruno Haible  <bruno@clisp.org>
81430
81431         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81432
81433 2003-11-03  Bruno Haible  <bruno@clisp.org>
81434
81435         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81436         available, to avoid (extremely rare) race condition.
81437         Suggested by Paul Eggert.
81438
81439 2003-11-02  Karl Berry  <karl@gnu.org>
81440
81441         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81442
81443 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81444
81445         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81446         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81447         (read_filesystem_list): Set and use me_type_malloced.
81448         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81449         whatever the type happens to be), for brevity and consistency.
81450         Check for size calculation overflow on Alphas running OSF/1.
81451
81452 2003-10-31  Jim Meyering  <jim@meyering.net>
81453
81454         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81455
81456         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81457
81458 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81459             Bruno Haible  <bruno@clisp.org>
81460
81461         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81462         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81463
81464 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81465
81466         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81467         netbsd*-gnu*.  Suggested by Robert Millan.
81468
81469 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81470
81471         * modules/group-member: Depend on stdbool.
81472
81473 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81474
81475         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81476
81477 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81478
81479         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81480         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81481         after the 'gnu' in these cases.  This fixes some bugs in the
81482         previous change, and is based on suggestions by Robert Millan.
81483
81484 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81485
81486         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81487         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81488         no longer needed.
81489         * lib/quotearg.c (quotearg_n_options): Use it.
81490         * lib/group-member.c: Include <stdbool.h>.
81491         (free_group_info): Arg is now const *; don't free arg.
81492         (get_group_info): Now returns bool and accepts struct group_info *,
81493         rather than returning a malloc'ed struct group_info *.
81494         All uses changed.  Check for overflow in internal size calculation.
81495
81496         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81497         rather than xmalloc/xrealloc.
81498         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81499         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81500         conformance bug: the old code used a pointer after freeing the
81501         storage that it addressed.
81502         * lib/hash.c (hash_initialize): Simplify the code by using
81503         xalloc_oversized rather than doing it by hand.
81504         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81505         the buffer preserved.  Use free and xmalloc instead.
81506         * lib/quotearg.c (quotearg_n_options): Likewise.
81507         Use a simpler test for size overflow.  Don't use xalloc_oversized
81508         because unsigned int might be wider than size_t (!); this suggests
81509         that we should switch from unsigned int to size_t for slot numbers.
81510
81511 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81512
81513         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81514         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81515         NetBSD kernels.  Requested by Richard Stallman.
81516
81517 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81518
81519         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81520         to allocate the returned structure.  Do not allocate a subarray,
81521         as x2nrealloc will do that.
81522         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81523         instead of xnrealloc.
81524         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81525
81526 2003-10-27  Bruno Haible  <bruno@clisp.org>
81527
81528         * lib/stdbool_.h: Better support for BeOS.
81529
81530 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81531
81532         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81533         now uses inline.
81534
81535 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81536
81537         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81538         callers that want to do their own size-overflow checking.  Include
81539         <stdbool.h>, since xalloc_oversized returns bool.
81540         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81541         to use xalloc_oversized.
81542
81543         Add two functions x2realloc, x2nrealloc, for programs that grow
81544         arrays dynamically by doubling their sizes.
81545         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81546         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81547         New functions.
81548
81549         Port to C99 semantics for 'inline' of external functions.
81550         Bug reported by Bruno Haible.
81551         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81552         with the old contents of xnmalloc.
81553         (xnmalloc, xmalloc): Use it.
81554         (xnrealloc_inline): New static inline function,
81555         with the old contents of xnrealloc.
81556         (xnrealloc, xrealloc): Use it.
81557
81558         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81559         that.
81560
81561 2003-10-26  Karl Berry  <karl@gnu.org>
81562
81563         * config/srclist.txt (COPYING.DOC): no longer available from
81564         /gd/gnuorg; don't know where the ultimate source is.
81565
81566 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81567
81568         Fix several address-calculation bugs in the hash modules,
81569         plus some minor code cleanup.
81570
81571         * lib/hash.h: Include <stdbool.h>, for bool.
81572         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81573         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81574         hash_get_n_entries, hash_get_max_bucket_length,
81575         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81576         hash_rehash): Use size_t rather than unsigned.
81577         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81578         hash_get_n_buckets_used, hash_get_n_entries,
81579         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81580         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81581         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81582         Likewise.
81583         (SIZE_MAX): Define if not defined.
81584         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81585         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81586         hash_print):
81587         Use const * when possible.
81588         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81589         (check_tuning): Fix bug: if tuning parameters were very close to
81590         0 or 1, rounding errors could have caused subscript violations.
81591         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81592         (hash_initialize): Add 'fail:' label
81593         to free table and return NULL, and use it to simplify code.
81594         Use calloc rather than clearing the storage ourself.
81595         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81596         buffer size calculations.
81597         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81598         Include <stddef.h>, for size_t.
81599         * lib/hash-pjw.c (hash_pjw): Likewise.
81600         Switch to method described by Bruno Haible.
81601         Include <limits.h>, for CHAR_BIT.
81602         (SIZE_BITS): New macro.
81603
81604 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81605
81606         * m4/getline.m4 (AM_FUNC_GETLINE):
81607         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81608         hosts.  Problem reported by Derek Robert Price in
81609         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81610         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81611         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81612
81613 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81614
81615         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81616         ceiling the allocation at NMAX bytes rather than silently
81617         discarding input bytes before NMAX is reached.  This makes
81618         a difference only if NMAX exceeds SIZE_MAX / 2.
81619
81620         * lib/obstack.c: Merge from glibc.
81621         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81622         Add libc_hidden_def (_obstack_newchunk).
81623         (_obstack_free) [! defined _LIBC]: Remove.
81624         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81625         a clone of the function body.
81626         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81627         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81628
81629         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81630         glibc.
81631         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81632         arg to memcpy.
81633
81634         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81635         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81636         Don't use lvalue casts, as GCC plans to remove support for them
81637         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81638         was also present in the non-GCC version, indicating that this
81639         code had always been buggy and had never been widely used.
81640         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81641         Use the fast variant of each macro, rather than copying the
81642         definiens of the fast variant; that way, we'll be more likely to
81643         catch future bugs in the fast variants.
81644
81645 2003-10-20  Bruno Haible  <bruno@clisp.org>
81646
81647         * modules/wait-process: New file.
81648         * MODULES.html.sh (func_all_modules): Add wait-process.
81649
81650 2003-10-20  Bruno Haible  <bruno@clisp.org>
81651
81652         * m4/wait-process.m4: New file.
81653
81654 2003-10-20  Bruno Haible  <bruno@clisp.org>
81655
81656         * lib/wait-process.h: New file, from GNU gettext.
81657         * lib/wait-process.c: New file, from GNU gettext.
81658
81659 2003-10-19  Jim Meyering  <jim@meyering.net>
81660
81661         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81662         HPUX 10.20.
81663
81664 2003-10-18  Karl Berry  <karl@gnu.org>
81665
81666         * config/config.guess: update from config.
81667
81668 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81669
81670         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81671         (getgroups): First arg is int, not size_t.
81672         Don't let 'free' mangle errno.
81673
81674 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81675
81676         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81677
81678 2003-10-16  Karl Berry  <karl@gnu.org>
81679
81680         * config/config.{guess,sub}: update from config.
81681
81682 2003-10-16  Jim Meyering  <jim@meyering.net>
81683
81684         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81685         memcpy.
81686
81687 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81688
81689         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81690         (SIZE_MAX): Remove.
81691         (new_exclude, add_exclude_file): Initial size no longer needs to
81692         be a power of 2.
81693         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81694         our own address arithmetic overflow checking.
81695
81696         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81697         (fnmatch): Do not alloca more than 2000 wide characters;
81698         instead, use malloc for large buffers.
81699         Check for address arithmetic overflow, and return -1
81700         with errno set to ENOMEM in that case.
81701         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81702         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81703         instead, return -1.  Check for address arithmetic overflow.
81704
81705 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81706
81707         Handle invalid suffixes and overflow independently, so that
81708         callers can treat them independently as needed.  Fix some bugs in
81709         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81710         suffix for a human-readable blocksize.  The major caller-visible
81711         change is the addition of a new
81712         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81713         that both overflow and suffix chars were found.
81714
81715         * lib/human.c (humblock): Don't check separately for invalid suffix
81716         char; that is xstrtoumax's job (now that its bug is fixed).
81717         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81718         INTMAX_MAX]: New macros.
81719         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81720         TYPE_MAXIMUM): New macros.
81721         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81722         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81723         if overflow occurs, as it's what __strtol does and it's more useful
81724         in practice.
81725         (__xstrtol): If __strtol reports some error other than ERANGE,
81726         reflect it to the caller as LONGINT_INVALID.  If it reports
81727         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81728         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81729         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81730         value.
81731         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81732         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81733         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81734         [defined UINTMAX_MAX]: New macros.
81735
81736 2003-10-14  Bruno Haible  <bruno@clisp.org>
81737
81738         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81739
81740 2003-10-14  Bruno Haible  <bruno@clisp.org>
81741
81742         * m4/sig_atomic_t: New file, from GNU gettext.
81743         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81744
81745 2003-10-14  Bruno Haible  <bruno@clisp.org>
81746
81747         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81748         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81749         Also use volatile where needed.
81750
81751 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81752
81753         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81754         Change maintainer from Bruno Haible to 'all'.
81755
81756 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81757
81758         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81759
81760 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81761
81762         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81763         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81764         and define in terms of the other primitives.
81765         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81766         (SIZE_MAX): Define if not already defined.
81767         (array_size_overflow): New function.
81768         (xalloc_die): Abort instead of exiting if 'error' returns.
81769         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81770         (xmalloc, xrealloc): Use them.
81771         (xcalloc): Check for address arithmetic overflow.
81772         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81773         a bit faster than strcpy.
81774
81775 2003-10-10  Simon Josefsson  <jas@extundo.com>
81776
81777         * modules/argp (Depends-on): Add restrict and strcase.
81778
81779 2003-10-10  Simon Josefsson  <jas@extundo.com>
81780
81781         * m4/argp.m4: Add AC_C_INLINE.
81782
81783 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81784
81785         Merge getpass from libc, plus a few fixes.
81786
81787         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81788         Include <stdbool.h>.
81789         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81790         __fsetlocking to empty.
81791         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81792         do include <bits/libc-lock.h>.
81793         Do not include <fcntl.h>; not needed.
81794         [_LIBC]: Include <wchar.h>.
81795         (NOTCANCEL_MODE): New macro.
81796         (flockfile, funlockfile) [_LIBC]: New macros.
81797         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81798         [!_LIBC]: New macros.
81799         (call_fclose): New function.
81800         (getpass): Use it.  Save tty stream separately; this simplifies the
81801         code and makes it more reliable if stdin happens to equal stdout.
81802         Invoke __fsetlocking on tty.
81803         Handle thread cancellation if needed.
81804         Namespace cleanup (use __tcgetattr, __getline).
81805         Use bool for Booleans.
81806         [USE_IN_LIBIO]: Handle wide streams.
81807         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81808         stream might go where.
81809
81810         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81811         doesn't have to include <stdio.h> before us.
81812         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81813         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81814         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81815         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81816         if not declared, so that we can use getpass.c code from libc without
81817         rewriting it.
81818         (flockfile, ftrylockfile, funlockfile): New macros.
81819
81820 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81821
81822         * modules/getpass: Depend on stdbool.
81823
81824 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81825
81826         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81827
81828 2003-10-07  Karl Berry  <karl@gnu.org>
81829
81830         * config/config.{guess,sub}: update from config.
81831
81832 2003-10-06  Jim Meyering  <jim@meyering.net>
81833             Bruno Haible  <bruno@clisp.org>
81834
81835         This lets translators provide better translations for the
81836         "Written by ..." part of --version output.
81837         * lib/version-etc.h: Include stdarg.h.
81838         (version_etc_copyright): Declare as readonly.
81839         (version_etc): Make this function variadic with a NULL-terminated list
81840         of author name strings.
81841         (version_etc_va): New declaration.
81842         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81843         (version_etc_copyright): Declare as readonly.
81844         (version_etc_va): New function. Provide a different translatable string
81845         for each possible number of authors < 10. Abbreviate when there are 10
81846         authors or more.
81847         (version_etc): Make this function variadic. Call version_etc_va.
81848         Suggestion from Gary V. Vaughan.
81849
81850         * lib/long-options.h (parse_long_options): Change prototype: the
81851         authors string is moved to the end and becomes variadic.
81852         * lib/long-options.c: Include stdarg.h.
81853         (parse_long_options): Make this function variadic, too.
81854         Call version_etc_va, not version_etc.
81855
81856 2003-10-06  Bruno Haible  <bruno@clisp.org>
81857
81858         * modules/version-etc-2: Remove file.
81859         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81860
81861 2003-10-06  Bruno Haible  <bruno@clisp.org>
81862
81863         * modules/fatal-signal: New file.
81864         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81865
81866 2003-10-06  Bruno Haible  <bruno@clisp.org>
81867
81868         * m4/fatal-signal.m4: New file.
81869         * m4/signalblocking.m4: New file, from GNU gettext.
81870
81871 2003-10-06  Bruno Haible  <bruno@clisp.org>
81872
81873         * lib/version-etc-2.h: Remove file.
81874         * lib/version-etc-2.c: Remove file.
81875
81876 2003-10-06  Bruno Haible  <bruno@clisp.org>
81877
81878         * lib/fatal-signal.h: New file, from GNU gettext.
81879         * lib/fatal-signal.c: New file, from GNU gettext.
81880
81881 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81882
81883         * README: Rework advice for preventing empty .o files.
81884         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81885         not <sys/types.h>.
81886
81887 2003-10-04  Karl Berry  <karl@gnu.org>
81888
81889         * lib/argp*: update from libc.
81890
81891 2003-10-04  Karl Berry  <karl@gnu.org>
81892
81893         * config/config.{guess,sub}: update from config.
81894
81895 2003-10-02  Bruno Haible  <bruno@clisp.org>
81896
81897         * modules/lchown (Include): Add lchown.h.
81898         * modules/time_r (Include): Use "..." syntax.
81899         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81900
81901 2003-10-01  Simon Josefsson  <jas@extundo.com>
81902
81903         * MODULES.html.sh (func_all_modules): Move gethostname from section
81904         'based on' to section 'lacking' POSIX:2001.
81905
81906 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81907
81908         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81909         to output mode on the same stream.
81910
81911 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81912
81913         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81914         Fix arg typo in previous patch.
81915
81916 2003-09-28  Jim Meyering  <jim@meyering.net>
81917
81918         * lib/error.c: Correct cpp indentation.
81919
81920 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81921
81922         * modules/free: New file.
81923
81924 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81925
81926         * m4/free.m4: New file.
81927
81928 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81929
81930         * lib/minmax.h (MIN, MAX)
81931         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81932         Omit the special code that used __typeof__, since we worry that
81933         it could be more trouble than it's worth.  See:
81934         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81935         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81936
81937         * lib/free.c: New file.
81938
81939 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81940
81941         Trivial fixes to Makefile.am parts of module listings.
81942         * modules/strstr: Append strstr.h to lib_SOURCES.
81943         * modules/strcase: Likewise, for strcase.h.
81944
81945 2003-09-27  Karl Berry  <karl@gnu.org>
81946
81947         * config/mkinstalldirs: update from automake.
81948
81949 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81950
81951         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81952         (error_tail): Do not loop, reallocating temporary buffer, since
81953         the output cannot contain more wide characters than the input
81954         contains bytes, the size must be big enough already.  This avoids
81955         one potential size overflow calculation.  Check for size overflow
81956         when calculating temporary buffer size.  Free temporary buffer
81957         when done, if it was allocated with malloc; this plugs a memory
81958         leak.  Remove casts from void * to pointers, that are no longer
81959         needed now that we're assuming C89 or better.
81960
81961         Merge error changes from glibc.
81962
81963         * lib/error.c, error.h: Update copyright notice header to match glibc.
81964         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81965         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81966         Disable cancellation while printing error.
81967         * lib/error.h: Prepend __ to parameter names.
81968
81969 2003-09-26  Jim Meyering  <jim@meyering.net>
81970
81971         * lib/error.c (error_tail): Move some declarations
81972         into inner scope where the local variables are used.
81973
81974 2003-09-26  Bruno Haible  <bruno@clisp.org>
81975
81976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81977         stpncpy().
81978         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81979
81980 2003-09-26  Bruno Haible  <bruno@clisp.org>
81981
81982         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81983         (stpncpy): Define as alias for gnu_stpncpy.
81984         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81985
81986 2003-09-25  Simon Josefsson  <jas@extundo.com>
81987
81988         * lib/xgetdomainname.h: New file.
81989         * lib/xgetdomainname.c: New file.
81990
81991 2003-09-25  Simon Josefsson  <jas@extundo.com>
81992             Bruno Haible  <bruno@clisp.org>
81993
81994         * modules/getdomainname: New file.
81995         * modules/xgetdomainname: New file.
81996         * MODULES.html.sh (func_all_modules): Add getdomainname,
81997         xgetdomainname.
81998
81999 2003-09-25  Simon Josefsson  <jas@extundo.com>
82000             Bruno Haible  <bruno@clisp.org>
82001
82002         * m4/getdomainname.m4: New file.
82003
82004 2003-09-25  Simon Josefsson  <jas@extundo.com>
82005             Bruno Haible  <bruno@clisp.org>
82006
82007         * lib/getdomainname.h: New file.
82008         * lib/getdomainname.c: New file.
82009
82010 2003-09-25  Karl Berry  <karl@gnu.org>
82011
82012         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82013
82014 2003-09-25  Karl Berry  <karl@gnu.org>
82015
82016         * config/install-sh: update from automake.
82017
82018 2003-09-25  Bruno Haible  <bruno@clisp.org>
82019
82020         * modules/version-etc-2: New file, from modules/version-etc with
82021         modifications.
82022         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82023
82024 2003-09-25  Bruno Haible  <bruno@clisp.org>
82025
82026         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82027         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82028
82029 2003-09-24  Simon Josefsson  <jas@extundo.com>
82030
82031         * modules/xgethostname: Add xgethostname.h.
82032
82033 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82034
82035         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82036         the buffer associated with the argument.  Bug reported by
82037         Simon Josefsson.
82038
82039 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82040
82041         * README: Document assumptions that 'int' is at least 32 bits
82042         wide, that integer arithmetic is 2's complement without overflow,
82043         that there are no holes in integer values, that adding sizes of
82044         two nonoverlapping objects can't overflow, and that all-bits-zero
82045         yields scalar zero.  Fix spelling and capitalization typos.
82046
82047 2003-09-19  Karl Berry  <karl@gnu.org>
82048
82049         * lib/argp.h: update from libc.
82050
82051 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82052
82053         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82054         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82055         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82056
82057 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82058
82059         * gnulib-tool: Use "test -h", not "test -L", for portability
82060         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82061         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82062         (sed_extract_prog): Issue s commands one-by-one, rather than
82063         using \| in one s command.
82064
82065 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82066
82067         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82068         input error, instead of returning NULL the next time we are called
82069         (and therefore losing track of errno).
82070
82071 2003-09-16  Bruno Haible  <bruno@clisp.org>
82072
82073         * gnulib-tool (func_create_testdir): Warn about duplicated
82074         dependencies.
82075
82076 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82077
82078         * modules/argmatch, modules/fatal, modules/obstack,
82079         modules/xalloc, modules/xgethostname: Sort dependencies by
82080         importance, not alphabetically.
82081
82082 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82083
82084         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82085         fails, so that the caller gets the proper errno.
82086
82087         * lib/readutmp.c (read_utmp): Likewise.
82088         Check for fstat error.  Close stream and free storage
82089         when failing.
82090
82091 2003-09-14  Karl Berry  <karl@gnu.org>
82092
82093         * config/srclist.txt (strdup.c): disable for c89 changes.
82094
82095 2003-09-14  Jim Meyering  <jim@meyering.net>
82096
82097         * lib/getloadavg.c: Correct cpp indentation.
82098         * lib/strdup.c: Likewise.
82099         * lib/vasnprintf.c: Likewise.
82100
82101 2003-09-14  Bruno Haible  <bruno@clisp.org>
82102
82103         * modules/fwriteerror: New file.
82104         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82105
82106 2003-09-14  Bruno Haible  <bruno@clisp.org>
82107
82108         * lib/fwriteerror.h: New file.
82109         * lib/fwriteerror.c: New file.
82110
82111 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82112
82113         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82114         modules/xgethostname, modules/xalloc: Depend on exit.
82115
82116 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82117
82118         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82119
82120         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82121         and AC_MINIX, too, so that their extensions are available.
82122
82123         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82124         This macro has been superseded by gl_BACKUPFILE.
82125
82126         More patches to assume C89 or better.
82127
82128         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82129
82130         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82131         unconditionally.
82132         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82133         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82134         Include <string.h>, <stdlib.h> unconditionally.
82135         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82136         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82137         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82138         headers or for string.h.
82139         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82140         or strtoul.
82141
82142         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82143         headers.
82144         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82145         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82146         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82147         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82148         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82149         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82150         memcpy, memset.
82151         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82152         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82153         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82154         strtol.
82155         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82156         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82157         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82158         strtoul.
82159
82160 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82161
82162         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82163         * lib/obstack.c [!defined _LIBC]: Likewise.
82164         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82165         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82166         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82167
82168         More changes to assume C89 or better.
82169
82170         * lib/error.c (error_tail): Assume vprintf.
82171
82172         * lib/argmatch.c (getenv): Remove decl.
82173         * lib/progreloc.c (get_full_program_name): Define via prototype.
82174         * lib/setenv.c (clearenv): Likewise.
82175         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82176         needed.
82177         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82178         (malloc, memcpy): Remove decls.
82179         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82180         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82181         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82182         (memcpy): Remove macro.
82183         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82184         (__P): Remove.  All uses removed.
82185         (PTR): Remove.  All uses changed to void *.
82186         (CHAR_BIT, NULL): Remove.
82187         (spaces, zeros, memset_space, memset_zero)
82188         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82189         Remove.
82190         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82191         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82192         Define with prototype.
82193         Remove now-unnecessary prototype decl.
82194         (extra_args_spec): Assume ANSI C.  All uses changed.
82195         (extra_args_spec_iso): Remove.
82196         (my_strftime, emacs_strftimeu): Define via prototype.
82197         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82198         unconditionally.
82199         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82200         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82201         (strtoul, strtol): Remove decls.
82202         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82203         LONG_MAX): Remove.
82204         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82205         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82206         (LOCALE_PARAM_PROTO): New macro.
82207         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82208         (INTERNAL (strtol), strtol): Define with a prototype.
82209         (PARAMS): Remove.  All uses removed.
82210         * lib/tempname.c: Include <string.h> unconditionally.
82211         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82212         * lib/xgethostname.c (main): Define with a prototype.
82213         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82214         Include <stdlib.h> unconditionally.
82215         (calloc, malloc, realloc, free): Remove decls.
82216         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82217         Include <stdlib.h> unconditionally.  Sort include file names.
82218         (strtod): Remove.
82219         (xstrtod): Define with a prototype.
82220         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82221         (strtol, strtoul): Remove decls.
82222
82223 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82224
82225         More patches to assume C89 or better.
82226         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82227         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82228         string.h, memchr, STDC_HEADERS.
82229
82230 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82231
82232         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82233         Include <stdlib.h>, <string.h> unconditionally.
82234         Remove now-unnecessary cast to char *.
82235         * lib/strnlen.c: Include <string.h> unconditionally.
82236         * lib/yesno.c (yesno): Define with a prototype.
82237
82238 2003-09-11  Bruno Haible  <bruno@clisp.org>
82239
82240         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82241
82242 2003-09-10  Jim Meyering  <jim@meyering.net>
82243
82244         * lib/error.c: Correct indentation of cpp directives.
82245
82246 2003-09-10  Bruno Haible  <bruno@clisp.org>
82247
82248         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82249         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82250         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82251         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82252         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82253         <stdlib.h> and <string.h> checks.
82254         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82255         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82256
82257 2003-09-10  Bruno Haible  <bruno@clisp.org>
82258
82259         * lib/strcspn.c: Include <string.h> unconditionally.
82260         * lib/strpbrk.c: Include <string.h> unconditionally.
82261         * lib/strstr.c: Include <string.h> unconditionally.
82262         * lib/unicodeio.c: Include <string.h> unconditionally.
82263         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82264         * lib/unsetenv.c: Likewise.
82265         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82266         * lib/yesno.c: Include <stdlib.h> unconditionally.
82267         (rpmatch): Add prototype.
82268
82269 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82270
82271         More patches to assume C89 or better.
82272         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82273         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82274         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82275         or for string.h.
82276         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82277         stdlib.h.
82278         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82279         C headers.
82280         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82281         string.h.
82282         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82283         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82284         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82285         or for string.h.
82286         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82287         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82288         C headers.
82289         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82290         memcpy.
82291         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82292         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82293         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82294         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82295         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82296         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82297         string.h, free.
82298         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82299         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82300         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82301         C headers, or for string.h.
82302         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82303         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82304         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82305         headers, memory.h, stdlib.h, string.h, strings.h.
82306         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82307         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82308         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82309         strchr.
82310         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82311         headers, memory.h, string.h.
82312         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82313         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82314         free.
82315         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82316         headers.
82317         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82318         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82319         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82320         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82321         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82322
82323 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82324
82325         More K&R removal.
82326
82327         * lib/acosl.c (main): Use a prototype.
82328         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82329         tanl.c: Likewise.
82330
82331         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82332
82333         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82334         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82335         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82336         with a prototype.
82337         * lib/getopt.c (const): Remove macro.
82338         Include <string.h> unconditionally.
82339         (my_index): Remove; all uses changed to strchr.
82340         (strlen): Remove decl.
82341         (exchange): Remove forward decl; no longer needed.
82342         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82343         Define with prototype.
82344         * lib/getopt1.c (const): Remove macro.
82345         (getopt_long, getopt_long_only, main): Define with prototype.
82346
82347         * lib/getugroups.c: Include <string.h> unconditionally.
82348
82349         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82350         (getusershell, setusershell, endusershell, readname, main):
82351         Define with prototypes.
82352
82353         * lib/group-member.c: Include group-member.h first.
82354         Include <stdlib.h> unconditionally.
82355
82356         * lib/hard-locale.c: Include hard-locale.h first.
82357         Include <stdlib.h>, <string.h> unconditionally.
82358
82359         * lib/hash.c (free, malloc): Remove decls.
82360         Include <stdlib.h> unconditionally.
82361
82362         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82363         (getenv): Do not declare.
82364
82365         * lib/idcache.c: Include <string.h> unconditionally.
82366
82367         * lib/long-options.c: Include long-options.h first, to test interface.
82368         Include <stdlib.h> unconditionally.
82369
82370         * lib/makepath.c: Include makepath.h first, to test interface.
82371         Include <stdlib.h> and <string.h> unconditionally.
82372
82373         * lib/linebuffer.c: Include <stdlib.h>.
82374         (free): Remove decl.
82375
82376         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82377         stddef.h. rpl_malloc returns void *, not char *.
82378         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82379         prototype.
82380
82381         * lib/md5.h: Include <limits.h> unconditionally.
82382         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82383         (__P): Remove; all uses removed.
82384         * lib/md5.c: Include "md5.h" first.
82385         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82386         md5_buffer, md5_process_bytes, md5_process_block):
82387         Define with prototypes.
82388         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82389         * lib/sha.c: Include "sha.h" first.
82390         Include <stdlib.h>, <string.h> unconditionally.
82391
82392         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82393         * lib/memcmp.c (__ptr_t): Likewise.
82394         * lib/memrchr.c (__ptr_t): Likewise.
82395         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82396         Include <string.h> unconditionally.
82397         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82398         * lib/memchr.c: Include <stdlib.h> unconditionally.
82399         * lib/memchr.c (LONG_MAX): Remove.
82400         * lib/memrchr.c (LONG_MAX): Likewise.
82401         * lib/memchr.c (__memchr): Define via a prototype.
82402         * lib/memrchr.c (__memrchr): Likewise.
82403         * lib/memcmp.c (__P): Remove, and remove all uses.
82404         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82405         Remove forward decls; no longer needed.
82406         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82407         Use types required by C89 in prototype.
82408
82409         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82410         * lib/savedir.c: Likewise.
82411         * lib/mkdir.c (free): Remove decl.
82412         * lib/rmdir.c (rmdir): Define with a prototype.
82413         * lib/savedir.c: Include savedir.h first, to test interface.
82414
82415         * lib/mktime.c (STDC_HEADERS): Remove.
82416         Include <stdlib.h>, <string.h> unconditionally.
82417
82418         * lib/modechange.c: Include <stdlib.h> unconditionally.
82419         (malloc): Remove decl.
82420
82421         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82422         (free): Remove decl.
82423
82424         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82425         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82426         (This type really should be intptr_t, but that's a C99ism.)
82427         (_obstack_memcpy): Remove: all uses changed to memcpy.
82428         Include <string.h> unconditionally.
82429         (struct obstack): Assume __STDC__ for types of members
82430         chunkfun, freefun, extra_arg.
82431         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82432         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82433         obstack_begin, obstack_specify_allocation,
82434         obstack_specify_allocation_with_arg, obstack_chunkfun,
82435         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82436         Remove unprototyped decls and the macros that use them.
82437         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82438         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82439         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82440         (defined __STDC__ && __STDC__)]:
82441         Remove nonprototyped code.
82442         Include <stdlib.h> unconditionally.
82443         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82444         _obstack_allocated_p, _obstack_free, obstack_free,
82445         _obstack_memory_used, print_and_abort):
82446         Define using prototypes.
82447         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82448         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82449         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82450         obstack_next_free, obstack_object_size, obstack_room) [0]:
82451         Remove unused, unprototyped code.
82452
82453         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82454
82455         * lib/physmem.c (physmem_total, physmem_available, main): Define
82456         with prototypes.
82457
82458         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82459         (main): Define with a prototype.
82460
82461         * lib/posixver.c (getenv): Remove decl.
82462
82463         * lib/putenv.c (malloc): Returns void *, not char *.
82464         Include <string.h> unconditionally.
82465         (strchr, memcpy, NULL): Do not define.
82466
82467         * lib/readtokens.c: Include readtokens.h first, to test interface.
82468         Include <stdlib.h>, <string.h> unconditionally.
82469         (init_tokenbuffer): Define with a prototype.
82470
82471         * lib/regex.c (PARAMS): Remove.  All uses removed.
82472         All uses of _RE_ARGS removed, too.
82473         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82474         unconditionally.
82475         (bzero): Assume memset exists.
82476         (memcmp, memcpy, NULL): Remove.
82477         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82478         char, or assignments to local vars of type signed char.
82479         (init_syntax_once, PREFIX(extract_number_and_incr),
82480         PREFIX(print_partial_compiled_pattern),
82481         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82482         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82483         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82484         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82485         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82486         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82487         wcs_compile_range, byte_compile_range, truncate_wchar,
82488         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82489         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82490         count_mbs_length, wcs_re_match_2_internal,
82491         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82492         PREFIX(alt_match_null_string_p),
82493         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82494         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82495         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82496         now-unnecessary declaration, if any.
82497         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82498         regcomp, regexec):
82499         Remove now-unnecessary casts among pointer types.
82500         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82501
82502         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82503         (free): Remove decl.
82504
82505         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82506
82507         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82508         (free): Remove decl.
82509
82510         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82511         * lib/xgetcwd.c: Likewise.
82512
82513         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82514         (free): Remove decl.
82515
82516         * lib/strchrnul.c (strchrnul): Define with a prototype.
82517         Fix bug: c_in was not converted to char before searching.
82518
82519         The following changes are not K&R related:
82520
82521         * lib/group-member.h: Include <sys/types.h>, so that this file is
82522         self-contained.
82523         * lib/makepath.h: Likewise.
82524
82525         * lib/getusershell.c (readname, default_index, line_size, readname):
82526         Use size_t, not int, for sizes.
82527         (readname): If the size overflows, report an error instead of
82528         looping forever.
82529
82530 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82531
82532         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82533         libc.
82534
82535 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82536
82537         * README: New section: portability guidelines.
82538
82539 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82540
82541         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82542         C89 spec.
82543
82544 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82545
82546         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82547
82548 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82549
82550         Assume C89 or better; remove K&R cruft.
82551         A few of these changes were first proposed by Derek Robert Price
82552         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82553
82554         * lib/addext.c: Include <string.h> unconditionally.
82555         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82556         Don't declare getenv or malloc.
82557
82558         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82559         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82560         (NULL): Remove.
82561         (find_stack_direction, alloca): Use prototypes.
82562
82563         * lib/atexit.c (atexit): Define using a prototype.
82564
82565         * lib/basename.c, dirname.c, stripslash.c:
82566         Include <string.h> unconditionally.
82567
82568         * lib/bcopy.c: Include <stddef.h>.
82569         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82570
82571         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82572
82573         * lib/error.h (error, error_at_line, error_print_progname)
82574         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82575         * lib/error.c: Include error.h first, to check interface.
82576         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82577         (VA_START): Remove; all uses changeed to va_start.
82578         (exit, strerror): Remove decls.
82579         (error_print_progname): Prototype uncondionally.
82580         Don't include <errno.h>; no longer needed.
82581         (private_strerror): Remove.
82582         (error_tail): Always define.
82583         (error, error_at_line): Assume C89 or better; always use prototypes.
82584         * lib/fatal.c: Include "fatal.h" first, to test interface.
82585         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82586         (VA_START): Remove; all uses changed to va_start.
82587         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82588         this case.
82589         (exit): Remove decl.
82590         (fatal): Prototype unconditionally.  Assume va_start works.
82591         Abort at end, to pacify gcc.
82592
82593         * lib/euidaccess.c (main): Define with a prototype.
82594
82595         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82596
82597         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82598
82599         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82600         prototypes.
82601         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82602         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82603         (getenv): Remove decl.
82604         (fnmatch): Define using a prototype.
82605         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82606         (FCT): Define using a prototype.
82607
82608         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82609
82610         * lib/gethostname.c: Include <stddef.h>.
82611         (gethostname): Define with prototype.  Length is size_t, not int.
82612
82613 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82614
82615         Assume C89 or better; remove K&R cruft.
82616         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82617         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82618         string.h, getenv, malloc.
82619         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82620         headers.
82621         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82622         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82623         do not check for strerror.
82624         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82625         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82626         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82627         do not check for doprnt or vprintf.
82628         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82629         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82630
82631 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82632
82633         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82634         getversion.c should have been removed then, but was accidentally
82635         preserved.
82636
82637         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82638         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82639
82640 2003-09-08  Karl Berry  <karl@gnu.org>
82641
82642         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82643                 config, forget about prep.
82644
82645         * config/depcomp, missing: update from automake.
82646
82647 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82648
82649         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82650         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82651
82652 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82653
82654         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82655         copy_tm_result.  Bug reported by Simon Josefsson in
82656         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82657
82658 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82659
82660         * m4/time_r.m4: New file.
82661         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82662         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82663         is. Check for timegm declaration.
82664         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82665         Do not check for gmtime_r.
82666         Replace mktime if __mktime_internal does not exist and if mktime
82667         hasn't been replaced already.
82668
82669 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82670
82671         * lib/time_r.c, lib/time_r.h: New files.
82672
82673         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82674         __localtime_r.
82675         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82676         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82677
82678         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82679         __gmtime_r.
82680         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82681         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82682         Include <time_r.h>.
82683
82684         * lib/timegm.c: Switch to glibc implementation, with the following
82685         changes:
82686         [defined HAVE_CONFIG_H]: Include <config.h>.
82687         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82688         (__mktime_internal) [!defined _LIBC]: New decl.
82689         (__gmtime_r) [!defined _LIBC]: New macro and function.
82690         (timegm): Use a prototype, since gnulib assumes C89.
82691         Do not bother declaring tmp to be const, as it's not really usefu.
82692         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82693         (timegm): Declare only if HAVE_DECL_TIMEGM.
82694
82695 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82696
82697         * MODULES.html.sh (func_all_modules): Add time_r.
82698         * modules/time_r: New file.
82699         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82700         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82701
82702 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82703
82704         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82705         Bug reported by Lute Kamstra in
82706         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82707
82708         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82709         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82710         course with correspondingly smaller numbers for tomorrow and
82711         yesterday.  From Tadayoshi Funaba.  Originally installed into
82712         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82713         coreutils merge?).
82714
82715 2003-08-31  Simon Josefsson  <jas@extundo.com>
82716
82717         * modules/timegm: New file.
82718         * MODULES.html.sh (func_all_modules): Add timegm.
82719
82720 2003-08-31  Simon Josefsson  <jas@extundo.com>
82721
82722         * m4/timegm.m4: New file.
82723
82724 2003-08-31  Simon Josefsson  <jas@extundo.com>
82725
82726         * lib/timegm.h: New file.
82727         * lib/timegm.c: New file.  Based on
82728         wget-1.8.2/src/http.c:mktime_from_utc.
82729
82730 2003-08-31  Karl Berry  <karl@gnu.org>
82731
82732         * lib/argp.h: update from libc.
82733
82734 2003-08-28  Bruno Haible  <bruno@clisp.org>
82735
82736         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82737         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82738         followed by '#define fnmatch fnmatch_posix' gives an error.
82739
82740 2003-08-28  Bruno Haible  <bruno@clisp.org>
82741
82742         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82743         warning on QNX, which defines O_BINARY to 000000.
82744
82745 2003-08-27  Jim Meyering  <jim@meyering.net>
82746
82747         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82748         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82749         would fail after 32.  Reported by Danny Levinson.  Details here:
82750         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82751
82752 2003-08-24  Bruno Haible  <bruno@clisp.org>
82753
82754         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82755         MSVC7 <stdio.h> is included later.
82756
82757 2003-08-22  Simon Josefsson  <jas@extundo.com>
82758
82759         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82760
82761 2003-08-20  Karl Berry  <karl@gnu.org>
82762
82763         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82764
82765 2003-08-20  Bruno Haible  <bruno@clisp.org>
82766
82767         * modules/progname: New file.
82768         * MODULES.html.sh (func_all_modules): Add progname.
82769
82770 2003-08-20  Bruno Haible  <bruno@clisp.org>
82771
82772         * lib/progname.h: New file, from GNU gettext.
82773         * lib/progname.c: New file, from GNU gettext.
82774         * lib/progreloc.c: New file, from GNU gettext.
82775
82776 2003-08-19  Jim Meyering  <jim@meyering.net>
82777
82778         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82779         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82780
82781 2003-08-19  Bruno Haible  <bruno@clisp.org>
82782
82783         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82784         more.
82785
82786 2003-08-19  Bruno Haible  <bruno@clisp.org>
82787
82788         * lib/xstrdup.c: Assume <string.h> exists.
82789
82790 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82791
82792         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82793         in makefile rules.
82794
82795 2003-08-18  Jim Meyering  <jim@meyering.net>
82796
82797         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82798         * m4/lib-ld.m4: Likewise.
82799
82800 2003-08-18  Jim Meyering  <jim@meyering.net>
82801
82802         * lib/setenv.h: Indent nested cpp directive.
82803         * lib/vasnprintf.c: Remove trailing blanks.
82804
82805 2003-08-17  Simon Josefsson  <jas@extundo.com>
82806
82807         * modules/xstrndup: New file.
82808         * MODULES.html.sh (func_all_modules): Add xstrndup.
82809
82810 2003-08-17  Simon Josefsson  <jas@extundo.com>
82811
82812         * modules/argp: Fix autoconf macro name. Add more dependencies.
82813
82814 2003-08-17  Simon Josefsson  <jas@extundo.com>
82815
82816         * m4/xstrndup.m4: New file.
82817
82818 2003-08-17  Simon Josefsson  <jas@extundo.com>
82819
82820         * m4/argp.m4: New file.
82821
82822 2003-08-17  Simon Josefsson  <jas@extundo.com>
82823             Bruno Haible  <bruno@clisp.org>
82824
82825         * lib/xstrndup.h: New file.
82826         * lib/xstrndup.c: New file.
82827
82828 2003-08-17  Bruno Haible  <bruno@clisp.org>
82829
82830         * modules/strndup (Files, Include): Add lib/strndup.h.
82831
82832 2003-08-17  Bruno Haible  <bruno@clisp.org>
82833
82834         * modules/euidaccess (Files): Add lib/euidaccess.h.
82835
82836 2003-08-17  Bruno Haible  <bruno@clisp.org>
82837
82838         * lib/strndup.h: New file.
82839
82840 2003-08-17  Bruno Haible  <bruno@clisp.org>
82841
82842         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82843         like AC_GNU_SOURCE.
82844         * modules/extensions (configure.ac): Comment out the invocation of
82845         gl_USE_SYSTEM_EXTENSIONS.
82846
82847 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82848
82849         Merges from coreutils, etc.
82850         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82851         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82852         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82853         fixing a typo.
82854         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82855         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82856
82857 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82858
82859         Document merge from coreutils.
82860         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82861         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82862         * modules/utime: Add m4/utimes-null.m4.
82863
82864 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82865
82866         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82867         space, undoing this 2003-08-12 change:
82868         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82869
82870 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82871
82872         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82873         strtoul.c from libc, undoing this 2003-08-12 change:
82874         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82875
82876 2003-08-16  Jim Meyering  <jim@meyering.net>
82877
82878         Merges from coreutils.
82879         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82880         prefix.  Adjust cache variables similarly.  Create 500 rather than
82881         just 300 files, to exercise bug on Darwin6.5, too.
82882         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82883         $missing_dir.
82884         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82885         AM_SYS_POSIX_TERMIOS.
82886         Reported by mkc@mathdogs.com.
82887         Also change use of $am_cv_sys_posix_termios
82888         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82889         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82890         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82891         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82892         in /proc/mounts until it finds one with matching device number.  This
82893         is unnecessary when the FILE argument *is* a mount point.  No stat call
82894         is necessary in that case.  So, disable the statvfs-testing code on
82895         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82896         as RedHat bug# 84846.
82897         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82898         to 1MB, so as not to render systems with no stack size limit (e.g.,
82899         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82900         Include <unistd.h>.  On some systems,
82901         it is required for the definition of _SC_PAGESIZE.
82902
82903 2003-08-16  Jim Meyering  <jim@meyering.net>
82904
82905         Merge from coreutils.
82906         * lib/xstrtoimax.c: #else #if -> #elif.
82907         * lib/xstrtoumax.c: Likewise.
82908
82909 2003-08-16  Jim Meyering  <jim@meyering.net>
82910
82911         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82912         * m4/utimes.m4: Removed.
82913         * m4/utimes-null.m4: Renamed from utimes.m4.
82914
82915         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82916         to 1MB, so as not to render systems with no stack size limit (e.g.,
82917         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82918         Include <unistd.h>.  On some systems,
82919         it is required for the definition of _SC_PAGESIZE.
82920
82921 2003-08-16  Jim Meyering  <jim@meyering.net>
82922         and Paul Eggert  <eggert@cs.ucla.edu>
82923
82924         Merges from coreutils, etc.
82925
82926         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82927         using the latest version from cvs.  This avoids problems with #line
82928         directives using a vendor (Sun) compiler.
82929         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82930         Don't set GETGROUPS_LIB here; now it's
82931         done via getgroups.m4's wrapper function.
82932         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82933         rather than just in sh-util/configure.in, so that the
82934         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82935         same.
82936         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82937         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82938         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82939         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82940         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82941         Remove code that is now done by the newly-required macros.
82942         Append $(EXEEXT) to DF_PROG.
82943         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82944         Do not invoke or require the following here,
82945         since prereq.m4 or some gnulib .m4 now does this for us:
82946         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82947         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82948         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82949         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82950         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82951         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82952         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82953         AC_FUNC_OBSTACK.
82954         Do not replace the following functions, as this is now the job
82955         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82956         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82957         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82958         atexit getpass, strdup, getpagesize.
82959         Replace 'raise'.
82960         Do not check for the following functions, as this is now the job
82961         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82962         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82963         setregid.
82964         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82965         Check for sys/sysctl.h.
82966         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82967         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82968         of checking for ssize_t ourselves.
82969
82970         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82971         Require every macro that gnulib/modules/* suggests for us.
82972         (jm_PREREQ_ADDEXT): New macro.
82973         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82974         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82975
82976         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82977         (gl_PHYSMEM): Use it.
82978         Also check for `table' function.
82979         Check for new headers and functions.
82980         Add check for sys/sysmp.h.
82981         With suggestions from Kaveh Ghazi.
82982         Ignore headers that are present but cannot be compiled.  This
82983         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82984         C 5.4.
82985
82986 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82987
82988         Document merge from coreutils.
82989         * modules/userspec: Depend on posixver.
82990         * modules/strftime: Depend on tzset.
82991
82992 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82993
82994         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
82995         rather than tab, after '#' in shell-script copyright notices.
82996         Suggested by Bruno Haible.
82997
82998 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82999
83000         * config/srclist-update: Use three spaces, rather than tab, after '#'
83001         in shell-script copyright notices.  Suggested by Bruno Haible.
83002         Remove unnecessary parenthesization in regular expression.
83003
83004 2003-08-15  Jim Meyering  <jim@meyering.net>
83005
83006         Merge from coreutils.
83007         * lib/xgethostname.c: Include <stdlib.h>.
83008         (xghostname): Don't exit for anything other than memory-related
83009         failure; just return NULL.
83010         * lib/userspec.c: Include "posixver.h".
83011         (parse_user_spec): Accept `.' as a separator only
83012         in pre-POSIX-200112 mode.
83013         * lib/strtoimax.c: Use #elif rather than #else #if.
83014         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83015         Remove function, now that we can rely on a working tzset function.
83016         [!_LIBC]: Ensure that the required autoconf test has been run.
83017         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83018         Use underlying_strftime for %r.
83019         * lib/sha.c: Merge in some clean-up and optimization changes from
83020         glibc.
83021         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83022         Ensure that it is a multiple of 64.
83023         Rearrange loop exit tests so as to avoid performing an
83024         additional fread after encountering an error or EOF.
83025         * lib/realloc.c: Update copyright date.
83026
83027 2003-08-15  Jim Meyering  <jim@meyering.net>
83028         and Paul Eggert  <eggert@twinsun.com>
83029
83030         Merge from coreutils.
83031         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83032         member but strut utmpx does not.  Needed for AIX 4.3.3.
83033         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83034
83035 2003-08-15  Jim Meyering  <jim@meyering.net>
83036         and Paul Eggert  <eggert@cs.ucla.edu>
83037
83038         Merges from coreutils, etc.
83039         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83040         Require gl_FUNC_TZSET_CLOBBER.
83041         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83042         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83043         members.
83044
83045 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83046
83047         Help the merge from coreutils.
83048         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83049         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83050         * m4/tzset.m4: Use it too.
83051
83052 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83053
83054         * modules/tzset: New file.
83055
83056 2003-08-14  Jim Meyering  <jim@meyering.net>
83057
83058         Merges from coreutils.
83059         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83060         variable names, rather than @FNMATCH_H@.
83061         * modules/alloca: Likewise for $(ALLOCA_H).
83062
83063         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83064         the three copies of the literal target, `fnmatch.h'.
83065         * modules/alloca (alloca.h): Likewise.
83066
83067 2003-08-14  Jim Meyering  <jim@meyering.net>
83068
83069         Merge from coreutils.
83070         * m4/tzset.m4: New file.
83071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83072         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83073         otherwise, AIX 5.1 systems would end up using the latter.
83074         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83075         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83076         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83077         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83078
83079 2003-08-14  Jim Meyering  <jim@meyering.net>
83080
83081         Merge from coreutils.
83082         * lib/obstack.h: Whitespace changes.
83083         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83084         and xcalloc return values.
83085         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83086         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83087         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83088         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83089         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83090         error from mntctl.
83091         Use mntctl's return value to drive the entry-processing loop, since
83092         we can't rely on the value of the vmt_length member in the last
83093         entry.  On some systems doing so could result in exhausting
83094         virtual memory.  Based in part on a patch from Mike Jetzer.
83095
83096 2003-08-14  Jim Meyering  <jim@meyering.net>
83097         and Paul Eggert  <eggert@twinsun.com>
83098
83099         Merges from coreutils, plus other fixes.
83100         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83101         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83102         for credits and details.  Thanks to Kaveh Ghazi for helping
83103         to keep these files in sync.
83104         (ARRAY_SIZE): Define it.
83105         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83106         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83107         (memcasecmp): Don't assume size_t fits in unsigned int.
83108         Remove casts and duplicate code.
83109         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83110         (memcpy): Remove definition.
83111         Merge in some clean-up and optimization changes from glibc.
83112         [BLOCKSIZE]: Move definition to top of file.
83113         Ensure that it is a multiple of 64.
83114         Rearrange loop exit tests so as to avoid performing an
83115         additional fread after encountering an error or EOF.
83116         * lib/md5.h (md5_uintptr): Define.
83117         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83118         return to the initial working directory.  Preserve errno
83119         for caller.
83120         * lib/idcache.c: Include "xalloc.h".
83121         (xmalloc, xrealloc): Remove decls.
83122         (getuser): Remove casts no longer required in C89.
83123         * lib/human.c: Include stdio.h, for sprintf.
83124         * lib/group-member.c: Include "xalloc.h".
83125         (xmalloc, xrealloc): Remove decls.
83126         (get_group_info): Remove casts no longer required in C89.
83127         * lib/getusershell.c (readname): Remove casts no longer required in
83128         C89.
83129         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83130         * lib/getline.c: Whitespace fix, from coreutils.
83131
83132 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83133
83134         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83135         Check for isascii.
83136
83137         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83138         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83139         Undo previous (whitespace-only) change.
83140
83141 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83142
83143         * lib/exclude.c: Include <ctype.h>
83144         (IN_CTYPE_DOMAIN): New macro.
83145         (is_space): New fn.
83146         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83147         and empty lines.
83148
83149         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83150         Undo previous (whitespace-only) change.
83151
83152 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83153
83154         * config/srclist-update: Change update back to the old behavior,
83155         leaving whitespace alone.  Use one 'sed' command rather than a
83156         pipeline.
83157         (fixlicense): Now a variable, not a function.
83158         (remove_trailing_blanks): Remove.
83159         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83160         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83161         Undo previous (whitespace-only) change.
83162
83163 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83164
83165         Merge from coreutils.
83166         * modules/euidaccess: Add lib_SOURCES, include for new
83167         file euidaccess.h
83168
83169 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83170
83171         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83172         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83173         Normalize leading white space and remove trailing white space.
83174
83175         Merge from coreutils
83176         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83177
83178         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83179         0.12.1.  These files are now being upgraded automatically by
83180         ../config/srclist-update.
83181
83182 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83183
83184         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83185         Normalize leading white space and remove trailing white space.
83186         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83187         notice, as per ../config/srclist-update.
83188
83189         Merge from coreutils.
83190         * lib/euidaccess.h: New file.
83191         * lib/euidaccess.c: Include it.
83192         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83193         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83194         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83195
83196 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83197
83198         * config/srclist-update: Add copyright notice.
83199         (remove_id_lines, remove_trailing_blanks): New constants.
83200         (fixfile): Use them to normalize spacing a bit in copied files.
83201         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83202         Normalize leading white space and remove trailing white space.
83203
83204         * config/texinfo.tex: Sync with texinfo.
83205
83206         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83207         strtoul.c from libc, to merge coreutils whitespace changes.
83208
83209         * config/srclist.txt: Get the following m4 files from gettext:
83210         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83211         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83212         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83213         wint_t.m4.
83214
83215 2003-08-12  Karl Berry  <karl@gnu.org>
83216
83217         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83218         been made.
83219
83220 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83221
83222         * modules/gnu-source, m4/gnu-source.m4:
83223         Remove; we're assuming Autoconf 2.54 or later now.
83224         Suggested by Bruno Haible.
83225         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83226
83227 2003-08-11  Bruno Haible  <bruno@clisp.org>
83228
83229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83230
83231 2003-08-11  Bruno Haible  <bruno@clisp.org>
83232
83233         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83234         (vasnprintf): Use it instead of wcslen.
83235
83236 2003-08-11  Bruno Haible  <bruno@clisp.org>
83237
83238         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83239         value to ensure that _Bool promotes to int. Use #define for _Bool when
83240         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83241
83242 2003-08-10  Karl Berry  <karl@gnu.org>
83243
83244         * lib/regex.h: update from libc (whitespace fix).
83245
83246 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83247
83248         Merge some files from coreutils.  These changes were
83249         originally made by Jim Meyering.
83250         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83251         many older Unixes require this.
83252         * lib/alloca.c (alloca): Remove cast to argument of free;
83253         no longer needed in C89.
83254         * lib/alloca_.h, regex.h: Fix white space to match
83255         what GNU indent does.
83256
83257 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83258
83259         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83260         apparently Emacs's Unicode mode got confused before my 2003-08-05
83261         checkin.
83262
83263 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83264
83265         * m4/extensions.m4: New file.
83266         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83267         Require gl_USE_SYSTEM_EXTENSIONS.
83268         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83269         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83270
83271 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83272
83273         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83274         * modules/extensions, modules/gnu-source: New files.
83275         * modules/timespec, modules/unlocked-io: Depend on extensions.
83276
83277 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83278
83279         * modules/restrict: New file.
83280         * MODULES.html.sh (func_all_modules): Add restrict.
83281         * modules/regex: Depend on restrict.
83282
83283 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83284
83285         * m4/restrict.m4: New file.
83286         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83287
83288 2003-08-07  Bruno Haible  <bruno@clisp.org>
83289
83290         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83291         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83292
83293 2003-08-07  Bruno Haible  <bruno@clisp.org>
83294
83295         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83296         makes the module 'getndelim2' compatible with the module 'getline'.
83297
83298 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83299
83300         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83301         byte with "\201" to avoid glitches when editing that source file
83302         with multi-gnome-terminal.
83303
83304 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83305
83306         * lib/bumpalloc.h: Remove.
83307
83308 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83309
83310         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83311         * modules/bumpalloc: Remove.
83312
83313 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83314
83315         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83316         GNU coding style.
83317
83318         Merge from coreutils.
83319         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83320         1. From glibc.
83321         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83322         from Karl Berry, implemented by Jim Meyering.
83323         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83324         from Dmitry V. Levin.
83325         Remove anachronistic cast of xrealloc.
83326         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83327         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83328         type. Otherwise, it wouldn't compile with at least /bin/cc on
83329         ymp-cray-unicos9.0.2.X.
83330         Combine two mostly-identical uses of alloca into one.
83331         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83332
83333 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83334
83335         [From Emacs.]
83336
83337         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83338         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83339         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83340         obsolete NLIST_NAME_UNION.
83341         [__GNU__]: Undef BSD and FSCALE.
83342         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83343
83344 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83345
83346         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83347         an enum type, so that it's guaranteed to promote to int.  See:
83348         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83349
83350 2003-08-03  Karl Berry  <karl@gnu.org>
83351
83352         * config/depcomp: update from automake.
83353
83354 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83355
83356         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83357         (strerror): Don't assume that a printable int fits in 14 bytes.
83358
83359 2003-07-31  Bruno Haible  <bruno@clisp.org>
83360
83361         * modules/getpass-gnu: New file.
83362         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83363
83364 2003-07-31  Bruno Haible  <bruno@clisp.org>
83365
83366         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83367
83368 2003-07-24  Karl Berry  <karl@gnu.org>
83369
83370         * config/missing: update from automake.
83371
83372 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83373             Bruno Haible  <bruno@clisp.org>
83374
83375         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83376         * lib/getline.c (getline, getdelim): Likewise.
83377         Remove _GNU_SOURCE define; now it's defined in config.h through
83378         m4/getline.m4.
83379
83380 2003-07-23  Karl Berry  <karl@gnu.org>
83381
83382         * config/config.sub: update from prep.
83383
83384 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83385
83386         * modules/xalloc (Depends-on): Add exitfail.
83387         * modules/xmemcoll: Likewise.
83388
83389 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83390
83391         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83392         over-parenthesization in macros.
83393
83394         Sync with coreutils.
83395
83396         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83397         required by C99.
83398
83399         Use `exit_failure' for xalloc and xmemcoll instead of their own
83400         private exit-failure variables.
83401         * lib/xalloc.h (xalloc_exit_failure): Remove.
83402         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83403         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83404         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83405         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83406         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83407
83408 2003-07-20  Jim Meyering  <jim@meyering.net>
83409
83410         * modules/closeout (Depends-on): Add exitfail.
83411         Suggestion from Bruno Haible.
83412
83413 2003-07-19  Karl Berry  <karl@gnu.org>
83414
83415         * config/config.sub: update from prep.
83416
83417 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83418
83419         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83420         Remove.
83421         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83422         to test that it can stand by itself.  Include "exitfail.h".
83423         Clients should set exit_failure instead.
83424         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83425
83426 2003-07-18  Bruno Haible  <bruno@clisp.org>
83427
83428         * modules/getndelim2: New file.
83429         * modules/getline: Share files with module getndelim2.
83430         * modules/getnline: Depend on getndelim2 instead of sharing files with
83431         it. Add getnline.c to lib_SOURCES.
83432         * MODULES.html.sh (func_all_modules): Add getndelim2.
83433
83434 2003-07-18  Bruno Haible  <bruno@clisp.org>
83435
83436         * m4/getndelim2.m4: New file.
83437         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83438         invoke gl_PREREQ_GETNDELIM2.
83439         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83440         gl_PREREQ_GETNDELIM2.
83441         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83442         gl_GETNDELIM2.
83443
83444 2003-07-18  Bruno Haible  <bruno@clisp.org>
83445
83446         * lib/getndelim2.h: New file.
83447         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83448         getndelim2.h.
83449         (getndelim2): Make non-static. Change return type to ssize_t.
83450         * lib/getline.h: Change argument names.
83451         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83452         * lib/getnline.c: Include getndelim2.h.
83453
83454 2003-07-18  Andreas Schwab  <schwab@suse.de>
83455
83456         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83457
83458 2003-07-17  Karl Berry  <karl@gnu.org>
83459
83460         * config/config.sub: update from prep.
83461
83462 2003-07-17  Bruno Haible  <bruno@clisp.org>
83463
83464         * modules/getnline: New file.
83465         * modules/getline: Add lib/getndelim2.c to source file list.
83466         * MODULES.html.sh (func_all_modules): Add getnline.
83467
83468 2003-07-17  Bruno Haible  <bruno@clisp.org>
83469
83470         * m4/getnline.m4: New file.
83471
83472 2003-07-17  Bruno Haible  <bruno@clisp.org>
83473
83474         * m4/Makefile.am.in: Remove file.
83475         * m4/Makefile.am: Remove file.
83476         * m4/Makefile.in: Remove file.
83477
83478 2003-07-17  Bruno Haible  <bruno@clisp.org>
83479
83480         * lib/getnline.h: New file.
83481         * lib/getnline.c: New file.
83482         * lib/getndelim2.c: New file, extracted from getline.c.
83483         (getndelim2): Renamed from getdelim2, with added nmax argument.
83484         * lib/getline.c: Include getndelim2.c.
83485         (getdelim2): Moved out to getndelim2.c.
83486         (getline, getdelim): Update.
83487
83488 2003-07-17  Bruno Haible  <bruno@clisp.org>
83489
83490         * lib/Makefile.am: Remove file.
83491         * lib/Makefile.in: Remove file.
83492
83493 2003-07-17  Bruno Haible  <bruno@clisp.org>
83494
83495         * configure.in: Remove file.
83496         * Makefile.in: Remove file.
83497
83498 2003-07-17  Bruno Haible  <bruno@clisp.org>
83499
83500         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83501
83502 2003-07-16  Karl Berry  <karl@gnu.org>
83503
83504         * config/srclist-update: was running fixlicense twice, which caused
83505                 texinfo.tex to be nullified for some reason.  Simplify,
83506                 $gplsrc is no longer needed as far as I can see?
83507
83508 2003-07-16  Jim Meyering  <jim@meyering.net>
83509
83510         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83511
83512 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83513
83514         * config/srclist.txt: Get the following files from gettext-runtime/intl
83515         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83516         ref-del.sin.  From Bruno Haible.
83517         * config/srclist-update (fixfile): Change grep pattern again, since the
83518         previous fix didn't work (there was another trailing $).  Use
83519         '[$]' to escape the $s.
83520
83521 2003-07-15  Karl Berry  <karl@gnu.org>
83522
83523         * lib/vasnprintf.c: update from gettext.
83524
83525 2003-07-15  Karl Berry  <karl@gnu.org>
83526
83527         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83528         gets expanded when surrounded by '$'.
83529
83530 2003-07-15  Jim Meyering  <jim@meyering.net>
83531
83532         * modules/save-cwd: Don't depend on error.  From Derek Price.
83533
83534 2003-07-15  Jim Meyering  <jim@meyering.net>
83535
83536         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83537
83538 2003-07-14  Simon Josefsson  <jas@extundo.com>
83539
83540         * modules/mempcpy: New file.
83541         * MODULES.html.sh (func_all_modules): Add mempcpy.
83542
83543 2003-07-14  Simon Josefsson  <jas@extundo.com>
83544
83545         * m4/mempcpy.m4: New file.
83546
83547 2003-07-14  Simon Josefsson  <jas@extundo.com>
83548
83549         * lib/mempcpy.h: New file.
83550         * lib/mempcpy.c: New file.
83551
83552 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83553
83554         * modules/getdate, modules/posixtm: Depend on mktime.
83555
83556 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83557
83558         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83559         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83560         unicodeio.c, unicodeio.h, unlocked-io.h:
83561         Switch from LGPL to GPL.
83562
83563 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83564
83565         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83566         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83567         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83568         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83569         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83570         updated automatically by ../config/srclist-update.  This changes
83571         their license from LPGL to GPL.
83572
83573 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83574
83575         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83576         assumed to refer to the root of the most recent stable gettext version.
83577         * config/srclistvars.sh: Add defaults for eggert.
83578         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83579         Match "This program" as well as "The program".  This is needed
83580         for gettext.
83581
83582 2003-07-14  Jim Meyering  <jim@meyering.net>
83583
83584         Don't emit diagnostics.  Let callers do that.
83585         * lib/save-cwd.c: Don't include "error.h".
83586         (save_cwd): Don't call error.  Ensure that errno is valid
83587         when returning nonzero.
83588
83589         * lib/save-cwd.h (restore_cwd): Update prototype.
83590         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83591         Simplify.  Don't call error upon failure.  Let callers do that.
83592         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83593         when auditing is enabled.  But don't bother updating the #if.
83594
83595 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83596
83597         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83598         it breaks C++ compilation.
83599         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83600
83601 2003-07-10  Simon Josefsson  <jas@extundo.com>
83602
83603         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83604
83605 2003-07-10  Jim Meyering  <jim@meyering.net>
83606
83607         * m4/clock_time.m4: Remove trailing blank.
83608         * m4/intmax_t.m4: Likewise.
83609
83610 2003-07-10  Jim Meyering  <jim@meyering.net>
83611
83612         * lib/vasnprintf.c: Remove trailing blanks.
83613         Make cpp indentation consistent.
83614
83615 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83616
83617         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83618         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83619         Switch from LGPL to GPL.
83620
83621 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83622
83623         * config/srclist.txt: Sort sublists.  Add
83624         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83625         that differ from gnulib for one reason or another; we'd like this list
83626         to be smaller but for now let's document what we have.
83627
83628 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83629
83630         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83631         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83632         and sweeter "eval x=$x".
83633         * config/srclist.txt: Get lib/argp* from glibc.
83634
83635 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83636
83637         * lib/mktime.c: Fix some boundary cases and remove need for floating
83638         point.
83639
83640         Issue a compile-time diagnostic if time_t is floating point, or if
83641         two's complement arithmetic is not in effect, or if arithmetic
83642         right shift does not propagate the sign.  These assumptions were
83643         all in the original code but they weren't checked.
83644
83645         (TIME_T_MIDPOINT, verify): New macros.
83646         (__isleap): Remove; it has integer overflow problems.
83647         (leapyear): New function, without those problems.
83648         (ydhms_tm_diff): Remove; splitting into two parts.
83649         (ydhms_diff): New function, containing the arithmetic part of
83650         the old ydhms_tm_diff function.  Issue a compile-time
83651         diagnostic if we are not using C99 integer division.
83652         Avoid casts when possible.
83653         (guess_time_tm): New function, containing the checking part of
83654         the old ydhms_tm_diff function.  Return the new value, rather than
83655         the difference between it and the old.  Accept a new argument T
83656         so that *T specifies the old value.  Check for overflow in the result.
83657
83658         (__mktime_internal): Use a time_t offset, not a long int offset.
83659         This undoes the 2003-06-04 change, which is no longer needed now
83660         that we have better overflow checking.
83661         (localtime_offset): Likewise.
83662
83663         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83664         and long are 64-bit but int is only 32-bit.
83665         (ydhms_diff): Use long int to store year1 and yday1.
83666         Issue a compile-time diagnostic if long int is not wide enough.
83667
83668         (__mktime_internal): Use long int to store adjusted year and yday.
83669         Use plain C rather than preprocessor commands, if that doesn't
83670         affect efficiency.
83671         Check for overflow (and try to repair) after each probe
83672         rather than checking only at the very end.  This avoids some bugs
83673         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83674         does not equal GMT offset at maximum time).
83675         Use integer to check for overflow rather than floating point; this
83676         is more portable to non-IEEE hosts, and is a tad faster.
83677         When we detect that we are oscillating between two values,
83678         don't check whether tm_isdst has the requested value, since
83679         we already know the answer.  When tm_isdst has the wrong value,
83680         use a different heuristic to find the right one, based on the
83681         extreme values actually observed in practice in tz2003a,
83682         rather than the (overly optimistic) "previous 3 calendar quarters".
83683
83684         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83685         "T const" to accommodate glibc style.
83686         (check_result): Use less-confusing report format.  "long" -> "long int.
83687         (main): Likewise.
83688         Don't loop if the iteration overflows time_t.
83689         Allow a negative step in the iteration.
83690
83691 2003-07-06  Karl Berry  <karl@gnu.org>
83692
83693         * config/depcomp: update from automake.
83694         * config/config.sub: update from prep.
83695
83696 2003-07-03  Karl Berry  <karl@gnu.org>
83697
83698         * config/config.guess: update from prep.
83699
83700 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83701
83702         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83703         xreadlink.c now includes it unconditionally.
83704
83705 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83706
83707         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83708         having it depend on HAVE_SYS_TYPES_H.
83709
83710 2003-07-01  Bruno Haible  <bruno@clisp.org>
83711
83712         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83713         <sys/types.h> should be sufficient.
83714         Reported by Paul Eggert.
83715
83716 2003-06-26  Karl Berry  <karl@gnu.org>
83717
83718         * config/depcomp: update from automake.
83719
83720 2003-06-26  Bruno Haible  <bruno@clisp.org>
83721
83722         * modules/human: Depend on module stdbool.
83723
83724 2003-06-25  Bruno Haible  <bruno@clisp.org>
83725
83726         * modules/readlink: New file.
83727         * modules/xreadlink: Depend on it.
83728         * MODULES.html.sh (func_all_modules): Add readlink.
83729
83730 2003-06-25  Bruno Haible  <bruno@clisp.org>
83731
83732         * m4/readlink.m4: New file.
83733
83734 2003-06-25  Bruno Haible  <bruno@clisp.org>
83735
83736         * lib/readlink.c: New file.
83737
83738 2003-06-22  Karl Berry  <karl@gnu.org>
83739
83740         * config/srclist.txt: update mkinstalldirs from automake.
83741         * config/mkinstalldirs: update.
83742
83743 2003-06-22  Bruno Haible  <bruno@clisp.org>
83744
83745         Portability to mingw32.
83746         * m4/ssize_t.m4: New file, from GNU gettext.
83747         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83748         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83749
83750 2003-06-22  Bruno Haible  <bruno@clisp.org>
83751
83752         * modules/safe-read: Add m4/ssize_t.m4.
83753         * modules/xreadlink: Add m4/ssize_t.m4.
83754
83755 2003-06-20  Bruno Haible  <bruno@clisp.org>
83756
83757         Assume C89, so PARAMS isn't needed.
83758         * lib/unicodeio.h (PARAMS): Remove.
83759         * lib/unicodeio.c: Don't use PARAMS.
83760
83761 2003-06-18  Karl Berry  <karl@gnu.org>
83762
83763         * config/config.{guess,sub}: update from prep.
83764
83765 2003-06-18  Jim Meyering  <jim@meyering.net>
83766
83767         Merge changes from coreutils.
83768         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83769         Remove explicit declarations of xmalloc and realloc.
83770         Include xalloc.h.
83771         (read_utmp): Remove anachronistic cast of xmalloc.
83772
83773 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83774
83775         Assume C89, so PARAMS isn't needed.
83776         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83777         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83778         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83779         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83780         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83781         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83782         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83783         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83784         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83785         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83786         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83787         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83788         no longer needed. Anyway, config.h should always be included before any
83789         other file.
83790
83791 2003-06-11  Simon Josefsson  <jas@extundo.com>
83792
83793         * modules/sysexits: New file.
83794         * MODULES.html.sh (func_all_modules): Add sysexits.
83795
83796 2003-06-11  Simon Josefsson  <jas@extundo.com>
83797
83798         * lib/sysexit_.h: New file.
83799
83800 2003-06-11  Derek Price  <derek@ximbiot.com>
83801
83802         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83803         necessary.
83804
83805 2003-06-11  Bruno Haible  <bruno@clisp.org>
83806
83807         * m4/sysexits.m4: New file.
83808
83809 2003-06-10  Simon Josefsson  <jas@extundo.com>
83810
83811         * lib/argp.h: New file, from glibc.
83812         * lib/argp-ba.c: New file, from glibc.
83813         * lib/argp-eexst.c: New file, from glibc.
83814         * lib/argp-fmtstream.c: New file, from glibc.
83815         * lib/argp-fmtstream.h: New file, from glibc.
83816         * lib/argp-fs-xinl.c: New file, from glibc.
83817         * lib/argp-help.c: New file, from glibc.
83818         * lib/argp-namefrob.h: New file, from glibc.
83819         * lib/argp-parse.c: New file, from glibc.
83820         * lib/argp-pv.c: New file, from glibc.
83821         * lib/argp-pvh.c: New file, from glibc.
83822         * lib/argp-xinl.c: New file, from glibc.
83823
83824 2003-06-10  Simon Josefsson  <jas@extundo.com>
83825
83826         * modules/strchrnul: New file.
83827
83828 2003-06-10  Simon Josefsson  <jas@extundo.com>
83829
83830         * modules/argp: New file.
83831
83832 2003-06-10  Simon Josefsson  <jas@extundo.com>
83833
83834         * m4/strchrnul.m4: New file.
83835
83836 2003-06-10  Simon Josefsson  <jas@extundo.com>
83837
83838         * lib/strchrnul.h: New file.
83839         * lib/strchrnul.c: New file.
83840
83841 2003-06-10  Bruno Haible  <bruno@clisp.org>
83842
83843         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83844
83845 2003-06-07  Karl Berry  <karl@gnu.org>
83846
83847         * config/config.{guess,sub}: update from prep.
83848
83849 2003-06-07  Jim Meyering  <jim@meyering.net>
83850
83851         * modules/strtod: Use $(...) notation, not @...@ for
83852         AC_REPLACE'd variables.
83853         * modules/localcharset: Likewise.
83854
83855 2003-06-07  Jim Meyering  <jim@meyering.net>
83856
83857         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83858         in place of my name in the copyright comment.
83859         Remove definition and uses of __P.
83860
83861         From coreutils.
83862         * lib/stat.c: Don't declare xmalloc explicitly.
83863         Instead, include "xalloc.h".
83864         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83865         xrealloc, and xcalloc return values.
83866         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83867         Improve comment.
83868         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83869
83870 2003-06-07  Bruno Haible  <bruno@clisp.org>
83871
83872         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83873         avoid AC_CONFIG_LINKS.
83874         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83875         fnmatch.h, to avoid AC_CONFIG_LINKS.
83876         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83877
83878 2003-06-07  Bruno Haible  <bruno@clisp.org>
83879
83880         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83881         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83882         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83883         directory.
83884         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83885         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83886         directory.
83887
83888 2003-06-06  Jim Meyering  <jim@meyering.net>
83889
83890         Merge from coreutils.
83891         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83892         Consolidate declarations and initializations of *_base* locals.
83893
83894         Merge from coreutils.
83895         This avoids a core dump on systems without GNU putenv,
83896         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83897         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83898         (unsetenv): New static function, from GNU libc.
83899         (rpl_putenv): Use it.
83900
83901         * lib/modechange.c: Remove trailing blanks.
83902
83903         Merge from coreutils.
83904         * lib/fsusage.c: Remove declaration of statfs.
83905         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83906
83907         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83908
83909 2003-06-06  Jim Meyering  <jim@meyering.net>
83910
83911         * lib/stdbool_.h: Renamed from stdbool.h.in.
83912
83913 2003-06-06  Jim Meyering  <jim@meyering.net>
83914             Bruno Haible  <bruno@clisp.org>
83915
83916         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83917         Adjust Makefile.am snippet not to redirect directly to target.
83918         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83919
83920 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83921
83922         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83923         mismatch, look in future quarters as well as past.  This fixes a
83924         bug when processing fall-backwards gaps immediately after a long
83925         period of daylight-saving time.
83926
83927         * lib/mktime.c: Assume freestanding C89 or better.
83928         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83929         (__P): Remove; not used.
83930         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83931         (mktime, not_equal_tm, print_tm, check_result,
83932         main): Use prototypes.  Use const * where appropriate.
83933         (main): Fix typo in testing code that uncovered by above changes.
83934         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83935
83936 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83937
83938         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83939         locale.h, localeconv.  This merges changes from coreutils.
83940
83941         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83942         It can be removed after the next Autoconf is released.
83943         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83944         needed.
83945
83946 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83947
83948         * lib/mktime.c: Fix Debian bug 177940
83949         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83950         (localtime_offset): Now long int, not time_t, because we want it
83951         to be guaranteed to be signed.  All uses changed.
83952         (__mktime_internal): If overflow would occur when adding offset,
83953         don't add it.
83954
83955         Merge 'human' changes from coreutils.  Rewrite to support
83956         locale-specific notations like thousands separators.
83957         * lib/human.c: Simplify authorship notice.
83958         Include human.h immediately after config.h.
83959         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83960         <limits.h>: Do not include, since human.h does.
83961         (SIZE_MAX, UINTMAX_MAX): New macros.
83962         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83963         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83964         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83965         (power_letter): Renamed from suffixes.
83966         (generate_suffix_backwards): Remove.
83967         (adjust_value): Now takes int style (because of human.h changes)
83968         and long double value (for greater precision on some platforms).
83969         (group_number): New function.
83970         (human_readable): Use it.  Use integer options, not enum.
83971         Put the options before the sizes in the arg list.
83972         Support all the new options.
83973         The old human_readable function has been removed;
83974         use inttostr.h instead.
83975         (human_readable, default_block_size, humblock):
83976         Use uintmax_t, not int, for block sizes.
83977         (human_readable_inexact, block_size_types): Remove.
83978         (block_size_opts): New constant.
83979         (human_options): Renamed from human_block_size, with new signature
83980         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83981         * lib/human.h: Add copyright and authorship notice.
83982         Include <limits.h> and <stdbool.h> unconditionally.
83983         (PARAMS): Remove.  All uses removed.
83984         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83985         (enum human_inexact_style): Remove tag; now a nameless enum.
83986         (human_floor, human_ceiling, human_round_to_even): Now have
83987         values 2, 0, 1 rather than -1, 1, 0.
83988         (human_group_digits, human_suppress_point_zero, human_autoscale,
83989         human_base_1024, human_SI, human_B): New constants.
83990         (human_readable_inexact, human_block_size): Remove.
83991         (human_readable): Size args are now uintmax_t, not int.
83992         (human_options): New decl.
83993
83994         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
83995         unnecessary now that we assume C89 or better.  This change
83996         imported from coreutils.
83997
83998         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
83999         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84000         in the 2003-05-30 sync from glibc.
84001
84002         .h files should stand alone, but we shouldn't include <sys/types.h>
84003         if we can get away with just <stddef.h>.
84004
84005         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84006         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84007         rather than <sys/types.h>, as we merely need size_t.
84008         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84009         to get size_t.
84010         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84011         Include <stdio.h>, to get FILE.
84012         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84013         memcasecmp.h has included <stddef.h> and all we need is size_t.
84014         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84015         our interface, instead of including <sys/types.h>
84016
84017 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84018
84019         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84020         now, as glibc mktime is buggy on non-glibc systems.
84021
84022 2003-06-03  Karl Berry  <karl@gnu.org>
84023
84024         * config/config.sub: update from prep.
84025
84026 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84027
84028         [from coreutils]
84029         Fix some minor time-related bugs with POSIX time arguments.
84030         Some valid time stamps were being rejected (notably -1, and
84031         time stamps before 1900 on 64-bit hosts).  And some invalid
84032         time stamps were being accepted, e.g. September 31.
84033
84034         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84035         that we can return (time_t) -1 successfully.
84036         * lib/posixtm.c: Likewise.
84037         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84038         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84039         (t): Remove static var.
84040         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84041         of static var.  All uses changed.
84042         (year): Do not reject years before 1900; they can occur with
84043         64-bit time_t.
84044         (posix_time_parse): Do not check for out-of-range components;
84045         that is now the caller's responsibility, since our checks were
84046         only approximations.
84047         (posixtime): Use mktime to check for out-of-range components,
84048         since it knows them exactly.
84049         If mktime returns (time_t) -1, check whether an error actually occurred
84050         by invoking localtime on -1.
84051         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84052         posixtime failures better.
84053         Improve the test data (in comments only).
84054
84055 2003-06-02  Karl Berry  <karl@gnu.org>
84056
84057         * config/mkinstalldirs (version): new variable.
84058         (--version): new option.
84059         (usage): improve message.
84060
84061 2003-05-30  Karl Berry  <karl@gnu.org>
84062
84063         * lib/mktime.c: update from libc.
84064
84065 2003-05-30  Bruno Haible  <bruno@clisp.org>
84066
84067         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84068         * config/config.rpath: Upgrade to gettext-0.12.1.
84069
84070 2003-05-30  Bruno Haible  <bruno@clisp.org>
84071
84072         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84073         * m4/nls.m4: New file, from gettext-0.12.1.
84074         * m4/po.m4: New file, from gettext-0.12.1.
84075         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84076
84077 2003-05-30  Bruno Haible  <bruno@clisp.org>
84078
84079         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84080         * lib/localcharset.h: Likewise.
84081         * lib/localcharset.c: Likewise.
84082
84083 2003-05-29  Karl Berry  <karl@gnu.org>
84084
84085         * config/config.rpath: update from gettext.
84086
84087 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84088
84089         Assume the headers required for C89 freestanding compilers.
84090         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84091         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84092         * m4/human.m4 (gl_HUMAN): Likewise.
84093         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84094         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84095         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84096         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84097         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84098         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84099
84100 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84101
84102         Assume the headers required for C89 freestanding compilers.
84103         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84104         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84105         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84106         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84107         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84108         define, since <limits.h> is guaranteed to do that.
84109         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84110         * lib/exclude.c: Include <stdbool.h> unconditionally.
84111         * lib/tempname.c: Include <stddef.h> unconditionally.
84112         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84113         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84114         <stddef.h> does that.
84115         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84116         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84117         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84118         needed.
84119         * lib/xstrtol.c: Likewise.
84120         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84121         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84122
84123         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84124         warnings on some platforms.
84125
84126         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84127         arbitrarily.
84128
84129 2003-05-26  Jim Meyering  <jim@meyering.net>
84130
84131         Merge in a change from coreutils:
84132         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84133         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84134         that condition, rather than `-1' which is slightly misleading.
84135         Change the name of the cache variable to have the gl_ prefix.
84136         Prompted by a patch from Richard Dawe for DJGPP.
84137
84138 2003-05-24  Karl Berry  <karl@gnu.org>
84139
84140         * config/config.guess: update from prep.
84141
84142 2003-05-22  Karl Berry  <karl@gnu.org>
84143
84144         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84145
84146 2003-05-20  Karl Berry  <karl@gnu.org>
84147
84148         * config/config.guess: update from prep.
84149
84150 2003-05-18  Karl Berry  <karl@gnu.org>
84151
84152         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84153         might actually be set by the user.
84154
84155         * config/depcomp, install-sh, mdate-sh: update from automake.
84156
84157 2003-05-17  Bruno Haible  <bruno@clisp.org>
84158
84159         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84160         invalid expansion for AC_EGREP_CPP.
84161         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84162         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84163         Suggested by Akim Demaille <akim@epita.fr> in
84164         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84165
84166 2003-05-12  Jim Meyering  <jim@meyering.net>
84167
84168         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84169         the space-padded-by-default conversion specifiers, %e, %k, %l.
84170
84171 2003-05-12  Bruno Haible  <bruno@clisp.org>
84172
84173         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84174         the string is longer than 4 KB.
84175
84176 2003-05-11  Karl Berry  <karl@gnu.org>
84177
84178         * config/config.{guess,sub}: update from prep.
84179
84180 2003-05-09  Bruno Haible  <bruno@clisp.org>
84181
84182         * modules/error: Add m4/strerror_r.m4 to file list.
84183
84184 2003-05-03  Bruno Haible  <bruno@clisp.org>
84185
84186         Upgrade to Unicode-4.0.
84187         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84188         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84189         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84190         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84191         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84192         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84193         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84194         Change width of U+E0100..U+E01EF from 1 to 0.
84195
84196 2003-04-25  Jim Meyering  <jim@meyering.net>
84197
84198         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84199         of type size_t, not int.
84200
84201 2003-04-25  Bruno Haible  <bruno@clisp.org>
84202
84203         * lib/copy-file.c: Include <stddef.h>, for size_t.
84204
84205 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84206
84207         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84208         code which expansion is under static control.  Patch imported from
84209         Akim Demaille's patch to Bison; see
84210         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84211
84212 2003-04-14  Bruno Haible  <bruno@clisp.org>
84213
84214         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84215
84216 2003-04-11  Jim Meyering  <jim@meyering.net>
84217
84218         Merge changes from Coreutils.
84219
84220         2003-03-22  Jim Meyering  <jim@meyering.net>
84221
84222         * lib/strftime.c (widen): Cast alloca return value to proper type.
84223
84224         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84225
84226         From GNU libc.
84227         * lib/strftime.c (my_strftime): Handle very large width
84228         specifications for numeric values correctly.  Improve checks for
84229         overflow.
84230
84231         2003-01-19  Jim Meyering  <jim@meyering.net>
84232
84233         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84234         definitions.
84235         (nl_get_alt_digit) [! defined my_strftime]: Define.
84236         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84237         _nl_get_alt_digit and _nl_get_walt_digit.
84238
84239         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84240         libc. These changes have no effect outside of _LIBC.
84241
84242 2003-04-10  Bruno Haible  <bruno@clisp.org>
84243
84244         * modules/findprog: New file.
84245         * MODULES.html.sh (func_all_modules): Add it.
84246
84247 2003-04-10  Bruno Haible  <bruno@clisp.org>
84248
84249         * m4/findprog.m4: New file.
84250         * m4/eaccess.m4: New file.
84251
84252 2003-04-10  Bruno Haible  <bruno@clisp.org>
84253
84254         * lib/findprog.h: New file, from GNU gettext.
84255         * lib/findprog.c: New file, from GNU gettext.
84256
84257 2003-04-05  Jim Meyering  <jim@meyering.net>
84258
84259         Merge changes from Coreutils.
84260
84261         * lib/exclude.h (PARAMS): Remove definition and uses.
84262         * lib/exclude.c: Remove uses of `PARAMS'.
84263
84264         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84265         Add test-cases for DOS filenames. Declare program_name.
84266         (main): Set up program_name.  Patch by Rich Dawe.
84267
84268         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84269         error from mntctl.
84270         Use mntctl's return value to drive the entry-processing loop, since
84271         we can't rely on the value of the vmt_length member in the last
84272         entry.  On some systems doing so could result in exhausting
84273         virtual memory.  Based in part on a patch from Mike Jetzer.
84274
84275 2003-04-04  Bruno Haible  <bruno@clisp.org>
84276
84277         * modules/linebreak: New file.
84278         * MODULES.html.sh (func_all_modules): Add it.
84279
84280 2003-04-04  Bruno Haible  <bruno@clisp.org>
84281
84282         * m4/linebreak.m4: New file.
84283
84284 2003-04-04  Bruno Haible  <bruno@clisp.org>
84285
84286         * lib/linebreak.h: New file, from GNU gettext.
84287         * lib/linebreak.c: New file, from GNU gettext with slight
84288         modifications.
84289         * lib/lbrkprop.h: New file, from GNU gettext.
84290
84291 2003-04-03  Bruno Haible  <bruno@clisp.org>
84292
84293         * modules/utf8-ucs4: New file.
84294         * modules/utf16-ucs4: New file.
84295         * modules/ucs4-utf8: New file.
84296         * modules/ucs4-utf16: New file.
84297         * MODULES.html.sh (func_all_modules): Add them.
84298
84299 2003-04-03  Bruno Haible  <bruno@clisp.org>
84300
84301         * m4/utf-ucs4.m4: New file.
84302         * m4/ucs4-utf.m4: New file.
84303
84304 2003-04-03  Bruno Haible  <bruno@clisp.org>
84305
84306         * lib/utf8-ucs4.h: New file, from GNU gettext.
84307         * lib/utf16-ucs4.h: New file, from GNU gettext.
84308         * lib/ucs4-utf8.h: New file, from GNU gettext.
84309         * lib/ucs4-utf16.h: New file, from GNU gettext.
84310
84311 2003-04-02  Bruno Haible  <bruno@clisp.org>
84312
84313         * modules/binary-io: New file.
84314         * MODULES.html.sh (func_all_modules): Add it.
84315
84316 2003-04-02  Bruno Haible  <bruno@clisp.org>
84317
84318         * lib/binary-io.h: New file, from GNU gettext.
84319
84320 2003-04-01  Bruno Haible  <bruno@clisp.org>
84321
84322         * modules/pathname: New file.
84323         * MODULES.html.sh (func_all_modules): Add it.
84324
84325 2003-04-01  Bruno Haible  <bruno@clisp.org>
84326
84327         * lib/pathname.h: New file, from GNU gettext.
84328         * lib/concatpath.c: New file, from GNU gettext.
84329
84330 2003-03-30  Bruno Haible  <bruno@clisp.org>
84331
84332         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84333
84334 2003-03-30  Bruno Haible  <bruno@clisp.org>
84335
84336         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84337         function chown() doesn't exist.
84338
84339 2003-03-28  Bruno Haible  <bruno@clisp.org>
84340
84341         * modules/copy-file: New file.
84342         * MODULES.html.sh (func_all_modules): Add it.
84343
84344 2003-03-28  Bruno Haible  <bruno@clisp.org>
84345
84346         * m4/copy-file.m4: New file.
84347
84348 2003-03-28  Bruno Haible  <bruno@clisp.org>
84349
84350         * lib/copy-file.h: New file, from GNU gettext.
84351         * lib/copy-file.c: New file, from GNU gettext.
84352
84353 2003-03-18  Jim Meyering  <jim@meyering.net>
84354
84355         * lib/quote.c (quote_n): Fix typo in comment.
84356
84357 2003-03-18  Bruno Haible  <bruno@clisp.org>
84358
84359         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84360         checking.
84361         * m4/onceonly_2_57.m4: Likewise.
84362
84363 2003-03-17  Bruno Haible  <bruno@clisp.org>
84364
84365         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84366         (m4_quote): Remove macro.
84367         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84368
84369 2003-03-14  Jim Meyering  <jim@meyering.net>
84370
84371         Merge changes from Coreutils.
84372         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84373         to be const, in order to avoid warnings.
84374         (obstack_room): Likewise.
84375         (obstack_empty_p): Likewise.
84376
84377 2003-03-14  Bruno Haible  <bruno@clisp.org>
84378
84379         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84380         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84381
84382 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84383
84384         Merge changes from Bison.
84385         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84386         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84387         when compiling Bison 1.875's `bitset bset = obstack_alloc
84388         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84389         * lib/hash.c: Include <stdbool.h> unconditionally.
84390
84391 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84392
84393         * m4/onceonly.m4 (m4_quote): New macro.
84394         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84395         Quote AC_FOREACH variable-expansions properly.
84396
84397 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84398
84399         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84400
84401 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84402
84403         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84404         Reported by Bruce Becker; see:
84405         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84406
84407 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84408             Bruno Haible  <bruno@clisp.org>
84409
84410         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84411         Reported by John Hughes, see
84412         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84413
84414 2003-02-20  Bruno Haible  <bruno@clisp.org>
84415
84416         * MODULES.html.sh (func_all_modules): Add poll.
84417
84418 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84419
84420         * modules/poll: New file.
84421
84422 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84423
84424         * lib/poll_.h: New file.
84425         * lib/poll.c: New file.
84426
84427 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84428
84429         * m4/poll.m4: New file.
84430
84431 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84432
84433         * modules/mathl: New file.
84434
84435 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84436
84437         * lib/mathl.h: New file.
84438         * lib/acosl.c: New file.
84439         * lib/asinl.c: New file.
84440         * lib/atanl.c: New file.
84441         * lib/ceill.c: New file.
84442         * lib/cosl.c: New file.
84443         * lib/expl.c: New file.
84444         * lib/floorl.c: New file.
84445         * lib/frexpl.c: New file.
84446         * lib/ldexpl.c: New file.
84447         * lib/logl.c: New file.
84448         * lib/sincosl.c: New file.
84449         * lib/sinl.c: New file.
84450         * lib/sqrtl.c: New file.
84451         * lib/tanl.c: New file.
84452         * lib/trigl.c: New file.
84453         * lib/trigl.h: New file.
84454
84455 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84456
84457         * m4/mathl.m4: New file.
84458
84459 2003-02-18  Bruno Haible  <bruno@clisp.org>
84460
84461         * MODULES.html.sh (func_all_modules): Add mathl.
84462
84463 2003-02-17  Bruno Haible  <bruno@clisp.org>
84464
84465         * modules/mkdtemp: New module.
84466         * MODULES.html.sh (func_all_modules): Add it.
84467
84468 2003-02-17  Bruno Haible  <bruno@clisp.org>
84469
84470         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84471
84472 2003-02-17  Bruno Haible  <bruno@clisp.org>
84473
84474         * lib/mkdtemp.h: New file, from GNU gettext.
84475         * lib/mkdtemp.c: New file, from GNU gettext.
84476
84477 2003-02-02  Jim Meyering  <jim@meyering.net>
84478
84479         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84480         e.g. glibc-2.2.93.
84481
84482 2003-01-31  Bruno Haible  <bruno@clisp.org>
84483
84484         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84485         'rpl_rename'.
84486         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84487         'rpl_strnlen'.
84488         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84489         'rpl_strtod'.
84490         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84491         'rpl_utime'.
84492
84493 2003-01-31  Bruno Haible  <bruno@clisp.org>
84494
84495         * lib/rename.c: #undef rename before defining rpl_rename.
84496         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84497
84498 2003-01-30  Bruno Haible  <bruno@clisp.org>
84499
84500         * modules/vasnprintf, modules/vasprintf: New modules.
84501         * MODULES.html.sh (func_all_modules): Add them.
84502
84503 2003-01-30  Bruno Haible  <bruno@clisp.org>
84504
84505         * m4/signed.m4: New file, from GNU gettext.
84506         * m4/longdouble.m4: New file, from GNU gettext.
84507         * m4/wchar_t.m4: New file, from GNU gettext.
84508         * m4/wint_t.m4: New file, from GNU gettext.
84509         * m4/vasnprintf.m4: New file.
84510         * m4/vasprintf.m4: New file.
84511
84512 2003-01-30  Bruno Haible  <bruno@clisp.org>
84513
84514         * lib/printf-args.h: New file, from GNU gettext.
84515         * lib/printf-args.c: New file, from GNU gettext.
84516         * lib/printf-parse.h: New file, from GNU gettext.
84517         * lib/printf-parse.c: New file, from GNU gettext.
84518         * lib/vasnprintf.h: New file, from GNU gettext.
84519         * lib/vasnprintf.c: New file, from GNU gettext.
84520         * lib/asnprintf.c: New file, from GNU gettext.
84521         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84522         * lib/vasprintf.c: New file, from GNU gettext.
84523         * lib/asprintf.c: New file, from GNU gettext.
84524
84525 2003-01-29  Bruno Haible  <bruno@clisp.org>
84526
84527         * modules/stpncpy: New module.
84528         * MODULES.html.sh (func_all_modules): Add it.
84529
84530 2003-01-29  Bruno Haible  <bruno@clisp.org>
84531
84532         * m4/stpncpy.m4: New file.
84533
84534 2003-01-29  Bruno Haible  <bruno@clisp.org>
84535
84536         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84537         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84538
84539 2003-01-28  Bruno Haible  <bruno@clisp.org>
84540
84541         * modules/c-ctype: New module.
84542         * MODULES.html.sh (func_all_modules): Add it.
84543
84544 2003-01-28  Bruno Haible  <bruno@clisp.org>
84545
84546         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84547         Paul Eggert.
84548         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84549         Paul Eggert.
84550
84551 2003-01-27  Bruno Haible  <bruno@clisp.org>
84552
84553         * modules/xsetenv: New module.
84554         * MODULES.html.sh (func_all_modules): Add it.
84555
84556 2003-01-27  Bruno Haible  <bruno@clisp.org>
84557
84558         * lib/xsetenv.h: New file, from GNU gettext.
84559         * lib/xsetenv.c: New file, from GNU gettext.
84560
84561 2003-01-23  Jim Meyering  <jim@meyering.net>
84562
84563         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84564         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84565
84566 2003-01-23  Bruno Haible  <bruno@clisp.org>
84567
84568         * modules/minmax: New module.
84569         * MODULES.html.sh (func_all_modules): Add it.
84570
84571 2003-01-23  Bruno Haible  <bruno@clisp.org>
84572
84573         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84574         Eggert.
84575
84576 2003-01-22  Bruno Haible  <bruno@clisp.org>
84577
84578         * modules/exit: New module.
84579         * MODULES.html.sh (func_all_modules): Add it.
84580
84581 2003-01-22  Bruno Haible  <bruno@clisp.org>
84582
84583         * lib/exit.h: New file, from GNU gettext.
84584
84585 2003-01-19  Bruno Haible  <bruno@clisp.org>
84586
84587         * gnulib-tool: Recognize option --extract-maintainer.
84588         (func_get_maintainer): New function.
84589         * modules/*: Add Maintainer entry.
84590
84591 2003-01-16  Jim Meyering  <jim@meyering.net>
84592
84593         * m4/regex.m4: The `regex' struct is both input and output.
84594         Initialize it before each use.  Patch by Tim Waugh.
84595
84596 2003-01-16  Bruno Haible  <bruno@clisp.org>
84597
84598         * MODULES.html.sh: Add a table of contents. Add the module name as
84599         leftmost column. Add hyperlinks.
84600
84601 2003-01-15  Bruno Haible  <bruno@clisp.org>
84602
84603         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84604
84605 2003-01-15  Bruno Haible  <bruno@clisp.org>
84606
84607         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84608         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84609         suffix.
84610
84611 2003-01-15  Bruno Haible  <bruno@clisp.org>
84612
84613         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84614
84615 2003-01-15  Bruno Haible  <bruno@clisp.org>
84616
84617         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84618         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84619
84620 2003-01-14  Jim Meyering  <jim@meyering.net>
84621
84622         * lib/same.c (same_name): Tweak a comment.
84623
84624 2003-01-14  Bruno Haible  <bruno@clisp.org>
84625
84626         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84627         when a string comparison is sufficient.
84628
84629 2003-01-14  Bruno Haible  <bruno@clisp.org>
84630
84631         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84632         'unsigned int'.
84633
84634 2003-01-14  Bruno Haible  <bruno@clisp.org>
84635
84636         * lib/hash-pjw.c: Add comment about low quality of this function.
84637
84638 2003-01-13  Bruno Haible  <bruno@clisp.org>
84639
84640         * modules/stpcpy: Distribute lib/stpcpy.h.
84641         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84642
84643 2003-01-13  Bruno Haible  <bruno@clisp.org>
84644
84645         * modules/*: Add a description.
84646         * modules/strpbrk: Fix Makefile.am snippet.
84647         * modules/strtoimax: Fix dependencies.
84648         * modules/strtoumax: Likewise.
84649
84650 2003-01-13  Bruno Haible  <bruno@clisp.org>
84651
84652         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84653         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84654         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84655
84656 2003-01-13  Bruno Haible  <bruno@clisp.org>
84657
84658         * gnulib-tool (func_create_testdir): Store config/* files in the main
84659         directory.
84660         * config.rpath: Move to ...
84661         * config/config.rpath: ... here.
84662         * modules/gettext: Contains config/config.rpath, not config.rpath.
84663         * modules/iconv: Likewise.
84664
84665 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84666
84667         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84668         to avoid collisions with libcurses and libreadline.
84669
84670         * m4/getstr.m4: Remove.
84671         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84672
84673 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84674
84675         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84676         to avoid collisions with libcurses and libreadline.
84677
84678         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84679         * lib/getstr.h, getstr.c: Remove.
84680         * lib/getline.c: Include "getline.h", to check interface.
84681         Move body of old getstr.c here: this defines MIN_CHUNK and
84682         declares getdelim2, which is renamed from getstr.
84683         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84684
84685         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84686         All uses changed.
84687         * lib/linebuffer.h: Likewise.
84688         (readline): Remove backward-compatibility macro.
84689
84690 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84691
84692         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84693         to avoid collisions with libcurses and libreadline.
84694         * getstr: Remove.
84695         * MODULES.html.sh: Remove getstr.
84696         * modules/getline: Depend on unlocked-io, not getstr.
84697
84698 2003-01-12  Jim Meyering  <jim@meyering.net>
84699
84700         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84701
84702 2003-01-10  Bruno Haible  <bruno@clisp.org>
84703
84704         * modules/alloca: Change Makefile.am requirements. Simplify Include
84705         requirements. Add lib/alloca_.h to file list.
84706
84707 2003-01-10  Bruno Haible  <bruno@clisp.org>
84708
84709         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84710
84711 2003-01-10  Bruno Haible  <bruno@clisp.org>
84712
84713         * lib/alloca_.h: New file.
84714         * lib/getdate.y: Unconditionally include alloca.h.
84715         * lib/makepath.c: Likewise.
84716         * lib/setenv.c: Likewise.
84717         * lib/userspec.c: Likewise.
84718
84719 2003-01-09  Karl Berry  <karl@gnu.org>
84720
84721         * MODULES.html.sh: include `dirname $0` in PATH, to find
84722         gnulib-tool.
84723
84724 2003-01-09  Bruno Haible  <bruno@clisp.org>
84725
84726         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84727         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84728
84729 2003-01-09  Bruno Haible  <bruno@clisp.org>
84730
84731         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84732
84733 2003-01-09  Bruno Haible  <bruno@clisp.org>
84734
84735         * lib/stdbool.h.in: New file.
84736
84737 2003-01-09  Bruno Haible  <bruno@clisp.org>
84738
84739         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84740         * MODULES.html.sh: Likewise.
84741
84742 2003-01-08  Jim Meyering  <jim@meyering.net>
84743
84744         * lib/full-write.c: Undefine and define-away `const' after inclusion
84745         of errno.h, not before.  Suggestion from Bruno Haible.
84746
84747 2003-01-08  Bruno Haible  <bruno@clisp.org>
84748
84749         * modules/full-read: Depend on full-write.
84750
84751 2003-01-08  Bruno Haible  <bruno@clisp.org>
84752
84753         * lib/safe-read.c: Include specification header first, to ensure its
84754         selfcontainedness.
84755         * lib/full-write.c: Likewise.
84756
84757 2003-01-07  Jim Meyering  <jim@meyering.net>
84758
84759         * lib/full-write.c: Rework so that it may serve to define full_read,
84760         too.
84761         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84762
84763 2003-01-07  Bruno Haible  <bruno@clisp.org>
84764
84765         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84766         <inttypes.h>.
84767         * lib/xstrtol.h: Likewise.
84768         * lib/xstrtoimax.c: Likewise.
84769         * lib/xstrtoumax.c: Likewise.
84770         * lib/human.h: Likewise.
84771
84772         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84773         on systems that have <inttypes.h> but not <stdint.h>.
84774
84775 2003-01-07  Bruno Haible  <bruno@clisp.org>
84776
84777         * MODULES.html.sh: Add copyright notice.
84778         (missed_files): Omit CVS directory entries.
84779         (func_module): Make it work with sed-3.02.
84780         * MODULES.txt: Remove file.
84781
84782 2003-01-06  Jim Meyering  <jim@meyering.net>
84783
84784         * lib/version-etc.c: Update year in translatable copyright string.
84785
84786 2003-01-03  Karl Berry  <karl@gnu.org>
84787
84788         * config/config.{guess,sub}: update from prep.
84789
84790 2003-01-02  Karl Berry  <karl@gnu.org>
84791
84792         * doc/COPYING.DOC: belatedly updated to 1.2.
84793
84794 2003-01-01  Karl Berry  <karl@gnu.org>
84795
84796         * gnulib-tool (func_verify_module): report module name $module in
84797         error message, not $1.
84798         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84799         be created, only if it doesn't exist.
84800         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84801
84802 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84803
84804         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84805
84806 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84807
84808         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84809         memcmp if strcoll doesn't work.
84810
84811 2002-12-31  Bruno Haible  <bruno@clisp.org>
84812
84813         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84814         nonempty.
84815
84816 2002-12-31  Bruno Haible  <bruno@clisp.org>
84817
84818         * lib/memcoll.c (STRCOLL): New macro.
84819         (memcoll): Use it.
84820
84821 2002-12-31  Bruno Haible  <bruno@clisp.org>
84822
84823         * lib/localcharset.h: New file.
84824         * lib/localcharset.c: Include it.
84825         * lib/unicodeio.c: Likewise.
84826
84827 2002-12-31  Bruno Haible  <bruno@clisp.org>
84828
84829         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84830         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84831
84832 2002-12-31  Bruno Haible  <bruno@clisp.org>
84833
84834         * lib/getline.h: Include <stddef.h>, for size_t.
84835
84836         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84837         * lib/unicodeio.c: Don't include <stddef.h>.
84838
84839 2002-12-31  Bruno Haible  <bruno@clisp.org>
84840
84841         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84842         HAVE_TM_ZONE.
84843
84844 2002-12-24  Karl Berry  <karl@gnu.org>
84845
84846         * config/config.guess: update from prep.
84847
84848 2002-12-24  Bruno Haible  <bruno@clisp.org>
84849
84850         General infrasructure.
84851         * m4/README: Rewritten.
84852         * m4/onceonly.m4: New file.
84853         * m4/onceonly_2_57.m4: New file.
84854
84855         Module atexit.
84856         * m4/atexit.m4: New file.
84857
84858         Module strtod.
84859         * m4/strtod.m4: New file.
84860
84861         Module strtol.
84862         * m4/strtol.m4: New file.
84863
84864         Module strtoul.
84865         * m4/strtoul.m4: New file.
84866
84867         Module memchr.
84868         * m4/memchr.m4: New file.
84869
84870         Module memcmp.
84871         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84872         (jm_FUNC_MEMCMP): Invoke it.
84873
84874         Module memcpy.
84875         * m4/memcpy.m4: New file.
84876
84877         Module memmove.
84878         * m4/memmove.m4: New file.
84879
84880         Module memset.
84881         * m4/memset.m4: New file.
84882
84883         Module strcspn.
84884         * m4/strcspn.m4: New file.
84885
84886         Module strpbrk.
84887         * m4/strpbrk.m4: New file.
84888
84889         Module strstr.
84890         * m4/strstr.m4: New file.
84891
84892         Module strerror.
84893         * m4/strerror.m4: New file.
84894
84895         Module mktime.
84896         * m4/mktime.m4: Renamed from jm-mktime.m4.
84897         (gl_PREREQ_MKTIME): New macro.
84898         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84899
84900         Module malloc.
84901         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84902         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84903         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84904
84905         Module realloc.
84906         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84907         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84908         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84909
84910         Module strftime.
84911         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84912         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84913         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84914         gl_TM_GMTOFF.
84915         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84916
84917         Module xalloc.
84918         * m4/xalloc.m4: New file.
84919
84920         Module alloca.
84921         * m4/alloca.m4: New file.
84922
84923         Module putenv.
84924         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84925         (jm_FUNC_PUTENV): Invoke it.
84926
84927         Module setenv.
84928         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84929         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84930         when invoked twice.
84931         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84932         gt_FUNC_SETENV.
84933
84934         Module memrchr.
84935         * m4/memrchr.m4: New file.
84936
84937         Module stpcpy.
84938         * m4/stpcpy.m4: New file.
84939
84940         Module strcase.
84941         * m4/strcase.m4: New file.
84942
84943         Module strdup.
84944         * m4/strdup.m4: New file.
84945
84946         Module strnlen.
84947         * m4/strnlen.m4: New file.
84948
84949         Module strndup.
84950         * m4/strndup.m4: New file.
84951
84952         Module xstrtod.
84953         * m4/xstrtod.m4: New file.
84954
84955         Module xstrtol.
84956         * m4/xstrtol.m4: New file.
84957
84958         Module getdate.
84959         * m4/getdate.m4: New file.
84960
84961         Module unlocked-io.
84962         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84963         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84964         * m4/jm-glibc-io.m4n: Remove file.
84965
84966         Module long-options.
84967         * m4/long-options.m4: New file.
84968
84969         Module md5.
84970         * m4/md5.m4: New file.
84971
84972         Module sha.
84973         * m4/sha.m4: New file.
84974
84975         Module getstr.
84976         * m4/getstr.m4: New file.
84977
84978         Module getline.
84979         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84980         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84981         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84982         simply getline. Infoke gl_PREREQ_GETLINE.
84983
84984         Module obstack.
84985         * m4/obstack.m4: New file.
84986
84987         Module hash.
84988         * m4/hash.m4: New file.
84989
84990         Module readtokens.
84991         * m4/readtokens.m4: New file.
84992
84993         Module strverscmp.
84994         * m4/strverscmp.m4: New file.
84995
84996         Module stdbool.
84997         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
84998         OSF/1.
84999
85000         Module strtoll.
85001         * m4/strtoll.m4: New file.
85002
85003         Module strtoull.
85004         * m4/strtoull.m4: New file.
85005
85006         Module strtoimax.
85007         * m4/strtoimax.m4: New file.
85008
85009         Module strtoumax.
85010         * m4/strtoumax.m4: New file.
85011
85012         Module xstrtoimax.
85013         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85014         jm_AC_PREREQ_XSTRTOIMAX.
85015         Moved the strtol prerequisites to strtol.m4.
85016         Moved the strtoll prerequisites to strtoll.m4.
85017         Moved the strtoimax prerequisites to strtoimax.m4.
85018
85019         Module xstrtoumax.
85020         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85021         jm_AC_PREREQ_XSTRTOUMAX.
85022         Moved the strtoul prerequisites to strtoul.m4.
85023         Moved the strtoull prerequisites to strtoull.m4.
85024         Moved the strtoumax prerequisites to strtoumax.m4.
85025
85026         Module chown.
85027         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85028         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85029
85030         Module dup2.
85031         * m4/dup2.m4: New file.
85032
85033         Module ftruncate.
85034         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85035         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85036
85037         Module getgroups.
85038         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85039         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85040
85041         Module gettimeofday.
85042         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85043         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85044         gl_PREREQ_GETTIMEOFDAY.
85045
85046         Module mkdir.
85047         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85048         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85049
85050         Module mkstemp.
85051         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85052         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85053         jm_AC_TYPE_UINTMAX_T.
85054         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85055
85056         Module stat.
85057         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85058         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85059
85060         Module lstat.
85061         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85062         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85063
85064         Module timespec.
85065         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85066         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85067         * m4/st_mtim.m4: Indentation.
85068
85069         Module nanosleep.
85070         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85071         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85072         gl_PREREQ_NANOSLEEP.
85073
85074         Module regex.
85075         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85076         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85077         (gl_REGEX): New macro.
85078
85079         Module rename.
85080         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85081         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85082
85083         Module rmdir.
85084         * m4/rmdir.m4: New file.
85085
85086         Module utime.
85087         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85088         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85089         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85090
85091         Module dirname.
85092         * m4/dirname.m4: New file.
85093
85094         Module getopt.
85095         * m4/getopt.m4: New file.
85096
85097         Module unistd-safer.
85098         * m4/unistd-safer.m4: New file.
85099
85100         Module fnmatch.
85101         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85102         declaration.
85103         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85104         (gl_FUNC_FNMATCH_POSIX): New macro.
85105         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85106         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85107         simply fnmatch.
85108
85109         Module exclude.
85110         * m4/exclude.m4: New file.
85111
85112         Module human.
85113         * m4/human.m4: New file.
85114
85115         Module acl.
85116         * m4/acl.m4: Nop.
85117
85118         Module backupfile.
85119         * m4/backupfile.m4: New file.
85120         * m4/d-ino.m4: Indentation.
85121
85122         Module fsusage.
85123         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85124         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85125         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85126
85127         Module dirfd.
85128         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85129         requirements.
85130
85131         Module euidaccess.
85132         * m4/euidaccess.m4: New file.
85133
85134         Module file-type.
85135         * m4/file-type.m4: New file.
85136
85137         Module fileblocks.
85138         * m4/fileblocks.m4: New file.
85139
85140         Module filemode.
85141         * m4/filemode.m4: New file.
85142
85143         Module isdir.
85144         * m4/isdir.m4: New file.
85145
85146         Module lchown.
85147         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85148         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85149
85150         Module makepath.
85151         * m4/makepath.m4: New file.
85152
85153         Module modechange.
85154         * m4/modechange.m4: New file.
85155
85156         Module mountlist.
85157         * m4/mountlist.m4: New file.
85158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85159         Indentation.
85160
85161         Module path-concat.
85162         * m4/path-concat.m4: New file.
85163
85164         Module pathmax.
85165         * m4/pathmax.m4: New file.
85166
85167         Module same.
85168         * m4/same.m4: New file.
85169
85170         Module save-cwd.
85171         * m4/save-cwd.m4: New file.
85172
85173         Module savedir.
85174         * m4/savedir.m4: New file.
85175
85176         Module xgetcwd.
85177         * m4/xgetcwd.m4: New file.
85178         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85179
85180         Module xreadlink.
85181         * m4/xreadlink.m4: New file.
85182
85183         Module safe-read.
85184         * m4/safe-read.m4: New file.
85185
85186         Module safe-write.
85187         * m4/safe-write.m4: New file.
85188
85189         Module closeout.
85190         * m4/closeout.m4: New file.
85191
85192         Module stdio-safer.
85193         * m4/stdio-safer.m4: New file.
85194
85195         Module getpass.
85196         * m4/getpass.m4: New file.
85197
85198         Module getugroups.
85199         * m4/getugroups.m4: New file.
85200
85201         Module group-member.
85202         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85203         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85204
85205         Module idcache.
85206         * m4/idcache.m4: New file.
85207
85208         Module userspec.
85209         * m4/userspec.m4: New file.
85210
85211         Module gettime.
85212         * m4/clock_time.m4: New file.
85213         * m4/gettime.m4: New file.
85214
85215         Module settime.
85216         * m4/settime.m4: New file.
85217
85218         Module posixtm.
85219         * m4/posixtm.m4: New file.
85220
85221         Module gethostname.
85222         * m4/gethostname.m4: New file.
85223
85224         Module canon-host.
85225         * m4/canon-host.m4: New file.
85226
85227         Module gettext.
85228         * m4/codeset.m4: New file, from gettext-0.11.5.
85229         * m4/gettext.m4: New file, from gettext-0.11.5.
85230         * m4/glibc21.m4: New file, from gettext-0.11.5.
85231         * m4/iconv.m4: New file, from gettext-0.11.5.
85232         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85233         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85234         * m4/inttypes.m4: New file, from gettext-0.11.5.
85235         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85236         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85237         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85238         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85239         * m4/lib-link.m4: New file, from gettext-0.11.5.
85240         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85241         * m4/progtest.m4: New file, from gettext-0.11.5.
85242         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85243         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85244         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85245
85246         Module localcharset.
85247         * m4/localcharset.m4: New file.
85248
85249         Module hard-locale.
85250         * m4/hard-locale.m4: New file.
85251
85252         Module mbswidth.
85253         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85254         onceonly macros.
85255         * m4/mbrtowc.m4: Add comment.
85256
85257         Module memcasecmp.
85258         * m4/memcasecmp.m4: New file.
85259
85260         Module memcoll.
85261         * m4/memcoll.m4: New file.
85262
85263         Module unicodeio.
85264         * m4/unicodeio.m4: New file.
85265
85266         Module rpmatch.
85267         * m4/rpmatch.m4: New file.
85268
85269         Module yesno.
85270         * m4/yesno.m4: New file.
85271
85272         Module exitfail.
85273         * m4/exitfail.m4: New file.
85274
85275         Module c-stack.
85276         * m4/c-stack.m4 (gl_C_STACK): New macro.
85277         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85278
85279         Module error.
85280         * m4/error.m4 (gl_ERROR): New macro.
85281         (jm_PREREQ_ERROR): Use onceonly macros.
85282
85283         Module fatal.
85284         * m4/fatal.m4: New file.
85285
85286         Module getloadavg.
85287         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85288         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85289
85290         Module getpagesize.
85291         * m4/getpagesize.m4: New file.
85292
85293         Module getusershell.
85294         * m4/getusershell.m4: New file.
85295
85296         Module physmem.
85297         * m4/physmem.m4: New file.
85298
85299         Module posixver.
85300         * m4/posixver.m4: New file.
85301
85302         Module quotearg.
85303         * m4/quotearg.m4: New file.
85304
85305         Module quote.
85306         * m4/quote.m4: New file.
85307
85308         Module readutmp.
85309         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85310
85311         Module sig2str.
85312         * m4/sig2str.m4: New file.
85313
85314         Other.
85315         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85316         ulonglong.m4.
85317         * m4/intmax_t.m4: New file.
85318         * m4/d-type.m4: Indentation.
85319         * m4/jm-macros.m4: Update.
85320         * m4/prereq.m4 (jm_PREREQ): Update.
85321         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85322         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85323         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85324         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85325         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85326         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85327         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85328         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85329         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85330         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85331         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85332         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85333         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85334         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85335         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85336         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85337         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85338         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85339         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85340
85341 2002-12-24  Bruno Haible  <bruno@clisp.org>
85342
85343         * MODULES.txt: Update according to m4/ changes.
85344
85345         Module gettext.
85346         * config.rpath: New file, from gettext-0.11.5.
85347
85348         * modules/*: New module descriptions.
85349         * gnulib-tool: New file.
85350         * MODULES.html.sh: New file.
85351
85352 2002-12-21  Karl Berry  <karl@gnu.org>
85353
85354         * doc/fdl.texi: update to version 1.2.
85355
85356 2002-12-19  Karl Berry  <karl@gnu.org>
85357
85358         * config/config.guess: update from prep.
85359
85360 2002-12-18  Bruno Haible  <bruno@clisp.org>
85361
85362         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85363         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85364
85365 2002-12-17  Bruno Haible  <bruno@clisp.org>
85366
85367         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85368         stdlib.h, string.h.
85369
85370 2002-12-17  Bruno Haible  <bruno@clisp.org>
85371
85372         * lib/canon-host.c (strdup): Remove unused declaration.
85373
85374         * lib/fsusage.c: Include full_read.h.
85375         (get_fs_usage): Use full_read instead of safe_read.
85376
85377         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85378
85379 2002-12-12  Karl Berry  <karl@gnu.org>
85380
85381         * config/config.guess: update from prep.
85382
85383 2002-12-11  Bruno Haible  <bruno@clisp.org>
85384
85385         * m4/setenv.m4: New file, from gettext-0.11.5.
85386
85387 2002-12-11  Bruno Haible  <bruno@clisp.org>
85388
85389         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85390         not unsetenv().
85391         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85392         modifications:
85393
85394         2002-12-11  Bruno Haible  <bruno@clisp.org>
85395
85396                 * setenv.c (alloca): Fall back to malloc.
85397                 (freea): New macro.
85398                 (setenv): Use freea() to free memory allocated with alloca().
85399
85400         2002-11-13  Bruno Haible  <bruno@clisp.org>
85401
85402                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85403                 function declarations.
85404                 * unsetenv.c (unsetenv): Likewise.
85405
85406         2002-03-04  Bruno Haible  <bruno@clisp.org>
85407
85408                 Portability to AIX 4.3.3.
85409                 * unsetenv.c: New file, extracted from setenv.c.
85410                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85411
85412         2001-12-20  Bruno Haible  <bruno@clisp.org>
85413
85414                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85415                 use malloc instead. For SunOS 4.
85416
85417         2001-12-11  Bruno Haible  <bruno@clisp.org>
85418
85419                 * setenv.c: Declare alloca.
85420                 (compar_fn_t): New typedef.
85421                 (KNOWN_VALUE, STORE_VALUE): Use it.
85422
85423         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85424         setenv.h.
85425
85426 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85427
85428         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85429         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85430         Choose values that are less likely to collide with system fnmatch
85431         options.
85432         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85433         defined (e.g., a pure POSIX system).
85434         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85435         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85436
85437 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85438
85439         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85440         a pain in practice to deal with generated m4 files.  This change
85441         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85442
85443         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85444         and jm-glibc-io.m4, as they are no longer a special case.
85445         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85446         kludge and the auto-generation stuff.  Check only whether the
85447         functions are declared, not whether they exist, since older hosts
85448         that don't declare the functions can't use the optimization anyway.
85449
85450 2002-12-06  Jim Meyering  <jim@meyering.net>
85451
85452         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85453
85454         Merge in changes from libc's misc/error.c, in preparation
85455         for the merge of gnulib's changes back into libc.
85456
85457         * lib/error.c (_): Define only if not already defined.
85458         Move definition to follow all #include directives.
85459         Include unlocked-io.h only if !_LIBC.
85460         [_LIBC]: Include <libio/libioP.h>.
85461         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85462         (fflush): Tweak definition to use INTUSE.
85463         (putc): Define.
85464
85465 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85466
85467         * lib/alloca.c [defined emacs]: Include "lisp.h".
85468         (xalloc_die) [defined emacs]: New macro.
85469         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85470         [! defined emacs]: Include <xalloc.h>.
85471         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85472         (pointer): Typedef to POINTER_TYPE *.
85473         (malloc): Remove decl; we now always use xmalloc.
85474         (alloca): Use old-style definition, since Emacs needs this.
85475         Check for arithmetic overflow when computing combined size.
85476
85477 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85478
85479         Do not generate unlocked-io.h automatically, since it's easier to
85480         maintain it by hand.
85481
85482         * lib/unlocked-io.h: New file, from GNU diffutils,
85483         but with proper copyright notice and attribution.
85484         * lib/gen-uio: Remove.
85485         * lib/Makefile.am: Add copyright notice.
85486         (libfetish_a_SOURCES): Add unlocked-io.h.
85487         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85488         (DISTCLEANFILES, io_functions): Remove macros.
85489         (EXTRA_DIST): Remove gen_uio.
85490         (unlocked-io.h): Remove rule.
85491
85492 2002-12-04  Jim Meyering  <jim@meyering.net>
85493
85494         Reflect the fact that stat.c and lstat.c are no longer generated.
85495         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85496         (DISTCLEANFILES): Likewise.
85497         (EXTRA_DIST): Likewise.
85498         (all_local): Don't depend on stat.c or lstat.c.
85499         (stat.c, lstat.c): Remove rules.
85500         (EXTRA_DIST): Remove xstat.in.
85501
85502         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85503         * lib/stat.c: New file.  Contents mostly from xstat.in.
85504         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85505         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85506
85507         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85508         too.
85509         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85510
85511 2002-12-03  Jim Meyering  <jim@meyering.net>
85512
85513         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85514         but not semantics, to minimize the differences between these two files.
85515         (safe_read): Change comment to mention SAFE_READ_ERROR.
85516
85517         * lib/safe-read.c (IS_EINTR): Define.
85518         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85519
85520 2002-12-02  Jim Meyering  <jim@meyering.net>
85521
85522         * lib/safe-read.c (EINTR): Define.
85523         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85524         (INT_MAX): Provide fallback.
85525         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85526
85527         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85528
85529 2002-12-02  Bruno Haible  <bruno@clisp.org>
85530
85531         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85532         Define, taken from safe-read.c.
85533         (INT_MAX): Provide fallback.
85534         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85535         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85536
85537         * lib/safe-read.c (EINTR): Remove definition.
85538         (safe_read): Don't use EINTR if it is absent.
85539
85540 2002-12-01  Jim Meyering  <jim@meyering.net>
85541
85542         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85543         zero.
85544         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85545
85546 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85547
85548         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85549         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85550         with `if (! (value < limit)) abort ();', for readability.
85551
85552 2002-11-26  Karl Berry  <karl@gnu.org>
85553
85554         * lib/strdup.c: copy from libc again, with jim's ok.
85555         * lib/.cppi-disable: re-add strdup.c
85556
85557 2002-11-25  Karl Berry  <karl@gnu.org>
85558
85559         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85560         instead of "strtol.c".
85561
85562 2002-11-25  Karl Berry  <karl@gnu.org>
85563
85564         * config/install-sh: update from automake for variable quoting, $0 in
85565         error msgs, etc.
85566
85567         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85568         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85569         entry.
85570
85571 2002-11-25  Jim Meyering  <jim@meyering.net>
85572
85573         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85574
85575 2002-11-24  Karl Berry  <karl@gnu.org>
85576
85577         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85578         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85579
85580 2002-11-24  Jim Meyering  <jim@meyering.net>
85581
85582         Update from coreutils:
85583
85584         * lib/mktime.c: Merge in changes from libc.
85585
85586         Avoid a link-time failure on some Linux systems.
85587         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85588         (otherwise).
85589         (__mon_yday): Declare with the STATIC attribute.
85590         (__mktime_internal): Likewise.
85591         Based on a report from Greg Schafer.
85592
85593 2002-11-23  Jim Meyering  <jim@meyering.net>
85594
85595         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85596         Use `unsigned', not `int', as type of index.
85597
85598         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85599
85600         * lib/fsusage.c: Remove unneeded parentheses around operands of
85601         `defined'.
85602
85603 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85604
85605         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85606         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85607         so that we can be included first.
85608         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85609         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85610         No need to include stddef.h or sys/types.h any more.
85611         Surround local include files with "", not "<>".
85612         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85613         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85614         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85615         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85616         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85617         (ISPRINT): Remove; no longer needed now that we assume C89.
85618
85619         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85620         Preserve errno.
85621
85622         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85623         quotearg_char): Use SIZE_MAX rather than
85624         (size_t) -1 when we are talking about "infinity".
85625
85626         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85627
85628 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85629
85630         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85631         hint that one should use `if (! x) abort ();' rather than `assert
85632         (x);', and anyway it's one less thing to worry about configuring.
85633         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85634         hash_rehash, hash_insert): Use abort rather than assert.
85635
85636 2002-11-22  Bruno Haible  <bruno@clisp.org>
85637
85638         * lib/safe-read.h: Assume C89. Add comments.
85639         (safe_read): Change return type to size_t.
85640         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85641         byte counts > SSIZE_MAX correctly.
85642         * lib/safe-write.h: New file.
85643         * lib/safe-write.c: New file.
85644         * lib/full-read.h: New file.
85645         * lib/full-read.c: New file.
85646         * lib/full-write.h: Assume C89. Add comments.
85647         * lib/full-write.c: Include safe-write.h.
85648         (full_write): Rewritten to use safe_write.
85649         Suggested by Jim Meyering and Paul Eggert.
85650
85651 2002-11-21  Jim Meyering  <jim@meyering.net>
85652
85653         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85654
85655         Merge in changes from the coreutils.
85656
85657         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85658         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85659         <stdint.h>.
85660         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85661         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85662         int.  Work more efficiently if X is the same width as uintmax_t.
85663         Do not compare X to -1, to avoid bogus compiler warning.
85664         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85665         Don't assume that f_frsize and f_bsize are the same type.
85666
85667         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85668         warning on FreeBSD.
85669
85670         * lib/makepath.c (make_path): Restore umask *before* creating the final
85671         component.
85672         (make_path): Minor reformatting.
85673
85674         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85675         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85676         HAVE_MALLOC/HAVE_REALLOC.
85677
85678         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85679         dummy ones.  At least on GNU/Linux systems, `auto' means something
85680         else.
85681         From Michael Stone.
85682
85683 2002-11-21  Bruno Haible  <bruno@clisp.org>
85684
85685         Remove case insensitive option matching.
85686         * lib/argmatch.h (argcasematch): Remove declaration.
85687         (ARGCASEMATCH): Remove macro.
85688         (__xargmatch_internal): Remove case_sensitive argument.
85689         (XARGMATCH): Update.
85690         (XARGCASEMATCH): Remove macro.
85691         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85692         case_sensitive argument.
85693         (argcasematch): Remove function.
85694         (__xargmatch_internal): Remove case_sensitive argument.
85695         (main): Use XARGMATCH instead of XARGCASEMATCH.
85696
85697         * lib/xmalloc.c: Change compile-time error message. Add comment about
85698         required autoconf version.
85699
85700 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85701
85702         Merge argmatch cleanups from Bison.  Assume C89.
85703
85704         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85705         Include stdlib.h, for EXIT_FAILURE.
85706         Always include <string.h>, since we assume C89.
85707         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85708         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85709         Include <stddef.h> instead, since it's all we need for size_t.
85710         (PARAMS): Remove.  All uses removed.
85711         (ARRAY_CARDINALITY): Do not bother to #undef.
85712         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85713         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85714         Remove unnecessary parentheses.
85715         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85716         Insert necessary parentheses.
85717         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85718         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85719
85720 2002-11-19  Bruno Haible  <bruno@clisp.org>
85721
85722         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85723         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85724
85725         * lib/mbswidth.h (PARAMS): Remove macro.
85726         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85727         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85728
85729         * lib/gcd.h (PARAMS): Remove macro.
85730         (gcd): Use ANSI C function declarations.
85731         * lib/gcd.c (gcd): Likewise.
85732
85733 2002-11-15  Bruno Haible  <bruno@clisp.org>
85734
85735         * lib/strcspn.c: Include <stddef.h>.
85736         (strcspn): Use ANSI C function declaration. Change return type to
85737         size_t. Use NULL.
85738         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85739         (strpbrk): Use NULL.
85740         * lib/strpbrk.h (PARAMS): Remove macro.
85741         (strpbrk): Use ANSI C function declaration.
85742         * lib/strstr.c: Don't include <sys/types.h>.
85743         * lib/strstr.h (PARAMS): Remove macro.
85744         (strstr): Use ANSI C function declarations.
85745
85746 2002-11-14  Karl Berry  <karl@gnu.org>
85747
85748         * config/mkinstalldirs: `do' on separate line, instead of
85749         `for var; do'.
85750
85751 2002-11-06  Bruno Haible  <bruno@clisp.org>
85752
85753         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85754         * lib/gcd.c (gcd): Likewise.
85755
85756 2002-11-05  Bruno Haible  <bruno@clisp.org>
85757
85758         * lib/gcd.h: New file, from gettext-0.11.5.
85759         * lib/gcd.c: New file, from gettext-0.11.5.
85760
85761 2002-11-05  Bruno Haible  <bruno@clisp.org>
85762
85763         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85764         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85765         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85766         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85767
85768         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85769         <libintl.h>.
85770         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85771         <libintl.h>.
85772
85773         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85774         * lib/human.c: Include gettext.h instead of <libintl.h>.
85775         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85776         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85777         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85778         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85779         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85780         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85781         (textdomain): Remove definition.
85782         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85783
85784         * lib/long-options.c: Remove include of <libintl.h> and definition of
85785         _.
85786         * lib/same.c: Remove include of <libintl.h> and definition of _.
85787
85788 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85789
85790         * lib/config.charset: A few additions for Solaris.
85791
85792 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85793
85794         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85795         * lib/localcharset.c (locale_charset): Declare as extern "C".
85796
85797 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85798
85799         * lib/config.charset: msdos in uk_UA uses CP1125.
85800
85801 2002-11-04  Bruno Haible  <bruno@clisp.org>
85802
85803         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85804         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85805         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85806         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85807         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85808
85809 2002-11-04  Bruno Haible  <bruno@clisp.org>
85810
85811         * lib/localcharset.c (locale_charset): Don't return an empty string.
85812
85813 2002-11-04  Bruno Haible  <bruno@clisp.org>
85814
85815         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85816         aliases.
85817
85818 2002-11-04  Bruno Haible  <bruno@clisp.org>
85819
85820         * lib/config.charset: Update for newest glibc. Add canonical names
85821         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85822
85823 2002-11-04  Bruno Haible  <bruno@clisp.org>
85824
85825         * lib/config.charset: Add support for NetBSD.
85826
85827 2002-11-04  Bruno Haible  <bruno@clisp.org>
85828
85829         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85830
85831 2002-11-01  Bruno Haible  <bruno@clisp.org>
85832
85833         * configure.in: Add AC_CONFIG_AUX_DIR call.
85834         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85835         test/Makefile.
85836         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85837
85838 2002-09-28  Karl Berry  <karl@gnu.org>
85839
85840         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85841         installed automake until the next release, since changes have been
85842         made.
85843
85844 2002-09-25  Karl Berry  <karl@gnu.org>
85845
85846         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85847         * lib/getopt*: copy from libc/posix.
85848         * lib/gettext.h: copy from gettext.
85849         * lib/.cppi-disable: add strdup.c, gettext.h.
85850
85851 2002-09-25  Karl Berry  <karl@gnu.org>
85852
85853         * config/srclist.txt: enable gettext.h check.
85854         * config/config.{guess,sub}: update from prep.
85855         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85856                 from automake 1.6.3.
85857         See srclist*.
85858
85859 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85860
85861         * regex.c (PATFETCH): Remove the translating fetch.
85862         (PATFETCH_RAW): Rename to PATFETCH.
85863         (set_image_of_range): New fun.
85864         (SET_RANGE_TABLE_WORK_AREA): Use it.
85865         (regex_compile): Don't translate the pattern chars so eagerly.
85866         Only do it when inserting an `exactn' bytecode or when handling
85867         a char-range.
85868         (mutually_exclusive_p): Avoid empty statement.
85869
85870 2002-07-06  Jim Meyering  <meyering@lucent.com>
85871
85872         * m4/README: Don't mention Makefile.am.in.
85873         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85874
85875 2002-07-01  Jim Meyering  <meyering@lucent.com>
85876
85877         * lib/c-stack.c: Include sys/time.h.
85878         From Volker Borchert.
85879
85880 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85881
85882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85883
85884 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85885
85886         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85887         New macro.  Use it uniformly instead of
85888         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85889         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85890         reported by Vin Shelton.
85891
85892 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85893
85894         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85895         Do not assume SA_SIGINFO behavior.
85896         Bug reported by Jim Meyering on NetBSD 1.5.2.
85897
85898 2002-06-22  Jim Meyering  <meyering@lucent.com>
85899
85900         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85901         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85902
85903         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85904         now that configure.ac uses AC_GNU_SOURCE.
85905         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85906         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85907
85908         Update to latest tools.  Suggestions from Paul Eggert.
85909         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85910         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85911         * m4/fnmatch.m4: Likewise.
85912         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85913         to AC_HEADER_STDBOOL
85914
85915 2002-06-22  Jim Meyering  <meyering@lucent.com>
85916
85917         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85918         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85919
85920 2002-06-22  Jim Meyering  <meyering@lucent.com>
85921
85922         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85923
85924         * lib/exitfail.c, exitfail.h: Likewise.
85925         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85926
85927         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85928         of fnmatch.h.
85929         (EXTRA_DIST): Add fnmatch_loop.c.
85930         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85931
85932         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85933         * lib/fnmatch.c: Update from diffutils-2.8.2.
85934         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85935         * lib/fnmatch.h: Remove file.
85936
85937 2002-06-21  Jim Meyering  <meyering@lucent.com>
85938
85939         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85940         * m4/mbrtowc.m4: Likewise.
85941
85942         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85943         * m4/mbswidth.m4: Reflect name change:
85944         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85945         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85946
85947         * m4/lib-link.m4: Update from gettext-0.11.2.
85948         * m4/gettext.m4: Likewise.
85949
85950         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85951         From Alfred M. Szmidt.
85952
85953 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85954
85955         * lib/file-type.h: Report an error if neither S_ISREG nor
85956         S_IFREG is defined, instead of using a test specific to glibc
85957         2.2.  This should be safe, since POSIX requires S_ISREG and
85958         Unix Version 7 had S_IFREG.  We don't need to check for
85959         <sys/types.h> since we don't use any symbols that it defines.
85960
85961 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85962
85963         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85964         $@-t, so that each temporary file name is unique and valid in the first
85965         8 characters, for operation under DOS.
85966
85967 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85968
85969         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85970
85971 2002-06-15  Jim Meyering  <meyering@lucent.com>
85972
85973         Work even with DJGPP 2.03, which lacks support for symlinks.
85974         From Richard Dawe.
85975         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85976         is defined.
85977         * lib/lchown.c (S_ISLNK): Likewise.
85978
85979 2002-06-15  Jim Meyering  <meyering@lucent.com>
85980
85981         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85982         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85983         have been included before this file.
85984
85985 2002-06-14  Jim Meyering  <meyering@lucent.com>
85986
85987         * lib/file-type.h: Use the version from diffutils-2.8.2.
85988         * lib/file-type.c: Likewise.
85989
85990 2002-06-07  Jim Meyering  <meyering@lucent.com>
85991
85992         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
85993         They're needed at least for NetBSD 1.5.2.
85994         ($statxfs_includes): Include those same headers.
85995         ($statxfs_includes): Include sys/vfs.h if available.
85996         ($statxfs_includes): Likewise for sys/statvfs.h.
85997         Check for the following members in both structs statfs and statvfs:
85998         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
85999
86000 2002-06-01  Jim Meyering  <meyering@lucent.com>
86001
86002         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86003         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86004
86005 2002-05-28  Jim Meyering  <meyering@lucent.com>
86006
86007         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86008         Reported by Volker Borchert.
86009
86010 2002-05-27  Jim Meyering  <meyering@lucent.com>
86011
86012         Fix a problem seen only on nonconforming systems whereby ls.c's
86013         use of localtime, and then of gettimeofday would cause trouble:
86014         the localtime call used to initialize rpl_gettimeofday's save
86015         mechanism would clobber ls's current local time information so
86016         that in any long listing the first file would always be listed
86017         with date 1970-01-01.  Analysis by Volker Borchert.
86018
86019         * lib/gettimeofday.c (localtime): Undefine.
86020         (rpl_localtime): New function.
86021
86022 2002-05-27  Jim Meyering  <meyering@lucent.com>
86023
86024         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86025         localtime.
86026
86027         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86028         use the replacement function; it wouldn't resolve at link time.
86029         Reported by Volker Borchert.
86030
86031 2002-05-22  Jim Meyering  <meyering@lucent.com>
86032
86033         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86034         file-type.h.
86035         * lib/file-type.h: New file.
86036         * lib/file-type.c (file_type): New file/function.  Extracted from
86037         diffutils.
86038
86039 2002-04-30  Jim Meyering  <meyering@lucent.com>
86040
86041         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86042
86043 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86044
86045         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86046
86047 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86048
86049         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86050         Do not check for alloca.h (no longer used) or stdbool.h (was never
86051         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86052
86053 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86054
86055         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86056
86057 2002-04-29  Jim Meyering  <meyering@lucent.com>
86058
86059         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86060         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86061         Use AC_FUNC_STRNLEN here instead.
86062
86063         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86064         With autoconf-2.53a, it's part of AC_PROG_CC.
86065
86066 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86067
86068         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86069         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86070
86071 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86072
86073         * lib/sig2str.h, lib/sig2str.c: New files.
86074         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86075
86076 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86077
86078         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86079         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86080         of 127, since 64 is the largest conceivable number for ancient
86081         nonstandard hosts.
86082         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86083
86084 2002-04-28  Jim Meyering  <meyering@lucent.com>
86085
86086         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86087
86088 2002-04-24  Jim Meyering  <meyering@lucent.com>
86089
86090         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86091         (jm_PREREQ): Use it.
86092
86093         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86094         mach/mach.h fcntl.h.
86095         Check for this function: setlocale.
86096
86097 2002-04-24  Jim Meyering  <meyering@lucent.com>
86098
86099         * lib/gettext.h: New file, from Gettext.
86100         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86101         (libfetish_a_SOURCES): Add gettext.h.
86102
86103 2002-04-16  Jim Meyering  <meyering@lucent.com>
86104
86105         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86106         ut_pid, ut_id, ut_exit.
86107
86108 2002-04-16  Jim Meyering  <meyering@lucent.com>
86109
86110         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86111         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86112         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86113
86114 2002-04-12  Jim Meyering  <meyering@lucent.com>
86115
86116         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86117         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86118         existence of the getmntinfo function.  Needed for Darwin 5.3.
86119
86120         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86121         This is necessary at least on Darwin 5.3.
86122
86123         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86124         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86125         strnlen.o in the library, and that makes some versions of ranlib
86126         object.
86127
86128 2002-04-12  Jim Meyering  <meyering@lucent.com>
86129
86130         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86131
86132 2002-04-09  Jim Meyering  <meyering@lucent.com>
86133
86134         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86135         to be more precise.  Rather than saying we're checking whether the
86136         function `works', say what we're testing.
86137         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86138         Reported by Bruno Haible.
86139
86140 2002-03-10  Jim Meyering  <meyering@lucent.com>
86141
86142         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86143         Suggestion from Santiago Vila.
86144
86145 2002-03-08  Jim Meyering  <meyering@lucent.com>
86146
86147         * lib/rename.c: Mention that this wrapper is needed also on
86148         mips-dec-ultrix4.4 systems.
86149
86150 2002-03-02  Jim Meyering  <meyering@lucent.com>
86151
86152         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86153         not HAVE_CLOCK_SETTIME.
86154
86155 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86156
86157         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86158         Check for clock_settime.
86159
86160 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86161
86162         * lib/nanosleep.h: Rename to....
86163         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86164
86165         * lib/gettime.c: New file.
86166         * lib/settime.c: New file.
86167         * lib/stime.c: Remove.
86168
86169         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86170         timespec.h.  Remove nanosleep.h.
86171
86172 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86173
86174         * m4/acl.m4: New file.
86175         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86176         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86177
86178 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86179
86180         * lib/acl.c, lib/acl.h: New files.
86181         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86182
86183 2002-02-24  Jim Meyering  <meyering@lucent.com>
86184
86185         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86186         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86187         cause trouble.  Reported by Nelson Beebe.
86188
86189 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86190
86191         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86192         compilers that don't know that xalloc_die never returns.
86193
86194 2002-02-20  Jim Meyering  <meyering@lucent.com>
86195
86196         * lib/getdate.c: Regenerate using bison-1.33.
86197
86198 2002-02-17  Jim Meyering  <meyering@lucent.com>
86199
86200         * config/config.guess (main): Don't use `head -1'; it's no longer
86201         portable. Use `sed 1q' instead.
86202
86203 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86204
86205         * m4/codeset.m4: Upgrade to gettext-0.11.
86206         * m4/gettext.m4: Upgrade to gettext-0.11.
86207         * m4/glibc21.m4: Upgrade to gettext-0.11.
86208         * m4/iconv.m4: Upgrade to gettext-0.11.
86209         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86210         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86211         * m4/lib-ld.m4: New file, from gettext-0.11.
86212         * m4/lib-link.m4: New file, from gettext-0.11.
86213         * m4/lib-prefix.m4: New file, from gettext-0.11.
86214         * m4/progtest.m4: Upgrade to gettext-0.11.
86215
86216 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86217
86218         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86219         (jm_PREREQ): Use it.
86220
86221 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86222
86223         * lib/posixver.c, lib/posixver.h: New files.
86224         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86225
86226 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86227             Bruno Haible  <bruno@clisp.org>
86228
86229         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86230         (fwrite_success_callback): New declaration.
86231         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86232         print_unicode_char. Call failure callback instead of error.
86233         (fwrite_success_callback): New function.
86234         (exit_failure_callback): New function.
86235         (fallback_failure_callback): New function.
86236         (print_unicode_char): Call unicode_to_mb.
86237
86238 2002-01-26  Jim Meyering  <meyering@lucent.com>
86239
86240         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86241         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86242
86243 2002-01-26  Jim Meyering  <meyering@lucent.com>
86244
86245         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86246
86247 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86248
86249         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86250
86251 2002-01-22  Jim Meyering  <meyering@lucent.com>
86252
86253         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86254         Otherwise, some versions of automake would omit the rule that makes
86255         Makefile from Makefile.in.
86256
86257 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86258
86259         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86260         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86261         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86262         (memcoll): Set errno to zero if there is no error.
86263
86264         * lib/quotearg.c (quotearg_buffer_restyled):
86265         Fix bug with quoting buffers containing NUL when backslashing escapes.
86266         This bug was exposed by the other changes in this patch.
86267         (quotearg_n_options): New arg ARGSIZE.
86268         All callers changed.
86269         (quoting_options_from_style): New function.
86270         (quotearg_n_style): Use it.
86271         (quotearg_n_style_mem): New function.
86272
86273         * lib/quotearg.h (quotearg_n_style_mem): New function.
86274
86275 2002-01-19  Jim Meyering  <meyering@lucent.com>
86276
86277         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86278         Remove useless quotes: DF_PROG="df".
86279         * m4/strnlen.m4: New file.
86280
86281 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86282
86283         * lib/backupfile.c (ISDIGIT): Comment fix.
86284         * lib/getdate.y (ISDIGIT): Likewise.
86285         * lib/posixtm.c (ISDIGIT, year): Likewise.
86286         * lib/strverscmp.c (ISDIGIT): Likewise.
86287         * lib/userspec.c (ISDIGIT): Likewise.
86288
86289 2002-01-16  Jim Meyering  <meyering@lucent.com>
86290
86291         * lib/getdate.y: Add three semicolons, each just before a closing
86292         brace. Bison (as of version 1.31) no longer papers over that mistake.
86293
86294 2002-01-05  Jim Meyering  <meyering@lucent.com>
86295
86296         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86297
86298 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86299
86300         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86301         not silently exit merely because the output buffer happens to
86302         have nothing pending.
86303
86304 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86305
86306         See the big note in ../ChangeLog.
86307         * lib/human.c (suffixes): Prefer K to k for 1024.
86308         (generate_suffix_backwards): New function.
86309         (human_readable_inexact): Use it.
86310         * lib/xstrtol.c (__xstrtol): If there is no number but there
86311         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86312         Accept 'K' as well as 'k'.
86313
86314 2001-12-15  Jim Meyering  <meyering@lucent.com>
86315
86316         * lib/regex.h (__restrict_arr): Update from libc.
86317
86318         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86319         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86320         (STREQ): Define.
86321
86322 2001-12-14  Jim Meyering  <meyering@lucent.com>
86323
86324         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86325         Suggestion from Bruno Haible.
86326
86327 2001-12-10  Jim Meyering  <meyering@lucent.com>
86328
86329         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86330         xrealloc, Instead, include "xalloc.h".
86331         (initbuffer): Don't cast xmalloc return value to char*.
86332         (readline): Reword comment.
86333         Don't cast xrealloc return value to char*
86334         Return NULL, not 0.
86335
86336 2001-12-09  Jim Meyering  <meyering@lucent.com>
86337
86338         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86339         about `signed and unsigned type in conditional expression'.
86340         * lib/posixtm.c (posix_time_parse): Likewise.
86341
86342         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86343
86344         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86345         to avoid a pedantic warning.
86346
86347         * lib/getstr.c: Don't include assert.h.
86348         (getstr): Remove warning-evoking assertions.
86349         Return -1 if offset parameter is out of bounds.
86350         Change the type of a local from int to size_t.
86351
86352         * lib/strftime.c (my_strftime_localtime_r): Include this function
86353         definition in the `#if ! HAVE_TM_GMTOFF' block.
86354
86355         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86356         Include xalloc.h instead.
86357
86358 2001-12-02  Jim Meyering  <meyering@lucent.com>
86359
86360         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86361         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86362         included.
86363
86364         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86365         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86366
86367 2001-11-30  Akim Demaille  <akim@epita.fr>
86368
86369         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86370         before being defined.
86371
86372 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86373
86374         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86375         First arg is int, not unsigned.
86376         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86377         (SIZE_MAX, UINT_MAX): New macros.
86378         (quotearg_n_options): Abort if N is negative.
86379         Avoid overflow check on hosts where size_t is 64 bits and int
86380         is 32 bits, as overflow is impossible there.
86381         Fix off-by-one typo that caused unnecessary reallocation.
86382
86383 2001-11-27  Jim Meyering  <meyering@lucent.com>
86384
86385         * lib/tempname.c: Merge with version from libc.
86386         * lib/regex.c: Likewise.
86387
86388         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86389         systems for which STDC_HEADERS is 0, it was not included, resulting in
86390         a warning about an integer-to-pointer conversion problem with getenv.
86391         Reported by Volker Borchert.
86392
86393 2001-11-26  Jim Meyering  <meyering@lucent.com>
86394
86395         * lib/gtod.h: Remove file.
86396         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86397         * lib/gettimeofday.c: Don't include gtod.h.
86398         (GTOD_init): Remove function.
86399         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86400         Suggestion from Volker Borchert.
86401
86402 2001-11-23  Jim Meyering  <meyering@lucent.com>
86403
86404         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86405         it.
86406         * lib/hash.c (struct hash_table): Define it here instead.
86407
86408 2001-11-22  Jim Meyering  <meyering@lucent.com>
86409
86410         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86411
86412 2001-11-20  Jim Meyering  <meyering@lucent.com>
86413
86414         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86415         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86416
86417 2001-11-19  Jim Meyering  <meyering@lucent.com>
86418
86419         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86420         directory.  Use "conftestXXXXXX" as the template.
86421         Suggestion from Paul Eggert.
86422
86423         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86424         immediately, so the test doesn't mistakenly hit the max-open-files
86425         limit.
86426
86427 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86428
86429         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86430         (TEMPORARIES): New macro.
86431         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86432         removes an artificial limitation (e.g. HP-UX 10.20, where
86433         TMP_MAX is 17576).
86434
86435 2001-11-18  Jim Meyering  <meyering@lucent.com>
86436
86437         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86438
86439 2001-11-18  Jim Meyering  <meyering@lucent.com>
86440
86441         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86442         on SunOS 4.
86443
86444         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86445         files will be created before anything else.
86446
86447 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86448
86449         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86450         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86451
86452 2001-11-17  Jim Meyering  <meyering@lucent.com>
86453
86454         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86455         Prompted by a report from Bob Proulx.
86456
86457         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86458         Instead, require UTILS_FUNC_MKSTEMP.
86459
86460 2001-11-17  Jim Meyering  <meyering@lucent.com>
86461
86462         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86463         Now, that's done as part of AC_FUNC_STRTOD.
86464
86465 2001-11-17  Jim Meyering  <meyering@lucent.com>
86466
86467         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86468         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86469         rather than group writable.  Patch by Juan F. Codagnone.
86470
86471         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86472         xrealloc, Instead, include "xalloc.h".
86473
86474         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86475         Remove explicit declarations of xmalloc, xrealloc,
86476         and xstrdup.  Instead, include "xalloc.h".
86477
86478         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86479         unlocked-io.h.
86480         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86481         Likewise.
86482         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86483
86484         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86485         Reported by Padraig Brady.
86486
86487         * lib/mkstemp.c: #undef mkstemp.
86488         Include config.h.
86489         (rpl_mkstemp): Rename from mkstemp.
86490         Protoize.
86491
86492 2001-11-16  Jim Meyering  <meyering@lucent.com>
86493
86494         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86495         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86496         determine the amount of total physical memory, use pstat_getstatic.
86497         HPUX-11 doesn't define _SC_PHYS_PAGES.
86498         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86499         If sysconf couldn't be used to determine the amount of available
86500         physical memory, use both pstat_getstatic and pstat_getdynamic.
86501         Based on a patch from Bob Proulx.
86502
86503 2001-11-10  Jim Meyering  <meyering@lucent.com>
86504
86505         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86506         (jm_PREREQ): Use it.
86507
86508 2001-11-09  Jim Meyering  <meyering@lucent.com>
86509
86510         * m4/jm-macros.m4: Require autoconf-2.52f.
86511         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86512         Use these AC_-prefixed names, not the AM_-prefixed ones.
86513
86514         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86515
86516 2001-11-05  Jim Meyering  <meyering@lucent.com>
86517
86518         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86519
86520 2001-11-04  Jim Meyering  <meyering@lucent.com>
86521
86522         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86523         $DEFS.
86524
86525 2001-11-03  Jim Meyering  <meyering@lucent.com>
86526
86527         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86528         of AC_DEFUN.
86529
86530         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86531         know the name of the variable in the macro definition.
86532
86533 2001-11-03  Jim Meyering  <meyering@lucent.com>
86534
86535         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86536         in argmatch_to_argument call.
86537
86538         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86539         argument.
86540
86541         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86542         e.g., a fault due to an attempt to free a NULL pointer.
86543
86544 2001-11-01  Jim Meyering  <meyering@lucent.com>
86545
86546         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86547         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86548
86549 2001-11-01  Jim Meyering  <meyering@lucent.com>
86550
86551         * lib/dirfd.c, lib/dirfd.h: New files.
86552         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86553
86554         * lib/hash.c (hash_print) [TESTING]: Clean up.
86555
86556 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86557
86558         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86559         to avoid a warning if -Wall.
86560
86561 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86562
86563         * README: New file
86564         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86565         (per RMS's instructions, this is now the canonical source)
86566         * lgpl/, gpl/: New directories.
86567
86568 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86569
86570         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86571
86572 2001-10-21  Jim Meyering  <meyering@lucent.com>
86573
86574         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86575         this code would end up calling gettext even in packages built
86576         with --disable-nls.
86577         * lib/getopt.c (_): Likewise.
86578         * lib/regex.c (_): Likewise.
86579
86580 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86581
86582         * m4/error.m4 (jm_PREREQ_ERROR):
86583         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86584         AC_FUNC_STRERROR_R does that.
86585         Check for strerror declaration.
86586
86587         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86588         are supposed to have them these days.
86589         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86590         Merge changes from latest Autoconf CVS.
86591         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86592         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86593         POSIX decided to standardize on the int flavor of strerror_r.
86594
86595 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86596
86597         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86598         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86599         Use strerror_r that is only a macro, even if it is not a function.
86600         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86601         (private_strerror): Use prototypes, not old-style function definition.
86602         (print_errno_message): New function.
86603         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86604         char*-flavored one.
86605         (error_tail, error, error_at_line): Use it.
86606
86607 2001-10-11  Jim Meyering  <meyering@lucent.com>
86608
86609         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86610         and quote_n (1, ... to avoid clobbering a buffer.
86611
86612 2001-10-05  Jim Meyering  <meyering@lucent.com>
86613
86614         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86615         hash-pjw.h.
86616         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86617         * lib/hash-pjw.h: New file.
86618
86619 2001-09-30  Jim Meyering  <meyering@lucent.com>
86620
86621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86622         `struct fsstat' has the `f_fstypename' member.
86623         Use that to define FS_TYPE, which is now used to make
86624         the getfsstat link test tighter.
86625
86626 2001-09-30  Jim Meyering  <meyering@lucent.com>
86627
86628         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86629         Include <sys/ucred.h>, for Apple Darwin.
86630         Include sys/mount.h and sys/fs_types.h only if available.
86631         (FS_TYPE): Define.
86632         (read_filesystem_list): Use FS_TYPE.
86633
86634 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86635
86636         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86637         a boolean context.
86638
86639 2001-09-29  Jim Meyering  <meyering@lucent.com>
86640
86641         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86642         [one-argument getmntent function]): Include stdio.h before mntent.h.
86643         SunOS 4.1.x needs it for the declaration of `FILE'.
86644         Patch by Volker Borchert.
86645
86646         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86647         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86648         sys/fs_types.h, and make the link-test for getfsstat guard #include
86649         directives with appropriate #if HAVE_*_H tests so that we can
86650         detect getfsstat on Apple Darwin1.3.7 systems.
86651         Reported by Nelson Beebe.
86652         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86653
86654 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86655
86656         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86657         #defines strtoimax.  Also treat the other strto* functions
86658         like strtoimax.
86659
86660         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86661         Check for strtoul and strtoumax,
86662         as those declarations are made even in the signed case.
86663         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86664         Likewise, for strtol and strtoimax.
86665
86666 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86667
86668         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86669         #defines strtoimax.  Also treat the other strto* functions
86670         like strtoimax.
86671
86672         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86673         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86674         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86675
86676 2001-09-26  Jim Meyering  <meyering@lucent.com>
86677
86678         Most macros in unlocked-io.h had the wrong number of arguments.
86679         * lib/gen-uio: New script.
86680         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86681         * lib/unlocked-io.hin: Remove file.
86682         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86683         rather than trying to embed it here.
86684         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86685         Reported by Padraig Brady.
86686
86687 2001-09-25  Volker Borchert  <bt@teknon.de>
86688
86689         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86690         `result'.
86691
86692 2001-09-24  Jim Meyering  <meyering@lucent.com>
86693
86694         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86695
86696 2001-09-23  Jim Meyering  <meyering@lucent.com>
86697
86698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86699         instead of the mere test for existence of mntent.h.  The latter
86700         would get a false-positive on AIX 3.4 systems.
86701         In the outer getmntent if-block, don't die if neither of the getmntent
86702         tests succeeds.  Instead, just fall through and continue with the
86703         remaining tests.
86704
86705 2001-09-23  Jim Meyering  <meyering@lucent.com>
86706
86707         * lib/mountlist.c: Remove useless parentheses in #if directives.
86708         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86709         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86710
86711 2001-09-22  Jim Meyering  <meyering@lucent.com>
86712
86713         * m4/gettext.m4: New file.  From gettext.
86714         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86715         * m4/progtest.m4: Likewise
86716         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86717         * m4/glibc21.m4: Likewise.
86718
86719         * m4/libintl.m4: Remove.  No longer used.
86720
86721 2001-09-22  Jim Meyering  <meyering@lucent.com>
86722
86723         * lib/localcharset.c: Update from latest gettext.
86724         * lib/config.charset: Likewise.
86725
86726 2001-09-20  Jim Meyering  <meyering@lucent.com>
86727
86728         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86729         strtoimax.
86730         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86731         strtoumax.
86732
86733 2001-09-20  Jim Meyering  <meyering@lucent.com>
86734
86735         * lib/xstrtol.c (strtoimax): Guard declaration with
86736         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86737         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86738         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86739         (strtoumax): Likewise, for completeness (it wasn't necessary).
86740
86741 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86742
86743         * lib/strtoimax.c (HAVE_LONG_LONG):
86744         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86745         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86746         to work around bug in IBM C compiler.
86747
86748 2001-09-17  Jim Meyering  <meyering@lucent.com>
86749
86750         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86751         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86752         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86753         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86754         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86755         whenever the right hand side need not be expanded by the shell.
86756
86757 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86758
86759         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86760         library.  It's not correct, as some older glibcs are buggy.
86761         fnmatch wasn't fixed until glibc 2.2.
86762
86763         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86764         special shell magic here.
86765
86766 2001-09-16  Jim Meyering  <meyering@lucent.com>
86767
86768         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86769         * m4/jm-macros.m4: Require it.
86770
86771 2001-09-16  Jim Meyering  <meyering@lucent.com>
86772
86773         * lib/mkdir.c: New file.
86774
86775 2001-09-15  Jim Meyering  <meyering@lucent.com>
86776
86777         * m4/jm-macros.m4: Check for help2man.
86778
86779 2001-09-11  Jim Meyering  <meyering@lucent.com>
86780
86781         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86782         The body, by Paul Eggert, was moved here from configure.in.
86783         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86784
86785 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86786
86787         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86788         (jm_PREREQ): Use it.
86789
86790 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86791
86792         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86793         Use ssize_t, not int, to store result of readlink.
86794         Check for ssize_t overflow as well as size_t overflow,
86795         as POSIX says the result of readlink is implementation-defined
86796         when ssize_t overflows.
86797         Remove unnecessary cast to char*.
86798         Use free+malloc instead of realloc, as the storage doesn't need
86799         to be preserved and it's clearer and can be more efficient that way.
86800         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86801         * lib/xreadlink.h (xreadlink): Update prototype.
86802
86803 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86804
86805         * lib/xgetcwd.c: Revert some of the previous change; intead,
86806         fix the HAVE_GETCWD_NULL code to behave more like the
86807         !HAVE_GETCWD_NULL code used to.
86808
86809         Include "xalloc.h".
86810         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86811         invoke xalloc_die.
86812
86813 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86814
86815         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86816         sys/param.h, as pathmax.h includes them.
86817
86818 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86819
86820         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86821         (jm_PREREQ_XGETCWD): New macro.
86822
86823         * m4/getcwd.m4: New file.
86824
86825 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86826
86827         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86828         like the HAVE_GETCWD_NULL code.
86829         Include pathmax.h if not HAVE_GETCWD.
86830         Do not include xalloc.h.
86831         (INITIAL_BUFFER_SIZE): New symbol.
86832         Do not use xmalloc / xrealloc, since the caller is responsible for
86833         handling errors.  Preserve errno around `free' during failure.
86834         Do not overrun buffer when using getwd.
86835
86836 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86837
86838         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86839         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86840         getcwd (NULL, 0).
86841
86842 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86843
86844         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86845         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86846         spotted by Jim Meyering.
86847
86848 2001-09-03  Jim Meyering  <meyering@lucent.com>
86849
86850         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86851         failure.
86852
86853 2001-09-02  Jim Meyering  <meyering@lucent.com>
86854
86855         * lib/error.c: Update from GNU libc.
86856
86857 2001-09-01  Jim Meyering  <meyering@lucent.com>
86858
86859         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86860         Used by df.
86861
86862 2001-09-01  Jim Meyering  <meyering@lucent.com>
86863
86864         * lib/xreadlink.c: New file.
86865         * lib/xreadlink.h: New file.
86866         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86867         xreadlink.h.
86868
86869         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86870         doesn't conflict with sparc Solaris 7's definition in
86871         /usr/include/sys/int_types.h.
86872
86873         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86874         files.
86875         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86876         and strncasecmp as r-values.  Unixware didn't have declarations.
86877
86878 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86879
86880         * lib/xstrtol.h: Add copyright notice.
86881         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86882         LONGINT_INVALID_SUFFIX_CHAR.
86883
86884 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86885
86886         * lib/xstrtol.c (strtoimax): New decl.
86887
86888 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86889
86890         * lib/xgetcwd.c: Don't include pathmax.h.
86891         Include stdlib.h and unistd.h if available.
86892         Include xalloc.h.
86893         (xmalloc, xstrdup, free): Remove decls.
86894         (xgetcwd): Don't assume sizes fit in unsigned.
86895         Check for overflow when computing sizes.
86896         Simplify reallocation code.
86897
86898 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86899
86900         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86901         a directory's st_size can have an arbitrary value, so the old
86902         usage could waste an arbitrary amount of memory.  All uses
86903         changed.
86904         * lib/savedir.h: Update prototype.
86905
86906 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86907
86908         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86909
86910         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86911         old strtoimax.c.
86912
86913         Also, make the following further changes to make this file's
86914         configuration more similar to that of strtol.c:
86915         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86916         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86917         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86918         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86919         changed to signed values.
86920
86921         And make the following changes as well:
86922         Fix copyright notice, as 1999 was missing.
86923         (verify): New macro.
86924         (strtoimax): Check sizes at compile-time, not run-time.
86925         Prefer strtol to strtoll if both work.
86926         (main): Remove; it was not that useful and was a pain to maintain.
86927
86928         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86929
86930 2001-08-31  Jim Meyering  <meyering@lucent.com>
86931
86932         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86933         Use an initial, malloc'd, buffer of length 128 rather than
86934         a statically allocated one of length 1024.
86935
86936 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86937
86938         Simplify code, partly by assuming autoconf 2.52 semantics.
86939
86940         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86941
86942         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86943         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86944         All uses removed.
86945         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86946         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86947         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86948         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86949         jm_AC_HEADER_INTTYPES_H.
86950         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86951
86952         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86953
86954         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86955         Quote first arg of AC_DEFUN.
86956         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86957         since they are needed to parse the include file even if we need
86958         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86959         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86960         but with opposite signedness.
86961
86962 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86963
86964         Merge 'exclude' changes from tar 1.13.22.
86965         This fixes one or two unlikely storage allocation overflow bugs,
86966         but doesn't change user-visible behavior otherwise.
86967
86968 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86969
86970         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86971         (jm_PREREQ_EXCLUDE): New macro.
86972
86973 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86974
86975         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86976         tm to be declared.
86977
86978 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86979
86980         * lib/hash.c: Remove '2001' from copyright notice.
86981
86982 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86983
86984         * lib/full-write.h: New file.
86985         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86986         * lib/full-write.c: Correct credits, as cccp.c no longer
86987         exists and anyway it was so heavily changed from the old cccp
86988         code as to be unrecognizable.  Include full-write.h.
86989         (full_write): Return size_t, with short writes meaning failure.
86990         All callers changed.  This fixes a bug with large buffers
86991         on 64-bit hosts.
86992         * lib/utime.c: Include full-write.h.
86993
86994 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86995
86996         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
86997         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
86998         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
86999         Include if available.
87000         (<xalloc.h>): Include
87001         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87002         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87003         collide with FNM macros.
87004         (struct patopts): New struct.
87005         (struct exclude): Use it, as exclude patterns now come with options.
87006         (new_exclude): Support above changes.
87007         (new_exclude, add_exclude_file):
87008         Initial size must now be a power of two to simplify overflow checking.
87009         (free_exclude, fnmatch_no_wildcards): New function.
87010         (excluded_filename): No longer requires options arg, as the options
87011         are determined by add_exclude.  Now returns bool, not int.
87012         (excluded_filename, add_exclude):
87013         Add support for the fancy new exclusion options.
87014         (add_exclude, add_exclude_file): Now takes int options arg.
87015         Check for arithmetic overflow when computing sizes.
87016         (add_exclude_file): xrealloc might modify errno, so don't
87017         realloc until after errno might be used.
87018
87019         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87020         New macros.
87021         (free_exclude): New decl.
87022         (add_exclude, add_exclude_file): Now takes int options arg.
87023         (excluded_filename): No longer requires options arg, as the options
87024         are determined by add_exclude.  Now returns bool, not int.
87025
87026 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87027
87028         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87029
87030 2001-08-27  Jim Meyering  <meyering@lucent.com>
87031
87032         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87033
87034         * lib/version-etc.c (N_): Remove definition.
87035         Revert most of last change.
87036         Instead, simply don't mark the `Copyright...' string for translation.
87037         Based on advice from Paul Eggert.
87038
87039         * lib/strtoxmax.c: Tweak comment.
87040
87041 2001-08-26  Jim Meyering  <meyering@lucent.com>
87042
87043         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87044
87045         * m4/xstrtoimax.m4: New file.
87046         * m4/xstrtoumax.m4: Add comments explaining why we
87047         AC_REPLACE_FUNCS(strtol).
87048
87049 2001-08-26  Jim Meyering  <meyering@lucent.com>
87050
87051         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87052         of copyright with `%s' so translators don't get an untranslated
87053         message in 2002.
87054         (COPYRIGHT_YEAR): Define.
87055         (version_etc): Use fprintf rather than fputs.
87056         Suggestion from Ulrich Drepper.
87057
87058         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87059
87060         * lib/strtoll.c: New file, from GNU libc.
87061         * lib/xstrtoimax.c: New file.
87062
87063         * lib/xstrtol.h: Add xstrtoimax.
87064         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87065         * lib/strtoimax.c: New file.  Likewise, but first define
87066         STRTOUXMAX_SIGNED.
87067
87068         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87069         ...
87070         * lib/strtoxmax.c: ... then renamed to this.
87071
87072 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87073
87074         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87075         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87076         (jm_AC_TYPE_INTMAX_T): New macro.
87077         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87078
87079         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87080
87081         * m4/longlong.m4: Renamed from ulonglong.m4.
87082         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87083         * m4/uintmax_t.m4: Removed.
87084
87085 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87086
87087         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87088         Port to Solaris 8, where 'sed' requires a space after the 'r'
87089         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87090         Redirect output to $tmp just once.
87091
87092 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87093
87094         * lib/addext.c (<errno.h>): Include.
87095         (errno): Declare if not defined.
87096         (addext): Work correctly when pathconf returns -1 and leaves
87097         errno alone because there is no limit.  Also, work even if
87098         pathconf returns a value greater than SIZE_MAX.
87099
87100 2001-08-12  Jim Meyering  <meyering@lucent.com>
87101
87102         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87103         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87104         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87105         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87106         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87107         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87108         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87109         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87110         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87111         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87112         utime.m4, utimes.m4, xstrtoumax.m4:
87113         Quote the first argument in each use of AC_DEFUN.
87114
87115 2001-08-12  Jim Meyering  <meyering@lucent.com>
87116
87117         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87118         Simply `return getcwd (NULL, 0);'.
87119         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87120         Use 1300 as initial value for length, not PATH_MAX.
87121
87122         * lib/pathmax.h: Clean up cpp syntax.
87123
87124 2001-08-12  Jim Meyering  <meyering@lucent.com>
87125
87126         * lib/gettimeofday.c: New file.
87127         * lib/gtod.h: New file.
87128         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87129
87130 2001-08-05  Jim Meyering  <meyering@lucent.com>
87131
87132         * m4/jm-macros.m4: Require autoconf-2.52.
87133
87134 2001-08-04  Jim Meyering  <meyering@lucent.com>
87135
87136         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87137         stmt, to get in sync with glibc.
87138
87139 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87140
87141         The following changes are from gettext 0.10.39 as maintained by
87142         Bruno Haible.
87143
87144         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87145         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87146         with inverted sense.  All uses changed.
87147
87148         * lib/mbswidth.c: Don't include <limits.h>.
87149         Include <stdlib.h> and <string.h> unconditionally.
87150         (iswcntrl, mbsinit, ISCNTRL): New macros.
87151         (mbsnwidth): Use K&R style function declarations.
87152         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87153         can optimize it when MB_CUR_MAX == 1.
87154         The width of control characters is zero, not 1.
87155
87156 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87157
87158         The following changes are from gettext 0.10.39 as maintained by
87159         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87160
87161         * m4/codeset.m4: Upgrade to serial AM1.
87162         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87163         all uses changed.  Quote first arg of AC_DEFUN.
87164         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87165
87166         * m4/iconv.m4: Upgrade to serial AM2.
87167         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87168         Add --with-libconv-prefix.
87169         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87170         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87171         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87172         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87173         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87174
87175         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87176         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87177         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87178         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87179         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87180         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87181         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87182         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87183         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87184
87185         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87186         string.h any more.
87187
87188         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87189         not the default value.
87190
87191         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87192         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87193         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87194         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87195         Also check for iswcntrl, used for wcwidth fallback.
87196         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87197         to Autoconf 2.13.
87198
87199 2001-08-03  Jim Meyering  <meyering@lucent.com>
87200
87201         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87202         as it was in the original.  Reported by Paul Eggert.
87203
87204 2001-07-16  Jim Meyering  <meyering@lucent.com>
87205
87206         * m4/gettimeofday.m4: New file.
87207         Prompted by a report from Bernhard Baehr.
87208
87209 2001-07-15  Jim Meyering  <meyering@lucent.com>
87210
87211         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87212         stuff. Now it's in ../Makefile.cfg.
87213
87214 2001-07-15  Jim Meyering  <meyering@lucent.com>
87215
87216         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87217         (BUILT_SOURCES): Add unlocked-io.h.
87218         (io_functions): Define.
87219         (unlocked-io.h): New rule.
87220         (DISTCLEANFILES): Add unlocked-io.h.
87221         (all-local): Depend on unlocked-io.h, to ensure it is created.
87222
87223         * lib/unlocked-io.hin: New file
87224
87225         * lib/regex.c: Update from glibc.
87226
87227 2001-07-05  Jim Meyering  <meyering@lucent.com>
87228
87229         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87230         recommendation.
87231         (libfetish_a_SOURCES): Put all .h files here instead.
87232         Remove a thus-exposed (better checks in automake) duplicate and
87233         two unnecessary .h files.
87234
87235 2001-07-04  Jim Meyering  <meyering@lucent.com>
87236
87237         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87238         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87239         distcheck failure.
87240
87241 2001-07-02  Jim Meyering  <meyering@lucent.com>
87242
87243         The following changes were prompted by suggestions from Bruno Haible.
87244
87245         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87246         is now generated.
87247         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87248         definition of EXTRA_DIST.
87249         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87250         ensure that the generated file is created/updated whenever the list
87251         of $(unlocked_functions) is changed.
87252         (jm-glibc-io.m4): New rule.
87253         (unlocked-io.h): New rule -- currently unused.
87254
87255 2001-06-24  Jim Meyering  <meyering@lucent.com>
87256
87257         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87258         unmatched right bracket, rather than kludging it with an extra,
87259         falsely-matching quote in a comment.  Patch by Akim Demaille.
87260
87261 2001-06-11  Jim Meyering  <meyering@lucent.com>
87262
87263         * lib/regex.c: Update from GNU libc.
87264
87265 2001-05-27  Jim Meyering  <meyering@lucent.com>
87266
87267         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87268         Check for ut_type in struct utmp.
87269
87270 2001-05-27  Jim Meyering  <meyering@lucent.com>
87271
87272         * lib/readutmp.h (UT_TYPE): Define.
87273
87274 2001-05-24  Jim Meyering  <meyering@lucent.com>
87275
87276         * lib/argmatch.c: Include "quote.h".
87277         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87278         quote function.  Reported by Göran Uddeborg.
87279
87280 2001-05-22  Jim Meyering  <meyering@lucent.com>
87281
87282         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87283         now that we use the package-supplied version unconditionally.
87284         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87285
87286 2001-05-21  Jim Meyering  <meyering@lucent.com>
87287
87288         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87289         shell syntax errors.
87290
87291 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87292
87293         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87294
87295 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87296
87297         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87298         Don't bother to check library strftime, since
87299         we'll be using our own my_strftime function anyway.
87300         Define my_strftime instead of strftime.
87301
87302 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87303
87304         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87305         which is not yet declared.
87306
87307 2001-05-15  Jim Meyering  <meyering@lucent.com>
87308
87309         * m4/regex.m4: Use proper quoting so brackets appear in the test
87310         program.
87311         Reported by, and with help from, Bruno Haible.
87312
87313 2001-05-13  Jim Meyering  <meyering@lucent.com>
87314
87315         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87316         undefined.
87317
87318 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87319
87320         dirname code cleanup.  base_name now behaves more compatibly
87321         with POSIX basename when given file names that have trailing
87322         slashes, and similarly for dir_name.  Add new primitives
87323         base_len and dir_len.  Put the directory-name-related decls
87324         into dirname.h.
87325
87326         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87327         * lib/backupfile.c (base_name): Likewise.
87328         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87329         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87330         * lib/makepath.c (strip_trailing_slashes): Likewise.
87331         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87332         ISSLASH): Likewise.
87333         * lib/rename.c (strip_trailing_slashes): Likewise.
87334         * lib/same.c (base_name): Likewise.
87335         * lib/stripslash.c (ISSLASH): Likewise.
87336
87337         * lib/addext.c: Include <dirname.h> after size_t is defined.
87338         * lib/backupfile.c: Likewise.
87339
87340         * lib/addext.c (addext): Use base_len to trim redundant
87341         trailing slashes instead of doing it ourselves.
87342         But do not trim the last slash if it is not redundant.
87343
87344         * lib/backupfile.c (find_backup_file_name,
87345         max_backup_version): Use base_len instead of rolling it ourselves.
87346         Handle the case of "" and (on DOS) "C:" correctly.
87347
87348         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87349         needed. Include <string.h>, <dirname.h>.
87350         (base_name): Allow file names ending in slashes, other than names
87351         that are all slashes.  In this case, return the basename followed
87352         by the slashes.  This is more general, and can be used in places
87353         where the original base_name purposely had an assertion failure.
87354         (base_len): New function.
87355
87356         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87357         Do not include <assert.h>; no longer needed.
87358         Include xalloc.h.
87359         (memrchr): Remove decl.
87360         (dir_name_r): Remove.
87361         (dir_len): Renamed from dirlen.  All callers changed.
87362         Rewrite in terms of base_name, for simplicity and consistency.
87363         (dir_name): Never return NULL.  All callers changed.
87364         Do not include <stdlib.h> in test program; no longer needed.
87365         return 0; is fine for test program.
87366
87367         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87368         New macros.
87369         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87370
87371         * lib/path-concat.c (path_concat): Use base_len to compute
87372         base length, not strlen; this means we cannot rely on memcpy
87373         to null-terminate.
87374
87375         * lib/same.c (STREQ): Remove.
87376         (same_name): Handle the case where the basename ends in trailing '/'.
87377
87378         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87379         a slash was stripped.  Do not strip the last slash after a
87380         file system prefix.
87381
87382 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87383
87384         * lib/Makefile.am (libfetish_a_SOURCES):
87385         Add strftime.c, since we now compile it on all hosts.
87386
87387         * lib/strftime.c (my_strftime):
87388         Define to nstrftime if emacs, but only if my_strftime is not defined.
87389         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87390         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87391         Add one more extra argument: a nanoseconds value.
87392         All uses changed.
87393         (ns): New macro.
87394         (my_strftime function): Add %N format.
87395         (emacs_strftimeu): Renamed from emacs_strftime,
87396         with extra ut argument.
87397
87398 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87399
87400         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87401
87402 2001-04-21  Jim Meyering  <meyering@lucent.com>
87403
87404         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87405         doesn't interfere.
87406
87407 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87408
87409         * m4/ftruncate.m4: Check for chsize.
87410         Link with ftruncate.o unconditionally if ftruncate is missing.
87411         This was required when cross-compiling to i586-mingw32msvc.
87412
87413 2001-04-08  Jim Meyering  <meyering@lucent.com>
87414
87415         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87416         recomputed; that's necessary when the offset spans a DST transition.
87417         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87418
87419 2001-04-02  Jim Meyering  <meyering@lucent.com>
87420
87421         * lib/regex.h, regex.c: Update from GNU libc.
87422
87423 2001-03-24  Jim Meyering  <meyering@lucent.com>
87424
87425         * m4/jm-macros.m4: Require autoconf-2.49d.
87426
87427 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87428
87429         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87430
87431 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87432
87433         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87434
87435 2001-03-17  Jim Meyering  <meyering@lucent.com>
87436
87437         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87438         now that the version in autoconf is equivalent.
87439         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87440
87441         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87442         Suggestion from Akim Demaille.
87443
87444         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87445         (jm_PREREQ_TEMPNAME): New function.
87446
87447 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87448
87449         * lib/tempname.c (uint64_t): Define to uintmax_t if
87450         not defined, and if UINT64_MAX is not defined.
87451         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87452         Reported by John David Anglin.
87453
87454 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87455
87456         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87457         resolve alias if codeset is empty.
87458         * lib/config.charset (BeOS): Use wildcard syntax.
87459
87460 2001-03-13  Jim Meyering  <meyering@lucent.com>
87461
87462         * lib/path-concat.c (path_concat)
87463         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87464         concatenating e.g., `C:' and `foo'.
87465         From Bruno Haible.
87466
87467 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87468
87469         * lib/localcharset.c (locale_charset): Don't use
87470         setlocale(LC_CTYPE,NULL). Don't return NULL.
87471         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87472
87473 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87474
87475         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87476         support for DOS/DJGPP.
87477
87478 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87479
87480         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87481         lacks mkstemp.  Compile our own tempname.c if we compile our own
87482         mkstemp.c, as mkstemp relies on tempname.
87483
87484 2001-03-01  Jim Meyering  <meyering@lucent.com>
87485
87486         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87487         AH_VERBATIM really does output its argument verbatim.
87488
87489 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87490
87491         * lib/Makefile.am (libfetish_a_SOURCES):
87492         Add dup-safer.c, fopen-safer.c.
87493         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87494
87495         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87496         * lib/unistd-safer.h: New files.
87497
87498 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87499
87500         The mkstemp replacement is taken from glibc 2.2.2, with some
87501         portability fixes for use outside glibc, as follows:
87502
87503         * lib/tempname.c (struct_stat64): New macro.
87504         (direxists, __gen_tempname): Use it.
87505         This avoids a portability problem with Solaris 8.
87506
87507         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87508         (<stddef.h>, <stdint.h>, <string.h>):
87509         Include only if STDC_HEADERS || _LIBC.
87510         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87511         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87512         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87513         (__set_errno): Define this macro if <errno.h> doesn't.
87514         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87515         Define these macros if <stdio.h> doesn't.
87516         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87517         Define these macros if <sys/stat.h>
87518         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87519         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87520         __xstat64): Define if not _LIBC.
87521         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87522         (__gen_tempname): Invoke gettimeofday only if
87523         HAVE_GETTIMEOFDAY || _LIBC;
87524         otherwise, fall back on plain "time".
87525         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87526
87527         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87528
87529         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87530
87531 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87532
87533         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87534
87535 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87536
87537         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87538         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87539         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87540         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87541
87542 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87543
87544         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87545         Remove workaround macros for hosts that have mbrtowc but not
87546         mbstate_t, as we now insist on proper declarations for both
87547         before using mbrtowc.
87548
87549 2001-02-17  Jim Meyering  <meyering@lucent.com>
87550
87551         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87552         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87553         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87554         UnixWare 7.1.1.
87555
87556         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87557         rather than AC_CACHE_VAL.
87558
87559 2001-02-17  Jim Meyering  <meyering@lucent.com>
87560
87561         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87562         around included file name.
87563
87564         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87565
87566         * lib/strftime.c: Update from GNU libc (the only changes were to
87567         comments).
87568
87569 2001-02-17  Jim Meyering  <meyering@lucent.com>
87570
87571         * lib/regex.c: Update from libc.
87572
87573 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87574
87575         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87576         clash.
87577
87578 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87579
87580         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87581         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87582         Reported by Mark Hounschell via Paul Eggert.
87583
87584 2001-02-07  Jim Meyering  <meyering@lucent.com>
87585
87586         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87587
87588 2001-02-05  Jim Meyering  <meyering@lucent.com>
87589
87590         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87591         it includes the patch required for `large file' support with at least
87592         HP-UX's 10.20 /bin/cc.
87593
87594 2001-02-03  Jim Meyering  <meyering@lucent.com>
87595
87596         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87597         AS_IF, now that it works once again (mysteriously).
87598         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87599
87600 2001-01-30  Jim Meyering  <meyering@lucent.com>
87601
87602         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87603         * m4/chown.m4: Rename conftestchown to conftest.chown.
87604         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87605         s/conftestdir2/conftest.d2/.
87606         * m4/utimes.m4: s/conftestdata/conftest.data/
87607         Inspired by Pavel Roskin's change in autoconf.
87608
87609 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87610
87611         * lib/config.charset: Update for FreeBSD 4.2.
87612
87613 2001-01-27  Jim Meyering  <meyering@lucent.com>
87614
87615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87616         a use of AS_IF.
87617         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87618
87619 2001-01-26  Jim Meyering  <meyering@lucent.com>
87620
87621         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87622         quotearg.c includes it.
87623
87624 2001-01-26  Jim Meyering  <meyering@lucent.com>
87625
87626         * lib/quotearg.c: Include stddef.h.
87627         * lib/quote.c: Include stddef.h.
87628         Reported by Axel Kittenberger.
87629
87630         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87631         line in double quotes so that it evokes a better diagnostic.
87632         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87633         Reported by Axel Kittenberger.
87634
87635 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87636
87637         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87638         as if it was a `charset'.
87639
87640 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87641
87642         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87643         has const.
87644
87645 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87646
87647         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87648         to avoid a warning.  Add back 'const' to inptr.
87649
87650 2001-01-20  Jim Meyering  <meyering@lucent.com>
87651
87652         Be sure that headers are checked before used in code compiled
87653         for the type checks.
87654         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87655         In place of that, invoke jm_CHECK_ALL_TYPES.
87656         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87657         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87658         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87659         The check for ssize_t was mistakenly run before the test for unistd.h.
87660
87661         The configure-time check for stdbool.h was missing.
87662         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87663         (jm_PREREQ_HASH): New function.
87664
87665 2001-01-17  Jim Meyering  <meyering@lucent.com>
87666
87667         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87668         for autoconf-2.49c.
87669         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87670
87671 2001-01-16  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87674         From Bruno Haible.
87675
87676 2001-01-14  Jim Meyering  <meyering@lucent.com>
87677
87678         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87679         foo and bar.  Create conftestdir/ in the script, not in the C code.
87680         Remove directories in the script, not in the C code.
87681         Remove conftestdir{,2} before trying to create the directory.
87682         Make the entire configure script fail if the mkdir fails.
87683
87684 2001-01-14  Jim Meyering  <meyering@lucent.com>
87685
87686         * lib/rename.c: New file.  From Volker Borchert.
87687         Include stdlib.h, string.h or strings.h, and xalloc.h.
87688         Use strip_trailing_slashes rather than open-coding it.
87689
87690 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87691
87692         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87693
87694 2001-01-03  Jim Meyering  <meyering@lucent.com>
87695
87696         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87697         of local `inptr' to avoid warning with some system declarations of
87698         iconv.
87699
87700 2001-01-02  Volker Borchert  <bt@teknon.de>
87701
87702         * m4/rename.m4: New file.
87703         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87704
87705 2001-01-01  Jim Meyering  <meyering@lucent.com>
87706
87707         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87708         even on systems with utmpx.h.  It's necessary for the declaration of
87709         utmp's ut_user member.  Reported by Andreas Jaeger.
87710
87711         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87712         available. They are required for the declarations of getgrgid and
87713         getpwuid resp.
87714         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87715         Reported by Andreas Jaeger.
87716
87717 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87718
87719         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87720         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87721         so `make install' also works in VPATH builds.
87722
87723 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87724
87725         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87726         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87727         can be used in subdirectories.
87728
87729 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87730
87731         * lib/modechange.c: Do not assume that mode_t uses the
87732         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87733         the other-execute bit of FOO even if S_IXOTH != 1.
87734
87735         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87736         WOTH, XOTH, ALLM): New macros.
87737         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87738          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87739         Use them.
87740         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87741         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87742         (mode_compile):
87743         No need to use uintmax_t; unsigned long is long enough.
87744         Don't bother to get suffix since we don't use it.
87745
87746 2000-12-26  Jim Meyering  <meyering@lucent.com>
87747
87748         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87749         better with autoheader.
87750
87751 2000-12-24  Jim Meyering  <meyering@lucent.com>
87752
87753         * lib/hash.c (is_prime): Return explicit boolean values.
87754         (hash_get_first): Return NULL to appease Irix5.6's 89.
87755         Reported by Nelson Beebe.
87756
87757 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87758
87759         * lib/localcharset.c (locale_charset): Add support for Win32.
87760
87761 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87762
87763         * lib/physmem.h, lib/physmem.c: New files.
87764
87765         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87766         (noinst_HEADERS): Add physmem.h.
87767
87768         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87769         't' for compatibility with Solaris 8 sort.
87770
87771 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87772
87773         * lib/config.charset: Add support for BeOS.
87774
87775 2000-12-17  Jim Meyering  <meyering@lucent.com>
87776
87777         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87778         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87779
87780 2000-12-16  Jim Meyering  <meyering@lucent.com>
87781
87782         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87783         N and M) would have treated it like `chown N:N FILE'.
87784
87785         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87786
87787 2000-12-16  Jim Meyering  <meyering@lucent.com>
87788
87789         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87790         SHELLS_FILE to a file name that's useful on djgpp systems.
87791         Include stdlib.h.
87792         (ADDITIONAL_DEFAULT_SHELLS): Define.
87793         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87794         Based mostly on a patch from Prashant TR.
87795
87796 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87797
87798         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87799         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87800         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87801
87802 2000-12-08  Andreas Schwab  <schwab@suse.de>
87803
87804         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87805         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87806
87807 2000-12-07  Jim Meyering  <meyering@lucent.com>
87808
87809         * lib/stripslash.c (ISSLASH): Define.
87810         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87811         `/'.
87812         From Prashant TR.
87813
87814         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87815         (dir_name_r): Declare this function as static.
87816         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87817         manifest itself on a name containing a mix of slashes and
87818         backslashes.
87819         Make this function work with names starting with a DOS-style
87820         drive letter and colon prefix.
87821         (dir_name): Append `.' if necessary.
87822         Based mostly on patches from Prashant TR and Eli Zaretskii.
87823
87824         * lib/dirname.h (dir_name_r): Remove prototype.
87825
87826 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87827
87828         * m4/off_t-format.m4: Remove this file.
87829         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87830
87831 2000-12-06  Jim Meyering  <meyering@lucent.com>
87832
87833         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87834         replacement strtoull, we may well need the replacement strtoul, too.
87835         Check for declarations of strtoul and strtoull.
87836         Check for strtol.  Mainly as a cue to cause automake to include
87837         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87838         Check for limits.h -- strtol.c needs it.
87839
87840 2000-12-05  Jim Meyering  <meyering@lucent.com>
87841
87842         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87843
87844 2000-12-04  Jim Meyering  <meyering@lucent.com>
87845
87846         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87847         Also include memory.h, stdlib.h, unistd.h if appropriate.
87848         Reported by Andreas Jaeger (conflicting declaration of malloc).
87849
87850 2000-12-02  Jim Meyering  <meyering@lucent.com>
87851
87852         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87853         * m4/jm-macros.m4 (jm_MACROS): require it.
87854
87855 2000-12-02  Jim Meyering  <meyering@lucent.com>
87856
87857         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87858
87859 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87860
87861         * lib/memrchr.c: Include <config.h> before any system include file.
87862
87863 2000-11-30  Jim Meyering  <meyering@lucent.com>
87864
87865         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87866
87867 2000-11-30  Jim Meyering  <meyering@lucent.com>
87868
87869         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87870
87871 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87872
87873         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87874
87875 2000-11-26  Jim Meyering  <meyering@lucent.com>
87876
87877         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87878
87879 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87880
87881         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87882         size of (size_t) -1; it's not portable.
87883
87884 2000-11-17  Jim Meyering  <meyering@lucent.com>
87885
87886         * lib/strstr.c: Update from GNU libc.
87887
87888 2000-11-17  Akim Demaille  <akim@epita.fr>
87889
87890         * lib/obstack.h: Formatting changes.
87891         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87892         prevent type checking.
87893         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87894         cast the value to (void *): assigning a `foo *' to a `void *'
87895         variable is valid.
87896         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87897
87898 2000-11-16  Jim Meyering  <meyering@lucent.com>
87899
87900         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87901
87902 2000-11-11  Jim Meyering  <meyering@lucent.com>
87903
87904         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87905
87906 2000-11-10  Jim Meyering  <meyering@lucent.com>
87907
87908         * lib/obstack.h: Update from GNU libc.
87909         * lib/obstack.c: Likewise.
87910
87911 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87912
87913         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87914
87915 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87916
87917         * lib/getusershell.c (setusershell): Use rewind rather than
87918         fseek/fseeko, to avoid configuration hassles with fseeko.
87919         Don't bother opening SHELLS_FILE if shellstream is NULL;
87920         it's not necessary.
87921
87922 2000-11-05  Jim Meyering  <meyering@lucent.com>
87923
87924         * lib/makepath.h (make_dir): Declare.
87925         * lib/makepath.c (make_dir): Remove `static' attribute.
87926         Tweak a comment.
87927
87928 2000-11-04  Jim Meyering  <meyering@lucent.com>
87929
87930         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87931
87932 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87933
87934         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87935         last one in a bucket, advance to the next bucket.
87936
87937 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87938
87939         * lib/fnmatch.c: Do not comment out all the code if we are using
87940         the GNU C library, because in some cases we are replacing buggy
87941         code in the GNU C library itself.
87942
87943 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87944
87945         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87946         (regex_compile): Catch bogus \(\1\).
87947
87948 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87949
87950         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87951         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87952         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87953
87954 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87955
87956         * lib/error.h, getline.h, modechange.h:
87957         Remove "2000" from Copyright line, as the file hasn't been
87958         changed this year other than in the copyright notice.
87959
87960         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87961         was changed this year.
87962
87963 2000-10-29  Jim Meyering  <meyering@lucent.com>
87964
87965         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87966         renaming.
87967         * m4/ls-mntd-fs.m4: Likewise
87968
87969 2000-10-29  Jim Meyering  <meyering@lucent.com>
87970
87971         * lib/xstat.in: Fix grammar in comment.
87972
87973 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87974
87975         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87976         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87977         doesn't define __restrict_arr.
87978
87979 2000-10-28  Jim Meyering  <meyering@lucent.com>
87980
87981         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87982         (jm_PREREQ_MEMCHR): New function.
87983
87984 2000-10-28  Jim Meyering  <meyering@lucent.com>
87985
87986         * lib/memchr.c: Update from libc.
87987         Adjust for portability:
87988         [HAVE_STDLIB_H]: Include stdlib.h.
87989         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
87990         Undef __memchr, too.
87991         [!weak_alias]: Define __memchr to memchr.
87992
87993         * lib/regex.c: Update from libc.
87994         * lib/regex.h: Likewise.
87995         * lib/getopt1.c: Likewise.
87996         * lib/memcmp.c: Likewise.
87997
87998         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
87999         Avoid using fseek, when possible -- it's broken by design.
88000         Patch by Ulrich Drepper.
88001
88002 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88003
88004         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88005         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88006         Giving in to popular pressure to shut up the compiler with casts.
88007
88008 2000-10-26  Jim Meyering  <meyering@lucent.com>
88009
88010         * lib/strftime.c: Update from libc.
88011
88012 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88013
88014         * regex.c: More `unsigned char' -> `re_char' changes.
88015         Also change several `int' into `re_wchar_t'.
88016         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88017         (PUSH_FAILURE_POINTER): Don't cast any more.
88018         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88019         We want GCC to complain, since this piece of code makes
88020         re_match non-reentrant, which *should* be fixed.
88021         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88022         (EXTEND_BUFFER): Use RETALLOC.
88023         (SET_LIST_BIT): Don't cast.
88024         (re_wchar_t): New type.
88025         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88026         that those two functions will always properly return.
88027         (IMMEDIATE_QUIT_CHECK): Cast to void.
88028         (analyse_first): Use recursion rather than an explicit stack.
88029         (re_compile_fastmap): Can't fail anymore.
88030         (re_search_2): Don't check re_compile_fastmap for failure.
88031         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88032         Now also sets the new value (passed in a new argument).
88033         (re_match_2_internal): Use it.
88034         Also, use a new var `reg' of type size_t when looping through regs
88035         rather than reuse the inappropriate `mcnt'.
88036
88037 2000-10-25  Jim Meyering  <meyering@lucent.com>
88038
88039         * lib/obstack.c: Update from libc.
88040
88041 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88042
88043         * regex.c (regex_compile): Change the way of handling a range from
88044         a char less than 256 to a char not less than 256.
88045
88046 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88047
88048         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88049         NT-Emacs only.
88050         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88051         so that re_search functions only quit when callers expect them to.
88052
88053 2000-10-23  Jim Meyering  <meyering@lucent.com>
88054
88055         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88056         wrong.  That set_locale call must not have any side effects.
88057         From Paul Eggert.
88058
88059 2000-10-22  Jim Meyering  <meyering@lucent.com>
88060
88061         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88062         [CYCLIC]: Remove now-unused definition.
88063
88064         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88065         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88066         Suggestion from Ulrich Drepper.
88067
88068 2000-10-21  Jim Meyering  <meyering@lucent.com>
88069
88070         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88071         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88072         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88073
88074 2000-10-21  Jim Meyering  <meyering@lucent.com>
88075
88076         * lib/dirname.c (memrchr): Declare if necessary.
88077         (dir_name): Remove the restriction that there be no
88078         trailing slashes.  Now, this code skips past them, effectively
88079         ignoring them.
88080         [TEST_DIRNAME] (main): New unit tests.
88081
88082         * lib/memrchr.c: New file from GNU libc.
88083         Undef __memrchr, too.
88084         [!weak_alias]: Define __memrchr to memrchr.
88085         Guard weak_alias use with `#ifdef weak_alias'.
88086
88087 2000-10-21  Jim Meyering  <meyering@lucent.com>
88088
88089         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88090         (dir_name): Use dir_name_r.
88091         * lib/dirname.h (dir_name_r): Declare it.
88092
88093 2000-10-17  Jim Meyering  <meyering@lucent.com>
88094
88095         * lib/quote.h (PARAMS): Define and use.
88096         Reported by Akim Demaille.
88097
88098         * lib/getopt.c: Update from libc.
88099
88100 2000-10-16  Jim Meyering  <meyering@lucent.com>
88101
88102         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88103         setlocale.
88104         From Jan Fedak.
88105
88106 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88107
88108         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88109
88110 2000-09-25  Jim Meyering  <meyering@lucent.com>
88111
88112         * lib/md5.h (rol): Define (from GnuPG).
88113
88114         * lib/sha.c: Give credit (GnuPG) where due.
88115         (M): Use rol rather than open-coding it.
88116         Add a FIXME comment.
88117
88118 2000-09-21  Jim Meyering  <meyering@lucent.com>
88119
88120         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88121         Reported by Michael Stone.
88122
88123 2000-09-20  Jim Meyering  <meyering@lucent.com>
88124
88125         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88126         (noinst_HEADERS): Add sha.h.
88127         Based on code from Scott G. Miller and from GnuPG.
88128
88129 2000-09-18  Jim Meyering  <meyering@lucent.com>
88130
88131         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88132         LIBS. Otherwise, everyone ends up linking with -lelf for some
88133         configurations.
88134         Reported by Mike Stone.
88135
88136 2000-09-15  Jim Meyering  <meyering@lucent.com>
88137
88138         * lib/regex.c: Update from libc.
88139
88140 2000-09-10  Jim Meyering  <meyering@lucent.com>
88141
88142         * lib/getopt.c (_getopt_internal): Update from glibc.
88143
88144 2000-09-09  Jim Meyering  <meyering@lucent.com>
88145
88146         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88147         think it should be used as a general replacement for isascii.
88148         * lib/fnmatch.c: Likewise.
88149         * lib/mbswidth.c: Likewise
88150         * lib/regex.c: Likewise.
88151
88152         Don't use atoi.
88153         * lib/userspec.c: Include sys/param.h and limits.h.
88154         Include xstrtol.h.
88155         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88156         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88157         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88158         UID, GID.  Check range.
88159
88160 2000-09-06  Jim Meyering  <meyering@lucent.com>
88161
88162         * lib/getopt.c (_getopt_internal): Update from glibc.
88163
88164 2000-08-30  Jim Meyering  <meyering@lucent.com>
88165
88166         * lib/strftime.c: Merge in changes from GNU libc.
88167
88168 2000-08-26  Jim Meyering  <meyering@lucent.com>
88169
88170         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88171         * m4/fpending.m4: New file.
88172
88173 2000-08-26  Jim Meyering  <meyering@lucent.com>
88174
88175         * lib/closeout.c: Include "__fpending.h".
88176         (close_stdout_status): Return right away if there's nothing to flush.
88177
88178         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88179         * lib/__fpending.c: New file.
88180         * lib/__fpending.h: New file.
88181
88182 2000-08-20  Jim Meyering  <meyering@lucent.com>
88183
88184         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88185         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88186         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88187
88188 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88189
88190         Improve fileutils installation on systems where running
88191         programs (like install) can't be unlinked.
88192         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88193         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88194
88195 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88196
88197         Standardize on "memory exhausted" instead of "Memory exhausted"
88198         or "virtual memory exhausted".
88199         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88200         "virtual memory exhausted".
88201         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88202         our own message.
88203         * lib/userspec.c (parse_user_spec): Likewise.
88204         * lib/bumpalloc.h: comment fix
88205         * lib/same.c, userspec.c: Include xalloc.h.
88206
88207         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88208         not char *const and pointing to a constant array.
88209         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88210         (xrealloc): Comment fix.
88211
88212         * lib/userspec.c (parse_user_spec):
88213         Don't translate a message until just before returning,
88214         to avoid unnecessary translation.
88215
88216 2000-08-07  Jim Meyering  <meyering@lucent.com>
88217
88218         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88219         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88220         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88221         getgroups.c, gethostname.c, getopt.h, group-member.c,
88222         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88223         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88224         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88225         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88226         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88227         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88228         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88229         yesno.c: Back out Copyright date changes for each file with no change
88230         this year.  This eases coordination with other programs using the same
88231         source code modules.  From Paul Eggert.
88232
88233 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88234
88235         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88236         not char, for compatibility with glibc 2.1.3 strftime.c.
88237
88238 2000-08-03  Greg McGary  <greg@mcgary.org>
88239
88240         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88241         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88242         (EXTEND_BUFFER): Use them.
88243
88244 2000-08-01  Jim Meyering  <meyering@lucent.com>
88245
88246         * lib/dirname.c (ISSLASH): Define.
88247         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88248         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88249         both `\' and `/' may be use as path separators.
88250         Based on a patch from Prashant TR.
88251
88252 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88253
88254         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88255         slot vector a constant, since it might get modified.
88256
88257 2000-07-31  Jim Meyering  <meyering@lucent.com>
88258
88259         * lib/xmalloc.c: Use `virtual memory exhausted', not
88260         `Memory exhausted'.
88261         * lib/obstack.c (print_and_abort): Likewise.
88262
88263 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88264
88265         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88266         buffer, so that the caller can always quote one small
88267         component of a "memory exhausted" message in slot 0.
88268         From a suggestion by Jim Meyering.
88269
88270 2000-07-30  Jim Meyering  <meyering@lucent.com>
88271
88272         * lib/makepath.c (make_path): Quote the other instance, too.
88273
88274         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88275         (STATIC_BUF_SIZE): Define.
88276         (quotearg_n_options): Use only statically allocated storage when
88277         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88278         than STATIC_BUF_SIZE.
88279
88280 2000-07-29  Jim Meyering  <meyering@lucent.com>
88281
88282         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88283         * lib/dirname.c (dir_name): Likewise.
88284
88285         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88286         `/'.
88287
88288         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88289         (dir_name): Assert that there are no trailing slashes.
88290
88291 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88292
88293         * lib/mbswidth.h (mbswidth): Add a flags argument.
88294         (mbswidth): New declaration.
88295         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88296         * lib/mbswidth.c (mbswidth): Add a flags argument.
88297         (mbsnwidth): New function.
88298
88299 2000-07-24  Jim Meyering  <meyering@lucent.com>
88300
88301         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88302
88303 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88304
88305         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88306
88307 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88308
88309         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88310         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88311         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88312         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88313         invoke multibyte primitives.
88314
88315 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88316
88317         * lib/quotearg.c:
88318         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88319         so that mbstate_t is always defined.
88320
88321         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88322         be 1 in at least one GCC installation, and this configuration
88323         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88324         performance on hosts that have mbrtowc but have only unibyte
88325         locales, but I assume these hosts are rare.
88326
88327 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88328
88329         * lib/mbswidth.c (_XOPEN_SOURCE):
88330         Don't define; this causes problems on Solaris 7.
88331         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88332
88333 2000-07-23  Jim Meyering  <meyering@lucent.com>
88334
88335         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88336         too: getgrgid, getpwuid, getuid.
88337
88338 2000-07-23  Jim Meyering  <meyering@lucent.com>
88339
88340         * lib/basename.c (base_name): Add an assertion.
88341
88342 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88343
88344         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88345         shadow its mbsinit function.
88346
88347 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88348
88349         * lib/mbswidth.h: New file.
88350         * lib/mbswidth.c: New file.
88351         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88352         (noinst_HEADERS): Add mbswidth.h.
88353
88354 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88355
88356         * lib/config.charset: Add support for FreeBSD. Improve support for
88357         HP-UX and IRIX 6.
88358
88359 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88360
88361         * m4/mbswidth.m4: New file.
88362         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88363
88364 2000-07-15  Jim Meyering  <meyering@lucent.com>
88365
88366         * lib/makepath.c: Include quote.h.
88367         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88368         corresponding argument in a `quote (...)' call.
88369         Give better diagnostics.
88370
88371         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88372         (noinst_HEADERS): Add quote.h.
88373
88374         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88375         from tar's src/misc.c.
88376         * lib/quote.h: New file.  Prototypes for same.
88377
88378 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88379
88380         From a suggestion by Bruno Haible.
88381         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88382         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88383         to decide whether to define the BeOS workaround macro;
88384         this adjusts to the change to AC_MBSTATE_T.
88385
88386 2000-07-14  Jim Meyering  <meyering@lucent.com>
88387
88388         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88389         jm_AC_TYPE_UINTMAX_T.
88390
88391 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88392
88393         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88394
88395         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88396         quotearg_buffer_restyled): Add support for
88397         clocale_quoting_style.  Undo previous change to
88398         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88399         and "{RIGHT QUOTATION MARK}" msgids.
88400
88401 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88402
88403         From a suggestion by Bruno Haible.
88404         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88405         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88406         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88407         and mbstate_t, to a single-part test that simply defines mbstate_t.
88408         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88409         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88410
88411 2000-07-10  Jim Meyering  <meyering@lucent.com>
88412
88413         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88414
88415         * m4/gnu-source.m4: Output to confdefs.h directly.
88416         Suggestion from Akim Demaille.
88417
88418 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88419
88420         The old behavior of quoting `like this' doesn't look good with
88421         newer, ISO-style fonts.  See:
88422         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88423
88424         Instead, quote "like this" by default.  Let the translator
88425         tailor the locale-specific quoting behavior by providing
88426         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88427
88428         * lib/quotearg.c (N_): New macro.
88429         (gettext_default): New function.
88430         (quotearg_buffer_restyled): Use
88431         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88432         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88433
88434 2000-07-09  Jim Meyering  <meyering@lucent.com>
88435
88436         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88437         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88438
88439         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88440         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88441
88442 2000-07-09  Jim Meyering  <meyering@lucent.com>
88443
88444         * lib/Most files: Update copyright dates to include 2000.
88445
88446 2000-07-08  Jim Meyering  <meyering@lucent.com>
88447
88448         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88449         if not defined.
88450         (xgethostname): Remove now-unnecessary #ifdef.
88451         Move declaration of `err' into loop where it's used.
88452
88453 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88454         and Bruno Haible  <haible@clisp.cons.org>
88455
88456         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88457         only if the test for an object-type mbstate_t fails.  This
88458         prevents us from mistakenly reporting that mbstate_t is a
88459         system object type after we "#define mbstate_t int" to work
88460         around its lack.
88461
88462 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88463         and Bruno Haible  <haible@clisp.cons.org>
88464
88465         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88466
88467 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88468
88469         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88470         to strerror_r.
88471         Include <ctype.h> for use of isalpha.
88472
88473 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88474
88475         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88476         by allocating a larger buffer. Test the gethostname return value for
88477         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88478         returns an error and ENAMETOOLONG isn't defined.
88479
88480 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88481
88482         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88483         dimension.
88484
88485 2000-07-04  Jim Meyering  <meyering@lucent.com>
88486
88487         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88488         of the deprecated AC_CHECKING.
88489
88490 2000-07-04  Jim Meyering  <meyering@lucent.com>
88491
88492         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88493         Reported by Bruno Haible.
88494
88495 2000-07-04  Jim Meyering  <meyering@lucent.com>
88496
88497         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88498         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88499         lacks mbrtowc.
88500
88501 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88502
88503         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88504         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88505
88506 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88507         and Bruno Haible  <haible@clisp.cons.org>
88508
88509         * lib/quotearg.c (mbrtowc):
88510         Assign to *pwc, and return 1 only if result is nonzero.
88511         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88512
88513 2000-07-03  Jim Meyering  <meyering@lucent.com>
88514
88515         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88516
88517 2000-07-03  Jim Meyering  <meyering@lucent.com>
88518
88519         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88520         This is necessary to get a definition of e.g., UTMP_FILE on
88521         HP-UX 10.20.
88522         From Bob Proulx.
88523
88524 2000-07-02  Jim Meyering  <meyering@lucent.com>
88525
88526         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88527
88528         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88529         AC_LIBOBJ(function_name).
88530         * m4/chown.m4: Likewise.
88531         * m4/fnmatch.m4: Likewise.
88532         * m4/ftruncate.m4: Likewise.
88533         * m4/getgroups.m4: Likewise.
88534         * m4/getline.m4: Likewise.
88535         * m4/group-member.m4: Likewise.
88536         * m4/jm-macros.m4: Likewise.
88537         * m4/lstat.m4: Likewise.
88538         * m4/malloc.m4: Likewise.
88539         * m4/memcmp.m4: Likewise.
88540         * m4/nanosleep.m4: Likewise.
88541         * m4/putenv.m4: Likewise.
88542         * m4/realloc.m4: Likewise.
88543         * m4/regex.m4: Likewise.
88544         * m4/stat.m4: Likewise.
88545         * m4/strftime.m4: Likewise.
88546
88547 2000-07-02  Jim Meyering  <meyering@lucent.com>
88548
88549         * lib/quotearg.c (mbstate_t): Don't define here.
88550
88551 2000-07-02  Jim Meyering  <meyering@lucent.com>
88552
88553         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88554
88555 2000-07-01  Jim Meyering  <meyering@lucent.com>
88556
88557         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88558
88559 2000-07-01  Jim Meyering  <meyering@lucent.com>
88560
88561         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88562         problem.
88563
88564 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88565
88566         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88567         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88568
88569 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88570
88571         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88572         per change in ../m4/ls-mntd-fs.m4.
88573         (read_filesystem_list): Ignore symbolic links.
88574
88575 2000-06-29  Jim Meyering  <meyering@lucent.com>
88576
88577         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88578         for declaration of strcmp.
88579
88580         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88581
88582         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88583         Avoid warning by casting result to `char *' to remove `const'.
88584
88585 2000-06-28  Jim Meyering  <meyering@lucent.com>
88586
88587         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88588         included by quotearg.c, for which we perform this test.  From
88589         Bruno Haible.
88590
88591 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88592
88593         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88594         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88595         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88596
88597 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88598
88599         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88600
88601 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88602
88603         savedir now sets errno on failure and invokes xmalloc to get memory.
88604         Fix a couple of other minor bugs while we're at it.
88605
88606         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88607         (NAMLEN): Remove macro.
88608         (malloc, realloc): Remove decls.
88609         (stpcpy): Likewise.
88610         ("xalloc.h"): Include.
88611         (NAME_SIZE_DEFAULT): New macro.
88612         (savedir): Use xmalloc / xrealloc to allocate memory.
88613         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88614         Skip "" directory entries.
88615         Use strlen to calculate directory entry length, since the old method
88616         is rarely used these days and isn't worth supporting.
88617         Don't use a pointer after freeing it.
88618         Check for integer overflow when calculating allocation size.
88619         Use memcpy to copy entries, instead of stpcpy.
88620         Set errno properly when returning NULL.
88621         Check for readdir error.
88622
88623 2000-06-26  Jim Meyering  <meyering@lucent.com>
88624
88625         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88626
88627 2000-06-25  Jim Meyering  <meyering@lucent.com>
88628
88629         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88630         Linux header bug when _XOPEN_SOURCE is defined to 500.
88631
88632 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88633
88634         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88635         deficiency.
88636
88637 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88638
88639         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88640         Include xalloc.h.
88641         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88642
88643 2000-06-24  Jim Meyering  <meyering@lucent.com>
88644
88645         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88646         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88647         for which strerror does return char*, but which lacks a conveniently
88648         accessible declaration of the function.  If the compile-test says
88649         strerror_r doesn't work, then resort to a `run'-test that works on
88650         BeOS and segfaults on DEC Unix.
88651
88652 2000-06-24  Jim Meyering  <meyering@lucent.com>
88653
88654         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88655
88656 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88657
88658         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88659         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88660
88661 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88662
88663         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88664         (mbrtowc, mbstate_t): Define substitutes if
88665         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88666         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88667         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88668
88669 2000-06-23  Jim Meyering  <meyering@lucent.com>
88670
88671         * m4/afs.m4: Add missing AC_MSG_RESULT.
88672         Reported by Bruno Haible.
88673
88674         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88675         Suggestion from Bruno Haible.
88676
88677 2000-06-23  Jim Meyering  <meyering@lucent.com>
88678
88679         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88680
88681 2000-06-21  Jim Meyering  <meyering@lucent.com>
88682
88683         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88684
88685 2000-06-21  Jim Meyering  <meyering@lucent.com>
88686
88687         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88688         (noinst_HEADERS): Add getstr.h.
88689
88690         * lib/getline.c (getstr): Move into a separate file.
88691         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88692         the following changes: new parameter, delim2; both delim[12]
88693         parameters have type `int', not `char'.  The latter would lose
88694         with 8-bit delimiters.
88695         * lib/getstr.h: New file.
88696
88697 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88698
88699         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88700         than 1024, return a memory chunk of least possible size, instead
88701         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88702         Use free/xmalloc instead of xrealloc to avoid copying for very long
88703         paths.
88704
88705 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88706
88707         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88708         the empty string.
88709
88710 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88711
88712         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88713         address, not strdup.  Include <stdlib.h> and don't declare free().
88714
88715 2000-06-19  Jim Meyering  <meyering@lucent.com>
88716
88717         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88718
88719 2000-06-18  Jim Meyering  <meyering@lucent.com>
88720
88721         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88722
88723         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88724         `checking whether...' message to be consistent with that of the
88725         lstat test.
88726
88727 2000-06-18  Jim Meyering  <meyering@lucent.com>
88728
88729         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88730         Besides, these days every porting target provides a mkdir function.
88731
88732         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88733         needed. (this snippet comes from src/system.h).
88734
88735 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88736
88737         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88738
88739 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88740
88741         * lib/human.c (adjust_value): New function.
88742         (human_readable_inexact): Apply rounding style even when
88743         printing approximate values.
88744
88745 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88746
88747         * lib/human.c (human_readable_inexact): Allow an input block
88748         size that is not a multiple of the output block size, and vice versa.
88749         Reported by Piergiorgio Sartor.
88750
88751 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88752
88753         * lib/getdate.y (get_date): Apply relative times after time
88754         zone indicator, not before.  Reported by Todd A. Jacobs.
88755
88756 2000-06-13  Jim Meyering  <meyering@lucent.com>
88757
88758         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88759
88760         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88761
88762 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88763
88764         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88765
88766 2000-06-12  Jim Meyering  <meyering@lucent.com>
88767
88768         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88769         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88770         optional argument.
88771         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88772         the optional argument, `lib'.
88773
88774 2000-06-08  Jim Meyering  <meyering@lucent.com>
88775
88776         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88777
88778 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88779
88780         Rewrite largefile configuration so that we don't need to run
88781         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88782         AC_CANONICAL_HOST in configure.in -- jmm]
88783
88784         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88785         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88786         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88787         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88788         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88789         All uses changed.
88790         Instead of inspecting the output of getconf, try to compile the
88791         test program without and with the macro definition.
88792         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88793         for getconf.  Instead, check for the needed flags by compiling
88794         test programs.
88795
88796 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88797
88798         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88799
88800 2000-06-04  Jim Meyering  <meyering@lucent.com>
88801
88802         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88803         SunOS 4.1.4 for which gid_t is an unsigned type.
88804
88805 2000-06-03  Jim Meyering  <meyering@lucent.com>
88806
88807         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88808         now that autoconf requires that.
88809
88810         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88811         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88812         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88813
88814 2000-06-03  Jim Meyering  <meyering@lucent.com>
88815
88816         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88817
88818 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88819
88820         * m4/glibc21.m4: New file.
88821         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88822
88823 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88824
88825         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88826         newer, don't install charset.alias.
88827         * lib/config.charset: Change the Linux/glibc rules so they become empty
88828         on glibc-2.1 or newer.
88829
88830 2000-06-02  Jim Meyering  <meyering@lucent.com>
88831
88832         * lib/mountlist.c: Back out last change.  Instead, do this...
88833         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88834         me_dummy member using the same `ignore'-testing code.
88835         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88836         fs_type strings.
88837         From Mark D. Roth.
88838
88839 2000-05-29  Jim Meyering  <meyering@lucent.com>
88840
88841         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88842         mounts with the `ignore' attribute.  Based on a patch from
88843         Mark D. Roth.
88844
88845 2000-05-28  Jim Meyering  <meyering@lucent.com>
88846
88847         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88848         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88849         * m4/stat.m4: Likewise.
88850         * m4/lstat.m4: Likewise.
88851         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88852
88853         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88854         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88855
88856 2000-05-26  Jim Meyering  <meyering@lucent.com>
88857
88858         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88859
88860 2000-05-24  Jim Meyering  <meyering@lucent.com>
88861
88862         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88863         autoconf requires that.
88864         * m4/lib-check.m4: Likewise.
88865         * m4/jm-macros.m4: Likewise.
88866         * m4/strftime.m4: Likewise.
88867
88868         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88869         AC_CHECK_DECLS, now that autoconf requires that.
88870
88871 2000-05-22  Jim Meyering  <meyering@lucent.com>
88872
88873         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88874         * m4/lstat.m4: Likewise.
88875
88876 2000-05-22  Jim Meyering  <meyering@lucent.com>
88877
88878         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88879
88880 2000-05-20  Jim Meyering  <meyering@lucent.com>
88881
88882         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88883         (jm_PREREQ): Use it.
88884
88885 2000-05-18  Jim Meyering  <meyering@lucent.com>
88886
88887         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88888         back, too, since it may have been modified by allocate_entry.
88889         (hash_delete): Rewrite to use neither the assignment operator
88890         nor the comma operator in an if-expression.
88891
88892 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88893
88894         * lib/closeout.c:
88895         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88896         Remove; no longer needed.
88897         "quotearg.h": Add include.
88898         (file_name): Do not bother to explicitly initialize to NULL; it's less
88899         efficient on some hosts.
88900         (close_stdout_status): Remove test as to whether stdout was already
88901         closed; it breaks for the case "echo x | sort >&-".
88902         Quote file name colons.
88903         Do not assume that _("write error") lacks format strings.
88904
88905 2000-05-15  Jim Meyering  <meyering@lucent.com>
88906
88907         * lib/version-etc.c (version_etc_copyright): Update the copyright
88908         string used in all --version output.
88909
88910 2000-05-14  Jim Meyering  <meyering@lucent.com>
88911
88912         * lib/closeout.c (close_stdout_set_file_name): New function.
88913         (close_stdout_status): Use new file-scoped global.
88914         Return right away if fstat says the stdout file descriptor is invalid.
88915         * lib/closeout.h (close_stdout_set_file_name): Declare.
88916
88917 2000-05-10  Jim Meyering  <meyering@lucent.com>
88918
88919         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88920         (close_stdout_set_status): New function.
88921         * lib/closeout.h (close_stdout_set_status): Declare.
88922
88923 2000-05-09  Jim Meyering  <meyering@lucent.com>
88924
88925         * m4/gettext.m4: Rename this...
88926         * m4/libintl.m4: ...to this.
88927
88928 2000-05-08  Jim Meyering  <meyering@lucent.com>
88929
88930         * lib/long-options.c: Don't include closeout.h.
88931         (parse_long_options): Don't call close_stdout for --version.
88932
88933 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88934
88935         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88936         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88937         2.1.3 bug.  This avoids a clash when files like regex.c define
88938         _GNU_SOURCE.
88939
88940 2000-05-06  Jim Meyering  <meyering@lucent.com>
88941
88942         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88943         (AC_REPLACE_FUNCS): Add strnlen.
88944
88945         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88946         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88947
88948         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88949         AC_SEARCH_LIBS call for nanosleep.
88950         (LIB_NANOSLEEP): Set and AC_SUBST.
88951
88952 2000-05-06  Jim Meyering  <meyering@lucent.com>
88953
88954         * lib/strnlen.c: Undefine __strnlen and strnlen.
88955         [!weak_alias]: Define __strnlen to strnlen.
88956
88957         * lib/atexit.c: New file, from libiberty.
88958
88959 2000-05-06  Jim Meyering  <meyering@lucent.com>
88960
88961         * lib/closeout.c (close_stdout_status): Also check for errors on the
88962         stderr stream.
88963
88964 2000-05-05  Jim Meyering  <meyering@lucent.com>
88965
88966         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88967         AC_SEARCH_LIBS call for clock_gettime.
88968         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88969
88970         * m4/search-libs.m4: Update from autoconf.
88971
88972         su doesn't work on Solaris 2.6.
88973         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88974         <shadow.h>.  Reported by Dragos Harabor.
88975
88976 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88977
88978         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88979         memcpy instead of xmalloc, xrealloc, path_concat.
88980         (locale_charset): Treat empty environment variables as absent.
88981         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88982
88983 2000-05-04  Jim Meyering  <meyering@lucent.com>
88984
88985         * lib/getopt.c: Update from glibc.
88986         * lib/obstack.c: Likewise.
88987         * lib/obstack.h: Likewise.
88988         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
88989         file
88990
88991         * lib/regex.h: Likewise.
88992         * lib/strndup.c: Likewise.
88993         * lib/strnlen.c: New file, from glibc.
88994
88995 2000-05-03  Jim Meyering  <meyering@lucent.com>
88996
88997         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
88998
88999 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89000
89001         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89002         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89003         compile-time test, rather than inspecting host and OS, to
89004         decide whether to define _LARGEFILE_SOURCE.
89005
89006 2000-05-01  Jim Meyering  <meyering@lucent.com>
89007
89008         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89009
89010         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89011         Based on a patch from Bruno Haible.
89012
89013 2000-05-01  Jim Meyering  <meyering@lucent.com>
89014
89015         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89016
89017 2000-04-29  Jim Meyering  <meyering@lucent.com>
89018
89019         * lib/path-concat.c: Declare strdup only if it's not defined.
89020         * lib/canon-host.c: Likewise.
89021
89022 2000-04-28  Jim Meyering  <meyering@lucent.com>
89023
89024         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89025         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89026         is included first, then limits.h is included by locale.h by libintl.h.
89027         From John David Anglin.
89028
89029 2000-04-25  Jim Meyering  <meyering@lucent.com>
89030
89031         * lib/makepath.c (S_IRWXUGO): Define.
89032         (make_path): Always perform explicit chmod if MODE specifies any
89033         of the `special' permission bits.  Prompted by a bug report against
89034         install from Mate Wierdl and Joost van Baal.
89035
89036 2000-04-18  Jim Meyering  <meyering@lucent.com>
89037
89038         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89039         (jm_PREREQ): Use it.
89040
89041 2000-04-18  Jim Meyering  <meyering@lucent.com>
89042
89043         * lib/README: New file.
89044
89045         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89046         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89047
89048 2000-04-17  Jim Meyering  <meyering@lucent.com>
89049
89050         Get it right :-)
89051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89052         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89053         Suggestion from Akim Demaille.
89054
89055 2000-04-17  Jim Meyering  <meyering@lucent.com>
89056
89057         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89058         the definition of it to rpl_strftime also defined-away the system's
89059         declaration.
89060
89061 2000-04-15  Jim Meyering  <meyering@lucent.com>
89062
89063         Use `C' to denote so-called `contiguous' files, the same way
89064         that tar does.
89065         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89066         (ftypelet): Use S_ISCTG.
89067         From Michael Deutschmann.
89068
89069 2000-04-14  Jim Meyering  <meyering@lucent.com>
89070
89071         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89072         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89073         clobbered.
89074
89075 2000-04-14  Jim Meyering  <meyering@lucent.com>
89076
89077         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89078
89079 2000-04-13  Jim Meyering  <meyering@lucent.com>
89080
89081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89082         AH_VERBATIM to insert required #ifndef into config.h.in.
89083         Suggestion from Akim Demaille.
89084
89085 2000-04-12  Jim Meyering  <meyering@lucent.com>
89086
89087         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89088         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89089         Christian Krackowizer.
89090
89091         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89092         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89093         (AC_SYS_LARGEFILE): Require.
89094         (AM_C_PROTOTYPES): Require.
89095
89096 2000-04-08  Jim Meyering  <meyering@lucent.com>
89097
89098         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89099         names don't conflict.  Reported by Eli Zaretskii.
89100
89101 2000-04-07  Jim Meyering  <meyering@lucent.com>
89102
89103         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89104         sys/types.h, to work around system header problems on AIX 3.2.5.
89105         From Bruno Haible.
89106
89107 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89108
89109         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89110         bug.  Deal with the different error behavior of Irix iconv.
89111
89112 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89113
89114         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89115         IRIX if the installer said otherwise.
89116
89117 2000-04-05  Jim Meyering  <meyering@lucent.com>
89118
89119         Portability tweaks required for ultrix4.3.
89120         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89121         (jm_CHECK_DECLS): Add getutent to the list of functions.
89122         (_jm_DECL_HEADERS): Add utmpx.h.
89123         From John David Anglin.
89124
89125         * m4/strftime.m4: Back out the 2000-04-02 change.
89126         Instead of that change, simply undefine putenv in the test program.
89127
89128 2000-04-05  Jim Meyering  <meyering@lucent.com>
89129
89130         Portability tweaks required for ultrix4.3.
89131         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89132         getutent.
89133         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89134         * lib/canon-host.c: Declare strdup.
89135         * lib/path-concat.c: Likewise.
89136         From John David Anglin.
89137
89138 2000-04-04  Jim Meyering  <meyering@lucent.com>
89139
89140         Be more DOS 8.3-friendly.
89141         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89142         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89143         * lib/Makefile.am: Reflect renaming.
89144         Reported by Eli Zaretskii.
89145
89146         Use a temporary file name that won't clash with `charset.alias'
89147         in the DOS 8.3 name space.
89148         * lib/Makefile.am (charset_tmp): Define.
89149         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89150         (uninstall-local): Likewise.
89151         Reported by Eli Zaretskii.
89152
89153 2000-04-03  Jim Meyering  <meyering@lucent.com>
89154
89155         * m4/gettext.m4: Fix typo in comment.
89156
89157         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89158         textutils/configure.in).  Suggestion from Paul Eggert.
89159         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89160
89161 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89162
89163         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89164         variable in the shell rather than using putenv, which isn't
89165         portable.  This avoids the configure-time inter-test dependency
89166         on the potentially-renamed putenv function.
89167
89168 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89169
89170         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89171         before checking struct stat.st_blksize, so that
89172         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89173
89174 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89175
89176         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89177         since strftime.c uses HAVE_STRFTIME to decide whether to use
89178         the underlying strftime.
89179
89180 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89181
89182         * lib/time/strftime.c (my_strftime): Make sure we call the system
89183         strftime, not ourselves, when invoking the underlying strftime.
89184
89185 2000-03-24  Jim Meyering  <meyering@lucent.com>
89186
89187         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89188         (charset_alias): Define.
89189         (install-exec-local): Factor out common code.
89190         (uninstall-local): Split lines longer than 80.
89191         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89192         (SUFFIXES): Define.
89193         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89194         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89195
89196 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89197
89198         * lib/config.charset: Output a line containing "Packages using this
89199         file".
89200         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89201         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89202         ref-del.sed): New rules.
89203
89204 2000-03-17  Jim Meyering  <meyering@lucent.com>
89205
89206         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89207         Otherwise, include <strings.h>
89208
89209 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89210
89211         * lib/unicodeio.c (utf8_wctomb): New function.
89212         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89213         format instead of in UCS-4 with platform dependent endianness.
89214
89215 2000-03-10  Jim Meyering  <meyering@lucent.com>
89216
89217         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89218         From Marco Franzen.
89219
89220 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89221
89222         * lib/savedir.c (savedir): Work even if directory size is
89223         negative; this can happen with some screwy NFS configurations.
89224
89225 2000-03-06  Jim Meyering  <meyering@lucent.com>
89226
89227         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89228         if it's NULL (because we ran out of memory).  From Bruno Haible.
89229
89230 2000-03-05  Jim Meyering  <meyering@lucent.com>
89231
89232         * lib/localcharset.c ("path-concat.h"): Include.
89233         (get_charset_aliases): Use path_concat instead of ANSI string
89234         concatenation.
89235
89236         * lib/unicodeio.h (PARAMS): Define.
89237         Use it to guard prototype.
89238
89239 2000-03-04  Jim Meyering  <meyering@lucent.com>
89240
89241         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89242         for lib/localcharset.c.
89243
89244 2000-03-04  Jim Meyering  <meyering@lucent.com>
89245
89246         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89247         installing into it.
89248         (uninstall-local): Uncomment this rule so `make distcheck' works
89249         once again.
89250
89251         * lib/unicodeio.c (<errno.h>): Include it.
89252         (errno): Declare if not defined.
89253
89254         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89255
89256         * lib/config.charset: New version, incorporating remarks from a linux
89257         i18n mailing list.  From Bruno Haible.
89258
89259 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89260
89261         * m4/codeset.m4: New file.
89262         * m4/iconv.m4: New file.
89263         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89264
89265 2000-03-03  Jim Meyering  <meyering@lucent.com>
89266
89267         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89268
89269 2000-03-02  Jim Meyering  <meyering@lucent.com>
89270
89271         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89272         the messages come out on separate lines.
89273
89274         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89275         rather than jm_CHECK_DECLARATIONS.
89276         * m4/decl.m4: Remove now-unused file.
89277
89278         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89279         geteuid.
89280
89281 2000-03-02  Jim Meyering  <meyering@lucent.com>
89282
89283         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89284
89285 2000-03-01  Jim Meyering  <meyering@lucent.com>
89286
89287         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89288         * lib/unicodeio.c: Likewise.
89289
89290 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89291
89292         * lib/config.charset: New file.
89293         * lib/localcharset.c: New file.
89294         * lib/unicodeio.h, lib/unicodeio.c: New files.
89295         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89296         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89297         (noinst_HEADERS): Add unicodeio.h.
89298         (all-local, install-exec-local, charset.alias): New targets.
89299
89300 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89301
89302         * lib/quotearg.c (ALERT_CHAR): New macro.
89303         (quotearg_buffer_restyled): Use it.
89304
89305 2000-02-27  Jim Meyering  <meyering@lucent.com>
89306
89307         * m4/check-decl.m4: Add getenv to the list.
89308
89309 2000-02-27  Jim Meyering  <meyering@lucent.com>
89310
89311         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89312         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89313
89314         * lib/backupfile.c: Guard inclusion of stdlib.h with
89315         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89316         Declare malloc if needed.
89317
89318         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89319         `#ifndef HAVE_DECL..'
89320         now that autoconf always defines the HAVE_DECL_ symbols.
89321         * lib/human.c: Likewise.
89322         * lib/same.c: Likewise.
89323         * lib/strtoumax.c: Likewise.
89324
89325         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89326         declaration check was not run.
89327         * lib/hash.c: Likewise.
89328         * lib/human.c: Likewise.
89329         * lib/same.c: Likewise.
89330         * lib/strtoumax.c: Likewise.
89331
89332         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89333         `.', then first look up the entire `.'-containing string as a login
89334         name.
89335
89336 2000-02-23  Jim Meyering  <meyering@lucent.com>
89337
89338         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89339         in place of my hack.
89340
89341 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89342
89343         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89344         (textint): New typedef.
89345         (parser_control): Member year changed from int to textint.
89346         All uses changed.
89347         (YYSTYPE): Removed; replaced by %union with int and textint members.
89348         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89349         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89350         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89351         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89352         (date, number, to_year): Use width of number in digits, not its value,
89353         to determine whether it's a 2-digit year, or a 2-digit time.
89354         (yylex): Store number of digits of numeric tokens.
89355         Reported by John Kendall.
89356
89357         (parser_control): Changed from struct parser_control to typedef (for
89358         consistency).  All uses changed.
89359
89360         (tID): Removed; not used.
89361         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89362
89363 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89364
89365         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89366         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89367
89368 2000-02-12  Jim Meyering  <meyering@lucent.com>
89369
89370         * lib/userspec.c (ISDIGIT): Define it.
89371         (isdigit): Remove definition.
89372         (is_number): Use ISDIGIT, not isdigit.
89373         <libintl.h>: Include.
89374         (_ and N_): Define.
89375         (parse_user_spec): Mark translatable strings.
89376
89377 2000-02-10  Jim Meyering  <meyering@lucent.com>
89378
89379         With these changes, nanosleep.[ch] are finally enough like the other
89380         lib/* replacement files to compile on a few more losing systems.
89381
89382         * lib/nanosleep.h: Don't include config.h.
89383         Remove prototype from declaration of nanosleep.
89384         (PARAMS): Remove now-unneeded definition.
89385         * lib/nanosleep.c: #undef nanosleep.
89386         (rpl_nanosleep): Rename from nanosleep.
89387
89388 2000-02-10  Jim Meyering  <meyering@lucent.com>
89389
89390         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89391         gnu_nanosleep to rpl_nanosleep.
89392
89393 2000-02-09  Jim Meyering  <meyering@lucent.com>
89394
89395         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89396         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89397
89398 2000-02-08  Akim Demaille  <akim@epita.fr>
89399
89400         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89401         `[' and `]' and remove uses of `changequote'.
89402         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89403         (AC_SYS_LARGEFILE): Likewise.
89404         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89405         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89406         of changequote.
89407         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89408         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89409         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89410         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89411
89412 2000-02-05  Jim Meyering  <meyering@lucent.com>
89413
89414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89415         Remove explicit use of AC_HEADER_TIME.  It is required by
89416         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89417         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89418         in autoconf whereby the expansion of the latter ended up preceding
89419         the expansion of its prerequisite, AC_HEADER_TIME.
89420         Reported by Volker Borchert.
89421
89422 2000-02-03  Jim Meyering  <meyering@lucent.com>
89423
89424         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89425
89426 2000-02-03  Jim Meyering  <meyering@lucent.com>
89427
89428         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89429         rather than with `#if HAVE_UTMPNAME'.
89430
89431 2000-02-02  Jim Meyering  <meyering@lucent.com>
89432
89433         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89434         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89435         Reported by Eli Zaretskii.
89436
89437 2000-02-01  Jim Meyering  <meyering@lucent.com>
89438
89439         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89440
89441 2000-01-31  Jim Meyering  <meyering@lucent.com>
89442
89443         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89444         functions.  Add the time.h and sys/time.h headers along with the
89445         AC_REQUIRE'ment of AC_HEADER_TIME.
89446
89447 2000-01-31  Jim Meyering  <meyering@lucent.com>
89448
89449         * lib/nanosleep.h (nanosleep): Guard declaration with
89450         `#if ! HAVE_DECL_NANOSLEEP'.
89451         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89452         the declaration in that vendor's sys/timers.h.
89453         Reported by Christian Krackowizer.
89454
89455         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89456         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89457         (ISPRINT): Likewise.
89458         Reported by Tom Tromey.
89459
89460 2000-01-30  Jim Meyering  <meyering@lucent.com>
89461
89462         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89463
89464         * m4/prereq.m4 (utmp_includes): Define.
89465         Check for ut_user and ut_name members in both struct utmpx
89466         and struct utmp.
89467
89468 2000-01-30  Jim Meyering  <meyering@lucent.com>
89469
89470         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89471         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89472         header files where only utmpx.ut_user is declared.
89473
89474         * lib/readutmp.h (UT_USER): Define.
89475
89476 2000-01-29  Jim Meyering  <meyering@lucent.com>
89477
89478         * m4/lib-check.m4: New file containing library-related checks from
89479         fileutils and sh-utils (textutils had none).
89480
89481 2000-01-28  Jim Meyering  <meyering@lucent.com>
89482
89483         * m4/perl.m4: Change format of warning message to look more like that
89484         from the missing script.  Suggestion from François Pinard.
89485
89486 2000-01-25  Jim Meyering  <meyering@lucent.com>
89487
89488         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89489         well as time.h in the compile check.
89490         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89491         Fix typo in cross-compiling case: s/yes/no/.
89492
89493 2000-01-23  Jim Meyering  <meyering@lucent.com>
89494
89495         * m4/jm-macros.m4: Move df-related tests here from
89496         fileutils/configure.in
89497
89498         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89499         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89500
89501         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89502         s/space/ac_fsusage_space/.
89503         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89504
89505         * m4/ftruncate.m4: New file (derived from part of
89506         fileutils/configure.in).
89507         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89508         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89509
89510         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89511         AC_SUBST these here, rather than just in sh-util/configure.in, so
89512         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89513         all the same.
89514         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89515         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89516         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89517         (AC_SUBST(POW_LIBM)): Likewise.
89518         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89519
89520 2000-01-23  Jim Meyering  <meyering@lucent.com>
89521
89522         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89523         obstack.c.
89524
89525 2000-01-22  Jim Meyering  <meyering@lucent.com>
89526
89527         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89528
89529         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89530
89531         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89532         configure.in
89533         (AC_CHECK_HEADERS): Likewise for sh-utils.
89534         (AC_CHECK_HEADERS): Likewise for textutils.
89535         Merge the three lists of headers.
89536
89537         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89538         from fileutils' configure.in.
89539
89540         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89541         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89542         check-decl.m4.
89543
89544         * m4/check-decl.m4: Use #if rather than #ifdef.
89545         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89546         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89547         (_jm_DECL_HEADERS): Define new function.
89548         (jm_CHECK_DECLARATIONS): Require it.
89549
89550 2000-01-22  Jim Meyering  <meyering@lucent.com>
89551
89552         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89553         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89554         Required for some AIX systems.  Reported by Christian Krackowizer.
89555         [TESTING] (main): New function.
89556
89557         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89558         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89559         letters.
89560
89561         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89562         iswprint.
89563
89564         * lib/strverscmp.c (ISDIGIT): Define.
89565         (strverscmp): Use ISDIGIT, not isdigit.
89566
89567 2000-01-19  Jim Meyering  <meyering@lucent.com>
89568
89569         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89570         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89571         defines `struct timespec' in <sys/time.h>
89572
89573         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89574         Thanks to Akim for explaining.
89575
89576 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89577
89578         * lib/nanosleep.c (nanosleep):
89579         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89580         POSIX.1 doesn't require SA_INTERRUPT and some systems
89581         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89582         it's been part of POSIX.1 since day 1 (in 1988).
89583
89584 2000-01-17  Jim Meyering  <meyering@lucent.com>
89585
89586         * lib/interlock: Remove unused file.  Reported by François Pinard.
89587
89588 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89589
89590         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89591         alert, backslash, formfeed, and vertical tab unnecessarily in
89592         shell quoting style.
89593
89594 2000-01-16  Jim Meyering  <meyering@lucent.com>
89595
89596         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89597         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89598         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89599         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89600
89601 2000-01-16  Jim Meyering  <meyering@lucent.com>
89602
89603         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89604         because the latter didn't work.
89605
89606 2000-01-15  Jim Meyering  <meyering@lucent.com>
89607
89608         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89609         (AC_REPLACE_FUNCS): Add memcpy and memset.
89610         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89611         Add strpbrk.
89612         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89613
89614 2000-01-12  Jim Meyering  <meyering@lucent.com>
89615
89616         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89617         (jm_PREREQ): Use it.
89618         (jm_PREREQ_READUTMP): New macro.
89619         (jm_PREREQ): Use it.
89620
89621 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89622
89623         Quote multibyte characters correctly.
89624         * m4/c-bs-a.m4: New file.
89625         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89626         (jm_PREREQ): Use it.
89627
89628 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89629
89630         * m4/uintmax_t.m4: Port to autoconf 2.13.
89631
89632 2000-01-08  Jim Meyering  <meyering@ascend.com>
89633
89634         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89635         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89636
89637 2000-01-04  Jim Meyering  <meyering@ascend.com>
89638
89639         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89640         jm_STRUCT_DIRENT_D_TYPE.
89641         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89642         jm_STRUCT_DIRENT_D_INO.
89643         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89644         jm_STRUCT_UTIMBUF.
89645         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89646         renamings.
89647         * m4/utime.m4: Likewise.
89648
89649         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89650         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89651
89652 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89653
89654         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89655         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89656
89657 2000-01-02  Jim Meyering  <meyering@ascend.com>
89658
89659         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89660         remember if this is necessary.
89661
89662 1999-12-26  Jim Meyering  <meyering@ascend.com>
89663
89664         * m4/jm-macros.m4: Use it here.
89665         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89666
89667 1999-12-23  Jim Meyering  <meyering@ascend.com>
89668
89669         * m4/jm-macros.m4: Check for clock_gettime (moved from
89670         fileutils/configure.in)
89671         Check for gettimeofday.
89672
89673 1999-12-20  Jim Meyering  <meyering@ascend.com>
89674
89675         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89676         autoconf-2.14a-1999-12-20.
89677
89678 1999-12-19  Jim Meyering  <meyering@ascend.com>
89679
89680         * m4/lstat-slash.m4: New file.
89681         * m4/jm-macros.m4: Use the new macro:
89682         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89683
89684 1999-12-07  Jim Meyering  <meyering@ascend.com>
89685
89686         * m4/perl.m4: Require that File::Compare be available, too.
89687         Too many systems seem to lack it.
89688
89689         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89690         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89691
89692 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89693
89694         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89695         problem with the QNX 4.25 shell, which doesn't propagate exit
89696         status of failed commands inside shell assignments.
89697
89698 1999-11-17  Jim Meyering  <meyering@ascend.com>
89699
89700         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89701
89702 1999-11-07  Jim Meyering  <meyering@ascend.com>
89703
89704         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89705
89706 1999-11-06  Jim Meyering  <meyering@ascend.com>
89707
89708         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89709         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89710
89711 1999-11-05  Jim Meyering  <meyering@ascend.com>
89712
89713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89714         configure.in of textutils, fileutils, and sh-utils into this one
89715         (shared between those packages) file.
89716         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89717         AC_STRUCT_ST_BLKSIZE.
89718
89719 1999-11-03  Jim Meyering  <meyering@ascend.com>
89720
89721         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89722         of AC_CHECK_TYPE checks includes unistd.h.
89723         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89724         Suggestion from Akim Demaille.
89725
89726 1999-10-30  Jim Meyering  <meyering@ascend.com>
89727
89728         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89729         m4-quoted string.
89730         * m4/ls-mntd-fs.m4: Likewise.
89731         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89732         * m4/jm-winsz1.m4: Likewise.
89733
89734         * m4/const.m4: Remove file, since the fix made it into the experimental
89735         version of autoconf.
89736         * m4/mktime.m4: Likewise.
89737
89738         * m4/check-type.m4: Remove file, now that the latest version of
89739         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89740
89741         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89742         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89743         AC_CHECK_TYPE.
89744
89745 1999-10-04  Jim Meyering  <meyering@ascend.com>
89746
89747         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89748
89749 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89750
89751         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89752         2.95.1 bug with HP-UX 10.20.
89753
89754 1999-09-17  Jim Meyering  <meyering@ascend.com>
89755
89756         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89757         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89758         due to missing strdup (against sh-utils-2.0).
89759
89760 1999-08-29  Jim Meyering  <meyering@ascend.com>
89761
89762         * m4/jm-macros.m4: Require jm_BISON.
89763         * m4/bison.m4: New file.
89764
89765 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89766
89767         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89768         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89769
89770 1999-08-05  Jim Meyering  <meyering@ascend.com>
89771
89772         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89773         to avoid conflicts with `conftest' on 8+3 filesystems.
89774         Suggestion from Eli Zaretskii.
89775
89776 1999-08-04  Jim Meyering  <meyering@ascend.com>
89777
89778         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89779         fileutils and sh-utils (textutils's getline test was inadequate).
89780         (AM_FUNC_GETLINE): Run this test.
89781         (AC_CHECK_FUNCS): Check for getdelim.
89782         Reported by Bob Proulx.
89783
89784 1999-08-02  Jim Meyering  <meyering@ascend.com>
89785
89786         * m4/jm-macros.m4: Add a comment.
89787
89788 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89789
89790         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89791         <inttypes.h> defines strtoumax as a macro (and not as a
89792         function).
89793
89794 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89795
89796         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89797         that we can shift, multiply and divide unsigned long long
89798         values; Ultrix cc can't do it.
89799
89800 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89801
89802         * m4/mktime.m4: New file, which is a preview of what should appear
89803         in the next public autoconf release.
89804
89805 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89806
89807         * m4/lfs.m4: Remove this file.
89808         * m4/largefile.m4: New file.  It contains the old contents of
89809         lfs.m4, except that all names with prefix AC_LFS have been
89810         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89811         compatible with future autoconf versions.  Also, some minor m4
89812         quoting problems have been fixed.
89813
89814 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89815
89816         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89817         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89818         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89819         and simplify the shell code.
89820
89821 1999-08-01  Jim Meyering  <meyering@ascend.com>
89822
89823         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89824         m4.
89825
89826 1999-07-20  Jim Meyering  <meyering@ascend.com>
89827
89828         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89829
89830 1999-07-15  Jim Meyering  <meyering@ascend.com>
89831
89832         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89833
89834 1999-05-22  Jim Meyering  <meyering@ascend.com>
89835
89836         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89837
89838 1999-05-20  Jim Meyering  <meyering@ascend.com>
89839
89840         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89841         Add a colon after each `then' in case $4 is empty.
89842
89843 1999-05-16  Jim Meyering  <meyering@ascend.com>
89844
89845         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89846
89847 1999-05-10  Jim Meyering  <meyering@ascend.com>
89848
89849         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89850
89851         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89852         AC_FUNC_MKTIME.
89853
89854 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89855
89856         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89857
89858 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89859
89860         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89861         not CPPFLAGS, so that linking works correctly in IRIX.
89862
89863 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89864
89865         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89866
89867 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89868
89869         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89870         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89872         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89873         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89874
89875         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89876
89877 1999-04-20  Jim Meyering  <meyering@ascend.com>
89878
89879         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89880         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89881         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89882
89883 1999-04-18  Jim Meyering  <meyering@ascend.com>
89884
89885         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89886         * m4/jm-macros.m4: Use it.
89887
89888 1999-04-06  Jim Meyering  <meyering@ascend.com>
89889
89890         * m4/strftime.m4: Remove test for %f.
89891
89892 1999-03-29  Jim Meyering  <meyering@ascend.com>
89893
89894         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89895         superset of the AC_TYPE_* checks in the textutils, fileutils,
89896         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89897         AC_TYPE_PID_T.
89898
89899 1999-03-28  Jim Meyering  <meyering@ascend.com>
89900
89901         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89902         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89903         replaced e.g., in the *.sh files of the sh-utils.
89904
89905 1999-03-20  Jim Meyering  <meyering@ascend.com>
89906
89907         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89908         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89909         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89910
89911 1999-03-19  Jim Meyering  <meyering@ascend.com>
89912
89913         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89914
89915 1999-03-12  Jim Meyering  <meyering@ascend.com>
89916
89917         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89918
89919 1999-03-07  Jim Meyering  <meyering@ascend.com>
89920
89921         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89922         declared.
89923
89924 1999-02-17  Jim Meyering  <meyering@ascend.com>
89925
89926         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89927         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89928
89929 1999-02-07  Jim Meyering  <meyering@ascend.com>
89930
89931         * m4/group-member.m4: New file -- extracted from sh-utils'
89932         configure.in.
89933
89934         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89935         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89936
89937 1999-02-06  Jim Meyering  <meyering@ascend.com>
89938
89939         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89940         * m4/fnmatch.m4: Likewise.
89941         * m4/getgroups.m4: Likewise.
89942         * m4/lstat.m4: Likewise.
89943         * m4/malloc.m4: Likewise.
89944         * m4/putenv.m4: Likewise.
89945         * m4/realloc.m4: Likewise.
89946         * m4/regex.m4: Likewise.
89947         * m4/stat.m4: Likewise.
89948         * m4/strftime.m4: Likewise.
89949         Suggestion from Alain Magloire.
89950
89951         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89952         * m4/fnmatch.m4: Likewise.
89953         * m4/getgroups.m4: Likewise.
89954         * m4/getline.m4: Likewise.
89955         * m4/lstat.m4: Likewise.
89956         * m4/malloc.m4: Likewise.
89957         * m4/memcmp.m4: Likewise.
89958         * m4/putenv.m4: Likewise.
89959         * m4/realloc.m4: Likewise.
89960         * m4/regex.m4: Likewise.
89961         * m4/stat.m4: Likewise.
89962         * m4/strftime.m4: Likewise.
89963         Suggestion from Alain Magloire.
89964
89965         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89966         an argument.
89967
89968         * m4/regex.m4: Add a run-time Test for proper operation of
89969         re_compile_pattern.
89970
89971 1999-01-31  Jim Meyering  <meyering@ascend.com>
89972
89973         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89974
89975 1999-01-30  Jim Meyering  <meyering@ascend.com>
89976
89977         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89978
89979         * m4/jm-mktime.m4: Make this a wrapper around the official
89980         AM_FUNC_MKTIME rather than my private copy, now that the official one
89981         is up to date.
89982         * m4/mktime.m4: Remove file.
89983
89984         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89985         * m4/uptime.m4: Likewise.
89986         * m4/uintmax_t.m4: Likewise.
89987
89988 1999-01-28  Jim Meyering  <meyering@ascend.com>
89989
89990         * m4/jm-macros.m4: Use jm_AFS.
89991         * m4/afs.m4: New file (from fileutils' configure.in).
89992
89993         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
89994         * m4/chown.m4: Likewise.
89995         * m4/d-ino.m4: Likewise.
89996         * m4/d-type.m4: Likewise.
89997         * m4/fnmatch.m4: Likewise.
89998         * m4/getgroups.m4: Likewise.
89999         * m4/gettext.m4: Likewise.
90000         * m4/jm-mktime.m4: Likewise.
90001         * m4/jm-winsz2.m4: Likewise.
90002         * m4/lcmessage.m4: Likewise.
90003         * m4/ls-mntd-fs.m4: Likewise.
90004         * m4/malloc.m4: Likewise.
90005         * m4/memcmp.m4: Likewise.
90006         * m4/putenv.m4: Likewise.
90007         * m4/realloc.m4: Likewise.
90008         * m4/st_mtim.m4: Likewise.
90009         * m4/strftime.m4: Likewise.
90010
90011 1999-01-16  Jim Meyering  <meyering@ascend.com>
90012
90013         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90014         (ARGMATCH_DIE_DECL): Define.
90015
90016 1999-01-12  Jim Meyering  <meyering@ascend.com>
90017
90018         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90019         Reported by Lars Hecking.
90020
90021 1999-01-10  Jim Meyering  <meyering@ascend.com>
90022
90023         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90024         gross kludge.
90025         * m4/inttypes_h.m4: Likewise.
90026         * m4/lstat.m4: Likewise.
90027         * m4/malloc.m4: Likewise.
90028         * m4/readdir.m4: Likewise.
90029         * m4/realloc.m4: Likewise.
90030         * m4/st_dm_mode.m4: Likewise.
90031         * m4/stat.m4: Likewise.
90032         * m4/utimbuf.m4: Likewise.
90033         * m4/utimes.m4: Likewise.
90034
90035         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90036         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90037         comments in config.h.in are meaningful.
90038
90039         * m4/jm-macros.m4: Require autoconf-2.13 here.
90040
90041         * m4/regex.m4: By default, don't use the included regex.c on systems
90042         with glibc 2.  Suggestion from Uli Drepper.
90043
90044 1999-01-02  Jim Meyering  <meyering@ascend.com>
90045
90046         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90047
90048 1998-12-18  Jim Meyering  <meyering@ascend.com>
90049
90050         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90051         Based on a suggestion from Lars Hecking.
90052
90053 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90054
90055         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90056
90057 1998-11-16  Jim Meyering  <meyering@ascend.com>
90058
90059         * m4/lfs.m4: Double-quote the `uname...` expression.
90060
90061 1998-11-14  Jim Meyering  <meyering@ascend.com>
90062
90063         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90064         * m4/stat.m4: Likewise.
90065
90066 1998-11-03  Jim Meyering  <meyering@ascend.com>
90067
90068         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90069         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90070
90071 1998-10-18  Jim Meyering  <meyering@ascend.com>
90072
90073         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90074
90075 1998-10-17  Jim Meyering  <meyering@ascend.com>
90076
90077         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90078         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90079         calls for those previously hard-coded headers.  Instead, take a new
90080         parameter.
90081         (jm_CHECK_DECLARATIONS): Reflect interface change.
90082         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90083         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90084
90085         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90086
90087 1998-10-14  Jim Meyering  <meyering@ascend.com>
90088
90089         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90090         instead of "TZ=America/Vancouver".  From Paul Eggert.
90091
90092 1998-10-11  Jim Meyering  <meyering@ascend.com>
90093
90094         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90095         This adds a test for a recently added compatibility fix for mktime.c.
90096         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90097
90098 1998-09-27  Jim Meyering  <meyering@ascend.com>
90099
90100         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90101
90102         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90103         ../configure.in, including a change from Gordon Matzigkeit to allow
90104         cross-compiling for the Hurd.
90105
90106         * m4/glibc.m4: New file/macro to test for the GNU C Library
90107         versions 1 and 2.  From Gordon Matzigkeit.
90108         Indent.
90109
90110 1998-09-21  Jim Meyering  <meyering@ascend.com>
90111
90112         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90113
90114 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90115
90116         Port nanosecond-resolution times to UnixWare 2.1.2 and
90117         pedantic Solaris 2.6.
90118
90119         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90120         AC_STRUCT_ST_MTIM.
90121         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90122         Generate name of ns member, instead of just 1 or undef.
90123         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90124
90125 1998-08-15  Jim Meyering  <meyering@ascend.com>
90126
90127         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90128         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90129         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90130         instead of jm_TYPE_SSIZE_T.
90131
90132 1998-08-12  Jim Meyering  <meyering@ascend.com>
90133
90134         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90135
90136 1998-08-02  Jim Meyering  <meyering@ascend.com>
90137
90138         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90139         in acconfig.h manually.
90140
90141 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90142
90143         * m4/st_mtim.m4: New file.
90144
90145 1998-07-28  Jim Meyering  <meyering@ascend.com>
90146
90147         * m4/utimes.m4: Undef stat.
90148
90149 1998-07-25  Jim Meyering  <meyering@ascend.com>
90150
90151         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90152         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90153
90154 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90155
90156         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90157         uid and gid actually remain unchanged.
90158
90159 1998-07-07  Jim Meyering  <meyering@ascend.com>
90160
90161         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90162
90163 1998-07-04  Jim Meyering  <meyering@ascend.com>
90164
90165         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90166         to prove that this macro can be used in packages without regex.c.
90167
90168 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90169
90170         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90171         is to be used.
90172
90173 1998-07-03  Jim Meyering  <meyering@ascend.com>
90174
90175         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90176
90177         * m4/gettext.m4: New file -- from gettext-0.10.35.
90178         * m4/lcmessage.m4: Likewise.
90179         * m4/progtest.m4: Likewise.
90180
90181         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90182         * m4/jm-macros.m4: Require the new macro.
90183
90184 1998-06-29  Jim Meyering  <meyering@ascend.com>
90185
90186         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90187         for the definition of NGROUPS (used in a system header included
90188         by sys/mount.h).
90189
90190 1998-06-28  Jim Meyering  <meyering@ascend.com>
90191
90192         * m4/ls-mntd-fs.m4: New file.
90193         * m4/fstypename.m4: New file.
90194
90195         * m4/jm-macros.m4: Require the new macro.
90196         * m4/jm-glibc-io.m4: New file.
90197
90198 1998-05-19  Jim Meyering  <meyering@ascend.com>
90199
90200         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90201         * m4/lchown.m4: New file.
90202
90203         * m4/Makefile.am.in: New file.
90204         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90205
90206 1998-05-14  Jim Meyering  <meyering@ascend.com>
90207
90208         * m4/Makefile.am (EXTRA_DIST): Add them.
90209         * m4/jm-macros.m4: New file.
90210         * m4/utimbuf.m4: New file.
90211
90212 1998-05-12  Jim Meyering  <meyering@ascend.com>
90213
90214         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90215
90216 1998-05-11  Jim Meyering  <meyering@ascend.com>
90217
90218         * m4/isc-posix.m4: New file.
90219
90220 1998-05-10  Jim Meyering  <meyering@ascend.com>
90221
90222         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90223
90224 1998-05-09  Jim Meyering  <meyering@ascend.com>
90225
90226         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90227         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90228         with automake.
90229
90230         * m4/ssize_t.m4: New file.
90231         * m4/mktime.m4: Remove file -- the new automake has this now.
90232
90233 1998-04-26  Jim Meyering  <meyering@ascend.com>
90234
90235         * m4/assert.m4: New file.
90236         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90237
90238 1998-04-05  Jim Meyering  <meyering@ascend.com>
90239
90240         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90241         (jm_PREREQ): Use it here.
90242
90243 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90244
90245         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90246         in acconfig.h.
90247
90248 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90249
90250         * m4/prereq.m4: New file.
90251         * m4/error.m4: New file.
90252         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90253
90254 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90255
90256         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90257         cache-check for the same variable -- that defeated the purpose of
90258         the test; the test program was never run.  This was a problem only
90259         on systems with losing getline functions -- HP-UX 10.20 is one.
90260         Reported by Bjorn Helgaas.
90261
90262 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90263
90264         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90265
90266 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90267
90268         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90269
90270         * m4/const.m4: New file.  Use an initializer in this declaration
90271         typedef int charset[2]; const charset x;
90272         Reported by Bob Glickstein.
90273
90274 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90275
90276         * m4/chown.m4: Fix reversed types on -1 args to chown.
90277         From Kaveh Ghazi.
90278
90279 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90280
90281         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90282         Add lseek and memchr.
90283
90284         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90285         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90286         have a 20-character limit on names.
90287
90288 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90289
90290         * m4/inttypes_h.m4: New file.
90291         * m4/uintmax_t.m4: New file.
90292         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90293
90294
90295         -----
90296
90297         Local Variables:
90298         coding: utf-8
90299         End:
90300
90301         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90302
90303         Copying and distribution of this file, with or without
90304         modification, are permitted provided the copyright notice
90305         and this notice are preserved.