tests: Avoid spurious error message on platforms without mktemp program.
[gnulib.git] / ChangeLog
1 2011-12-04  Bruno Haible  <bruno@clisp.org>
2             Jim Meyering  <meyering@redhat.com>
3
4         tests: Avoid spurious error message on platforms without mktemp program.
5         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
6
7 2011-12-04  Bruno Haible  <bruno@clisp.org>
8
9         sethostname: Fix documentation.
10         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
11         "not fixed" section.
12
13 2011-12-03  Bruno Haible  <bruno@clisp.org>
14
15         gnulib-tool: Verify that the License field is present and non-empty.
16         * gnulib-tool (func_get_license_raw): New function, extracted from
17         func_get_license.
18         (func_get_license): Use it. Warn if the module is not a test module and
19         has no license.
20         Suggested by Jim Meyering.
21
22 2011-12-03  Bruno Haible  <bruno@clisp.org>
23
24         sethostname tests: Fix link error on mingw.
25         * tests/test-sethostname1.c: New file, extracted from
26         tests/test-sethostname.c.
27         * tests/test-sethostname2.c: New file, extracted from
28         tests/test-sethostname.c.
29         * tests/test-sethostname.c: Remove file.
30         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
31         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
32         (Depends-on): Add gethostname.
33         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
34         Link the latter with $(GETHOSTNAME_LIB).
35
36         sethostname tests: Fix compilation error on mingw.
37         * tests/test-sethostname.c: Don't include <sys/types.h>.
38         (geteuid): Use a dummy value without uid_t.
39         * modules/sethostname-tests (Depends-on): Remove sys_types.
40
41         sethostname tests: Avoid a gcc warning.
42         * tests/test-sethostname.c (main): Remove an unused variable.
43
44         Tweak last commit.
45         * modules/sethostname-tests (Files): Sort by decreasing importance.
46         (configure.ac): Check for geteuid.
47         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
48         the test when there's nothing to test. Drop an unnecessary cast.
49         Improve an error message. Verify that the final sethostname() call
50         succeeds.
51
52 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
53
54         Add a test suite for the sethostname module.
55         * modules/sethostname-tests: New file.  A test program
56         for the sethostname module.
57         * tests/test-sethostname.c: Likewise.
58
59 2011-12-03  Bruno Haible  <bruno@clisp.org>
60
61         Tweak last commit.
62         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
63         Fix preprocessor directives indentation. Fix typos.
64         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
65         * modules/unistd (Makefile): Likewise.
66
67 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
68
69         Integrate the sethostname module into unistd.
70         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
71         into the unistd.h header.
72         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
73         preprocessor directives.
74         * modules/unistd: Setup the Makefile substitutions of the
75         SETHOSTNAME preprocessor directives.
76
77 2011-12-03  Bruno Haible  <bruno@clisp.org>
78
79         Tweak last commit.
80         * lib/sethostname.c: Don't include <string.h>.
81         (sethostname): No need to copy the argument string to the stack. Don't
82         call clearerr. Preserve errno when fprintf failed.
83         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
84         Don't invoke AC_REPLACE_FUNCS.
85         * modules/sethostname (Link): Remove empty section.
86         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
87         failure problem.
88
89 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
90
91         New module 'sethostname'.
92         * lib/sethostname.c (sethostname): New file.  Provide sethostname
93         for systems that lack it.
94         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
95         sethostname declaration and function.
96         * modules/sethostname: New file.  Define the sethostname module.
97
98 2011-12-03  Bruno Haible  <bruno@clisp.org>
99
100         Tweak last commit.
101         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
102
103 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
104
105         Split the HOST_NAME_MAX detection into a separate m4 macro.
106         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
107         macro so it can be used by the pending sethostname module.
108
109 2011-12-03  Bruno Haible  <bruno@clisp.org>
110
111         Fix module descriptions syntax.
112         * modules/argv-iter (License): Fix syntax.
113         * modules/di-set (License): Likewise.
114         * modules/ino-map (License): Likewise.
115         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
116
117 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
118
119         stdalign: port to Clang 3.0
120         Problem reported by Simon Josefsson in
121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
122         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
123         which has <stdalign.h> but which does not define alignof.
124         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
125
126 2011-12-01  Eric Blake  <eblake@redhat.com>
127
128         mktempd: silence dd usage
129         * build-aux/mktempd (rand_bytes): Silence dd.
130
131 2011-11-30  Simon Josefsson  <simon@josefsson.org>
132
133         manywarnings: Don't mention gcc version in docstring.
134         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
135         Jim Meyering <meyering@redhat.com>.
136
137 2011-11-30  Jim Meyering  <meyering@redhat.com>
138
139         hash: mark a few floating point constants with "f" suffix
140         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
141         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
142         floating point constants with "f", since they're destined to be
143         saved/used as "float"s.
144
145 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
146
147         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
148         * tests/test-float.c (test_long_double): Correct and re-enable the
149         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
150
151 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
152
153         Avoid subtracting two pointers that don't point into the same block.
154         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
155         only pointers into the same memory block are subtracted. We cannot
156         assume that sizeof (ptrdiff_t) == sizeof (void *).
157
158 2011-11-29  Eric Blake  <eblake@redhat.com>
159
160         maint.mk: add syntax check for use of compare from init.sh
161         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
162         moved here from coreutils.
163
164         manywarnings: drop -Wunsuffixed-float-constants
165         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
166         '1.0D', which is the only way to silence this warning for 'double'.
167
168 2011-11-29  Jim Meyering  <meyering@redhat.com>
169
170         hash: mark compute_bucket_size with the pure attribute
171         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
172
173         quotearg, propername: correct pragma guard expression
174         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
175         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
176
177 2011-11-28  Jim Meyering  <meyering@redhat.com>
178
179         propername: do not mark proper_name with the const attribute
180         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
181         since it examines data pointed to by its parameter.
182         * lib/propername.c (proper_name): Instead, add a pragma to suppress
183         the suggestion from -Wsuggest-attribute=const.
184
185         propername: mark one more function as const
186         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
187
188 2011-11-27  Jim Meyering  <meyering@redhat.com>
189
190         mark functions with const and pure attributes
191
192         Mark functions per suggestions from gcc-4.6 when using these options:
193         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
194         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
195         Follow these guidelines: when possible, apply the attribute to
196         an extern declaration, not to its definition.  Apply it to the
197         definition only when the definition is static.
198         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
199         * lib/argv-iter.h (argv_iter_n_args): Likewise.
200         * lib/base64.h (isbase64): Likewise.
201         * lib/basename-lgpl.c (last_component, base_len): Likewise.
202         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
203         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
204         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
205         (c_tolower, c_toupper): Likewise.
206         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
207         * lib/chdir-long.c (find_non_slash): Likewise.
208         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
209         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
210         * lib/file-type.h (file_type): Likewise.
211         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
212         * lib/filevercmp.c (verrevcmp): Likewise.
213         * lib/freadahead.h (freadahead): Likewise.
214         * lib/fts.c (fts_maxarglen): Likewise.
215         * lib/hash-pjw.h (hash_pjw): Likewise.
216         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
217         * lib/hash.c (is_prime, next_prime): Likewise.
218         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
219         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
220         (hash_table_ok, hash_get_first, hash_string): Likewise.
221         (compute_bucket_size): Likewise.
222         * lib/i-ring.h (i_ring_empty): Likewise.
223         * lib/isnan.c (isnanl): Likewise.
224         * lib/math.h (isnanl, rpl_isnanl): Likewise.
225         * lib/memcasecmp.h (memcasecmp): Likewise.
226         * lib/memchr2.h (memchr2): Likewise.
227         * lib/memcmp2.h (memcmp2): Likewise.
228         * lib/parse-datetime.y (lookup_zone): Likewise.
229         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
230         [!WINDOWS_SOCKETS]: Likewise.
231         * lib/strnlen1.h (strnlen1): Likewise.
232         * lib/uniwidth.in.h (uc_width): Likewise.
233         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
234         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
235         (quoting_options_from_style): Add a comment.
236         * lib/propername.h (proper_name): Add a comment.
237
238 2011-11-27  Bruno Haible  <bruno@clisp.org>
239
240         Remove unused macros from !_LIBC code in glibc-borrowed files.
241         * lib/fnmatch.c (STRCOLL): Remove macro.
242         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
243         * lib/glob.c (__stat, __readdir64): Remove macros.
244         * lib/tempname.c (__open64, __xstat64): Remove macros.
245         Suggested by Paul Eggert.
246
247 2011-11-27  Bruno Haible  <bruno@clisp.org>
248
249         getcwd: Fix link error on MSVC 9.
250         * modules/getcwd (Depends-on): Add readdir, rewinddir.
251
252 2011-11-27  Bruno Haible  <bruno@clisp.org>
253
254         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
255         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
256         HAVE_OPENDIR is 0.
257         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
258         HAVE_CLOSEDIR is 0.
259         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
260         is 0.
261         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
262
263 2011-11-27  Bruno Haible  <bruno@clisp.org>
264
265         getcwd: Fix bug from 2011-08-17.
266         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
267         platforms that need it.
268         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
269         code of 4 to be a failure, not a success. This ensures that
270         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
271
272 2011-11-27  Bruno Haible  <bruno@clisp.org>
273
274         binary-io tests: Avoid test failure on mingw when libtool is used.
275         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
276         Don't verify the size of t-bin-out1.tmp here.
277         * tests/test-binary-io.sh: Verify it here.
278         Reported by Simon Josefsson.
279
280 2011-11-26  Bruno Haible  <bruno@clisp.org>
281
282         Fix conflict between two instantiations of module 'unistd'.
283         * gnulib-tool (func_emit_autoconf_snippet): Substitute
284         ${include_guard_prefix} also in the autoconf snippet.
285         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
287         GNULIB_UNISTD_H_GETOPT.
288         * modules/getopt-posix (configure.ac): Set the
289         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
290         * modules/getopt-gnu (configure.ac): Likewise.
291         * modules/unistd (Makefile.am): Change the substitution value of
292         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
293         Reported by Simon Josefsson.
294
295 2011-11-25  Bruno Haible  <bruno@clisp.org>
296
297         pagealign_alloc: Doc and comments.
298         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
299         module.
300         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
301
302 2011-11-25  Jim Meyering  <meyering@redhat.com>
303
304         test-update-copyright.sh: avoid false-positive failure
305         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
306         around false positive failure on Cygwin/Windows.  The latter was
307         matching erroneously-created files with names like
308         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
309
310 2011-11-25  Simon Josefsson  <simon@josefsson.org>
311
312         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
313         * m4/valgrind-tests.m4: Check that the parameters that will be
314         used works, not just a subset of them.  Reported by Bruno Haible
315         <bruno@clisp.org>.
316
317 2011-11-24  Jim Meyering  <meyering@redhat.com>
318
319         test-stdalign.c: comment out long double tests
320         * tests/test-stdalign.c: Don't try to reduce alignment of long double
321         variables.  That provokes errors like this from gcc-4.7.0 20111124:
322         error: '_Alignas' specifiers cannot reduce alignment of \
323         'static_longdouble_alignas'.
324
325 2011-11-22  Jim Meyering  <meyering@redhat.com>
326
327         init.sh: make "compare /dev/null FILE" output more readable
328         * tests/init.sh (compare_): Document the preferred order of arguments.
329         (emit_diff_u_header_): New function.
330         (compare_dev_null_): Emit a simulated diff, rather than just the
331         contents of the unexpected file.  Suggestion from Bruno Haible.
332
333 2011-11-21  Jim Meyering  <meyering@redhat.com>
334             Eric Blake  <eblake@redhat.com>
335
336         init.sh: work around OSF/1 5.1's mishandling of /dev/null
337         * tests/init.sh: Make our compare function slightly more portable.
338         Reported by Bruno Haible in
339         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
340
341 2011-11-21  Simon Josefsson  <simon@josefsson.org>
342
343         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
344         before using it, in code that ends up in config.h.
345
346 2011-11-20  Bruno Haible  <bruno@clisp.org>
347
348         getcwd: Work around getcwd bug on AIX 5..7.
349         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
350         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
351         Use a different value for gl_cv_func_getcwd_path_max. Move the
352         definition of HAVE_PARTLY_WORKING_GETCWD from here...
353         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
354         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
355         Define HAVE_MINIMALLY_WORKING_GETCWD.
356         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
357         where it is not even minimally working, that is, on AIX.
358         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
359         m4/getcwd-path-max.m4.
360         (main): Update exit code computation.
361         * doc/posix-functions/getcwd.texi: Mention list of platforms where
362         getcwd does not handle long file names.
363
364 2011-11-20  Bruno Haible  <bruno@clisp.org>
365
366         getcwd: Fix bug from 2009-09-10.
367         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
368         like "no".
369
370 2011-11-20  Simon Josefsson  <simon@josefsson.org>
371
372         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
373
374 2011-11-20  Bruno Haible  <bruno@clisp.org>
375
376         fma tests: Avoid shadowing local variables.
377         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
378         expected.
379
380 2011-11-20  Bruno Haible  <bruno@clisp.org>
381
382         copysignf tests: Fix.
383         * tests/test-copysignf.c: Fix signature check.
384
385 2011-11-20  Bruno Haible  <bruno@clisp.org>
386
387         fma: Remove unused code.
388         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
389         unused macros.
390
391 2011-11-20  Bruno Haible  <bruno@clisp.org>
392
393         sethostname: Fix doc about AIX.
394         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
395         sethostname; it has it.
396
397         sethostname: Mention more portability problems.
398         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
399         problem.
400         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
401
402 2011-11-19  Bruno Haible  <bruno@clisp.org>
403
404         Depend on module fcntl-h when AT_FDCWD is used.
405         * modules/utimens (Depends-on): Add fcntl-h.
406         * modules/areadlinkat (Depends-on): Likewise.
407         * modules/areadlinkat-with-size (Depends-on): Likewise.
408         * modules/faccessat (Depends-on): Likewise.
409         * modules/fchmodat (Depends-on): Likewise.
410         * modules/fchownat (Depends-on): Likewise.
411         * modules/getcwd (Depends-on): Likewise.
412         * modules/mkdirat (Depends-on): Likewise.
413         * modules/mkfifoat (Depends-on): Likewise.
414         * modules/readlinkat (Depends-on): Likewise.
415         * modules/symlinkat (Depends-on): Likewise.
416         * modules/dup2-tests (Depends-on): Likewise.
417         * modules/fdutimensat-tests (Depends-on): Likewise.
418         * modules/futimens-tests (Depends-on): Likewise.
419
420 2011-11-19  Bruno Haible  <bruno@clisp.org>
421
422         euidaccess: Update a comment.
423         * lib/euidaccess.c: Update comment about platforms with faccessat.
424
425 2011-11-19  Bruno Haible  <bruno@clisp.org>
426
427         openat: Fix file list.
428         * modules/openat (Files): Remove lib/at-func.c.
429
430 2011-11-19  Bruno Haible  <bruno@clisp.org>
431
432         fstatat: Simplify.
433         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
434         gnulib should define rpl_fstatat, there is a
435         "#define fstatat rpl_fstatat" in <sys/stat.h>.
436
437 2011-11-19  Bruno Haible  <bruno@clisp.org>
438
439         Ensure 'inline' can be used in tests/test-utimens-common.h.
440         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
441         * modules/futimens-tests (configure.ac): Likewise.
442         * modules/utimens-tests (configure.ac): Likewise.
443         * modules/utimensat-tests (configure.ac): Likewise.
444
445 2011-11-19  Simon Josefsson  <simon@josefsson.org>
446
447         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
448         not hash_insert0.
449         (hash_insert_if_absent): Doc fix.
450
451 2011-11-19  Simon Josefsson  <simon@josefsson.org>
452
453         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
454
455 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
456
457         test-getcwd: disambiguate exit status
458         * tests/test-getcwd.c (test_long_name): Return 0..7.
459         (main): Exit with an unambiguous exit status.  The old
460         code yielded a mysterious mixture of two failure codes.
461
462         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
463         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
464         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
465         rpl_fstatat or fstatat.  This should fix the other problem
466         reported by Kai Habel in
467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
468         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
470         and I reproduced it on a Solaris 8 host we still have in production.
471
472 2011-11-18  Jim Meyering  <meyering@redhat.com>
473
474         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
475         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
476         Add a sentence to the comment.
477         (hash_insert0): New function that simply calls hash_insert_if_absent.
478         * lib/hash.h (hash_insert_if_absent): Declare it.
479         (hash_insert0): Add deprecation attribute.
480         (_GL_ATTRIBUTE_DEPRECATED): Define.
481         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
482         not hash_insert0.
483         * NEWS: Mention it, even though it's not really an incompatible change.
484
485 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
486
487         openat: avoid compilation failure due to lack of <errno.h> inclusion
488         * lib/openat.c: Include <errno.h>.
489
490 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
491
492         * modules/getcwd (Depends-on): Add fdopendir.
493         This fixes one of the two problems reported by Kai Habel in
494         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
495
496         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
497         stdalign problem reported by Ian Beckwith in
498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
499         * modules/crypto/gc-arcfour (Depends-on):
500         Depend conditionally on crypto/arcfour.
501         * modules/crypto/gc-arctwo (Depends-on):
502         Depend conditionally on crypto/arctwo.
503         * modules/crypto/gc-des (Depends-on):
504         Depend conditionally on crypto/des.
505         * modules/crypto/gc-hmac-md5 (Depends-on):
506         Depend conditionally on crypto/hmac-md5.
507         * modules/crypto/gc-hmac-sha1 (Depends-on):
508         Depend conditionally on crypto/hmac-sha1.
509         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
510         * modules/crypto/gc-md4 (Depends-on):
511         Depend conditionally on crypto/md4.
512         * modules/crypto/gc-md5 (Depends-on):
513         Depend conditionally on crypto/md5.
514         * modules/crypto/gc-rijndael (Depends-on):
515         Depend conditionally on crypto/rijndael.
516         * modules/crypto/gc-sha1 (Depends-on):
517         Depend conditionally on crypto/sha1.
518         * modules/crypto/gc-arcfour:
519         * modules/crypto/gc-arctwo:
520         * modules/crypto/gc-des:
521         * modules/crypto/gc-hmac-md5:
522         * modules/crypto/gc-hmac-sha1:
523         * modules/crypto/gc-md2:
524         * modules/crypto/gc-md4:
525         * modules/crypto/gc-md5:
526         * modules/crypto/gc-rijndael:
527         * modules/crypto/gc-sha1:
528         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
529         now that the conditional dependencies do the work for us.
530
531 2011-11-17  Jim Meyering  <meyering@redhat.com>
532
533         tests: factor st_ctime-comparison out of two headers
534         * tests/test-utimens-common.h (ctime_compare): Define.
535         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
536         * tests/test-lutimens.h (test_lutimens): Likewise.
537         * tests/test-utimens.h (test_utimens): Likewise.
538
539         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
540         Invoke the test program via an init.sh-using wrapper.
541         * tests/test-getcwd.sh: New file.
542         * modules/getcwd-tests (Files): Add it.
543         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
544
545 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
546
547         gitlog-to-changelog: support multi-author commits.
548         The FSF cares about keeping track of all authors of patches to its
549         projects, but Git doesn't provide obvious support for multi-author
550         changesets. Consensus seems to be forming around the use of extra
551         Signed-off-by inspired lines in the log message formatted as
552         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
553         multi-author commits between version control systems.
554         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
555         log message and output in standard ChangeLog multi-author format.
556         Reported by Peter Rosin <peda@lysator.liu.se>
557
558 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
559             Bruno Haible  <bruno@clisp.org>
560
561         Fix some modules' file list.
562         * modules/fstatat (Files): Add m4/lstat.m4.
563         * modules/openat (Files): Likewise.
564         * modules/unlinkat (Files): Likewise.
565
566 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
567
568         maint.mk: fix tight-scope.mk generation in VPATH builds.
569         * top/maint.mk (tight-scope.mk): Make sure to prefix file
570         reference with $(srcdir) so that the file is found correctly even
571         when running `make syntax-check' in a VPATH build.
572
573 2011-11-13  Bruno Haible  <bruno@clisp.org>
574             Jim Meyering  <meyering@redhat.com>
575
576         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
577         * tests/init.sh (compare): Remove "No differences encountered" or
578         synonymous output from the 'diff' program.
579
580 2011-11-13  Bruno Haible  <bruno@clisp.org>
581
582         Makefile: Tweak indentation.
583         * Makefile: Use tab as first character in every line that contains rule
584         commands.
585
586 2011-11-13  Bruno Haible  <bruno@clisp.org>
587
588         Syntax check for copyright statements.
589         * check-copyright: New file.
590         * Makefile (sc_check_copyright): New rule.
591
592 2011-11-13  Simon Josefsson  <simon@josefsson.org>
593
594         * build-aux/git-version-gen: Add --prefix to configure the tag
595         match string.
596
597 2011-11-13  Simon Josefsson  <simon@josefsson.org>
598
599         * build-aux/git-version-gen: Add --help and --version.
600
601 2011-11-12  Jim Meyering  <meyering@redhat.com>
602
603         revamp the other test-exclude?.sh scripts to use init.sh, too
604         * tests/test-exclude1.sh: Use init.sh.
605         * tests/test-exclude2.sh: Likewise.
606         * tests/test-exclude3.sh: Likewise.
607         * tests/test-exclude4.sh: Likewise.
608         * tests/test-exclude5.sh: Likewise.
609         * tests/test-exclude6.sh: Likewise.
610         * tests/test-exclude7.sh: Likewise.
611         * tests/test-exclude8.sh: Likewise.
612         * modules/exclude-tests (Files): List init.sh.
613
614         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
615         These shell scripts ignored failure of the binary test-exclude,
616         so making the latter return 77 didn't cause them to be skipped.
617         * tests/test-exclude5.sh: Exit with test-exclude's error status
618         when that program fails.  Revamp to use init.sh.
619         * tests/test-exclude2.sh: Likewise.
620
621         test-exclude: fix a typo
622         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
623
624 2011-11-11  Bruno Haible  <bruno@clisp.org>
625
626         obstack: Fix compilation error on MSVC 9.
627         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
628
629 2011-11-11  Jim Meyering  <meyering@redhat.com>
630
631         test-exclude: skip tests rather than failing on deficient systems
632         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
633         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
634         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
635         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
636
637 2011-11-10  Bruno Haible  <bruno@clisp.org>
638
639         ptsname_r test: Avoid gcc warning on glibc systems.
640         * tests/test-ptsname_r.c (null_ptr): New function.
641         (test_errors): Use it.
642
643 2011-11-10  Bruno Haible  <bruno@clisp.org>
644
645         ptsname_r: Avoid compilation error on OSF/1 5.1.
646         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
648         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
649         function is not declared or incompatibly declared.
650         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
651         * modules/ptsname_r (Depends-on, configure.ac): Update.
652         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
653
654 2011-11-10  Bruno Haible  <bruno@clisp.org>
655
656         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
657         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
658         When cross-compiling, guess yes on all platforms except AIX.
659         Reported by Ludovic Courtès <ludo@gnu.org>.
660
661 2011-11-09  Bruno Haible  <bruno@clisp.org>
662
663         ptsname_r tests: Fix bugs.
664         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
665         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
666
667 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
668
669         fstatat: work with cross-compilation
670         Problem reported by Ludovic Courtès in
671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
672         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
673         "cross-compiling" and assume the bug is present.  Replace
674         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
675         an inverted sense, to be more conservative about our assumptions.
676         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
677
678 2011-11-09  Bruno Haible  <bruno@clisp.org>
679
680         Improve MODULES.html output.
681         * modules/mkfifoat (Description): Use the word "function".
682         * modules/readlinkat (Description): Likewise.
683         * modules/symlinkat (Description): Likewise.
684
685 2011-11-09  Eric Blake  <eblake@redhat.com>
686
687         ptsname_r-tests: new test module
688         * modules/ptsname_r-tests: New module.
689         * tests/test-ptsname_r.c: New file.
690
691         ptsname_r: new module
692         * modules/ptsname_r: New module.
693         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
694         * lib/ptsname.c (__ptsname_r): Split...
695         * lib/ptsname_r.c: ...into new file.
696         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
697         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
698         * modules/stdlib (Makefile.am): Substitute witnesses.
699         * lib/stdlib.in.h (ptsname_r): Declare it.
700         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
701         * MODULES.html.sh (Misc): Likewise.
702         * modules/ptsname (Depends-on): Alter dependency.
703         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
704
705 2011-11-09  Jim Meyering  <meyering@redhat.com>
706
707         announce-gen: be more concise when there's only one URL+tarball
708         * build-aux/announce-gen (get_tool_versions): When you distribute
709         only one type of tarball, combine the first two "Here are..."
710         sections and make the key-checking grammar independent of
711         how many tarballs there are.
712
713 2011-11-09  Eric Blake  <eblake@redhat.com>
714
715         openpty: provide a stub on mingw
716         * lib/pty.in.h (includes): Provide forward declarations.
717         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
718
719         raise: fix mingw handling of SIGPIPE
720         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
721
722 2011-11-08  Bruno Haible  <bruno@clisp.org>
723
724         More conditional dependencies.
725         * modules/faccessat (Depends-on): Add conditions.
726         * modules/fchmodat (Depends-on): Likewise.
727         * modules/fchownat (Depends-on): Likewise.
728         * modules/fstatat (Depends-on): Likewise.
729         * modules/mkfifoat (Depends-on): Likewise.
730         * modules/readlinkat (Depends-on): Likewise.
731         * modules/symlinkat (Depends-on): Likewise.
732         * modules/unlinkat (Depends-on): Likewise.
733         * modules/utimensat (Depends-on): Likewise.
734         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
735         * modules/linkat (Depends-on): Refine the conditions.
736         * modules/renameat (Depends-on): Likewise.
737
738 2011-11-08  Bruno Haible  <bruno@clisp.org>
739
740         faccessat: Move AC_LIBOBJ invocation to module description.
741         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
742         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
743         invocation from here...
744         * modules/faccessat (configure.ac): ... to here. Invoke
745         gl_PREREQ_FACCESSAT.
746
747 2011-11-08  Bruno Haible  <bruno@clisp.org>
748
749         faccessat: Simplify autoconf macro.
750         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
751         gl_FUNC_EUIDACCESS.
752
753 2011-11-08  Bruno Haible  <bruno@clisp.org>
754
755         renameat: Fix dependencies.
756         * modules/renameat (Depends-on): Add stdbool.
757
758 2011-11-08  Bruno Haible  <bruno@clisp.org>
759
760         mkfifoat: Fix module description.
761         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
762         not gl_UNISTD_MODULE_INDICATOR.
763
764 2011-11-08  Bruno Haible  <bruno@clisp.org>
765
766         fstatat: Remove unused dependency.
767         * modules/fstatat (Depends-on): Remove fstat.
768
769 2011-11-08  Simon Josefsson  <simon@josefsson.org>
770
771         GNUmakefile: behave when Makefile is missing.
772         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
773
774 2011-11-08  Bruno Haible  <bruno@clisp.org>
775
776         openat: Conditionalize dependencies.
777         * lib/openat.c: Reduce the scope of some #includes.
778         * modules/openat (Depends-on): Add conditions.
779
780 2011-11-07  Jim Meyering  <meyering@redhat.com>
781
782         maint.mk: extract GPG key ID without using a temporary file
783         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
784         without using a temporary file.  Based on a suggestion from Werner Koch
785         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
786
787 2011-11-07  Eric Blake  <eblake@redhat.com>
788
789         grantpt: fix typo
790         * lib/stdlib.in.h (grantpt): Check correct function.
791
792         maint.mk: silence new syntax check
793         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
794
795 2011-11-06  Bruno Haible  <bruno@clisp.org>
796
797         Doc about floating-point and math API.
798         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
799         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
800
801 2011-11-06  Bruno Haible  <bruno@clisp.org>
802
803         stdalign tests: Skip the test when compiled by Sun C.
804         * tests/test-stdalign.c (main): Skip the test on Sun C.
805
806 2011-11-06  Bruno Haible  <bruno@clisp.org>
807
808         ansi-c++-opt: Complete the 2011-06-05 change.
809         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
810         does not support namespaces, set the variable to "no", not to ":".
811
812 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
813
814         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
815
816 2011-11-06  Bruno Haible  <bruno@clisp.org>
817
818         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
819         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
820         (minus_zerol) [HP-UX]: New macro.
821         (unary_minus) [HP-UX]: New function.
822         (copysignl) [HP-UX]: Use unary_minus function.
823
824 2011-11-06  Bruno Haible  <bruno@clisp.org>
825
826         ldexp, ldexpf, ldexpl: Enhance tests.
827         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
828         and tests/test-ldexpl.c.
829         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
830         LDEXP, MIN_EXP, MAX_EXP): New macros.
831         Include test-ldexp.h.
832         (main): Just call test_function.
833         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
834         infinity.h, nan.h.
835         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
836         MAX_EXP): New macros.
837         Include test-ldexp.h.
838         (x, y): Remove variables.
839         (main): Just call test_function.
840         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
841         infinity.h, nan.h.
842         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
843         MAX_EXP): New macros.
844         Include test-ldexp.h.
845         (x, y): Remove variables.
846         (main): Just call test_function.
847         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
848         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
849         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
850         (Depends-on): Add isnand-nolibm, signbit, float.
851         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
852         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
853         (Depends-on): Add isnanf-nolibm, signbit, float.
854
855 2011-11-06  Bruno Haible  <bruno@clisp.org>
856
857         math tests: Cosmetics.
858         * tests/test-math-c++.cc: Reorder declarations.
859
860 2011-11-05  Bruno Haible  <bruno@clisp.org>
861
862         fma*: Simplify test.
863         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
864         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
865
866         Tests for module 'fmal'.
867         * modules/fmal-tests: New file.
868         * tests/test-fmal1.c: New file.
869         * tests/test-fmal2.c: New file.
870
871         New module 'fmal'.
872         * lib/math.in.h (fmal): New declaration.
873         * lib/fmal.c: New file.
874         * m4/fmal.m4: New file.
875         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
877         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
878         REPLACE_FMAL.
879         * modules/fmal: New file.
880         * doc/posix-functions/fmal.texi: Mention the new module and the various
881         bugs.
882
883         Tests for module 'fmaf'.
884         * modules/fmaf-tests: New file.
885         * tests/test-fmaf1.c: New file.
886         * tests/test-fmaf2.c: New file.
887
888         New module 'fmaf'.
889         * lib/math.in.h (fmaf): New declaration.
890         * lib/fmaf.c: New file.
891         * m4/fmaf.m4: New file.
892         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
894         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
895         REPLACE_FMAF.
896         * modules/fmaf: New file.
897         * doc/posix-functions/fmaf.texi: Mention the new module and the various
898         bugs.
899
900         Tests for module 'fma'.
901         * modules/fma-tests: New file.
902         * tests/test-fma1.c: New file.
903         * tests/test-fma1.h: New file.
904         * tests/test-fma2.c: New file.
905         * tests/test-fma2.h: New file.
906
907         New module 'fma'.
908         * lib/math.in.h (fma): New declaration.
909         * lib/fma.c: New file.
910         * m4/fma.m4: New file.
911         * m4/fegetround.m4: New file.
912         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
914         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
915         REPLACE_FMA.
916         * modules/fma: New file.
917         * doc/posix-functions/fma.texi: Mention the new module and the various
918         bugs.
919
920         Extend gl_MATHFUNC.
921         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
922         Support 'void' as argument type.
923         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
924
925 2011-11-05  Jim Meyering  <meyering@redhat.com>
926
927         maint.mk: also prohibit inclusion of dirent.h without use
928         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
929
930 2011-11-05  Bruno Haible  <bruno@clisp.org>
931
932         ldexpl tests: Avoid test failure on MSVC 9.
933         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
934         value. Needed in order to enforce the conversion from a value greater
935         than LDBL_MAX to Infinity.
936
937 2011-11-05  Bruno Haible  <bruno@clisp.org>
938
939         New modules 'at-internal', 'openat-h', split off from module 'openat'.
940         * modules/at-internal: New file, extracted from modules/openat.
941         * modules/openat-h: New file.
942         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
943         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
944         * modules/openat (Description): Add reference to POSIX function.
945         (Files): Remove lib/openat.h, lib/openat-proc.c.
946         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
947         intprops, unistd.
948         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
949         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
950         gl_FCNTL_MODULE_INDICATOR.
951         (Include): Remove unistd.h, openat.h.
952         * modules/areadlinkat (Files): Add lib/at-func.c.
953         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
954         openat-die, openat-h, save-cwd.
955         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
956         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
957         openat-die, openat-h, save-cwd, unistd.
958         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
959         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
960         openat-h, save-cwd. Remove fcntl-h, openat.
961         * modules/fchmodat (Files): Remove lib/openat.h.
962         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
963         openat, stdbool, unistd.
964         * modules/fchownat (Files): Remove lib/openat.h.
965         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
966         openat, stdbool, sys_stat.
967         * modules/fdopendir (Files): Remove lib/openat-priv.h,
968         lib/openat-proc.c.
969         (Depends-on): Add at-internal.
970         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
971         * modules/fstatat (Files): Remove lib/openat.h.
972         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
973         stdbool, unistd.
974         * modules/fts (Depends-on): Add openat-h.
975         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
976         openat.
977         * modules/mkdirat (Files): Remove lib/openat.h.
978         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
979         openat, stdbool, sys_stat.
980         * modules/mkfifoat (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/openat-die (Depends-on): Add openat-h. Remove openat.
984         * modules/readlinkat (Files): Add lib/at-func.c.
985         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
986         openat-h, save-cwd. Remove fcntl-h, openat.
987         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
988         openat.
989         * modules/selinux-at (Files): Add lib/at-func.c.
990         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
991         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
992         * modules/symlinkat (Files): Add lib/at-func.c.
993         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
994         openat-h, save-cwd. Remove fcntl-h, openat.
995         * modules/unlinkat (Files): Remove lib/openat.h.
996         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
997         stdbool.
998         * modules/utimensat (Files): Add lib/at-func.c.
999         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1000         openat-die, openat-h, save-cwd.
1001         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1002         * modules/fdutimensat-tests (Depends-on): Add openat.
1003         * modules/fstatat-tests (Depends-on): Add openat-h.
1004         * modules/readlinkat-tests (Depends-on): Add openat.
1005         * modules/symlinkat-tests (Depends-on): Add openat.
1006
1007 2011-11-05  Bruno Haible  <bruno@clisp.org>
1008
1009         openat: Include <stdbool.h>.
1010         * lib/openat.c: Include <stdbool.h>.
1011
1012 2011-11-04  Bruno Haible  <bruno@clisp.org>
1013
1014         fchownat, renameat, unlinkat: Fix dependencies.
1015         * modules/fchownat (Depends-on): Add fstatat.
1016         * modules/renameat (Depends-on): Likewise.
1017         * modules/unlinkat (Depends-on): Likewise.
1018
1019 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1020
1021         openat: remove direct dependency on dirent
1022         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1023         and hasn't been needed ever since fdopendir was split into its own
1024         module on 2009-08-31.
1025         * modules/openat (Depends-on): Remove dirent.
1026
1027 2011-11-04  Bruno Haible  <bruno@clisp.org>
1028
1029         renameat: Optimize code size.
1030         * modules/renameat (configure.ac): Don't compile at-func2.c if
1031         REPLACE_RENAMEAT is 1.
1032
1033 2011-11-04  Bruno Haible  <bruno@clisp.org>
1034
1035         openat tests: Fix file list.
1036         * modules/openat-tests (Files): Add tests/test-open.h.
1037
1038 2011-11-04  Bruno Haible  <bruno@clisp.org>
1039
1040         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1041         * modules/fchmodat (Depends-on): Add openat-die.
1042         * modules/fchownat (Depends-on): Likewise.
1043         * modules/linkat (Depends-on): Likewise.
1044         * modules/renameat (Depends-on): Likewise.
1045         * modules/openat (Depends-on): Add dirent.
1046
1047 2011-11-04  Jim Meyering  <meyering@redhat.com>
1048
1049         at-func*.c: fix comments
1050         * lib/at-func2.c: Correct/improve first-line comment.
1051         * lib/at-func.c: Correct grammar in first-line comment.
1052
1053 2011-11-04  Bruno Haible  <bruno@clisp.org>
1054
1055         New module 'mkdirat', split off from module 'openat'.
1056         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1057         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1058         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1059         * modules/mkdirat: New file, extracted from modules/openat.
1060         * modules/openat (Files): Remove lib/mkdirat.c.
1061         (Depends-on): Remove mkdir.
1062         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1063         (Include): Remove <sys/stat.h>.
1064         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1065         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1066         tests/test-mkdir.h.
1067         (Depends-on): Remove ignore-value.
1068         (Makefile.am): Remove rules for test-mkdirat.
1069         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1070         of module 'openat'.
1071         * NEWS: Mention the change.
1072
1073 2011-11-04  Bruno Haible  <bruno@clisp.org>
1074
1075         closedir: Avoid warning on mingw.
1076         * lib/closedir.c: Include <unistd.h>.
1077
1078 2011-11-04  Bruno Haible  <bruno@clisp.org>
1079
1080         New module 'fstatat', split off from module 'openat'.
1081         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1082         defined.
1083         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1084         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1085         gl_FUNC_FSTATAT.
1086         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1087         * modules/fstatat: New file, extracted from modules/openat.
1088         * modules/openat (Files): Remove lib/fstatat.c.
1089         (Depends-on): Remove lstat.
1090         (configure.ac): Remove AC_LIBOBJ of fstatat.
1091         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1092         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1093         tests/test-lstat.h, tests/test-stat.h.
1094         (Depends-on): Remove getcwd-lgpl.
1095         (Makefile.am): Remove rules for test-fstatat.
1096         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1097         of module 'openat'.
1098         * NEWS: Mention the change.
1099         * modules/getcwd (Depends-on): Add fstatat.
1100         * modules/linkat (Depends-on): Likewise.
1101         * modules/mkfifoat-tests (Depends-on): Likewise.
1102         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1103
1104 2011-11-03  Bruno Haible  <bruno@clisp.org>
1105
1106         New module 'unlinkat', split off from module 'openat'.
1107         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1108         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1109         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1110         * modules/unlinkat: New file, extracted from modules/openat. Correct
1111         the dependency conditions.
1112         * modules/openat (Files): Remove lib/unlinkat.c.
1113         (Depends-on): Remove rmdir, unlink.
1114         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1115         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1116         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1117         tests/test-rmdir.h, tests/test-unlink.h.
1118         (Depends-on): Remove unlinkdir.
1119         (Makefile.am): Remove rules for test-unlinkat.
1120         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1121         of module 'openat'.
1122         * NEWS: Mention the change.
1123         * modules/linkat-tests (Depends-on): Add unlinkat.
1124         * modules/mkfifoat-tests (Depends-on): Likewise.
1125         * modules/readlinkat-tests (Depends-on): Likewise.
1126
1127 2011-11-02  Bruno Haible  <bruno@clisp.org>
1128
1129         New module 'fchmodat', split off from module 'openat'.
1130         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1131         defined.
1132         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1133         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1134         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1135         * modules/fchmodat: New file, extracted from modules/openat.
1136         * modules/openat (Files): Remove lib/fchmodat.c.
1137         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1138         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1139         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1140         (Makefile.am): Remove rules for test-fchmodat.
1141         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1142         of module 'openat'.
1143         * NEWS: Mention the change.
1144
1145 2011-11-02  Jim Meyering  <meyering@redhat.com>
1146
1147         putenv: indent #definition of "environ" to placate cppi
1148         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1149
1150         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1151         Git logs are often treated as immutable, because editing them
1152         changes the SHA1 checksums of all descendants.  Thus, errors in
1153         git logs tend to stay there forever.  However, when we generate
1154         a ChangeLog file -- typically for distribution -- from that git log,
1155         we can actually make corrections in the generated file.  The key
1156         lies in recording in machine-readable/applicable form the desired
1157         corrections.  See --help for description and an example.
1158         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1159         (usage): Describe it; alphabetize option descriptions.
1160         (main): Honor the new option, carefully.
1161
1162 2011-11-01  Jim Meyering  <meyering@redhat.com>
1163
1164         gitlog-to-changelog: avoid an infloop
1165         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1166         that ends up being empty.
1167
1168 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1169
1170         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1171         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1172         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1173         contains (possibly-quoted) backslashes.  This should avoid
1174         all-too-common shell bugs if COMPLICATED contains backslashes in
1175         the "wrong" places.  Reported by David Evans in
1176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1177         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1178         because we want ASCII ranges.  Is there some reason we don't use
1179         the C locale everywhere in this script?
1180         (func_module, top level): Avoid unwanted pathname expansion when
1181         $repo_url_prefix or $repo_url_suffix_repl contain shell
1182         metacharacters like '?' and '*'.
1183
1184 2011-11-01  Bruno Haible  <bruno@clisp.org>
1185
1186         fchownat: Improve description.
1187         * modules/fchownat (Description): Add link to function.
1188
1189 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1190
1191         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1192         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1194         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1195
1196 2011-11-01  Bruno Haible  <bruno@clisp.org>
1197
1198         alignof: Avoid collision with stdalign module.
1199         * lib/alignof.h (alignof): Remove macro.
1200         * NEWS: Mention the change.
1201         Reported by Paul Eggert.
1202
1203 2011-11-01  Bruno Haible  <bruno@clisp.org>
1204
1205         New module 'fchownat', split off from module 'openat'.
1206         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1207         defined.
1208         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1209         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1210         invoke gl_FUNC_FCHOWNAT.
1211         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1212         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1213         * modules/fchownat: New file, extracted from modules/openat.
1214         * modules/openat (Files): Remove lib/fchownat.c.
1215         (Depends-on): Remove lchown.
1216         (configure.ac): Remove AC_LIBOBJ of fchownat.
1217         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1218         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1219         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1220         (Depends-on): Remove mgetgroups, usleep, stat-time.
1221         (configure.ac): Remove test for getegid.
1222         (Makefile.am): Remove rules for test-fchownat.
1223         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1224         of module 'openat'.
1225         * NEWS: Mention the change.
1226
1227 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1228
1229         stdalign: port better to MSVC and to Sun C 5.11
1230         This fixes some of the problems reported by Bruno Haible in
1231         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1232         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1233         shortcomings of MSVC and of Sun C 5.11.
1234         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1235         around __declspec arg.
1236         * modules/stdalign-tests (Files): Add tests/macros.h.
1237         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1238         Include macros.h, for ASSERT.
1239         (DECLARE_ALIGNED): Remove.
1240         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1241         to catch bug), and to 1 if not (simplifies the rest of the code).
1242         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1243         (CHECK_AUTO): Remove.
1244         (CHECK_ALIGNED): Check only the alignment of the static vars,
1245         since auto var alignment isn't supported by Sun C 5.11.
1246         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1247         ASSERT failures are easier to diagnose.
1248
1249 2011-10-31  Bruno Haible  <bruno@clisp.org>
1250
1251         doc about some IRIX 5.3 problems.
1252         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1253         on IRIX 5.3.
1254         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1255         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1256         5.3.
1257         * doc/posix-functions/grantpt.texi: Likewise.
1258         * doc/posix-functions/unlockpt.texi: Likewise.
1259         * doc/posix-functions/lgamma.texi: Likewise.
1260         * doc/posix-functions/nextafter.texi: Likewise.
1261         * doc/posix-functions/remainder.texi: Likewise.
1262         * doc/posix-functions/select.texi: Mention misplaced declaration on
1263         IRIX 5.3.
1264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1265
1266 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1267
1268         gitlog-to-changelog: fix git-log invocation.
1269         git-log mishandles date strings before 1970-01-01 UTC, and there is
1270         no use to specify --since=1970-01-01 by default anyway.
1271         * build-aux/gitlog-to-changelog: By default, when no --since option
1272         was given, do not specify explicit --since option to git-log.
1273
1274 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1275
1276         gitlog-to-changelog: new option --append-dot.
1277         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1278         first non-blank line of each commit message terminated with a dot.
1279
1280 2011-10-30  Bruno Haible  <bruno@clisp.org>
1281
1282         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1283         * lib/ffsl.h: Include <config.h>.
1284         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1285
1286 2011-10-30  Jim Meyering  <meyering@redhat.com>
1287
1288         GNUmakefile: reenable "make syntax-check" for most projects
1289         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1290         build-aux variable", "syntax-check" would do nothing but succeed with
1291         the "No version control files detected..." diagnostic (unless you
1292         happened to override _build-aux via cfg.mk).
1293         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1294         to precede inclusion of maint.mk.  Otherwise, these variables would
1295         be used undefined in any project that does not override the default.
1296
1297 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1298
1299         gitlog-to-changelog: treat a message with only blank lines as empty.
1300         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1301         trailing blank lines before the code that issues a warning about an
1302         empty commit message.
1303
1304 2011-10-30  Jim Meyering  <meyering@redhat.com>
1305
1306         test-parse-datetime.c: avoid new DST-related false positive test failure
1307         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1308         based on the time/date we'll convert, not the current time.
1309         Otherwise, the moment we cross a DST boundary like today's in
1310         Europe, (CEST to CET), that offset ends up being one hour off.
1311
1312 2011-10-27  Bruno Haible  <bruno@clisp.org>
1313
1314         fstat: Tweak documentation.
1315         * modules/fstat (Description): More precise description.
1316
1317 2011-10-27  Bruno Haible  <bruno@clisp.org>
1318
1319         Update documentation regarding 'largefile' module.
1320         * doc/posix-functions/fstat.texi: Tweak wording.
1321         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1322         problems with huge directories and/or small ino_t types.
1323         * doc/posix-functions/readdir.texi: Likewise.
1324         * doc/posix-functions/rewinddir.texi: Likewise.
1325
1326 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1327
1328         maint.mk: don't maintain a second build-aux variable.
1329         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1330         depends on GNUmakefile, which already maintains a cfg.mk
1331         overridable $(_build-aux) for projects with a non-standard
1332         build-aux directory location, although without the $(srcdir)
1333         prefix.  Use that variable consistently instead of introducing a
1334         second one.  Adjust all call sites.
1335
1336 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1337
1338         Add stdalign module and use it in other modules.
1339         This is based on a previous proposal by Bruno Haible
1340         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1341
1342         stdalign: new module
1343         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1344         * modules/stdalign: New files.
1345         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1346         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1347
1348         stdalign-tests: new module
1349         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1350
1351         argp: use stdalign
1352         * lib/argp-parse.c: Include <stdalign.h>.
1353         (alignof): Remove.
1354         * modules/argp (Depends-on): Add stdalign.
1355
1356         crypto libraries: use stdalign
1357         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1358         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1359         Do not include <stdlib.h> twice, in md4.c.
1360         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1361         because we are accessing a pointer's bit-pattern, not a size.
1362         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1363         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1364         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1365         * modules/crypto/sha512: Likewise.
1366
1367         sys_socket: use stdalign, not alignof
1368         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1369         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1370
1371 2011-10-27  Bruno Haible  <bruno@clisp.org>
1372
1373         raise test: Avoid a test failure on Linux/MIPS.
1374         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1375         because 99 is a valid signal on Linux/MIPS.
1376
1377 2011-10-27  Bruno Haible  <bruno@clisp.org>
1378
1379         nonblocking tests: Fix test failure on Linux/MIPS.
1380         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1381         Set to 270000.
1382
1383 2011-10-27  Bruno Haible  <bruno@clisp.org>
1384
1385         utimensat: Work around problem on Linux/hppa.
1386         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1387         values.
1388         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1389
1390 2011-10-25  Jim Meyering  <meyering@redhat.com>
1391
1392         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1393         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1394         after symbols like NULL, size_t, etc.
1395         Reported by Alfred M. Szmidt.
1396
1397         maint.mk: exempt ENODATA from a syntax-check rule
1398         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1399         from the sc_prohibit_always-defined_macros syntax-check rule.
1400         Add a comment.  See this for more details:
1401         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1402
1403 2011-10-23  Jim Meyering  <meyering@redhat.com>
1404
1405         fts: close parent dir FD before returning from post-traversal fts_read
1406         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1407         unlink A, even though an FD open on A remained.  This is suboptimal
1408         (holding a file descriptor open longer than needed), but otherwise not
1409         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1410         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1411         that represents a real problem: it causes the removal of A to fail
1412         with e.g., "rm: cannot remove `A': Device or resource busy"
1413
1414         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1415         directory file descriptors.  After completing the final, FTS_DP,
1416         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1417         cache, but then proceeded to add a new FD to it via the subsequent
1418         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1419         final file descriptor would be closed only via fts_close's call to
1420         fd_ring_clear.  Now, it is usually closed earlier, via the final
1421         FTS_DP-returning fts_read call.
1422         * lib/fts.c (restore_initial_cwd): New function, converted from
1423         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1424         Update callers.
1425         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1426         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1427
1428 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1429             Bruno Haible  <bruno@clisp.org>
1430             Jim Meyering  <jim@meyering.net>
1431
1432         readme-release: improve safety of release prep instructions.
1433         * README-release: Don't git pull all branches when only master
1434         is needed for the release process.
1435         Run make maintainer-clean before changing trees and merging.
1436         Don't try to run ./configure right after git pull in case files
1437         that influence the bootstrap process have changed, move the
1438         ./configure step to after running ./bootstrap.
1439         Don't bootstrap "one last time"... it's the first time!
1440
1441 2011-10-22  Bruno Haible  <bruno@clisp.org>
1442
1443         errno, strerror-override: Support for MSVC 10.
1444         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1445         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1446         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1447         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1448         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1449         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1450         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1451         Assign values compatible with MSVC 10.
1452         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1453         New macros.
1454         (GNULIB_defined_EWINSOCK): New macro.
1455         * lib/strerror-override.c (strerror_override): Update accordingly.
1456         * lib/strerror-override.h: Likewise.
1457         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1458         longer equal to the corresponding errno value.
1459         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1460
1461 2011-10-22  Bruno Haible  <bruno@clisp.org>
1462
1463         perror: Recognize when test program crashes.
1464         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1465         strerror, set gl_cv_func_perror_works to no.
1466         Reported by Daniel Richard G. <skunk@iskunk.org>.
1467
1468         perror: Fix indentation.
1469         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1470
1471 2011-10-22  Bruno Haible  <bruno@clisp.org>
1472
1473         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1474         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1475         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1476         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1477         functions, not as a macro.
1478         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1479         macros.
1480         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1481         absence of macro.
1482         Suggested by Eric Blake.
1483         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1484
1485 2011-10-21  Bruno Haible  <bruno@clisp.org>
1486
1487         relocatable-prog-wrapper: Don't leave object files behind.
1488         * build-aux/install-reloc: Re-synchronize list of .o files to be
1489         removed with list of compilation units.
1490
1491 2011-10-20  Bruno Haible  <bruno@clisp.org>
1492
1493         openpty, posix_openpt: Remove code duplication.
1494         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1495         * lib/openpty.c: Include <stdlib.h>.
1496         (openpty): Use posix_openpt on all platforms except IRIX.
1497         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1498
1499 2011-10-20  Bruno Haible  <bruno@clisp.org>
1500
1501         unlockpt: Detect invalid argument.
1502         * lib/unlockpt.c: Include <fcntl.h>.
1503         (unlockpt): Check whether fd is valid, using fcntl().
1504         * modules/unlockpt (Depends-on): Add fcntl-h.
1505
1506 2011-10-20  Bruno Haible  <bruno@clisp.org>
1507
1508         openpty: Avoid compilation error on AIX 6.1.
1509         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1510
1511 2011-10-20  Bruno Haible  <bruno@clisp.org>
1512
1513         posix_openpt: Support for OpenBSD.
1514         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1515         (posix_openpt) [OpenBSD]: New code.
1516         * lib/grantpt.c: Include <fcntl.h>.
1517         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1518         * modules/grantpt (Depends-on): Add fcntl-h.
1519
1520 2011-10-20  Bruno Haible  <bruno@clisp.org>
1521
1522         posix_openpt test: Coding style.
1523         * tests/test-posix_openpt.c: Use GNU coding style.
1524
1525 2011-10-20  Bruno Haible  <bruno@clisp.org>
1526
1527         grantpt: Support --avoid=pt_chown.
1528         * modules/grantpt (Files): Add lib/pty-private.h.
1529
1530 2011-10-20  Bruno Haible  <bruno@clisp.org>
1531
1532         posix_openpt: Fix autoconf macro.
1533         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1534         unneeded check for _getpty.
1535
1536 2011-10-20  Bruno Haible  <bruno@clisp.org>
1537
1538         openpty: Update comments.
1539         * lib/openpty.c: Add comments about Minix.
1540
1541 2011-10-19  Eric Blake  <eblake@redhat.com>
1542
1543         openpty: relax license
1544         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1545
1546         pt_chown: use configmake to simplify build
1547         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1548
1549         ptsname and others: relax license
1550         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1551         * modules/unlockpt (License): Likewise.
1552         * modules/pt_chown (License): Likewise.
1553         * modules/ptsname (License): Likewise.
1554         * modules/ttyname_r (License): Likewise.
1555
1556 2011-10-19  Jim Meyering  <meyering@redhat.com>
1557
1558         posix_openpt: remove spurious #endif
1559         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1560
1561 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1562
1563         maint.mk: Respect $(build_aux) in web-manual rule.
1564         * top/maint.mk (web-manual): Find gen-announce script in user's
1565         $(build_aux) directory instead of hard-coding 'build-aux'.
1566
1567 2011-10-19  Bruno Haible  <bruno@clisp.org>
1568
1569         posix_openpt: Fix compilation error.
1570         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1571         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1572         Mention the openpty module as an alternative.
1573
1574 2011-10-19  Bruno Haible  <bruno@clisp.org>
1575
1576         Support for old NeXTstep 3.3 frexp().
1577         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1578         execution time of the test to 5 seconds.
1579         Reported by Daniel Richard G. <skunk@iskunk.org>.
1580
1581 2011-10-19  Bruno Haible  <bruno@clisp.org>
1582
1583         Support for old NeXTstep 3.3 sed.
1584         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1585         part, use /.../, not \|...|. Escape periods in the header file name.
1586         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1587         Reported by Daniel Richard G. <skunk@iskunk.org>.
1588
1589 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1590
1591         Support for old NeXTstep 3.3 gcc.
1592         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1593         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1594         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1595         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1596         * lib/regex.h (_Restrict_arr_): Likewise.
1597         * lib/regex_internal.h (re_token_t): Likewise.
1598         * lib/regexec.c (check_node_accept_bytes): Likewise.
1599         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1600
1601 2011-10-18  Eric Blake  <eblake@redhat.com>
1602
1603         posix_openpt: new module
1604         * modules/posix_openpt: New module.
1605         * m4/posix_openpt.m4: New file.
1606         * lib/posix_openpt.c: Likewise.
1607         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1608         (gl_STDLIB_H_DEFAULTS): Set defaults.
1609         * modules/stdlib (Makefile.am): Substitute macros.
1610         * lib/stdlib.in.h (posix_openpt): Declare.
1611         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1612         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1613         * modules/posix_openpt-tests: New test module.
1614         * tests/test-posix_openpt.c: New test.
1615
1616 2011-10-15  Bruno Haible  <bruno@clisp.org>
1617
1618         xstrtoll: Fix compilation failure.
1619         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1620         from lib/strtol.c.
1621         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1622         some platforms.
1623         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1624
1625 2011-10-15  Bruno Haible  <bruno@clisp.org>
1626
1627         vasnprintf: Optimize bit search operation.
1628         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1630         gl_DOUBLE_EXPONENT_LOCATION.
1631         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1632         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1633         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1634         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1635         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1636         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1637         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1638         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1639         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1640
1641 2011-10-15  Bruno Haible  <bruno@clisp.org>
1642
1643         vasnprintf: Fix comments.
1644         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1645
1646 2011-10-14  Bruno Haible  <bruno@clisp.org>
1647
1648         Tests for module 'integer_length_ll'.
1649         * modules/integer_length_ll-tests: New file.
1650         * tests/test-integer_length_ll.c: New file.
1651
1652         New module 'integer_length_ll'.
1653         * lib/integer_length_ll.c: New file.
1654         * modules/integer_length_ll: New file.
1655
1656 2011-10-14  Bruno Haible  <bruno@clisp.org>
1657
1658         Tests for module 'integer_length_l'.
1659         * modules/integer_length_l-tests: New file.
1660         * tests/test-integer_length_l.c: New file.
1661
1662         New module 'integer_length_l'.
1663         * lib/integer_length_l.c: New file.
1664         * modules/integer_length_l: New file.
1665
1666 2011-10-14  Bruno Haible  <bruno@clisp.org>
1667
1668         Tests for module 'integer_length'.
1669         * modules/integer_length-tests: New file.
1670         * tests/test-integer_length.c: New file.
1671
1672         New module 'integer_length'.
1673         * lib/integer_length.h: New file.
1674         * lib/integer_length.c: New file.
1675         * modules/integer_length: New file.
1676
1677 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1678
1679         popen: Fix dependency conditions.
1680         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1681
1682 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1683
1684         perror: Fix autoconf test.
1685         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1686         <stdlib.h> and <string.h>.
1687
1688 2011-10-14  Bruno Haible  <bruno@clisp.org>
1689
1690         ffsl: Optimize on 64-bit platforms.
1691         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1692         unrolling.
1693
1694 2011-10-13  Bruno Haible  <bruno@clisp.org>
1695
1696         ffsl: Optimize on 32-bit platforms.
1697         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1698         use ffs() without a loop.
1699
1700         ffsl, ffsll: Optimize for GCC.
1701         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1702         * lib/ffsl.c (GCC_BUILTIN): New macro.
1703         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1704
1705 2011-10-13  Bruno Haible  <bruno@clisp.org>
1706
1707         ffs, bcopy, memset: Support symbol renaming via config.h.
1708         * lib/ffs.c: Include <config.h>.
1709         * lib/bcopy.c: Likewise.
1710         * lib/memset.c: Likewise.
1711
1712 2011-10-10  Bruno Haible  <bruno@clisp.org>
1713
1714         atanl: Simplify for platforms where 'long double' == 'double'.
1715         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1716         alternative implementation.
1717         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1718         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1719         * modules/atanl (Depends-on): Add atan. Update conditions.
1720
1721 2011-10-10  Bruno Haible  <bruno@clisp.org>
1722
1723         acosl: Simplify for platforms where 'long double' == 'double'.
1724         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1725         alternative implementation.
1726         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1727         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1728         * modules/acosl (Depends-on): Add acos. Update conditions.
1729
1730 2011-10-10  Bruno Haible  <bruno@clisp.org>
1731
1732         asinl: Simplify for platforms where 'long double' == 'double'.
1733         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1734         alternative implementation.
1735         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1736         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1737         * modules/asinl (Depends-on): Add asin. Update conditions.
1738
1739 2011-10-10  Bruno Haible  <bruno@clisp.org>
1740
1741         tanl: Simplify for platforms where 'long double' == 'double'.
1742         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1743         implementation.
1744         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1745         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1746         * modules/tanl (Depends-on): Add tan. Update conditions.
1747         (configure.ac): Don't compile trigl.c if
1748         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1749
1750 2011-10-10  Bruno Haible  <bruno@clisp.org>
1751
1752         cosl: Simplify for platforms where 'long double' == 'double'.
1753         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1754         implementation.
1755         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1756         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1757         * modules/cosl (Depends-on): Add cos. Update conditions.
1758         (configure.ac): Don't compile sincosl.c and trigl.c if
1759         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1760
1761 2011-10-10  Bruno Haible  <bruno@clisp.org>
1762
1763         sinl: Simplify for platforms where 'long double' == 'double'.
1764         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1765         implementation.
1766         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1767         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1768         * modules/sinl (Depends-on): Add sin. Update conditions.
1769         (configure.ac): Don't compile sincosl.c and trigl.c if
1770         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1771
1772 2011-10-10  Bruno Haible  <bruno@clisp.org>
1773
1774         logl: Simplify for platforms where 'long double' == 'double'.
1775         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1776         implementation.
1777         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1778         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1779         * modules/logl (Depends-on): Add log. Update conditions.
1780
1781 2011-10-10  Bruno Haible  <bruno@clisp.org>
1782
1783         expl: Simplify for platforms where 'long double' == 'double'.
1784         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1785         implementation.
1786         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1787         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1788         * modules/expl (Depends-on): Add exp. Update conditions.
1789
1790 2011-10-10  Bruno Haible  <bruno@clisp.org>
1791
1792         sqrtl: Simplify for platforms where 'long double' == 'double'.
1793         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1794         alternative implementation.
1795         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1796         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1797         * modules/sqrtl (Depends-on): Update conditions.
1798
1799 2011-10-10  Bruno Haible  <bruno@clisp.org>
1800
1801         ldexpl: Simplify for platforms where 'long double' == 'double'.
1802         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1803         alternative implementation.
1804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1805         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1806         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1807
1808 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1809
1810         ffsll: set correct witness
1811         * modules/ffsll (configure.ac): Fix typo.
1812
1813 2011-10-10  Bruno Haible  <bruno@clisp.org>
1814
1815         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1816         * lib/printf-frexpl.c: Include <config.h>.
1817         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1818         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1819         second time.
1820         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1821         gl_LONG_DOUBLE_VS_DOUBLE.
1822         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1823         conditions.
1824
1825 2011-10-10  Bruno Haible  <bruno@clisp.org>
1826
1827         frexpl: Simplify for platforms where 'long double' == 'double'.
1828         * lib/frexpl.c: Include <config.h>.
1829         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1830         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1831         time.
1832         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1833         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1834         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1835         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1836         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1837         conditions.
1838
1839 2011-10-10  Jim Meyering  <meyering@redhat.com>
1840
1841         test-renameat: don't leave behind a temporary file
1842         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1843           ERROR: files left in build directory after distclean:
1844           ./gltests/test-renameat.too
1845           make[1]: *** [distcleancheck] Error 1
1846         Reported by Tom G. Christensen.
1847
1848 2011-10-09  Bruno Haible  <bruno@clisp.org>
1849
1850         rint: Determine RINT_LIBM correctly on AIX 7.
1851         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1852         directly, not only through a function pointer. Also accept an optional
1853         4th argument with extra code.
1854         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1855         rintf() call by gcc when optimizing.
1856
1857         mathfunc.m4: Refactor.
1858         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1859         m4 variable.
1860
1861 2011-10-09  Bruno Haible  <bruno@clisp.org>
1862
1863         rintl: Simplify for platforms where 'long double' == 'double'.
1864         * lib/rintl.c: Include <config.h>.
1865         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1866         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1867         time.
1868         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1869         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1870         * modules/rintl (Depends-on): Add rint. Update conditions.
1871
1872 2011-10-09  Bruno Haible  <bruno@clisp.org>
1873
1874         roundl: Simplify for platforms where 'long double' == 'double'.
1875         * lib/roundl.c: Include <config.h>.
1876         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1877         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1878         time.
1879         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1880         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1881         * modules/roundl (Depends-on): Add round. Update conditions.
1882
1883 2011-10-09  Bruno Haible  <bruno@clisp.org>
1884
1885         truncl: Simplify for platforms where 'long double' == 'double'.
1886         * lib/truncl.c: Include <config.h>.
1887         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1888         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1889         time.
1890         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1891         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1892         * modules/truncl (Depends-on): Add trunc. Update conditions.
1893
1894 2011-10-09  Bruno Haible  <bruno@clisp.org>
1895
1896         ceill: Simplify for platforms where 'long double' == 'double'.
1897         * lib/ceill.c: Include <config.h>.
1898         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1899         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1900         time.
1901         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1902         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1903         * modules/ceill (Depends-on): Add ceil. Update conditions.
1904
1905 2011-10-09  Bruno Haible  <bruno@clisp.org>
1906
1907         floorl: Simplify for platforms where 'long double' == 'double'.
1908         * lib/floorl.c: Include <config.h>.
1909         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1910         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1911         time.
1912         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1913         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1914         * modules/floorl (Depends-on): Add floor. Update conditions.
1915
1916 2011-10-09  Bruno Haible  <bruno@clisp.org>
1917
1918         rint: Fix ordering constraints.
1919         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1920         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1921         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1922
1923 2011-10-09  Bruno Haible  <bruno@clisp.org>
1924
1925         copysignl: Simplify for platforms where 'long double' == 'double'.
1926         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1927         alternative.
1928         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1929         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1930         * modules/copysignl (Depends-on): Add copysign. Update conditions.
1931
1932 2011-10-09  Bruno Haible  <bruno@clisp.org>
1933
1934         Tests for module 'rintl'.
1935         * modules/rintl-tests: New file.
1936         * tests/test-rintl.c: New file.
1937
1938         New module 'rintl'.
1939         * lib/math.in.h (rintl): New declaration.
1940         * lib/rintl.c: New file.
1941         * m4/rintl.m4: New file.
1942         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
1943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
1944         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
1945         * modules/rintl: New file.
1946         * tests/test-math-c++.cc: Check the declaration of rintl.
1947         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1948         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
1949         * doc/posix-functions/rintl.texi: Mention the new module.
1950
1951 2011-10-09  Bruno Haible  <bruno@clisp.org>
1952
1953         Tests for module 'rintf'.
1954         * modules/rintf-tests: New file.
1955         * tests/test-rintf.c: New file.
1956
1957         New module 'rintf'.
1958         * lib/math.in.h (rintf): New declaration.
1959         * lib/rintf.c: New file.
1960         * m4/rintf.m4: New file.
1961         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
1962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
1963         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
1964         * modules/rintf: New file.
1965         * tests/test-math-c++.cc: Check the declaration of rintf.
1966         * doc/posix-functions/rintf.texi: Mention the new module.
1967
1968 2011-10-09  Bruno Haible  <bruno@clisp.org>
1969
1970         rint: Support for MSVC.
1971         * lib/math.in.h (rint): New declaration.
1972         * lib/rint.c: New file.
1973         * m4/rint.m4: New file.
1974         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
1975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
1976         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
1977         * modules/rint (Description): Fix.
1978         (Files): Add lib/rint.c, m4/rint.m4.
1979         (Depends-on): Add math.
1980         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
1981         gl_MATH_MODULE_INDICATOR.
1982         * tests/test-math-c++.cc: Check the declaration of rint.
1983         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
1984         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
1985         * doc/posix-functions/rint.texi: Mention the replacement provided by
1986         the module.
1987
1988         rint tests: More tests.
1989         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
1990         minus-zero.h, infinity.h, nan.h.
1991         (main): Skip the test if the current rounding mode is not standard. Add
1992         tests for negative numbers, minus zero, infinity, NaN.
1993         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
1994         tests/nan.h.
1995         (Depends-on): Add isnand-nolibm.
1996
1997 2011-10-09  Bruno Haible  <bruno@clisp.org>
1998
1999         Tests for module 'copysignl'.
2000         * modules/copysignl-tests: New file.
2001         * tests/test-copysignl.c: New file.
2002
2003         New module 'copysignl'.
2004         * lib/math.in.h (copysignl): New declaration.
2005         * lib/copysignl.c: New file.
2006         * m4/copysignl.m4: New file.
2007         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2009         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2010         HAVE_COPYSIGNL.
2011         * modules/copysignl: New file.
2012         * tests/test-math-c++.cc: Check the declaration of copysignl.
2013         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2014         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2015         * doc/posix-functions/copysignl.texi: Mention the new module.
2016
2017 2011-10-09  Bruno Haible  <bruno@clisp.org>
2018
2019         Tests for module 'copysignf'.
2020         * modules/copysignf-tests: New file.
2021         * tests/test-copysignf.c: New file.
2022
2023         New module 'copysignf'.
2024         * lib/math.in.h (copysignf): New declaration.
2025         * lib/copysignf.c: New file.
2026         * m4/copysignf.m4: New file.
2027         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2029         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2030         HAVE_COPYSIGNF.
2031         * modules/copysignf: New file.
2032         * tests/test-math-c++.cc: Check the declaration of copysignf.
2033         * doc/posix-functions/copysignf.texi: Mention the new module.
2034
2035 2011-10-09  Bruno Haible  <bruno@clisp.org>
2036
2037         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2038         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2039         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2040         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2041         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2042         gl_SIGNAL_H_DEFAULTS.
2043
2044 2011-10-09  Bruno Haible  <bruno@clisp.org>
2045
2046         poll: Make macro safer.
2047         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2048         ac_cv_header_poll_h is not set.
2049
2050 2011-10-09  Bruno Haible  <bruno@clisp.org>
2051
2052         copysign: Provide replacement.
2053         * lib/math.in.h (copysign): New declaration.
2054         * lib/copysign.c: New file.
2055         * m4/copysign.m4: New file.
2056         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2058         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2059         HAVE_COPYSIGN.
2060         * modules/copysign (Description): Clarify.
2061         (Files): Add lib/copysign.c, m4/copysign.m4.
2062         (Depends-on): Add math, signbit.
2063         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2064         gl_MATH_MODULE_INDICATOR.
2065         * tests/test-math-c++.cc: Check the declaration of copysign.
2066         * doc/posix-functions/copysign.texi: Mention the effects of the module
2067         on Minix and MSVC.
2068
2069 2011-10-09  Bruno Haible  <bruno@clisp.org>
2070
2071         isinf: Ensure macro on AIX 5.1.
2072         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2073         macro.
2074         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2075
2076 2011-10-09  Bruno Haible  <bruno@clisp.org>
2077
2078         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2079         * modules/snprintf-posix-tests (configure.ac): Require
2080         gl_LONG_DOUBLE_VS_DOUBLE.
2081         * modules/sprintf-posix-tests (configure.ac): Likewise.
2082         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2083         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2084         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2085         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2086         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2087         tests on platforms where 'long double' is the same as 'double'.
2088         * tests/test-sprintf-posix.h (test_function): Likewise.
2089         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2090         * tests/test-vasprintf-posix.c (test_function): Likewise.
2091
2092         *printf: Fix for platforms where 'long double' == 'double'.
2093         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2094         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2095         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2096         * modules/fprintf-posix (Files): Likewise.
2097         * modules/obstack-printf-posix (Files): Likewise.
2098         * modules/snprintf-posix (Files): Likewise.
2099         * modules/sprintf-posix (Files): Likewise.
2100         * modules/vasnprintf (Files): Likewise.
2101         * modules/vasnprintf-posix (Files): Likewise.
2102         * modules/vasprintf-posix (Files): Likewise.
2103         * modules/vdprintf-posix (Files): Likewise.
2104         * modules/vfprintf-posix (Files): Likewise.
2105         * modules/vsnprintf-posix (Files): Likewise.
2106         * modules/vsprintf-posix (Files): Likewise.
2107         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2108         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2109         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2110         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2111         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2112         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2113         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2114
2115         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2116         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2117         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2118         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2119         'long double'.
2120         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2121
2122         isinf: Fix for platforms where 'long double' == 'double'.
2123         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2124         Don't blindly assume 80-bit 'long double'.
2125
2126         isfinite: Fix for platforms where 'long double' == 'double'.
2127         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2128         Don't blindly assume 80-bit 'long double'.
2129
2130         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2131         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2132         * modules/isfinite-tests (configure.ac): Require
2133         gl_LONG_DOUBLE_VS_DOUBLE.
2134         * modules/isinf-tests (configure.ac): Likewise.
2135         * modules/isnan-tests (configure.ac): Likewise.
2136         * modules/isnanl-tests (configure.ac): Likewise.
2137         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2138         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2139         tests on platforms where 'long double' is the same as 'double'.
2140         * tests/test-isinf.c (test_isinfl): Likewise.
2141         * tests/test-isnan.c (test_long_double): Likewise.
2142         * tests/test-isnanl.h (main): Likewise.
2143
2144 2011-10-08  Bruno Haible  <bruno@clisp.org>
2145
2146         Tests for module 'tanhf'.
2147         * modules/tanhf-tests: New file.
2148         * tests/test-tanhf.c: New file.
2149
2150         New module 'tanhf'.
2151         * lib/math.in.h (tanhf): New declaration.
2152         * lib/tanhf.c: New file.
2153         * m4/tanhf.m4: New file.
2154         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2156         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2157         * modules/tanhf: New file.
2158         * tests/test-math-c++.cc: Check the declaration of tanhf.
2159         * doc/posix-functions/tanhf.texi: Mention the new module.
2160
2161         tanh: Use a .m4 file.
2162         * m4/tanh.m4: New file.
2163         * modules/tanh (Files): Add it.
2164         (configure.ac): Just invoke gl_FUNC_TANH.
2165
2166 2011-10-08  Bruno Haible  <bruno@clisp.org>
2167
2168         Tests for module 'coshf'.
2169         * modules/coshf-tests: New file.
2170         * tests/test-coshf.c: New file.
2171
2172         New module 'coshf'.
2173         * lib/math.in.h (coshf): New declaration.
2174         * lib/coshf.c: New file.
2175         * m4/coshf.m4: New file.
2176         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2178         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2179         * modules/coshf: New file.
2180         * tests/test-math-c++.cc: Check the declaration of coshf.
2181         * doc/posix-functions/coshf.texi: Mention the new module.
2182
2183         cosh: Use a .m4 file.
2184         * m4/cosh.m4: New file.
2185         * modules/cosh (Files): Add it.
2186         (configure.ac): Just invoke gl_FUNC_COSH.
2187
2188 2011-10-08  Bruno Haible  <bruno@clisp.org>
2189
2190         Tests for module 'sinhf'.
2191         * modules/sinhf-tests: New file.
2192         * tests/test-sinhf.c: New file.
2193
2194         New module 'sinhf'.
2195         * lib/math.in.h (sinhf): New declaration.
2196         * lib/sinhf.c: New file.
2197         * m4/sinhf.m4: New file.
2198         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2200         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2201         * modules/sinhf: New file.
2202         * tests/test-math-c++.cc: Check the declaration of sinhf.
2203         * doc/posix-functions/sinhf.texi: Mention the new module.
2204
2205         sinh: Use a .m4 file.
2206         * m4/sinh.m4: New file.
2207         * modules/sinh (Files): Add it.
2208         (configure.ac): Just invoke gl_FUNC_SINH.
2209
2210 2011-10-08  Bruno Haible  <bruno@clisp.org>
2211
2212         Tests for module 'atan2f'.
2213         * modules/atan2f-tests: New file.
2214         * tests/test-atan2f.c: New file.
2215
2216         New module 'atan2f'.
2217         * lib/math.in.h (atan2f): New declaration.
2218         * lib/atan2f.c: New file.
2219         * m4/atan2f.m4: New file.
2220         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2222         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2223         * modules/atan2f: New file.
2224         * tests/test-math-c++.cc: Check the declaration of atan2f.
2225         * doc/posix-functions/atan2f.texi: Mention the new module.
2226
2227         atan2: Use a .m4 file.
2228         * m4/atan2.m4: New file.
2229         * modules/atan2 (Files): Add it.
2230         (configure.ac): Just invoke gl_FUNC_ATAN2.
2231
2232 2011-10-08  Bruno Haible  <bruno@clisp.org>
2233
2234         Tests for module 'atanf'.
2235         * modules/atanf-tests: New file.
2236         * tests/test-atanf.c: New file.
2237
2238         New module 'atanf'.
2239         * lib/math.in.h (atanf): New declaration.
2240         * lib/atanf.c: New file.
2241         * m4/atanf.m4: New file.
2242         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2244         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2245         * modules/atanf: New file.
2246         * tests/test-math-c++.cc: Check the declaration of atanf.
2247         * doc/posix-functions/atanf.texi: Mention the new module.
2248
2249         atan: Use a .m4 file.
2250         * m4/atan.m4: New file.
2251         * modules/atan (Files): Add it.
2252         (configure.ac): Just invoke gl_FUNC_ATAN.
2253
2254 2011-10-08  Bruno Haible  <bruno@clisp.org>
2255
2256         Tests for module 'acosf'.
2257         * modules/acosf-tests: New file.
2258         * tests/test-acosf.c: New file.
2259
2260         New module 'acosf'.
2261         * lib/math.in.h (acosf): New declaration.
2262         * lib/acosf.c: New file.
2263         * m4/acosf.m4: New file.
2264         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2266         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2267         * modules/acosf: New file.
2268         * tests/test-math-c++.cc: Check the declaration of acosf.
2269         * doc/posix-functions/acosf.texi: Mention the new module.
2270
2271         acos: Use a .m4 file.
2272         * m4/acos.m4: New file.
2273         * modules/acos (Files): Add it.
2274         (configure.ac): Just invoke gl_FUNC_ACOS.
2275
2276 2011-10-08  Bruno Haible  <bruno@clisp.org>
2277
2278         Tests for module 'asinf'.
2279         * modules/asinf-tests: New file.
2280         * tests/test-asinf.c: New file.
2281
2282         New module 'asinf'.
2283         * lib/math.in.h (asinf): New declaration.
2284         * lib/asinf.c: New file.
2285         * m4/asinf.m4: New file.
2286         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2288         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2289         * modules/asinf: New file.
2290         * tests/test-math-c++.cc: Check the declaration of asinf.
2291         * doc/posix-functions/asinf.texi: Mention the new module.
2292
2293         asin: Use a .m4 file.
2294         * m4/asin.m4: New file.
2295         * modules/asin (Files): Add it.
2296         (configure.ac): Just invoke gl_FUNC_ASIN.
2297
2298 2011-10-08  Bruno Haible  <bruno@clisp.org>
2299
2300         Tests for module 'tanf'.
2301         * modules/tanf-tests: New file.
2302         * tests/test-tanf.c: New file.
2303
2304         New module 'tanf'.
2305         * lib/math.in.h (tanf): New declaration.
2306         * lib/tanf.c: New file.
2307         * m4/tanf.m4: New file.
2308         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2309         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2310         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2311         * modules/tanf: New file.
2312         * tests/test-math-c++.cc: Check the declaration of tanf.
2313         * doc/posix-functions/tanf.texi: Mention the new module.
2314
2315         tan: Use a .m4 file.
2316         * m4/tan.m4: New file.
2317         * modules/tan (Files): Add it.
2318         (configure.ac): Just invoke gl_FUNC_TAN.
2319
2320 2011-10-08  Bruno Haible  <bruno@clisp.org>
2321
2322         Tests for module 'cosf'.
2323         * modules/cosf-tests: New file.
2324         * tests/test-cosf.c: New file.
2325
2326         New module 'cosf'.
2327         * lib/math.in.h (cosf): New declaration.
2328         * lib/cosf.c: New file.
2329         * m4/cosf.m4: New file.
2330         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2332         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2333         * modules/cosf: New file.
2334         * tests/test-math-c++.cc: Check the declaration of cosf.
2335         * doc/posix-functions/cosf.texi: Mention the new module.
2336
2337         cos: Use a .m4 file.
2338         * m4/cos.m4: New file.
2339         * modules/cos (Files): Add it.
2340         (configure.ac): Just invoke gl_FUNC_COS.
2341
2342 2011-10-08  Bruno Haible  <bruno@clisp.org>
2343
2344         Tests for module 'sinf'.
2345         * modules/sinf-tests: New file.
2346         * tests/test-sinf.c: New file.
2347
2348         New module 'sinf'.
2349         * lib/math.in.h (sinf): New declaration.
2350         * lib/sinf.c: New file.
2351         * m4/sinf.m4: New file.
2352         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2354         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2355         * modules/sinf: New file.
2356         * tests/test-math-c++.cc: Check the declaration of sinf.
2357         * doc/posix-functions/sinf.texi: Mention the new module.
2358
2359         sin: Use a .m4 file.
2360         * m4/sin.m4: New file.
2361         * modules/sin (Files): Add it.
2362         (configure.ac): Just invoke gl_FUNC_SIN.
2363
2364 2011-10-08  Bruno Haible  <bruno@clisp.org>
2365
2366         Tests for module 'powf'.
2367         * modules/powf-tests: New file.
2368         * tests/test-powf.c: New file.
2369
2370         New module 'powf'.
2371         * lib/math.in.h (powf): New declaration.
2372         * lib/powf.c: New file.
2373         * m4/powf.m4: New file.
2374         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2376         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2377         * modules/powf: New file.
2378         * tests/test-math-c++.cc: Check the declaration of powf.
2379         * doc/posix-functions/powf.texi: Mention the new module.
2380
2381         pow: Use a .m4 file.
2382         * m4/pow.m4: New file.
2383         * modules/pow (Files): Add it.
2384         (configure.ac): Just invoke gl_FUNC_POW.
2385
2386 2011-10-08  Bruno Haible  <bruno@clisp.org>
2387
2388         Tests for module 'log10f'.
2389         * modules/log10f-tests: New file.
2390         * tests/test-log10f.c: New file.
2391
2392         New module 'log10f'.
2393         * lib/math.in.h (log10f): New declaration.
2394         * lib/log10f.c: New file.
2395         * m4/log10f.m4: New file.
2396         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2398         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2399         * modules/log10f: New file.
2400         * tests/test-math-c++.cc: Check the declaration of log10f.
2401         * doc/posix-functions/log10f.texi: Mention the new module.
2402
2403         log10: Use a .m4 file.
2404         * m4/log10.m4: New file.
2405         * modules/log10 (Files): Add it.
2406         (configure.ac): Just invoke gl_FUNC_LOG10.
2407
2408 2011-10-08  Bruno Haible  <bruno@clisp.org>
2409
2410         Tests for module 'logf'.
2411         * modules/logf-tests: New file.
2412         * tests/test-logf.c: New file.
2413
2414         New module 'logf'.
2415         * lib/math.in.h (logf): New declaration.
2416         * lib/logf.c: New file.
2417         * m4/logf.m4: New file.
2418         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2419         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2420         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2421         * modules/logf: New file.
2422         * tests/test-math-c++.cc: Check the declaration of logf.
2423         * doc/posix-functions/logf.texi: Mention the new module.
2424
2425         log: Use a .m4 file.
2426         * m4/log.m4: New file.
2427         * modules/log (Files): Add it.
2428         (configure.ac): Just invoke gl_FUNC_LOG.
2429
2430 2011-10-08  Bruno Haible  <bruno@clisp.org>
2431
2432         Tests for module 'expf'.
2433         * modules/expf-tests: New file.
2434         * tests/test-expf.c: New file.
2435
2436         New module 'expf'.
2437         * lib/math.in.h (expf): New declaration.
2438         * lib/expf.c: New file.
2439         * m4/expf.m4: New file.
2440         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2442         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2443         * modules/expf: New file.
2444         * tests/test-math-c++.cc: Check the declaration of expf.
2445         * doc/posix-functions/expf.texi: Mention the new module.
2446
2447         exp: Use a .m4 file.
2448         * m4/exp.m4: New file.
2449         * modules/exp (Files): Add it.
2450         (configure.ac): Just invoke gl_FUNC_EXP.
2451
2452 2011-10-08  Bruno Haible  <bruno@clisp.org>
2453
2454         Tests for module 'sqrtf'.
2455         * modules/sqrtf-tests: New file.
2456         * tests/test-sqrtf.c: New file.
2457
2458         New module 'sqrtf'.
2459         * lib/math.in.h (sqrtf): New declaration.
2460         * lib/sqrtf.c: New file.
2461         * m4/sqrtf.m4: New file.
2462         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2464         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2465         * modules/sqrtf: New file.
2466         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2467         * doc/posix-functions/sqrtf.texi: Mention the new module.
2468
2469 2011-10-08  Bruno Haible  <bruno@clisp.org>
2470
2471         Tests: Avoid link failures w.r.t. libintl.
2472         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2473         $(LIBINTL).
2474         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2475         $(LIBINTL).
2476         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2477         against $(LIBINTL).
2478         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2479         $(LIBINTL).
2480         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2481         $(LIBINTL).
2482         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2483
2484 2011-10-08  Bruno Haible  <bruno@clisp.org>
2485
2486         pow tests: Defeat compiler optimizations.
2487         * tests/test-pow.c (main): Assign arguments to x and y before use.
2488
2489 2011-10-08  Bruno Haible  <bruno@clisp.org>
2490
2491         gnulib-tool: Improve last commit.
2492         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2493         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2494         ignore dependencies that are not among the modules list.
2495
2496 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2497
2498         gnulib-tool: don't follow dependencies to avoided modules
2499         This fixes a bug that is related to the previous one.
2500         * gnulib-tool (func_modules_transitive_closure)
2501         (func_emit_autoconf_snippets):
2502         Check whether a dependency is acceptable before using it.
2503         (--extract-dependencies): Report an error if --avoid is also used,
2504         since this combination of options is not yet supported.
2505
2506         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2507         Problem reported by Peter Dyballa in
2508         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2509         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2510         when echoing "$condition".
2511
2512 2011-10-07  Bruno Haible  <bruno@clisp.org>
2513
2514         Fix documentation about math functions on MacOS X.
2515         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2516         MacOS X 10.5.
2517         * doc/posix-functions/fdim.texi: Likewise.
2518         * doc/posix-functions/feclearexcept.texi: Likewise.
2519         * doc/posix-functions/fegetenv.texi: Likewise.
2520         * doc/posix-functions/fegetround.texi: Likewise.
2521         * doc/posix-functions/feholdexcept.texi: Likewise.
2522         * doc/posix-functions/feraiseexcept.texi: Likewise.
2523         * doc/posix-functions/fesetenv.texi: Likewise.
2524         * doc/posix-functions/fesetround.texi: Likewise.
2525         * doc/posix-functions/fetestexcept.texi: Likewise.
2526         * doc/posix-functions/feupdateenv.texi: Likewise.
2527         * doc/posix-functions/fmax.texi: Likewise.
2528         * doc/posix-functions/fmin.texi: Likewise.
2529         * doc/posix-functions/log2.texi: Likewise.
2530         * doc/posix-functions/modff.texi: Likewise.
2531         * doc/posix-functions/nan.texi: Likewise.
2532         * doc/posix-functions/nanf.texi: Likewise.
2533         * doc/posix-functions/nextafterf.texi: Likewise.
2534         * doc/posix-functions/remquo.texi: Likewise.
2535
2536 2011-10-07  Bruno Haible  <bruno@clisp.org>
2537
2538         modff: Drop assumption about library that defines modff.
2539         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2540         AC_CHECK_FUNCS.
2541         * modules/modff (Files): Add m4/mathfunc.m4.
2542
2543 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2544
2545         raise tests: Avoid a GCC warning.
2546         * tests/test-raise.c (handler): Use _Noreturn.
2547
2548 2011-10-07  Bruno Haible  <bruno@clisp.org>
2549
2550         Tests for module 'ldexpf'.
2551         * modules/ldexpf-tests: New file.
2552         * tests/test-ldexpf.c: New file.
2553
2554         New module 'ldexpf'.
2555         * lib/math.in.h (ldexpf): New declaration.
2556         * lib/ldexpf.c: New file.
2557         * m4/ldexpf.m4: New file.
2558         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2560         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2561         * modules/ldexpf: New file.
2562         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2563         * doc/posix-functions/ldexpf.texi: Mention the new module.
2564
2565 2011-10-06  Bruno Haible  <bruno@clisp.org>
2566
2567         frexpf: Work around problems on IRIX and mingw.
2568         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2570         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2571         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2572         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2573         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2574         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2575
2576 2011-10-06  Bruno Haible  <bruno@clisp.org>
2577
2578         fabsf: Drop assumption about library that defines fabsf.
2579         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2580         AC_CHECK_FUNCS.
2581         * modules/fabsf (Files): Add m4/mathfunc.m4.
2582
2583 2011-10-06  Bruno Haible  <bruno@clisp.org>
2584
2585         frexpf: Drop assumption about library that defines frexpf.
2586         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2587         'int *', 'float *', 'long double *', 'float', 'long double'.
2588         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2589         AC_CHECK_FUNCS.
2590         * modules/frexpf (Files): Add m4/mathfunc.m4.
2591
2592         Tests for module 'frexpf'.
2593         * modules/frexpf-tests: New file.
2594         * tests/test-frexpf.c: New file.
2595
2596         New module 'frexpf'.
2597         * lib/math.in.h (frexpf): New declaration.
2598         * lib/frexpf.c: New file.
2599         * m4/frexpf.m4: New file.
2600         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2602         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2603         * modules/frexpf: New file.
2604         * tests/test-math-c++.cc: Check the declaration of frexpf.
2605         * doc/posix-functions/frexpf.texi: Mention the new module.
2606
2607 2011-10-06  Bruno Haible  <bruno@clisp.org>
2608
2609         math: Sort function declarations of math.in.h.
2610         * lib/math.in.h (frexp, logb): Move declarations.
2611
2612 2011-10-05  Bruno Haible  <bruno@clisp.org>
2613
2614         Tests for module 'modff'.
2615         * modules/modff-tests: New file.
2616         * tests/test-modff.c: New file.
2617
2618         New module 'modff'.
2619         * lib/math.in.h (modff): New declaration.
2620         * lib/modff.c: New file.
2621         * m4/modff.m4: New file.
2622         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2624         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2625         * modules/modff: New file.
2626         * tests/test-math-c++.cc: Check the declaration of modff.
2627         * doc/posix-functions/modff.texi: Mention the new module.
2628
2629         modf tests: Make test sharper.
2630         * tests/test-modf.c (main): Strengthen upper bound.
2631
2632         modf: Use a .m4 file.
2633         * m4/modf.m4: New file.
2634         * modules/modf (Files): Add it.
2635         (configure.ac): Just invoke gl_FUNC_MODF.
2636
2637 2011-10-05  Bruno Haible  <bruno@clisp.org>
2638
2639         Tests for module 'fmodf'.
2640         * modules/fmodf-tests: New file.
2641         * tests/test-fmodf.c: New file.
2642
2643         New module 'fmodf'.
2644         * lib/math.in.h (fmodf): New declaration.
2645         * lib/fmodf.c: New file.
2646         * m4/fmodf.m4: New file.
2647         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2649         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2650         * modules/fmodf: New file.
2651         * tests/test-math-c++.cc: Check the declaration of fmodf.
2652         * doc/posix-functions/fmodf.texi: Mention the new module.
2653
2654         fmod: Use a .m4 file.
2655         * m4/fmod.m4: New file.
2656         * modules/fmod (Files): Add it.
2657         (configure.ac): Just invoke gl_FUNC_FMOD.
2658
2659 2011-10-05  Bruno Haible  <bruno@clisp.org>
2660
2661         Tests for module 'fabsf'.
2662         * modules/fabsf-tests: New file.
2663         * tests/test-fabsf.c: New file.
2664
2665         New module 'fabsf'.
2666         * lib/math.in.h (fabsf): New declaration.
2667         * lib/fabsf.c: New file.
2668         * m4/fabsf.m4: New file.
2669         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2671         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2672         * modules/fabsf: New file.
2673         * tests/test-math-c++.cc: Check the declaration of fabsf.
2674         * doc/posix-functions/fabsf.texi: Mention the new module.
2675
2676         fabs: Use a .m4 file.
2677         * m4/fabs.m4: New file.
2678         * modules/fabs (Files): Add it.
2679         (configure.ac): Just invoke gl_FUNC_FABS.
2680
2681 2011-10-05  Jim Meyering  <meyering@redhat.com>
2682
2683         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2684         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2685         ls -lL regression introduced in coreutils-8.12, it does so at the
2686         cost of an additional stat call in the common case.  Besides, now
2687         that the kernel change that prompted commit 95f7c57f has been reverted
2688         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2689         we have no use for commit 95f7c57f, "file-has-acl: use
2690         acl_extended_file_nofollow if available".
2691
2692 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2693
2694         file-has-acl: revert unintended change in behavior of ls -L
2695         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2696         derived from...
2697         (file_has_acl): ...code here.  Call it.
2698         This problem was introduced with 2011-07-22 commit 95f7c57f,
2699         "file-has-acl: use acl_extended_file_nofollow if available".
2700         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2701
2702 2011-10-03  Bruno Haible  <bruno@clisp.org>
2703
2704         poll: Avoid link errors on MSVC.
2705         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2706         * modules/poll (Depends-on): Add sockets.
2707         (Link): New section.
2708         * NEWS: Mention the change.
2709         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2710         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2711         $(LIB_POLL) instead of $(LIBSOCKET).
2712
2713 2011-10-03  Bruno Haible  <bruno@clisp.org>
2714
2715         sys_select tests: Fix link error on MSVC 9.
2716         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2717         with $(LIB_SELECT) instead of $(LIBSOCKET).
2718
2719 2011-10-03  Bruno Haible  <bruno@clisp.org>
2720
2721         sys_select: Fix compilation error on mingw.
2722         * lib/sys_select.in.h: On native Windows, include <io.h>.
2723
2724 2011-10-03  Bruno Haible  <bruno@clisp.org>
2725
2726         wmemset: Support for MSVC.
2727         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2728         whether wmemset() exists.
2729
2730 2011-10-03  Bruno Haible  <bruno@clisp.org>
2731
2732         wmemmove: Support for MSVC.
2733         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2734         whether wmemmove() exists.
2735
2736 2011-10-03  Bruno Haible  <bruno@clisp.org>
2737
2738         wmemcpy: Support for MSVC.
2739         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2740         whether wmemcpy() exists.
2741
2742 2011-10-03  Bruno Haible  <bruno@clisp.org>
2743
2744         wmemcmp: Support for MSVC.
2745         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2746         whether wmemcmp() exists.
2747
2748 2011-10-03  Bruno Haible  <bruno@clisp.org>
2749
2750         wmemchr: Support for MSVC.
2751         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2752         whether wmemchr() exists.
2753
2754 2011-10-03  Bruno Haible  <bruno@clisp.org>
2755
2756         glthread/*, strsignal: Support for MSVC.
2757         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2758         including <winsock.h> on MSVC 9.
2759         * lib/glthread/lock.h: Likewise.
2760         * lib/glthread/thread.h: Likewise.
2761         * lib/glthread/tls.h: Likewise.
2762         * lib/glthread/yield.h: Likewise.
2763         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2764         if HAVE_UNISTD_H is false.
2765         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2766
2767 2011-10-03  Bruno Haible  <bruno@clisp.org>
2768
2769         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2770         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2771         Set to 100000.
2772
2773 2011-10-03  Bruno Haible  <bruno@clisp.org>
2774
2775         acl: Fix specification.
2776         * lib/file-has-acl.c (file_has_acl): Fix specification.
2777
2778 2011-10-03  Bruno Haible  <bruno@clisp.org>
2779
2780         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2781         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2782         (compute_curr_prefix, shared_library_fullname,
2783         find_shared_library_fullname, get_shared_library_fullname, relocate):
2784         Use it together with PIC && INSTALLDIR.
2785         Reported by <jojelino@gmail.com>
2786         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2787
2788 2011-10-01  Jim Meyering  <meyering@redhat.com>
2789
2790         maint.mk: adjust a release-related rule not to require use of gzip
2791         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2792         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2793         projects that build only .tar.xz files.  Also fix an erroneous test.
2794
2795         test-linkat: don't leave behind a temporary file
2796         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2797         Otherwise, coreutils' "make distcheck" would fail with this:
2798           Only in /c/cu/tests/torture/coreutils/test/\
2799             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2800           make[2]: *** [my-distcheck] Error 1
2801
2802         float, math: add omitted file
2803         * lib/itold.c: Add file, required for yesterday's float change.
2804
2805 2011-10-01  Bruno Haible  <bruno@clisp.org>
2806
2807         isinf: Fix for OpenBSD/x86.
2808         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2809         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2810         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2811
2812 2011-10-01  Bruno Haible  <bruno@clisp.org>
2813
2814         isfinite: Fix syntax error in configure test.
2815         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2816
2817         isfinite: Fix typo.
2818         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2819         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2820
2821 2011-10-01  Bruno Haible  <bruno@clisp.org>
2822
2823         nonblocking tests: Fix test failure on Linux/IA-64.
2824         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2825         Set to 270000.
2826
2827 2011-10-01  Bruno Haible  <bruno@clisp.org>
2828
2829         mkfifoat tests: Fix a test failure on mingw.
2830         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2831         with error ENOSYS.
2832
2833 2011-09-30  Bruno Haible  <bruno@clisp.org>
2834
2835         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2836         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2837         'long double'. Set REPLACE_ITOLD.
2838         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2839         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2840         * lib/itold.c: New file.
2841         * modules/float (Files): Add lib/itold.c.
2842         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2843         (Makefile.am): Substitute REPLACE_ITOLD.
2844         * modules/math (Depends-on): Add float.
2845         (Makefile.am): Substitute REPLACE_ITOLD.
2846         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2847         * doc/posix-headers/math.texi: Likewise.
2848         * doc/posix-functions/logl.texi: Likewise.
2849
2850 2011-09-30  Bruno Haible  <bruno@clisp.org>
2851
2852         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2853         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2854         Set to 140000.
2855
2856 2011-09-30  Bruno Haible  <bruno@clisp.org>
2857
2858         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2859         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2860         invocation, say "right after AC_PROG_CC_STDC", not "right after
2861         AC_PROG_CC".
2862         Reported by Gary V. Vaughan <gary@gnu.org>.
2863
2864 2011-09-30  Bruno Haible  <bruno@clisp.org>
2865
2866         Centralize C99 requirement.
2867         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2868         * modules/stdarg (configure.ac-early): Invoke it instead of
2869         AC_PROG_CC_STDC.
2870         Reported by Gary V. Vaughan and Paul Eggert.
2871
2872 2011-09-29  Bruno Haible  <bruno@clisp.org>
2873
2874         float: Fix LDBL_MAX value on Linux/PowerPC.
2875         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2876         on Linux/PowerPC.
2877         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2878         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2879         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2880         platform.
2881         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2882
2883 2011-09-29  Bruno Haible  <bruno@clisp.org>
2884
2885         doc: Improve doc about gl_EARLY.
2886         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2887         AC_PROG_CC_STDC invocation.
2888         Reported by Gary V. Vaughan <gary@gnu.org>.
2889
2890 2011-09-28  Bruno Haible  <bruno@clisp.org>
2891
2892         fgetc, fputc, fread, fwrite tests: Fix link error.
2893         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2894         on non-MSVC platforms.
2895         * tests/test-fputc.c (main): Likewise.
2896         * tests/test-fread.c (main): Likewise.
2897         * tests/test-fwrite.c (main): Likewise.
2898         Reported by Jim Meyering.
2899
2900 2011-09-27  Bruno Haible  <bruno@clisp.org>
2901
2902         fputc, fwrite tests: Avoid test failure on MSVC.
2903         * tests/test-fgetc.c: Include msvc-inval.h.
2904         (main): Invoke gl_msvc_inval_ensure_handler.
2905         * tests/test-fputc.c: Include msvc-inval.h.
2906         (main): Invoke gl_msvc_inval_ensure_handler.
2907         * tests/test-fread.c: Include msvc-inval.h.
2908         (main): Invoke gl_msvc_inval_ensure_handler.
2909         * tests/test-fwrite.c: Include msvc-inval.h.
2910         (main): Invoke gl_msvc_inval_ensure_handler.
2911         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2912         * modules/fputc-tests (Depends-on): Likewise.
2913         * modules/fread-tests (Depends-on): Likewise.
2914         * modules/fwrite-tests (Depends-on): Likewise.
2915
2916 2011-09-27  Bruno Haible  <bruno@clisp.org>
2917
2918         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2919         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2920         (raise): Remove older, duplicated declaration.
2921         (_gl_raise_SIGPIPE): New declaration.
2922         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2923         (rpl_raise): Remove function.
2924         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2925         a gnulib-defined SIGPIPE here.
2926         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2927         'sigprocmask' has detected missing signal-blocking and the module
2928         'sigpipe' is enabled.
2929         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2930
2931 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
2932
2933         base64-tests: avoid memory leak
2934         * tests/test-base64.c (main): Plug memory leak.
2935
2936         base32: new module
2937         * modules/base32: New module.
2938         * lib/base32.c: New file.
2939         * lib/base32.h: Likewise.
2940         * m4/base32.m4: Likewise.
2941         * modules/base32-tests: New test.
2942         * tests/test-base32.c: Likewise.
2943         * MODULES.html.sh (Misc): Mention it.
2944
2945 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
2946
2947         gnulib: use more-standard license notice wording
2948         * gnulib-tool (func_emit_copyright_notice): When emitting a
2949         license notice into a file, use the standard wording as suggested
2950         by the current information for GNU maintainers, except say "file"
2951         rather than "program".  The new wording gives a license version
2952         number, which addresses an issue raised by Glenn Morris in
2953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
2954         * m4/onceonly.m4: Use that same wording here, too.
2955
2956         dup2: minor simplification
2957         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
2958         as lib/dup2.c no longer uses 'inline'.
2959
2960 2011-09-25  Bruno Haible  <bruno@clisp.org>
2961
2962         strings: Fix compilation error on MSVC.
2963         * lib/strings.in.h: Include <stddef.h> for size_t.
2964
2965 2011-09-25  Bruno Haible  <bruno@clisp.org>
2966
2967         fflush et al.: Document limitation on MSVC.
2968         * doc/posix-functions/fflush.texi: Document possible crash in handling
2969         mode other than DEFAULT_HANDLING.
2970         * doc/posix-functions/fgetc.texi: Likewise.
2971         * doc/posix-functions/fputc.texi: Likewise.
2972         * doc/posix-functions/fread.texi: Likewise.
2973         * doc/posix-functions/fwrite.texi: Likewise.
2974
2975 2011-09-25  Bruno Haible  <bruno@clisp.org>
2976
2977         msvc-inval: Allow three invalid parameter handling modes.
2978         * lib/msvc-inval.h: Don't include <stdlib.h> here.
2979         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
2980         macros.
2981         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
2982         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
2983         SANE_LIBRARY_HANDLING as a no-op.
2984         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
2985         <stdlib.h>.
2986         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
2987
2988 2011-09-25  Bruno Haible  <bruno@clisp.org>
2989
2990         msvc-inval: Make handler multithread-safe.
2991         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
2992         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
2993         declarations.
2994         (gl_msvc_inval_current): New declaration.
2995         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
2996         Operate on the structure returned by gl_msvc_inval_current().
2997         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
2998         Remove varaiables.
2999         (tls_index, tls_initialized): New variables.
3000         (not_per_thread): New variable.
3001         (gl_msvc_inval_current): New function.
3002         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3003         returned by gl_msvc_inval_current().
3004
3005 2011-09-25  Bruno Haible  <bruno@clisp.org>
3006
3007         msvc-inval: Install handler globally.
3008         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3009         !_MSC_VER.
3010         (gl_msvc_invalid_parameter_handler): Remove declaration.
3011         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3012         declarations.
3013         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3014         Install the handler globally, don't uninstall it.
3015         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3016         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3017         currently valid, call RaiseException instead.
3018         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3019         for !_MSC_VER.
3020
3021 2011-09-25  Bruno Haible  <bruno@clisp.org>
3022
3023         strerror_r-posix: Fix for MSVC 9.
3024         * lib/strerror_r.c (local_snprintf): New function.
3025         (snprintf): Define to local_snprintf, not to _snprintf.
3026
3027 2011-09-25  Bruno Haible  <bruno@clisp.org>
3028
3029         ftruncate: Support for MSVC 9.
3030         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3031         (chsize_nothrow): New function.
3032         (chsize): Redefine as a macro.
3033         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3034         * modules/ftruncate (Depends-on): Add msvc-inval.
3035
3036 2011-09-25  Bruno Haible  <bruno@clisp.org>
3037
3038         New module 'fstat'.
3039         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3040         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3041         * lib/fchdir.c (rpl_fstat): Remove function.
3042         * m4/fstat.m4: New file.
3043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3044         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3045         declared.
3046         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3047         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3048         * modules/fstat: New file.
3049         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3050         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3051         is set.
3052         * doc/posix-functions/fstat.texi: Mention the new module and the
3053         problem on MSVC.
3054         * NEWS: Mention the change.
3055         * modules/acl (Depends-on): Add fstat.
3056         * modules/chdir-safer (Depends-on): Likewise.
3057         * modules/chown (Depends-on): Likewise.
3058         * modules/copy-file (Depends-on): Likewise.
3059         * modules/fchdir (Depends-on): Likewise.
3060         * modules/fdopendir (Depends-on): Likewise.
3061         * modules/fopen (Depends-on): Likewise.
3062         * modules/fts (Depends-on): Likewise.
3063         * modules/getcwd (Depends-on): Likewise.
3064         * modules/isapipe (Depends-on): Likewise.
3065         * modules/linkat (Depends-on): Likewise.
3066         * modules/lseek (Depends-on): Likewise.
3067         * modules/mkdir-p (Depends-on): Likewise.
3068         * modules/open (Depends-on): Likewise.
3069         * modules/openat (Depends-on): Likewise.
3070         * modules/read-file (Depends-on): Likewise.
3071         * modules/renameat (Depends-on): Likewise.
3072         * modules/utimens (Depends-on): Likewise.
3073
3074 2011-09-25  Bruno Haible  <bruno@clisp.org>
3075
3076         linkat: Fix compilation on MSVC 9.
3077         * lib/linkat.c: Don't include <stdint.h>.
3078
3079 2011-09-25  Bruno Haible  <bruno@clisp.org>
3080
3081         fclose: Support for MSVC 9.
3082         * lib/fclose.c: Include msvc-inval.h.
3083         (fclose_nothrow): New function.
3084         (rpl_fclose): Use it.
3085         * modules/fclose (Depends-on): Add msvc-inval.
3086         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3087
3088 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3089
3090         dup2: minor simplifications
3091         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3092         that it's a performance win.
3093         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3094         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3095
3096 2011-09-24  Jim Meyering  <meyering@redhat.com>
3097
3098         test-futimens: avoid a warning from gcc -Wshadow
3099         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3100         to avoid a shadowing warning.
3101
3102 2011-09-24  Bruno Haible  <bruno@clisp.org>
3103
3104         fdopen: Support for MSVC 9.
3105         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3106         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3107         * lib/fdopen.c: Include msvc-inval.h.
3108         (fdopen_nothrow): New function.
3109         (rpl_fdopen): Use it.
3110         * modules/fdopen (Depends-on): Add msvc-inval.
3111         * modules/fclose-tests (Depends-on): Add fdopen.
3112         * modules/fflush-tests (Depends-on): Likewise.
3113         * modules/fgetc-tests (Depends-on): Likewise.
3114         * modules/fputc-tests (Depends-on): Likewise.
3115         * modules/fread-tests (Depends-on): Likewise.
3116         * modules/freopen-tests (Depends-on): Likewise.
3117         * modules/fseeko-tests (Depends-on): Likewise.
3118         * modules/ftello-tests (Depends-on): Likewise.
3119         * modules/fwrite-tests  (Depends-on): Likewise.
3120         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3121
3122 2011-09-24  Bruno Haible  <bruno@clisp.org>
3123
3124         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3125         * modules/fgetc-tests (Depends-on): Add unistd.
3126         * modules/fputc-tests (Depends-on): Likewise.
3127         * modules/fread-tests (Depends-on): Likewise.
3128         * modules/fwrite-tests (Depends-on): Likewise.
3129
3130 2011-09-24  Bruno Haible  <bruno@clisp.org>
3131
3132         dup: Simplify autoconf test.
3133         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3134         on gl_MSVC_INVAL's result.
3135
3136 2011-09-24  Bruno Haible  <bruno@clisp.org>
3137
3138         Tests for function fwrite().
3139         * modules/fwrite-tests: New file.
3140         * tests/test-fwrite.c: New file.
3141         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3142
3143         Tests for function fread().
3144         * modules/fread-tests: New file.
3145         * tests/test-fread.c: New file.
3146         * modules/stdio-tests (Depends-on): Add fread-tests.
3147
3148         Activate fputc tests.
3149         * modules/stdio-tests (Depends-on): Add fputc-tests.
3150
3151         Enhance fgetc, fputc tests.
3152         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3153         * tests/test-fputc.c (main): Likewise.
3154
3155 2011-09-24  Bruno Haible  <bruno@clisp.org>
3156
3157         write: Support for MSVC 9.
3158         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3159         is not 1.
3160         * lib/write.c (write_nothrow): New function.
3161         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3162         not 1. Use write_nothrow.
3163         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3164         invalid parameter handler.
3165         (gl_PREREQ_WRITE): New macro.
3166         * modules/write (Depends-on): Add msvc-inval.
3167         (configure.ac): Invoke gl_PREREQ_WRITE.
3168         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3169
3170 2011-09-24  Bruno Haible  <bruno@clisp.org>
3171
3172         read: Fix last commit.
3173         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3174
3175 2011-09-24  Bruno Haible  <bruno@clisp.org>
3176
3177         dup2: Fix last commit.
3178         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3179         (rpl_dup2): Disable fcntl workaround on native Windows.
3180
3181         sigprocmask: Make code safer.
3182         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3183         section that changes macro definitions for this compilation unit.
3184
3185 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         dup2: clarify by coalescing Windows-specific material
3188         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3189         "msvc-nothrow.h"' to the Windows-specific section, so that the
3190         Emacs source need not contain these include files.
3191         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3192         Windows-specific fixes into this function rather than just the
3193         nothrow fix, as this shortens and clarifies the code.  Always
3194         define as a function, as that's a bit cleaner than having it be
3195         sometimes a function and sometimes a macro.
3196         (rpl_dup2): Move the Windows-specific stuff out of here and into
3197         ms_windows_dup2.  Don't protect the Haiku-related fix with
3198         "#if !defined __linux__", as the same code also works around
3199         a Linux kernel bug, and it doesn't add any system calls on any
3200         platform.  Add comment about FreeBSD 6.1.
3201
3202         sigprocmask: move #include directive
3203         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3204         Windows-specific section, so that the Emacs source need not
3205         contain msvc-inval.h.
3206
3207 2011-09-23  Bruno Haible  <bruno@clisp.org>
3208
3209         read: Support for MSVC 9.
3210         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3211         is not 1.
3212         * lib/read.c (read_nothrow): New function.
3213         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3214         read_nothrow.
3215         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3216         invalid parameter handler.
3217         (gl_PREREQ_READ): New macro.
3218         * modules/read (Depends-on): Add msvc-inval.
3219         (configure.ac): Invoke gl_PREREQ_READ.
3220         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3221
3222 2011-09-23  Bruno Haible  <bruno@clisp.org>
3223
3224         close: Support for MSVC 9.
3225         * lib/close.c: Include <errno.h>, msvc-inval.h.
3226         (close_nothrow): New function.
3227         (rpl_close): Use it.
3228         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3229         invalid parameter handler.
3230         * modules/close (Depends-on): Add msvc-inval.
3231         * modules/dup2-tests (Depends-on): Add close.
3232         * modules/dup3-tests (Depends-on): Likewise.
3233         * modules/fcntl-tests (Depends-on): Likewise.
3234         * modules/spawn-pipe-tests (Depends-on): Likewise.
3235         * modules/unistd-safer-tests (Depends-on): Likewise.
3236         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3237
3238 2011-09-23  Bruno Haible  <bruno@clisp.org>
3239
3240         New module 'dup'.
3241         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3242         Allow replacement.
3243         * lib/dup.c: New file.
3244         * lib/fchdir.c (rpl_dup): Remove function.
3245         * m4/dup.m4: New file.
3246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3247         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3248         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3249         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3250         * modules/dup: New file.
3251         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3252         'dup' module is in use.
3253         * modules/fdopendir (Depends-on): Add dup.
3254         * modules/fdutimensat-tests (Depends-on): Likewise.
3255         * modules/fts (Depends-on): Likewise.
3256         * modules/futimens-tests (Depends-on): Likewise.
3257         * modules/posix_spawnp-tests (Depends-on): Likewise.
3258         * modules/unistd-safer-tests (Depends-on): Likewise.
3259         * modules/utimens-tests (Depends-on): Likewise.
3260         * doc/posix-functions/dup.texi: Mention the new module and the problem
3261         on MSVC.
3262
3263 2011-09-23  Bruno Haible  <bruno@clisp.org>
3264
3265         getdtablesize: Support for MSVC 9.
3266         * lib/getdtablesize.c: Include msvc-inval.h.
3267         (_setmaxstdio_nothrow): New function.
3268         (_setmaxstdio): Redefine it.
3269         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3270         * modules/getdtablesize (Depends-on): Add msvc-inval.
3271         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3272
3273 2011-09-23  Bruno Haible  <bruno@clisp.org>
3274
3275         signal-h: Rename from signal.
3276         * modules/signal-h: Renamed from modules/signal.
3277         * modules/pthread_sigmask (Depends-on): Update.
3278         * modules/raise (Depends-on): Likewise.
3279         * modules/sigaction (Depends-on): Likewise.
3280         * modules/sigpipe (Depends-on): Likewise.
3281         * modules/sigprocmask (Depends-on): Likewise.
3282         * modules/sys_select (Depends-on): Likewise.
3283         * modules/signal-h-tests: Renamed from modules/signal-tests.
3284         (Files, Depends-on, Makefile.am): Update.
3285         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3286         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3287         (Files, Makefile.am): Update.
3288         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3289         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3290         * modules/signal: New placeholder file.
3291         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3292         * doc/posix-headers/signal.texi: Update.
3293         * NEWS: Mention the change.
3294
3295 2011-09-23  Bruno Haible  <bruno@clisp.org>
3296
3297         sigprocmask: Avoid crashes through signal() on MSVC 9.
3298         * lib/sigprocmask.c: Include msvc-inval.h.
3299         (signal_nothrow): New function.
3300         (signal): Redefine it.
3301         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3302         * modules/sigprocmask (Depends-on): Add msvc-inval.
3303         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3304
3305 2011-09-23  Bruno Haible  <bruno@clisp.org>
3306
3307         Tests for module 'raise'.
3308         * modules/raise-tests: New file.
3309         * tests/test-raise.c: New file.
3310
3311         raise: Support for MSVC.
3312         * lib/signal.in.h (raise): New declaration.
3313         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3314         for native Windows platforms.
3315         * m4/raise.m4: New file.
3316         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3317         HAVE_RAISE, REPLACE_RAISE.
3318         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3319         REPLACE_RAISE.
3320         * modules/raise (Status, Notice): Remove fields.
3321         (Files): Add m4/raise.m4.
3322         (Depends-on): Add signal, msvc-inval.
3323         (configure.ac): Use the common idioms.
3324         (Maintainer): Add me.
3325         * tests/test-signal-c++.cc: Check the signature of raise.
3326         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3327
3328 2011-09-23  Bruno Haible  <bruno@clisp.org>
3329
3330         pipe2: Fix compilation on pre-C99 compilers.
3331         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3332
3333 2011-09-23  Bruno Haible  <bruno@clisp.org>
3334
3335         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3336         * lib/msvc-nothrow.h: New file.
3337         * lib/msvc-nothrow.c: New file.
3338         * m4/msvc-nothrow.m4: New file.
3339         * modules/msvc-nothrow: New file.
3340         * lib/dup2.c: Include msvc-nothrow.h.
3341         (rpl_dup2): No need to protect _get_osfhandle call here.
3342         * lib/accept4.c: Include msvc-nothrow.h.
3343         * lib/error.c: Likewise.
3344         * lib/fcntl.c: Likewise.
3345         * lib/lseek.c: Likewise.
3346         * lib/nonblocking.c: Likewise.
3347         * lib/poll.c: Likewise.
3348         * lib/read.c: Likewise.
3349         * lib/select.c: Likewise.
3350         * lib/sockets.h: Likewise.
3351         * lib/sockets.c: Likewise.
3352         * lib/stdio-read.c: Likewise.
3353         * lib/stdio-write.c: Likewise.
3354         * lib/write.c: Likewise.
3355         * lib/w32sock.h: Likewise.
3356         * lib/w32spawn.h: Likewise.
3357         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3358         * lib/fsync.c: Likewise.
3359         * lib/isapipe.c: Likewise.
3360         * modules/dup2 (Depends-on): Add msvc-nothrow.
3361         * modules/accept4 (Depends-on): Likewise.
3362         * modules/error (Depends-on): Likewise.
3363         * modules/fcntl (Depends-on): Likewise.
3364         * modules/lseek (Depends-on): Likewise.
3365         * modules/nonblocking (Depends-on): Likewise.
3366         * modules/poll (Depends-on): Likewise.
3367         * modules/read (Depends-on): Likewise.
3368         * modules/select (Depends-on): Likewise.
3369         * modules/sockets (Depends-on): Likewise.
3370         * modules/sigpipe (Depends-on): Likewise.
3371         * modules/write (Depends-on): Likewise.
3372         * modules/accept (Depends-on): Likewise.
3373         * modules/bind (Depends-on): Likewise.
3374         * modules/connect (Depends-on): Likewise.
3375         * modules/gethostname (Depends-on): Likewise.
3376         * modules/getpeername (Depends-on): Likewise.
3377         * modules/getsockname (Depends-on): Likewise.
3378         * modules/getsockopt (Depends-on): Likewise.
3379         * modules/ioctl (Depends-on): Likewise.
3380         * modules/listen (Depends-on): Likewise.
3381         * modules/recv (Depends-on): Likewise.
3382         * modules/recvfrom (Depends-on): Likewise.
3383         * modules/send (Depends-on): Likewise.
3384         * modules/sendto (Depends-on): Likewise.
3385         * modules/setsockopt (Depends-on): Likewise.
3386         * modules/shutdown (Depends-on): Likewise.
3387         * modules/socket (Depends-on): Likewise.
3388         * modules/execute (Depends-on): Likewise.
3389         * modules/spawn-pipe (Depends-on): Likewise.
3390         * modules/flock (Depends-on): Likewise.
3391         * modules/fsync (Depends-on): Likewise.
3392         * modules/isapipe (Depends-on): Likewise.
3393         * tests/test-cloexec.c: Include msvc-nothrow.h.
3394         * tests/test-dup-safer.c: Likewise.
3395         * tests/test-dup2.c: Likewise.
3396         * tests/test-dup3.c: Likewise.
3397         * tests/test-fcntl.c: Likewise.
3398         * tests/test-pipe.c: Likewise.
3399         * tests/test-pipe2.c: Likewise.
3400         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3401         * modules/unistd-safer-tests (Depends-on): Likewise.
3402         * modules/dup2-tests (Depends-on): Likewise.
3403         * modules/dup3-tests (Depends-on): Likewise.
3404         * modules/fcntl-tests (Depends-on): Likewise.
3405         * modules/pipe-posix-tests (Depends-on): Likewise.
3406         * modules/pipe2-tests (Depends-on): Likewise.
3407
3408 2011-09-23  Bruno Haible  <bruno@clisp.org>
3409
3410         dup2: Make code more maintainable.
3411         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3412         (rpl_dup2): Use it.
3413         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3414         * modules/dup2 (configure.ac): Invoke it.
3415         Reported by Paul Eggert.
3416
3417 2011-09-23  Bruno Haible  <bruno@clisp.org>
3418
3419         msvc-inval: Fix compilation error.
3420         * lib/msvc-inval.h: Include <excpt.h>.
3421
3422 2011-09-23  Bruno Haible  <bruno@clisp.org>
3423
3424         mkdir: Tweak for MSVC 9.
3425         * lib/sys_stat.in.h: Update comments.
3426         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3427
3428         Tests for module 'chdir'.
3429         * modules/chdir-tests: New file.
3430         * tests/test-chdir.c: New file.
3431
3432         New module 'chdir'.
3433         * modules/chdir: New file.
3434         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3435         (chdir): New declaration.
3436         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3437         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3438         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3439         * tests/test-unistd-c++.cc: Check signature of chdir.
3440         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3441         * modules/chdir-long (Depends-on): Add chdir.
3442         * modules/fchdir (Depends-on): Likewise.
3443         * modules/rename (Depends-on): Likewise.
3444         * modules/savewd (Depends-on): Likewise.
3445
3446         rmdir: Support for mingw, MSVC 9.
3447         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3448         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3449
3450         getcwd: Tweak for MSVC 9.
3451         * lib/unistd.in.h: Update comments.
3452         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3453
3454 2011-09-22  Bruno Haible  <bruno@clisp.org>
3455
3456         strerror_r-posix: Avoid a link error on MSVC.
3457         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3458         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3459
3460 2011-09-22  Bruno Haible  <bruno@clisp.org>
3461
3462         select: Avoid link errors on MSVC.
3463         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3464         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3465         * modules/pselect (Link): Likewise.
3466         * NEWS: Mention the change.
3467         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3468         test-select-stdin against $(LIB_SELECT).
3469         * modules/pselect-tests (Makefile.am): Link test-pselect against
3470         $(LIB_SELECT).
3471
3472 2011-09-22  Bruno Haible  <bruno@clisp.org>
3473
3474         select: Avoid compilation error on MSVC.
3475         * lib/select.c: Don't include <stdbool.h>.
3476
3477 2011-09-21  Bruno Haible  <bruno@clisp.org>
3478
3479         Consolidate all uses of PATH_MAX in *.m4 files.
3480         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3481         macros.
3482         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3483         and gl_PATHMAX_SNIPPET.
3484         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3485         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3486         * modules/chdir-long (Files): Add m4/pathmax.m4.
3487         * modules/getcwd (Files): Likewise.
3488
3489 2011-09-21  Bruno Haible  <bruno@clisp.org>
3490
3491         ftruncate: Un-deprecate, concentrate on Win32 support.
3492         * modules/ftruncate (Status, Notice): Remove sections.
3493         (Depends-on): Add largefile.
3494         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3495         non-mingw platforms.
3496         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3497         include <io.h>.
3498         * modules/perror-tests (Depends-on): Add ftruncate.
3499         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3500         'ftruncate' module.
3501
3502 2011-09-21  Bruno Haible  <bruno@clisp.org>
3503
3504         Add dependencies to new dirent related modules.
3505         * modules/opendir (Depends-on): Add closedir.
3506         * modules/getcwd (Depends-on): Add opendir, closedir.
3507         * modules/dirent-safer-tests (Depends-on): Likewise.
3508         * modules/fdopendir-tests (Depends-on): Likewise.
3509         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3510         * modules/renameat-tests (Depends-on): Likewise.
3511
3512 2011-09-21  Bruno Haible  <bruno@clisp.org>
3513
3514         opendir: Avoid compilation error on mingw.
3515         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3516         * modules/opendir (Depends-on): Add unistd.
3517
3518 2011-09-21  Bruno Haible  <bruno@clisp.org>
3519
3520         ftruncate tests: Avoid a test failure on mingw.
3521         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3522
3523 2011-09-21  Bruno Haible  <bruno@clisp.org>
3524
3525         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3526         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3527         native Windows.
3528
3529 2011-09-21  Bruno Haible  <bruno@clisp.org>
3530
3531         New module 'fdopen'.
3532         * lib/stdio.in.h (fdopen): New declaration.
3533         * lib/fdopen.c: New file.
3534         * m4/fdopen.m4: New file.
3535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3536         REPLACE_FDOPEN.
3537         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3538         REPLACE_FDOPEN.
3539         * modules/fdopen: New file.
3540         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3541         * tests/test-stdio-c++.cc: Check signature of fdopen.
3542         * doc/posix-functions/fdopen.texi: Mention the new module.
3543
3544 2011-09-21  Bruno Haible  <bruno@clisp.org>
3545
3546         unlockpt tests: Avoid test failure on NetBSD 5.1.
3547         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3548         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3549
3550 2011-09-21  Bruno Haible  <bruno@clisp.org>
3551
3552         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3553         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3554         * tests/test-getlogin_r.c (main): Likewise.
3555
3556 2011-09-20  Bruno Haible  <bruno@clisp.org>
3557
3558         time tests: Don't require pid_t.
3559         * doc/posix-headers/time.texi: Revert last change.
3560         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3561         * tests/test-time.c: Comment out the check for pid_t.
3562
3563 2011-09-20  Bruno Haible  <bruno@clisp.org>
3564
3565         fsync tests: Avoid a test failure on mingw.
3566         * tests/test-fsync.c (main): Allow a failure with EIO.
3567
3568 2011-09-20  Bruno Haible  <bruno@clisp.org>
3569
3570         euidaccess: Update comments.
3571         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3572
3573 2011-09-20  Bruno Haible  <bruno@clisp.org>
3574
3575         Ensure EBADF returns for socket functions on mingw.
3576         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3577         descriptor is invalid.
3578         * lib/bind.c (rpl_bind): Likewise.
3579         * lib/connect.c (rpl_connect): Likewise.
3580         * lib/getpeername.c (rpl_getpeername): Likewise.
3581         * lib/getsockname.c (rpl_getsockname): Likewise.
3582         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3583         * lib/listen.c (rpl_listen): Likewise.
3584         * lib/recv.c (rpl_recv): Likewise.
3585         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3586         * lib/send.c (rpl_send): Likewise.
3587         * lib/sendto.c (rpl_sendto): Likewise.
3588         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3589         * lib/shutdown.c (rpl_shutdown): Likewise.
3590
3591 2011-09-20  Bruno Haible  <bruno@clisp.org>
3592
3593         select tests: EBADF tests.
3594         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3595         test_bad_fd): New functions.
3596         (test_function): Invoke also test_bad_fd.
3597
3598 2011-09-20  Bruno Haible  <bruno@clisp.org>
3599
3600         Tests for module 'posix_spawn_file_actions_addopen.
3601         * modules/posix_spawn_file_actions_addopen-tests: New file.
3602         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3603
3604         Tests for module 'posix_spawn_file_actions_adddup2'.
3605         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3606         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3607
3608         Tests for module 'posix_spawn_file_actions_addclose'.
3609         * modules/posix_spawn_file_actions_addclose-tests: New file.
3610         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3611
3612 2011-09-20  Bruno Haible  <bruno@clisp.org>
3613
3614         Tests for module 'unlockpt'.
3615         * modules/unlockpt-tests: New file.
3616         * tests/test-unlockpt.c: New file.
3617         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3618
3619         Tests for module 'grantpt'.
3620         * modules/grantpt-tests: New file.
3621         * tests/test-grantpt.c: New file.
3622         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3623
3624 2011-09-20  Bruno Haible  <bruno@clisp.org>
3625
3626         freopen tests: EBADF tests.
3627         * tests/test-freopen.c: Include errno.h, unistd.h.
3628         (main): Add tests for EBADF, commented out for the moment.
3629
3630         fclose tests: EBADF tests.
3631         * tests/test-fclose.c (main): Add tests for EBADF.
3632
3633         fflush tests: EBADF tests.
3634         * tests/test-fflush.c: Include errno.h, macros.h.
3635         (main): Add tests for EBADF.
3636
3637         ftello tests: EBADF tests.
3638         * tests/test-ftello4.sh: New file.
3639         * tests/test-ftello4.c: New file.
3640         * modules/ftello-tests (Files): Add them.
3641         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3642
3643         fseeko tests: EBADF tests.
3644         * tests/test-fseeko4.sh: New file.
3645         * tests/test-fseeko4.c: New file.
3646         * modules/fseeko-tests (Files): Add them.
3647         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3648
3649         Tests for function fputc().
3650         * modules/fputc-tests: New file.
3651         * tests/test-fputc.c: New file.
3652         * modules/stdio-tests (Depends-on): Add fputc-tests.
3653
3654         Tests for function fgetc().
3655         * modules/fgetc-tests: New file.
3656         * tests/test-fgetc.c: New file.
3657         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3658
3659         Tests for function fdopen().
3660         * modules/fdopen-tests: New file.
3661         * tests/test-fdopen.c: New file.
3662         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3663
3664         Tests for module 'vdprintf'.
3665         * modules/vdprintf-tests: New file.
3666         * tests/test-vdprintf.c: New file.
3667
3668         Tests for module 'dprintf'.
3669         * modules/dprintf-tests: New file.
3670         * tests/test-dprintf.c: New file.
3671
3672 2011-09-20  Bruno Haible  <bruno@clisp.org>
3673
3674         Tests for module 'ioctl'.
3675         * modules/ioctl-tests: New file.
3676         * tests/test-ioctl.c: New file.
3677
3678 2011-09-20  Bruno Haible  <bruno@clisp.org>
3679
3680         fcntl tests: EBADF tests.
3681         * tests/test-fcntl.c (main): Add more tests for EBADF.
3682
3683 2011-09-20  Bruno Haible  <bruno@clisp.org>
3684
3685         utimensat tests: EBADF tests.
3686         * tests/test-utimensat.c (main): Add tests for EBADF.
3687
3688         renameat tests: EBADF tests.
3689         * tests/test-renameat.c (main): Add tests for EBADF.
3690
3691         mkfifoat tests: EBADF tests.
3692         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3693
3694         readlinkat tests: EBADF tests.
3695         * tests/test-readlinkat.c (main): Add tests for EBADF.
3696
3697         symlinkat tests: EBADF tests.
3698         * tests/test-symlinkat.c (main): Add tests for EBADF.
3699
3700         linkat tests: EBADF tests.
3701         * tests/test-linkat.c (main): Add tests for EBADF.
3702
3703         Tests for module 'faccessat'.
3704         * modules/faccessat-tests: New file.
3705         * tests/test-faccessat.c: New file.
3706
3707         fdopendir tests: EBADF tests.
3708         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3709
3710         openat tests: EBADF tests.
3711         * tests/test-fchownat.c (main): Add tests for EBADF.
3712         * tests/test-fstatat.c (main): Likewise.
3713         * tests/test-mkdirat.c (main): Likewise.
3714         * tests/test-openat.c (main): Likewise.
3715         * tests/test-unlinkat.c (main): Likewise.
3716         * tests/test-fchmodat.c: New file.
3717         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3718         (Makefile.am): Also run 'test-fchmodat'.
3719
3720 2011-09-20  Bruno Haible  <bruno@clisp.org>
3721
3722         utimens, futimens, fdutimensat tests: EBADF tests.
3723         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3724
3725         Tests for function fstat().
3726         * modules/fstat-tests: New file.
3727         * tests/test-fstat.c: New file.
3728         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3729
3730 2011-09-20  Bruno Haible  <bruno@clisp.org>
3731
3732         test-ttyname_r tests: EBADF tests.
3733         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3734
3735         Tests for module 'isatty'.
3736         * modules/isatty-tests: New file.
3737         * tests/test-isatty.c: New file.
3738
3739         Tests for module 'write'.
3740         * modules/write-tests: New file.
3741         * tests/test-write.c: New file.
3742
3743         Tests for module 'read'.
3744         * modules/read-tests: New file.
3745         * tests/test-read.c: New file.
3746
3747         pwrite tests: EBADF tests.
3748         * tests/test-pwrite.c (main): Add tests for EBADF.
3749
3750         pread tests: EBADF tests.
3751         * tests/test-pread.c (main): Add tests for EBADF.
3752
3753         lseek tests: EBADF tests.
3754         * tests/test-lseek.c (main): Add more tests for EBADF.
3755
3756         Tests for module 'ftruncate'.
3757         * modules/ftruncate-tests: New file.
3758         * tests/test-ftruncate.sh: New file.
3759         * tests/test-ftruncate.c: New file.
3760
3761         fsync tests: EBADF tests.
3762         * tests/test-fsync.c (main): Add more tests for EBADF.
3763
3764         fdatasync tests: EBADF tests.
3765         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3766
3767         Tests for module 'fchown'.
3768         * modules/fchown-tests: New file.
3769         * tests/test-fchown.c: New file.
3770
3771         Tests for module 'fchmod'.
3772         * modules/fchmod-tests: New file.
3773         * tests/test-fchmod.c: New file.
3774
3775         fchdir tests: EBADF tests.
3776         * tests/test-fchdir.c (main): Add more tests for EBADF.
3777
3778         dup2 tests: EBADF tests.
3779         * tests/test-dup2.c (main): Add more tests for EBADF.
3780
3781         Tests for module 'dup'.
3782         * modules/dup-tests: New file.
3783         * tests/test-dup.c: New file.
3784
3785         Tests for module 'close'.
3786         * modules/close-tests: New file.
3787         * tests/test-close.c: New file.
3788
3789 2011-09-20  Bruno Haible  <bruno@clisp.org>
3790
3791         Tests for module 'shutdown'.
3792         * modules/shutdown-tests: New file.
3793         * tests/test-shutdown.c: New file.
3794
3795         Tests for module 'setsockopt'.
3796         * modules/setsockopt-tests: New file.
3797         * tests/test-setsockopt.c: New file.
3798
3799         Tests for module 'sendto'.
3800         * modules/sendto-tests: New file.
3801         * tests/test-sendto.c: New file.
3802
3803         Tests for module 'send'.
3804         * modules/send-tests: New file.
3805         * tests/test-send.c: New file.
3806
3807         Tests for module 'recvfrom'.
3808         * modules/recvfrom-tests: New file.
3809         * tests/test-recvfrom.c: New file.
3810
3811         Tests for module 'recv'.
3812         * modules/recv-tests: New file.
3813         * tests/test-recv.c: New file.
3814
3815         Tests for module 'listen'.
3816         * modules/listen-tests: New file.
3817         * tests/test-listen.c: New file.
3818
3819         Tests for module 'getsockopt'.
3820         * modules/getsockopt-tests: New file.
3821         * tests/test-getsockopt.c: New file.
3822
3823         Tests for module 'getsockname'.
3824         * modules/getsockname-tests: New file.
3825         * tests/test-getsockname.c: New file.
3826
3827         Tests for module 'getpeername'.
3828         * modules/getpeername-tests: New file.
3829         * tests/test-getpeername.c: New file.
3830
3831         Tests for module 'connect'.
3832         * modules/connect-tests: New file.
3833         * tests/test-connect.c: New file.
3834
3835         Tests for module 'bind'.
3836         * modules/bind-tests: New file.
3837         * tests/test-bind.c: New file.
3838
3839         accept4 tests: Fix for native Windows.
3840         * tests/test-accept4.c: Include sockets.h.
3841         (main): Invoke gl_sockets_startup.
3842         * modules/accept4-tests (Depends-on): Add sockets.
3843
3844         accept tests: Fix for native Windows.
3845         * tests/test-accept.c: Include sockets.h.
3846         (main): Invoke gl_sockets_startup.
3847         * modules/accept-tests (Depends-on): Add sockets.
3848
3849 2011-09-19  Bruno Haible  <bruno@clisp.org>
3850
3851         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3852         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3853         do...while(0).
3854         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3855         Suggested by Paul Eggert.
3856
3857 2011-09-19  Bruno Haible  <bruno@clisp.org>
3858
3859         sched: Ensure pid_t is defined.
3860         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3861         not define pid_t.
3862         * lib/sched.in.h: Include <sys/types.h>.
3863         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3865
3866 2011-09-19  Bruno Haible  <bruno@clisp.org>
3867
3868         msvc-inval: Ensure the entire expansion is a single statement.
3869         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3870         of braces.
3871
3872 2011-09-19  Jim Meyering  <meyering@redhat.com>
3873
3874         tests: use printf, not echo in init.sh's warn_ function
3875         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3876         misbehave when given strings containing a backslash or starting
3877         with e.g., -n.  James Youngman suggested setting IFS.
3878
3879 2011-09-19  Eric Blake  <eblake@redhat.com>
3880
3881         futimens: enhance test
3882         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3883         closed non-negative fd.
3884
3885         date: accept 'hence' as opposite of 'ago'
3886         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3887         * tests/test-parse-datetime.c (main): Enhance test.
3888         Suggested by Jesse Wilson.
3889
3890 2011-09-19  Jim Meyering  <meyering@redhat.com>
3891
3892         getcwd: don't fail in a deep directory on a system without openat
3893         Before this change, getcwd would fail when called from a directory
3894         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3895         the non-openat implementation used "..", "../..", "../../..", etc.
3896         to access ancestor directories.  With too many, that string would
3897         be longer than PATH_MAX.
3898         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3899         using gnulib's openat replacement.
3900         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3901         we're using the replacement function.
3902
3903 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3904
3905         maint.mk: avoid warnings from perl about missing files
3906         * top/maint.mk (def_sym_regex): Ignore files listed in
3907         $(gl_other_headers_) that do not exist, say because a project
3908         does not use a corresponding module.
3909
3910 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3911
3912         stat: use pathmax.h only if needed
3913         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3914         This is better for Emacs, which does not have a mingw port and
3915         therefore can avoid the pathmax module.
3916
3917         utimens: remove dependency on dup2
3918         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3919         to work around the Linux kernel bug.
3920         * modules/utimens (Depends-on): Remove dup2.
3921
3922 2011-09-18  Bruno Haible  <bruno@clisp.org>
3923
3924         inet_ntop, inet_pton: Look for it also in libresolv.
3925         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3926         libnsl, search for it in libresolv.
3927         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3928         Needed on Solaris 7.
3929
3930 2011-09-18  Bruno Haible  <bruno@clisp.org>
3931
3932         accept, accept4 tests: Avoid link error on Solaris.
3933         * modules/accept-tests (Makefile.am): Link test-accept against
3934         $(LIBSOCKET).
3935         * modules/accept4-tests (Makefile.am): Link test-accept4 against
3936         $(LIBSOCKET).
3937
3938         accept4: Avoid link error on Solaris.
3939         * modules/accept4 (Link): New section.
3940
3941         socket functions: Avoid link errors on Solaris.
3942         * modules/accept (Depends-on): Add socketlib.
3943         (Link): New section.
3944         * modules/bind (Depends-on): Add socketlib.
3945         (Link): New section.
3946         * modules/connect (Depends-on): Add socketlib.
3947         (Link): New section.
3948         * modules/getpeername (Depends-on): Add socketlib.
3949         (Link): New section.
3950         * modules/getsockname (Depends-on): Add socketlib.
3951         (Link): New section.
3952         * modules/getsockopt (Depends-on): Add socketlib.
3953         (Link): New section.
3954         * modules/listen (Depends-on): Add socketlib.
3955         (Link): New section.
3956         * modules/recv (Depends-on): Add socketlib.
3957         (Link): New section.
3958         * modules/recvfrom (Depends-on): Add socketlib.
3959         (Link): New section.
3960         * modules/send (Depends-on): Add socketlib.
3961         (Link): New section.
3962         * modules/sendto (Depends-on): Add socketlib.
3963         (Link): New section.
3964         * modules/setsockopt (Depends-on): Add socketlib.
3965         (Link): New section.
3966         * modules/shutdown (Depends-on): Add socketlib.
3967         (Link): New section.
3968         * modules/socket (Depends-on): Add socketlib.
3969         (Link): New section.
3970
3971 2011-09-18  Bruno Haible  <bruno@clisp.org>
3972
3973         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
3974         * tests/test-ptsname.c (main): Terminate the test if it takes longer
3975         than 5 seconds.
3976         * modules/ptsname-tests (configure.ac): Test for alarm.
3977
3978 2011-09-18  Bruno Haible  <bruno@clisp.org>
3979
3980         posix_spawn_file_actions_add*: Fix module dependencies.
3981         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
3982         posix_spawn_file_actions_init.
3983         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
3984         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
3985
3986 2011-09-18  Bruno Haible  <bruno@clisp.org>
3987
3988         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
3989         * tests/test-rename.h (test_rename): Allow error code EEXIST.
3990         * tests/test-renameat.c (main): Likewise.
3991
3992 2011-09-18  Bruno Haible  <bruno@clisp.org>
3993
3994         Tests for module 'accept4'.
3995         * modules/accept4-tests: New file.
3996         * tests/test-accept4.c: New file.
3997
3998 2011-09-18  Bruno Haible  <bruno@clisp.org>
3999
4000         Tests for module 'accept'.
4001         * modules/accept-tests: New file.
4002         * tests/test-accept.c: New file.
4003
4004 2011-09-18  Bruno Haible  <bruno@clisp.org>
4005
4006         dup2: Support for MSVC.
4007         * lib/dup2.c: Include msvc-inval.h.
4008         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4009         _get_osfhandle calls.
4010         * modules/dup2 (Depends-on): Add msvc-inval.
4011         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4012
4013         New module 'msvc-inval'.
4014         * lib/msvc-inval.h: New file.
4015         * lib/msvc-inval.c: New file.
4016         * m4/msvc-inval.m4: New file.
4017         * modules/msvc-inval: New file.
4018
4019 2011-09-17  Bruno Haible  <bruno@clisp.org>
4020
4021         Tests for module 'pclose'.
4022         * modules/pclose-tests: New file.
4023
4024         New module 'pclose'.
4025         * lib/stdio.in.h (pclose): New declaration.
4026         * lib/pclose.c: New file.
4027         * m4/pclose.m4: New file.
4028         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4029         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4030         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4031         * modules/pclose: New file.
4032         * modules/popen-tests (Depends-on): Add pclose.
4033         * modules/popen-safer-tests (Depends-on): Likewise.
4034         * doc/posix-functions/pclose.texi: Mention the new module.
4035
4036 2011-09-17  Bruno Haible  <bruno@clisp.org>
4037
4038         popen: Support for MSVC.
4039         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4040         * lib/popen.c (popen): Provide alternate definition for native Windows.
4041         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4043         * modules/popen (Depends-on, configure.ac): Update condition.
4044         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4045         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4046         fixed.
4047
4048 2011-09-17  Bruno Haible  <bruno@clisp.org>
4049
4050         isnanl, isnand, isnanf: Work around MSVC bug.
4051         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4052
4053 2011-09-17  Bruno Haible  <bruno@clisp.org>
4054
4055         sys_socket tests: Fix recent mistake.
4056         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4057
4058 2011-09-17  Bruno Haible  <bruno@clisp.org>
4059
4060         putenv: Support for MSVC.
4061         * modules/putenv (Depends-on): Add environ.
4062         * lib/putenv.c (environ): Disable declaration.
4063         * lib/unistd.in.h: Update comment.
4064
4065 2011-09-17  Bruno Haible  <bruno@clisp.org>
4066
4067         math: Avoid macro redefinition warnings on MSVC.
4068         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4069         Undefine before redefining.
4070
4071 2011-09-17  Bruno Haible  <bruno@clisp.org>
4072
4073         doc: Mention functions which are declared as macros.
4074         * doc/posix-functions/*[fl].texi: Mention that some functions are
4075         defined as macros with arguments only.
4076
4077 2011-09-17  Bruno Haible  <bruno@clisp.org>
4078
4079         Add dependencies to new dirent related modules.
4080         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4081         * modules/fts (Depends-on): Likewise.
4082         * modules/glob (Depends-on): Likewise.
4083         * modules/savedir (Depends-on): Likewise.
4084         * modules/scandir (Depends-on): Likewise.
4085         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4086         * modules/fdopendir (Depends-on): Add opendir.
4087
4088 2011-09-17  Bruno Haible  <bruno@clisp.org>
4089
4090         inet_pton: Support for MSVC on Windows Vista or newer.
4091         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4092         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4093         HAVE_DECL_INET_PTON is defined.
4094         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4095         On platforms with <winsock2.h>, test whether inet_pton is declared in
4096         <ws2tcpip.h>. If so, arrange to replace it.
4097         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4098         REPLACE_INET_PTON.
4099         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4100         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4101         (Depends-on, configure.ac): Update condition.
4102         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4103
4104 2011-09-17  Bruno Haible  <bruno@clisp.org>
4105
4106         inet_ntop: Support for MSVC on Windows Vista or newer.
4107         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4108         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4109         HAVE_DECL_INET_NTOP is defined.
4110         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4111         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4112         <ws2tcpip.h>. If so, arrange to replace it.
4113         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4114         REPLACE_INET_NTOP.
4115         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4116         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4117         (Depends-on, configure.ac): Update condition.
4118         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4119
4120 2011-09-16  Eric Blake  <eblake@redhat.com>
4121
4122         test-fsync: yet another enhancement
4123         * tests/test-fsync.c (main): Also test behavior on read-only text
4124         file.
4125
4126 2011-09-16  Bruno Haible  <bruno@clisp.org>
4127
4128         Enhance fsync, fdatasync tests.
4129         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4130         * tests/test-fdatasync.c (main): Likewise.
4131
4132 2011-09-16  Bruno Haible  <bruno@clisp.org>
4133
4134         Support for MSVC compiler: Ensure mode_t gets defined.
4135         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4136         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4137         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4138         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4139         * tests/test-fcntl-h.c: Check that mode_t is defined.
4140         * tests/test-sys_stat.c: Likewise.
4141         * tests/test-sys_types.c: Likewise.
4142         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4143         * doc/posix-headers/sys_stat.texi: Likewise.
4144         * doc/posix-headers/sys_types.texi: Likewise.
4145
4146 2011-09-16  Bruno Haible  <bruno@clisp.org>
4147
4148         sys_stat: Support for MSVC.
4149         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4150         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4151         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4152         MSVC.
4153
4154 2011-09-16  Bruno Haible  <bruno@clisp.org>
4155
4156         Support for MSVC compiler: Ensure off_t gets defined.
4157         * lib/unistd.in.h: Include <sys/types.h>.
4158         * tests/test-fcntl-h.c: Check that off_t is defined.
4159         * tests/test-sys_stat.c: Likewise.
4160         * tests/test-sys_types.c: Likewise.
4161
4162 2011-09-16  Eric Blake  <eblake@redhat.com>
4163
4164         fdatasync: port to Solaris
4165         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4166         * modules/fdatasync (Link): Document it.
4167         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4168
4169         fdatasync: port to MacOS X 10.7
4170         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4171         declared.
4172         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4173         * modules/unistd (Makefile.am): Substitute it.
4174         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4175         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4176
4177         fdatasync: minor improvements
4178         * modules/fdatasync (Depends-on): Add condition for fsync.
4179         * lib/fdatasync.c (fdatasync): Add comment.
4180         * tests/test-unistd-c++.cc: Test fdatasync.
4181
4182         unistd: update refs to newer POSIX
4183         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4184         Suggested by Bruno Haible.
4185
4186         fdatasync: new module
4187         * modules/fsync (Description): Document difference to fdatasync.
4188         * modules/fdatasync: New module.
4189         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4190         * lib/fdatasync.c (fdatasync): Likewise.
4191         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4192         defaults.
4193         * modules/unistd (Makefile.am): Set witnesses.
4194         * lib/unistd.in.h (fdatasync): Declare.
4195         * MODULES.html.sh: Document it.
4196         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4197         * modules/fdatasync-tests: New test.
4198         * tests/test-fdatasync.c: Likewise.
4199
4200 2011-09-16  Eric Blake  <eblake@redhat.com>
4201
4202         test-fsync: enhance tests
4203         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4204         * tests/test-fsync.c (main): Enhance test.
4205
4206 2011-09-15  Bruno Haible  <bruno@clisp.org>
4207
4208         Support for MSVC compiler: Ensure ssize_t gets defined.
4209         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4210         * doc/posix-headers/stdio.texi: Likewise.
4211         * modules/stdio (Depends-on): Add ssize_t.
4212         * modules/sys_socket (Depends-on): Likewise.
4213         * modules/sys_types (Depends-on): Likewise.
4214         * modules/sys_uio (Depends-on): Likewise.
4215         * modules/unistd (Depends-on): Likewise.
4216         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4217         * tests/test-sys_types.c: Check that ssize_t is defined.
4218
4219 2011-09-14  Bruno Haible  <bruno@clisp.org>
4220
4221         Avoid using #, the m4 comment starter character, near brackets.
4222         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4223         delimiter character in sed expressions.
4224         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4225         Suggested by Eric Blake.
4226
4227         Properly quote AC_CHECK_DECLS' 4th argument.
4228         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4229         argument.
4230         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4231         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4232         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4233         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4234         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4235         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4236         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4237         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4238         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4239         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4240         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4241         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4242         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4243         * m4/isinf.m4 (gl_ISINF): Likewise.
4244         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4245         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4246         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4247         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4248         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4249         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4250         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4251         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4252         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4253         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4254         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4255         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4257         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4259         Reported by Eric Blake.
4260
4261         Properly quote AC_CHECK_DECL's 4th argument.
4262         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4263         argument.
4264         * m4/argp.m4 (gl_ARGP): Likewise.
4265         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4266         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4267         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4268         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4269         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4270         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4271         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4272         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4273         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4274         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4275         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4276         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4277         Reported by Eric Blake.
4278
4279 2011-09-14  Eric Blake  <eblake@redhat.com>
4280
4281         opendir: avoid compile warning
4282         * lib/opendir.c (includes): Always include errno.h.
4283         Reported by Tatsuro MATSUOKA.
4284
4285 2011-09-14  Jim Meyering  <meyering@redhat.com>
4286
4287         maint.mk: sc_tight_scope: propagate failure from sub-make
4288         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4289         Reported by Martin von Gagern.
4290
4291 2011-09-13  Bruno Haible  <bruno@clisp.org>
4292
4293         tempname: Support for MSVC.
4294         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4295         MSVC.
4296         * modules/tempname (Depends-on): Add fcntl-h.
4297
4298 2011-09-13  Bruno Haible  <bruno@clisp.org>
4299
4300         sys_time: Support for MSVC.
4301         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4302         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4303         include <winsock2.h>.
4304         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4305         function declarations that collide with POSIX.
4306         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4307         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4308
4309 2011-09-13  Bruno Haible  <bruno@clisp.org>
4310
4311         stat: Support for MSVC.
4312         * lib/stat.c: Include pathmax.h.
4313         * modules/stat (Depends-on): Add pathmax.
4314
4315         pathmax: Support for native Windows.
4316         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4317
4318 2011-09-12  Bruno Haible  <bruno@clisp.org>
4319
4320         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4321         * lib/dirent.in.h (struct dirent): New type.
4322         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4323         DT_WHT): New macros.
4324         (DIR): New type.
4325         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4326         (readdir, rewinddir): New declarations.
4327         * lib/dirent-private.h: New file.
4328         * lib/opendir.c: New file.
4329         * lib/readdir.c: New file.
4330         * lib/rewinddir.c: New file.
4331         * lib/closedir.c: New file.
4332         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4333         * m4/opendir.m4: New file.
4334         * m4/readdir.m4: New file.
4335         * m4/rewinddir.m4: New file.
4336         * m4/closedir.m4: New file.
4337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4338         REPLACE_CLOSEDIR here.
4339         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4340         readdir, rewinddir are declared.
4341         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4342         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4343         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4344         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4345         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4346         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4347         * modules/opendir: New file.
4348         * modules/readdir: New file.
4349         * modules/rewinddir: New file.
4350         * modules/closedir: New file.
4351         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4352         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4353         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4354         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4355         * NEWS: Mention the 'fchdir' change.
4356
4357 2011-09-11  Bruno Haible  <bruno@clisp.org>
4358
4359         asm-underscore.m4: Support for MSVC.
4360         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4361         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4362
4363 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4364
4365         Doc about crypt functions.
4366         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4367         needing for _GNU_SOURCE to get crypt.
4368         * doc/posix-functions/encrypt.texi: Likewise.
4369         * doc/posix-functions/setkey.texi: Likewise.
4370
4371 2011-09-11  Bruno Haible  <bruno@clisp.org>
4372
4373         doc: Update regarding MSVC 9.
4374         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4375         tested".
4376         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4377         * doc/posix-headers/*.texi: Likewise.
4378         * doc/pastposix-functions/*.texi: Likewise.
4379         * doc/glibc-functions/*.texi: Likewise.
4380         * doc/glibc-headers/*.texi: Likewise.
4381
4382 2011-09-11  Bruno Haible  <bruno@clisp.org>
4383
4384         unistd et al.: Don't assume <unistd.h> exists.
4385         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4386         does not exist.
4387         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4388         exist. But include <stdlib.h>.
4389         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4390         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4391         symlink() does not exist.
4392         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4393         include <io.h> instead.
4394         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4395         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4396         include <direct.h> instead.
4397         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4398         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4399         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4400         <io.h> instead.
4401         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4402         correctly if the system does not have hard links.
4403         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4404         <direct.h> instead.
4405         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4406         it when looking for function declarations.
4407         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4408         <direct.h> and <io.h> instead.
4409         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4410
4411 2011-09-11  Bruno Haible  <bruno@clisp.org>
4412
4413         strcase: Support for MSVC.
4414         * modules/strcase (Status, Notice): Remove obsoletion mark.
4415         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4416         * doc/posix-functions/strncasecmp.texi: Likewise.
4417
4418         strings: Don't assume <strings.h> exists.
4419         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4420         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4421         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4422         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4423
4424 2011-09-11  Bruno Haible  <bruno@clisp.org>
4425
4426         dirent: Don't assume <dirent.h> exists.
4427         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4428         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4429         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4430         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4431
4432 2011-09-11  Bruno Haible  <bruno@clisp.org>
4433
4434         Fix wint_t on MSVC.
4435         * lib/wchar.in.h (wint_t): On MSVC, override it.
4436         * lib/wctype.in.h (wint_t): Likewise.
4437         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4438         MSVC.
4439         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4440         * doc/posix-headers/wctype.texi: Likewise.
4441
4442 2011-09-11  Bruno Haible  <bruno@clisp.org>
4443
4444         sys_types: Fix typo.
4445         * lib/sys_types.in.h: Fix typo in comment.
4446         Reported by Paul Eggert.
4447
4448         Support for MSVC compiler: Ensure size_t gets defined.
4449         * modules/strings (Depends-on): Add 'sys_types'.
4450         * modules/sys_uio (Depends-on): Likewise.
4451         * lib/sys_uio.in.h: Update comment.
4452
4453         C++ tests for module 'sys_types'.
4454         * modules/sys_types-c++-tests: New file.
4455         * tests/test-sys_types-c++.cc: New file.
4456
4457         Tests for module 'sys_types'.
4458         * modules/sys_types-tests: New file.
4459         * tests/test-sys_types.c: New file.
4460
4461         New module 'sys_types'.
4462         * lib/sys_types.in.h: New file.
4463         * m4/sys_types_h.m4: New file.
4464         * modules/sys_types: New file.
4465         * doc/posix-headers/sys_types.texi: Mention the new module and the
4466         size_t problem on MSVC 9.
4467
4468 2011-09-11  Bruno Haible  <bruno@clisp.org>
4469
4470         Support for MSVC compiler: Avoid division by a literal 0.
4471         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4472         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4473         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4474         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4475         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4476         * tests/infinity.h: New file.
4477         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4478         on MSVC.
4479         * tests/test-ceilf1.c: Include infinity.h.
4480         (main): Use Infinityf.
4481         * tests/test-ceil1.c: Include infinity.h.
4482         (main): Use Infinityd.
4483         * tests/test-ceill.c: Include infinity.h.
4484         (main): Use Infinityl.
4485         * tests/test-dprintf-posix.c: Include infinity.h.
4486         (test_function): Use Infinityd.
4487         * tests/test-floorf1.c: Include infinity.h.
4488         (main): Use Infinityf.
4489         * tests/test-floor1.c: Include infinity.h.
4490         (main): Use Infinityd.
4491         * tests/test-floorl.c: Include infinity.h.
4492         (main): Use Infinityl.
4493         * tests/test-fprintf-posix.c: Include infinity.h.
4494         (test_function): Use Infinityd.
4495         * tests/test-frexp.c: Include infinity.h.
4496         (main): Use Infinityd.
4497         * tests/test-frexpl.c: Include infinity.h.
4498         (main): Use Infinityl.
4499         * tests/test-isfinite.c: Include infinity.h.
4500         (test_isfinitef): Use Infinityf.
4501         (test_isfinited): Use Infinityd.
4502         (test_isfinitel): Use Infinityl.
4503         * tests/test-isinf.c: Include infinity.h.
4504         (test_isinff): Use Infinityf.
4505         (test_isinfd): Use Infinityd.
4506         (test_isinfl): Use Infinityl.
4507         * tests/test-isnan.c: Include infinity.h.
4508         (test_float): Use Infinityf.
4509         (test_double): Use Infinityd.
4510         (test_long_double): Use Infinityl.
4511         * tests/test-isnanf.h: Include infinity.h.
4512         (main): Use Infinityf.
4513         * tests/test-isnand.h: Include infinity.h.
4514         (main): Use Infinityd.
4515         * tests/test-isnanl.h: Include infinity.h.
4516         (main): Use Infinityl.
4517         * tests/test-ldexpl.c: Include infinity.h.
4518         (main): Use Infinityl.
4519         * tests/test-printf-posix.h: Include infinity.h.
4520         (test_function): Use Infinityd.
4521         * tests/test-roundf1.c: Include infinity.h.
4522         (main): Use Infinityf.
4523         * tests/test-round1.c: Include infinity.h.
4524         (main): Use Infinityd.
4525         * tests/test-roundl.c: Include infinity.h.
4526         (main): Use Infinityl.
4527         * tests/test-signbit.c: Include infinity.h.
4528         (test_signbitf): Use Infinityf.
4529         (test_signbitd): Use Infinityd.
4530         (test_signbitl): Use Infinityl.
4531         * tests/test-snprintf-posix.h: Include infinity.h.
4532         (test_function): Use Infinityd, Infinityl.
4533         * tests/test-sprintf-posix.h: Include infinity.h.
4534         (test_function): Use Infinityd, Infinityl.
4535         * tests/test-truncf1.c: Include infinity.h.
4536         (main): Use Infinityf.
4537         * tests/test-trunc1.c: Include infinity.h.
4538         (main): Use Infinityd.
4539         * tests/test-truncl.c: Include infinity.h.
4540         (main): Use Infinityl.
4541         * tests/test-vasnprintf-posix.c: Include infinity.h.
4542         (test_function): Use Infinityd, Infinityl.
4543         * tests/test-vasprintf-posix.c: Include infinity.h.
4544         (test_function): Use Infinityd, Infinityl.
4545         * modules/ceilf-tests (Files): Add tests/infinity.h.
4546         * modules/ceil-tests (Files): Likewise.
4547         * modules/ceill-tests (Files): Likewise.
4548         * modules/dprintf-posix-tests (Files): Likewise.
4549         * modules/floorf-tests (Files): Likewise.
4550         * modules/floor-tests (Files): Likewise.
4551         * modules/floorl-tests (Files): Likewise.
4552         * modules/fprintf-posix-tests (Files): Likewise.
4553         * modules/frexp-tests (Files): Likewise.
4554         * modules/frexp-nolibm-tests (Files): Likewise.
4555         * modules/frexpl-tests (Files): Likewise.
4556         * modules/frexpl-nolibm-tests (Files): Likewise.
4557         * modules/isfinite-tests (Files): Likewise.
4558         * modules/isinf-tests (Files): Likewise.
4559         * modules/isnan-tests (Files): Likewise.
4560         * modules/isnanf-tests (Files): Likewise.
4561         * modules/isnanf-nolibm-tests (Files): Likewise.
4562         * modules/isnand-tests (Files): Likewise.
4563         * modules/isnand-nolibm-tests (Files): Likewise.
4564         * modules/isnanl-tests (Files): Likewise.
4565         * modules/isnanl-nolibm-tests (Files): Likewise.
4566         * modules/ldexpl-tests (Files): Likewise.
4567         * modules/printf-posix-tests (Files): Likewise.
4568         * modules/roundf-tests (Files): Likewise.
4569         * modules/round-tests (Files): Likewise.
4570         * modules/roundl-tests (Files): Likewise.
4571         * modules/signbit-tests (Files): Likewise.
4572         * modules/snprintf-posix-tests (Files): Likewise.
4573         * modules/sprintf-posix-tests (Files): Likewise.
4574         * modules/truncf-tests (Files): Likewise.
4575         * modules/trunc-tests (Files): Likewise.
4576         * modules/truncl-tests (Files): Likewise.
4577         * modules/vasnprintf-posix-tests (Files): Likewise.
4578         * modules/vasprintf-posix-tests (Files): Likewise.
4579         * modules/vdprintf-posix-tests (Files): Likewise.
4580         * modules/vfprintf-posix-tests (Files): Likewise.
4581         * modules/vprintf-posix-tests (Files): Likewise.
4582         * modules/vsnprintf-posix-tests (Files): Likewise.
4583         * modules/vsprintf-posix-tests (Files): Likewise.
4584         * modules/xprintf-posix-tests (Files): Likewise.
4585
4586 2011-09-11  Bruno Haible  <bruno@clisp.org>
4587
4588         Ensure pid_t gets defined.
4589         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4590         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4591         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4592         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4593         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4594         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4595         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4596         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4597         * tests/test-fcntl-h.c: Check that pid_t is defined.
4598         * tests/test-sched.c: Likewise.
4599         * tests/test-termios.c: Likewise.
4600         * tests/test-time.c: Likewise.
4601         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4602         * doc/posix-headers/signal.texi: Likewise.
4603         * doc/posix-headers/sys_types.texi: Likewise.
4604         * doc/posix-headers/time.texi: Likewise.
4605
4606 2011-09-11  Bruno Haible  <bruno@clisp.org>
4607
4608         acl: Fix compilation on Solaris 10 (older version).
4609         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4610         of ACE_EVERYONE.
4611         * lib/set-mode-acl.c (qset_acl): Likewise.
4612         Reported by Christian Jullien <eligis@orange.fr>.
4613
4614 2011-09-10  Bruno Haible  <bruno@clisp.org>
4615
4616         iconv, unsetenv: Add support for MSVC compiler.
4617         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4618         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4619
4620 2011-09-10  Bruno Haible  <bruno@clisp.org>
4621
4622         *printf: Add support for MSVC compiler.
4623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4624         handles the exception caused by the %n directive. When cross-compiling,
4625         guess no on native Windows.
4626         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4627         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4628         emulate it through vsnprintf.
4629         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4630         * doc/posix-functions/dprintf.texi: Update documentation regarding
4631         MSVC 9.
4632         * doc/posix-functions/fprintf.texi: Likewise.
4633         * doc/posix-functions/printf.texi: Likewise.
4634         * doc/posix-functions/snprintf.texi: Likewise.
4635         * doc/posix-functions/sprintf.texi: Likewise.
4636         * doc/posix-functions/swprintf.texi: Likewise.
4637         * doc/posix-functions/vdprintf.texi: Likewise.
4638         * doc/posix-functions/vfprintf.texi: Likewise.
4639         * doc/posix-functions/vprintf.texi: Likewise.
4640         * doc/posix-functions/vsnprintf.texi: Likewise.
4641         * doc/posix-functions/vsprintf.texi: Likewise.
4642         * doc/glibc-functions/asprintf.texi: Likewise.
4643         * doc/glibc-functions/obstack_printf.texi: Likewise.
4644         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4645         * doc/glibc-functions/vasprintf.texi: Likewise.
4646
4647 2011-09-10  Bruno Haible  <bruno@clisp.org>
4648
4649         nocrash: Add support for native Windows.
4650         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4651
4652 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4653             Bruno Haible  <bruno@clisp.org>
4654
4655         absolute-header, include-next: Add support for MSVC compiler.
4656         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4657         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4658         directory separator in #line directives.
4659         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4660         recognize also backslash as directory separator in #line directives.
4661
4662 2011-09-08  Jim Meyering  <meyering@redhat.com>
4663
4664         maint.mk: mark the post-release commit log with "maint: " prefix
4665         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4666         one-line commit-log summary.
4667
4668 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4669             Bruno Haible  <bruno@clisp.org>
4670
4671         Doc about crypt functions.
4672         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4673         systems.
4674         * doc/posix-functions/encrypt.texi: Likewise.
4675         * doc/posix-functions/setkey.texi: Likewise.
4676
4677 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4678
4679         * lib/gc.h: Fix copyright header.
4680
4681 2011-09-07  Bruno Haible  <bruno@clisp.org>
4682
4683         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4684         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4685         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4686
4687 2011-09-07  Bruno Haible  <bruno@clisp.org>
4688
4689         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4690         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4691         * lib/freopen.c: Likewise.
4692         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4693         * lib/lstat.c: Likewise.
4694         * lib/stat.c: Likewise.
4695         * lib/open.c: Use different syntax for include of <fcntl.h>.
4696         * lib/openat.c: Include fcntl.h again, explicitly.
4697
4698 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4699
4700         parse-datetime: document the newly accepted format
4701         * doc/parse-datetime.texi (Combined date and time of day items):
4702         New section.
4703
4704 2011-09-06  Bruno Haible  <bruno@clisp.org>
4705
4706         acl: Fix a test failure on newer Solaris 10 with ZFS.
4707         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4708         ENOSYS as no ACL.
4709         Reported by Jim Meyering.
4710
4711 2011-09-06  Bruno Haible  <bruno@clisp.org>
4712
4713         acl: Update for AIX >= 5.3 with NFS.
4714         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4715         ENOSYS as no ACL.
4716
4717         acl: Fix a test failure on AIX >= 5.3 with NFS.
4718         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4719         as no ACL.
4720
4721 2011-09-06  Bruno Haible  <bruno@clisp.org>
4722
4723         acl: Fix a test failure on IRIX 6.5 with NFS.
4724         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4725         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4726         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4727         * lib/copy-acl.c (qcopy_acl): Likewise.
4728
4729 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4730
4731         openat: port to AIX 7.1 with large files
4732         AIX 7.1 does a "#define openat open64at" if large files are in use,
4733         so we can't simply #undef openat.  Use the orig_openat trick (similar
4734         to orig_open in lib/open.c) to work around the problem.  Problem
4735         reported by Kevin Brott for GNU tar, in the thread containing
4736         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4737         * lib/openat.c (__need_system_fcntl_h): Define first.
4738         Include <fcntl.h> and <sys/types.h> before undefining.
4739         (orig_openat) [HAVE_OPENAT]: New inline function.
4740         (openat) [HAVE_OPENAT]: Do not undef.
4741         (rpl_openat): Use orig_openat, not openat.
4742
4743 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4744             Bruno Haible  <bruno@clisp.org>
4745
4746         acl: Avoid errors on NonStop Kernel.
4747         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4748         ENOTSUP errors.
4749
4750 2011-09-05  Bruno Haible  <bruno@clisp.org>
4751
4752         acl: Clean up Solaris code.
4753         * lib/acl-internal.h: Remove no-op #if.
4754         * lib/file-has-acl.c: Likewise.
4755         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4756         * lib/copy-acl.c (qcopy_acl): Likewise.
4757
4758 2011-09-05  Bruno Haible  <bruno@clisp.org>
4759
4760         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4761         binaries built on the original Solaris 10.
4762         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4763         trivial.
4764
4765 2011-09-05  Bruno Haible  <bruno@clisp.org>
4766
4767         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4768         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4769         10.
4770         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4771         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4772         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4773         instead of acl_get, facl_get, acl_set, facl_set.
4774
4775 2011-09-05  Bruno Haible  <bruno@clisp.org>
4776
4777         copy-file: Try unit tests on more file systems.
4778         * tests/test-copy-file-1.sh: New file.
4779         * tests/test-copy-file-2.sh: New file.
4780         * modules/copy-file-tests (Files): Add them.
4781         (Makefile.am): Add them to TESTS.
4782
4783         acl: Try unit tests on more file systems.
4784         * tests/test-file-has-acl-1.sh: New file.
4785         * tests/test-file-has-acl-2.sh: New file.
4786         * tests/test-set-mode-acl-1.sh: New file.
4787         * tests/test-set-mode-acl-2.sh: New file.
4788         * tests/test-copy-acl-1.sh: New file.
4789         * tests/test-copy-acl-2.sh: New file.
4790         * modules/acl-tests (Files): Add them.
4791         (Makefile.am): Add them to TESTS.
4792
4793 2011-09-04  Bruno Haible  <bruno@clisp.org>
4794
4795         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4796         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4797         10.
4798         (OLD_ALLOW, OLD_DENY): New macros.
4799         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4800         ACE_ACCESS_ALLOWED_ACE_TYPE.
4801         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4802         ACE_ACCESS_DENIED_ACE_TYPE.
4803         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4804         (NEW_ACE_EXECUTE): Fix value.
4805         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4806         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4807         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4808         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4809         NEW_ACE_SYNCHRONIZE): New macros.
4810         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4811         instead of acl_fromtext, acl_set, facl_set.
4812         Fixes a coreutils/tests/cp/perm failure.
4813
4814 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4815
4816         openat: test for fstatat (..., 0) bug
4817         Further testing with tar suggests that fstatat (..., 0)
4818         does not work in general, on AIX 7.1; see
4819         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4820         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4821         replacement fstatat (which is what older AIX releases were using
4822         anyway).
4823         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4824         use is now changed to orig_fstatat.  This was probably the right
4825         thing to do anyway.
4826         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4827         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4828         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4829         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4830         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4831         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4832         if the bug is found.
4833
4834         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4835         This tests for another fstatat bug on AIX 7.1:
4836         fstatat (AT_FDCWD, ..., 0) does not work.  See
4837         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4838         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4839         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4840         (rpl_fstatat): Adjust so that it works around either (or both)
4841         bugs if present.
4842         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4843
4844 2011-09-03  Karl Berry  <karl@gnu.org>
4845
4846         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4847         in index entries.
4848
4849 2011-09-02  Bruno Haible  <bruno@clisp.org>
4850
4851         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4852         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4853         values of AR, ARFLAGS, RANLIB.
4854         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4855
4856 2011-09-02  Bruno Haible  <bruno@clisp.org>
4857
4858         Find 'ar' program that fits with --host argument.
4859         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4860
4861 2011-09-02  Bruno Haible  <bruno@clisp.org>
4862
4863         tests: init.sh: Support any non-GNU diff.
4864         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4865         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4866         Solaris 8.
4867
4868 2011-09-02  Bruno Haible  <bruno@clisp.org>
4869
4870         tests: init.sh: work also with any non-GNU diff that supports -u
4871         * tests/init.sh: Relax check for diff -u support.
4872         Rather than checking for GNU diff via --version, simply check
4873         for support for -u itself.  Useful at least on OpenBSD 4.9,
4874         AIX 7.1, IRIX 6.5, and Solaris 10.
4875
4876 2011-09-01  Bruno Haible  <bruno@clisp.org>
4877
4878         strtoimax, strtoumax: Document problem on HP-UX 11.
4879         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4880         * doc/posix-functions/strtoumax.texi: Likewise.
4881
4882 2011-09-01  Bruno Haible  <bruno@clisp.org>
4883
4884         strtoumax: Avoid link error on OSF/1 with DTK cc.
4885         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4886         defined as a function.
4887         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4888         strtoumax is defined, not whether it is declared.
4889
4890 2011-09-01  Bruno Haible  <bruno@clisp.org>
4891
4892         strtoimax: Avoid link error on OSF/1 with DTK cc.
4893         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4894         defined as a function.
4895         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4896         strtoimax is defined, not whether it is declared.
4897
4898 2011-09-01  Bruno Haible  <bruno@clisp.org>
4899
4900         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4901         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4902         as a function.
4903         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4904         whether it is declared.
4905
4906 2011-09-01  Bruno Haible  <bruno@clisp.org>
4907
4908         imaxabs: Avoid link error on OSF/1 with DTK cc.
4909         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4910         as a function.
4911         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4912         whether it is declared.
4913
4914 2011-09-01  Bruno Haible  <bruno@clisp.org>
4915
4916         Tests for module 'strtoumax'.
4917         * modules/strtoumax-tests: New file.
4918         * tests/test-strtoumax.c: New file.
4919
4920         Tests for module 'strtoimax'.
4921         * modules/strtoimax-tests: New file.
4922         * tests/test-strtoimax.c: New file.
4923
4924         Tests for module 'imaxdiv'.
4925         * modules/imaxdiv-tests: New file.
4926         * tests/test-imaxdiv.c: New file.
4927
4928         Tests for module 'imaxabs'.
4929         * modules/imaxabs-tests: New file.
4930         * tests/test-imaxabs.c: New file.
4931
4932 2011-09-01  Bruno Haible  <bruno@clisp.org>
4933
4934         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
4935         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
4936         pthread_create.
4937
4938 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4939
4940         openat: work around AIX 7.1 fstatat issue
4941         This should fix the problem that was not properly fixed
4942         in the previous change, dated 2011-08-30.
4943         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
4944         __need_system_stat_h defined.
4945         (orig_fstatat) [HAVE_FSTATAT]: New function.
4946         (rpl_fstatat): Go back to the old way of doing things,
4947         except call orig_fstatat instead of fstatat.
4948         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
4949         Remove unnecessary check whether fstatat fills in st_size etc.
4950
4951 2011-09-01  Bruno Haible  <bruno@clisp.org>
4952
4953         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
4954         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
4955         just include the system's header.
4956
4957 2011-08-31  Jim Meyering  <meyering@redhat.com>
4958
4959         tests: avoid spurious assertion failure in test-float.c on ppc64
4960         * tests/test-float.c (test_long_double): Comment out an assertion,
4961         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
4962         with gcc-4.4.4.
4963
4964         maint: indent with spaces, not TABs
4965         I need to get in the habit of running gnulib's "make check".
4966         Both of these would have been caught.
4967         * m4/largefile.m4: Indent with spaces, not TABs.
4968         * lib/parse-datetime.y (iso_8601_time): Likewise.
4969         Spotted by Pádraig Brady.
4970
4971         test-parse-datetime.c: accommodate a relatively strict gcc warning
4972         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
4973         to avoid a warning from gcc's -Werror=missing-declarations.
4974         Insert a few spaces-before-funcall-parenthesis.
4975
4976 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
4977
4978         parse-datetime: accept ISO 8601 date and time rep with "T" separator
4979         The parser now accepts ISO 8601 date-time strings with "T" as the
4980         separator.  It has long parsed dates like "2004-02-29 16:21:42"
4981         with a space between the date and time strings.  Now it also parses
4982         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
4983         variants like "2004-02-29T16:21:42.333-07:00"
4984         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
4985         of day representation using the 'T' separator character.
4986         * doc/parse-datetime.texi (General date syntax): replace use of
4987         deprecated --iso-8601 option with --rfc-3339 in example of date
4988         command output formats that can be parsed.
4989         * tests/test-parse-datetime.c (tm_diff): New function, taken from
4990         lib/parse-datetime.y.
4991         (gmt_offset): New function.
4992         (main): Add additional test cases to validate ISO8601 extended
4993         date and time of day parsing.
4994
4995 2011-08-31  Bruno Haible  <bruno@clisp.org>
4996
4997         freopen: Documentation.
4998         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
4999         name.
5000         Reported by Claudio Bley <claudio.bley@gmail.com>.
5001
5002 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5003
5004         freopen: Don't crash if the filename argument is NULL.
5005         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5006         NULL.
5007
5008 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5009
5010         openat: work around AIX 7.1 fstatat bug
5011         Problem reported by Kevin Brott for GNU tar, in the thread containing
5012         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5013         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5014         FSTATAT_ST_SIZE_ETC_BROKEN.
5015         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5016         rpl_fstatat.
5017         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5018         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5019         AC_CHECK_FUNCS_ONCE for fstatat.
5020         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5021         fchmodat, mkdirat, openat and unlinkat.
5022
5023 2011-08-30  Bruno Haible  <bruno@clisp.org>
5024
5025         Avoid endless recursions if config.h includes some header files.
5026         * lib/fopen.c (__need_FILE): Define already before including config.h.
5027         * lib/freopen.c (__need_FILE): Likewise.
5028         * lib/open.c (__need_system_fcntl_h): Likewise.
5029         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5030         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5031         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5032
5033 2011-08-25  Karl Berry  <karl@gnu.org>
5034
5035         * config/srclist.txt (ylwrap): new try.
5036         * build-aux/ylwrap: new file.
5037
5038 2011-08-23  Bruno Haible  <bruno@clisp.org>
5039
5040         tmpdir: Use a good default directory on native Windows.
5041         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5042         (P_tmpdir): Default to _P_tmpdir on native Windows.
5043         (path_search): On native Windows, try the value returned by GetTempPath
5044         before trying P_tmpdir.
5045         * modules/tmpdir (Depends-on): Add pathmax.
5046         Suggested by John Darrington <john@darrington.wattle.id.au>.
5047
5048 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5049
5050         doc: fix typo in README-release
5051         * top/README-release: Capitalize first word of a sentence.
5052
5053 2011-08-19  Jim Meyering  <meyering@redhat.com>
5054
5055         fts: do not exhaust memory when processing million-entry directories
5056         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5057         directory would require about 256*N bytes of memory.  Thus, it was
5058         easy to construct a directory too large to be processed by any of
5059         those tools.  With this change, fts' maximum memory utilization is
5060         now limited to around 30MB.
5061         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5062         (fts_read): When we've processed the final entry (i.e., when
5063         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5064         using the parent entry to read any remaining entries.  Dispatch
5065         depending on what fts_build returns:
5066         - NULL+stop, aka failure: stop
5067         - NULL otherwise: move up in the dir hierarchy
5068         - non-NULL: handle this new entry
5069         (fts_build): Declare and use new local, continue_readdir.
5070         Prepare to be called from fts_read, when the entries
5071         from a partially-read directory have just been exhausted.
5072         In that case, we'll skip the opendir and instead use the parent's
5073         fts_dirp and derive dir_fd from that.
5074         Finally, in the readdir loop, if we read max_entries entries,
5075         exit the loop ensuring *not* to call closedir.  This is required
5076         so that fts_dirp can be reused on a subsequent call.
5077         Prompted by Ben England's report of memory exhaustion in find
5078         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5079
5080         maint: fts: move decl of `dp' down into while loop; split a long line
5081         * lib/fts.c (fts_build): No semantic change.
5082
5083         fts: add/use new struct member, fts_dirp
5084         We are about to use this to manage any directory with
5085         too many entries to read all of them into memory at once.
5086         To do that, we'll need to save the DIR* pointer in each
5087         affected FTSENT struct.
5088         * lib/fts_.h: Include <dirent.h>.
5089         (struct FTSENT) [fts_dirp]: New member.
5090         * lib/fts.c (closedir_and_clear): Define.
5091         Use it in place of closedir so that we are sure to
5092         clear the new fts_dirp member when done with it.
5093         (fts_alloc): Initialize the new member.
5094         (fts_lfree): Free, if needed.
5095
5096         maint: fts: give __opendir2 a new parameter and rename
5097         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5098         than surreptitiously using sole caller's "dir_fd".
5099         (fts_opendir): Rename from __opendir2.
5100
5101         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5102         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5103
5104         maint: fts.c: correct off-by-one indentation
5105         * lib/fts.c (fts_build): Correct indentation, change style
5106         of a couple of block comments, and bracing style.
5107
5108         maint: fts.c: move __opendir2 #define "up" out of function body
5109         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5110
5111         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5112         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5113         out for a long time and besides was useful only on BSD systems.
5114
5115 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5116
5117         regex: port to Stratus OpenVOS
5118         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5119         define to empty, rather than attempting nonportable optimizations.
5120         Problem reported by Paul Green in:
5121         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5122         and fix suggested by Eric Blake in:
5123         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5124
5125 2011-08-17  Eric Blake  <eblake@redhat.com>
5126
5127         getcwd: fix test failures on mingw
5128         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5129         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5130         test if long directory cannot be created, and allow mingw errno.
5131
5132         getcwd-lgpl: fix m4 to match relaxed test for BSD
5133         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5134         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5135         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5136         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5137         signature problem.
5138
5139         getcwd: fix compilation on mingw64
5140         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5141         getcwd.
5142         Reported by Marc-André Lureau.
5143
5144         pipe2: silence compiler warning
5145         * lib/pipe2.c (pipe2): Hide label if it is not used.
5146
5147 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5148
5149         relocatable-prog: fix link error
5150         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5151         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5152         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5153         into modules/relocatable-lib without noticing that
5154         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5155         also needs to build relocatable.c.
5156
5157 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5158
5159         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5161         shell code: it contained a 'break' that was not in a loop.
5162         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5163         via a shell-language loop; this may have been true in old Autoconf
5164         versions, but it's not true in Autoconf 2.68.  I found this bug
5165         when testing coreutils git on Solaris 8, whose shell complains
5166         about the syntax error.
5167
5168 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5169
5170         * lib/base64.c: Fix comment to reference RFC 4648.
5171         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5172         <gvtulder@gmail.com>.
5173
5174 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5175
5176         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5177
5178         po/Makefile.in.in: fix make -q problem
5179         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5180         rule, since there's no file named 'check-macro-version' and its
5181         use as a file breaks make -q.
5182         (all): Don't depend on check-macro-version.
5183         (CHECK_MACRO_VERSION): New macro.
5184         (stamp-po): Use it.
5185
5186         configmake: fix make -q problem
5187         * modules/configmake (configmake.h): Update configmake.h's time stamp
5188         even if the file does not change.  Otherwise, 'make -q' fails.
5189         Problem reported by Simon Josefsson in
5190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5191
5192 2011-08-11  Jim Meyering  <meyering@redhat.com>
5193
5194         git-version-gen: correct the advice in a comment
5195         * build-aux/git-version-gen: Correct comment.
5196         Don't recommend to list .tarball-version in .gitignore.
5197
5198 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5199
5200         base64: fix off-by-one buffer size bug
5201         Problem and (trivial) fix reported by Gijs van Tulder in
5202         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5203         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5204         * tests/test-base64.c (main): Catch the bug.
5205
5206 2011-08-10  Eric Blake  <eblake@redhat.com>
5207
5208         closein: correct comments
5209         * lib/closein.c (close_stdin): Improve comments.
5210
5211 2011-08-09  Bruno Haible  <bruno@clisp.org>
5212
5213         More tests for 'fseeko'.
5214         * tests/test-fseeko3.c: New file, from Eric Blake.
5215         * tests/test-fseeko3.sh: New file.
5216         * modules/fseeko-tests (Files): Add them.
5217         (TESTS): Add test-fseeko3.sh.
5218         (check_PROGRAMS): Add test-fseeko3.
5219
5220 2011-08-09  Eric Blake  <eblake@redhat.com>
5221
5222         fseeko: remove unneeded hack
5223         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5224
5225         fseeko: fix bug on glibc
5226         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5227         Reported by John W. Eaton.
5228
5229 2011-08-08  Bruno Haible  <bruno@clisp.org>
5230
5231         unictype/base: Fix interoperability with preinstalled libunistring.
5232         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5233         Reported by Simon Josefsson.
5234
5235 2011-08-08  Bruno Haible  <bruno@clisp.org>
5236
5237         iswblank: Detect declaration correctly.
5238         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5239         AC_CHECK_DECLS invocation.
5240
5241 2011-08-08  Bruno Haible  <bruno@clisp.org>
5242
5243         tcgetsid: Detect declaration correctly.
5244         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5245         AC_CHECK_DECLS invocation.
5246         Reported by Simon Josefsson.
5247
5248 2011-08-08  Eric Blake  <eblake@redhat.com>
5249
5250         largefile: fix typo that regressed large file support
5251         * modules/largefile (configure.ac-early): Fix section name.
5252
5253 2011-08-06  Karl Berry  <karl@gnu.org>
5254
5255         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5256         a separate module.
5257
5258 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5259
5260         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5261         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5262         get prototype for free.
5263
5264 2011-08-04  Bruno Haible  <bruno@clisp.org>
5265
5266         Tests for module 'pathmax'.
5267         * modules/pathmax-tests: New file.
5268         * tests/test-pathmax.c: New file.
5269
5270         canonicalize-lgpl: Support larger filenames on the Hurd.
5271         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5272         Reported by Paul Eggert.
5273
5274         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5275         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5276         * lib/chdir-long.h: Include pathmax.h.
5277         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5278         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5279         (PATH_MAX): Remove code that is done by pathmax.h.
5280         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5281         * lib/tmpfile.c: Add a comment.
5282         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5283         * modules/chdir-long (Depends-on): Add pathmax.
5284         * modules/getcwd (Depends-on): Add pathmax.
5285         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5286         is not defined.
5287         * doc/posix-headers/limits.texi: Mention the pathmax module.
5288         * NEWS: Mention the change.
5289
5290 2011-08-02  Bruno Haible  <bruno@clisp.org>
5291
5292         pthread_sigmask: Actually use results of gl_THREADLIB.
5293         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5294         gl_THREADLIB, not gl_[]THREADLIB.
5295         Reported by Eric Blake.
5296
5297 2011-08-02  Jim Meyering  <meyering@redhat.com>
5298
5299         maint.mk: relax the default _gl_TS_function_match regexp
5300         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5301         space between function name and "(" in an "extern" declaration.
5302         That would fail to match a decl with no space there: extern void foo();
5303
5304 2011-07-31  Iain Nicol  <iain@thenicols.net>
5305
5306         git-version-gen: document that EXTRA_DIST must include .version
5307         * build-aux/git-version-gen: In the how-to-use comment, document
5308         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5309         will fail when run from an unpacked distribution tarball.
5310
5311 2011-08-01  Bruno Haible  <bruno@clisp.org>
5312
5313         wctype-h: Fix last change.
5314         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5315         REPLACE_TOWLOWER to 0.
5316         Reported by Sam Steingold <sds@gnu.org>.
5317
5318 2011-07-31  Bruno Haible  <bruno@clisp.org>
5319
5320         frexpl: Update autoconf test.
5321         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5322         according to changes of 2011-06-20.
5323
5324 2011-07-31  Bruno Haible  <bruno@clisp.org>
5325
5326         sys_utsname: Add support for Minix.
5327         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5328         <sys/utsname.h>.
5329         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5330         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5331
5332 2011-07-31  Bruno Haible  <bruno@clisp.org>
5333
5334         strings: Add support for Minix.
5335         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5336         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5337         * doc/posix-headers/strings.texi: Document the Minix problem.
5338
5339 2011-07-31  Bruno Haible  <bruno@clisp.org>
5340
5341         wctype-h: Add support for Minix.
5342         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5343         REPLACE_TOWLOWER.
5344         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5345         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5346         REPLACE_ISWCNTRL.
5347
5348 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5349
5350         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5351         This is a performance improvement for 64-bit hosts: it causes the
5352         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5353
5354 2011-07-31  Bruno Haible  <bruno@clisp.org>
5355
5356         stdioext: Add support for Minix.
5357         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5358         * lib/fpurge.c (fpurge): Likewise.
5359         * lib/freadahead.c (freadahead): Likewise.
5360         * lib/freadable.c (freadable): Likewise.
5361         * lib/freading.c (freading): Likewise.
5362         * lib/freadptr.c (freadptr): Likewise.
5363         * lib/freadseek.c (freadptrinc): Likewise.
5364         * lib/fseeko.c (rpl_fseeko): Likewise.
5365         * lib/fseterr.c (fseterr): Likewise.
5366         * lib/fwritable.c (fwritable): Likewise.
5367         * lib/fwriting.c (fwriting): Likewise.
5368         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5369         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5370
5371 2011-07-31  Bruno Haible  <bruno@clisp.org>
5372
5373         errno: Port to Minix.
5374         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5375         ECONNABORTED are defined.
5376         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5377         GNULIB_defined_ECONNABORTED): New macros.
5378         * lib/strerror-override.h (strerror_override): Test also
5379         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5380         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5381         ECONNABORTED.
5382         * doc/posix-headers/errno.texi: Mention the Minix problem.
5383
5384 2011-07-31  Bruno Haible  <bruno@clisp.org>
5385
5386         Work around declaration collisions on Minix.
5387         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5388         defined, set REPLACE_MBSINIT.
5389         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5390         defined, set REPLACE_MBRTOWC.
5391         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5392         set REPLACE_MBRLEN.
5393         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5394         defined, set REPLACE_MBSRTOWCS.
5395         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5396         defined, set REPLACE_WCRTOMB.
5397         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5398         defined, set REPLACE_WCSRTOMBS.
5399
5400 2011-07-31  Bruno Haible  <bruno@clisp.org>
5401
5402         Add support for Minix with ACK compiler.
5403         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5404         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5405         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5406
5407 2011-07-31  Bruno Haible  <bruno@clisp.org>
5408
5409         Documentation about Minix.
5410         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5411         * doc/glibc-headers/*.texi: Likewise.
5412         * doc/posix-functions/*.texi: Likewise.
5413         * doc/glibc-functions/*.texi: Likewise.
5414
5415 2011-07-31  Bruno Haible  <bruno@clisp.org>
5416
5417         snippet/warn-on-use: Fix indentation.
5418         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5419
5420 2011-07-25  Jim Meyering  <meyering@redhat.com>
5421
5422         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5423         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5424         commands.
5425
5426 2011-07-27  Jim Meyering  <meyering@redhat.com>
5427
5428         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5429         * top/maint.mk (gl_extract_significant_defines_): Now that
5430         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5431         gnulib/lib/signal.in.h, and now that we recommend to
5432         define-if-undefined those two symbols in application code,
5433         we must filter them out of the "significant" list.
5434         This avoids a "make syntax-check" failure in coreutils.
5435
5436 2011-07-26  Eric Blake  <eblake@redhat.com>
5437
5438         warnings: add comments about previous patch
5439         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5440         * m4/include_next.m4: Likewise.
5441         * m4/warn-on-use.m4: Likewise.
5442         * m4/warnings.m4: Likewise, and simplify use.
5443         Suggested by Stefano Lattarini.
5444
5445         include-next, warnings: support older autoconf
5446         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5447         AS_VAR_PUSHDEF in a way that works with older autoconf.
5448         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5449         Reported by Daniel P. Berrange.
5450
5451 2011-07-25  Bruno Haible  <bruno@clisp.org>
5452
5453         fseek, ftell: Fix doc.
5454         * doc/posix-functions/fseek.texi: Reword statement about
5455         AC_SYS_LARGEFILE.
5456         * doc/posix-functions/ftell.texi: Likewise.
5457
5458 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5459             Bruno Haible  <bruno@clisp.org>
5460
5461         Add dependencies to the 'largefile' module.
5462         * modules/fopen (Depends-on): Add 'largefile'.
5463         * modules/freopen (Depends-on): Likewise.
5464         * modules/fseeko (Depends-on): Likewise.
5465         * modules/ftello (Depends-on): Likewise.
5466         * modules/glob (Depends-on): Likewise.
5467         * modules/lseek (Depends-on): Likewise.
5468         * modules/lstat (Depends-on): Likewise.
5469         * modules/mkostemp (Depends-on): Likewise.
5470         * modules/mkostemps (Depends-on): Likewise.
5471         * modules/mkstemp (Depends-on): Likewise.
5472         * modules/mkstemps (Depends-on): Likewise.
5473         * modules/open (Depends-on): Likewise.
5474         * modules/openat (Depends-on): Likewise.
5475         * modules/pread (Depends-on): Likewise.
5476         * modules/pwrite (Depends-on): Likewise.
5477         * modules/scandir (Depends-on): Likewise.
5478         * modules/stat (Depends-on): Likewise.
5479         * modules/tmpfile (Depends-on): Likewise.
5480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5481         since the containing module now depends on the largefile module.
5482         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5483         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5484         off_t is fixed by gnulib.
5485         * doc/posix-functions/freopen.texi: Likewise.
5486         * doc/posix-functions/fseeko.texi: Likewise.
5487         * doc/posix-functions/fstatat.texi: Likewise.
5488         * doc/posix-functions/ftello.texi: Likewise.
5489         * doc/posix-functions/glob.texi: Likewise.
5490         * doc/posix-functions/lseek.texi: Likewise.
5491         * doc/posix-functions/lstat.texi: Likewise.
5492         * doc/posix-functions/mkstemp.texi: Likewise.
5493         * doc/posix-functions/open.texi: Likewise.
5494         * doc/posix-functions/openat.texi: Likewise.
5495         * doc/posix-functions/pread.texi: Likewise.
5496         * doc/posix-functions/pwrite.texi: Likewise.
5497         * doc/posix-functions/scandir.texi: Likewise.
5498         * doc/posix-functions/stat.texi: Likewise.
5499         * doc/posix-functions/tmpfile.texi: Likewise.
5500         * doc/glibc-functions/mkostemp.texi: Likewise.
5501         * doc/glibc-functions/mkostemps.texi: Likewise.
5502         * doc/glibc-functions/mkstemps.texi: Likewise.
5503
5504 2011-07-25  Bruno Haible  <bruno@clisp.org>
5505
5506         fcntl: Move AC_LIBOBJ invocation to module description.
5507         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5508         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5509
5510         fcntl: Remove call-in from fchdir.m4.
5511         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5513
5514         dup3: Remove potential call-in from fchdir.m4.
5515         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5517
5518         dup2: Move AC_LIBOBJ invocation to module description.
5519         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5520         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5521         Don't invoke AC_LIBOBJ.
5522         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5523
5524         dup2: Remove call-in from fchdir.m4.
5525         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5527
5528         fclose: Move AC_LIBOBJ invocation to module description.
5529         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5530         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5531         to 1.
5532         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5533
5534         fclose: Remove call-in from close.m4.
5535         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5536         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5537
5538         close: Move AC_LIBOBJ invocation to module description.
5539         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5540         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5541         1.
5542         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5543
5544         close: Remove call-in from fchdir.m4.
5545         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5546         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5547
5548         open: Move AC_LIBOBJ invocation to module description.
5549         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5550         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5551         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5552
5553         open: Remove call-in from fchdir.m4.
5554         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5555         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5556
5557         fchdir: Start to remove gl_REPLACE_* idiom.
5558         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5559         (gl_FUNC_FCHDIR): Invoke it.
5560
5561 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5562
5563         * lib/ftell.c (ftell): Comment out cast.
5564
5565         close: use gl_REPLACE_FCLOSE only if defined
5566         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5567         is defined.  The close module doesn't depend on the fclose module
5568         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5570         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5571
5572 2011-07-24  Jim Meyering  <meyering@redhat.com>
5573
5574         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5575         * tests/test-select.h (test_function): Declare as "static".
5576
5577 2011-07-24  Bruno Haible  <bruno@clisp.org>
5578
5579         doc: Mention the effects of AC_SYS_LARGEFILE.
5580         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5581         on this function.
5582         * doc/posix-functions/aio_error.texi: Likewise.
5583         * doc/posix-functions/aio_fsync.texi: Likewise.
5584         * doc/posix-functions/aio_read.texi: Likewise.
5585         * doc/posix-functions/aio_return.texi: Likewise.
5586         * doc/posix-functions/aio_suspend.texi: Likewise.
5587         * doc/posix-functions/aio_write.texi: Likewise.
5588         * doc/posix-functions/fgetpos.texi: Likewise.
5589         * doc/posix-functions/fopen.texi: Likewise.
5590         * doc/posix-functions/freopen.texi: Likewise.
5591         * doc/posix-functions/fsetpos.texi: Likewise.
5592         * doc/posix-functions/fstatvfs.texi: Likewise.
5593         * doc/posix-functions/ftruncate.texi: Likewise.
5594         * doc/posix-functions/ftw.texi: Likewise.
5595         * doc/posix-functions/getrlimit.texi: Likewise.
5596         * doc/posix-functions/glob.texi: Likewise.
5597         * doc/posix-functions/lio_listio.texi: Likewise.
5598         * doc/posix-functions/lockf.texi: Likewise.
5599         * doc/posix-functions/mkstemp.texi: Likewise.
5600         * doc/posix-functions/mmap.texi: Likewise.
5601         * doc/posix-functions/nftw.texi: Likewise.
5602         * doc/posix-functions/openat.texi: Likewise.
5603         * doc/posix-functions/opendir.texi: Likewise.
5604         * doc/posix-functions/posix_fadvise.texi: Likewise.
5605         * doc/posix-functions/posix_fallocate.texi: Likewise.
5606         * doc/posix-functions/pread.texi: Likewise.
5607         * doc/posix-functions/pwrite.texi: Likewise.
5608         * doc/posix-functions/readdir.texi: Likewise.
5609         * doc/posix-functions/readdir_r.texi: Likewise.
5610         * doc/posix-functions/rewinddir.texi: Likewise.
5611         * doc/posix-functions/scandir.texi: Likewise.
5612         * doc/posix-functions/seekdir.texi: Likewise.
5613         * doc/posix-functions/setrlimit.texi: Likewise.
5614         * doc/posix-functions/statvfs.texi: Likewise.
5615         * doc/posix-functions/telldir.texi: Likewise.
5616         * doc/posix-functions/tmpfile.texi: Likewise.
5617         * doc/posix-functions/truncate.texi: Likewise.
5618         * doc/glibc-functions/fallocate.texi: Likewise.
5619         * doc/glibc-functions/fstatfs.texi: Likewise.
5620         * doc/glibc-functions/fts_children.texi: Likewise.
5621         * doc/glibc-functions/fts_read.texi: Likewise.
5622         * doc/glibc-functions/getdirentries.texi: Likewise.
5623         * doc/glibc-functions/mkostemp.texi: Likewise.
5624         * doc/glibc-functions/mkostemps.texi: Likewise.
5625         * doc/glibc-functions/mkstemps.texi: Likewise.
5626         * doc/glibc-functions/preadv.texi: Likewise.
5627         * doc/glibc-functions/pwritev.texi: Likewise.
5628         * doc/glibc-functions/sendfile.texi: Likewise.
5629         * doc/glibc-functions/statfs.texi: Likewise.
5630
5631 2011-07-24  Bruno Haible  <bruno@clisp.org>
5632
5633         doc: Fix typo.
5634         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5635
5636 2011-07-24  Bruno Haible  <bruno@clisp.org>
5637
5638         doc: Mention fsusage.
5639         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5640
5641 2011-07-24  Bruno Haible  <bruno@clisp.org>
5642
5643         doc: Mention new glibc headers and functions.
5644         * doc/glibc-headers/gshadow.texi: New file.
5645         * doc/glibc-functions/endsgent.texi: New file.
5646         * doc/glibc-functions/fgetsgent.texi: New file.
5647         * doc/glibc-functions/fgetsgent_r.texi: New file.
5648         * doc/glibc-functions/getsgent.texi: New file.
5649         * doc/glibc-functions/getsgent_r.texi: New file.
5650         * doc/glibc-functions/getsgnam.texi: New file.
5651         * doc/glibc-functions/getsgnam_r.texi: New file.
5652         * doc/glibc-functions/putsgent.texi: New file.
5653         * doc/glibc-functions/setsgent.texi: New file.
5654         * doc/glibc-functions/sgetsgent.texi: New file.
5655         * doc/glibc-functions/sgetsgent_r.texi: New file.
5656         * doc/glibc-functions/malloc_info.texi: New file.
5657         * doc/glibc-functions/preadv.texi: New file.
5658         * doc/glibc-functions/pwritev.texi: New file.
5659         * doc/glibc-functions/register_printf_modifier.texi: New file.
5660         * doc/glibc-functions/register_printf_specifier.texi: New file.
5661         * doc/glibc-functions/register_printf_type.texi: New file.
5662         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5663         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5664         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5665         * doc/glibc-functions/pthread_getname_np.texi: New file.
5666         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5667         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5668         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5669         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5670         * doc/glibc-functions/pthread_setname_np.texi: New file.
5671         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5672         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5673         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5674         * doc/glibc-functions/qsort_r.texi: New file.
5675         * doc/glibc-functions/quick_exit.texi: New file.
5676         * doc/glibc-functions/syncfs.texi: New file.
5677         * doc/gnulib.texi: Include them.
5678         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5679         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5680         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5681         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5682         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5683         * doc/glibc-functions/execvpe.texi: Likewise.
5684
5685 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5686
5687         ftell: don't include <unistd.h>
5688         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5689         guaranteed to define off_t, and the ftell module depends on the
5690         stdio module.
5691
5692         ftell: do not assume wraparound signed arithmetic
5693         * lib/ftell.c: Include <limits.h>.
5694         (ftell): Don't assume wraparound signed arithmetic.
5695
5696 2011-07-24  Bruno Haible  <bruno@clisp.org>
5697
5698         close: No longer depend on module 'fclose'.
5699         * modules/close (Depends-on): Remove fclose.
5700         * NEWS: Mention the change.
5701         Suggested by Sam Steingold <sds@gnu.org>.
5702
5703 2011-07-24  Bruno Haible  <bruno@clisp.org>
5704
5705         fsusage: Enable large volume support on AIX >= 5.2.
5706         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5707         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5708         instead of STAT_STATVFS.
5709         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5710
5711         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5712         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5713         f_blocks field only on MacOS X.
5714
5715         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5716         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5717         * modules/fsusage (Depends-on): Add largefile.
5718
5719 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5720
5721         * README: Modernize discussion of signed integers.
5722         Assuming overflow wraparound is no longer safe.
5723         Mention ones' complement and signed magnitude.
5724
5725 2011-07-22  Bruno Haible  <bruno@clisp.org>
5726
5727         select tests, pselect tests: Refactor.
5728         * tests/test-select.h: New file, extracted from tests/test-select.c.
5729         (select_fn): New type.
5730         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5731         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5732         test_pipe): Add my_select argument.
5733         (test_function): Renamed from main. Add my_select argument.
5734         * tests/test-select.c: Move most code to tests/test-select.h. Include
5735         test-select.h.
5736         * modules/select-tests (Files): Add tests/test-select.h.
5737         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5738         (my_select, main): New functions.
5739         * modules/pselect-tests (Files): Add tests/test-select.h,
5740         tests/macros.h, tests/signature.h.
5741         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5742         (configure.ac): Check for <sys/wait.h>.
5743
5744 2011-07-22  Bruno Haible  <bruno@clisp.org>
5745
5746         sys_select tests: Check the signature of FD_*.
5747         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5748         signature tests from here...
5749         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5750         here.
5751         * modules/sys_select-tests (Files): Add tests/signature.h.
5752
5753 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5754
5755         largefile: new module, replacing large-inode
5756         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5757         * MODULES.html.sh: Add largefile, remove large-inode.
5758         * modules/largefile, m4/largefile.m4: New files.
5759         * modules/large-inode, m4/large-inode.m4: Remove.
5760
5761         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5762         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5763         implementations that use only 32 bits to count blocks.
5764         On typical hosts with 1024-byte blocks, this fails with file
5765         systems as small as 4 TiB.  Problem reported by Herb Wartens
5766         <http://debbugs.gnu.org/9140> and this should also fix a similar
5767         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5768
5769         large-inode: New module
5770         * MODULES.html.sh: Add it.
5771         * modules/large-inode, m4/large-inode.m4: New files.
5772
5773         extensions: Enable extensions on MacOS X 10.5 and later.
5774         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5775
5776 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5777
5778         file-has-acl: use acl_extended_file_nofollow if available
5779         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5780         (acl_extended_file): New macro.
5781         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5782         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5783
5784 2011-07-21  Bruno Haible  <bruno@clisp.org>
5785
5786         Declare system functions in a way that works with C++.
5787         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5788         declare fdopendir as extern "C".
5789         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5790         declare frexpl as extern "C".
5791         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5792         declare gai_strerror as extern "C".
5793         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5794         programs, declare gai_strerror as extern "C".
5795         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5796         declare getlogin_r as extern "C".
5797         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5798         as extern "C".
5799         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5800         declare ldexpl as extern "C".
5801         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5802         as extern "C".
5803         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5804         program, declare getmntinfo as extern "C".
5805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5806         stpncpy as extern "C".
5807         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5808         program, declare __xpg_strerror_r as extern "C".
5809         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5810         strndup as extern "C".
5811         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5812         declare memset and bzero as extern "C".
5813         Reported by Sam Steingold <sds@gnu.org>.
5814
5815 2011-07-12  Jim Meyering  <meyering@redhat.com>
5816
5817         maint.mk: prohibit inclusion of "verify.h" without use
5818         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5819
5820 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5821
5822         timer-time: A new module to check for timer_settime()
5823         * m4/timer_time.m4: Check for the posix function.
5824         * modules/timer-time: Add the new module.
5825         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5826         Mention it.
5827
5828 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5829             Bruno Haible  <bruno@clisp.org>
5830
5831         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5832         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5833         not defined, assume POSIX threads and look for pthread_sigmask in
5834         $LIBS, without changing $CPPFLAGS.
5835
5836 2011-07-19  Bruno Haible  <bruno@clisp.org>
5837
5838         strstr: Update cross-compilation guess.
5839         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5840         CPUs, guess no, in view of glibc
5841         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5842         Suggested by Eric Blake. Reported by Reuben Thomas.
5843
5844 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5845
5846         getopt-gnu: suppress core dumps from detection code
5847         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5848         to suppress core dumps that may well occur on glibc systems.
5849         * modules/getopt-gnu: Depend on nocrash.
5850
5851 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         pthread_sigmask: ensure usleep is declared
5854         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5855         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5856
5857 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5858
5859         doc: Document NonStop portability issues.
5860         * doc/posix-functions/sigaction.texi (sigaction):
5861         * doc/posix-headers/signal.texi (signal.h):
5862         Document NonStop.  See Joachim Schmitz in
5863         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5864
5865 2011-07-15  Bruno Haible  <bruno@clisp.org>
5866
5867         ffsl, ffsll: Avoid unportable behaviour.
5868         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5869
5870 2011-07-15  Bruno Haible  <bruno@clisp.org>
5871
5872         ffs: More tests.
5873         * tests/test-ffs.c (NBITS): New macro.
5874         (main): Add more tests.
5875         * tests/test-ffsl.c (NBITS): New macro.
5876         (main): Add more tests.
5877         * tests/test-ffsll.c (NBITS): New macro.
5878         (main): Add more tests.
5879
5880 2011-07-15  Eric Blake  <eblake@redhat.com>
5881
5882         ffsl, ffsll: new modules
5883         * modules/ffsl: New file.
5884         * modules/ffsll: Likewise.
5885         * m4/ffsl.m4: Likewise.
5886         * m4/ffsll.m4: Likewise.
5887         * lib/ffsl.c: Likewise.
5888         * lib/ffsl.h: Likewise.
5889         * lib/ffsll.c: Likewise.
5890         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5891         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5892         * modules/string (Makefile.am): Substitute witnesses.
5893         * lib/strings.in.h (ffsl, ffsll): Declare.
5894         * modules/ffsl-tests: New test file.
5895         * modules/ffsll-tests: Likewise.
5896         * tests/test-ffsl.c: Likewise.
5897         * tests/test-ffsll.c: Likewise.
5898         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5899         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5900         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5901
5902         ffs: fix m4 prerequisite
5903         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5904
5905         ffs: avoid undefined behavior
5906         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5907         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5908         Reported by Bruno Haible.
5909
5910 2011-07-12  Bruno Haible  <bruno@clisp.org>
5911
5912         pthread_sigmask: Rely on module 'threadlib'.
5913         * modules/pthread_sigmask (Depends-on): Add threadlib.
5914         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5915         is defined.
5916
5917 2011-07-12  Bruno Haible  <bruno@clisp.org>
5918
5919         regex: Depend on module 'strcase'.
5920         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5921
5922 2011-07-12  Jim Meyering  <meyering@redhat.com>
5923
5924         warn-on-use: fix typo in file name
5925         * modules/snippet/warn-on-use (Files): Correct file name:
5926         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5927
5928 2011-07-12  Bruno Haible  <bruno@clisp.org>
5929
5930         strings: Document module.
5931         * doc/posix-headers/strings.texi: Mention module 'strings'.
5932
5933 2011-07-12  Bruno Haible  <bruno@clisp.org>
5934
5935         Rename module '_Noreturn' to 'snippet/_Noreturn'.
5936         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
5937         (Files, Makefile.am): Update.
5938         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
5939         * modules/stdlib (Depends-on): Update.
5940
5941 2011-07-12  Bruno Haible  <bruno@clisp.org>
5942
5943         * NEWS: Mention the changes.
5944
5945         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
5946         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
5947         (Files, Makefile.am): Update.
5948         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
5949         * modules/arpa_inet (Depends-on): Update.
5950         * modules/ctype (Depends-on): Update.
5951         * modules/dirent (Depends-on): Update.
5952         * modules/fcntl-h (Depends-on): Update.
5953         * modules/glob (Depends-on): Update.
5954         * modules/iconv-h (Depends-on): Update.
5955         * modules/inttypes-incomplete (Depends-on): Update.
5956         * modules/langinfo (Depends-on): Update.
5957         * modules/locale (Depends-on): Update.
5958         * modules/math (Depends-on): Update.
5959         * modules/netdb (Depends-on): Update.
5960         * modules/poll-h (Depends-on): Update.
5961         * modules/pty (Depends-on): Update.
5962         * modules/search (Depends-on): Update.
5963         * modules/signal (Depends-on): Update.
5964         * modules/spawn (Depends-on): Update.
5965         * modules/stdio (Depends-on): Update.
5966         * modules/stdlib (Depends-on): Update.
5967         * modules/string (Depends-on): Update.
5968         * modules/strings (Depends-on): Update.
5969         * modules/sys_file (Depends-on): Update.
5970         * modules/sys_ioctl (Depends-on): Update.
5971         * modules/sys_select (Depends-on): Update.
5972         * modules/sys_socket (Depends-on): Update.
5973         * modules/sys_stat (Depends-on): Update.
5974         * modules/sys_time (Depends-on): Update.
5975         * modules/sys_times (Depends-on): Update.
5976         * modules/sys_utsname (Depends-on): Update.
5977         * modules/sys_wait (Depends-on): Update.
5978         * modules/termios (Depends-on): Update.
5979         * modules/time (Depends-on): Update.
5980         * modules/unistd (Depends-on): Update.
5981         * modules/wchar (Depends-on): Update.
5982         * modules/wctype-h (Depends-on): Update.
5983         * MODULES.html.sh (Support for building libraries and executables):
5984         Update.
5985
5986         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
5987         * modules/snippet/unused-parameter: Renamed from
5988         modules/unused-parameter.
5989         (Files, Makefile.am): Update.
5990         * build-aux/snippet/unused-parameter.h: Renamed from
5991         build-aux/unused-parameter.h.
5992         * modules/selinux-h (Depends-on): Update.
5993         * modules/unistr/base (Depends-on): Update.
5994         * MODULES.html.sh (Core language properties): Update.
5995
5996         Rename module 'link-warning' to 'snippet/link-warning'.
5997         * modules/snippet/link-warning: Renamed from modules/link-warning.
5998         (Files, Makefile.am): Update.
5999         * build-aux/snippet/link-warning.h: Renamed from
6000         build-aux/link-warning.h.
6001         * MODULES.html.sh (Support for building libraries and executables):
6002         Update.
6003
6004         Rename module 'c++defs' to 'snippet/c++defs'.
6005         * modules/snippet/c++defs: Renamed from modules/c++defs.
6006         (Files, Makefile.am): Update.
6007         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6008         * modules/arpa_inet (Depends-on): Update.
6009         * modules/ctype (Depends-on): Update.
6010         * modules/dirent (Depends-on): Update.
6011         * modules/fcntl-h (Depends-on): Update.
6012         * modules/glob (Depends-on): Update.
6013         * modules/iconv-h (Depends-on): Update.
6014         * modules/langinfo (Depends-on): Update.
6015         * modules/locale (Depends-on): Update.
6016         * modules/math (Depends-on): Update.
6017         * modules/netdb (Depends-on): Update.
6018         * modules/poll-h (Depends-on): Update.
6019         * modules/pty (Depends-on): Update.
6020         * modules/search (Depends-on): Update.
6021         * modules/signal (Depends-on): Update.
6022         * modules/spawn (Depends-on): Update.
6023         * modules/stdio (Depends-on): Update.
6024         * modules/stdlib (Depends-on): Update.
6025         * modules/string (Depends-on): Update.
6026         * modules/strings (Depends-on): Update.
6027         * modules/sys_ioctl (Depends-on): Update.
6028         * modules/sys_select (Depends-on): Update.
6029         * modules/sys_socket (Depends-on): Update.
6030         * modules/sys_stat (Depends-on): Update.
6031         * modules/sys_time (Depends-on): Update.
6032         * modules/sys_wait (Depends-on): Update.
6033         * modules/termios (Depends-on): Update.
6034         * modules/time (Depends-on): Update.
6035         * modules/unistd (Depends-on): Update.
6036         * modules/wchar (Depends-on): Update.
6037         * modules/wctype-h (Depends-on): Update.
6038
6039         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6040         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6041         (Files, Makefile.am): Update.
6042         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6043         * modules/argv-iter (Depends-on): Update.
6044         * modules/arpa_inet (Depends-on): Update.
6045         * modules/dirent (Depends-on): Update.
6046         * modules/fcntl-h (Depends-on): Update.
6047         * modules/fnmatch (Depends-on): Update.
6048         * modules/getopt-posix (Depends-on): Update.
6049         * modules/glob (Depends-on): Update.
6050         * modules/iconv-h (Depends-on): Update.
6051         * modules/inttypes-incomplete (Depends-on): Update.
6052         * modules/locale (Depends-on): Update.
6053         * modules/math (Depends-on): Update.
6054         * modules/netdb (Depends-on): Update.
6055         * modules/search (Depends-on): Update.
6056         * modules/signal (Depends-on): Update.
6057         * modules/spawn (Depends-on): Update.
6058         * modules/stdio (Depends-on): Update.
6059         * modules/stdlib (Depends-on): Update.
6060         * modules/string (Depends-on): Update.
6061         * modules/strings (Depends-on): Update.
6062         * modules/sys_socket (Depends-on): Update.
6063         * modules/sys_stat (Depends-on): Update.
6064         * modules/sys_time (Depends-on): Update.
6065         * modules/sys_times (Depends-on): Update.
6066         * modules/sys_utsname (Depends-on): Update.
6067         * modules/time (Depends-on): Update.
6068         * modules/unistd (Depends-on): Update.
6069         * modules/wchar (Depends-on): Update.
6070         * MODULES.html.sh (Support for building libraries and executables):
6071         Update.
6072
6073 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6074
6075         Improvements on _Noreturn and related modules.
6076
6077         modules/_Exit-tests: test _Noreturn too
6078         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6079         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6080         (main): Use them.
6081
6082         stdnoreturn, stdnoreturn-tests: remove modules
6083         They're not needed here and a bit premature for use elsewhere.  See
6084         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6085         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6086         * tests/test-stdnoreturn.c: Remove files.
6087         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6088         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6089         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6090         and using noreturn.
6091         * modules/openat, modules/sigpipe-die, modules/xalloc:
6092         * modules/xmemdup0, modules/xstrtol:
6093         Remove dependency on stdnoreturn.
6094
6095         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6096         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6097         Reparenthesize to avoid GCC warning.
6098         Support Microsoft's syntax.
6099         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6100
6101         _Noreturn-tests: remove module
6102         * modules/_Noreturn-tests: Remove.
6103         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6104         * tests/test-_Noreturn.c: Remove.
6105         * tests/test-stdnoreturn.c: Merge from the old
6106         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6107
6108 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6109
6110         _Noreturn, stdnoreturn, and related modules.
6111
6112         * top/maint.mk: Adjust to new noreturn support.
6113         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6114         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6115
6116         xalloc: use stdnoreturn.h
6117         * lib/xalloc.h: Include <stdnoreturn.h>.
6118         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6119         * modules/xalloc (Depends-on): Add stdnoreturn.
6120
6121         xstrtol: use stdnoreturn.h
6122         * lib/xstrtol.h: Include <stdnoreturn.h>.
6123         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6124         * modules/xstrtol (Depends-on): Add stdnoreturn.
6125
6126         xmemdup0: use stdnoreturn.h
6127         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6128         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6129         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6130
6131         sigpipe-die: use stdnoreturn.h
6132         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6133         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6134         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6135
6136         openat: use stdnoreturn.h
6137         * lib/openat.h: Include <stdnoreturn.h>.
6138         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6139         * modules/openat (Depends-on): Add stdnoreturn.
6140
6141         * lib/openat-die.c (openat_save_fail): Modernize comment.
6142
6143         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6144
6145         * lib/glthread/thread.h: Modernize comment.
6146
6147         obstack: use _Noreturn
6148         * lib/obstack.c (__attribute__): Remove macro.
6149         (print_and_abort): Use _Noreturn.
6150
6151         c-stack: use _Noreturn
6152         * lib/c-stack.c (die, overflow_handler, segv_handler):
6153         Use _Noreturn rather than __attribute__((noreturn)).
6154
6155         argmatch-tests, exclude_tests: use _Noreturn
6156         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6157         Remove.
6158         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6159
6160         stdlib: use _Noreturn
6161         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6162         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6163         * modules/stdlib (Depends-on): Add _Noreturn.
6164         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6165
6166         stdnoreturn-tests: new module
6167         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6168
6169         stdnoreturn: new module
6170         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6171         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6172
6173         _Noreturn-tests: new module
6174         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6175
6176         _Noreturn: new module
6177         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6178         New section, mentioning it.
6179         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6180
6181         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6182
6183 2011-07-11  Eric Blake  <eblake@redhat.com>
6184
6185         ffs: new module
6186         * modules/ffs: New file.
6187         * m4/ffs.m4: Likewise.
6188         * lib/ffs.c: Likewise.
6189         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6190         * modules/strings (Makefile.am): Substitute witness.
6191         (Depends-on): Add c++defs.
6192         * lib/strings.in.h (ffs): Declare.
6193         * modules/ffs-tests: New test file.
6194         * tests/test-ffs.c: Test new module.
6195         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6196         * doc/posix-functions/ffs.texi (ffs): Likewise.
6197
6198         regex: avoid compiler warning
6199         * lib/regex.c (includes): Include <strings.h>, for use of
6200         strcasecmp in regcomp.c.
6201         Reported by Joachim Schmitz.
6202
6203 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6204
6205         stdint: respect system's intmax_t if INTMAX_MAX
6206         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6207         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6208         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6209         long but int64_t is long long, and where we will clash with the
6210         system intmax_t if we override it.  See
6211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6212         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6213         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6214         similarly for UINTMAX_C.
6215
6216 2011-07-08  Bruno Haible  <bruno@clisp.org>
6217
6218         pthread_sigmask tests: Avoid a compiler warning.
6219         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6220         non-zero.
6221
6222         sigprocmask tests: A better way to avoid a compiler warning.
6223         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6224         (main): Complain if system() returns non-zero.
6225         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6226
6227 2011-07-08  Bruno Haible  <bruno@clisp.org>
6228
6229         pthread_sigmask: Work around IRIX bug.
6230         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6231         bug.
6232         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6233         there may be unblocked pending signals.
6234         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6235
6236 2011-07-08  Bruno Haible  <bruno@clisp.org>
6237
6238         pthread_sigmask: Work around Cygwin bug.
6239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6240         bug.
6241         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6242         the system's pthread_sigmask function.
6243         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6244
6245 2011-07-08  Bruno Haible  <bruno@clisp.org>
6246
6247         pthread_sigmask: Work around bug in single-threaded implementation.
6248         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6249         FreeBSD, HP-UX, Solaris bug.
6250         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6251         * lib/pthread_sigmask.c: Include <stddef.h>.
6252         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6253         the system's pthread_sigmask function.
6254         * modules/pthread_sigmask (configure.ac): Invoke
6255         gl_PREREQ_PTHREAD_SIGMASK.
6256         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6257         HP-UX, Solaris.
6258
6259 2011-07-08  Eric Blake  <eblake@redhat.com>
6260
6261         test-sigprocmask: avoid compiler warning
6262         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6263         * tests/test-sigprocmask.c (main): Use it to silence warning.
6264         Reported by Jim Meyering.
6265
6266         test-snprintf: avoid compiler warning
6267         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6268         * tests/test-vsnprintf.c (main): Likewise.
6269         Reported by Jim Meyering.
6270
6271 2011-07-08  Bruno Haible  <bruno@clisp.org>
6272
6273         Tests for module 'pthread_sigmask'.
6274         * modules/pthread_sigmask-tests: New file.
6275         * tests/test-pthread_sigmask1.c: New file, based on
6276         tests/test-sigprocmask.c.
6277         * tests/test-pthread_sigmask2.c: New file.
6278
6279 2011-07-08  Jim Meyering  <meyering@redhat.com>
6280
6281         test-getopt.h: avoid warning about an unused variable
6282         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6283
6284 2011-07-07  Jim Meyering  <meyering@redhat.com>
6285
6286         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6287         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6288         now that it no longer contains leading TABs.
6289         Remove unused "url=FIXME" statement.
6290
6291 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6292
6293         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6294         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6295         When gl_THREADLIB is not in use, assume that the POSIX sematics
6296         are desired.  This is better for Emacs, which uses POSIX semantics
6297         on GNUish and/or POSIXish platforms, and does not use threads at
6298         all otherwise.
6299
6300         pthread_sigmask: fix typo when testing for libraries
6301         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6302         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6303
6304 2011-07-08  Eric Blake  <eblake@redhat.com>
6305
6306         fts: introduce FTS_NOATIME
6307         * lib/fts_.h (FTS_NOATIME): New bit flag.
6308         (FTS_OPTIONMASK): Adjust.
6309         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6310         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6311
6312 2011-07-08  Bruno Haible  <bruno@clisp.org>
6313
6314         Tests for module 'thread'.
6315         * modules/thread-tests: New file.
6316         * tests/test-thread_self.c: New file.
6317         * tests/test-thread_create.cc: New file.
6318
6319 2011-07-08  Bruno Haible  <bruno@clisp.org>
6320
6321         thread: Avoid gcc warnings when using gl_thread_self().
6322         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6323         'void *'.
6324         (gl_thread_self_pointer): Update.
6325
6326 2011-07-07  Bruno Haible  <bruno@clisp.org>
6327
6328         signal-c++-tests: Check declaration of pthread_sigmask.
6329         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6330         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6331         $(LIB_PTHREAD_SIGMASK).
6332
6333 2011-07-07  Bruno Haible  <bruno@clisp.org>
6334
6335         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6336         * lib/signal.in.h (pthread_sigmask): Override if
6337         REPLACE_PTHREAD_SIGMASK is 1.
6338         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6339         REPLACE_PTHREAD_SIGMASK.
6340         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6341         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6342         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6343         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6344         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6345
6346 2011-07-07  Bruno Haible  <bruno@clisp.org>
6347
6348         pthread_sigmask: Ensure declaration in <signal.h>.
6349         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6350         include <pthread.h>.
6351         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6352         problem.
6353
6354 2011-07-07  Bruno Haible  <bruno@clisp.org>
6355
6356         pthread_sigmask: Document the module.
6357         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6358
6359 2011-07-07  Bruno Haible  <bruno@clisp.org>
6360
6361         pthread_sigmask: Follow gnulib conventions.
6362         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6363         gl_PTHREAD_SIGMASK.
6364         * modules/pthread_sigmask (configure.ac): Update.
6365
6366 2011-07-07  Bruno Haible  <bruno@clisp.org>
6367
6368         pthread_sigmask: Make declaration C++ safe.
6369         * lib/signal.in.h: In two special conditions, just do an #include_next.
6370         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6371         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6372         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6373         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6374         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6375         not REPLACE_PTHREAD_MASK.
6376         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6377         not REPLACE_PTHREAD_MASK.
6378         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6379
6380 2011-07-07  Bruno Haible  <bruno@clisp.org>
6381
6382         pthread_sigmask: Fix return value.
6383         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6384         * lib/pthread_sigmask.c: New file.
6385         * modules/pthread_sigmask (Files): Add it.
6386         (configure.ac): Invoke AC_LIBOBJ.
6387
6388 2011-07-07  Eric Blake  <eblake@redhat.com>
6389
6390         getopt: more portable argv creation
6391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6392         const, use char arrays rather than strings.
6393         Suggested by Paul Eggert.
6394
6395 2011-07-07  Bruno Haible  <bruno@clisp.org>
6396
6397         Tests for module 'sigprocmask'.
6398         * modules/sigprocmask-tests: New file.
6399         * tests/test-sigprocmask.c: New file.
6400
6401 2011-07-07  Bruno Haible  <bruno@clisp.org>
6402
6403         float tests: Tweak.
6404         * tests/test-float.c (main): Tweak skip message.
6405
6406 2011-07-07  Eric Blake  <eblake@redhat.com>
6407
6408         getopt: avoid compiler warning during configure
6409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6410         assigning string literals to non-const pointer.
6411
6412         getopt-gnu: avoid crash in glibc getopt
6413         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6414         * tests/test-getopt.h (test_getopt): Enhance test.
6415         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6416         * doc/posix-functions/getopt.texi (getopt): Document it.
6417         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6418         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6419         Likewise.
6420
6421 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6422
6423         getopt: handle W; without long options in getopt [BZ #12922]
6424         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6425         but no long options are defined, just return 'W'.
6426
6427 2011-07-07  Bruno Haible  <bruno@clisp.org>
6428
6429         Avoid literal tabs.
6430         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6431         variable containing a tab instead of a literal tab.
6432         Reported by Jim Meyering.
6433
6434 2011-07-07  Bruno Haible  <bruno@clisp.org>
6435
6436         Comments.
6437         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6438
6439 2011-07-06  Bruno Haible  <bruno@clisp.org>
6440
6441         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6442         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6443         <winsock2.h>.
6444         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6445         lib/sys_socket.in.h.
6446         (close, gethostname): Hide declarations from <winsock2.h>.
6447         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6448         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6449         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6450         (select): Don't override if gnulib's <sys/select.h> was already
6451         included.
6452         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6453         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6454         setsockopt, shutdown, select): Tweak indentation.
6455
6456 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6457
6458         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6459         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6460         in an application that does not use the sys_select module.
6461
6462 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6463
6464         poll: do not return 0 on timeout=-1
6465         * lib/poll.c: Loop with yield if no events occured
6466
6467 2011-07-06  Eric Blake  <eblake@redhat.com>
6468
6469         pthread_sigmask: always replace when not using pthread
6470         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6471         replacement when using some threading other than pthread.  Fix
6472         logic bug.
6473
6474 2011-07-06  Bruno Haible  <bruno@clisp.org>
6475
6476         Comments.
6477         * m4/printf.m4: Update comments about mingw.
6478
6479 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6480
6481         sys_select: define sigset_t more portably
6482         * lib/sys_select.in.h: Always include <sys/types.h>, since
6483         we now need sigset_t and mingw defines it there.
6484         Include <signal.h> before split inclusion guard, to avoid
6485         mishaps on Solaris, whose <signal.h> eventually includes us.
6486         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6487         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6488         which come from ...
6489         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6490         gl_CHECK_TYPE_SIGSET_T.
6491         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6492         does the real work.
6493         * modules/sys_select (Depends-on): Add 'signal'.
6494
6495         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6496         Suggested by Bruno Haible.
6497
6498         pselect: Use pthread_sigmask, not sigprocmask.
6499         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6500         multithreaded apps better than sigprocmask does.
6501         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6502         sigprocmask directly.
6503
6504 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6505
6506         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6507         Don't #undef,  since we don't need any underlying pselect.
6508         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6509         (Depends-on): Add select.
6510         (Link): Add $(LIBSOCKET).
6511         These changes suggested by Bruno Haible.
6512
6513         pselect: document better
6514         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6515         * doc/posix-functions/pselect.texi (pselect): Document new module.
6516
6517         pthread_sigmask: new module
6518         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6519         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6520         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6521         This is done only as a macro; I don't know how well that'll
6522         work for C++.  Move <sys/types.h> include before the include_next,
6523         to avoid mishap on Solaris.
6524         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6525         * modules/signal (Makefile.am): Substitute the check's results.
6526         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6527
6528         test-pselect: new module
6529         * modules/pselect-tests, tests/test-pselect.c: New files.
6530         * tests/test-select.c, tests/test-sys_select-c++.cc:
6531         If TEST_PSELECT is defined, test pselect instead of testing select.
6532
6533         * tests/test-sys_select.c (sigset_t): Test for it, too.
6534         Suggested by Bruno Haible.
6535
6536 2011-07-05  Eric Blake  <eblake@redhat.com>
6537
6538         snprintf: guarantee %1$d, for libintl
6539         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6540         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6541         * doc/posix-functions/snprintf.texi (snprintf): Update.
6542         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6543         * tests/test-snprintf.c (main): Enhance test.
6544         * tests/test-vsnprintf.c (main): Likewise.
6545
6546 2011-07-05  Jim Meyering  <meyering@redhat.com>
6547
6548         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6549         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6550         per Bruno's request, to accommodate this idiom (no space after "#")
6551         even when the function is inside an #if block:
6552         char *
6553         gets (char *s)
6554         #undef gets
6555         {
6556           ...
6557         }
6558
6559 2011-07-04  Jim Meyering  <meyering@redhat.com>
6560
6561         maint: indent with spaces, not TABs, and add a rule to check this
6562         * tests/test-userspec.c: Indent with spaces, not TABs.
6563         * tests/test-argp.c: Likewise.
6564         * tests/test-c-stack2.sh: Likewise.
6565         * tests/test-parse-duration.sh: Likewise
6566         * m4/strtod.m4: Likewise.
6567         * m4/alloca.m4: Likewise.
6568         * m4/pselect.m4: Likewise.
6569         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6570
6571 2011-07-03  Jim Meyering  <meyering@redhat.com>
6572
6573         maint.mk: correct omissions in prohibit_argmatch_without_use check
6574         This rule would mistakenly report that argmatch.h is included without
6575         use even when both the argmatch and invalid_arg macro were used.
6576         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6577         of argmatch and invalid_arg.
6578
6579 2011-07-03  Bruno Haible  <bruno@clisp.org>
6580
6581         Comments about EINTR.
6582         * lib/safe-read.h: Explain the purpose of this module.
6583         * lib/safe-write.h: Likewise.
6584         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6585         module.
6586         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6587         module.
6588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6589
6590 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6591
6592         xnanosleep: Rewrite to use new dtotimespec module.
6593         It has the conversion code that used to be in xnanosleep.
6594         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6595         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6596         (TIME_T_MAX): Remove.
6597         (xnanosleep): Rewrite in terms of dtotimespec.
6598         * modules/xnanosleep (Depends-on): Add dtotimespec.
6599         Remove intprops, stdbool.
6600
6601         timespec-add, timespec-sub: new modules
6602         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6603         * lib/timespec-add.c, lib/timespec-sub.c:
6604         * modules/timespec-add, modules/timespec-sub: New files.
6605
6606         dtotimespec: new module
6607         * lib/timespec.h (dtotimespec): New decl.
6608         * lib/dtotimespec.c, modules/dtotimespec: New files.
6609
6610         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6611
6612         pselect: new module
6613         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6614         (pselect): New decls.
6615         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6616         since the standard pselect decl uses 'restrict'.
6617         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6618         HAVE_PSELECT, REPLACE_PSELECT.
6619         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6620         HAVE_PSELECT, REPLACE_PSELECT.
6621         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6622
6623         sys_select: don't depend on sys_socket
6624         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6626         This fix works on GNU and GNU-like platforms, but has not been tested
6627         on native Windows.
6628         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6629         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6630         gl_HEADER_SYS_SOCKET.
6631         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6632         gl_PREREQ_SYS_H_WINSOCK2.
6633
6634 2011-06-29  Eric Blake  <eblake@redhat.com>
6635
6636         pipe2: fix C89 compile problem
6637         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6638         Reported by Bruno Haible.
6639
6640         pipe, pipe2: don't corrupt fd on error
6641         * lib/pipe.c (pipe): Leave fd unchanged on error.
6642         * lib/pipe2.c (pipe2): Likewise.
6643         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6644         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6645
6646 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6647
6648         mmap-anon: do not use regular expressions inadvertently
6649         * m4/mmap-anon.m4: Remove trailing period from strings sought
6650         in the output.
6651
6652 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6653
6654         nanosleep: fix integer overflow problem
6655         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6656         arithmetic wraps around on overflow.
6657
6658         nanosleep: simplify carrying
6659         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6660         first call to the underyling nanosleep, not for the last one.
6661         This doesn't fix any bugs, but it simplifies the computation of
6662         the remaining delay.  Found while auditing integer overflow issues.
6663
6664         dup2: remove test for existence of fcntl
6665         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6666         "#if HAVE_FCNTL", in the configure-time test program.
6667         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6668         and therefore speeds up "configure" a bit.  Found while
6669         adding the dup2 module to Emacs.
6670
6671 2011-06-24  Eric Blake  <eblake@redhat.com>
6672
6673         maint.mk: enhance useless header checks
6674         * top/maint.mk (_sc_header_without_use): Check both include
6675         styles.
6676         (sc_prohibit_assert_without_use)
6677         (sc_prohibit_close_stream_without_use)
6678         (sc_prohibit_getopt_without_use)
6679         (sc_prohibit_quotearg_without_use)
6680         (sc_prohibit_quote_without_use)
6681         (sc_prohibit_long_options_without_use)
6682         (sc_prohibit_inttostr_without_use)
6683         (sc_prohibit_ignore_value_without_use)
6684         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6685         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6686         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6687         (sc_prohibit_hash_pjw_without_use)
6688         (sc_prohibit_safe_read_without_use)
6689         (sc_prohibit_argmatch_without_use)
6690         (sc_prohibit_canonicalize_without_use)
6691         (sc_prohibit_root_dev_ino_without_use)
6692         (sc_prohibit_openat_without_use)
6693         (sc_prohibit_c_ctype_without_use)
6694         (sc_prohibit_signal_without_use)
6695         (sc_prohibit_stdio--_without_use)
6696         (sc_prohibit_stdio-safer_without_use)
6697         (sc_prohibit_strings_without_use)
6698         (sc_prohibit_intprops_without_use)
6699         (sc_prohibit_stddef_without_use)
6700         (sc_prohibit_xfreopen_without_use): Update clients.
6701
6702 2011-06-24  Jim Meyering  <meyering@redhat.com>
6703
6704         syntax-check: keep one maint.mk rule in sync with its header
6705         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6706         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6707         I prefer to avoid temporary files here, so use <(...), but that
6708         is not supported by /bin/sh, so...
6709         (SHELL): Define to /bin/bash.
6710
6711 2011-06-24  Eric Blake  <eblake@redhat.com>
6712
6713         maint.mk: update sc_prohibit_intprops_without_use
6714         * top/maint.mk (_intprops_names): Match recent changes.
6715
6716 2011-06-24  Bruno Haible  <bruno@clisp.org>
6717
6718         strerror-override: No-op tweak.
6719         * lib/strerror-override.h (strerror_override): Reorder conditions,
6720         for consistency with lib/strerror-override.c.
6721
6722 2011-06-23  Eric Blake  <eblake@redhat.com>
6723
6724         maint.mk: test further PATH_MAX issues
6725         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6726         (sc_prohibit_path_max_allocation): ...and also test alloca.
6727         Suggested by Jim Meyering.
6728
6729 2011-06-22  Eric Blake  <eblake@redhat.com>
6730
6731         maint.mk: add syntax-check to avoid char[PATH_MAX]
6732         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6733
6734         stat: be robust to PATH_MAX definition
6735         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6736         * modules/stat (Depends-on): Add verify.
6737
6738         link: work around IRIX bug
6739         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6740         * lib/link.c (rpl_link): Work around it.
6741         * tests/test-link.h (test_link): Enhance test.
6742         * doc/posix-functions/link.texi (link): Document the bug.
6743
6744         getopt: silence clang warning
6745         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6746         dereference.
6747         Reported by Gustavo Martin Domato.
6748
6749 2011-06-22  Jim Meyering  <meyering@redhat.com>
6750
6751         bootstrap: do not insert a blank line into each .gitignore file
6752         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6753
6754 2011-06-21  Eric Blake  <eblake@redhat.com>
6755
6756         perror: test for output mismatch
6757         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6758         perror on IRIX.
6759
6760         strerror_r: fix OpenBSD behavior on out-of-range
6761         * lib/strerror_r.c (strerror_r): Always use maximal string.
6762         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6763
6764         strerror_r: fix OpenBSD behavior on 0
6765         * lib/strerror-override.c (strerror_override): Also override 0
6766         when needed.
6767         * lib/strerror-override.h (strerror_override): Likewise.
6768         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6769         earlier.
6770         * lib/strerror_r.c (strerror_r): Likewise.
6771         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6772         behavior...
6773         (gl_FUNC_STRERROR_0): ...into new macro.
6774         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6775         is overridden.
6776         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6777         * modules/strerror-override (Files): Add strerror.m4.
6778         (configure.ac): Also provide override for 0 when needed.
6779         * doc/posix-functions/strerror.texi (strerror): Document this.
6780         * doc/posix-functions/perror.texi (perror): Likewise.
6781
6782         perror: adjust array size
6783         * modules/perror (Depends-on): Add strerror-override.
6784         * lib/perror.c (perror): Use it to avoid magic number.
6785
6786         strerror-override: reduce size
6787         * lib/strerror-override.c (strerror_override): Use fewer lines.
6788
6789 2011-06-20  Bruno Haible  <bruno@clisp.org>
6790
6791         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6792         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6793
6794 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6795
6796         alloca: port to compilers that can optimize like GCC 4.6.0
6797         * lib/alloca.c (find_stack_direction): New signature, taken from
6798         Autoconf git.  This works with GCC 4.6.0.  This code should never
6799         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6800         be used with other compilers that optimize as well as GCC 4.6.0 does.
6801         (alloca): Adjust to new signature.
6802         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6803         New macro, which patches Autoconf in a similar way.
6804
6805         c-stack: stop worrying about stack direction
6806         * lib/c-stack.c (find_stack_direction): Remove.
6807         (segv_handler): Don't worry about stack direction growth, as it's
6808         too much of a pain to configure this correctly, given how compilers
6809         are optimizing-away our stack-growth detection code.  Instead, assume
6810         that any access to just before or just after the stack is OK.
6811         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6812         Don't require AC_FUNC_ALLOCA; no longer needed.
6813
6814 2011-06-20  Eric Blake  <eblake@redhat.com>
6815
6816         test-stat: don't allocate PATH_MAX bytes
6817         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6818         PATH_MAX-sized buffer.
6819         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6820         * modules/stat-tests (Depends-on): Likewise.
6821         * tests/test-fstatat.c (includes): Drop pathmax.h.
6822         * tests/test-stat.c (includes): Likewise.
6823         Reported by Bruno Haible.
6824
6825 2011-06-20  Bruno Haible  <bruno@clisp.org>
6826
6827         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6828         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6829         * lib/float.c: New file.
6830         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6831         REPLACE_FLOAT_LDBL.
6832         * modules/float (Files): Add lib/float.c.
6833         (configure.ac): Invoke AC_LIBOBJ.
6834         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6835
6836 2011-06-20  Bruno Haible  <bruno@clisp.org>
6837
6838         Tests for module 'float'.
6839         * modules/float-tests: New file.
6840         * tests/test-float.c: New file.
6841
6842 2011-06-19  Bruno Haible  <bruno@clisp.org>
6843
6844         isinf: Coding style.
6845         * lib/isinf.c: Use GNU coding style.
6846
6847 2011-06-19  Bruno Haible  <bruno@clisp.org>
6848
6849         linkat test: Avoid test failure on AIX 7.1.
6850         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6851         * tests/test-link.h (test_link): Likewise.
6852
6853 2011-06-19  Bruno Haible  <bruno@clisp.org>
6854
6855         pread test: Avoid test failure on OpenBSD 4.9.
6856         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6857
6858 2011-06-19  Bruno Haible  <bruno@clisp.org>
6859
6860         sprintf-posix: Fix test failure on AIX 7.1.
6861         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6862         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6863         on AIX.
6864         * doc/posix-functions/fprintf.texi: Likewise.
6865         * doc/posix-functions/printf.texi: Likewise.
6866         * doc/posix-functions/snprintf.texi: Likewise.
6867         * doc/posix-functions/sprintf.texi: Likewise.
6868         * doc/posix-functions/vdprintf.texi: Likewise.
6869         * doc/posix-functions/vfprintf.texi: Likewise.
6870         * doc/posix-functions/vprintf.texi: Likewise.
6871         * doc/posix-functions/vsnprintf.texi: Likewise.
6872         * doc/posix-functions/vsprintf.texi: Likewise.
6873
6874 2011-06-19  Bruno Haible  <bruno@clisp.org>
6875
6876         roundl-ieee: Fix test failure on AIX 7.1.
6877         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6878         * doc/posix-functions/roundl.texi: Mention problem with negative
6879         arguments.
6880
6881 2011-06-19  Bruno Haible  <bruno@clisp.org>
6882
6883         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6884         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6885         * doc/posix-functions/round.texi: Mention problem with negative
6886         arguments.
6887         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6888
6889 2011-06-19  Bruno Haible  <bruno@clisp.org>
6890
6891         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6892         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6893         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6894         * doc/posix-functions/roundf.texi: Mention problem with negative
6895         arguments.
6896         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6897
6898 2011-06-19  Bruno Haible  <bruno@clisp.org>
6899
6900         ceilf-ieee: Work around bug on MacOS X 10.5.
6901         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6902
6903         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6904         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6905         IEEE compliant, avoid compiler optimizations.
6906         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6907         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6908         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6909         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6910         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6911         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6912         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6913         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6914         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6915         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6916
6917 2011-06-19  Bruno Haible  <bruno@clisp.org>
6918
6919         ceilf-ieee: Work around bug on AIX 7.1.
6920         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6921         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6922
6923 2011-06-19  Bruno Haible  <bruno@clisp.org>
6924
6925         ceil-ieee: Work around bug on AIX 7.1.
6926         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6927         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6928
6929 2011-06-18  Bruno Haible  <bruno@clisp.org>
6930
6931         fsync test: Avoid test failure on MacOS X and AIX.
6932         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
6933         EINVAL.
6934
6935 2011-06-18  Bruno Haible  <bruno@clisp.org>
6936
6937         openat, fdopendir tests: Fix link errors.
6938         * modules/openat-tests (Depends-on): Add progname.
6939         * modules/fdopendir-tests (Depends-on): Likewise.
6940         * tests/test-fchownat.c: Include progname.h.
6941         (main): Call set_program_name.
6942         * tests/test-fstatat.c: Include progname.h.
6943         (main): Call set_program_name.
6944         * tests/test-mkdirat.c: Include progname.h.
6945         (main): Call set_program_name.
6946         * tests/test-openat.c: Include progname.h.
6947         (main): Call set_program_name.
6948         * tests/test-unlinkat.c: Include progname.h.
6949         (main): Call set_program_name.
6950         * tests/test-fdopendir.c: Include progname.h.
6951         (main): Call set_program_name.
6952
6953 2011-06-18  Bruno Haible  <bruno@clisp.org>
6954
6955         Doc update.
6956         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
6957         HP-UX.
6958         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
6959
6960 2011-06-18  Bruno Haible  <bruno@clisp.org>
6961
6962         getcwd tests: Avoid compilation error on HP-UX 11.31.
6963         * modules/getcwd-tests (Depends-on): Add pathmax.
6964         * tests/test-getcwd.c: Include pathmax.h.
6965
6966 2011-06-18  Bruno Haible  <bruno@clisp.org>
6967
6968         isfinite, isinf: Fix link error on AIX 6 and 7.
6969         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
6970         needed, also test the macro with a 'float' argument.
6971         * m4/isinf.m4 (gl_ISINF): Likewise.
6972
6973 2011-06-18  Bruno Haible  <bruno@clisp.org>
6974
6975         getloadavg: Don't clobber LIBS. Regression from previous commit.
6976         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
6977         AC_CHECK_LIB from here...
6978         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
6979         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
6980         gl_func_getloadavg_done.
6981         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6982
6983 2011-06-18  Bruno Haible  <bruno@clisp.org>
6984
6985         clean-temp: Improve documentation.
6986         * lib/clean-temp.h: Explain better how to use this module.
6987         Reported by John Darrington <john@darrington.wattle.id.au>.
6988
6989 2011-06-17  Bruno Haible  <bruno@clisp.org>
6990
6991         pread, pwrite: Avoid cc warning on AIX.
6992         * lib/unistd.in.h (pread): Undefine before defining as a macro.
6993         (pwrite): Likewise.
6994
6995 2011-06-17  Bruno Haible  <bruno@clisp.org>
6996
6997         spawn-pipe tests: Fix link error.
6998         * tests/test-spawn-pipe-child.c: Undefine fprintf.
6999         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7000
7001 2011-06-17  Bruno Haible  <bruno@clisp.org>
7002
7003         Tests: Remove unnecessary dependency.
7004         * modules/canonicalize-tests (Depends-on): Remove progname.
7005         * modules/chown-tests (Depends-on): Likewise.
7006         * modules/dirname-tests (Depends-on): Likewise.
7007         * modules/fdopendir-tests (Depends-on): Likewise.
7008         * modules/fdutimensat-tests (Depends-on): Likewise.
7009         * modules/hash-tests (Depends-on): Likewise.
7010         * modules/lchown-tests (Depends-on): Likewise.
7011         * modules/linkat-tests (Depends-on): Likewise.
7012         * modules/renameat-tests (Depends-on): Likewise.
7013         * modules/spawn-pipe-tests (Depends-on): Likewise.
7014         * modules/utimensat-tests (Depends-on): Likewise.
7015
7016 2011-06-17  Bruno Haible  <bruno@clisp.org>
7017
7018         spawn-pipe tests: Fix link error.
7019         * tests/test-spawn-pipe-child.c: Undefine fflush.
7020
7021 2011-06-17  Bruno Haible  <bruno@clisp.org>
7022
7023         Fix tests link errors.
7024         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7025         * modules/chown-tests (Makefile.am): Don't link test-chown with
7026         LIBINTL.
7027         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7028         LIBINTL.
7029         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7030         LIBINTL.
7031         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7032         LIBINTL.
7033
7034 2011-06-16  Bruno Haible  <bruno@clisp.org>
7035
7036         crypto/gc-sha1: Fix recent regression.
7037         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7038         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7039
7040         crypto/gc-md5: Fix recent regression.
7041         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7042
7043         crypto/gc-md4: Fix recent regression.
7044         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7045         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7046
7047         crypto/gc-arctwo: Fix recent regression.
7048         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7049         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7050
7051         crypto/gc-rijndael: Fix recent regression.
7052         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7053         (configure.ac): Invoke AC_LIBOBJ here.
7054         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7055         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7056
7057         crypto/gc-hmac-sha1: Fix recent regression.
7058         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7059         (configure.ac): Invoke AC_LIBOBJ here.
7060         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7062
7063         crypto/gc-hmac-md5: Fix recent regression.
7064         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7065         (configure.ac): Invoke AC_LIBOBJ here.
7066         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7067         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7068
7069         crypto/gc-des: Fix recent regression.
7070         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7071         (configure.ac): Invoke AC_LIBOBJ here.
7072         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7073         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7074
7075         crypto/gc-arcfour: Fix recent regression.
7076         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7077         (configure.ac): Invoke AC_LIBOBJ here.
7078         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7079         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7080
7081 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7082
7083         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7084         After the 2011-05-21 change, this macro requires
7085         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7086         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7087
7088 2011-06-16  Bruno Haible  <bruno@clisp.org>
7089
7090         fprintftime: Move AC_LIBOBJ invocations to module description.
7091         * m4/fprintftime.m4: Remove file.
7092         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7093         (configure.ac): Remove gl_FPRINTFTIME call.
7094         (Makefile.am): Augment lib_SOURCES.
7095         Reported by Jim Meyering.
7096
7097 2011-06-16  Bruno Haible  <bruno@clisp.org>
7098
7099         tmpfile-safer: Finish 2011-05-23 commit.
7100         * m4/stdio-safer.m4: Really remove file.
7101         Reported by Jim Meyering.
7102
7103 2011-06-16  Bruno Haible  <bruno@clisp.org>
7104
7105         syntax-check: Fix typo.
7106         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7107         printf-posix.m4.
7108         Reported by Jim Meyering.
7109
7110 2011-06-13  Jim Meyering  <meyering@redhat.com>
7111
7112         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7113         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7114
7115 2011-05-23  Bruno Haible  <bruno@clisp.org>
7116
7117         yesno: Move AC_LIBOBJ invocations to module description.
7118         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7119         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7120
7121 2011-05-23  Bruno Haible  <bruno@clisp.org>
7122
7123         xstrtol: Move AC_LIBOBJ invocations to module description.
7124         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7125         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7126
7127 2011-05-23  Bruno Haible  <bruno@clisp.org>
7128
7129         xstrtold: Move AC_LIBOBJ invocations to module description.
7130         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7131         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7132
7133 2011-05-23  Bruno Haible  <bruno@clisp.org>
7134
7135         xstrtod: Move AC_LIBOBJ invocations to module description.
7136         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7137         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7138
7139 2011-05-23  Bruno Haible  <bruno@clisp.org>
7140
7141         xnanosleep: Move AC_LIBOBJ invocations to module description.
7142         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7143         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7144
7145 2011-05-23  Bruno Haible  <bruno@clisp.org>
7146
7147         xgetcwd: Move AC_LIBOBJ invocations to module description.
7148         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7149         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7150
7151 2011-05-23  Bruno Haible  <bruno@clisp.org>
7152
7153         xalloc: Move AC_LIBOBJ invocations to module description.
7154         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7155         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7156
7157 2011-05-23  Bruno Haible  <bruno@clisp.org>
7158
7159         write-any-file: Move AC_LIBOBJ invocations to module description.
7160         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7161         invocation.
7162         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7163
7164 2011-05-23  Bruno Haible  <bruno@clisp.org>
7165
7166         utimens: Move AC_LIBOBJ invocations to module description.
7167         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7168         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7169
7170 2011-05-23  Bruno Haible  <bruno@clisp.org>
7171
7172         utimecmp: Move AC_LIBOBJ invocations to module description.
7173         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7174         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7175
7176 2011-05-23  Bruno Haible  <bruno@clisp.org>
7177
7178         userspec: Move AC_LIBOBJ invocations to module description.
7179         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7180         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7181
7182 2011-05-23  Bruno Haible  <bruno@clisp.org>
7183
7184         unlinkdir: Move AC_LIBOBJ invocations to module description.
7185         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7186         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7187
7188 2011-05-23  Bruno Haible  <bruno@clisp.org>
7189
7190         unistd-safer: Move AC_LIBOBJ invocations to module description.
7191         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7192         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7193
7194 2011-05-23  Bruno Haible  <bruno@clisp.org>
7195
7196         tempname: Move AC_LIBOBJ invocations to module description.
7197         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7198         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7199
7200 2011-05-23  Bruno Haible  <bruno@clisp.org>
7201
7202         strftime: Move AC_LIBOBJ invocations to module description.
7203         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7204         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7205
7206 2011-05-23  Bruno Haible  <bruno@clisp.org>
7207
7208         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7209         * m4/stdlib-safer.m4: Remove file.
7210         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7211         (configure.ac): Remove gl_STDLIB_SAFER call.
7212         (Makefile.am): Augment lib_SOURCES.
7213
7214 2011-05-23  Bruno Haible  <bruno@clisp.org>
7215
7216         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7217         * m4/stdio-safer.m4: Remove file.
7218         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7219         (configure.ac): Remove gl_TMPFILE_SAFER call.
7220         (Makefile.am): Augment lib_SOURCES.
7221
7222 2011-05-23  Bruno Haible  <bruno@clisp.org>
7223
7224         popen-safer: Move AC_LIBOBJ invocations to module description.
7225         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7226         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7227         (configure.ac): Remove gl_POPEN_SAFER call.
7228         (Makefile.am): Augment lib_SOURCES.
7229
7230 2011-05-23  Bruno Haible  <bruno@clisp.org>
7231
7232         freopen-safer: Move AC_LIBOBJ invocations to module description.
7233         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7234         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7235         (configure.ac): Remove gl_FREOPEN_SAFER call.
7236         (Makefile.am): Augment lib_SOURCES.
7237
7238 2011-05-23  Bruno Haible  <bruno@clisp.org>
7239
7240         fopen-safer: Move AC_LIBOBJ invocations to module description.
7241         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7242         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7243         (configure.ac): Remove gl_FOPEN_SAFER call.
7244         (Makefile.am): Augment lib_SOURCES.
7245
7246 2011-05-23  Bruno Haible  <bruno@clisp.org>
7247
7248         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7249         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7250         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7251
7252 2011-05-23  Bruno Haible  <bruno@clisp.org>
7253
7254         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7255         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7256         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7257
7258 2011-05-23  Bruno Haible  <bruno@clisp.org>
7259
7260         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7261         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7262         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7263
7264 2011-05-23  Bruno Haible  <bruno@clisp.org>
7265
7266         settime: Move AC_LIBOBJ invocations to module description.
7267         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7268         * modules/settime (Makefile.am): Augment lib_SOURCES.
7269
7270 2011-05-23  Bruno Haible  <bruno@clisp.org>
7271
7272         savedir: Move AC_LIBOBJ invocations to module description.
7273         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7274         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7275
7276 2011-05-23  Bruno Haible  <bruno@clisp.org>
7277
7278         save-cwd: Move AC_LIBOBJ invocations to module description.
7279         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7280         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7281
7282 2011-05-23  Bruno Haible  <bruno@clisp.org>
7283
7284         same: Move AC_LIBOBJ invocations to module description.
7285         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7286         * modules/same (Makefile.am): Augment lib_SOURCES.
7287
7288 2011-05-23  Bruno Haible  <bruno@clisp.org>
7289
7290         safe-write: Move AC_LIBOBJ invocations to module description.
7291         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7292         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7293         instead of gl_SAFE_WRITE.
7294         (Makefile.am): Augment lib_SOURCES.
7295
7296 2011-05-23  Bruno Haible  <bruno@clisp.org>
7297
7298         safe-read: Move AC_LIBOBJ invocations to module description.
7299         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7300         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7301         of gl_SAFE_READ.
7302         (Makefile.am): Augment lib_SOURCES.
7303
7304 2011-05-23  Bruno Haible  <bruno@clisp.org>
7305
7306         safe-alloc: Move AC_LIBOBJ invocations to module description.
7307         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7308         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7309
7310 2011-05-23  Bruno Haible  <bruno@clisp.org>
7311
7312         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7313         * m4/rijndael.m4: Remove file.
7314         * modules/crypto/rijndael (Files): Remove it.
7315         (configure.ac): Remove gl_RIJNDAEL call.
7316         (Makefile.am): Augment lib_SOURCES.
7317
7318 2011-05-23  Bruno Haible  <bruno@clisp.org>
7319
7320         readtokens: Move AC_LIBOBJ invocations to module description.
7321         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7322         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7323
7324 2011-05-23  Bruno Haible  <bruno@clisp.org>
7325
7326         read-file: Move AC_LIBOBJ invocations to module description.
7327         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7328         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7329         of gl_FUNC_READ_FILE.
7330         (Makefile.am): Augment lib_SOURCES.
7331
7332 2011-05-23  Bruno Haible  <bruno@clisp.org>
7333
7334         quotearg: Move AC_LIBOBJ invocations to module description.
7335         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7336         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7337
7338 2011-05-23  Bruno Haible  <bruno@clisp.org>
7339
7340         quote: Move AC_LIBOBJ invocations to module description.
7341         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7342         * modules/quote (Makefile.am): Augment lib_SOURCES.
7343
7344 2011-05-23  Bruno Haible  <bruno@clisp.org>
7345
7346         posixver: Move AC_LIBOBJ invocations to module description.
7347         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7348         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7349
7350 2011-05-23  Bruno Haible  <bruno@clisp.org>
7351
7352         posixtm: Move AC_LIBOBJ invocations to module description.
7353         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7354         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7355
7356 2011-05-23  Bruno Haible  <bruno@clisp.org>
7357
7358         physmem: Move AC_LIBOBJ invocations to module description.
7359         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7360         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7361
7362 2011-05-23  Bruno Haible  <bruno@clisp.org>
7363
7364         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7365         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7366         invocation.
7367         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7368
7369 2011-05-23  Bruno Haible  <bruno@clisp.org>
7370
7371         mpsort: Move AC_LIBOBJ invocations to module description.
7372         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7373         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7374
7375 2011-05-23  Bruno Haible  <bruno@clisp.org>
7376
7377         modechange: Move AC_LIBOBJ invocations to module description.
7378         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7379         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7380
7381 2011-05-23  Bruno Haible  <bruno@clisp.org>
7382
7383         mkdir-p: Move AC_LIBOBJ invocations to module description.
7384         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7385         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7386
7387 2011-05-23  Bruno Haible  <bruno@clisp.org>
7388
7389         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7390         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7391         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7392
7393 2011-05-23  Bruno Haible  <bruno@clisp.org>
7394
7395         mgetgroups: Move AC_LIBOBJ invocations to module description.
7396         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7397         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7398
7399 2011-05-23  Bruno Haible  <bruno@clisp.org>
7400
7401         memxor: Move AC_LIBOBJ invocations to module description.
7402         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7403         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7404
7405 2011-05-23  Bruno Haible  <bruno@clisp.org>
7406
7407         memcoll: Move AC_LIBOBJ invocations to module description.
7408         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7409         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7410
7411 2011-05-23  Bruno Haible  <bruno@clisp.org>
7412
7413         memcasecmp: Move AC_LIBOBJ invocations to module description.
7414         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7415         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7416
7417 2011-05-23  Bruno Haible  <bruno@clisp.org>
7418
7419         crypto/md5: Move AC_LIBOBJ invocations to module description.
7420         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7421         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7422
7423 2011-05-23  Bruno Haible  <bruno@clisp.org>
7424
7425         crypto/md4: Move AC_LIBOBJ invocations to module description.
7426         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7427         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7428
7429 2011-05-23  Bruno Haible  <bruno@clisp.org>
7430
7431         crypto/md2: Move AC_LIBOBJ invocations to module description.
7432         * m4/md2.m4: Remove file.
7433         * modules/crypto/md2 (Files): Remove it.
7434         (configure.ac): Remove gl_MD2 call.
7435         (Makefile.am): Augment lib_SOURCES.
7436
7437 2011-05-23  Bruno Haible  <bruno@clisp.org>
7438
7439         long-options: Move AC_LIBOBJ invocations to module description.
7440         * m4/long-options.m4: Remove file.
7441         * modules/long-options (Files): Remove it.
7442         (configure.ac): Remove gl_LONG_OPTIONS call.
7443         (Makefile.am): Augment lib_SOURCES.
7444
7445 2011-05-23  Bruno Haible  <bruno@clisp.org>
7446
7447         i-ring: Move AC_LIBOBJ invocations to module description.
7448         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7449         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7450
7451 2011-05-23  Bruno Haible  <bruno@clisp.org>
7452
7453         idcache: Move AC_LIBOBJ invocations to module description.
7454         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7455         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7456
7457 2011-05-23  Bruno Haible  <bruno@clisp.org>
7458
7459         human: Move AC_LIBOBJ invocations to module description.
7460         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7461         * modules/human (Makefile.am): Augment lib_SOURCES.
7462
7463 2011-05-23  Bruno Haible  <bruno@clisp.org>
7464
7465         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7466         * m4/hmac-sha1.m4: Remove file.
7467         * modules/crypto/hmac-sha1 (Files): Remove it.
7468         (configure.ac): Remove gl_HMAC_SHA1 call.
7469         (Makefile.am): Augment lib_SOURCES.
7470
7471 2011-05-23  Bruno Haible  <bruno@clisp.org>
7472
7473         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7474         * m4/hmac-md5.m4: Remove file.
7475         * modules/crypto/hmac-md5 (Files): Remove it.
7476         (configure.ac): Remove gl_HMAC_MD5 call.
7477         (Makefile.am): Augment lib_SOURCES.
7478
7479 2011-05-23  Bruno Haible  <bruno@clisp.org>
7480
7481         hash: Move AC_LIBOBJ invocations to module description.
7482         * m4/hash.m4: Remove file.
7483         * modules/hash (Files): Remove it.
7484         (configure.ac): Remove gl_HASH call.
7485         (Makefile.am): Augment lib_SOURCES.
7486
7487 2011-05-23  Bruno Haible  <bruno@clisp.org>
7488
7489         hard-locale: Move AC_LIBOBJ invocations to module description.
7490         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7491         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7492
7493 2011-05-23  Bruno Haible  <bruno@clisp.org>
7494
7495         getugroups: Move AC_LIBOBJ invocations to module description.
7496         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7497         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7498
7499 2011-05-23  Bruno Haible  <bruno@clisp.org>
7500
7501         gettime: Move AC_LIBOBJ invocations to module description.
7502         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7503         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7504
7505 2011-05-23  Bruno Haible  <bruno@clisp.org>
7506
7507         getndelim2: Move AC_LIBOBJ invocations to module description.
7508         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7509         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7510
7511 2011-05-23  Bruno Haible  <bruno@clisp.org>
7512
7513         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7514         * m4/gc-pbkdf2-sha1.m4: Remove file.
7515         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7516         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7517         (Makefile.am): Augment lib_SOURCES.
7518
7519 2011-05-23  Bruno Haible  <bruno@clisp.org>
7520
7521         fts: Move AC_LIBOBJ invocations to module description.
7522         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7523         * modules/fts (configure.ac): ... to here.
7524
7525 2011-05-23  Bruno Haible  <bruno@clisp.org>
7526
7527         file-type: Move AC_LIBOBJ invocations to module description.
7528         * m4/file-type.m4: Remove file.
7529         * modules/file-type (Files): Remove it.
7530         (configure.ac): Remove gl_FILE_TYPE call.
7531         (Makefile.am): Augment lib_SOURCES.
7532
7533 2011-05-23  Bruno Haible  <bruno@clisp.org>
7534
7535         filenamecat*: Respect rules for use of AC_LIBOBJ.
7536         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7537         Remove AC_LIBOBJ invocation.
7538         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7539         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7540
7541 2011-05-23  Bruno Haible  <bruno@clisp.org>
7542
7543         filemode: Move AC_LIBOBJ invocations to module description.
7544         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7545         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7546
7547 2011-05-23  Bruno Haible  <bruno@clisp.org>
7548
7549         openat-safer: Move AC_LIBOBJ invocations to module description.
7550         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7551         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7552
7553 2011-05-23  Bruno Haible  <bruno@clisp.org>
7554
7555         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7556         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7557         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7558
7559 2011-05-23  Bruno Haible  <bruno@clisp.org>
7560
7561         exclude: Move AC_LIBOBJ invocations to module description.
7562         * m4/exclude.m4: Remove file.
7563         * modules/exclude (Files): Remove it.
7564         (configure.ac): Remove gl_EXCLUDE call.
7565         (Makefile.am): Augment lib_SOURCES.
7566
7567 2011-05-23  Bruno Haible  <bruno@clisp.org>
7568
7569         dirname*: Respect rules for use of AC_LIBOBJ.
7570         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7571         invocations.
7572         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7573         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7574
7575 2011-05-23  Bruno Haible  <bruno@clisp.org>
7576
7577         dirent-safer: Move AC_LIBOBJ invocations to module description.
7578         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7579         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7580
7581 2011-05-23  Bruno Haible  <bruno@clisp.org>
7582
7583         crypto/des: Move AC_LIBOBJ invocations to module description.
7584         * m4/des.m4: Remove file.
7585         * modules/crypto/des (Files): Remove it.
7586         (configure.ac): Remove gl_DES call.
7587         (Makefile.am): Augment lib_SOURCES.
7588
7589 2011-05-23  Bruno Haible  <bruno@clisp.org>
7590
7591         cycle-check: Move AC_LIBOBJ invocations to module description.
7592         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7593         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7594
7595 2011-05-23  Bruno Haible  <bruno@clisp.org>
7596
7597         c-strtold: Move AC_LIBOBJ invocations to module description.
7598         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7599         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7600
7601 2011-05-23  Bruno Haible  <bruno@clisp.org>
7602
7603         c-strtod: Move AC_LIBOBJ invocations to module description.
7604         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7605         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7606
7607 2011-05-23  Bruno Haible  <bruno@clisp.org>
7608
7609         crc: Move AC_LIBOBJ invocations to module description.
7610         * m4/crc.m4: Remove file.
7611         * modules/crc (Files): Remove it.
7612         (configure.ac): Remove gl_CRC call.
7613         (Makefile.am): Augment lib_SOURCES.
7614
7615 2011-05-23  Bruno Haible  <bruno@clisp.org>
7616
7617         close-stream: Move AC_LIBOBJ invocations to module description.
7618         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7619         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7620
7621 2011-05-23  Bruno Haible  <bruno@clisp.org>
7622
7623         closeout: Move AC_LIBOBJ invocations to module description.
7624         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7625         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7626
7627 2011-05-23  Bruno Haible  <bruno@clisp.org>
7628
7629         closein: Move AC_LIBOBJ invocations to module description.
7630         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7631         * modules/closein (Makefile.am): Augment lib_SOURCES.
7632
7633 2011-05-23  Bruno Haible  <bruno@clisp.org>
7634
7635         cloexec: Move AC_LIBOBJ invocations to module description.
7636         * m4/cloexec.m4: Remove file.
7637         * modules/cloexec (Files): Remove it.
7638         (configure.ac): Remove gl_CLOEXEC call.
7639         (Makefile.am): Augment lib_SOURCES.
7640
7641 2011-05-23  Bruno Haible  <bruno@clisp.org>
7642
7643         check-version: Move AC_LIBOBJ invocations to module description.
7644         * m4/check-version.m4: Remove file.
7645         * modules/check-version (Files): Remove it.
7646         (configure.ac): Remove gl_CHECK_VERSION call.
7647         (Makefile.am): Augment lib_SOURCES.
7648
7649 2011-05-23  Bruno Haible  <bruno@clisp.org>
7650
7651         chdir-safer: Move AC_LIBOBJ invocations to module description.
7652         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7653         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7654
7655 2011-05-23  Bruno Haible  <bruno@clisp.org>
7656
7657         canonicalize: Move AC_LIBOBJ invocations to module description.
7658         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7659         AC_LIBOBJ invocation.
7660         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7661
7662 2011-05-23  Bruno Haible  <bruno@clisp.org>
7663
7664         canon-host: Move AC_LIBOBJ invocations to module description.
7665         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7666         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7667         instead of gl_CANON_HOST.
7668         (Makefile.am): Augment lib_SOURCES.
7669
7670 2011-05-23  Bruno Haible  <bruno@clisp.org>
7671
7672         backupfile: Move AC_LIBOBJ invocations to module description.
7673         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7674         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7675
7676 2011-05-23  Bruno Haible  <bruno@clisp.org>
7677
7678         argmatch: Move AC_LIBOBJ invocations to module description.
7679         * m4/argmatch.m4: Remove file.
7680         * modules/argmatch (Files): Remove it.
7681         (configure.ac): Remove gl_ARGMATCH call.
7682         (Makefile.am): Augment lib_SOURCES.
7683
7684 2011-05-23  Bruno Haible  <bruno@clisp.org>
7685
7686         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7687         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7688         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7689
7690 2011-05-23  Bruno Haible  <bruno@clisp.org>
7691
7692         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7693         * m4/arcfour.m4: Remove file.
7694         * modules/crypto/arcfour (Files): Remove it.
7695         (configure.ac): Remove gl_ARCFOUR call.
7696         (Makefile.am): Augment lib_SOURCES.
7697
7698 2011-05-22  Bruno Haible  <bruno@clisp.org>
7699
7700         write: Move AC_LIBOBJ invocations to module description.
7701         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7702         * modules/write (configure.ac): ... to here.
7703
7704 2011-05-22  Bruno Haible  <bruno@clisp.org>
7705
7706         wmemset: Move AC_LIBOBJ invocations to module description.
7707         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7708         here...
7709         * modules/wmemset (configure.ac): ... to here.
7710
7711 2011-05-22  Bruno Haible  <bruno@clisp.org>
7712
7713         wmemmove: Move AC_LIBOBJ invocations to module description.
7714         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7715         here...
7716         * modules/wmemmove (configure.ac): ... to here.
7717
7718 2011-05-22  Bruno Haible  <bruno@clisp.org>
7719
7720         wmemcpy: Move AC_LIBOBJ invocations to module description.
7721         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7722         here...
7723         * modules/wmemcpy (configure.ac): ... to here.
7724
7725 2011-05-22  Bruno Haible  <bruno@clisp.org>
7726
7727         wmemcmp: Move AC_LIBOBJ invocations to module description.
7728         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7729         here...
7730         * modules/wmemcmp (configure.ac): ... to here.
7731
7732 2011-05-22  Bruno Haible  <bruno@clisp.org>
7733
7734         wmemchr: Move AC_LIBOBJ invocations to module description.
7735         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7736         here...
7737         * modules/wmemchr (configure.ac): ... to here.
7738
7739 2011-05-22  Bruno Haible  <bruno@clisp.org>
7740
7741         wcswidth: Move AC_LIBOBJ invocations to module description.
7742         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7743         here...
7744         * modules/wcswidth (configure.ac): ... to here.
7745
7746 2011-05-22  Bruno Haible  <bruno@clisp.org>
7747
7748         wcwidth: Respect rules for use of AC_LIBOBJ.
7749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7750         invocation from here...
7751         * modules/wcwidth (configure.ac): ... to here.
7752         (Depends-on): Update conditions.
7753
7754 2011-05-22  Bruno Haible  <bruno@clisp.org>
7755
7756         wctype: Move AC_LIBOBJ invocations to module description.
7757         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7758         invocation from here...
7759         * modules/wctype (configure.ac): ... to here.
7760         (Depends-on): Update conditions.
7761
7762 2011-05-22  Bruno Haible  <bruno@clisp.org>
7763
7764         wctrans: Move AC_LIBOBJ invocations to module description.
7765         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7766         invocation from here...
7767         * modules/wctrans (configure.ac): ... to here.
7768
7769 2011-05-22  Bruno Haible  <bruno@clisp.org>
7770
7771         wctomb: Move AC_LIBOBJ invocations to module description.
7772         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7773         invocations from here...
7774         * modules/wctomb (configure.ac): ... to here.
7775
7776 2011-05-22  Bruno Haible  <bruno@clisp.org>
7777
7778         wctob: Move AC_LIBOBJ invocations to module description.
7779         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7780         gl_PREREQ_WCTOB invocations from here...
7781         * modules/wctob (configure.ac): ... to here.
7782         (Depends-on): Update conditions.
7783
7784 2011-05-22  Bruno Haible  <bruno@clisp.org>
7785
7786         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7787         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7788         here...
7789         * modules/wcsxfrm (configure.ac): ... to here.
7790
7791 2011-05-22  Bruno Haible  <bruno@clisp.org>
7792
7793         wcstok: Move AC_LIBOBJ invocations to module description.
7794         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7795         * modules/wcstok (configure.ac): ... to here.
7796
7797 2011-05-22  Bruno Haible  <bruno@clisp.org>
7798
7799         wcsstr: Move AC_LIBOBJ invocations to module description.
7800         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7801         * modules/wcsstr (configure.ac): ... to here.
7802
7803 2011-05-22  Bruno Haible  <bruno@clisp.org>
7804
7805         wcsspn: Move AC_LIBOBJ invocations to module description.
7806         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7807         * modules/wcsspn (configure.ac): ... to here.
7808
7809 2011-05-22  Bruno Haible  <bruno@clisp.org>
7810
7811         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7812         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7813         gl_PREREQ_WCSRTOMBS invocations from here...
7814         * modules/wcsrtombs (configure.ac): ... to here.
7815
7816 2011-05-22  Bruno Haible  <bruno@clisp.org>
7817
7818         wcsrchr: Move AC_LIBOBJ invocations to module description.
7819         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7820         here...
7821         * modules/wcsrchr (configure.ac): ... to here.
7822
7823 2011-05-22  Bruno Haible  <bruno@clisp.org>
7824
7825         wcspbrk: Move AC_LIBOBJ invocations to module description.
7826         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7827         here...
7828         * modules/wcspbrk (configure.ac): ... to here.
7829
7830 2011-05-22  Bruno Haible  <bruno@clisp.org>
7831
7832         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7833         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7834         gl_PREREQ_WCSNRTOMBS invocations from here...
7835         * modules/wcsnrtombs (configure.ac): ... to here.
7836
7837 2011-05-22  Bruno Haible  <bruno@clisp.org>
7838
7839         wcsnlen: Move AC_LIBOBJ invocations to module description.
7840         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7841         here...
7842         * modules/wcsnlen (configure.ac): ... to here.
7843
7844 2011-05-22  Bruno Haible  <bruno@clisp.org>
7845
7846         wcsncpy: Move AC_LIBOBJ invocations to module description.
7847         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7848         here...
7849         * modules/wcsncpy (configure.ac): ... to here.
7850
7851 2011-05-22  Bruno Haible  <bruno@clisp.org>
7852
7853         wcsncmp: Move AC_LIBOBJ invocations to module description.
7854         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7855         here...
7856         * modules/wcsncmp (configure.ac): ... to here.
7857
7858 2011-05-22  Bruno Haible  <bruno@clisp.org>
7859
7860         wcsncat: Move AC_LIBOBJ invocations to module description.
7861         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7862         here...
7863         * modules/wcsncat (configure.ac): ... to here.
7864
7865 2011-05-22  Bruno Haible  <bruno@clisp.org>
7866
7867         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7868         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7869         from here...
7870         * modules/wcsncasecmp (configure.ac): ... to here.
7871
7872 2011-05-22  Bruno Haible  <bruno@clisp.org>
7873
7874         wcslen: Move AC_LIBOBJ invocations to module description.
7875         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7876         * modules/wcslen (configure.ac): ... to here.
7877
7878 2011-05-22  Bruno Haible  <bruno@clisp.org>
7879
7880         wcsdup: Move AC_LIBOBJ invocations to module description.
7881         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7882         * modules/wcsdup (configure.ac): ... to here.
7883
7884 2011-05-22  Bruno Haible  <bruno@clisp.org>
7885
7886         wcscspn: Move AC_LIBOBJ invocations to module description.
7887         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7888         here...
7889         * modules/wcscspn (configure.ac): ... to here.
7890
7891 2011-05-22  Bruno Haible  <bruno@clisp.org>
7892
7893         wcscpy: Move AC_LIBOBJ invocations to module description.
7894         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7895         * modules/wcscpy (configure.ac): ... to here.
7896
7897 2011-05-22  Bruno Haible  <bruno@clisp.org>
7898
7899         wcscoll: Move AC_LIBOBJ invocations to module description.
7900         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7901         here...
7902         * modules/wcscoll (configure.ac): ... to here.
7903
7904 2011-05-22  Bruno Haible  <bruno@clisp.org>
7905
7906         wcscmp: Move AC_LIBOBJ invocations to module description.
7907         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7908         * modules/wcscmp (configure.ac): ... to here.
7909
7910 2011-05-22  Bruno Haible  <bruno@clisp.org>
7911
7912         wcschr: Move AC_LIBOBJ invocations to module description.
7913         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7914         * modules/wcschr (configure.ac): ... to here.
7915
7916 2011-05-22  Bruno Haible  <bruno@clisp.org>
7917
7918         wcscat: Move AC_LIBOBJ invocations to module description.
7919         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7920         * modules/wcscat (configure.ac): ... to here.
7921
7922 2011-05-22  Bruno Haible  <bruno@clisp.org>
7923
7924         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7925         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7926         here...
7927         * modules/wcscasecmp (configure.ac): ... to here.
7928
7929 2011-05-22  Bruno Haible  <bruno@clisp.org>
7930
7931         wcrtomb: Move AC_LIBOBJ invocations to module description.
7932         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
7933         invocations from here...
7934         * modules/wcrtomb (configure.ac): ... to here.
7935
7936 2011-05-22  Bruno Haible  <bruno@clisp.org>
7937
7938         wcpncpy: Move AC_LIBOBJ invocations to module description.
7939         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
7940         here...
7941         * modules/wcpncpy (configure.ac): ... to here.
7942
7943 2011-05-22  Bruno Haible  <bruno@clisp.org>
7944
7945         wcpcpy: Move AC_LIBOBJ invocations to module description.
7946         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
7947         * modules/wcpcpy (configure.ac): ... to here.
7948
7949 2011-05-22  Bruno Haible  <bruno@clisp.org>
7950
7951         waitpid: Move AC_LIBOBJ invocations to module description.
7952         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
7953         invocation from here...
7954         * modules/waitpid (configure.ac): ... to here.
7955
7956 2011-05-22  Bruno Haible  <bruno@clisp.org>
7957
7958         utimensat: Move AC_LIBOBJ invocations to module description.
7959         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
7960         here...
7961         * modules/utimensat (configure.ac): ... to here.
7962
7963 2011-05-22  Bruno Haible  <bruno@clisp.org>
7964
7965         usleep: Move AC_LIBOBJ invocations to module description.
7966         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
7967         here...
7968         * modules/usleep (configure.ac): ... to here.
7969
7970 2011-05-22  Bruno Haible  <bruno@clisp.org>
7971
7972         unlockpt: Move AC_LIBOBJ invocations to module description.
7973         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
7974         gl_PREREQ_UNLOCKPT invocations from here...
7975         * modules/unlockpt (configure.ac): ... to here.
7976
7977 2011-05-22  Bruno Haible  <bruno@clisp.org>
7978
7979         unlink: Respect rules for use of AC_LIBOBJ.
7980         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
7981         * modules/unlink (configure.ac): ... to here.
7982
7983 2011-05-22  Bruno Haible  <bruno@clisp.org>
7984
7985         uname: Move AC_LIBOBJ invocations to module description.
7986         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
7987         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
7988         here...
7989         * modules/uname (configure.ac): ... to here.
7990
7991 2011-05-22  Bruno Haible  <bruno@clisp.org>
7992
7993         ttyname_r: Move AC_LIBOBJ invocations to module description.
7994         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
7995         gl_PREREQ_TTYNAME_R invocations from here...
7996         * modules/ttyname_r (configure.ac): ... to here.
7997
7998 2011-05-22  Bruno Haible  <bruno@clisp.org>
7999
8000         tsearch: Move AC_LIBOBJ invocations to module description.
8001         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8002         invocations from here...
8003         * modules/tsearch (configure.ac): ... to here.
8004
8005 2011-05-22  Bruno Haible  <bruno@clisp.org>
8006
8007         towctrans: Move AC_LIBOBJ invocations to module description.
8008         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8009         AC_LIBOBJ invocation from here...
8010         * modules/towctrans (configure.ac): ... to here.
8011
8012 2011-05-22  Bruno Haible  <bruno@clisp.org>
8013
8014         tmpfile: Move AC_LIBOBJ invocations to module description.
8015         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8016         invocations from here...
8017         * modules/tmpfile (configure.ac): ... to here.
8018
8019 2011-05-22  Bruno Haible  <bruno@clisp.org>
8020
8021         times: Move AC_LIBOBJ invocations to module description.
8022         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8023         * modules/times (configure.ac): ... to here.
8024
8025 2011-05-22  Bruno Haible  <bruno@clisp.org>
8026
8027         time_r: Move AC_LIBOBJ invocations to module description.
8028         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8029         invocations from here...
8030         * modules/time_r (configure.ac): ... to here.
8031
8032 2011-05-22  Bruno Haible  <bruno@clisp.org>
8033
8034         timegm: Move AC_LIBOBJ invocations to module description.
8035         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8036         invocations from here...
8037         * modules/timegm (configure.ac): ... to here.
8038
8039 2011-05-22  Bruno Haible  <bruno@clisp.org>
8040
8041         tcgetsid: Move AC_LIBOBJ invocations to module description.
8042         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8043         and gl_PREREQ_TCGETSID invocations from here...
8044         * modules/tcgetsid (configure.ac): ... to here.
8045         (Depends-on): Update conditions.
8046
8047 2011-05-22  Bruno Haible  <bruno@clisp.org>
8048
8049         symlinkat: Move AC_LIBOBJ invocations to module description.
8050         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8051         here...
8052         * modules/symlinkat (configure.ac): ... to here.
8053
8054 2011-05-22  Bruno Haible  <bruno@clisp.org>
8055
8056         symlink: Move AC_LIBOBJ invocations to module description.
8057         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8058         here...
8059         * modules/symlink (configure.ac): ... to here.
8060
8061 2011-05-22  Bruno Haible  <bruno@clisp.org>
8062
8063         strverscmp: Move AC_LIBOBJ invocations to module description.
8064         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8065         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8066         from here...
8067         * modules/strverscmp (configure.ac): ... to here.
8068
8069 2011-05-22  Bruno Haible  <bruno@clisp.org>
8070
8071         strtok_r: Move AC_LIBOBJ invocations to module description.
8072         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8073         and gl_PREREQ_STRTOK_R invocations from here...
8074         * modules/strtok_r (configure.ac): ... to here.
8075         (Depends-on): Update conditions.
8076
8077 2011-05-22  Bruno Haible  <bruno@clisp.org>
8078
8079         strtoumax: Move AC_LIBOBJ invocations to module description.
8080         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8082         from here...
8083         * modules/strtoumax (configure.ac): ... to here.
8084
8085 2011-05-22  Bruno Haible  <bruno@clisp.org>
8086
8087         strtoimax: Move AC_LIBOBJ invocations to module description.
8088         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8089         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8090         from here...
8091         * modules/strtoimax (configure.ac): ... to here.
8092
8093 2011-05-22  Bruno Haible  <bruno@clisp.org>
8094
8095         strtoull: Move AC_LIBOBJ invocations to module description.
8096         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8097         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8098         from here...
8099         * modules/strtoull (configure.ac): ... to here.
8100
8101 2011-05-22  Bruno Haible  <bruno@clisp.org>
8102
8103         strtoll: Move AC_LIBOBJ invocations to module description.
8104         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8105         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8106         here...
8107         * modules/strtoll (configure.ac): ... to here.
8108
8109 2011-05-22  Bruno Haible  <bruno@clisp.org>
8110
8111         strtoul: Move AC_LIBOBJ invocations to module description.
8112         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8113         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8114         * modules/strtoul (configure.ac): ... to here.
8115
8116 2011-05-22  Bruno Haible  <bruno@clisp.org>
8117
8118         strtol: Move AC_LIBOBJ invocations to module description.
8119         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8120         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8121         * modules/strtol (configure.ac): ... to here.
8122
8123 2011-05-22  Bruno Haible  <bruno@clisp.org>
8124
8125         strtod: Move AC_LIBOBJ invocations to module description.
8126         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8127         invocations from here...
8128         * modules/strtod (configure.ac): ... to here.
8129
8130 2011-05-22  Bruno Haible  <bruno@clisp.org>
8131
8132         strstr*: Move AC_LIBOBJ invocations to module description.
8133         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8134         invocations from here...
8135         * modules/strstr-simple (configure.ac): ... to here.
8136         * modules/strstr (configure.ac): ... and here.
8137
8138 2011-05-22  Bruno Haible  <bruno@clisp.org>
8139
8140         strsignal: Move AC_LIBOBJ invocations to module description.
8141         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8142         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8143         * modules/strsignal (configure.ac): ... to here.
8144         (Depends-on): Update conditions.
8145
8146 2011-05-22  Bruno Haible  <bruno@clisp.org>
8147
8148         strsep: Move AC_LIBOBJ invocations to module description.
8149         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8150         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8151         here...
8152         * modules/strsep (configure.ac): ... to here.
8153
8154 2011-05-22  Bruno Haible  <bruno@clisp.org>
8155
8156         strptime: Move AC_LIBOBJ invocations to module description.
8157         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8158         gl_PREREQ_STRPTIME invocations from here...
8159         * modules/strptime (configure.ac): ... to here.
8160
8161 2011-05-22  Bruno Haible  <bruno@clisp.org>
8162
8163         strpbrk: Move AC_LIBOBJ invocations to module description.
8164         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8166         here...
8167         * modules/strpbrk (configure.ac): ... to here.
8168
8169 2011-05-22  Bruno Haible  <bruno@clisp.org>
8170
8171         strnlen: Move AC_LIBOBJ invocations to module description.
8172         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8173         invocations from here...
8174         * modules/strnlen (configure.ac): ... to here.
8175
8176 2011-05-22  Bruno Haible  <bruno@clisp.org>
8177
8178         strndup: Move AC_LIBOBJ invocations to module description.
8179         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8180         invocations from here...
8181         * modules/strndup (configure.ac): ... to here.
8182         (Depends-on): Update conditions.
8183
8184 2011-05-22  Bruno Haible  <bruno@clisp.org>
8185
8186         strncat: Move AC_LIBOBJ invocations to module description.
8187         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8188         invocations from here...
8189         * modules/strncat (configure.ac): ... to here.
8190
8191 2011-05-22  Bruno Haible  <bruno@clisp.org>
8192
8193         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8194         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8195         invocations from here...
8196         * modules/strdup (configure.ac): ... to here.
8197         * modules/strdup-posix (configure.ac): ... and here.
8198
8199 2011-05-22  Bruno Haible  <bruno@clisp.org>
8200
8201         strcspn: Move AC_LIBOBJ invocations to module description.
8202         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8203         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8204         here...
8205         * modules/strcspn (configure.ac): ... to here.
8206
8207 2011-05-22  Bruno Haible  <bruno@clisp.org>
8208
8209         strchrnul: Move AC_LIBOBJ invocations to module description.
8210         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8211         gl_PREREQ_STRCHRNUL invocations from here...
8212         * modules/strchrnul (configure.ac): ... to here.
8213
8214 2011-05-22  Bruno Haible  <bruno@clisp.org>
8215
8216         strcasestr*: Move AC_LIBOBJ invocations to module description.
8217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8218         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8219         * modules/strcasestr-simple (configure.ac): ... to here.
8220         * modules/strcasestr (configure.ac): ... and here.
8221
8222 2011-05-22  Bruno Haible  <bruno@clisp.org>
8223
8224         strcase: Move AC_LIBOBJ invocations to module description.
8225         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8226         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8227         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8228         gl_PREREQ_STRNCASECMP invocations from here...
8229         * modules/strcase (configure.ac): ... to here.
8230
8231 2011-05-22  Bruno Haible  <bruno@clisp.org>
8232
8233         stpncpy: Move AC_LIBOBJ invocations to module description.
8234         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8235         here...
8236         * modules/stpncpy (configure.ac): ... to here.
8237
8238 2011-05-22  Bruno Haible  <bruno@clisp.org>
8239
8240         stpcpy: Move AC_LIBOBJ invocations to module description.
8241         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8242         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8243         here...
8244         * modules/stpcpy (configure.ac): ... to here.
8245
8246 2011-05-21  Bruno Haible  <bruno@clisp.org>
8247
8248         stat: Move AC_LIBOBJ invocations to module description.
8249         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8250         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8251         here...
8252         * modules/stat (configure.ac): ... to here.
8253
8254 2011-05-21  Bruno Haible  <bruno@clisp.org>
8255
8256         sleep: Move AC_LIBOBJ invocations to module description.
8257         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8258         * modules/sleep (configure.ac): ... to here.
8259
8260 2011-05-21  Bruno Haible  <bruno@clisp.org>
8261
8262         signbit: Move AC_LIBOBJ invocations to module description.
8263         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8264         * modules/signbit (configure.ac): ... to here.
8265
8266 2011-05-21  Bruno Haible  <bruno@clisp.org>
8267
8268         sigprocmask: Move AC_LIBOBJ invocations to module description.
8269         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8270         gl_PREREQ_SIGPROMASK invocations from here...
8271         * modules/sigprocmask (configure.ac): ... to here.
8272
8273 2011-05-21  Bruno Haible  <bruno@clisp.org>
8274
8275         sigaction: Move AC_LIBOBJ invocations to module description.
8276         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8277         gl_PREREQ_SIGACTION invocations from here...
8278         * modules/sigaction (configure.ac): ... to here.
8279
8280 2011-05-21  Bruno Haible  <bruno@clisp.org>
8281
8282         sig2str: Move AC_LIBOBJ invocations to module description.
8283         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8285         here...
8286         * modules/sig2str (configure.ac): ... to here.
8287
8288 2011-05-21  Bruno Haible  <bruno@clisp.org>
8289
8290         setlocale: Move AC_LIBOBJ invocations to module description.
8291         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8292         gl_PREREQ_SETLOCALE invocations from here...
8293         * modules/setlocale (configure.ac): ... to here.
8294
8295 2011-05-21  Bruno Haible  <bruno@clisp.org>
8296
8297         unsetenv: Move AC_LIBOBJ invocations to module description.
8298         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8299         and gl_PREREQ_UNSETENV invocations from here...
8300         * modules/unsetenv (configure.ac): ... to here.
8301         (Depends-on): Update.
8302
8303 2011-05-21  Bruno Haible  <bruno@clisp.org>
8304
8305         setenv: Move AC_LIBOBJ invocations to module description.
8306         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8307         here...
8308         * modules/setenv (configure.ac): ... to here.
8309
8310 2011-05-21  Bruno Haible  <bruno@clisp.org>
8311
8312         selinux-h: Move AC_LIBOBJ invocations to module description.
8313         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8314         AC_LIBOBJ invocation from here...
8315         * modules/selinux-h (configure.ac): ... to here.
8316
8317 2011-05-21  Bruno Haible  <bruno@clisp.org>
8318
8319         select: Respect rules for use of AC_LIBOBJ.
8320         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8321         here...
8322         * modules/select (configure.ac): ... to here.
8323
8324 2011-05-21  Bruno Haible  <bruno@clisp.org>
8325
8326         scandir: Move AC_LIBOBJ invocations to module description.
8327         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8328         invocations from here...
8329         * modules/scandir (configure.ac): ... to here.
8330
8331 2011-05-21  Bruno Haible  <bruno@clisp.org>
8332
8333         rpmatch: Move AC_LIBOBJ invocations to module description.
8334         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8336         here...
8337         * modules/rpmatch (configure.ac): ... to here.
8338
8339 2011-05-21  Bruno Haible  <bruno@clisp.org>
8340
8341         rmdir: Respect rules for use of AC_LIBOBJ.
8342         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8343         * modules/rmdir (configure.ac): ... to here.
8344
8345 2011-05-21  Bruno Haible  <bruno@clisp.org>
8346
8347         renameat: Move AC_LIBOBJ invocations to module description.
8348         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8349         here...
8350         * modules/renameat (configure.ac): ... to here.
8351
8352 2011-05-21  Bruno Haible  <bruno@clisp.org>
8353
8354         rename: Respect rules for use of AC_LIBOBJ.
8355         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8356         here...
8357         * modules/rename (configure.ac): ... to here.
8358
8359 2011-05-21  Bruno Haible  <bruno@clisp.org>
8360
8361         remove: Move AC_LIBOBJ invocations to module description.
8362         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8363         here...
8364         * modules/remove (configure.ac): ... to here.
8365
8366 2011-05-21  Bruno Haible  <bruno@clisp.org>
8367
8368         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8369         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8370         macro.
8371         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8372         * modules/relocatable-lib (configure.ac): ... to here.
8373         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8374         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8375
8376 2011-05-21  Bruno Haible  <bruno@clisp.org>
8377
8378         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8379         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8380         here...
8381         * modules/relocatable-prog (configure.ac): ... to here.
8382
8383 2011-05-21  Bruno Haible  <bruno@clisp.org>
8384
8385         regex: Move AC_LIBOBJ invocations to module description.
8386         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8387         invocations from here...
8388         * modules/regex (configure.ac): ... to here.
8389
8390 2011-05-21  Bruno Haible  <bruno@clisp.org>
8391
8392         realloc-*: Move AC_LIBOBJ invocations to module description.
8393         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8394         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8395         AC_LIBOBJ invocations from here...
8396         * modules/realloc-gnu (configure.ac): ... to here.
8397         * modules/realloc-posix (configure.ac): ... and here.
8398
8399 2011-05-21  Bruno Haible  <bruno@clisp.org>
8400
8401         readutmp: Move AC_LIBOBJ invocations to module description.
8402         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8403         * modules/readutmp (configure.ac): ... to here.
8404
8405 2011-05-21  Bruno Haible  <bruno@clisp.org>
8406
8407         readlinkat: Move AC_LIBOBJ invocations to module description.
8408         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8409         here...
8410         * modules/readlinkat (configure.ac): ... to here.
8411
8412 2011-05-21  Bruno Haible  <bruno@clisp.org>
8413
8414         readlink: Move AC_LIBOBJ invocations to module description.
8415         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8416         gl_PREREQ_READLINK invocations from here...
8417         * modules/readlink (configure.ac): ... to here.
8418
8419 2011-05-21  Bruno Haible  <bruno@clisp.org>
8420
8421         readline: Move AC_LIBOBJ invocations to module description.
8422         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8423         gl_PREREQ_READLINE invocations from here...
8424         * modules/readline (configure.ac): ... to here.
8425
8426 2011-05-21  Bruno Haible  <bruno@clisp.org>
8427
8428         read: Move AC_LIBOBJ invocations to module description.
8429         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8430         * modules/read (configure.ac): ... to here.
8431
8432 2011-05-21  Bruno Haible  <bruno@clisp.org>
8433
8434         rawmemchr: Move AC_LIBOBJ invocations to module description.
8435         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8436         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8437         from here...
8438         * modules/rawmemchr (configure.ac): ... to here.
8439
8440 2011-05-21  Bruno Haible  <bruno@clisp.org>
8441
8442         random_r: Move AC_LIBOBJ invocations to module description.
8443         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8444         gl_PREREQ_RANDOM_R invocations from here...
8445         * modules/random_r (configure.ac): ... to here.
8446
8447 2011-05-21  Bruno Haible  <bruno@clisp.org>
8448
8449         pwrite: Move AC_LIBOBJ invocations to module description.
8450         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8451         * modules/pwrite (configure.ac): ... to here.
8452
8453 2011-05-21  Bruno Haible  <bruno@clisp.org>
8454
8455         putenv: Move AC_LIBOBJ invocations to module description.
8456         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8457         * modules/putenv (configure.ac): ... to here.
8458
8459 2011-05-21  Bruno Haible  <bruno@clisp.org>
8460
8461         login_tty: Move AC_LIBOBJ invocations to module description.
8462         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8463         * modules/login_tty (configure.ac): ... to here.
8464
8465 2011-05-21  Bruno Haible  <bruno@clisp.org>
8466
8467         openpty: Move AC_LIBOBJ invocations to module description.
8468         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8469         * modules/openpty (configure.ac): ... to here.
8470
8471 2011-05-21  Bruno Haible  <bruno@clisp.org>
8472
8473         forkpty: Move AC_LIBOBJ invocations to module description.
8474         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8475         * modules/forkpty (configure.ac): ... to here.
8476
8477 2011-05-21  Bruno Haible  <bruno@clisp.org>
8478
8479         ptsname: Move AC_LIBOBJ invocations to module description.
8480         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8481         invocations from here...
8482         * modules/ptsname (configure.ac): ... to here.
8483
8484 2011-05-21  Bruno Haible  <bruno@clisp.org>
8485
8486         pread: Move AC_LIBOBJ invocations to module description.
8487         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8488         * modules/pread (configure.ac): ... to here.
8489
8490 2011-05-21  Bruno Haible  <bruno@clisp.org>
8491
8492         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8493         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8494         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8495         * modules/posix_spawn (configure.ac): ... to here.
8496         * modules/posix_spawnp (configure.ac): ... and here.
8497
8498 2011-05-21  Bruno Haible  <bruno@clisp.org>
8499
8500         popen: Move AC_LIBOBJ invocations to module description.
8501         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8502         invocations from here...
8503         * modules/popen (configure.ac): ... to here.
8504
8505 2011-05-21  Bruno Haible  <bruno@clisp.org>
8506
8507         poll: Move AC_LIBOBJ invocations to module description.
8508         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8509         invocations from here...
8510         * modules/poll (configure.ac): ... to here.
8511
8512 2011-05-21  Bruno Haible  <bruno@clisp.org>
8513
8514         pipe-posix: Move AC_LIBOBJ invocations to module description.
8515         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8516         * modules/pipe-posix (configure.ac): ... to here.
8517
8518 2011-05-21  Bruno Haible  <bruno@clisp.org>
8519
8520         openat: Respect rules for use of AC_LIBOBJ.
8521         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8522         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8523         * modules/openat (configure.ac): ... to here.
8524
8525 2011-05-21  Bruno Haible  <bruno@clisp.org>
8526
8527         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8528         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8529         invocation from here...
8530         * modules/obstack-printf (configure.ac): ... to here.
8531         * modules/obstack-printf-posix (configure.ac): ... and here.
8532
8533 2011-05-21  Bruno Haible  <bruno@clisp.org>
8534
8535         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8536         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8537         from here...
8538         * modules/nl_langinfo (configure.ac): ... to here.
8539
8540 2011-05-21  Bruno Haible  <bruno@clisp.org>
8541
8542         nanosleep: Move AC_LIBOBJ invocations to module description.
8543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8544         gl_PREREQ_NANOSLEEP invocations from here...
8545         * modules/nanosleep (configure.ac): ... to here.
8546
8547 2011-05-21  Bruno Haible  <bruno@clisp.org>
8548
8549         mountlist: Move AC_LIBOBJ invocations to module description.
8550         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8551         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8552         * modules/mountlist (configure.ac): ... to here.
8553
8554 2011-05-21  Bruno Haible  <bruno@clisp.org>
8555
8556         mktime: Respect rules for use of AC_LIBOBJ.
8557         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8558         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8559         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8560         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8561         * modules/mktime (configure.ac): ... to here.
8562         * modules/mktime-internal (configure.ac): ... and here.
8563         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8564
8565 2011-05-21  Bruno Haible  <bruno@clisp.org>
8566
8567         mkstemps: Move AC_LIBOBJ invocations to module description.
8568         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8569         here...
8570         * modules/mkstemps (configure.ac): ... to here.
8571
8572 2011-05-21  Bruno Haible  <bruno@clisp.org>
8573
8574         mkstemp: Move AC_LIBOBJ invocations to module description.
8575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8576         gl_PREREQ_MKSTEMP invocations from here...
8577         * modules/mkstemp (configure.ac): ... to here.
8578
8579 2011-05-21  Bruno Haible  <bruno@clisp.org>
8580
8581         mkostemps: Move AC_LIBOBJ invocations to module description.
8582         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8583         here...
8584         * modules/mkostemps (configure.ac): ... to here.
8585
8586 2011-05-21  Bruno Haible  <bruno@clisp.org>
8587
8588         mkostemp: Move AC_LIBOBJ invocations to module description.
8589         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8590         gl_PREREQ_MKOSTEMP invocations from here...
8591         * modules/mkostemp (configure.ac): ... to here.
8592
8593 2011-05-21  Bruno Haible  <bruno@clisp.org>
8594
8595         mknod: Move AC_LIBOBJ invocations to module description.
8596         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8597         * modules/mknod (configure.ac): ... to here.
8598
8599 2011-05-21  Bruno Haible  <bruno@clisp.org>
8600
8601         mkfifoat: Move AC_LIBOBJ invocations to module description.
8602         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8603         here...
8604         * modules/mkfifoat (configure.ac): ... to here.
8605
8606 2011-05-21  Bruno Haible  <bruno@clisp.org>
8607
8608         mkfifo: Respect rules for use of AC_LIBOBJ.
8609         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8610         here...
8611         * modules/mkfifo (configure.ac): ... to here.
8612
8613 2011-05-21  Bruno Haible  <bruno@clisp.org>
8614
8615         mkdtemp: Move AC_LIBOBJ invocations to module description.
8616         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8617         invocations from here...
8618         * modules/mkdtemp (configure.ac): ... to here.
8619
8620 2011-05-21  Bruno Haible  <bruno@clisp.org>
8621
8622         mkdir: Move AC_LIBOBJ invocations to module description.
8623         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8624         * modules/mkdir (configure.ac): ... to here.
8625
8626 2011-05-21  Bruno Haible  <bruno@clisp.org>
8627
8628         memset: Move AC_LIBOBJ invocations to module description.
8629         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8630         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8631         here...
8632         * modules/memset (configure.ac): ... to here.
8633
8634 2011-05-21  Bruno Haible  <bruno@clisp.org>
8635
8636         memrchr: Move AC_LIBOBJ invocations to module description.
8637         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8639         here...
8640         * modules/memrchr (configure.ac): ... to here.
8641
8642 2011-05-21  Bruno Haible  <bruno@clisp.org>
8643
8644         mempcpy: Move AC_LIBOBJ invocations to module description.
8645         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8646         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8647         here...
8648         * modules/mempcpy (configure.ac): ... to here.
8649
8650 2011-05-21  Bruno Haible  <bruno@clisp.org>
8651
8652         memmove: Move AC_LIBOBJ invocations to module description.
8653         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8654         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8655         here...
8656         * modules/memmove (configure.ac): ... to here.
8657
8658 2011-05-21  Bruno Haible  <bruno@clisp.org>
8659
8660         memmem*: Move AC_LIBOBJ invocations to module description.
8661         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8662         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8663         here...
8664         (gl_FUNC_MEMMEM): ... and here...
8665         * modules/memmem-simple (configure.ac): ... to here.
8666         * modules/memmem (configure.ac): ... and here.
8667
8668 2011-05-21  Bruno Haible  <bruno@clisp.org>
8669
8670         memcpy: Move AC_LIBOBJ invocations to module description.
8671         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8672         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8673         here...
8674         * modules/memcpy (configure.ac): ... to here.
8675
8676 2011-05-21  Bruno Haible  <bruno@clisp.org>
8677
8678         memcmp: Simplify autoconf macro.
8679         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8680         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8681         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8682
8683 2011-05-21  Bruno Haible  <bruno@clisp.org>
8684
8685         memcmp: Move AC_LIBOBJ invocations to module description.
8686         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8687         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8688         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8689         * modules/memcmp (configure.ac): ... to here.
8690         (Depends-on): Update conditions.
8691
8692 2011-05-21  Bruno Haible  <bruno@clisp.org>
8693
8694         memchr: Respect rules for use of AC_LIBOBJ.
8695         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8696         invocations from here...
8697         * modules/memchr (configure.ac): ... to here.
8698
8699 2011-05-21  Bruno Haible  <bruno@clisp.org>
8700
8701         mbtowc: Move AC_LIBOBJ invocations to module description.
8702         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8703         invocations from here...
8704         * modules/mbtowc (configure.ac): ... to here.
8705
8706 2011-05-21  Bruno Haible  <bruno@clisp.org>
8707
8708         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8709         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8710         gl_PREREQ_MBSRTOWCS invocations from here...
8711         * modules/mbsrtowcs (configure.ac): ... to here.
8712
8713 2011-05-21  Bruno Haible  <bruno@clisp.org>
8714
8715         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8716         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8717         gl_PREREQ_MBSNRTOWCS invocations from here...
8718         * modules/mbsnrtowcs (configure.ac): ... to here.
8719
8720 2011-05-21  Bruno Haible  <bruno@clisp.org>
8721
8722         mbsinit: Move AC_LIBOBJ invocations to module description.
8723         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8724         invocations from here...
8725         * modules/mbsinit (configure.ac): ... to here.
8726
8727 2011-05-21  Bruno Haible  <bruno@clisp.org>
8728
8729         mbrlen: Move AC_LIBOBJ invocations to module description.
8730         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8731         invocations from here...
8732         * modules/mbrlen (configure.ac): ... to here.
8733
8734 2011-05-21  Bruno Haible  <bruno@clisp.org>
8735
8736         mbrtowc: Respect rules for use of AC_LIBOBJ.
8737         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8738         invocations from here...
8739         * modules/mbrtowc (configure.ac): ... to here.
8740
8741 2011-05-21  Bruno Haible  <bruno@clisp.org>
8742
8743         malloc-*: Move AC_LIBOBJ invocations to module description.
8744         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8745         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8746         AC_LIBOBJ invocations from here...
8747         * modules/malloc-gnu (configure.ac): ... to here.
8748         * modules/malloc-posix (configure.ac): ... and here.
8749
8750 2011-05-21  Bruno Haible  <bruno@clisp.org>
8751
8752         lstat, openat: Respect rules for use of AC_LIBOBJ.
8753         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8754         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8755         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8756         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8757         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8758         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8759         here.
8760         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8761
8762 2011-05-21  Bruno Haible  <bruno@clisp.org>
8763
8764         lseek: Move AC_LIBOBJ invocations to module description.
8765         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8766         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8767         * modules/lseek (configure.ac): ... to here.
8768
8769 2011-05-21  Bruno Haible  <bruno@clisp.org>
8770
8771         linkat: Move AC_LIBOBJ invocations to module description.
8772         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8773         here...
8774         * modules/linkat (configure.ac): ... to here.
8775
8776 2011-05-21  Bruno Haible  <bruno@clisp.org>
8777
8778         link: Respect rules for use of AC_LIBOBJ.
8779         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8780         * modules/link (configure.ac): ... to here.
8781
8782 2011-05-21  Bruno Haible  <bruno@clisp.org>
8783
8784         lchown: Move AC_LIBOBJ invocations to module description.
8785         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8786         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8787         * modules/lchown (configure.ac): ... to here.
8788
8789 2011-05-21  Bruno Haible  <bruno@clisp.org>
8790
8791         iswctype: Move AC_LIBOBJ invocations to module description.
8792         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8793         here...
8794         * modules/iswctype (configure.ac): ... to here.
8795
8796 2011-05-21  Bruno Haible  <bruno@clisp.org>
8797
8798         iswblank: Move AC_LIBOBJ invocations to module description.
8799         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8800         here...
8801         * modules/iswblank (configure.ac): ... to here.
8802
8803 2011-05-21  Bruno Haible  <bruno@clisp.org>
8804
8805         atanl: Move AC_LIBOBJ invocations to module description.
8806         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8807         * modules/atanl (configure.ac): ... to here.
8808
8809 2011-05-21  Bruno Haible  <bruno@clisp.org>
8810
8811         acosl: Move AC_LIBOBJ invocations to module description.
8812         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8813         * modules/acosl (configure.ac): ... to here.
8814
8815 2011-05-21  Bruno Haible  <bruno@clisp.org>
8816
8817         asinl: Respect rules for use of AC_LIBOBJ.
8818         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8819         * modules/asinl (configure.ac): ... to here.
8820
8821 2011-05-21  Bruno Haible  <bruno@clisp.org>
8822
8823         tanl: Move AC_LIBOBJ invocations to module description.
8824         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8825         * modules/tanl (configure.ac): ... to here.
8826
8827 2011-05-21  Bruno Haible  <bruno@clisp.org>
8828
8829         cosl: Move AC_LIBOBJ invocations to module description.
8830         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8831         * modules/cosl (configure.ac): ... to here.
8832
8833 2011-05-21  Bruno Haible  <bruno@clisp.org>
8834
8835         sinl: Move AC_LIBOBJ invocations to module description.
8836         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8837         * modules/sinl (configure.ac): ... to here.
8838
8839 2011-05-21  Bruno Haible  <bruno@clisp.org>
8840
8841         logl: Move AC_LIBOBJ invocations to module description.
8842         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8843         * modules/logl (configure.ac): ... to here.
8844
8845 2011-05-21  Bruno Haible  <bruno@clisp.org>
8846
8847         expl: Move AC_LIBOBJ invocations to module description.
8848         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8849         * modules/expl (configure.ac): ... to here.
8850
8851 2011-05-21  Bruno Haible  <bruno@clisp.org>
8852
8853         roundl: Move AC_LIBOBJ invocations to module description.
8854         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8855         * modules/roundl (configure.ac): ... to here.
8856
8857 2011-05-21  Bruno Haible  <bruno@clisp.org>
8858
8859         round: Move AC_LIBOBJ invocations to module description.
8860         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8861         * modules/round (configure.ac): ... to here.
8862
8863 2011-05-21  Bruno Haible  <bruno@clisp.org>
8864
8865         roundf: Move AC_LIBOBJ invocations to module description.
8866         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8867         * modules/roundf (configure.ac): ... to here.
8868
8869 2011-05-21  Bruno Haible  <bruno@clisp.org>
8870
8871         truncl: Move AC_LIBOBJ invocations to module description.
8872         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8873         * modules/truncl (configure.ac): ... to here.
8874
8875 2011-05-21  Bruno Haible  <bruno@clisp.org>
8876
8877         trunc: Move AC_LIBOBJ invocations to module description.
8878         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8879         * modules/trunc (configure.ac): ... to here.
8880
8881 2011-05-21  Bruno Haible  <bruno@clisp.org>
8882
8883         truncf: Move AC_LIBOBJ invocations to module description.
8884         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8885         * modules/truncf (configure.ac): ... to here.
8886
8887 2011-05-21  Bruno Haible  <bruno@clisp.org>
8888
8889         ceill: Move AC_LIBOBJ invocations to module description.
8890         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8891         * modules/ceill (configure.ac): ... to here.
8892
8893 2011-05-21  Bruno Haible  <bruno@clisp.org>
8894
8895         ceil: Move AC_LIBOBJ invocations to module description.
8896         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8897         * modules/ceil (configure.ac): ... to here.
8898
8899 2011-05-21  Bruno Haible  <bruno@clisp.org>
8900
8901         ceilf: Move AC_LIBOBJ invocations to module description.
8902         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8903         * modules/ceilf (configure.ac): ... to here.
8904
8905 2011-05-21  Bruno Haible  <bruno@clisp.org>
8906
8907         floorl: Respect rules for use of AC_LIBOBJ.
8908         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8909         * modules/floorl (configure.ac): ... to here.
8910
8911 2011-05-21  Bruno Haible  <bruno@clisp.org>
8912
8913         floor: Respect rules for use of AC_LIBOBJ.
8914         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8915         * modules/floor (configure.ac): ... to here.
8916
8917 2011-05-21  Bruno Haible  <bruno@clisp.org>
8918
8919         floorf: Move AC_LIBOBJ invocations to module description.
8920         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8921         * modules/floorf (configure.ac): ... to here.
8922
8923 2011-05-20  Bruno Haible  <bruno@clisp.org>
8924
8925         sqrtl: Respect rules for use of AC_LIBOBJ.
8926         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8927         * modules/sqrtl (configure.ac): ... to here.
8928
8929 2011-05-20  Bruno Haible  <bruno@clisp.org>
8930
8931         ldexpl: Respect rules for use of AC_LIBOBJ.
8932         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
8933         * modules/ldexpl (configure.ac): ... to here.
8934
8935 2011-05-20  Bruno Haible  <bruno@clisp.org>
8936
8937         frexpl*: Respect rules for use of AC_LIBOBJ.
8938         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
8939         invocation from here...
8940         * modules/frexpl (configure.ac): ... to here.
8941         * modules/frexpl-nolibm (configure.ac): ... and here.
8942
8943 2011-05-20  Bruno Haible  <bruno@clisp.org>
8944
8945         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
8946         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
8947         invocation from here...
8948         * modules/frexp (configure.ac): ... to here.
8949         * modules/frexp-nolibm (configure.ac): ... and here.
8950
8951 2011-05-20  Bruno Haible  <bruno@clisp.org>
8952
8953         isnan: Respect rules for use of AC_LIBOBJ.
8954         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
8955         invocations here.
8956         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
8957         REPLACE_ISNAN.
8958         * modules/isnand (configure.ac): Likewise.
8959         * modules/isnanl (configure.ac): Likewise.
8960
8961 2011-05-20  Bruno Haible  <bruno@clisp.org>
8962
8963         isnanl*: Respect rules for use of AC_LIBOBJ.
8964         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
8965         invocation from here...
8966         * modules/isnanl (configure.ac): ... to here.
8967         * modules/isnanl-nolibm (configure.ac): ... and here.
8968
8969 2011-05-20  Bruno Haible  <bruno@clisp.org>
8970
8971         isnand*: Move AC_LIBOBJ invocations to module description.
8972         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
8973         invocation from here...
8974         * modules/isnand (configure.ac): ... to here.
8975         * modules/isnand-nolibm (configure.ac): ... and here.
8976
8977 2011-05-20  Bruno Haible  <bruno@clisp.org>
8978
8979         isnanf*: Move AC_LIBOBJ invocations to module description.
8980         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
8981         invocation from here...
8982         * modules/isnanf (configure.ac): ... to here.
8983         * modules/isnanf-nolibm (configure.ac): ... and here.
8984
8985 2011-05-20  Bruno Haible  <bruno@clisp.org>
8986
8987         isnan*: Separate the AC_LIBOBJ invocations.
8988         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
8989         AC_LIBOBJ invocation.
8990         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
8991         here.
8992         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
8993         AC_LIBOBJ invocation.
8994         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
8995         here.
8996         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
8997         AC_LIBOBJ invocation.
8998         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
8999         here.
9000         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9001
9002 2011-05-08  Bruno Haible  <bruno@clisp.org>
9003
9004         isinf: Move AC_LIBOBJ invocations to module description.
9005         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9006         * modules/isinf (configure.ac): ... to here.
9007
9008 2011-05-08  Bruno Haible  <bruno@clisp.org>
9009
9010         isfinite: Move AC_LIBOBJ invocations to module description.
9011         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9012         * modules/isfinite (configure.ac): ... to here.
9013
9014 2011-05-08  Bruno Haible  <bruno@clisp.org>
9015
9016         isblank: Move AC_LIBOBJ invocations to module description.
9017         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9018         here...
9019         * modules/isblank (configure.ac): ... to here.
9020
9021 2011-05-08  Bruno Haible  <bruno@clisp.org>
9022
9023         isapipe: Move AC_LIBOBJ invocations to module description.
9024         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9025         gl_PREREQ_ISAPIPE invocations from here...
9026         * modules/isapipe (configure.ac): ... to here.
9027         (Depends-on): Update condition.
9028
9029 2011-05-08  Bruno Haible  <bruno@clisp.org>
9030
9031         ioctl: Move AC_LIBOBJ invocations to module description.
9032         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9033         invocations from here...
9034         * modules/ioctl (configure.ac): ... to here.
9035         (Depends-on): Update condition.
9036
9037 2011-05-08  Bruno Haible  <bruno@clisp.org>
9038
9039         imaxdiv: Move AC_LIBOBJ invocations to module description.
9040         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9041         invocations from here...
9042         * modules/imaxdiv (configure.ac): ... to here.
9043
9044 2011-05-08  Bruno Haible  <bruno@clisp.org>
9045
9046         imaxabs: Move AC_LIBOBJ invocations to module description.
9047         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9048         invocations from here...
9049         * modules/imaxabs (configure.ac): ... to here.
9050
9051 2011-05-08  Bruno Haible  <bruno@clisp.org>
9052
9053         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9054         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9055         AC_LIBOBJ invocations from here...
9056         * modules/getaddrinfo (configure.ac): ... to here.
9057         (Depends-on): Add conditions.
9058
9059 2011-05-08  Bruno Haible  <bruno@clisp.org>
9060
9061         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9062         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9063         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9064         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9065         (gl_PREREQ_INET_PTON): ... from here.
9066         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9067         gl_PREREQ_INET_PTON here.
9068         (Depends-on): Update condition.
9069
9070 2011-05-08  Bruno Haible  <bruno@clisp.org>
9071
9072         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9073         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9074         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9075         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9076         (gl_PREREQ_INET_NTOP): ... from here.
9077         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9078         gl_PREREQ_INET_NTOP here.
9079         (Depends-on): Update condition.
9080
9081 2011-05-08  Bruno Haible  <bruno@clisp.org>
9082
9083         iconv_open: Move AC_LIBOBJ invocations to module description.
9084         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9085         AC_LIBOBJ invocations from here...
9086         * modules/iconv_open (configure.ac): ... to here.
9087
9088 2011-05-08  Bruno Haible  <bruno@clisp.org>
9089
9090         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9091         If module 'iconv_open' is among the main modules and module
9092         'iconv_open-utf' is among the tests dependencies, then
9093         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9094         return the special iconv_t values. Therefore iconv() and iconv_close()
9095         must support these special iconv_t values, already in lib, not only in
9096         tests.
9097         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9098         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9099         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9100         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9101         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9102         (Depends-on): Add the dependencies of iconv_open-utf.
9103         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9104         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9105         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9106
9107 2011-05-08  Bruno Haible  <bruno@clisp.org>
9108
9109         group-member: Move AC_LIBOBJ invocations to module description.
9110         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9111         gl_PREREQ_GROUP_MEMBER invocations from here...
9112         * modules/group-member (configure.ac): ... to here.
9113
9114 2011-05-08  Bruno Haible  <bruno@clisp.org>
9115
9116         grantpt: Move AC_LIBOBJ invocations to module description.
9117         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9118         invocations from here...
9119         * modules/grantpt (configure.ac): ... to here.
9120
9121 2011-05-08  Bruno Haible  <bruno@clisp.org>
9122
9123         glob: Move AC_LIBOBJ invocations to module description.
9124         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9125         from here...
9126         * modules/glob (configure.ac): ... to here.
9127
9128 2011-05-08  Bruno Haible  <bruno@clisp.org>
9129
9130         getusershell: Move AC_LIBOBJ invocations to module description.
9131         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9132         Move AC_LIBOBJ invocation from here...
9133         * modules/getusershell (configure.ac): ... to here.
9134         (Depends-on): Update condition.
9135
9136 2011-05-08  Bruno Haible  <bruno@clisp.org>
9137
9138         gettimeofday: Move AC_LIBOBJ invocations to module description.
9139         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9140         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9141         gl_PREREQ_GETTIMEOFDAY invocations from here...
9142         * modules/gettimeofday (configure.ac): ... to here.
9143
9144 2011-05-08  Bruno Haible  <bruno@clisp.org>
9145
9146         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9147         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9148         just gl_FUNC_TZSET.
9149         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9150         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9151         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9152         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9153
9154 2011-05-08  Bruno Haible  <bruno@clisp.org>
9155
9156         getsubopt: Move AC_LIBOBJ invocations to module description.
9157         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9158         gl_PREREQ_GETSUBOPT invocations from here...
9159         * modules/getsubopt (configure.ac): ... to here.
9160
9161 2011-05-08  Bruno Haible  <bruno@clisp.org>
9162
9163         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9164         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9165         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9166         * modules/getpass-gnu (configure.ac): ... to here.
9167
9168 2011-05-08  Bruno Haible  <bruno@clisp.org>
9169
9170         getpass: Move AC_LIBOBJ invocations to module description.
9171         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9172         gl_PREREQ_GETPASS invocations from here...
9173         * modules/getpass (configure.ac): ... to here.
9174
9175 2011-05-08  Bruno Haible  <bruno@clisp.org>
9176
9177         getpagesize: Move AC_LIBOBJ invocations to module description.
9178         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9179         from here...
9180         * modules/getpagesize (configure.ac): ... to here.
9181
9182 2011-05-08  Bruno Haible  <bruno@clisp.org>
9183
9184         getopt: Move AC_LIBOBJ invocations to module description.
9185         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9186         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9187         invocations from here...
9188         * modules/getopt-gnu (configure.ac): ... to here.
9189         * modules/getopt-posix (configure.ac): ... and here.
9190         (Depends-on): Update condition.
9191
9192 2011-05-08  Bruno Haible  <bruno@clisp.org>
9193
9194         getopt, argp: Respect rules for use of AC_LIBOBJ.
9195         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9196         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9197         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9198         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9199
9200 2011-05-08  Bruno Haible  <bruno@clisp.org>
9201
9202         getlogin_r: Move AC_LIBOBJ invocations to module description.
9203         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9204         gl_PREREQ_GETLOGIN_R invocations from here...
9205         * modules/getlogin_r (configure.ac): ... to here.
9206
9207 2011-05-08  Bruno Haible  <bruno@clisp.org>
9208
9209         getlogin: Move AC_LIBOBJ invocations to module description.
9210         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9211         here...
9212         * modules/getlogin (configure.ac): ... to here.
9213
9214 2011-05-08  Bruno Haible  <bruno@clisp.org>
9215
9216         getloadavg: Move AC_LIBOBJ invocations to module description.
9217         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9218         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9219         * modules/getloadavg (configure.ac): ... to here.
9220
9221 2011-05-08  Bruno Haible  <bruno@clisp.org>
9222
9223         gethrxtime: Move AC_LIBOBJ invocations to module description.
9224         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9225         LIB_GETHRXTIME from here...
9226         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9227         invocations from here...
9228         * modules/gethrxtime (configure.ac): ... to here.
9229
9230 2011-05-08  Bruno Haible  <bruno@clisp.org>
9231
9232         gethostname: Move AC_LIBOBJ invocations to module description.
9233         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9234         gl_PREREQ_GETHOSTNAME invocations from here...
9235         * modules/gethostname (configure.ac): ... to here.
9236
9237 2011-05-08  Bruno Haible  <bruno@clisp.org>
9238
9239         getgroups: Move AC_LIBOBJ invocations to module description.
9240         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9241         here...
9242         * modules/getgroups (configure.ac): ... to here.
9243
9244 2011-05-08  Bruno Haible  <bruno@clisp.org>
9245
9246         getdtablesize: Move AC_LIBOBJ invocations to module description.
9247         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9248         invocation from here...
9249         * modules/getdtablesize (configure.ac): ... to here.
9250
9251 2011-05-08  Bruno Haible  <bruno@clisp.org>
9252
9253         getdomainname: Move AC_LIBOBJ invocations to module description.
9254         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9255         gl_PREREQ_GETDOMAINNAME invocations from here...
9256         * modules/getdomainname (configure.ac): ... to here.
9257
9258 2011-05-08  Bruno Haible  <bruno@clisp.org>
9259
9260         getline: Move AC_LIBOBJ invocations to module description.
9261         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9262         invocations from here...
9263         * modules/getline (configure.ac): ... to here.
9264
9265 2011-05-08  Bruno Haible  <bruno@clisp.org>
9266
9267         getline: Simplify.
9268         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9269         It's already handled through the module dependency.
9270
9271 2011-05-08  Bruno Haible  <bruno@clisp.org>
9272
9273         getdelim: Move AC_LIBOBJ invocations to module description.
9274         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9275         and gl_PREREQ_GETDELIM invocations from here...
9276         * modules/getdelim (configure.ac): ... to here.
9277         (Depends-on): Fix condition.
9278
9279 2011-05-08  Bruno Haible  <bruno@clisp.org>
9280
9281         getcwd: Move AC_LIBOBJ invocations to module description.
9282         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9283         invocations from here...
9284         * modules/getcwd (configure.ac): ... to here.
9285
9286 2011-05-08  Bruno Haible  <bruno@clisp.org>
9287
9288         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9289         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9290         here...
9291         * modules/getcwd-lgpl (configure.ac): ... to here.
9292
9293 2011-05-07  Bruno Haible  <bruno@clisp.org>
9294
9295         crypto/gc: Move AC_LIBOBJ invocations to module description.
9296         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9297         * modules/crypto/gc (configure.ac): ... to here.
9298
9299 2011-05-07  Bruno Haible  <bruno@clisp.org>
9300
9301         fwriting: Move AC_LIBOBJ invocations to module description.
9302         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9303         here...
9304         * modules/fwriting (configure.ac): ... to here.
9305
9306 2011-05-07  Bruno Haible  <bruno@clisp.org>
9307
9308         fwritable: Move AC_LIBOBJ invocations to module description.
9309         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9310         here...
9311         * modules/fwritable (configure.ac): ... to here.
9312
9313 2011-05-07  Bruno Haible  <bruno@clisp.org>
9314
9315         futimens: Move AC_LIBOBJ invocations to module description.
9316         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9317         here...
9318         * modules/futimens (configure.ac): ... to here.
9319
9320 2011-05-07  Bruno Haible  <bruno@clisp.org>
9321
9322         ftruncate: Move AC_LIBOBJ invocations to module description.
9323         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9324         gl_PREREQ_FTRUNCATE invocations from here...
9325         * modules/ftruncate (configure.ac): ... to here.
9326
9327 2011-05-07  Bruno Haible  <bruno@clisp.org>
9328
9329         fsync: Move AC_LIBOBJ invocations to module description.
9330         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9331         invocations from here...
9332         * modules/fsync (configure.ac): ... to here.
9333
9334 2011-05-07  Bruno Haible  <bruno@clisp.org>
9335
9336         fsusage: Move AC_LIBOBJ invocations to module description.
9337         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9338         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9339         * modules/fsusage (configure.ac): ... to here.
9340
9341 2011-05-07  Bruno Haible  <bruno@clisp.org>
9342
9343         freopen: Move AC_LIBOBJ invocations to module description.
9344         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9345         invocations from here...
9346         * modules/freopen (configure.ac): ... to here.
9347
9348 2011-05-07  Bruno Haible  <bruno@clisp.org>
9349
9350         free: Move AC_LIBOBJ invocations to module description.
9351         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9352         invocations from here...
9353         * modules/free (configure.ac): ... to here.
9354
9355 2011-05-07  Bruno Haible  <bruno@clisp.org>
9356
9357         freadable: Move AC_LIBOBJ invocations to module description.
9358         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9359         here...
9360         * modules/freadable (configure.ac): ... to here.
9361
9362 2011-05-07  Bruno Haible  <bruno@clisp.org>
9363
9364         fpurge: Move AC_LIBOBJ invocations to module description.
9365         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9366         invocations from here...
9367         * modules/fpurge (configure.ac): ... to here.
9368
9369 2011-05-07  Bruno Haible  <bruno@clisp.org>
9370
9371         fpending: Move AC_LIBOBJ invocations to module description.
9372         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9373         gl_FUNC_FPENDING.
9374         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9375         invocations from here...
9376         * modules/fpending (configure.ac): ... to here.
9377
9378 2011-05-07  Bruno Haible  <bruno@clisp.org>
9379
9380         fopen: Move AC_LIBOBJ invocations to module description.
9381         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9382         invocations from here...
9383         * modules/fopen (configure.ac): ... to here.
9384
9385 2011-05-07  Bruno Haible  <bruno@clisp.org>
9386
9387         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9388         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9389         gl_FUNC_FNMATCH_POSIX.
9390         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9391         invocations from here...
9392         * modules/fnmatch (configure.ac): ... to here.
9393         * modules/fnmatch-gnu (configure.ac): ... and here.
9394
9395 2011-05-07  Bruno Haible  <bruno@clisp.org>
9396
9397         flock: Move AC_LIBOBJ invocations to module description.
9398         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9399         invocations from here...
9400         * modules/flock (configure.ac): ... to here.
9401
9402 2011-05-07  Bruno Haible  <bruno@clisp.org>
9403
9404         fileblocks: Move AC_LIBOBJ invocations to module description.
9405         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9406         gl_PREREQ_FILEBLOCKS invocations from here...
9407         * modules/fileblocks (configure.ac): ... to here.
9408
9409 2011-05-06  Bruno Haible  <bruno@clisp.org>
9410
9411         fflush: Move AC_LIBOBJ invocations to module description.
9412         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9413         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9414         invocations from here...
9415         * modules/fflush (configure.ac): ... to here.
9416
9417 2011-05-06  Bruno Haible  <bruno@clisp.org>
9418
9419         fdopendir: Move AC_LIBOBJ invocations to module description.
9420         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9421         here...
9422         * modules/fdopendir (configure.ac): ... to here.
9423         (Depends-on): Improve conditions.
9424
9425 2011-05-06  Bruno Haible  <bruno@clisp.org>
9426
9427         _Exit: Move AC_LIBOBJ invocations to module description.
9428         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9429         invocations from here...
9430         * modules/_Exit (configure.ac): ... to here.
9431
9432 2011-05-21  Bruno Haible  <bruno@clisp.org>
9433
9434         euidaccess: Respect rules for use of AC_LIBOBJ.
9435         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9436         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9437         from here...
9438         * modules/euidaccess (configure.ac): ... to here.
9439
9440 2011-05-06  Bruno Haible  <bruno@clisp.org>
9441
9442         error: Move AC_LIBOBJ invocations to module description.
9443         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9444         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9445         invocations from here...
9446         * modules/error (configure.ac): ... to here.
9447
9448 2011-05-06  Bruno Haible  <bruno@clisp.org>
9449
9450         duplocale: Move AC_LIBOBJ invocations to module description.
9451         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9452         gl_PREREQ_DUPLOCALE invocations from here...
9453         * modules/duplocale (configure.ac): ... to here.
9454
9455 2011-05-05  Bruno Haible  <bruno@clisp.org>
9456
9457         dirfd: Move AC_LIBOBJ invocations to module description.
9458         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9459         gl_FUNC_DIRFD.
9460         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9461         here...
9462         * modules/dirfd (configure.ac): ... to here.
9463         (Depends-on): Fix condition.
9464
9465 2011-05-05  Bruno Haible  <bruno@clisp.org>
9466
9467         chown: Respect rules for use of AC_LIBOBJ.
9468         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9469         * modules/chown (configure.ac): ... to here.
9470
9471 2011-05-05  Bruno Haible  <bruno@clisp.org>
9472
9473         chdir-long: Move AC_LIBOBJ invocations to module description.
9474         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9475         gl_PREREQ_CHDIR_LONG invocations from here...
9476         * modules/chdir-long (configure.ac): ... to here.
9477
9478 2011-05-05  Bruno Haible  <bruno@clisp.org>
9479
9480         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9481         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9482         from here...
9483         * modules/canonicalize-lgpl (configure.ac): ... to here.
9484
9485 2011-05-05  Bruno Haible  <bruno@clisp.org>
9486
9487         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9488         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9489         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9490         REPLACE_CALLOC.
9491         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9492         * modules/calloc-gnu (configure.ac): Likewise.
9493
9494 2011-05-05  Bruno Haible  <bruno@clisp.org>
9495
9496         btowc: Move AC_LIBOBJ invocations to module description.
9497         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9498         invocations from here...
9499         * modules/btowc (configure.ac): ... to here.
9500
9501 2011-05-21  Bruno Haible  <bruno@clisp.org>
9502
9503         atexit: Move AC_LIBOBJ invocations to module description.
9504         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9505         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9506         here...
9507         * modules/atexit (configure.ac): ... to here.
9508
9509 2011-05-05  Bruno Haible  <bruno@clisp.org>
9510
9511         atoll: Move AC_LIBOBJ invocations to module description.
9512         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9513         invocations from here...
9514         * modules/atoll (configure.ac): ... to here.
9515
9516 2011-05-05  Bruno Haible  <bruno@clisp.org>
9517
9518         argz: Move AC_LIBOBJ invocations to module description.
9519         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9520         * modules/argz (configure.ac): ... to here.
9521
9522 2011-05-05  Bruno Haible  <bruno@clisp.org>
9523
9524         alphasort: Move AC_LIBOBJ invocations to module description.
9525         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9526         gl_PREREQ_ALPHASORT invocations from here...
9527         * modules/alphasort (configure.ac): ... to here.
9528
9529 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9530
9531         verify: new macro verify_expr; verify_true deprecated
9532         * NEWS: Mention this.
9533         * doc/verify.texi (Compile-time Assertions): Document this.
9534         * lib/verify.h (verify_true): Deprecate.
9535         (verify_expr): New macro.
9536         * tests/test-verify.c (function): Test verify_expr.
9537
9538 2011-06-14  Jim Meyering  <meyering@redhat.com>
9539
9540         init.sh: give more portable redirection-related advice in a comment
9541         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9542         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9543         for lots of discussion.  Stefano Lattarini suggested the solution
9544         of putting "9>&2" after the command.  Reported by Bruno Haible.
9545
9546 2011-06-13  Bruno Haible  <bruno@clisp.org>
9547
9548         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9549         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9550         'none'.
9551
9552 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9553
9554         ftoastr: use strtof only if HAVE_STRTOF
9555         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9557         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9558         * modules/ftoastr (configure.ac): Check for strtof.
9559
9560 2011-06-13  Bruno Haible  <bruno@clisp.org>
9561
9562         gnulib-tool: Addendum to 2011-06-08 commit.
9563         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9564         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9565
9566 2011-06-13  Bruno Haible  <bruno@clisp.org>
9567
9568         fseeko: Provide a non-inline replacement of fseek().
9569         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9570         * modules/fseeko (Depends-on): Add fseek.
9571         * modules/fseek (License): Change to LGPLv2+.
9572
9573 2011-06-13  Bruno Haible  <bruno@clisp.org>
9574
9575         ftello: Provide a non-inline replacement of ftell().
9576         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9577         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9578         not have ftello() (such as on mingw).
9579         * modules/ftello (Depends-on): Add ftell.
9580         * modules/ftell (License): Change to LGPLv2+.
9581
9582 2011-05-07  Bruno Haible  <bruno@clisp.org>
9583
9584         ftell: Move AC_LIBOBJ invocations to module description.
9585         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9586         * modules/ftell (configure.ac): ... to here.
9587
9588 2011-05-07  Bruno Haible  <bruno@clisp.org>
9589
9590         ftello: Respect rules for use of AC_LIBOBJ.
9591         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9592         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9593         here...
9594         * modules/ftello (configure.ac): ... to here.
9595
9596 2011-05-07  Bruno Haible  <bruno@clisp.org>
9597
9598         fseeko: Simplify.
9599         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9600         (gl_FUNC_FSEEKO): Inline it here.
9601
9602 2011-05-07  Bruno Haible  <bruno@clisp.org>
9603
9604         fseek: Move AC_LIBOBJ invocations to module description.
9605         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9606         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9607         * modules/fseek (configure.ac): ... to here.
9608
9609 2011-05-07  Bruno Haible  <bruno@clisp.org>
9610
9611         fseek: Respect rules for use of AC_LIBOBJ.
9612         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9613         here...
9614         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9615
9616 2011-05-07  Bruno Haible  <bruno@clisp.org>
9617
9618         fseeko: Respect rules for use of AC_LIBOBJ.
9619         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9620         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9621         here...
9622         * modules/fseeko (configure.ac): ... to here.
9623
9624 2011-06-13  Bruno Haible  <bruno@clisp.org>
9625
9626         gnulib-tool: Allow comments in the 'Depends-on' section.
9627         * doc/gnulib.texi (Module description): Mention comment syntax in the
9628         Depends-on section.
9629         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9630
9631 2011-06-13  Bruno Haible  <bruno@clisp.org>
9632
9633         file-set.h: guard __attibute__ use, now that it's not always defined
9634         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9635         versions that support it.  This fixes a coreutils build failure with
9636         the vendor cc on HP-UX 11.31.
9637
9638 2011-06-12  Bruno Haible  <bruno@clisp.org>
9639
9640         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9641         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9642         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9643         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9644         (acl, aclsort): New declarations.
9645         (aclv_nontrivial): New declaration.
9646         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9647         (file_has_acl): Read also the second kind of HP-UX ACLs.
9648         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9649         kind of HP-UX ACLs if the first kind fails.
9650         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9651         second kind of HP-UX ACLs.
9652         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9653         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9654         agree.
9655         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9656         hpuxjfs.
9657         Handle hpuxjfs.
9658         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9659         hpuxjfs.
9660         Handle hpuxjfs.
9661         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9662         (func_test_same_acls): Use both lsacl and getacl.
9663         Handle hpuxjfs.
9664         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9665         (func_test_same_acls): Use both lsacl and getacl.
9666         Handle hpuxjfs.
9667
9668 2011-06-12  Bruno Haible  <bruno@clisp.org>
9669
9670         acl: Complete the 2010-08-10 fix.
9671         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9672         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9673         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9674         explicitly.
9675         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9676         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9677
9678 2011-06-12  Bruno Haible  <bruno@clisp.org>
9679
9680         spawn-pipe tests: Comments.
9681         * tests/test-spawn-pipe-child.c (main): Update comment.
9682         Reported by James Youngman <jay@gnu.org>.
9683
9684 2011-06-11  James Youngman  <jay@gnu.org>
9685
9686         New module 'stat-size'.
9687         * modules/stat-size: New module.  Provides macros for accessing
9688         file size information in instances of struct stat.  Depends on the
9689         fileblocks module because it calls st_blocks.
9690         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9691         * doc/gnulib.texi: Include stat-size.texi.
9692         * doc/stat-size.texi: Documentation for this module.
9693         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9694         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9695         AC_STRUCT_ST_BLOCKS.
9696
9697 2011-06-09  Bruno Haible  <bruno@clisp.org>
9698
9699         thread: Support pthreads-win32.
9700         * lib/glthread/thread.h (gl_thread_self): Define differently on
9701         pthreads-win32.
9702         (gl_null_thread): New declaration.
9703         (gl_thread_self_pointer): New macro.
9704         * lib/glthread/thread.c (gl_null_thread): New constant.
9705         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9706         gl_thread_self.
9707         * tests/test-tls.c: Likewise.
9708         Suggested by Paul Eggert. Reported by Eric Blake.
9709
9710 2011-06-09  Bruno Haible  <bruno@clisp.org>
9711
9712         thread: Fix confusion between NULL and 0.
9713         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9714         Reported by Paul Eggert.
9715
9716 2011-06-09  Bruno Haible  <bruno@clisp.org>
9717
9718         spawn-pipe tests: Avoid test failure on HP-UX 11.
9719         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9720         is closed.
9721
9722 2011-06-09  Bruno Haible  <bruno@clisp.org>
9723
9724         acl tests: Fix compilation error on HP-UX 11.
9725         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9726
9727 2011-06-09  Bruno Haible  <bruno@clisp.org>
9728
9729         rmdir: Avoid test failure on HP-UX 10.20.
9730         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9731         EEXIST.
9732
9733 2011-06-08  Eric Blake  <eblake@redhat.com>
9734
9735         perror: fix test on mingw
9736         * modules/perror-tests (Depends-on): Add dup2.
9737
9738         strerror_r-posix: fix on MacOS
9739         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9740         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9741         logic bug.
9742         * lib/strerror_r.c (strerror_r): Fix the bug.
9743         * lib/strerror.c (strerror): Likewise.
9744         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9745         problem.
9746         * doc/posix-functions/strerror.texi (strerror): Likewise.
9747         * doc/posix-functions/perror.texi (perror): Likewise.
9748         * tests/test-strerror.c (main): Enhance test.
9749         * tests/test-strerror_r.c (main): Likewise.
9750
9751 2011-06-08  Bruno Haible  <bruno@clisp.org>
9752
9753         gnulib-tool: Better isolation between different gnulib-tool invocations.
9754         * gnulib-tool: New option --witness-c-macro.
9755         (witness_c_macro): New variable.
9756         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9757         AM_CPPFLAGS define it as a C macro.
9758         (func_emit_tests_Makefile_am): Likewise.
9759         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9760         read it from there.
9761         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9762         m4_define, not AC_DEFUN.
9763         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9764         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9765         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9766         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9767         s|...|...|, to substitute the values of the GNULIB_* module indicator
9768         variables.
9769         * modules/dirent (Makefile.am): Likewise.
9770         * modules/fcntl-h (Makefile.am): Likewise.
9771         * modules/iconv-h (Makefile.am): Likewise.
9772         * modules/langinfo (Makefile.am): Likewise.
9773         * modules/locale (Makefile.am): Likewise.
9774         * modules/math (Makefile.am): Likewise.
9775         * modules/netdb (Makefile.am): Likewise.
9776         * modules/poll-h (Makefile.am): Likewise.
9777         * modules/pty (Makefile.am): Likewise.
9778         * modules/search (Makefile.am): Likewise.
9779         * modules/signal (Makefile.am): Likewise.
9780         * modules/spawn (Makefile.am): Likewise.
9781         * modules/stdio (Makefile.am): Likewise.
9782         * modules/stdlib (Makefile.am): Likewise.
9783         * modules/string (Makefile.am): Likewise.
9784         * modules/sys_ioctl (Makefile.am): Likewise.
9785         * modules/sys_select (Makefile.am): Likewise.
9786         * modules/sys_socket (Makefile.am): Likewise.
9787         * modules/sys_stat (Makefile.am): Likewise.
9788         * modules/sys_times (Makefile.am): Likewise.
9789         * modules/sys_utsname (Makefile.am): Likewise.
9790         * modules/sys_wait (Makefile.am): Likewise.
9791         * modules/termios (Makefile.am): Likewise.
9792         * modules/time (Makefile.am): Likewise.
9793         * modules/unistd (Makefile.am): Likewise.
9794         * modules/wchar (Makefile.am): Likewise.
9795
9796 2011-06-08  Eric Blake  <eblake@redhat.com>
9797
9798         strerror: simplify replacement
9799         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9800         * modules/strerror (configure.ac): No prereqs needed here...
9801         * modules/strerror-override (configure.ac): ...but this needs it.
9802         (Files): Add file for needed prereq macro.
9803
9804 2011-06-08  Bruno Haible  <bruno@clisp.org>
9805
9806         strerror_r-posix: Tweaks.
9807         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9808         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9809         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9810         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9811         (gl_FUNC_STRERROR_R): ... to here.
9812         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9813
9814 2011-06-07  Eric Blake  <eblake@redhat.com>
9815
9816         perror: document fixed bugs
9817         * doc/posix-functions/perror.texi (perror): Document recent
9818         patches.
9819
9820 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9821
9822         stat-time: get_stat_birthtime failure is better-defined
9823         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9824         return a timestamp whose tv_sec and tv_nsec values are both -1.
9825         Previously, the spec said only that the tv_nsec value was negative.
9826         This upward-compatible change simplifies GNU tar a bit.
9827
9828 2011-06-07  Eric Blake  <eblake@redhat.com>
9829
9830         strerror_r-posix: work around cygwin 1.7.9
9831         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9832         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9833         bug without replacing strerror_r.
9834         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9835         strerror_r is buggy, but without requiring strerror_r compilation.
9836         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9837
9838         test-perror: relax test to ignore cygwin bug
9839         * tests/test-perror2.c (main): Relax test on requiring detection
9840         of stream errors, and use unbuffered stream.
9841         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9842         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9843         * doc/posix-functions/fputc.texi (fputc): Likewise.
9844         * doc/posix-functions/fputs.texi (fputs): Likewise.
9845         * doc/posix-functions/fputws.texi (fputws): Likewise.
9846         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9847         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9848         * doc/posix-functions/getopt.texi (getopt): Likewise.
9849         * doc/posix-functions/perror.texi (perror): Likewise.
9850         * doc/posix-functions/printf.texi (printf): Likewise.
9851         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9852         * doc/posix-functions/psignal.texi (psignal): Likewise.
9853         * doc/posix-functions/putc.texi (putc): Likewise.
9854         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9855         Likewise.
9856         * doc/posix-functions/putchar.texi (putchar): Likewise.
9857         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9858         Likewise.
9859         * doc/posix-functions/puts.texi (puts): Likewise.
9860         * doc/posix-functions/putwc.texi (putwc): Likewise.
9861         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9862         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9863         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9864         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9865         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9866         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9867         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9868         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9869
9870 2011-05-22  Bruno Haible  <bruno@clisp.org>
9871
9872         strerror: Move AC_LIBOBJ invocations to module description.
9873         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9874         gl_PREREQ_STRERROR invocations from here...
9875         * modules/strerror (configure.ac): ... to here.
9876
9877 2011-05-21  Bruno Haible  <bruno@clisp.org>
9878
9879         perror: Use common idiom.
9880         * modules/perror (configure.ac): Reorder statements.
9881
9882 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9883
9884         tests: fix usage message in 'mktempd_'
9885         * tests/init.sh (mktempd_): In the usage message, use literal
9886         'mktempd_', not '$ME' (which is even undefined), as the name of
9887         the subroutine.
9888
9889 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9890
9891         tests init: new function 'fatal_', for hard errors
9892         Before this patch, the only way offered by tests/init.sh to
9893         properly signal a hard error was the `framework_failure_'
9894         function.  But the error message issued by that function,
9895         as its name would suggest, refers to a set-up failure in the
9896         testsuite, while hard errors can obviously also be due to
9897         other reasons.  The best way to fix this inconsistency is to
9898         introduce a new function with a more general error message.
9899         * tests/init.sh (fatal_): New function.
9900
9901 2011-06-06  Eric Blake  <eblake@redhat.com>
9902
9903         canonicalize-lgpl: use common idiom
9904         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9905         over newer POSIX -Rf.
9906         Reported by Bruno Haible.
9907
9908         canonicalize-lgpl: work around AIX realpath bug
9909         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9910         * doc/posix-functions/realpath.texi (realpath): Document it.
9911         Reported by Bruno Haible.
9912
9913         strerror: work around FreeBSD bug
9914         * lib/strerror.c (strerror): Special case 0.
9915         Reported by Bruno Haible.
9916
9917         strerror-override: avoid bloating errno module
9918         * modules/errno (Files, configure.ac): Move replacement strings...
9919         * modules/strerror-override: ...to new module.
9920         * modules/strerror (Depends-on): Add strerror-override.
9921         * modules/strerror_r-posix (Depends-on): Likewise.
9922         * MODULES.html.sh: Document new module.
9923         Reported by Bruno Haible.
9924
9925 2011-06-06  Bruno Haible  <bruno@clisp.org>
9926
9927         spawn-pipe tests: Rename program.
9928         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
9929         * tests/test-spawn-pipe-child.c: Update comment.
9930         * tests/test-spawn-pipe.sh: Update.
9931         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
9932
9933         spawn-pipe tests: Link the child program only against libc.
9934         * tests/test-spawn-pipe-child.c: New file, extracted from
9935         tests/test-spawn-pipe.c.
9936         (main): Expect only one argument.
9937         (is_open): New function, copied from tests/test-pipe.c.
9938         * tests/test-spawn-pipe.c: Don't include <errno.h>.
9939         (child_main): Remove function.
9940         (test_pipe): Pass only one argument to the child program.
9941         (main): Remove child process code. Expect the child program's name as
9942         first argument.
9943         * tests/test-spawn-pipe.sh: Pass the child program's name as first
9944         argument.
9945         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
9946         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
9947         test-spawn-pipe-child against no libraries.
9948
9949 2011-06-06  Bruno Haible  <bruno@clisp.org>
9950
9951         careadlinkat: Avoid mismatch between ssize_t and int.
9952         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
9953         * lib/careadlinkat.c (careadlinkatcwd): Define always.
9954
9955 2011-06-06  Jim Meyering  <meyering@redhat.com>
9956
9957         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
9958         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
9959         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
9960
9961 2011-06-05  Bruno Haible  <bruno@clisp.org>
9962
9963         ansi-c++-opt: Interoperability with libtool.
9964         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
9965         set the variable to "no", not to ":".
9966         * NEWS: Mention the change.
9967
9968 2011-06-05  Bruno Haible  <bruno@clisp.org>
9969
9970         acl: Fix test failure on AIX 7.
9971         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
9972         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
9973
9974 2011-06-05  Bruno Haible  <bruno@clisp.org>
9975
9976         pipe-filter-ii: Fix test failure on AIX and IRIX.
9977         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
9978         with EAGAIN, retry with a smaller buffer size.
9979
9980 2011-06-05  Bruno Haible  <bruno@clisp.org>
9981
9982         localename: Fix link dependencies.
9983         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
9984         * modules/localename-tests (Makefile.am): Link test-localename with
9985         $(LIBTHREAD).
9986
9987 2011-06-05  Bruno Haible  <bruno@clisp.org>
9988
9989         error: Avoid gcc warning.
9990         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
9991
9992 2011-06-05  Bruno Haible  <bruno@clisp.org>
9993
9994         unsetenv: Avoid gcc warning.
9995         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
9996
9997 2011-06-05  Bruno Haible  <bruno@clisp.org>
9998
9999         setenv: Avoid gcc warning.
10000         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10001
10002 2011-06-05  Bruno Haible  <bruno@clisp.org>
10003
10004         sys_select: Ensure memset is declared also on AIX 7.
10005         * lib/sys_select.in.h: Include <string.h> also on AIX.
10006         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10007         self-contained also on AIX 7.1.
10008
10009 2011-06-04  Jim Meyering  <meyering@redhat.com>
10010
10011         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10012         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10013         function name, "error".
10014         (_gl_translatable_diag_func_re): New configurable variable.
10015
10016 2011-06-04  Bruno Haible  <bruno@clisp.org>
10017
10018         getopt: Avoid gcc warning.
10019         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10020
10021 2011-06-04  Bruno Haible  <bruno@clisp.org>
10022
10023         strerror_r: Fix comments.
10024         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10025         commit.
10026
10027 2011-06-04  Bruno Haible  <bruno@clisp.org>
10028
10029         perror: Fix compilation error.
10030         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10031         Undefine fprintf, not sprintf.
10032         * modules/perror (Depends-on): Remove intprops, verify.
10033
10034 2011-06-04  Bruno Haible  <bruno@clisp.org>
10035
10036         setlocale: Enable replacement on Cygwin 1.5.
10037         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10038         Cygwin 1.5.x.
10039         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10040         LC_CTYPE category also exists on Cygwin 1.5.x.
10041
10042 2011-06-04  Bruno Haible  <bruno@clisp.org>
10043
10044         strerror-override: Don't disable symbol renamings.
10045         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10046         * lib/strerror-override.c: Include config.h.
10047         (strerror_override): Don't undefine.
10048
10049 2011-06-03  Bruno Haible  <bruno@clisp.org>
10050
10051         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10052         * lib/localename.h: Update copyright header.
10053         * lib/localename.c: Likewise.
10054         * lib/relocatable.h: Likewise.
10055         * lib/relocatable.c: Likewise.
10056
10057 2011-06-02  Bruno Haible  <bruno@clisp.org>
10058
10059         doc: Fix a module name.
10060         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10061
10062 2011-06-02  Bruno Haible  <bruno@clisp.org>
10063
10064         pipe2: Remove dependency on 'nonblocking' module.
10065         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10066         O_NONBLOCK is defined by gnulib.
10067         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10068         is zero.
10069         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10070         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10071         defined by gnulib.
10072         (get_nonblocking_flag): New function.
10073         (main): Test O_NONBLOCK flag only if it is nonzero.
10074         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10075
10076 2011-06-03  Jim Meyering  <meyering@redhat.com>
10077
10078         maint: three new prohibit-header-without-use rules
10079         Prohibit use of cloexec.h, posixver.h, same.h without use.
10080         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10081         (sc_prohibit_posixver_without_use): Likewise.
10082         (sc_prohibit_same_without_use): Likewise.
10083
10084 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10085
10086         allocator: 'die' routine is now given requested size
10087         * lib/allocator.h (struct allocator.die): New size arg.
10088         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10089         If the actual problem is an ssize_t limitation, not a size_t or
10090         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10091
10092 2011-06-01  Eric Blake  <eblake@redhat.com>
10093
10094         strerror: drop strerror_r dependency
10095         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10096         * lib/strerror-override.c (strerror_override): ...to new file.
10097         * lib/strerror-override.h: Add prototype.
10098         * lib/strerror-impl.h: Delete.
10099         * lib/strerror.c (strerror): New implementation.
10100         * modules/errno (Files): Add new files.
10101         (configure.ac): Compile new file as appropriate.
10102         * modules/strerror (Files): Drop unused file.
10103         (Depends-on): Drop strerror_r-posix.
10104         * MODULES.html.sh: Document strerror_r-posix.
10105         Requested by Sam Steingold.
10106
10107         perror: call strerror_r directly
10108         * modules/perror (Files): Drop strerror-impl.h.
10109         * lib/perror.c (perror): Use our own stack buffer, rather than
10110         calling a wrapper that uses static storage.
10111         * doc/posix-functions/perror.texi (perror): Document a limitation
10112         of our replacement.
10113
10114         strerror_r: fix includes for FreeBSD
10115         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10116         since we use abort on some platforms.
10117         Reported by Matthias Bolte.
10118
10119 2011-05-31  Bruno Haible  <bruno@clisp.org>
10120
10121         Fix link errors in tests: openat-die uses gettext-h.
10122         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10123         against $(LIBINTL).
10124         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10125         against $(LIBINTL).
10126         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10127         $(LIBINTL).
10128         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10129         against $(LIBINTL).
10130         * modules/linkat-tests (Makefile.am): Link test-linkat against
10131         $(LIBINTL).
10132         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10133         $(LIBINTL).
10134         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10135         against $(LIBINTL).
10136         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10137         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10138         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10139         $(LIBINTL).
10140         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10141         $(LIBINTL).
10142         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10143         $(LIBINTL).
10144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10145
10146 2011-05-31  Bruno Haible  <bruno@clisp.org>
10147
10148         Fix link errors in tests: wait-process uses gettext-h.
10149         * modules/nonblocking-pipe-tests (Makefile.am): Set
10150         test_nonblocking_pipe_main_LDADD.
10151         * modules/nonblocking-socket-tests (Makefile.am): Link
10152         test-nonblocking-socket-main against $(LIBINTL).
10153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10154
10155 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10156
10157         assert-h: work around 'verify' incompatibility
10158         * lib/verify.h: Use @...@ directives, not ifdef.
10159         * modules/assert-h (assert.h): Implement the directives.
10160         (assert.h): Substitute the symbol-prefix more consistently.
10161
10162 2011-05-29  Jim Meyering  <meyering@redhat.com>
10163
10164         trim: remove three superfluous assignments
10165         * lib/trim.c (trim2): Remove three superfluous assignments
10166         and correct brace positioning.
10167
10168 2011-05-29  Bruno Haible  <bruno@clisp.org>
10169
10170         wctype-h: Avoid namespace pollution on Solaris 2.6.
10171         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10172         identifiers.
10173         * doc/posix-headers/wctype.texi: Mention the problem.
10174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10175
10176 2011-05-28  Jim Meyering  <meyering@redhat.com>
10177
10178         parse-datetime.y: accommodate -Wstrict-overflow
10179         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10180         placate -Wstrict-overflow.
10181
10182         trim: avoid a warning from -O2 -Wstrict-overflow
10183         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10184
10185 2011-05-29  Bruno Haible  <bruno@clisp.org>
10186
10187         gnulib-tool: Fix bug in yesterday's commit.
10188         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10189         twice.
10190
10191 2011-05-29  Bruno Haible  <bruno@clisp.org>
10192
10193         Allow multiple gnulib generated include files to be combined.
10194         * gnulib-tool (func_compute_include_guard_prefix): New function.
10195         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10196         ${gl_include_guard_prefix} references.
10197         (func_import, func_create_testdir): Invoke
10198         func_compute_include_guard_prefix.
10199         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10200         * lib/ctype.in.h: Likewise.
10201         * lib/dirent.in.h: Likewise.
10202         * lib/errno.in.h: Likewise.
10203         * lib/fcntl.in.h: Likewise.
10204         * lib/float.in.h: Likewise.
10205         * lib/getopt.in.h: Likewise.
10206         * lib/iconv.in.h: Likewise.
10207         * lib/langinfo.in.h: Likewise.
10208         * lib/locale.in.h: Likewise.
10209         * lib/math.in.h: Likewise.
10210         * lib/netdb.in.h: Likewise.
10211         * lib/netinet_in.in.h: Likewise.
10212         * lib/poll.in.h: Likewise.
10213         * lib/pthread.in.h: Likewise.
10214         * lib/pty.in.h: Likewise.
10215         * lib/sched.in.h: Likewise.
10216         * lib/se-selinux.in.h: Likewise.
10217         * lib/search.in.h: Likewise.
10218         * lib/signal.in.h: Likewise.
10219         * lib/spawn.in.h: Likewise.
10220         * lib/stdarg.in.h: Likewise.
10221         * lib/stddef.in.h: Likewise.
10222         * lib/stdint.in.h: Likewise.
10223         * lib/stdio.in.h: Likewise.
10224         * lib/stdlib.in.h: Likewise.
10225         * lib/string.in.h: Likewise.
10226         * lib/strings.in.h: Likewise.
10227         * lib/sys_file.in.h: Likewise.
10228         * lib/sys_ioctl.in.h: Likewise.
10229         * lib/sys_select.in.h: Likewise.
10230         * lib/sys_socket.in.h: Likewise.
10231         * lib/sys_stat.in.h: Likewise.
10232         * lib/sys_time.in.h: Likewise.
10233         * lib/sys_times.in.h: Likewise.
10234         * lib/sys_uio.in.h: Likewise.
10235         * lib/sys_utsname.in.h: Likewise.
10236         * lib/sys_wait.in.h: Likewise.
10237         * lib/sysexits.in.h: Likewise.
10238         * lib/termios.in.h: Likewise.
10239         * lib/time.in.h: Likewise.
10240         * lib/unistd.in.h: Likewise.
10241         * lib/wchar.in.h: Likewise.
10242         * lib/wctype.in.h: Likewise.
10243         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10244         * modules/ctype (Makefile.am): Likewise.
10245         * modules/dirent (Makefile.am): Likewise.
10246         * modules/errno (Makefile.am): Likewise.
10247         * modules/fcntl-h (Makefile.am): Likewise.
10248         * modules/float (Makefile.am): Likewise.
10249         * modules/getopt-posix (Makefile.am): Likewise.
10250         * modules/iconv-h (Makefile.am): Likewise.
10251         * modules/langinfo (Makefile.am): Likewise.
10252         * modules/locale (Makefile.am): Likewise.
10253         * modules/math (Makefile.am): Likewise.
10254         * modules/netdb (Makefile.am): Likewise.
10255         * modules/netinet_in (Makefile.am): Likewise.
10256         * modules/poll-h (Makefile.am): Likewise.
10257         * modules/pthread (Makefile.am): Likewise.
10258         * modules/pty (Makefile.am): Likewise.
10259         * modules/sched (Makefile.am): Likewise.
10260         * modules/search (Makefile.am): Likewise.
10261         * modules/selinux-h (Makefile.am): Likewise.
10262         * modules/signal (Makefile.am): Likewise.
10263         * modules/spawn (Makefile.am): Likewise.
10264         * modules/stdarg (Makefile.am): Likewise.
10265         * modules/stddef (Makefile.am): Likewise.
10266         * modules/stdint (Makefile.am): Likewise.
10267         * modules/stdio (Makefile.am): Likewise.
10268         * modules/stdlib (Makefile.am): Likewise.
10269         * modules/string (Makefile.am): Likewise.
10270         * modules/strings (Makefile.am): Likewise.
10271         * modules/sys_file (Makefile.am): Likewise.
10272         * modules/sys_ioctl (Makefile.am): Likewise.
10273         * modules/sys_select (Makefile.am): Likewise.
10274         * modules/sys_socket (Makefile.am): Likewise.
10275         * modules/sys_stat (Makefile.am): Likewise.
10276         * modules/sys_time (Makefile.am): Likewise.
10277         * modules/sys_times (Makefile.am): Likewise.
10278         * modules/sys_uio (Makefile.am): Likewise.
10279         * modules/sys_utsname (Makefile.am): Likewise.
10280         * modules/sys_wait (Makefile.am): Likewise.
10281         * modules/sysexits (Makefile.am): Likewise.
10282         * modules/termios (Makefile.am): Likewise.
10283         * modules/time (Makefile.am): Likewise.
10284         * modules/unistd (Makefile.am): Likewise.
10285         * modules/wchar (Makefile.am): Likewise.
10286         * modules/wctype-h (Makefile.am): Likewise.
10287         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10288
10289 2011-05-29  Bruno Haible  <bruno@clisp.org>
10290
10291         assert-h: Allow multiple gnulib generated replacements to coexist.
10292         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10293
10294 2011-05-29  Bruno Haible  <bruno@clisp.org>
10295
10296         argp: Allow coexistence with strerror_r-posix module.
10297         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10298         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10299         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10300         not the glibc signature.
10301
10302 2011-05-28  Bruno Haible  <bruno@clisp.org>
10303
10304         gnulib-tool: Alternative structure of testdirs, similar to --import.
10305         * gnulib-tool: New option --single-configure.
10306         (func_usage): Document it.
10307         (single_configure): New variable.
10308         (func_modules_transitive_closure_separately,
10309         func_modules_transitive_closure_separately,
10310         func_determine_use_libtests, func_modules_add_dummy_separately,
10311         func_modules_to_filelist_separately): New functions, extracted from
10312         func_import.
10313         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10314         (func_import): Use the new functions.
10315         (func_create_testdir): Set final_modules. Handle $single_configure =
10316         true case.
10317
10318 2011-05-28  Bruno Haible  <bruno@clisp.org>
10319
10320         getloadavg: Remove an unreliable safety check.
10321         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10322         getloadavg.c is in place.
10323         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10324         Reported by Sam Steingold <sds@gnu.org>.
10325
10326 2011-05-28  Bruno Haible  <bruno@clisp.org>
10327
10328         doc: Cleanup yet another file produced by texinfo.tex.
10329         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10330
10331 2011-05-28  Bruno Haible  <bruno@clisp.org>
10332
10333         Finish the conditional dependencies mechanism.
10334         * gnulib-tool: New option --no-conditional-dependencies.
10335         (func_usage): Document it. Don't mark --conditional-dependencies as
10336         experimental.
10337         (cond_dependencies): The possible values can now be true, false, empty.
10338         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10339         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10340         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10341
10342 2011-05-28  Bruno Haible  <bruno@clisp.org>
10343
10344         doc: Use a recent texinfo.tex.
10345         * doc/Makefile (tex_opts): New variable.
10346         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10347
10348 2011-05-28  Jim Meyering  <meyering@redhat.com>
10349
10350         intprops.h: adjust comment to match code change
10351         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10352         only once, it *may* have side effects.  Also fix an unrelated typo.
10353         (_GL_INT_SIGNED): Likewise.
10354
10355 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10356
10357         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10358
10359 2011-05-26  Bruno Haible  <bruno@clisp.org>
10360
10361         mbsrchr: Avoid collision with system function on Interix.
10362         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10363         Reported by Markus Duft <mduft@gentoo.org>.
10364
10365 2011-05-15  James Youngman  <jay@gnu.org>
10366
10367         getopt: for ambiguous options, enumerate the possibilities.
10368         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10369         the ambiguous options when an ambiguous prefix is given. This was
10370         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10371         glibc change was
10372         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10373
10374 2011-05-25  Eric Blake  <eblake@redhat.com>
10375
10376         getcwd: work around mingw bug
10377         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10378         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10379         Reported by Matthias Bolte.
10380
10381 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10382
10383         test-intprops: disable -Wtype-limits diagnostics
10384         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10385         diagnostics.  Otherwise, the integer overflow macros generate many
10386         diagnostics.  Reported by Jim Meyering in
10387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10388
10389         intprops: shorten, to pacify gcc -Woverlength-strings
10390         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10391         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10392         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10393         likely to run afoul of C compiler limits for string constant lengths.
10394         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10395
10396 2011-05-24  Eric Blake  <eblake@redhat.com>
10397
10398         docs: document recently fixed glibc printf bug
10399         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10400         * doc/posix-functions/printf.texi (printf): Likewise.
10401         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10402         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10403
10404         closein-tests: convert to init.sh
10405         * modules/closein-tests (Files): Add init.sh
10406         * tests/test-closein.sh Use it.
10407
10408         yesno-tests: convert to init.sh
10409         * modules/yesno-tests (Files): Add init.sh.
10410         * tests/test-yesno.sh: Use it.
10411
10412         atexit-tests: ensure reliable exit status
10413         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10414         Reported by Bruno Haible.
10415
10416 2011-05-24  Bruno Haible  <bruno@clisp.org>
10417
10418         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10419         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10420         gl_PREREQ_STRERROR_R invocations from here...
10421         * modules/strerror_r-posix (configure.ac): ... to here.
10422
10423 2011-05-24  Eric Blake  <eblake@redhat.com>
10424
10425         strerror_r: fix missing header
10426         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10427
10428         strerror_r: fix AIX test failures
10429         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10430         ERANGE failure.
10431
10432         strerror_r: fix Solaris test failures
10433         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10434         failures.
10435         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10436
10437         strerror_r: enforce POSIX recommendations
10438         * lib/strerror_r.c (safe_copy): New helper method.
10439         (strerror_r): Guarantee a non-empty string.
10440         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10441         recent POSIX rulings and to match our strerror guarantees.
10442         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10443
10444 2011-05-24  Jim Meyering  <meyering@redhat.com>
10445
10446         test-perror2.c: avoid warning about unused variable
10447         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10448
10449 2011-05-24  Eric Blake  <eblake@redhat.com>
10450
10451         perror: avoid spurious test failure on HP-UX
10452         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10453
10454         tests: fix logic bug in init.sh
10455         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10456         shell.
10457
10458 2011-05-24  Jim Meyering  <meyering@redhat.com>
10459
10460         utimensat: do not reference an out-of-scope buffer
10461         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10462         declared in an inner scope, yet "times" would be dereferenced outside
10463         the scope in which "ts" was valid.
10464         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10465         of ts[2] "out/up", so that the use of aliased "times" (via
10466         "times = ts;") does not end up referencing an out-of-scope "ts"
10467
10468         opendir-safer.c: don't clobber errno; don't close negative FD
10469         * lib/opendir-safer.c (opendir_safer):
10470         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10471         file descriptor, and more importantly, don't clobber the
10472         offending errno value with EINVAL.  Before, upon failure
10473         of dup_safer, we would pass the negative file descriptor to
10474         fdopendir, which would clobber errno.
10475
10476 2011-05-23  Bruno Haible  <bruno@clisp.org>
10477
10478         idcache: Fix module description.
10479         * modules/idcache (Include): Set to "idcache.h".
10480
10481 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10482
10483         gnulib-tool: fix portability problem with MacOS sed
10484         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10485         before the "}".  Problem reported by Leo in
10486         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10487         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10488         sed_extract_condition1, sed_extract_condition2.
10489
10490 2011-05-23  Bruno Haible  <bruno@clisp.org>
10491
10492         hash: Simplify autoconf macro.
10493         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10494
10495 2011-05-23  Bruno Haible  <bruno@clisp.org>
10496
10497         getugroups: Fix module description.
10498         * modules/getugroups (Include): Set to "getugroups.h".
10499
10500 2011-05-23  Bruno Haible  <bruno@clisp.org>
10501
10502         linkat: Simplify autoconf macro.
10503         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10504
10505 2011-05-23  Bruno Haible  <bruno@clisp.org>
10506             Eric Blake  <eblake@redhat.com>
10507
10508         linkat, renameat: Update dependencies.
10509         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10510         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10511         symlinkat.
10512
10513 2011-05-23  Jim Meyering  <meyering@redhat.com>
10514
10515         maint.mk: more tight_scope improvements
10516         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10517         (_gl_TS_headers): Define only in if-0'd block.
10518         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10519         sometimes we must *not* use it.  Adjust uses accordingly.
10520         (sc_tight_scope): Use much simpler grep-based test to determine
10521         whether we skip this rule.
10522
10523         maint.mk: generalize/improve the tight-scope rule
10524         * top/maint.mk: Emit a warning when the test is skipped.
10525         (_gl_TS_dir): Add $(srcdir)/ prefix.
10526         (_gl_TS_function_match): Simplify, rather than trying
10527         to enumerate common types.  Otherwise, it would fail to match an
10528         "extern unsigned char const *" declaration in idutils.
10529         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10530         a way to support use of that type of macro.
10531         (_gl_TS_var_match): Simplify regexp.
10532         (_gl_TS_obj_files): New configurable variable.
10533         (_gl_TS_headers): Likewise.
10534
10535 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10536
10537         verify: fix bug when gnulib <assert.h> is also included
10538         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10539         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10540         Perhaps there's a better way, but this fixes the immediate problem.
10541         Problem reported by Bruno Haible in
10542         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10543
10544 2011-05-22  Bruno Haible  <bruno@clisp.org>
10545
10546         xgetcwd: Simplify autoconf macro.
10547         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10548
10549 2011-05-22  Bruno Haible  <bruno@clisp.org>
10550
10551         New module 'mktime-internal'.
10552         * modules/mktime-internal: New file.
10553         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10554         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10555         mktime_internal as a C macro if libc has __mktime_internal.
10556         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10557         conditions.
10558         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10559
10560 2011-05-22  Bruno Haible  <bruno@clisp.org>
10561
10562         timegm: Correct mktime replacement statements.
10563         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10564         defining mktime as a C macro. This completes a 2009-07-28 commit.
10565
10566 2011-05-22  Bruno Haible  <bruno@clisp.org>
10567
10568         timegm: Simplify autoconf macro.
10569         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10570
10571 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10572
10573         clock-time: change to LGPLv2+.
10574         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10575         BSD-like but we have no mark for that; this is good enough for now.
10576
10577 2011-05-21  Bruno Haible  <bruno@clisp.org>
10578
10579         strerror_r: Fix comments.
10580         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10581
10582 2011-05-21  Bruno Haible  <bruno@clisp.org>
10583
10584         relocatable-prog-wrapper: Fix possible link error.
10585         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10586         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10587         (gl_FUNC_SETENV): ... to here.
10588         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10589         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10590
10591 2011-05-21  Bruno Haible  <bruno@clisp.org>
10592
10593         relocatable-prog-wrapper: Assume strerror() exists.
10594         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10595         m4/strerror.m4.
10596         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10597         * lib/relocwrapper.c: Remove mention of strerror module.
10598         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10599         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10600         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10601         C macro.
10602
10603 2011-05-21  Bruno Haible  <bruno@clisp.org>
10604
10605         select: Simplify replacement idiom.
10606         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10607         Win32 platforms.
10608         * lib/sys_select.in.h (select): Simplify accordingly.
10609         * modules/select (Depends-on): Likewise.
10610
10611 2011-05-21  Bruno Haible  <bruno@clisp.org>
10612
10613         mkdir-p: Simplify autoconf macro.
10614         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10615         gl_FUNC_LCHOWN.
10616
10617 2011-05-21  Eric Blake  <eblake@redhat.com>
10618
10619         strerror_r: avoid clobbering strerror on cygwin
10620         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10621         fall back instead to sys_errlist.
10622         * modules/strerror (configure.ac): Add witness.
10623         * tests/test-strerror_r.c (main): Enhance test.
10624         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10625         * tests/test-perror2.c (main): Free memory before exit.
10626
10627 2011-05-21  Bruno Haible  <bruno@clisp.org>
10628
10629         mkdtemp: Use gnulib naming conventions.
10630         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10631         * modules/mkdtemp (configure.ac): Update.
10632
10633 2011-05-20  Eric Blake  <eblake@redhat.com>
10634
10635         strerror_r: avoid corrupting errno on Solaris
10636         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10637         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10638
10639         strerror_r: avoid compiler warning
10640         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10641
10642         strerror_r: simplify AIX code
10643         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10644
10645         test-perror: avoid spurious failure on FreeBSD
10646         * modules/perror-tests (Depends-on): Add strerror, now that
10647         strerror_r no longer pulls it in.
10648
10649 2011-05-20  Bruno Haible  <bruno@clisp.org>
10650
10651         strerror_r-posix: Remove unused dependencies.
10652         * modules/strerror_r-posix (Depends-on): Remove strerror.
10653         Reported by Eric Blake.
10654
10655 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10656
10657         intprops: remove assumption about A|B representation
10658         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10659         is a valid integer if both A and B are.  Although this is true for
10660         all known practical hosts, the C standard doesn't guarantee it,
10661         and the code need not assume it.  Also, this change may work around
10662         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10664
10665 2011-05-20  Eric Blake  <eblake@redhat.com>
10666
10667         perror: work around FreeBSD bug
10668         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10669         is broken.  Move AC_LIBOBJ...
10670         * modules/perror (configure.ac): Here.
10671         * doc/posix-functions/perror.texi (perror): Document this.
10672         * tests/test-perror2.c (main): Enhance test.
10673
10674         test-perror: check for strerror interactions
10675         * tests/macros.h (STREQ): Add macro.
10676         * modules/perror-tests (Files): Add second test.
10677         * tests/test-perror2.c (main): New file.
10678         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10679
10680         test-perror: rewrite to use init script
10681         * modules/perror-tests (Files): Add init.sh.
10682         * tests/test-perror.sh: Use temporary directory.
10683
10684 2011-05-20  Jim Meyering  <meyering@redhat.com>
10685
10686         maint: replace misused "a" with "an"
10687         * doc/intprops.texi: "a integer"
10688         * doc/regex.texi: "a explanation"
10689         * lib/alignof.h: "a object"
10690         * lib/argmatch.h: "a explanation"
10691         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10692         * lib/stdint.in.h: "a integer"
10693         * lib/userspec.c: "a owner"
10694         * doc/gnulib.texi: Fix "a idea", and reword.
10695
10696 2011-05-19  Jim Meyering  <meyering@redhat.com>
10697
10698         maint: correct misuse of "a" and "an"
10699         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10700         * lib/argp-help.c: "an docum...": s/an/a/
10701         * lib/argp-parse.c: "An vector": s/An/A/
10702         * lib/execute.c: "an native": s/an/a/
10703         * lib/spawn-pipe.c: Likewise.
10704         * lib/gc.h: "an Gc_rc": s/an/a/
10705         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10706         * lib/fts.c: "an stat.st_dev": s/an/a/
10707
10708 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10709
10710         intprops-tests: work around HP-UX 11.23 cc bug with constants
10711         * tests/test-intprops.c (VERIFY): New macro.
10712         (main): Use it, instead of verify, to work around the compiler bug; see
10713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10714
10715         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10716         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10717         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10718         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10719         (_GL_REMAINDER_OVERFLOW): Use it.
10720
10721         intprops-tests: revert unsigned part of previous change
10722         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10723         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10724         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10726
10727 2011-05-19  Bruno Haible  <bruno@clisp.org>
10728
10729         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10730         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10731         strerror_r() returned without filling the buffer.
10732         Reported by Eric Blake.
10733
10734 2011-05-19  Eric Blake  <eblake@redhat.com>
10735
10736         strerror_r: guarantee unchanged errno
10737         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10738         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10739         failure.
10740         * tests/test-strerror_r.c (main): Enhance test.
10741
10742 2011-05-19  Bruno Haible  <bruno@clisp.org>
10743
10744         strerror_r: Reorder #if blocks.
10745         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10746         for consistency with the previous commit.
10747
10748 2011-05-19  Bruno Haible  <bruno@clisp.org>
10749
10750         perror: Avoid clobbering the strerror buffer when possible.
10751         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10752         * lib/strerror.c: Include it.
10753         * modules/strerror (Files): Add lib/strerror-impl.h.
10754         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10755         (my_strerror): New function, defined through lib/strerror-impl.h.
10756         (perror): Use it instead of strerror.
10757         * modules/perror (Files): Add lib/strerror-impl.h.
10758         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10759
10760 2011-05-19  Eric Blake  <eblake@redhat.com>
10761
10762         strerror_r: fix on newer cygwin
10763         * lib/strerror_r.c (strerror_r): Cygwin now has
10764         __xpg_strerror_r, use it.
10765
10766 2011-05-19  Bruno Haible  <bruno@clisp.org>
10767
10768         strerror_r: Avoid clobbering the strerror buffer when possible.
10769         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10770         (sys_nerr, sys_errlist): New declarations.
10771         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10772         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10773         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10774
10775 2011-05-19  Bruno Haible  <bruno@clisp.org>
10776
10777         strerror_r: Fix test failure on mingw.
10778         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10779         EXTEND_STRERROR_R.
10780         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10781         macros from errno.in.h instead.
10782
10783 2011-05-19  Eric Blake  <eblake@redhat.com>
10784
10785         strerror: relax test for Solaris
10786         * tests/test-strerror.c (main): Permit Solaris behavior.
10787         * tests/test-strerror_r.c (main): Likewise.
10788
10789         strerror: enforce POSIX ruling on strerror(0)
10790         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10791         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10792         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10793         * doc/posix-functions/strerror.texi (strerror): Document it.
10794         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10795         * tests/test-strerror.c (main): Strengthen test.
10796         * tests/test-strerror_r.c (main): Likewise.
10797
10798 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10799
10800         intprop-tests: port to older and more-pedantic compilers
10801         * modules/intprops-tests (Files): Add tests/macros.h.
10802         * tests/test-intprops.c: Include macros.h.
10803         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10804         it's no longer documented to expand to an integer constant expression.
10805         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10806         argument is floating point, as it's no longer documented to expand
10807         to an integer constant expression in that case.
10808         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10809         compiler bugs reported by Bruno Haible.  See
10810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10811         (U0, U1): New constants, to work around the same bugs.  Also,
10812         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10813
10814         intprops: work around C compiler bugs
10815         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10816         bug in Sun C 5.11 2010/08/13 and other compilers; see
10817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10818
10819         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10820         * doc/intprops.texi (Integer Type Determination): Fix
10821         documentation for TYPE_IS_INTEGER: it returns an constant
10822         expression, not an integer constant expression.  Fix doc for
10823         TYPE_SIGNED: it returns an integer constant expression only if its
10824         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10825         hardly worth documented that way....)
10826
10827 2011-05-18  Bruno Haible  <bruno@clisp.org>
10828
10829         strerror_r: Avoid clobbering the strerror buffer when possible.
10830         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10831         Handle gnulib defined errno values here. When strerror() returns NULL
10832         or an empty string, return EINVAL.
10833         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10834         gnulib defined errno values here.
10835         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10836
10837 2011-05-18  Eric Blake  <eblake@redhat.com>
10838
10839         fnmatch: avoid compiler warning
10840         * lib/fnmatch_loop.c (FCT): Use correct type.
10841         Reported by Matthias Bolte.
10842
10843 2011-05-13  Jim Meyering  <meyering@redhat.com>
10844
10845         maint.mk: three new prohibit_<HDR>_without_use rules
10846         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10847         (sc_prohibit_stdio-safer_without_use): Likewise.
10848         (sc_prohibit_xfreopen_without_use): Likewise.
10849
10850 2011-05-17  Jim Meyering  <meyering@redhat.com>
10851
10852         announce-gen: fail if the NEWS delta is empty
10853         If there's nothing noteworthy in NEWS, then either you forgot
10854         or you shouldn't be releasing.
10855         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10856
10857 2011-05-17  Pádraig Brady <P@draigBrady.com>
10858
10859         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10860         reserved symbols starting with double underscore from the check.
10861
10862 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10863
10864         intprops: add doc
10865         * doc/intprops.texi: New file, documenting intprops.
10866         * doc/gnulib.texi (Particular Modules): Include it.
10867
10868         verify: add doc to gnulib manual and fix example
10869         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10870         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10871         (Compile-time Assertions): Fix example so it can't overflow.
10872
10873 2011-05-17  Jim Meyering  <meyering@redhat.com>
10874
10875         warnings.m4: don't usurp save_CPPFLAGS variable name
10876         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10877
10878         doc: fix typo
10879         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10880
10881 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10882             Bruno Haible  <bruno@clisp.org>
10883
10884         doc: Tweak recent change.
10885         * README (Portability guidelines): Tweak new text.
10886         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10887         Interix 6.1.
10888
10889 2011-05-16  Eric Blake  <eblake@redhat.com>
10890
10891         inttypes: avoid autoconf warning
10892         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10893         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10894
10895 2011-05-16  Sam Steingold <sds@gnu.org>
10896         and Eric Blake  <eblake@redhat.com>
10897
10898         vc-list-files: accept multiple directory operands
10899         * build-aux/vc-list-files: Iterate over all remaining operands.
10900
10901 2011-05-16  Bruno Haible  <bruno@clisp.org>
10902
10903         Fix confusion regarding deprecated modules.
10904         * modules/calloc (Status, Notice): Mark module as deprecated, not
10905         obsolete.
10906         * modules/fnmatch-posix (Status, Notice): Likewise.
10907         * modules/getdate (Status, Notice): Likewise.
10908         * modules/getopt (Status, Notice): Likewise.
10909         * modules/malloc (Status, Notice): Likewise.
10910         * modules/pipe (Status, Notice): Likewise.
10911         * modules/realloc (Status, Notice): Likewise.
10912         * modules/rename-dest-slash (Status, Notice): Likewise.
10913         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10914         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10915         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10916         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10917         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10918
10919 2011-05-16  Bruno Haible  <bruno@clisp.org>
10920
10921         doc: List the target platforms.
10922         * doc/gnulib-intro.texi (Target Platforms): New section.
10923         * doc/gnulib.texi (Introduction): Update menu.
10924         * README (Portability guidelines): Refer to the new section. Update
10925         statement about oldest supported environment. Remove rationale why
10926         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10927         unportable C89 function.
10928         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
10929         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
10930
10931 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10932
10933         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
10934
10935 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
10936
10937         intprops-tests: new module
10938         * modules/intprops-tests, tests/test-intprops.c: New files.
10939
10940         intprops: add safe, portable integer overflow checking
10941         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
10942         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
10943         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
10944         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
10945         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
10946         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
10947         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
10948         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
10949         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
10950         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
10951         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
10952
10953 2011-05-12  James Youngman  <jay@gnu.org>
10954
10955         Add a test for glibc's Bugzilla bug #12378.
10956         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
10957         doesn't allow the literal matching of a lone "[" (which is
10958         required by POSIX).
10959         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
10960
10961 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
10962
10963         Sync glibc change fixing Bugzilla bug #12378.
10964         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
10965         beginning and fall back to matching as normal character if the
10966         string ends before the matching ']' is found.  This is what POSIX
10967         requires.
10968
10969 2011-05-13  Eric Blake  <eblake@redhat.com>
10970
10971         getcwd-lgpl: relax test for FreeBSD
10972         * doc/posix-functions/getcwd.texi (getcwd): Document portability
10973         issue.
10974         * tests/test-getcwd-lgpl.c (main): Relax test.
10975         Reported by Matthias Bolte.
10976
10977 2011-05-11  Eric Blake  <eblake@redhat.com>
10978
10979         test-fflush: silence compiler warning
10980         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
10981
10982 2011-05-11  Bruno Haible  <bruno@clisp.org>
10983
10984         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
10985         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
10986         * modules/canonicalize (Depends-on): Add 'nocrash'.
10987         * modules/canonicalize-lgpl (Depends-on): Likewise.
10988         * doc/posix-functions/realpath.texi: Update platforms list.
10989         Reported by Ryan Schmidt <ryandesign@macports.org>.
10990
10991 2011-05-11  Bruno Haible  <bruno@clisp.org>
10992
10993         group-member: Declare function in <unistd.h>.
10994         * lib/unistd.in.h (group_member): New declaration.
10995         * lib/group-member.h: Remove file.
10996         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
10997         * tests/test-unistd-c++.cc: Check signature of group_member.
10998         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
10999         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11000         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11001         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11002         HAVE_GROUP_MEMBER.
11003         * modules/group-member (Files): Remove lib/group-member.h.
11004         (Depends-on): Add unistd. Specify conditions.
11005         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11006         (Include): Change to <unistd.h>.
11007         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11008         HAVE_GROUP_MEMBER.
11009         * NEWS: Mention the change.
11010         * lib/euidaccess.c: Don't include group-member.h.
11011
11012 2011-05-11  Bruno Haible  <bruno@clisp.org>
11013
11014         group-member: Document module.
11015         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11016         module.
11017
11018 2011-05-11  Bruno Haible  <bruno@clisp.org>
11019
11020         fclose: Fix mistake earlier today.
11021         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11022
11023 2011-05-11  Eric Blake  <eblake@redhat.com>
11024
11025         fclose: preserve fflush errors
11026         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11027         Reported by Jim Meyering.
11028
11029         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11030         * build-aux/bootstrap (check_versions): When no specific version
11031         is required, merely check that the app produces an exit status
11032         that indicates its existence.
11033
11034         maint.mk: drop redundant check
11035         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11036         the same but better.
11037
11038 2011-05-11  Bruno Haible  <bruno@clisp.org>
11039
11040         fclose: Fix possible link error.
11041         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11042         unregister_shadow_fd. Improve comments.
11043         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11044         Eric Blake.
11045
11046 2011-05-11  Jim Meyering  <meyering@redhat.com>
11047
11048         maint.mk: improve "can not" detection and generalize rule name
11049         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11050         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11051         Use the same technique as in sc_prohibit_doubled_word, so that
11052         we recognize "can not" also when the words are separated by a newline.
11053         Suggested by Eric Blake.
11054         (perl_filename_lineno_text_): Define.  Factored out of...
11055         (prohibit_doubled_word_): ...here.  Use the new definition.
11056         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11057         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11058         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11059
11060 2011-05-10  Eric Blake  <eblake@redhat.com>
11061
11062         fclose: avoid double close race when possible
11063         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11064         all but WINDOWS_SOCKETS.
11065
11066 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11067
11068         openat: correct new comment
11069         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11070
11071 2011-05-10  Jim Meyering  <meyering@redhat.com>
11072
11073         openat: add comments
11074         * lib/openat-proc.c (openat_proc_name): Add comments,
11075         mostly from Eric Blake.
11076
11077 2011-05-09  Eric Blake  <eblake@redhat.com>
11078
11079         openat: reduce syscalls in first probe of /proc
11080         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11081         be a directory.  Simplify the probe for .. bugs.
11082         * modules/openat (Depends-on): Drop same-inode.
11083         Reported by Bastien ROUCARIES.
11084
11085 2011-05-09  Jim Meyering  <meyering@redhat.com>
11086
11087         maint.mk: change semantics/name of tight_scope variables
11088         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11089         Rename variables to align with semantics that make them more useful.
11090
11091         maint.mk: tweak new rule's name not to impinge
11092         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11093         (sc_tight_scope): Use new rule name rather than $@-0.
11094
11095         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11096         * top/maint.mk (sc_tight_scope): New rule.
11097         (sc_tight_scope-0): New rule, ifdef'd out.
11098         (_gl_TS_dir): Default.
11099         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11100         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11101
11102 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11103
11104         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11105         Haible <bruno@clisp.org>.
11106
11107 2011-05-08  Bruno Haible  <bruno@clisp.org>
11108
11109         Comments.
11110         * m4/isnanf.m4: Add comment.
11111         * m4/isnanl.m4: Likewise.
11112
11113 2011-05-08  Bruno Haible  <bruno@clisp.org>
11114
11115         glob: Remove obsolete macro.
11116         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11117
11118 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11119
11120         intprops: Sun C 5.11 supports __typeof__
11121         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11122         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11123         which is new.
11124         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11125
11126         intprops: switch to usual gnulib indenting and naming
11127         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11128         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11129
11130         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11131
11132 2011-05-08  Jim Meyering  <meyering@redhat.com>
11133
11134         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11135         * top/maint.mk (release-prep): Use make's --no-print-directory
11136         option when generating the announcement.  This eliminates the
11137         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11138         generated announcement template.
11139
11140 2011-05-08  Bruno Haible  <bruno@clisp.org>
11141
11142         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11143         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11144         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11145
11146 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11147
11148         ignore-value, verify: Omit include files from lib_SOURCES.
11149         * modules/ignore-value, modules/verify (Makefile.am):
11150         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11151         that leads Automake to duplicate use of am__objects_... variables
11152         in Makefile.in.  See
11153         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11154
11155 2011-05-07  Bruno Haible  <bruno@clisp.org>
11156
11157         fclose: Simplify autoconf macro.
11158         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11159         defined.
11160
11161 2011-05-07  Bruno Haible  <bruno@clisp.org>
11162
11163         canonicalize-lgpl: Fix autoconf macro ordering bug.
11164         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11165         gl_STDLIB_H_DEFAULTS.
11166
11167 2011-05-06  Eric Blake  <eblake@redhat.com>
11168
11169         maintainer-makefile: make sc_po_check easier to tune
11170         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11171         to probe for strings, such as an alternate location for gnulib.
11172
11173         fclose: guarantee behavior on seekable stdin
11174         * modules/fclose (Depends-on): Add fflush.
11175         * doc/posix-functions/fclose.texi (fclose): Document this.
11176         * tests/test-fclose.c (main): Make test for this unconditional.
11177
11178 2011-05-06  Bruno Haible  <bruno@clisp.org>
11179
11180         fflush, fpurge: Relicense under LGPLv2+.
11181         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11182         * modules/fpurge (License): Likewise.
11183         With permission from Eric Blake and Jim Meyering.
11184         Suggested by Eric Blake.
11185
11186 2011-05-06  Karl Berry  <karl@gnu.org>
11187
11188         * MODULES.html.sh (func_all_modules): remove exit.
11189
11190 2011-05-06  Jim Meyering  <meyering@redhat.com>
11191
11192         maint.mk: use info-gnu@ as the default only for a stable release
11193         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11194         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11195         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11196         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11197
11198 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11199
11200         assert-h: new module, which supports C1X-style static_assert
11201         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11202         * lib/verify.h: Revamp so that this can be copied into assert.h,
11203         while retaining the ability to use it standalone as before.
11204         Rename private identifiers so as not to encroach on the
11205         standard C namespace, since this is now used by assert.h.
11206         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11207         the old verify_true.
11208         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11209         the old verify_true.  Use _GL_VERIFY_TYPE.
11210         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11211         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11212         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11213         defined when this file is copied into the replacement assert.h.
11214         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11215         and _Static_assert is not built in.
11216         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11217         defined, and use the new macros mentioned above.
11218         * doc/posix-headers/assert.texi: Document this.
11219
11220 2011-05-05  Bruno Haible  <bruno@clisp.org>
11221
11222         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11223         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11224         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11225         gl_REPLACE_FCLOSE here.
11226         * modules/fflush (Depends-on): Remove fclose.
11227         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11228         combination with module 'fclose'.
11229
11230 2011-05-05  Bruno Haible  <bruno@clisp.org>
11231
11232         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11233         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11234         gl_FUNC_FFLUSH.
11235         (gl_FUNC_FFLUSH): Use it.
11236         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11237         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11238         gl_REPLACE_FSEEKO here.
11239
11240 2011-05-05  Bruno Haible  <bruno@clisp.org>
11241
11242         tzset: Relicense under LGPL.
11243         * modules/tzset (License): Change to LGPL.
11244         No agreement needed; it's a no-op.
11245
11246         strtoimax, strtoumax: Relicense under LGPL.
11247         * modules/strtoimax (License): Change to LGPL.
11248         * modules/strtoumax (License): Likewise.
11249         With permission from Jim Meyering, Paul Eggert:
11250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11252
11253         getgroups: Relicense under LGPL.
11254         * modules/getgroups (License): Change to LGPL.
11255         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11259
11260         nanosleep: Relicense under LGPL.
11261         * modules/nanosleep (License): Change to LGPL.
11262         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11263         Haible:
11264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11268
11269         futimens: Relicense under LGPL.
11270         * modules/futimens (License): Change to LGPL.
11271         With permission from Eric Blake:
11272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11273
11274         fflush: Relicense under LGPL.
11275         * modules/fflush (License): Change to LGPL.
11276         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11280
11281         tmpfile: Relicense under LGPL.
11282         * modules/tmpfile (License): Change to LGPL.
11283         With permission from Ben Pfaff:
11284         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11285
11286         isfinite: Relicense under LGPL.
11287         * modules/isfinite (License): Change to LGPL.
11288         With permission from Ben Pfaff, Bruno Haible:
11289         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11291
11292         acosl..tanl: Relicense under LGPL.
11293         * modules/acosl (License): Change to LGPL.
11294         * modules/asinl (License): Likewise.
11295         * modules/atanl (License): Likewise.
11296         * modules/cosl (License): Likewise.
11297         * modules/expl (License): Likewise.
11298         * modules/logl (License): Likewise.
11299         * modules/sinl (License): Likewise.
11300         * modules/sqrtl (License): Likewise.
11301         * modules/tanl (License): Likewise.
11302         Source code originally from glibc and Paolo Bonzini. Agreements:
11303         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11305
11306 2011-05-05  Bruno Haible  <bruno@clisp.org>
11307
11308         signal: Define sighandler_t.
11309         * lib/signal.in.h (sighandler_t): New type.
11310         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11311         whether sighandler_t is defined.
11312         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11313         * modules/signal (Depends-on): Add extensions.
11314         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11315         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11316         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11317
11318 2011-05-05  Eric Blake  <eblake@redhat.com>
11319
11320         maint: remove useless REPLACE_*_H macros
11321         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11322         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11323         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11324         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11325         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11326         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11327         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11328         * m4/btowc.m4: Update callers.
11329         * m4/dirfd.m4: Likewise.
11330         * m4/duplocale.m4: Likewise.
11331         * m4/fchdir.m4: Likewise.
11332         * m4/fdopendir.m4: Likewise.
11333         * m4/inet_ntop.m4: Likewise.
11334         * m4/inet_pton.m4: Likewise.
11335         * m4/ioctl.m4: Likewise.
11336         * m4/mbrlen.m4: Likewise.
11337         * m4/mbrtowc.m4: Likewise.
11338         * m4/mbsinit.m4: Likewise.
11339         * m4/mbsnrtowcs.m4: Likewise.
11340         * m4/mbsrtowcs.m4: Likewise.
11341         * m4/poll.m4: Likewise.
11342         * m4/setlocale.m4: Likewise.
11343         * m4/wcrtomb.m4: Likewise.
11344         * m4/wcsnrtombs.m4: Likewise.
11345         * m4/wcsrtombs.m4: Likewise.
11346         * m4/wctob.m4: Likewise.
11347         * m4/wcwidth.m4: Likewise.
11348         * modules/posix_spawn: Likewise.
11349         * modules/posix_spawn_file_actions_addclose: Likewise.
11350         * modules/posix_spawn_file_actions_adddup2: Likewise.
11351         * modules/posix_spawn_file_actions_addopen: Likewise.
11352         * modules/posix_spawn_file_actions_destroy: Likewise.
11353         * modules/posix_spawn_file_actions_init: Likewise.
11354         * modules/posix_spawnattr_destroy: Likewise.
11355         * modules/posix_spawnattr_getflags: Likewise.
11356         * modules/posix_spawnattr_getpgroup: Likewise.
11357         * modules/posix_spawnattr_getschedparam: Likewise.
11358         * modules/posix_spawnattr_getschedpolicy: Likewise.
11359         * modules/posix_spawnattr_getsigdefault: Likewise.
11360         * modules/posix_spawnattr_getsigmask: Likewise.
11361         * modules/posix_spawnattr_init: Likewise.
11362         * modules/posix_spawnattr_setflags: Likewise.
11363         * modules/posix_spawnattr_setpgroup: Likewise.
11364         * modules/posix_spawnattr_setschedparam: Likewise.
11365         * modules/posix_spawnattr_setschedpolicy: Likewise.
11366         * modules/posix_spawnattr_setsigdefault: Likewise.
11367         * modules/posix_spawnattr_setsigmask: Likewise.
11368         * modules/posix_spawnp: Likewise.
11369
11370 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11371
11372         Add option to do-release-commit-and-tag to specify branch.
11373         * build-aux/do-release-commit-and-tag: Add --branch.
11374
11375 2011-05-03  Bruno Haible  <bruno@clisp.org>
11376
11377         Avoid unnecessary compilation units, through conditional dependencies.
11378         * modules/accept (Depends-on): Add conditions to the dependencies.
11379         * modules/acosl (Depends-on): Likewise.
11380         * modules/argz (Depends-on): Likewise.
11381         * modules/asinl (Depends-on): Likewise.
11382         * modules/atanl (Depends-on): Likewise.
11383         * modules/atoll (Depends-on): Likewise.
11384         * modules/bind (Depends-on): Likewise.
11385         * modules/btowc (Depends-on): Likewise.
11386         * modules/canonicalize-lgpl (Depends-on): Likewise.
11387         * modules/ceil (Depends-on): Likewise.
11388         * modules/ceilf (Depends-on): Likewise.
11389         * modules/ceill (Depends-on): Likewise.
11390         * modules/chdir-long (Depends-on): Likewise.
11391         * modules/chown (Depends-on): Likewise.
11392         * modules/close (Depends-on): Likewise.
11393         * modules/connect (Depends-on): Likewise.
11394         * modules/cosl (Depends-on): Likewise.
11395         * modules/dirfd (Depends-on): Likewise.
11396         * modules/dprintf (Depends-on): Likewise.
11397         * modules/dprintf-posix (Depends-on): Likewise.
11398         * modules/error (Depends-on): Likewise.
11399         * modules/euidaccess (Depends-on): Likewise.
11400         * modules/expl (Depends-on): Likewise.
11401         * modules/faccessat (Depends-on): Likewise.
11402         * modules/fchdir (Depends-on): Likewise.
11403         * modules/fclose (Depends-on): Likewise.
11404         * modules/fcntl (Depends-on): Likewise.
11405         * modules/fdopendir (Depends-on): Likewise.
11406         * modules/fflush (Depends-on): Likewise.
11407         * modules/floor (Depends-on): Likewise.
11408         * modules/floorf (Depends-on): Likewise.
11409         * modules/floorl (Depends-on): Likewise.
11410         * modules/fnmatch (Depends-on): Likewise.
11411         * modules/fopen (Depends-on): Likewise.
11412         * modules/fprintf-posix (Depends-on): Likewise.
11413         * modules/frexp (Depends-on): Likewise.
11414         * modules/frexp-nolibm (Depends-on): Likewise.
11415         * modules/frexpl (Depends-on): Likewise.
11416         * modules/frexpl-nolibm (Depends-on): Likewise.
11417         * modules/fseek (Depends-on): Likewise.
11418         * modules/fsusage (Depends-on): Likewise.
11419         * modules/ftell (Depends-on): Likewise.
11420         * modules/ftello (Depends-on): Likewise.
11421         * modules/futimens (Depends-on): Likewise.
11422         * modules/getcwd (Depends-on): Likewise.
11423         * modules/getcwd-lgpl (Depends-on): Likewise.
11424         * modules/getdelim (Depends-on): Likewise.
11425         * modules/getdomainname (Depends-on): Likewise.
11426         * modules/getgroups (Depends-on): Likewise.
11427         * modules/gethostname (Depends-on): Likewise.
11428         * modules/getline (Depends-on): Likewise.
11429         * modules/getlogin_r (Depends-on): Likewise.
11430         * modules/getopt-posix (Depends-on): Likewise.
11431         * modules/getpeername (Depends-on): Likewise.
11432         * modules/getsockname (Depends-on): Likewise.
11433         * modules/getsockopt (Depends-on): Likewise.
11434         * modules/getsubopt (Depends-on): Likewise.
11435         * modules/getusershell (Depends-on): Likewise.
11436         * modules/glob (Depends-on): Likewise.
11437         * modules/grantpt (Depends-on): Likewise.
11438         * modules/iconv_open (Depends-on): Likewise.
11439         * modules/iconv_open-utf (Depends-on): Likewise.
11440         * modules/inet_ntop (Depends-on): Likewise.
11441         * modules/inet_pton (Depends-on): Likewise.
11442         * modules/ioctl (Depends-on): Likewise.
11443         * modules/isapipe (Depends-on): Likewise.
11444         * modules/isfinite (Depends-on): Likewise.
11445         * modules/isinf (Depends-on): Likewise.
11446         * modules/lchown (Depends-on): Likewise.
11447         * modules/ldexpl (Depends-on): Likewise.
11448         * modules/link (Depends-on): Likewise.
11449         * modules/linkat (Depends-on): Likewise.
11450         * modules/listen (Depends-on): Likewise.
11451         * modules/logl (Depends-on): Likewise.
11452         * modules/lstat (Depends-on): Likewise.
11453         * modules/mbrlen (Depends-on): Likewise.
11454         * modules/mbrtowc (Depends-on): Likewise.
11455         * modules/mbsinit (Depends-on): Likewise.
11456         * modules/mbsnrtowcs (Depends-on): Likewise.
11457         * modules/mbsrtowcs (Depends-on): Likewise.
11458         * modules/mbtowc (Depends-on): Likewise.
11459         * modules/memcmp (Depends-on): Likewise.
11460         * modules/mkdir (Depends-on): Likewise.
11461         * modules/mkdtemp (Depends-on): Likewise.
11462         * modules/mkfifo (Depends-on): Likewise.
11463         * modules/mkfifoat (Depends-on): Likewise.
11464         * modules/mknod (Depends-on): Likewise.
11465         * modules/mkostemp (Depends-on): Likewise.
11466         * modules/mkostemps (Depends-on): Likewise.
11467         * modules/mkstemp (Depends-on): Likewise.
11468         * modules/mkstemps (Depends-on): Likewise.
11469         * modules/mktime (Depends-on): Likewise.
11470         * modules/nanosleep (Depends-on): Likewise.
11471         * modules/open (Depends-on): Likewise.
11472         * modules/openat (Depends-on): Likewise.
11473         * modules/perror (Depends-on): Likewise.
11474         * modules/poll (Depends-on): Likewise.
11475         * modules/popen (Depends-on): Likewise.
11476         * modules/posix_spawn (Depends-on): Likewise.
11477         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11478         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11479         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11480         * modules/posix_spawnp (Depends-on): Likewise.
11481         * modules/pread (Depends-on): Likewise.
11482         * modules/printf-posix (Depends-on): Likewise.
11483         * modules/ptsname (Depends-on): Likewise.
11484         * modules/putenv (Depends-on): Likewise.
11485         * modules/pwrite (Depends-on): Likewise.
11486         * modules/readline (Depends-on): Likewise.
11487         * modules/readlink (Depends-on): Likewise.
11488         * modules/readlinkat (Depends-on): Likewise.
11489         * modules/recv (Depends-on): Likewise.
11490         * modules/recvfrom (Depends-on): Likewise.
11491         * modules/regex (Depends-on): Likewise.
11492         * modules/remove (Depends-on): Likewise.
11493         * modules/rename (Depends-on): Likewise.
11494         * modules/renameat (Depends-on): Likewise.
11495         * modules/rmdir (Depends-on): Likewise.
11496         * modules/round (Depends-on): Likewise.
11497         * modules/roundf (Depends-on): Likewise.
11498         * modules/roundl (Depends-on): Likewise.
11499         * modules/rpmatch (Depends-on): Likewise.
11500         * modules/select (Depends-on): Likewise.
11501         * modules/send (Depends-on): Likewise.
11502         * modules/sendto (Depends-on): Likewise.
11503         * modules/setenv (Depends-on): Likewise.
11504         * modules/setlocale (Depends-on): Likewise.
11505         * modules/setsockopt (Depends-on): Likewise.
11506         * modules/shutdown (Depends-on): Likewise.
11507         * modules/sigaction (Depends-on): Likewise.
11508         * modules/signbit (Depends-on): Likewise.
11509         * modules/sigprocmask (Depends-on): Likewise.
11510         * modules/sinl (Depends-on): Likewise.
11511         * modules/sleep (Depends-on): Likewise.
11512         * modules/snprintf (Depends-on): Likewise.
11513         * modules/snprintf-posix (Depends-on): Likewise.
11514         * modules/socket (Depends-on): Likewise.
11515         * modules/sprintf-posix (Depends-on): Likewise.
11516         * modules/sqrtl (Depends-on): Likewise.
11517         * modules/stat (Depends-on): Likewise.
11518         * modules/strchrnul (Depends-on): Likewise.
11519         * modules/strdup-posix (Depends-on): Likewise.
11520         * modules/strerror (Depends-on): Likewise.
11521         * modules/strerror_r-posix (Depends-on): Likewise.
11522         * modules/strndup (Depends-on): Likewise.
11523         * modules/strnlen (Depends-on): Likewise.
11524         * modules/strptime (Depends-on): Likewise.
11525         * modules/strsep (Depends-on): Likewise.
11526         * modules/strsignal (Depends-on): Likewise.
11527         * modules/strstr-simple (Depends-on): Likewise.
11528         * modules/strtod (Depends-on): Likewise.
11529         * modules/strtoimax (Depends-on): Likewise.
11530         * modules/strtok_r (Depends-on): Likewise.
11531         * modules/strtoumax (Depends-on): Likewise.
11532         * modules/symlink (Depends-on): Likewise.
11533         * modules/symlinkat (Depends-on): Likewise.
11534         * modules/tanl (Depends-on): Likewise.
11535         * modules/tcgetsid (Depends-on): Likewise.
11536         * modules/tmpfile (Depends-on): Likewise.
11537         * modules/trunc (Depends-on): Likewise.
11538         * modules/truncf (Depends-on): Likewise.
11539         * modules/truncl (Depends-on): Likewise.
11540         * modules/uname (Depends-on): Likewise.
11541         * modules/unlink (Depends-on): Likewise.
11542         * modules/unlockpt (Depends-on): Likewise.
11543         * modules/unsetenv (Depends-on): Likewise.
11544         * modules/usleep (Depends-on): Likewise.
11545         * modules/utimensat (Depends-on): Likewise.
11546         * modules/vasprintf (Depends-on): Likewise.
11547         * modules/vdprintf (Depends-on): Likewise.
11548         * modules/vdprintf-posix (Depends-on): Likewise.
11549         * modules/vfprintf-posix (Depends-on): Likewise.
11550         * modules/vprintf-posix (Depends-on): Likewise.
11551         * modules/vsnprintf (Depends-on): Likewise.
11552         * modules/vsnprintf-posix (Depends-on): Likewise.
11553         * modules/vsprintf-posix (Depends-on): Likewise.
11554         * modules/wcrtomb (Depends-on): Likewise.
11555         * modules/wcscasecmp (Depends-on): Likewise.
11556         * modules/wcscspn (Depends-on): Likewise.
11557         * modules/wcsdup (Depends-on): Likewise.
11558         * modules/wcsncasecmp (Depends-on): Likewise.
11559         * modules/wcsnrtombs (Depends-on): Likewise.
11560         * modules/wcspbrk (Depends-on): Likewise.
11561         * modules/wcsrtombs (Depends-on): Likewise.
11562         * modules/wcsspn (Depends-on): Likewise.
11563         * modules/wcsstr (Depends-on): Likewise.
11564         * modules/wcstok (Depends-on): Likewise.
11565         * modules/wcswidth (Depends-on): Likewise.
11566         * modules/wctob (Depends-on): Likewise.
11567         * modules/wctomb (Depends-on): Likewise.
11568         * modules/wctype (Depends-on): Likewise.
11569         * modules/wcwidth (Depends-on): Likewise.
11570         * modules/write (Depends-on): Likewise.
11571
11572 2011-05-03  Bruno Haible  <bruno@clisp.org>
11573
11574         Support for conditional dependencies.
11575         * doc/gnulib.texi (Module description): Document the syntax of
11576         conditional dependencies.
11577         * gnulib-tool: New option --conditional-dependencies.
11578         (func_usage): Document it.
11579         (cond_dependencies): New variable.
11580         (func_get_automake_snippet_conditional,
11581         func_get_automake_snippet_unconditional): New functions, extracted from
11582         func_get_automake_snippet.
11583         (func_get_automake_snippet): Use them.
11584         (sed_first_32_chars): New variable.
11585         (func_module_shellfunc_name): New function.
11586         (func_module_shellvar_name): New function.
11587         (func_module_conditional_name): New function.
11588         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11589         func_cond_module_condition): New functions.
11590         (func_modules_transitive_closure): Add support for conditional
11591         dependencies.
11592         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11593         conditional automake snippet in an automake conditional.
11594         (func_emit_autoconf_snippets): Emit shell functions that contain the
11595         code for conditional modules.
11596         (func_import, func_create_testdir): Update specification.
11597
11598 2011-05-03  Eric Blake  <eblake@redhat.com>
11599
11600         test-getaddrinfo: report error information
11601         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11602
11603 2011-05-03  Jim Meyering  <meyering@redhat.com>
11604
11605         bootstrap: avoid build failure when $GZIP is set
11606         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11607         program name.  If defined at all, it is supposed to list gzip options.
11608         Reported by Alan Curry in http://debbugs.gnu.org/8609
11609
11610 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11611
11612         readme-release: new module with release instructions
11613         * modules/readme-release: New module.
11614         * top/README-release: New file, from coreutils, grep, diffutils.
11615         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11616
11617 2011-05-02  Eric Blake  <eblake@redhat.com>
11618
11619         fflush: also replace fclose when fixing fflush
11620         * modules/fflush (Depends-on): Add fclose.
11621         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11622         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11623         memstreams with no backing fd.
11624         * doc/posix-functions/fclose.texi (fclose): Document the use of
11625         fflush module to fix the bug.
11626         * tests/test-fclose.c (main): Relax test when fclose is used in
11627         isolation.
11628
11629         fclose: add some tests
11630         * modules/fclose-tests: New test module.
11631         * tests/test-fclose.c: New file.
11632         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11633
11634         fclose: reduced dependencies
11635         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11636         simpler lseek.
11637         * lib/fclose.c (rpl_fclose): Likewise.
11638         Reported by Simon Josefsson.
11639
11640         exit: drop remaining clients
11641         * modules/argmatch (Depends-on): Replace exit with stdlib.
11642         * modules/copy-file (Depends-on): Likewise.
11643         * modules/execute (Depends-on): Likewise.
11644         * modules/exitfail (Depends-on): Likewise.
11645         * modules/obstack (Depends-on): Likewise.
11646         * modules/pagealign_alloc (Depends-on): Likewise.
11647         * modules/pipe-filter-gi (Depends-on): Likewise.
11648         * modules/pipe-filter-ii (Depends-on): Likewise.
11649         * modules/savewd (Depends-on): Likewise.
11650         * modules/spawn-pipe (Depends-on): Likewise.
11651         * modules/wait-process (Depends-on): Likewise.
11652         * modules/xsetenv (Depends-on): Likewise.
11653         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11654         * modules/git-merge-changelog (Depends-on): Likewise.
11655         * modules/long-options (Depends-on): Likewise.
11656         * modules/pt_chown (Depends-on): Likewise.
11657         * modules/sysexits (Depends-on): Likewise.
11658
11659         freading: relax license from LGPLv3+ to LGPLv2+
11660         * modules/freading (License): Relax LGPL version.
11661
11662 2011-05-02  Bruno Haible  <bruno@clisp.org>
11663
11664         fchdir: Remove unused dependencies.
11665         * modules/fchdir (Depends-on): Remove include_next.
11666
11667 2011-05-02  Bruno Haible  <bruno@clisp.org>
11668
11669         gnulib-tool: Refactor.
11670         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11671         from func_emit_autoconf_snippets.
11672         (func_emit_autoconf_snippets): Use it.
11673
11674 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11675
11676         * NEWS: Document removal of 'exit'.
11677         * modules/exit: Remove file.
11678
11679 2011-05-01  Bruno Haible  <bruno@clisp.org>
11680
11681         Update DEPENDENCIES.
11682         * DEPENDENCIES (gettext): Recommend the newest release.
11683         Reported by Simon Josefsson.
11684
11685 2011-05-01  Bruno Haible  <bruno@clisp.org>
11686
11687         gnulib-tool: Reduce code duplication.
11688         * gnulib-tool (func_emit_autoconf_snippets): New function.
11689         (func_import, func_create_testdir): Use it.
11690
11691 2011-04-30  Eric Blake  <eblake@redhat.com>
11692
11693         fclose: don't fail on non-seekable input stream
11694         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11695         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11696         since fflush is allowed to fail in that case.
11697
11698 2011-04-30  Bruno Haible  <bruno@clisp.org>
11699
11700         dup3: cleanup
11701         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11702
11703 2011-04-30  Bruno Haible  <bruno@clisp.org>
11704
11705         netdb: Make it work in C++ mode.
11706         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11707         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11708         module.
11709         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11710         gl_MODULE_INDICATOR_FOR_TESTS.
11711         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11712         * modules/netdb-c++-tests: New file.
11713         * tests/test-netdb-c++.cc: New file.
11714
11715 2011-04-30  Bruno Haible  <bruno@clisp.org>
11716
11717         New modules 'vfscanf', 'vscanf'.
11718         * modules/vfscanf: New file.
11719         * modules/vscanf: New file.
11720         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11721         here.
11722         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11723         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11724
11725 2011-04-30  Bruno Haible  <bruno@clisp.org>
11726
11727         passfd: Add comments.
11728         * lib/passfd.c: Add comments about platforms.
11729
11730 2011-04-30  Bruno Haible  <bruno@clisp.org>
11731
11732         sys_uio: Make <sys/uio.h> self-contained.
11733         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11734         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11735
11736 2011-04-30  Bruno Haible  <bruno@clisp.org>
11737
11738         sys_socket: Ensure 'struct iovec' definition.
11739         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11740         <sys/socket.h>.
11741         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11742
11743 2011-04-30  Bruno Haible  <bruno@clisp.org>
11744
11745         sys_uio: Protect definition of 'struct iovec'.
11746         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11747         it as a C struct.
11748
11749 2011-04-30  Bruno Haible  <bruno@clisp.org>
11750
11751         manywarnings: fix indentation
11752         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11753
11754 2011-04-30  Pádraig Brady <P@draigBrady.com>
11755
11756         manywarnings: add -Wno-missing-field-initializers if needed.
11757         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11758         option if it's needed to allow initialization with { 0, }
11759
11760 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11761
11762         announce-gen: cosmetic improvement
11763         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11764
11765 2011-04-29  Jim Meyering  <meyering@redhat.com>
11766
11767         vc-list-files: indent with spaces, not TABs
11768         * build-aux/vc-list-files: Convert leading TABs to spaces,
11769         to match the style of most other files in gnulib.
11770
11771         announce-gen: indent with spaces, not TABs
11772         * build-aux/announce-gen: Convert all TABs to spaces, to match
11773         the style of most other files in gnulib.
11774
11775 2011-04-29  Eric Blake  <eblake@redhat.com>
11776
11777         quotearg: avoid uninitialized variable use
11778         * lib/quotearg.c (quoting_options_from_style): Initialize
11779         remaining fields, and ensure that custom styles are only used via
11780         quoting_options rather than quoting_style.
11781
11782 2011-04-29  Jim Meyering  <meyering@redhat.com>
11783
11784         maint.mk: remove unused VC-tag variable
11785         * top/maint.mk (VC-tag): Remove unused variable.
11786
11787 2011-04-29  Bruno Haible  <bruno@clisp.org>
11788
11789         netdb: fix gai_strerror replacements
11790         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11791         * modules/netdb: Substitute it.
11792
11793 2011-04-29  Jim Meyering  <meyering@redhat.com>
11794
11795         test-getcwd.c: avoid new set-but-not-used warning
11796         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11797         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11798         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11799         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11800
11801         test-hash.c: avoid a new shadowing warning
11802         * tests/test-hash.c (main): Don't shadow "dup".
11803
11804 2011-04-28  Eric Blake  <eblake@redhat.com>
11805
11806         getaddrinfo: fix gai_strerror signature
11807         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11808         and work around mingw with UNICODE defined.
11809         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11810         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11811         * modules/netdb (Makefile.am): Substitute it.
11812         * lib/netdb.in.h (gai_strerror): Declare replacement.
11813         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11814         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11815         the fix.
11816
11817         getsockopt: avoid compiler warning
11818         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11819         Reported by Matthias Bolte.
11820
11821         tests: drop unused link dependency
11822         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11823         * modules/dirent-safer-tests (Makefile.am): Likewise.
11824         * modules/fdopendir-tests (Makefile.am): Likewise.
11825         * modules/mkfifoat-tests (Makefile.am): Likewise.
11826         * modules/openat-safer-tests (Makefile.am): Likewise.
11827         * modules/openat-tests (Makefile.am): Likewise.
11828         * modules/readlinkat-tests (Makefile.am): Likewise.
11829         * modules/symlinkat-tests (Makefile.am): Likewise.
11830         * modules/linkat-tests (Makefile.am): Likewise.
11831         (Depends-on): Switch to filenamecat-lgpl.
11832         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11833         LIBINTL.
11834         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11835         * tests/test-linkat.c (main): Don't require xalloc.
11836
11837         hash, mgetgroups: drop xalloc dependency
11838         * lib/hash.c (includes): Adjust includes.
11839         * lib/mgetgroups.c (includes): Likewise.
11840         (xgetgroups): Move...
11841         * lib/xgetgroups.c: ...to new file.
11842         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11843         * modules/xgetgroups: New file, split from...
11844         * modules/mgetgroups: ...here.
11845         (Depends-on): Add xalloc-oversized.
11846         * modules/hash (Depends-on): Likewise.
11847         * modules/hash-tests (Depends-on): Drop xalloc.
11848         (test_hash_LDADD): Drop unused library.
11849         * tests/test-hash.c (main): Break xalloc dependency.
11850         (includes): Drop unused include.
11851
11852         xalloc-oversized: new module
11853         * modules/xalloc-oversized: New module.
11854         * modules/xalloc (Depends-on): Add it.
11855         * lib/xalloc.h (xalloc_oversized): Move...
11856         * lib/xalloc-oversized.h: ...into new file.
11857
11858         utimecmp: drop dependency on xmalloc
11859         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11860         due to memory pressure.
11861         * modules/utimecmp (Depends-on): Drop xalloc.
11862
11863 2011-04-27  Eric Blake  <eblake@redhat.com>
11864
11865         getcwd: fix mingw bugs
11866         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11867         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11868         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11869
11870 2011-04-27  Bruno Haible  <bruno@clisp.org>
11871
11872         mkstemps: Ensure declaration on MacOS X 10.5.
11873         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11874         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11875         MacOS X.
11876
11877 2011-04-27  Bruno Haible  <bruno@clisp.org>
11878
11879         mkstemp: More documentation.
11880         * doc/posix-functions/mkstemp.texi: Document header file problem on
11881         MacOS X.
11882
11883 2011-04-27  Bruno Haible  <bruno@clisp.org>
11884
11885         mkstemp: Tweak configure message when cross-compiling.
11886         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11887         result as a guess.
11888
11889 2011-04-27  Bruno Haible  <bruno@clisp.org>
11890
11891         clean-temp: Clarify what it does.
11892         * lib/clean-temp.h: Add more comments.
11893         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11894         module.
11895         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11896         * doc/glibc-functions/mkstemps.texi: Likewise.
11897         * doc/glibc-functions/mkostemps.texi: Likewise.
11898
11899 2011-04-27  Eric Blake  <eblake@redhat.com>
11900
11901         fchdir: avoid extra chdir and fix test
11902         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11903         getcwd-lgpl.
11904         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11905         have to be canonical.
11906         (canonicalize_file_name): Drop unused macro.
11907         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11908
11909         filenamecat-lgpl: fix licence
11910         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11911         when it was first created.
11912
11913         linkat, renameat: add missing dependency
11914         * modules/linkat (Depends-on): Require getcwd-lgpl.
11915         * modules/renameat (Depends-on): Likewise.
11916
11917         tests: reduce dependencies
11918         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11919         * tests/test-renameat.c (main): Likewise.
11920         * modules/linkat-tests (Depends-on): Relax dependency.
11921         * modules/renameat-tests (Depends-on): Likewise.
11922         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11923         dependency explicit.
11924
11925         save-cwd: reduce default dependency
11926         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11927         * lib/save-cwd.c: Update comments.
11928         * NEWS: Document the semantic change.
11929
11930         getcwd: enhance tests
11931         * tests/test-getcwd-lgpl.c: New file, taken from...
11932         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
11933         repeat long path stress tests from m4 probe.
11934         * modules/getcwd-lgpl-tests: New module.
11935         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
11936         * m4/getcwd-abort-bug.m4: Update comment.
11937         * m4/getcwd-path-max.m4: Likewise.
11938
11939         getcwd-lgpl: new module
11940         * modules/getcwd-lgpl: New module.
11941         * lib/getcwd-lgpl.c: New file.
11942         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11943         * MODULES.html.sh (lacking POSIX:2008): Likewise.
11944         * modules/getcwd (configure.ac): Set C witness.
11945         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
11946
11947         getcwd: tweak comments
11948         * m4/getcwd-abort-bug.m4: Fix comments.
11949         * m4/getcwd-path-max.m4: Likewise.
11950         * m4/getcwd.m4: Likewise.
11951
11952 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11953         and Eric Blake  <eblake@redhat.com>
11954
11955         mkstemp: replace if system version uses wrong permissions
11956         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
11957         read/write mode bits set in file created by mkstemp.
11958         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
11959
11960 2011-04-27  Eric Blake  <eblake@redhat.com>
11961
11962         passfd: avoid compiler warning
11963         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
11964         Reported by Laine Stump.
11965
11966 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
11967
11968         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
11969         required by the NetBSD (and perhaps other 4.4BSD derived) join.
11970
11971 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
11972         and Eric Blake  <eblake@redhat.com>
11973
11974         mkstemp: mention clean-temp module
11975         * lib/mkstemp.c: Add comment.
11976         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
11977
11978 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
11979
11980         inttypes: also provide default values for 32-bit tests
11981         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
11982         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
11983
11984 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
11985
11986         strtoumax: remove dependency on strtoimax
11987         This is like the strtoull change of yesterday.
11988         * modules/strtoumax (Files): Add lib/strtoimax.c.
11989         (Depends-on): Remove strtoimax and add verify.
11990
11991         inttypes-incomplete: new module
11992         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
11993         all but the PRI* and SCN* parts of gl_INTTYPES_H.
11994         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
11995         of gl_INTTYPES_H.
11996         (gl_INTTYPES_H): Rewrite in terms of these new macros.
11997         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
11998         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
11999         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12000         * modules/strtoumax, modules/xstrtol (Depends-on):
12001         Depend on inttypes-incomplete, not inttypes.
12002         * modules/inttypes-incomplete: New module, containing the contents
12003         of the old modules/inttypes module, except that the Files: section
12004         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12005         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12006         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12007         (Depends-on): Depend only on inttypes-incomplete.
12008         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12009
12010         inttypes: omit now-redundant strtoimax and strtoumax work
12011         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12012         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12013
12014         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12015         This supports apps that need pointers to strtoimax and strtoumax,
12016         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12017         nonexistent functions.  See
12018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12019         et seq.
12020         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12021         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12022         a macro.
12023         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12024
12025 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12026
12027         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12028
12029 2011-04-25  Bruno Haible  <bruno@clisp.org>
12030
12031         strtol, strtoul: Mark modules as obsolete.
12032         * modules/strtol (Status, Notice): New sections.
12033         * modules/strtoul (Status, Notice): New sections.
12034
12035 2011-04-25  Bruno Haible  <bruno@clisp.org>
12036
12037         strtod: Remove check for strtod, unless supporting old platforms.
12038         * modules/strtod-obsolete: New file.
12039         * m4/strtod-obsolete.m4: New file.
12040         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12041         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12042         * modules/strtod (Depends-on): Add strtod-obsolete.
12043         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12044
12045 2011-04-25  Bruno Haible  <bruno@clisp.org>
12046
12047         strcase: Make module obsolete.
12048         * modules/strcase (Status, Notice): New sections.
12049
12050 2011-04-25  Bruno Haible  <bruno@clisp.org>
12051
12052         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12053         * modules/dup2-obsolete: New file.
12054         * m4/dup2-obsolete.m4: New file.
12055         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12056         gl_FUNC_DUP2_OBSOLETE is not also defined.
12057         * modules/dup2 (Depends-on): Add dup2-obsolete.
12058         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12059
12060 2011-04-25  Bruno Haible  <bruno@clisp.org>
12061
12062         strnlen: Avoid memchr related link error on old obsolete platforms.
12063         * modules/memchr-obsolete: New file.
12064         * m4/memchr-obsolete.m4: New file.
12065         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12066         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12067         * modules/memchr (Depends-on): Add memchr-obsolete.
12068         * modules/strnlen (Depends-on): Likewise.
12069         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12070
12071 2011-04-25  Jim Meyering  <meyering@redhat.com>
12072
12073         maint.mk: makefile_at_at_check extend and clean up
12074         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12075         in addition to */Makefile.am.
12076         Exempt legitimate uses of @VAR@ notation, e.g.,
12077         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12078         Remove obsolete coreutils-specific comment.
12079         Prompted by discussion here:
12080         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12081
12082 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12083
12084         strtoul: remove dependency on strtol
12085         This is so that 'configure' need not check for strtol merely because
12086         the application needs strtoul.
12087         * modules/strtoul (Files): Add lib/strtol.c.
12088         (Depends-on): Remove strtol.
12089
12090         strtoull: remove dependency on strtoul
12091         This is like the strtoll change.
12092         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12093         (Depends-on): Remove strtoul.
12094
12095         strtoll: remove dependency on strtol
12096         This is so that 'configure' need not check for strtol merely because
12097         the application needs strtoll.
12098         * modules/strtoll (Files): Add lib/strtol.c.
12099         (Depends-on): Remove strtol.
12100
12101 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12102
12103         inttypes: Move some configure check to module 'imaxdiv'.
12104         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12105         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12106         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12107
12108 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12109
12110         inttypes: Move some configure check to module 'imaxabs'.
12111         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12112         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12113         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12114
12115 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12116
12117         inttypes: Remove configure tests that are not needed since 2009-12-31.
12118         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12119         gl_cv_header_working_inttypes_h.
12120
12121 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12122
12123         * modules/strnlen (Depends-on): Remove memchr.
12124         The strnlen implementation doesn't need the memchr module's fixes; see
12125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12126
12127         strtol: remove dependency on wchar
12128         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12129         * modules/strtol (Depends-on): Remove wchar.
12130
12131 2011-04-21  Eric Blake  <eblake@redhat.com>
12132
12133         passfd: fix test regression on Linux
12134         * modules/passfd-tests (configure.ac): Correct socketpair check.
12135
12136         passfd: speed up configure and drop unused code
12137         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12138         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12139         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12140         Instead of probing at configure for unix_scm_rights_bsd44_way,
12141         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12142         check to a struct member probe.
12143         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12144         (sendfd, recvfd): Update preprocessor checks.
12145         * modules/passfd (Files): Reflect rename, and drop unused file.
12146         (Depends-on): Drop unused dependency.
12147
12148         passfd: allow compilation on mingw
12149         * modules/sys_socket (Depends-on): Add sys_uio.
12150         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12151         iovec and a minimal struct msghdr.
12152         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12153         * tests/test-sys_socket.c (main): Enhance test.
12154         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12155         guaranteed to provide what we need.
12156         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12157         * modules/passfd-tests (Depends-on): Add sys_wait.
12158         * tests/test-passfd.c (main): Skip test on mingw, for now.
12159         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12160         partial 'struct msghdr' implementation.
12161
12162         sys_uio: new module
12163         * modules/sys_uio: New module.
12164         * modules/sys_uio-tests: Likewise.
12165         * lib/sys_uio.in.h: New file.
12166         * m4/sys_uio_h.m4: Likewise.
12167         * tests/test-sys_uio.c: Likewise.
12168         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12169         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12170
12171 2011-04-20  Jim Meyering  <meyering@redhat.com>
12172
12173         useless-if-before-free: avoid false-positive
12174         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12175         disjunct so that it too requires a terminating ";".  Without that,
12176         this script would identify as useless one statement from gcc that
12177         was not:
12178           if (aligned_ptr)
12179             free (((void **) aligned_ptr) [-1]);
12180
12181 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12182
12183         doc: update users.txt.
12184         * users.txt: Add barcode.
12185
12186 2011-04-19  Bruno Haible  <bruno@clisp.org>
12187
12188         ioctl: Remove link dependency on native Windows.
12189         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12190         (gl_close_fn, gl_ioctl_fn): New types.
12191         (struct fd_hook): Renamed from struct close_hook. Change type of
12192         private_close_fn field. Add private_ioctl_fn field.
12193         (close_hook_fn): Add parameter for primary close method.
12194         (execute_close_hooks, execute_all_close_hooks): Likewise.
12195         (ioctl_hook_fn): New type.
12196         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12197         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12198         argument.
12199         (unregister_fd_hook): Renamed from unregister_close_hook.
12200         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12201         Don't include <unistd.h>.
12202         (close): Remove undef.
12203         (anchor): Update.
12204         (execute_close_hooks): Add argument for primary close method.
12205         (execute_all_close_hooks): Likewise.
12206         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12207         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12208         argument. Allow each argument to be NULL.
12209         (unregister_fd_hook): Renamed from unregister_close_hook.
12210         * lib/close.c (rpl_close): Pass 'close' function pointer to
12211         execute_all_close_hooks.
12212         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12213         (primary_ioctl): New function.
12214         (ioctl): Don't call ioctlsocket here. Instead, call
12215         execute_all_ioctl_hooks.
12216         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12217         close method.
12218         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12219         (fd_sockets_hook): Renamed from close_sockets_hook.
12220         (gl_sockets_startup, gl_sockets_cleanup): Update.
12221         * modules/fd-hook: Renamed from modules/close-hook. Update.
12222         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12223         * modules/sockets (Depends-on): Likewise.
12224         * modules/ioctl (Depends-on): Add fd-hook.
12225         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12226         GNULIB_SOCKET.
12227
12228 2011-04-19  Bruno Haible  <bruno@clisp.org>
12229
12230         Move the support of O_NONBLOCK in open() to the 'open' module.
12231         * modules/nonblocking (Depends-on): Remove 'open'.
12232         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12233         gl_cv_have_open_O_NONBLOCK.
12234         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12235         O_NONBLOCK support.
12236         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12237
12238 2011-04-17  Bruno Haible  <bruno@clisp.org>
12239
12240         pipe2: Simplify code.
12241         * lib/pipe2.c (pipe2): Reduce code duplication.
12242
12243 2011-04-17  Bruno Haible  <bruno@clisp.org>
12244
12245         nonblocking: Add comment.
12246         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12247
12248 2011-04-17  Bruno Haible  <bruno@clisp.org>
12249
12250         nonblocking: Add tests for sockets.
12251         * tests/test-nonblocking-socket.sh: New file.
12252         * tests/test-nonblocking-socket-main.c: New file.
12253         * tests/test-nonblocking-socket-child.c: New file.
12254         * tests/test-nonblocking-socket.h: New file.
12255         * tests/socket-server.h: New file.
12256         * tests/socket-client.h: New file.
12257         * modules/nonblocking-socket-tests: New file.
12258         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12259
12260 2011-04-17  Bruno Haible  <bruno@clisp.org>
12261
12262         nonblocking: Add tests for pipes.
12263         * tests/test-nonblocking-pipe.sh: New file.
12264         * tests/test-nonblocking-pipe-main.c: New file.
12265         * tests/test-nonblocking-pipe-child.c: New file.
12266         * tests/test-nonblocking-pipe.h: New file.
12267         * tests/test-nonblocking-writer.h: New file.
12268         * tests/test-nonblocking-reader.h: New file.
12269         * tests/test-nonblocking-misc.h: New file.
12270         * modules/nonblocking-pipe-tests: New file.
12271         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12272
12273 2011-04-16  Bruno Haible  <bruno@clisp.org>
12274
12275         gettext: Clarify the needed programmer actions.
12276         * modules/gettext (Notice): New field.
12277         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12278
12279 2011-04-16  Bruno Haible  <bruno@clisp.org>
12280
12281         strchrnul: Tweak last commit.
12282         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12283         bug.
12284         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12285         as in _GL_FUNCDECL_SYS.
12286         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12287         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12288
12289 2011-04-15  Eric Blake  <eblake@redhat.com>
12290
12291         strchrnul: work around cygwin bug
12292         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12293         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12295         * modules/string (Makefile.am): Substitute it.
12296         * lib/string.in.h (strchrnul): Use it.
12297
12298 2011-04-15  Bruno Haible  <bruno@clisp.org>
12299
12300         Don't require lib/stdio-write.c when only module 'stdio' is used.
12301         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12302         invocation.
12303         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12304
12305 2011-04-14  Bruno Haible  <bruno@clisp.org>
12306
12307         Support non-blocking pipe I/O in read() on native Windows.
12308         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12309         (read): New declaration.
12310         * lib/read.c: New file.
12311         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12312         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12313         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12314         vscanf): New declarations.
12315         * lib/stdio-read.c: New file.
12316         * m4/read.m4: New file.
12317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12318         REPLACE_READ.
12319         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12320         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12321         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12322         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12323         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12324         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12325         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12326         * modules/read: New file.
12327         * modules/nonblocking (Files): Add lib/stdio-read.c.
12328         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12329         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12330         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12331         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12332         * modules/pread (Depends-on): Add read.
12333         * modules/safe-read (Depends-on): Likewise.
12334         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12335         gets, scanf, vfscanf, vscanf): Verify signatures.
12336         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12337         problem with non-blocking pipes.
12338         * doc/posix-functions/fgetc.texi: Likewise.
12339         * doc/posix-functions/fgets.texi: Likewise.
12340         * doc/posix-functions/fread.texi: Likewise.
12341         * doc/posix-functions/fscanf.texi: Likewise.
12342         * doc/posix-functions/getc.texi: Likewise.
12343         * doc/posix-functions/getchar.texi: Likewise.
12344         * doc/posix-functions/gets.texi: Likewise.
12345         * doc/posix-functions/scanf.texi: Likewise.
12346         * doc/posix-functions/vfscanf.texi: Likewise.
12347         * doc/posix-functions/vscanf.texi: Likewise.
12348
12349 2011-04-14  Bruno Haible  <bruno@clisp.org>
12350
12351         Support non-blocking pipe I/O in write() on native Windows.
12352         * lib/write.c (rpl_write): Split a write request that failed merely
12353         because the byte count was larger than the pipe buffer's size.
12354         * doc/posix-functions/write.texi: Mention the problem with large byte
12355         counts.
12356
12357 2011-04-14  Bruno Haible  <bruno@clisp.org>
12358
12359         wchar: Ensure that wchar_t gets defined on uClibc.
12360         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12361         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12362
12363 2011-04-13  Bruno Haible  <bruno@clisp.org>
12364
12365         safe-write, full-read: Avoid unnecessary compilation units.
12366         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12367         (Depends-on): Remove safe-read. Add ssize_t.
12368         * modules/full-read (Files): Add lib/full-write.c.
12369         (Depends-on): Add full-write.
12370
12371 2011-04-13  Bruno Haible  <bruno@clisp.org>
12372
12373         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12374         * modules/pwrite (Depends-on): Add 'write'.
12375
12376 2011-04-13  Bruno Haible  <bruno@clisp.org>
12377
12378         Support non-blocking pipe I/O in write() on native Windows.
12379         * lib/unistd.in.h (write): Enable replacement also if
12380         GNULIB_UNISTD_H_NONBLOCKING is 1.
12381         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12382         (rpl_write): When failing to write on a non-blocking pipe, change
12383         errno from ENOSPC to EAGAIN.
12384         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12385         putchar, puts, vfprintf, vprintf): Enable replacement also if
12386         GNULIB_STDIO_H_NONBLOCKING is 1.
12387         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12388         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12389         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12390         CALL_WITH_SIGPIPE_EMULATION.
12391         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12392         * m4/nonblocking.m4: New file.
12393         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12394         for non-blocking I/O support.
12395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12396         GNULIB_UNISTD_H_NONBLOCKING.
12397         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12398         required for non-blocking I/O support.
12399         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12400         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12401         lib/stdio-write.c, m4/asm-underscore.m4.
12402         (Depends-on): Add stdio, unistd.
12403         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12404         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12405         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12406         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12407         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12408         problem with non-blocking pipes.
12409         * doc/posix-functions/fputc.texi: Likewise.
12410         * doc/posix-functions/fputs.texi: Likewise.
12411         * doc/posix-functions/fwrite.texi: Likewise.
12412         * doc/posix-functions/printf.texi: Likewise.
12413         * doc/posix-functions/putc.texi: Likewise.
12414         * doc/posix-functions/putchar.texi: Likewise.
12415         * doc/posix-functions/puts.texi: Likewise.
12416         * doc/posix-functions/vfprintf.texi: Likewise.
12417         * doc/posix-functions/vprintf.texi: Likewise.
12418         * doc/posix-functions/write.texi: Likewise.
12419
12420 2011-04-10  Jim Meyering  <meyering@redhat.com>
12421
12422         maint.mk: prohibit doubled words
12423         Detect them also when they're separated by a newline.
12424         There are 3 ways to customize it:
12425           - disable the test on a per file basis, as usual with rules using
12426             $(VC_LIST_EXCEPT)
12427           - replace the default doubled-word-selecting regexp (affects all files)
12428           - ignore a particular file-vs-doubled-word match
12429         I nearly used that last one to ignore the "is is" match in
12430         coreutils' NEWS file, since the text was "ls -is is ..."
12431         To do that, I would have added this line to cfg.mk:
12432           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12433         but it would have ignored any "is is" match in NEWS.
12434         Low probability, but still...
12435         Instead, I changed the text, slightly:
12436           -  ls -is is now consistent with ls -lis in ignoring values returned
12437           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12438         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12439         (prohibit_doubled_word_): Define.
12440         (sc_prohibit_doubled_word): New rule.
12441         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12442
12443 2011-04-10  Jim Meyering  <meyering@redhat.com>
12444
12445         maint: fix doubled-word typo in comment
12446         * m4/gethostname.m4: s/is is/it is/
12447         * m4/getdomainname.m4: Likewise.
12448
12449 2011-04-10  Jim Meyering  <meyering@redhat.com>
12450
12451         maint: remove doubled word: s/it it/it/
12452         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12453
12454 2011-04-10  Jim Meyering  <meyering@redhat.com>
12455
12456         maint.mk: remove useless semicolon and backslash
12457         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12458         semicolon and backslash.
12459
12460 2011-04-10  Bruno Haible  <bruno@clisp.org>
12461
12462         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12463         * modules/stdint-tests (Depends-on): Add wchar.
12464
12465 2011-04-10  Jim Meyering  <meyering@redhat.com>
12466
12467         maint: remove doubled words in comments, e.g., s/a a/a/
12468         * lib/strptime.c (day_of_the_week): s/the the/the/
12469         * tests/test-chown.h (test_chown): s/a a/a/
12470
12471         test-chown.h: correct a cast
12472         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12473         when the destination is a stat.st_gid.
12474
12475 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12476
12477         getaddrinfo: Fix test for sa_len member.
12478         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12479         include <sys/types.h> before <sys/socket.h>.
12480
12481 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12482
12483         maint: change "can not" to "cannot"
12484         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12485         boundaries.
12486
12487 2011-04-09  Jim Meyering  <meyering@redhat.com>
12488
12489         maint: change "a a" to "a"
12490         * tests/test-lchown.h (test_lchown): s/a a/a/
12491
12492         maint.mk: prohibit \<the the\>
12493         * top/maint.mk (sc_prohibit_the_the): New rule.
12494
12495         maint: fix "the the" in comment
12496         * lib/count-one-bits.h: s/the the/the/
12497
12498         maint: change "can not" to "cannot"
12499         But do not change the occurrences in maintain.texi or in
12500         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12501         * doc/gnulib-tool.texi: s/can not/cannot/
12502         * doc/posix-functions/accept.texi (accept): Likewise.
12503         * doc/posix-functions/socket.texi (socket): Likewise.
12504         * lib/mbrtowc.c: Likewise.
12505
12506         maint.mk: prohibit use of "can not"
12507         * top/maint.mk (sc_prohibit_can_not): New rule.
12508         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12509
12510 2011-04-09  Bruno Haible  <bruno@clisp.org>
12511
12512         careadlinkat: Guard against misuse of careadlinkatcwd.
12513         * lib/careadlinkat.c: Include <stdlib.h>.
12514         (careadlinkatcwd): Check that the fd argument is as expected.
12515
12516 2011-04-09  Bruno Haible  <bruno@clisp.org>
12517
12518         careadlinkat: Use common coding style.
12519         * lib/careadlinkat.c: Move gnulib includes after system includes.
12520
12521 2011-04-09  Bruno Haible  <bruno@clisp.org>
12522
12523         careadlinkat: Clarify specification.
12524         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12525         (careadlinkatcwd): Add comment.
12526         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12527
12528 2011-04-09  Bruno Haible  <bruno@clisp.org>
12529
12530         areadlinkat: Avoid link error on many platforms.
12531         * modules/areadlinkat (Depends-on): Add areadlink.
12532
12533 2011-04-09  Bruno Haible  <bruno@clisp.org>
12534
12535         allocator, careadlinkat: Fix double-inclusion guard.
12536         * lib/allocator.h: Fix double-inclusion guard.
12537         * lib/careadlinkat.h: Likewise.
12538
12539 2011-04-09  Bruno Haible  <bruno@clisp.org>
12540
12541         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12542         * lib/relocwrapper.c: Update dependencies hierarchy.
12543         * build-aux/install-reloc: Update list of files to be compiled.
12544         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12545         lib/allocator.[hc].
12546
12547 2011-04-08  Eric Blake  <eblake@redhat.com>
12548
12549         strftime: silence gnulib-tool warning
12550         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12551
12552 2011-04-08  Bruno Haible  <bruno@clisp.org>
12553
12554         verify: Fix syntax error with GCC 4.6 in C++ mode.
12555         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12556         (HAVE_STATIC_ASSERT): New macro.
12557         (verify_true, verify): Use 'static_assert' if it is supported and
12558         '_Static_assert' is not supported.
12559
12560 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12561
12562         allocator: New module.
12563         * modules/allocator, lib/allocator.c: New files.
12564         * lib/allocator.h (stdlib_allocator): New decl.
12565         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12566         Remove.  Do not include <stdlib.h>.
12567         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12568         * modules/careadlinkat (Files): Remove lib/allocator.h.
12569         (Depends-on): Add allocator.
12570
12571         stdlib: let modules use system malloc, realloc
12572         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12573         if !_GL_USE_STDLIB_ALLOC.
12574         (malloc, realloc): Limit this change to a smaller scope.
12575
12576         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12577         (malloc, realloc): Don't #undef; no longer needed.
12578         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12579         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12580         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12581         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12582         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12583         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12584         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12585         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12586
12587         careadlinkat: rename members to avoid problem
12588         * lib/allocator.h (struct allocator): Rename members from
12589         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12590         and realloc are #define'd.  Reported by Eric Blake in
12591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12592         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12593
12594 2011-04-08  Eric Blake  <eblake@redhat.com>
12595
12596         nonblocking: reduce dependency
12597         * tests/test-nonblocking.c: Only test sockets when in use.
12598         * modules/nonblocking-tests (Depends-on): Drop socket.
12599         (Makefile.am): Link even if sockets are not present.
12600         * modules/pipe2-tests (Makefile.am): Likewise.
12601         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12602
12603         pipe2: fix O_NONBLOCK support on mingw
12604         * modules/pipe2 (Depends-on): Add nonblocking.
12605         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12606         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12607         * tests/test-nonblocking.c (main): Likewise.
12608         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12609
12610         fcntl-h: fix O_ACCMODE on cygwin
12611         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12612         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12613
12614         pipe-filter: drop O_NONBLOCK workarounds
12615         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12616         * modules/pipe-filter-ii (Depends-on): Likewise.
12617         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12618
12619         nonblocking: provide O_NONBLOCK for mingw
12620         * modules/nonblocking (Depends-on): Add open.
12621         (configure.ac): Set new witness macro.
12622         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12623         * modules/fcntl-h (Makefile.am): Substitute it.
12624         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12625         nonblocking module is in use.
12626         * lib/nonblocking.c: Adjust portability test.
12627         * lib/open.c (open): Don't let native open see gnulib flag.
12628         * tests/test-fcntl-h.c (main): Enhance test.
12629         * tests/test-open.h (test_open): Likewise.
12630         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12631
12632         careadlinkat: fix compilation error on mingw
12633         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12634         within struct allocator.
12635
12636 2011-04-06  Eric Blake  <eblake@redhat.com>
12637
12638         binary-io: relicense under LGPLv2+
12639         * modules/binary-io (License): Relax to LGPLv2+.
12640         Requested for libvirt, and required by pipe2.
12641
12642 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12643
12644         verify: use _Static_assert if available
12645         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12646         (verify_true, verify): Use it if available.  This generates better
12647         diagnostics with GCC 4.6.0 and later.
12648
12649 2011-04-05  Bruno Haible  <bruno@clisp.org>
12650
12651         Remove leftover generated .h files after config.status changed.
12652
12653         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12654         GL_GENERATE_ALLOCA_H.
12655         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12656         GL_GENERATE_ALLOCA_H evaluates to false.
12657
12658         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12659         GL_GENERATE_ARGZ_H.
12660         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12661         evaluates to false.
12662
12663         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12664         GL_GENERATE_BYTESWAP_H.
12665         * modules/byteswap (Makefile.am): Remove byteswap.h if
12666         GL_GENERATE_BYTESWAP_H evaluates to false.
12667
12668         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12669         GL_GENERATE_ERRNO_H.
12670         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12671         evaluates to false.
12672
12673         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12674         GL_GENERATE_FLOAT_H.
12675         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12676         evaluates to false.
12677
12678         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12679         GL_GENERATE_FNMATCH_H.
12680         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12681         GL_GENERATE_FNMATCH_H evaluates to false.
12682
12683         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12684         GL_GENERATE_GLOB_H.
12685         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12686         evaluates to false.
12687
12688         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12689         automake conditional GL_GENERATE_ICONV_H.
12690         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12691         evaluates to false.
12692
12693         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12694         GL_GENERATE_NETINET_IN_H.
12695         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12696         GL_GENERATE_NETINET_IN_H evaluates to false.
12697
12698         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12699         conditional GL_GENERATE_PTHREAD_H.
12700         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12701         * modules/pthread (Makefile.am): Remove pthread.h if
12702         GL_GENERATE_PTHREAD_H evaluates to false.
12703
12704         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12705         GL_GENERATE_SCHED_H.
12706         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12707         evaluates to false.
12708
12709         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12710         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12711         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12712         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12713
12714         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12715         GL_GENERATE_STDARG_H.
12716         * modules/stdarg (Makefile.am): Remove stdarg.h if
12717         GL_GENERATE_STDARG_H evaluates to false.
12718
12719         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12720         GL_GENERATE_STDBOOL_H.
12721         * modules/stdbool (Makefile.am): Remove stdbool.h if
12722         GL_GENERATE_STDBOOL_H evaluates to false.
12723
12724         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12725         conditional GL_GENERATE_STDDEF_H.
12726         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12727         * modules/stddef (Makefile.am): Remove stddef.h if
12728         GL_GENERATE_STDDEF_H evaluates to false.
12729
12730         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12731         GL_GENERATE_STDINT_H.
12732         * modules/stdint (Makefile.am): Remove stdint.h if
12733         GL_GENERATE_STDINT_H evaluates to false.
12734
12735         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12736         GL_GENERATE_SYSEXITS_H.
12737         * modules/sysexits (Makefile.am): Remove sysexits.h if
12738         GL_GENERATE_SYSEXITS_H evaluates to false.
12739
12740         Reported by Karl Berry and Ralf Wildenhues.
12741
12742 2011-04-05  Bruno Haible  <bruno@clisp.org>
12743
12744         Ensure to rebuild generated .h files when config.status has changed.
12745         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12746         config.status.
12747         * modules/ctype (Makefile.am): Likewise.
12748         * modules/dirent (Makefile.am): Likewise.
12749         * modules/errno (Makefile.am): Likewise.
12750         * modules/fcntl-h (Makefile.am): Likewise.
12751         * modules/float (Makefile.am): Likewise.
12752         * modules/getopt-posix (Makefile.am): Likewise.
12753         * modules/glob (Makefile.am): Likewise.
12754         * modules/iconv-h (Makefile.am): Likewise.
12755         * modules/inttypes (Makefile.am): Likewise.
12756         * modules/langinfo (Makefile.am): Likewise.
12757         * modules/locale (Makefile.am): Likewise.
12758         * modules/math (Makefile.am): Likewise.
12759         * modules/netdb (Makefile.am): Likewise.
12760         * modules/netinet_in (Makefile.am): Likewise.
12761         * modules/poll-h (Makefile.am): Likewise.
12762         * modules/pthread (Makefile.am): Likewise.
12763         * modules/pty (Makefile.am): Likewise.
12764         * modules/sched (Makefile.am): Likewise.
12765         * modules/search (Makefile.am): Likewise.
12766         * modules/selinux-h (Makefile.am): Likewise.
12767         * modules/signal (Makefile.am): Likewise.
12768         * modules/spawn (Makefile.am): Likewise.
12769         * modules/stdarg (Makefile.am): Likewise.
12770         * modules/stdbool (Makefile.am): Likewise.
12771         * modules/stddef (Makefile.am): Likewise.
12772         * modules/stdint (Makefile.am): Likewise.
12773         * modules/stdio (Makefile.am): Likewise.
12774         * modules/stdlib (Makefile.am): Likewise.
12775         * modules/string (Makefile.am): Likewise.
12776         * modules/strings (Makefile.am): Likewise.
12777         * modules/sys_file (Makefile.am): Likewise.
12778         * modules/sys_ioctl (Makefile.am): Likewise.
12779         * modules/sys_select (Makefile.am): Likewise.
12780         * modules/sys_socket (Makefile.am): Likewise.
12781         * modules/sys_stat (Makefile.am): Likewise.
12782         * modules/sys_time (Makefile.am): Likewise.
12783         * modules/sys_times (Makefile.am): Likewise.
12784         * modules/sys_utsname (Makefile.am): Likewise.
12785         * modules/sys_wait (Makefile.am): Likewise.
12786         * modules/sysexits (Makefile.am): Likewise.
12787         * modules/termios (Makefile.am): Likewise.
12788         * modules/time (Makefile.am): Likewise.
12789         * modules/unistd (Makefile.am): Likewise.
12790         * modules/wchar (Makefile.am): Likewise.
12791         * modules/wctype-h (Makefile.am): Likewise.
12792         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12793
12794 2011-04-05  Bruno Haible  <bruno@clisp.org>
12795
12796         pipe2: Relicense under LGPLv2+.
12797         * modules/pipe2 (License): Change to LGPLv2+.
12798         Requested by Eric Blake, for libvirt.
12799
12800 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12801
12802         bootstrap: compute gnulib_extra_files after updating build_aux
12803         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12804         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12805
12806 2011-04-05  Eric Blake  <eblake@redhat.com>
12807
12808         bootstrap: preserve git whitelist item sorting
12809         * build-aux/bootstrap (sort_patterns): New function.
12810         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12811
12812 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12813
12814         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12815         sc_space_tab check.
12816
12817 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12818
12819         areadlink, areadlinkat: rewrite in terms of careadlinkat
12820         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12821         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12822         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12823         (malloc, realloc): Remove #undefs.
12824         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12825         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12826         readlink, ssize_t, stdint, unistd.
12827         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12828         areadlink, stdint.
12829
12830         careadlinkat: new module
12831         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12832         * modules/careadlinkat: New files, written by me with
12833         a review and feedback from Ben Pfaff in
12834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12835
12836 2011-04-01  Bruno Haible  <bruno@clisp.org>
12837
12838         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12839         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12840         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12841         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12842         Reported by Bruce Korb <bruce.korb@gmail.com>.
12843
12844 2011-04-01  Bruno Haible  <bruno@clisp.org>
12845
12846         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12847         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12848         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12849         * modules/wcpcpy (Depends-on): Add extensions.
12850         * modules/wcpncpy (Depends-on): Likewise.
12851         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12852         systems.
12853         * doc/posix-functions/wcpncpy.texi: Likewise.
12854         * doc/posix-functions/wcwidth.texi: Likewise.
12855
12856 2011-03-31  Eric Blake  <eblake@redhat.com>
12857
12858         nonblocking: fix mingw test failures
12859         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12860         non-blocking flag on regular file.
12861         (get_nonblocking_flag): Set errno on invalid fd.
12862         * tests/test-nonblocking.c (main): Avoid test failure on
12863         directories if fchdir is not active.
12864         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12865
12866 2011-03-31  Bruno Haible  <bruno@clisp.org>
12867
12868         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12869         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12870         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12871         Reported by Simon Josefsson <simon@josefsson.org>.
12872
12873 2011-03-31  Bruno Haible  <bruno@clisp.org>
12874         and Eric Blake  <eblake@redhat.com>
12875
12876         nonblocking: new module
12877         * modules/nonblocking: New module.
12878         * modules/nonblocking-tests: Likewise.
12879         * lib/nonblocking.h: New file.
12880         * lib/nonblocking.c: Likewise.
12881         * tests/test-nonblocking.c: New test.
12882         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12883
12884 2011-03-30  Bruno Haible  <bruno@clisp.org>
12885
12886         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12887         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12888         instead of 'printf' format for GCC >= 4.4.
12889         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12890         (fprintf, printf, vfprintf, vprintf): Declare with
12891         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12892         the system's vfprintf() function.
12893         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12894
12895 2011-03-30  Eric Blake  <eblake@redhat.com>
12896
12897         passfd: fix scoping bug
12898         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12899         before sendmsg/recvmsg.
12900
12901         passfd: standardize coding conventions
12902         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12903         can be learned at compile time.
12904         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12905         ifdefs.
12906         (sendfd, recvfd): Follow gnulib code conventions.
12907
12908         passfd: fix incorrect sendmsg arguments
12909         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12910         incorrect msg_controllen value.
12911         * modules/passfd-tests (Depends-on): Check for alarm.
12912         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12913         Reported by Bastien ROUCARIES.
12914
12915 2011-03-30  Bruno Haible  <bruno@clisp.org>
12916
12917         c-strcasestr: Relicense under LGPLv2+.
12918         * modules/c-strcasestr (License): Change to LGPLv2+.
12919         Requested by Eric Blake, for libvirt.
12920
12921 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12922
12923         * users.txt: Add libidn2.  Fix libtasn1 link.
12924
12925 2011-03-30  Jim Meyering  <meyering@redhat.com>
12926
12927         tests: readlink* ("",... fails with EINVAL on newer kernels
12928         readlink and readlinkat have typically failed with ENOENT for
12929         the invalid, empty file name,  "".  However, with the advent
12930         of linux-2.6.39, they fail with EINVAL.
12931         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
12932         when operating on the empty file name.
12933         * tests/test-readlink.h (test_readlink): Likewise.
12934
12935 2011-03-29  Bruno Haible  <bruno@clisp.org>
12936
12937         Relicense some modules under LGPLv2+, for libidn2.
12938         * modules/array-mergesort (License): Change to LGPLv2+.
12939         * modules/c-strcaseeq (License): Likewise.
12940         * modules/striconveh (License): Likewise.
12941         * modules/striconveha (License): Likewise.
12942         * modules/uniconv/base (License): Likewise.
12943         * modules/uniconv/u8-conv-from-enc (License): Likewise.
12944         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
12945         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
12946         * modules/unictype/base (License): Likewise.
12947         * modules/unictype/bidiclass-of (License): Likewise.
12948         * modules/unictype/category-M (License): Likewise.
12949         * modules/unictype/category-none (License): Likewise.
12950         * modules/unictype/category-of (License): Likewise.
12951         * modules/unictype/category-test (License): Likewise.
12952         * modules/unictype/category-test-withtable (License): Likewise.
12953         * modules/unictype/combining-class (License): Likewise.
12954         * modules/unictype/joiningtype-of (License): Likewise.
12955         * modules/unictype/scripts (License): Likewise.
12956         * modules/uninorm/base (License): Likewise.
12957         * modules/uninorm/canonical-decomposition (License): Likewise.
12958         * modules/uninorm/composition (License): Likewise.
12959         * modules/uninorm/decompose-internal (License): Likewise.
12960         * modules/uninorm/decomposition-table (License): Likewise.
12961         * modules/uninorm/nfc (License): Likewise.
12962         * modules/uninorm/nfd (License): Likewise.
12963         * modules/uninorm/u32-normalize (License): Likewise.
12964         * modules/unistr/base (License): Likewise.
12965         * modules/unistr/u32-cpy (License): Likewise.
12966         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
12967         * modules/unistr/u32-to-u8 (License): Likewise.
12968         * modules/unistr/u32-uctomb (License): Likewise.
12969         * modules/unistr/u8-check (License): Likewise.
12970         * modules/unistr/u8-mblen (License): Likewise.
12971         * modules/unistr/u8-mbtouc (License): Likewise.
12972         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
12973         * modules/unistr/u8-mbtoucr (License): Likewise.
12974         * modules/unistr/u8-prev (License): Likewise.
12975         * modules/unistr/u8-strlen (License): Likewise.
12976         * modules/unistr/u8-to-u32 (License): Likewise.
12977         * modules/unistr/u8-uctomb (License): Likewise.
12978         * modules/unitypes (License): Likewise.
12979         Requested by Simon Josefsson.
12980
12981 2011-03-29  Simon Josefsson  <simon@josefsson.org>
12982
12983         lib-symbol-visibility: Add a notice.
12984         * modules/lib-symbol-visibility (Notice): New field.
12985
12986 2011-03-29  Bruno Haible  <bruno@clisp.org>
12987
12988         getaddrinfo: Doc fix.
12989         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
12990         section "fixed in Gnulib".
12991
12992 2011-03-28  Simon Josefsson  <simon@josefsson.org>
12993
12994         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
12995         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
12996
12997 2011-03-26  Bruno Haible  <bruno@clisp.org>
12998
12999         unictype/property-byname: Reduce the number of load-time relocations.
13000         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13001         (UC_PROPERTY_INDEX_*): New enumeration values.
13002         (uc_property_byname): Convert an index from the lookup table to an
13003         uc_property_t.
13004         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13005         values.
13006
13007 2011-03-26  Bruno Haible  <bruno@clisp.org>
13008
13009         unictype/property-byname: Allow omitted word separators and aliases.
13010         * lib/unictype/pr_byname.gperf: Add property names without word
13011         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13012         for 'space'.
13013
13014 2011-03-26  Bruno Haible  <bruno@clisp.org>
13015
13016         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13017         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13018         also hyphens to space.
13019         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13020         without spaces.
13021         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13022
13023 2011-03-26  Bruno Haible  <bruno@clisp.org>
13024
13025         unictype/joiningtype-byname: Recognize long names as well.
13026         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13027         a long name.
13028         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13029         unictype/joiningtype_byname.h.
13030         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13031         * lib/unictype/joiningtype_byname.gperf: New file.
13032         * modules/unictype/joiningtype-byname (Files): Add
13033         lib/unictype/joiningtype_byname.gperf.
13034         (Depends-on): Add gperf.
13035         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13036         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13037         long names.
13038
13039         Tests for module 'unictype/joiningtype-longname'.
13040         * modules/unictype/joiningtype-longname-tests: New file.
13041         * tests/unictype/test-joiningtype_longname.c: New file.
13042
13043         New module 'unictype/joiningtype-longname'.
13044         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13045         * lib/unictype/joiningtype_longname.c: New file.
13046         * modules/unictype/joiningtype-longname: New file.
13047         * modules/unictype/joiningtype-all (Depends-on): Add
13048         unictype/joiningtype-longname.
13049
13050 2011-03-26  Bruno Haible  <bruno@clisp.org>
13051
13052         unictype/bidiclass-byname: Recognize long names as well.
13053         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13054         name.
13055         * lib/unictype/bidi_byname.c: Include <string.h>,
13056         unictype/bidi_byname.h.
13057         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13058         * lib/unictype/bidi_byname.gperf: New file.
13059         * modules/unictype/bidiclass-byname (Files): Add
13060         lib/unictype/bidi_byname.gperf.
13061         (Depends-on): Add gperf.
13062         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13063         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13064         long names.
13065
13066         Tests for module 'unictype/bidiclass-longname'.
13067         * modules/unictype/bidiclass-longname-tests: New file.
13068         * tests/unictype/test-bidi_longname.c: New file.
13069
13070         New module 'unictype/bidiclass-longname'.
13071         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13072         * lib/unictype/bidi_longname.c: New file.
13073         * modules/unictype/bidiclass-longname: New file.
13074         * modules/unictype/bidiclass-all (Depends-on): Add
13075         unictype/bidiclass-longname.
13076
13077 2011-03-26  Bruno Haible  <bruno@clisp.org>
13078
13079         unictype/bidi*: Rename modules.
13080         * modules/unictype/bidiclass-all: Renamed from
13081         modules/unictype/bidicategory-all.
13082         * modules/unictype/bidiclass-name: Renamed from
13083         modules/unictype/bidiclass-name.
13084         (Description): Update.
13085         * modules/unictype/bidiclass-name-tests: Renamed from
13086         modules/unictype/bidicategory-name-tests.
13087         * modules/unictype/bidiclass-byname: Renamed from
13088         modules/unictype/bidicategory-byname.
13089         (Description): Update.
13090         * modules/unictype/bidiclass-byname-tests: Renamed from
13091         modules/unictype/bidicategory-byname-tests.
13092         * modules/unictype/bidiclass-of: Renamed from
13093         modules/unictype/bidicategory-of.
13094         (Description): Update.
13095         * modules/unictype/bidiclass-of-tests: Renamed from
13096         modules/unictype/bidicategory-of-tests.
13097         * modules/unictype/bidiclass-test: Renamed from
13098         modules/unictype/bidicategory-test.
13099         (Description): Update.
13100         * modules/unictype/bidiclass-test-tests: Renamed from
13101         modules/unictype/bidicategory-test-tests.
13102         * modules/unictype/bidicategory-all: New file, a simple redirection.
13103         * modules/unictype/bidicategory-name: Likewise.
13104         * modules/unictype/bidicategory-byname: Likewise.
13105         * modules/unictype/bidicategory-of: Likewise.
13106         * modules/unictype/bidicategory-test: Likewise.
13107         * modules/unictype/property-bidi-* (Dependencies): Update.
13108         * lib/unictype/bidi_*.c: Update comment.
13109
13110 2011-03-26  Bruno Haible  <bruno@clisp.org>
13111
13112         unictype/bidi*: Rename functions, part 2.
13113         * modules/unictype/bidicategory-name (configure.ac): Update required
13114         libunistring version.
13115         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13116
13117 2011-03-25  Bruno Haible  <bruno@clisp.org>
13118
13119         New module 'unictype/combining-class-all'.
13120         * modules/unictype/combining-class-all: New file.
13121
13122         Tests for module 'unictype/combining-class-byname'.
13123         * modules/unictype/combining-class-byname-tests: New file.
13124         * tests/unictype/test-combiningclass_byname.c: New file.
13125
13126         New module 'unictype/combining-class-byname'.
13127         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13128         * lib/unictype/combiningclass_byname.c: New file.
13129         * lib/unictype/combiningclass_byname.gperf: New file.
13130         * modules/unictype/combining-class-byname: New file.
13131
13132         Tests for module 'unictype/combining-class-longname'.
13133         * modules/unictype/combining-class-longname-tests: New file.
13134         * tests/unictype/test-combiningclass_longname.c: New file.
13135
13136         New module 'unictype/combining-class-longname'.
13137         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13138         * lib/unictype/combiningclass_longname.c: New file.
13139         * modules/unictype/combining-class-longname: New file.
13140
13141         Tests for module 'unictype/combining-class-name'.
13142         * modules/unictype/combining-class-name-tests: New file.
13143         * tests/unictype/test-combiningclass_name.c: New file.
13144
13145         New module 'unictype/combining-class-name'.
13146         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13147         * lib/unictype/combiningclass_name.c: New file.
13148         * modules/unictype/combining-class-name: New file.
13149
13150 2011-03-25  Bruno Haible  <bruno@clisp.org>
13151
13152         unictype/combining-class: Rename source files.
13153         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13154         of unictype/combining.h.
13155         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13156         Update.
13157         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13158         * modules/unictype/combining-class (Description): Fix.
13159         (Files, Makefile.am): Update.
13160         * tests/unictype/test-combiningclass.c: Renamed from
13161         tests/unictype/test-combining.c.
13162         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13163
13164 2011-03-25  Bruno Haible  <bruno@clisp.org>
13165
13166         unictype: Update list of canonical combining classes.
13167         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13168
13169 2011-03-25  Bruno Haible  <bruno@clisp.org>
13170
13171         unictype/category-byname: Recognize long names as well.
13172         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13173         a long name.
13174         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13175         unictype/categ_byname.h.
13176         (UC_CATEGORY_INDEX_*): New enumeration values.
13177         (uc_general_category_byname): Use uc_general_category_lookup and
13178         convert from index to value.
13179         * lib/unictype/categ_byname.gperf: New file.
13180         * modules/unictype/category-byname (Files): Add
13181         lib/unictype/categ_byname.gperf.
13182         (Depends-on): Add gperf.
13183         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13184         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13185         long names.
13186
13187         Tests for module 'unictype/category-longname'.
13188         * modules/unictype/category-longname-tests: New file.
13189         * tests/unictype/test-categ_longname.c: New file.
13190
13191         New module 'unictype/category-longname'.
13192         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13193         * lib/unictype/categ_longname.c: New file.
13194         * modules/unictype/category-longname: New file.
13195         * modules/unictype/category-all (Depends-on): Add it.
13196
13197 2011-03-25  Bruno Haible  <bruno@clisp.org>
13198
13199         Tests for module 'unictype/category-LC'.
13200         * modules/unictype/category-LC-tests: New file.
13201         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13202
13203         New module 'unictype/category-LC'.
13204         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13205         (UC_CATEGORY_LC): New declaration.
13206         (UC_CASED_LETTER): New macro.
13207         * lib/gen-uni-tables.c (is_category_LC): New function.
13208         (output_categories): Also handle category LC.
13209         (UC_CATEGORY_MASK_LC): New enumeration value.
13210         (general_category_byname): Also handle category LC.
13211         * lib/unictype/categ_LC.c: New file.
13212         * lib/unictype/categ_LC.h: New file, automatically generated.
13213         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13214         category LC.
13215         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13216         * modules/unictype/category-LC: New file.
13217         * modules/unictype/category-byname (Depends-on): Add
13218         unictype/category-LC.
13219         * modules/unictype/category-all (Depends-on): Likewise.
13220
13221 2011-03-25  Eric Blake  <eblake@redhat.com>
13222
13223         xmalloc: revert yesterday's regression
13224         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13225         realloc's underlying behavior (allowing allocation of zero-size
13226         objects, especially if malloc-gnu is also in use).
13227
13228 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13229
13230         maint.mk: add missing version to VC-tag
13231         * top/maint.mk: git tag was missing actual tag name; add it.
13232
13233         valgrind: do leak checking, and exit with code 1 on error (not 0)
13234         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13235         to VALGRIND.
13236
13237 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13238
13239         posix-modules: say what it does.
13240         * posix-modules: Add a line to the --help output saying what it does.
13241
13242 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13243
13244         xmalloc: Do not leak if underlying realloc is C99 compatible.
13245         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13246         This avoids a leak on C99-based systems.  See
13247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13248
13249 2011-03-24  Eric Blake  <eblake@redhat.com>
13250
13251         realloc: document portability problem
13252         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13253         passing 0 size to realloc.
13254
13255 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13256
13257         doc: update users.txt
13258         * users.txt: Add cvsps, tmpwatch
13259
13260 2011-03-23  Matt Rice  <ratmice@gmail.com>
13261
13262         doc: update users.txt
13263         * users.txt: Add gdb.
13264
13265 2011-03-23  Jim Meyering  <meyering@redhat.com>
13266
13267         doc: update users.txt
13268         Looking through matches up to the following URL (there are still
13269         several more pages), I found several projects that use gnulib:
13270         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13271         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13272         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13273
13274 2011-03-22  Bruno Haible  <bruno@clisp.org>
13275
13276         unictype/bidi*: Rename functions.
13277         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13278         uc_bidi_class, uc_is_bidi_class): New declarations.
13279         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13280         uc_bidi_category_byname.
13281         (uc_bidi_category_byname): New function.
13282         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13283         u_bidi_category_name.
13284         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13285         (uc_bidi_category_name): New function.
13286         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13287         uc_bidi_category.
13288         (uc_bidi_category): New function.
13289         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13290         uc_is_bidi_category. Invoke uc_bidi_class.
13291         (uc_is_bidi_category): New function.
13292         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13293         instead of uc_bidi_category_byname.
13294         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13295         instead of uc_bidi_category_name.
13296         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13297         uc_bidi_category.
13298         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13299         instead of uc_is_bidi_category.
13300
13301 2011-03-21  Bruno Haible  <bruno@clisp.org>
13302
13303         New module 'unictype/joininggroup-all'.
13304         * modules/unictype/joininggroup-all: New file.
13305
13306         Tests for module 'unictype/joininggroup-of'.
13307         * modules/unictype/joininggroup-of-tests: New file.
13308         * tests/unictype/test-joininggroup_of.c: New file.
13309         * tests/unictype/test-joininggroup_of.h: New file, automatically
13310         generated by gen-uni-tables.
13311
13312         New module 'unictype/joininggroup-of'.
13313         * modules/unictype/joininggroup-of: New file.
13314         * lib/unictype/joininggroup_of.c: New file.
13315         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13316         gen-uni-tables.
13317
13318         Tests for module 'unictype/joininggroup-byname'.
13319         * modules/unictype/joininggroup-byname-tests: New file.
13320         * tests/unictype/test-joininggroup_byname.c: New file.
13321
13322         New module 'unictype/joininggroup-byname'.
13323         * modules/unictype/joininggroup-byname: New file.
13324         * lib/unictype/joininggroup_byname.c: New file.
13325         * lib/unictype/joininggroup_byname.gperf: New file.
13326
13327         Tests for module 'unictype/joininggroup-name'.
13328         * modules/unictype/joininggroup-name-tests: New file.
13329         * tests/unictype/test-joininggroup_name.c: New file.
13330
13331         New module 'unictype/joininggroup-name'.
13332         * modules/unictype/joininggroup-name: New file.
13333         * lib/unictype/joininggroup_name.c: New file.
13334         * lib/unictype/joininggroup_name.h: New file.
13335
13336         New module 'unictype/joiningtype-all'.
13337         * modules/unictype/joiningtype-all: New file.
13338
13339         Tests for module 'unictype/joiningtype-of'.
13340         * modules/unictype/joiningtype-of-tests: New file.
13341         * tests/unictype/test-joiningtype_of.c: New file.
13342         * tests/unictype/test-joiningtype_of.h: New file, automatically
13343         generated by gen-uni-tables.
13344
13345         New module 'unictype/joiningtype-of'.
13346         * modules/unictype/joiningtype-of: New file.
13347         * lib/unictype/joiningtype_of.c: New file.
13348         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13349         gen-uni-tables.
13350
13351         Tests for module 'unictype/joiningtype-byname'.
13352         * modules/unictype/joiningtype-byname-tests: New file.
13353         * tests/unictype/test-joiningtype_byname.c: New file.
13354
13355         New module 'unictype/joiningtype-byname'.
13356         * modules/unictype/joiningtype-byname: New file.
13357         * lib/unictype/joiningtype_byname.c: New file.
13358
13359         Tests for module 'unictype/joiningtype-name'.
13360         * modules/unictype/joiningtype-name-tests: New file.
13361         * tests/unictype/test-joiningtype_name.c: New file.
13362
13363         New module 'unictype/joiningtype-name'.
13364         * modules/unictype/joiningtype-name: New file.
13365         * lib/unictype/joiningtype_name.c: New file.
13366
13367         unictype: Add support for Arabic shaping properties.
13368         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13369         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13370         declarations.
13371         (UC_JOINING_GROUP_*): New enumeration values.
13372         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13373         declarations.
13374         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13375         (unicode_joining_type): New variable.
13376         (UC_JOINING_GROUP_*): New enumeration values.
13377         (unicode_joining_group): New variable.
13378         (fill_arabicshaping, joining_type_as_c_identifier,
13379         output_joining_type_test, output_joining_type,
13380         joining_group_as_c_identifier, output_joining_group_test,
13381         output_joining_group): New functions.
13382         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13383         fill_arabicshaping and output_joining_type_test, output_joining_type,
13384         output_joining_group_test, output_joining_group.
13385         Reported by Simon Josefsson.
13386
13387 2011-03-21  Jim Meyering  <meyering@redhat.com>
13388
13389         strftime: fix a bug in yesterday's change
13390         * lib/strftime.c (add): Accommodate width's initial value of -1.
13391         Otherwise, nstrftime would copy uninitialized data into
13392         the result buffer.
13393
13394 2011-03-21  Jim Meyering  <meyering@redhat.com>
13395
13396         tests: add strftime-tests module
13397         * tests/test-strftime.c: New file.
13398         * modules/strftime-tests: New module.
13399
13400 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13401
13402         strftime: don't assume a byte count fits in 'int'
13403         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13404         found this problem by static analysis, using gcc -Wstrict-overflow
13405         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13406         on an integer overflow having undefined behavior, but it turns out
13407         that the argument is a size, which might not fit in 'int' anyway,
13408
13409 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13410
13411         stdio: don't require ignore_value around fwrite
13412
13413         This patch works around libc bug 11959
13414         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13415         Without this patch, applications must often write
13416         ignore_value (fwrite (...)) even though the ignore_value is
13417         not helpful here.  It's common to write many objects, using
13418         fwrite/printf/etc., and then use ferror to detect output error.
13419
13420         I considered making this patch optional, but decided against it,
13421         because libc is obviously being inconsistent here: there is no
13422         reason libc should insist that user code must inspect fwrite
13423         return's value without also insisting that it inspect printf's,
13424         putchar's, etc.  If user code wants to have a strict style where
13425         all these functions' values are checked (so that ferror need not
13426         be checked), we could add support for that style in a new gnulib
13427         module, but in the meantime it's better to be consistent and to
13428         support common usage.
13429
13430         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13431         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13432         that we are compiling in checking mode, and if not C++, and
13433         if not already wrapping fwrite for some other reason.
13434         (fwrite): #define to rpl_fwrite if the latter is defined.
13435
13436 2011-03-20  Bruno Haible  <bruno@clisp.org>
13437
13438         verror: Fix compilation error introduced on 2011-02-13.
13439         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13440         instead of __attribute__.
13441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13442
13443 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13444             Bruno Haible  <bruno@clisp.org>
13445
13446         socklen: do not depend on sys_socket
13447         While trying to modify Emacs to use gnulib's socklen module,
13448         I discovered a circular dependency: socklen depends on sys_socket
13449         and vice versa.  Emacs can use socklen, but it does not need
13450         sys_socket because it has its own substitute for sys/socket.h.
13451         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13452         gl_TYPE_SOCKLEN_T.
13453         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13454         gl_PREREQ_SYS_H_SOCKET.
13455         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13456         gl_PREREQ_SYS_H_SOCKET.
13457         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13458         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13459         * modules/socklen (Depends-on): Do not depend on sys_socket.
13460         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13461
13462 2011-03-20  Jim Meyering  <meyering@redhat.com>
13463
13464         maint.mk: sort file names *after* new transformation
13465         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13466         prefix would have led to an unwarranted failure in GNU parted.
13467         Sort after that transformation.
13468
13469 2011-03-19  Jim Meyering  <meyering@redhat.com>
13470
13471         maint.mk: fix po-file syntax-check rule
13472         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13473         Patch by Bruno Haible.
13474
13475 2011-03-19  Bruno Haible  <bruno@clisp.org>
13476
13477         socklen: Update comment.
13478         * m4/socklen.m4: Update comment about platforms.
13479
13480 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13481             Bruno Haible  <bruno@clisp.org>
13482
13483         inet_ntop, inet_pton: Simplify.
13484         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13485         documented to provide socklen_t and we already depend on sys_socket.
13486         * modules/inet_pton (Depends-on): Likewise.
13487         * lib/arpa_inet.in.h: Adjust comment.
13488
13489 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13490             Bruno Haible  <bruno@clisp.org>
13491
13492         netdb: Simplify.
13493         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13494         documented to provide socklen_t and we already depend on sys_socket.
13495         * lib/netdb.in.h: Adjust comment.
13496
13497 2011-03-19  Bruno Haible  <bruno@clisp.org>
13498
13499         sys_socket, netdb: Document problem with socklen_t.
13500         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13501         platforms.
13502         * doc/posix-headers/netdb.texi: Likewise.
13503
13504 2011-03-18  Eric Blake  <eblake@redhat.com>
13505
13506         maint.mk: let po check work in VPATH build
13507         * top/maint.mk (po_file): Allow cfg.mk override.
13508         (sc_po_check): Allow VPATH use.
13509         Reported by Jiri Denemark.
13510
13511 2011-03-16  Jim Meyering  <meyering@redhat.com>
13512
13513         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13514         Before, you would have had to create one .x-sc_ file per rule in order
13515         to exempt offending files.  Now, you may instead use a Make variable --
13516         usually defined in cfg.mk -- whose name identifies the affected rule.
13517         * top/maint.mk (_sc_excl): Define.
13518         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13519         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13520
13521 2011-03-13  Bruno Haible  <bruno@clisp.org>
13522
13523         ignore-value tests: Avoid warnings.
13524         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13525         empty for gcc < 3.4.
13526
13527 2011-03-13  Bruno Haible  <bruno@clisp.org>
13528
13529         passfd: Fix link error on Solaris.
13530         * modules/passfd (Description): Correct.
13531         (Depends-on): Add socketlib.
13532         (Link): New section.
13533         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13534
13535 2011-03-13  Bruno Haible  <bruno@clisp.org>
13536
13537         passfd: Fix link error on AIX 5.2.
13538         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13539
13540 2011-03-13  Bruno Haible  <bruno@clisp.org>
13541
13542         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13543         * lib/sys_socket.in.h: Include <stddef.h>.
13544         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13545         CMSG_FIRSTHDR. Remove unused variable.
13546
13547 2011-03-13  Bruno Haible  <bruno@clisp.org>
13548
13549         passfd: Fix compilation error on OpenBSD.
13550         * lib/passfd.c: Include <sys/uio.h>.
13551
13552 2011-03-13  Bruno Haible  <bruno@clisp.org>
13553
13554         passfd test: Fix warnings.
13555         * tests/test-passfd.c: Include <sys/wait.h>.
13556         (main): Fix typo.
13557
13558 2011-03-13  Bruno Haible  <bruno@clisp.org>
13559
13560         passfd module, part 4, tweaks.
13561         * tests/test-passfd.c: Reorder includes.
13562         (main): Fix perror and printf calls.
13563
13564 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13565
13566         passfd module, part 4.
13567         * modules/passfd-tests: New file.
13568         * tests/test-passfd.c: New file.
13569
13570 2011-03-13  Jim Meyering  <meyering@redhat.com>
13571
13572         Makefile: rely on GNU make; derive syntax-check rule names
13573         Rather than requiring that each sc_ rule be listed as a dependent
13574         of "check", use features of GNU make to derive the list.
13575         * Makefile (syntax-check-rules): Define.
13576         (check): Depend on the new variable, not the hard-coded list.
13577
13578 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13579             Bruno Haible  <bruno@clisp.org>
13580
13581         passfd module, part 3.
13582         * lib/passfd.h (recvfd): Add a flags argument.
13583         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13584         (recvfd): Add a flags argument.
13585         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13586         exists.
13587         * modules/passfd (Depends-on): Add cloexec.
13588         Suggested by Eric Blake.
13589
13590 2011-03-13  Bruno Haible  <bruno@clisp.org>
13591
13592         passfd module, part 2, tweaks.
13593         * modules/passfd (Files): Reorder.
13594         (Depends-on): Remove errno.
13595         (Include): Remove <sys/socket.h>, <sys/un.h>.
13596         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13597         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13598         specification header. Include <sys/socket.h> always. Don't include
13599         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13600         (sendfd): Clarify that it sets errno when it fails.
13601         (recvfd): Fix specification.
13602
13603 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13604
13605         passfd module, part 2.
13606         * modules/passfd: New file.
13607         * lib/passfd.h: New file.
13608         * lib/passfd.c: New file.
13609
13610 2011-03-12  Bruno Haible  <bruno@clisp.org>
13611
13612         wcswidth, mbswidth: Avoid integer overflow.
13613         * lib/wcswidth.c: Include <limits.h>.
13614         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13615         * lib/mbswidth.c: Include <limits.h>.
13616         (mbsnwidth): Avoid 'int' overflow.
13617         Reported by Jim Meyering.
13618
13619 2011-03-12  Bruno Haible  <bruno@clisp.org>
13620
13621         futimens, utimensat: Avoid endless recursion on Solaris 10.
13622         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13623         Solaris.
13624         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13625         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13626
13627 2011-03-11  Jim Meyering  <meyering@redhat.com>
13628
13629         maint.mk: relax a regexp to accommodate other formatting styles
13630         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13631         between "ngettext" and the following "(".
13632
13633 2011-03-11  Pádraig Brady <P@draigBrady.com>
13634
13635         maint.mk: suppress a false positive warning
13636         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13637         diagnostics are marked with ngettext.
13638
13639 2011-03-10  Eric Blake  <eblake@redhat.com>
13640
13641         wchar: add explicit dependencies, for Tru64
13642         * modules/mbmemcasecoll (Depends-on): Add wchar.
13643         * modules/mbtowc (Depends-on): Likewise.
13644         * modules/vasnprintf (Depends-on): Likewise.
13645         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13646         * modules/wctomb (Depends-on): Likewise.
13647         Reported by Peter O'Gorman.
13648
13649 2011-03-08  Bruno Haible  <bruno@clisp.org>
13650
13651         passfd module, part 1, tweaks.
13652         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13653         Improve indentation. Improve AC_MSG_CHECKING messages.
13654         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13655         gl_SOCKET_FAMILIES.
13656
13657 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13658
13659         passfd module, part 1.
13660         * m4/afunix.m4: New file.
13661         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13662         sockets.
13663
13664 2011-03-08  Bruno Haible  <bruno@clisp.org>
13665
13666         regex-quote: New API.
13667         * lib/regex-quote.h: Include <stdbool.h>.
13668         (struct regex_quote_spec): New type.
13669         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13670         New declarations.
13671         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13672         'const struct regex_quote_spec *' argument.
13673         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13674         (pcre_special): New constant.
13675         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13676         New functions.
13677         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13678         'const struct regex_quote_spec *' argument.
13679         * modules/regex-quote (Depends-on): Add stdbool.
13680         * tests/test-regex-quote.c (check): Update for new API. Add test for
13681         anchored results.
13682         * NEWS: Mention the API change.
13683         Reported by Reuben Thomas and Eric Blake.
13684
13685 2011-03-06  Bruno Haible  <bruno@clisp.org>
13686
13687         regex-quote: Fix creation of POSIX extended regular expressions.
13688         * lib/regex-quote.c (ere_special): Add grouping and alternation
13689         operators.
13690
13691 2011-03-05  Bruno Haible  <bruno@clisp.org>
13692
13693         doc: Improve doc regarding autopoint vs. gnulib.
13694         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13695         disable autopoint while running autoreconf.
13696         Suggested by Ralf Wildenhues.
13697
13698 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13699
13700         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13701         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13702
13703 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13704
13705         parse-duration: remove xalloc.h dependency
13706         * lib/parse-duration.c (parse_period): handle NULL return from
13707         strdup instead of calling xstrdup().
13708         * modules/parse-duration: remove "xalloc" dependency
13709
13710 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13711
13712         bootstrap: honor m4_base when running aclocal
13713         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13714
13715 2011-03-02  Jim Meyering  <meyering@redhat.com>
13716
13717         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13718         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13719         on request from Matt Booth.
13720
13721 2011-03-01  Eric Blake  <eblake@redhat.com>
13722
13723         test-link: work on Hurd
13724         * tests/test-link.h (test_link): Hurd rejects linking directories
13725         with EISDIR instead of the POSIX-mandated EPERM.
13726
13727 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13728
13729         stdio: simplify by moving files to printf-posix, sigpipe
13730         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13731         since this symbol is needed only if printf is replaced.
13732         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13733         Require gl_ASM_SYMBOL_PREFIX.
13734         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13735         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13736         (Depends-on): Add 'raise'.
13737         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13738         * modules/stdio (Files): Remove lib/stdio-write.c,
13739         m4/asm-underscore.m4.
13740         (Depends-on): Remove 'raise'.
13741
13742         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13743         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13744         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13745         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13746
13747 2011-02-28  Bruno Haible  <bruno@clisp.org>
13748
13749         localcharset: Assume ANSI C behaviour of free().
13750         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13751         calling free().
13752         Suggested by Simon Josefsson <simon@josefsson.org>.
13753
13754 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13755             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13756             Bruno Haible  <bruno@clisp.org>  (tiny change)
13757
13758         On Cygwin, use /proc file system instead of win32 API.
13759         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13760         Win32 file names.
13761         (DllMain): Simplify by removing Cygwin specific code.
13762         (find_shared_library_fullname): Use Linux specific implementation also
13763         for Cygwin.
13764         (get_shared_library_fullname): Update accordingly.
13765         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13766         Win32 file names.
13767         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13768         Cygwin specific code.
13769
13770 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13771             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13772
13773         Fix OpenMP flag detection for various Fortran compilers.
13774         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13775         OpenMP-conditional compilation construct, to force compile
13776         failure with missing OpenMP flag.
13777         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13778
13779 2011-02-25  Eric Blake  <eblake@redhat.com>
13780
13781         strstr: expand test coverage
13782         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13783         compilation.
13784         * tests/test-memmem.c (main): Duplicate tests.
13785         * tests/test-strcasestr.c (main): Likewise.
13786         * tests/test-c-strcasestr.c (main): Likewise.
13787
13788 2011-02-25  Jim Meyering  <meyering@redhat.com>
13789
13790         maint.mk: detect missing-NL-at-EOF, too
13791         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13792         it also detects when a file lacks a newline at EOF.
13793         (require_exactly_one_NL_at_EOF_): Renamed from
13794         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13795         since people may well have .x-sc_... file names tied to the
13796         existing name.  Suggested by Eric Blake.
13797
13798 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13799
13800         dirname: move m4/dos.m4 functionality into lib/dosname.h
13801
13802         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13803         extracts symbols from it, puts them into config.h; but it's much
13804         easier to use the symbols directly.  filename.h already does this,
13805         but it disagrees with dos.m4 in some respects.  This patch
13806         introduces a different include file dosname.h that packages up
13807         dos.m4, and then later we can work on merging filename.h and
13808         dosname.h.  Applications that need only the easy-to-configure
13809         symbols should consider including dosname.h rather than dirname.h.
13810         * NEWS: Mention incompatible changes.
13811         * m4/dos.m4: Remove.
13812         * lib/dosname.h, modules/dosname: New files.
13813         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13814         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13815         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13816         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13817         Include dosname.h, not dirname.h.
13818         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13819         Include dosname.h, for definitions of symbols like ISSLASH
13820         that used to be in config.h.
13821         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13822         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13823         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13824         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13825         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13826         * modules/rmdir (Files): Likewise.
13827         * modules/stat (Files): Likewise.
13828         * modules/unlink (Files): Likewise.
13829         * modules/dirname-lgpl (Depends-on): Add dosname.
13830         * modules/lstat (Depends-on): Likewise.
13831         * modules/openat (Depends-on): Likewise.
13832         * modules/rmdir (Depends-on): Likewise.
13833         * modules/savewd (Depends-on): Likewise.
13834         * modules/stat (Depends-on): Likewise.
13835         * modules/unlink (Depends-on): Likewise.
13836         * modules/openat (Depends-on): Remove dirname-lgpl.
13837         * modules/savewd (Depends-on): Likewise.
13838         * tests/test-dirname.c: Do not use removed symbols like
13839         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13840         the remaining symbols, e.g., ISSLASH ('\\').
13841
13842 2011-02-25  Eric Blake  <eblake@redhat.com>
13843
13844         strstr: revert patches that introduced bug and pessimization
13845         * lib/str-two-way.h: Add another reference.
13846         (two_way_short_needle, two_way_long_needle): Revert changes from
13847         2011-02-24; they pessimize search speed.
13848         (critical_factorization): Partially revert changes from
13849         2010-06-22; they violate the requirement that the left half of the
13850         needle be smaller than the period of the needle.
13851
13852 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13853
13854         filenamecat: remove unnecessary dependency on dirname-lgpl
13855         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13856         is no direct dependency, just an indirect one via filenamecat-lgpl.
13857
13858         remove: remove unnecessary use of m4/dos.m4
13859         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13860         * modules/remove (FILES): Remove m4/dos.m4.
13861
13862         * lib/openat-proc.c: Don't include dirname.h; not needed.
13863
13864         backupfile: remove unnecessary use of m4/dos.m4
13865         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13866         of its symbols are used by the backupfile code.  backupfile.c does
13867         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13868         for the rare case of programs that want all their backup file
13869         names to live within 8+3 limits, and dos.m4 doesn't address that.
13870         * modules/backupfile (Files): Remove m4/dos.m4.
13871
13872 2011-02-24  Jim Meyering  <meyering@redhat.com>
13873
13874         strstr: fix a bug whereby strstr would mistakenly return NULL
13875         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13876         in period calculation.
13877         (two_way_long_needle): Likewise.
13878         The original problem was reported by Mike Stump in
13879         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13880         Ralf Wildenhues provided the short needle and haystack.
13881         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13882         Add a more involved test to trigger the bug in two_way_long_needle.
13883
13884 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13885
13886         gnulib-tool: remove use of bold display in help screen
13887         * gnulib-tool (func_usage): Do not use bold display anymore in the
13888         help screen.  That was just meant to be a temporary emphasis for a
13889         backward-incompatible change.
13890
13891 2011-02-23  Bruno Haible  <bruno@clisp.org>
13892
13893         Fix misindentation of preprocessor directives.
13894         * lib/argp-namefrob.h: Reindent preprocessor directives.
13895         * lib/getopt_int.h (struct _getopt_data): Likewise.
13896         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13897         * lib/vasnprintf.c (decode_long_double): Likewise.
13898         * tests/test-argmatch.c: Insert blank lines, for clarity.
13899         * tests/test-exclude.c: Likewise.
13900
13901 2011-02-22  Bruno Haible  <bruno@clisp.org>
13902
13903         ioctl: Fix for MacOS X in 64-bit mode.
13904         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13905         value.
13906         Suggested by Eric Blake.
13907         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13908
13909 2011-02-22  Jim Meyering  <meyering@redhat.com>
13910
13911         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13912         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13913         in lib/.
13914
13915 2011-02-22  Eric Blake  <eblake@redhat.com>
13916
13917         maint: avoid any CDPATH issue
13918         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13919
13920         maint: adjust cpp indentation for my modules, as well
13921         * Makefile (sc_cpp_indent_check): Add my name.
13922         * lib/fbufmode.c: Filter through cppi.
13923         * lib/fpurge.c: Likewise.
13924         * lib/freadable.c: Likewise.
13925         * lib/freading.c: Likewise.
13926         * lib/fwritable.c: Likewise.
13927         * lib/fwriting.c: Likewise.
13928         * lib/sigaction.c: Likewise.
13929
13930 2011-02-22  Jim Meyering  <meyering@redhat.com>
13931
13932         maint: adjust cpp indentation to reflect nesting depth
13933         I.e., in a block of code that begins with an unnested "#if",
13934         put one space between the "#" in column 1 and following token.
13935         For example,
13936         -#include <sys/vfs.h>
13937         +# include <sys/vfs.h>
13938         Do this only in .c files that are part of a module I maintain.
13939         * lib/linkat.c: Filter through cppi.
13940         * lib/nanosleep.c: Likewise.
13941         * lib/openat.c: Likewise.
13942         * lib/openat-die.c: Likewise.
13943         * lib/dup3.c: Likewise.
13944         * lib/fchownat.c: Likewise.
13945         * lib/flock.c: Likewise.
13946         * lib/fsync.c: Likewise.
13947         * lib/fts.c: Likewise.
13948         * lib/getpass.c: Likewise.
13949         * lib/gettimeofday.c: Likewise.
13950         * lib/userspec.c: Likewise.
13951         * Makefile (sc_cpp_indent_check): New rule, to check this.
13952
13953 2011-02-22  Bruno Haible  <bruno@clisp.org>
13954
13955         New module 'wctomb'.
13956         * lib/stdlib.in.h (wctomb): New declaration.
13957         * lib/wctomb.c: New file.
13958         * lib/wctomb-impl.h: New file.
13959         * m4/wctomb.m4: New file.
13960         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
13961         REPLACE_WCTOMB.
13962         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
13963         REPLACE_WCTOMB.
13964         * modules/wctomb: New file.
13965         * tests/test-stdlib-c++.cc: Test signature of wctomb.
13966         * doc/posix-functions/wctomb.texi: Mention the new module.
13967         * modules/wctob (Depends-on): Add wctomb.
13968
13969 2011-02-22  Bruno Haible  <bruno@clisp.org>
13970
13971         New module 'mbtowc'.
13972         * lib/stdlib.in.h (mbtowc): New declaration.
13973         * lib/mbtowc.c: New file.
13974         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
13975         * m4/mbtowc.m4: New file.
13976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
13977         REPLACE_MBTOWC.
13978         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
13979         REPLACE_MBTOWC.
13980         * modules/mbtowc: New file.
13981         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
13982         * doc/posix-functions/mbtowc.texi: Mention the new module.
13983         * modules/btowc (Depends-on): Add mbtowc.
13984
13985 2011-02-22  Bruno Haible  <bruno@clisp.org>
13986
13987         wcrtomb: Add more tests for native Windows platforms.
13988         * tests/test-wcrtomb-w32-1.sh: New file.
13989         * tests/test-wcrtomb-w32-2.sh: New file.
13990         * tests/test-wcrtomb-w32-3.sh: New file.
13991         * tests/test-wcrtomb-w32-4.sh: New file.
13992         * tests/test-wcrtomb-w32-5.sh: New file.
13993         * tests/test-wcrtomb-w32.c: New file.
13994         * modules/wcrtomb-tests (Files): Add them.
13995         (Makefile.am): Arrange to run these tests.
13996         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
13997         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
13998
13999 2011-02-20  Bruno Haible  <bruno@clisp.org>
14000
14001         wcrtomb: Enhance test.
14002         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14003
14004 2011-02-20  Bruno Haible  <bruno@clisp.org>
14005
14006         mbrtowc: Tiny optimization.
14007         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14008
14009 2011-02-20  Jim Meyering  <meyering@redhat.com>
14010
14011         test-exclude.c: remove unmatched #endif
14012         * tests/test-exclude.c: Remove stray #endif, left over from
14013         the change of a week ago.
14014
14015 2011-02-19  Jim Meyering  <meyering@redhat.com>
14016
14017         git-version-gen: skip "-dirty" check when appropriate
14018         * build-aux/git-version-gen: Don't run any git commands when the
14019         version string comes from .tarball-version.  Prior to this, we
14020         would run git update-index --refresh even from a just-unpacked
14021         tarball directory, and that could affect a .git/ directory in a
14022         parent of the build directory.  Reported by Mike Frysinger.
14023
14024 2011-02-19  Bruno Haible  <bruno@clisp.org>
14025
14026         unictype/property-byname: Reduce the size of the 'data' segment.
14027         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14028
14029 2011-02-19  Bruno Haible  <bruno@clisp.org>
14030
14031         unictype/scripts: Reduce the size of the 'data' segment.
14032         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14033         '%pic'.
14034         * lib/unictype/scripts_byname.gperf: Regenerated.
14035
14036 2011-02-19  Bruno Haible  <bruno@clisp.org>
14037
14038         stdint: Update documentation.
14039         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14040
14041 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14042
14043         stdint: omit redundant check for wchar.h
14044         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14045         always tests whether wchar.h exists, so remove the now-redundant test.
14046
14047 2011-02-18  Bruno Haible  <bruno@clisp.org>
14048
14049         stdint: Cut dependency to module 'wchar'.
14050         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14051         include the necessary prerequisites.
14052         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14053         * modules/stdint (Depends-on): Remove wchar.
14054         (Makefile.am): Substitute HAVE_WCHAR_H.
14055         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14056
14057 2011-02-18  Eric Blake  <eblake@redhat.com>
14058
14059         longlong: skip, rather than fail, on cross-compilation
14060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14061         when cross-compiling; regression from 2011-02-16.
14062
14063 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14064
14065         * NEWS: Mention 2011-02-08 change to stdlib.
14066
14067 2011-02-17  Bruno Haible  <bruno@clisp.org>
14068
14069         getloadavg: Add comments about platforms.
14070         * m4/getloadavg.m4: Add comment.
14071         * lib/getloadavg.c: Likewise.
14072
14073 2011-02-17  Bruno Haible  <bruno@clisp.org>
14074
14075         getloadavg: Fix link error on Solaris 2.6.
14076         * modules/getloadavg (Link): New section.
14077         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14078         linking test-getloadavg.
14079         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14080         getloadavg.
14081
14082 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14083
14084         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14085         It was 'int', but this doesn't match the IRIX 6.5 manual.
14086         Suggested by Bruno Haible in
14087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14088
14089 2011-02-17  Bruno Haible  <bruno@clisp.org>
14090
14091         havelib: Fix comments.
14092         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14093         change.
14094
14095 2011-02-17  Bruno Haible  <bruno@clisp.org>
14096
14097         havelib: Update config.rpath.
14098         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14099
14100 2011-02-17  Bruno Haible  <bruno@clisp.org>
14101
14102         getloadavg test: Add some plausibility checks.
14103         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14104         is improbable.
14105
14106 2011-02-16  Eric Blake  <eblake@redhat.com>
14107
14108         maintainer-makefile: make syntax-check a no-op from tarballs
14109         * top/maint.mk (no-vc-detected): New rule.
14110         (local-checks-available): Use it to avoid hanging if someone tries
14111         'make syntax-check' from a tarball.  Also append to any non-syntax
14112         checks already defined in cfg.mk.
14113
14114 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14115
14116         longlong: tune, particularly for common case of c99
14117
14118         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14119         or running anything if c99, or if unsigned long long int does not
14120         work.  In either case, we know the answer without further tests.
14121         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14122         it at most once, and use its results for both long long int and
14123         unsigned long long int.  This is more likely to be efficient in
14124         the common case where the program wants to check for both long
14125         long int and unsigned long long int.
14126         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14127         since the answer is already known.
14128
14129 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14130
14131         getloadavg: set errno
14132         * lib/getloadavg.c: Set errno when returning -1.  If no other
14133         error number looks appropriate, set it to ENOSYS if the getloadavg
14134         looks like it can't possibly ever work, ENOTSUP otherwise.
14135         Suggested by Bruno Haible in
14136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14137
14138         getloadavg: trim unused parts and speed up 'configure'
14139         * NEWS: Document this.
14140         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14141         always compiled if getloadavg is absent.
14142         Move test code to ...
14143         * tests/test-getloadavg.c: New file, containing previous
14144         contents of test from lib/getloadavg.c.  It also contains
14145         suggestions by Bruno Haible in
14146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14147         * modules/getloadavg-tests: New file.
14148         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14149         Do tests in the same order as they're needed for getloadavg.c.
14150         Omit setgid-related tests that generate symbols KMEM_GROUP,
14151         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14152         Do only the tests that are needed to see whether the system has
14153         getloadavg, moving the other tests into ...
14154         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14155         NLIST_NAME_UNION; nobody should be using it.  Do not define
14156         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14157         relevant, as the user of this module shouldn't care how getloadavg
14158         is implemented.
14159
14160         getloadavg: omit unused var
14161         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14162
14163 2011-02-15  Jim Meyering  <meyering@redhat.com>
14164
14165         doc: update users.txt
14166         * users.txt: Update iwhd's URL.
14167
14168 2011-02-13  Bruno Haible  <bruno@clisp.org>
14169
14170         Consistent macro naming for macros that use GCC __attribute__.
14171         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14172         _ATTRIBUTE_NONNULL_.
14173         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14174         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14175         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14176         ATTRIBUTE_DEPRECATED.
14177         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14178         ATTRIBUTE_NORETURN.
14179         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14180         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14181         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14182         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14183         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14184         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14185         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14186         ATTRIBUTE_SENTINEL.
14187         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14188         ATTRIBUTE_RETURN_CHECK.
14189         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14190         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14191         ATTRIBUTE_NORETURN.
14192         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14193         Reported by Paul Eggert.
14194
14195 2011-02-13  Bruno Haible  <bruno@clisp.org>
14196
14197         Don't interfere with a program's definition of __attribute__.
14198         * lib/argp.h (__attribute__): Remove definition.
14199         (_GL_ATTRIBUTE_FORMAT): New macro.
14200         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14201         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14202         (_GL_ATTRIBUTE_FORMAT): New macro.
14203         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14204         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14205         GCC 3 or newer.
14206         * lib/error.h (__attribute__): Remove definition.
14207         (_GL_ATTRIBUTE_FORMAT): New macro.
14208         (error, error_at_line): Use it.
14209         * lib/hash.h (__attribute__): Remove definition.
14210         (ATTRIBUTE_WUR): Update definition. Define always.
14211         * lib/openat.h (__attribute__): Remove definition.
14212         (ATTRIBUTE_NORETURN): Update definition. Define always.
14213         * lib/sigpipe-die.h (__attribute__): Remove definition.
14214         (ATTRIBUTE_NORETURN): Update definition. Define always.
14215         * lib/vasnprintf.h (__attribute__): Remove definition.
14216         (_GL_ATTRIBUTE_FORMAT): New macro.
14217         (asnprintf, vasnprintf): Use it.
14218         * lib/xalloc.h (__attribute__): Remove definition.
14219         (ATTRIBUTE_NORETURN): Update definition. Define always.
14220         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14221         * lib/xmemdup0.h (__attribute__): Remove definition.
14222         (ATTRIBUTE_NORETURN): Update definition. Define always.
14223         * lib/xprintf.h (__attribute__): Remove definition.
14224         (_GL_ATTRIBUTE_FORMAT): New macro.
14225         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14226         * lib/xstrtol.h (__attribute__): Remove definition.
14227         (ATTRIBUTE_NORETURN): Update definition. Define always.
14228         * lib/xvasprintf.h (__attribute__): Remove definition.
14229         (_GL_ATTRIBUTE_FORMAT): New macro.
14230         (xasprintf, xvasprintf): Use it.
14231         * tests/test-argmatch.c (__attribute__): Remove definition.
14232         (ATTRIBUTE_NORETURN): Update definition. Define always.
14233         * tests/test-exclude.c (__attribute__): Remove definition.
14234         (ATTRIBUTE_NORETURN): Update definition. Define always.
14235         Reported by Paul Eggert.
14236
14237 2011-02-13  Bruno Haible  <bruno@clisp.org>
14238
14239         mbrtowc: Add more tests for native Windows platforms.
14240         * tests/test-mbrtowc-w32-1.sh: New file.
14241         * tests/test-mbrtowc-w32-2.sh: New file.
14242         * tests/test-mbrtowc-w32-3.sh: New file.
14243         * tests/test-mbrtowc-w32-4.sh: New file.
14244         * tests/test-mbrtowc-w32-5.sh: New file.
14245         * tests/test-mbrtowc-w32.c: New file.
14246         * modules/mbrtowc-tests (Files): Add them.
14247         (Makefile.am): Arrange to run these tests.
14248         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14249         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14250
14251 2011-02-13  Bruno Haible  <bruno@clisp.org>
14252
14253         mbrtowc: Work around native Windows bug.
14254         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14255         guess when no suitable locale for testing was found.
14256         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14257
14258 2011-02-13  Bruno Haible  <bruno@clisp.org>
14259
14260         mbsinit: Work around mingw bug.
14261         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14262         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14263         Windows.
14264         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14265
14266 2011-02-13  Bruno Haible  <bruno@clisp.org>
14267
14268         mbsinit: Don't crash for a NULL argument.
14269         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14270         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14271
14272 2011-02-13  Bruno Haible  <bruno@clisp.org>
14273
14274         Don't interfere with a program's definition of __attribute__.
14275         * lib/stdio.in.h (__attribute__): Remove definition.
14276         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14277         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14278         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14279         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14280         * lib/string.in.h (__attribute__): Remove definition.
14281         Reported by Paul Eggert.
14282
14283 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14284
14285         stdlib: don't get in the way of non-GCC __attribute__
14286         See thread starting at
14287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14288         Revert previous stdlib change, installing the following instead:
14289         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14290         to get in the way of a non-GCC compiler that supports __attribute__.
14291         (_GL_ATTRIBUTE_RETURN): New macro.
14292         (_Exit): Use it instead of __attribute__.
14293
14294 2011-02-12  Bruno Haible  <bruno@clisp.org>
14295
14296         quotearg test: Avoid test failure on mingw.
14297         * tests/test-quotearg.sh: Convert the locale identifier from native
14298         Windows syntax to Unix syntax.
14299
14300 2011-02-12  Bruno Haible  <bruno@clisp.org>
14301
14302         setlocale: Prefer gnulib's override over libintl's override.
14303         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14304         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14305         GNULIB_defined_setlocale is set.
14306
14307 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14308
14309         stdlib: support non-GCC __attribute__
14310
14311         Fix a serious and tricky problem encountered when attempting to
14312         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14313         5.5, but it crashed due to memory corruption on Solaris 10 with
14314         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14315         bits that are otherwise zero.  This tagging is optional inside
14316         Emacs but is preferred and is used when __attribute__ ((__aligned
14317         (8))) works, as it does with both recent-enough GCC and with Sun C
14318         5.11.  However, Sun C 5.11 is not GCC and does not #define
14319         __GNUC__ and __GNUC_MINOR__.
14320
14321         When I added the getloadavg module to Emacs, it brought in
14322         stdlib.in.h, which contained this fragment:
14323
14324            #ifndef __attribute__
14325            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14326            #  define __attribute__(Spec)   /* empty */
14327            # endif
14328            #endif
14329
14330         When files that include <stdlib.h> were compiled with Sun C 5.11,
14331         the above code disabled __attribute__ ((__aligned (8))), which
14332         caused variables to not be properly aligned, which eventually led
14333         to the pointer corruption mentioned above.  (This was a bit hard
14334         to diagnose, unfortunately.)
14335
14336         Several "#define __attribute__(X) /* empty */" code snippets need
14337         to be eradicated from Gnulib to work with non-GCC compilers that
14338         support __attribute__.  The Autoconf way to do this is to test for
14339         each kind of attribute that we want support for, and selectively
14340         enable that in source code.
14341
14342         Fix this problem just for stdlib.h, by adding a test for the
14343         __noreturn__ attribute, and change stdlib.in.h to use that test
14344         when needed.  This technique can be easily generalized to the
14345         other *.in.h files and attributes, and a similar technique can be
14346         used for *.h and *.c files.  This patch is enough to solve the
14347         problem for Emacs + getloadavg, and I thought I'd publish it for
14348         feedback before undertaking further, similar fixes in other
14349         modules.
14350
14351         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14352         because it's not needed for stdlib.h.  It merely substitutes the
14353         value directly into stdlib.h.  We may well need to #define it, or
14354         similar symbols, for other modules, but it's nice to also have an
14355         option to not #define it for applications like Emacs that do not
14356         need it.
14357
14358         * lib/stdlib.in.h (__attribute__): Do not #define.
14359         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14360         be defined only if the _Exit module is also used.
14361         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14363         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14364         platforms.
14365         * modules/_Exit (Files): Add m4/attribute.m4.
14366         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14367         * m4/attribute.m4: New file.
14368
14369 2011-02-12  Bruno Haible  <bruno@clisp.org>
14370
14371         wcsrtombs: Work around bug on native Windows.
14372         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14373         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14374         instead of len.
14375         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14376
14377 2011-02-12  Bruno Haible  <bruno@clisp.org>
14378
14379         mbsrtowcs: Work around bug on native Windows.
14380         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14381         against mingw bug.
14382         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14383
14384 2011-02-12  Bruno Haible  <bruno@clisp.org>
14385
14386         Avoid setlocale bugs in tests.
14387         * modules/btowc (Dependencies): Add setlocale.
14388         * modules/c-strcase (Dependencies): Likewise.
14389         * modules/mbmemcasecmp (Dependencies): Likewise.
14390         * modules/mbmemcasecoll (Dependencies): Likewise.
14391         * modules/mbrtowc (Dependencies): Likewise.
14392         * modules/mbscasecmp (Dependencies): Likewise.
14393         * modules/mbscasestr (Dependencies): Likewise.
14394         * modules/mbschr (Dependencies): Likewise.
14395         * modules/mbscspn (Dependencies): Likewise.
14396         * modules/mbsinit (Dependencies): Likewise.
14397         * modules/mbsncasecmp (Dependencies): Likewise.
14398         * modules/mbsnrtowcs (Dependencies): Likewise.
14399         * modules/mbspbrk (Dependencies): Likewise.
14400         * modules/mbspcasecmp (Dependencies): Likewise.
14401         * modules/mbsrchr (Dependencies): Likewise.
14402         * modules/mbsrtowcs (Dependencies): Likewise.
14403         * modules/mbsspn (Dependencies): Likewise.
14404         * modules/mbsstr (Dependencies): Likewise.
14405         * modules/nl_langinfo (Dependencies): Likewise.
14406         * modules/quotearg (Dependencies): Likewise.
14407         * modules/unicase/locale-language (Dependencies): Likewise.
14408         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14409         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14410         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14411         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14412         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14413         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14414         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14415         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14416         * modules/vasnprintf-posix (Dependencies): Likewise.
14417         * modules/wcrtomb (Dependencies): Likewise.
14418         * modules/wcsnrtombs (Dependencies): Likewise.
14419         * modules/wcsrtombs (Dependencies): Likewise.
14420
14421 2011-02-12  Bruno Haible  <bruno@clisp.org>
14422
14423         setlocale: Workaround native Windows bug.
14424         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14425         succeeds but sets LC_CTYPE to "C", report a failure.
14426         * tests/test-setlocale2.sh: New file.
14427         * tests/test-setlocale2.c: New file.
14428         * modules/setlocale-tests (Files): Add the new files.
14429         (Makefile.am): Enable test-setlocale2.sh test.
14430         * doc/posix-functions/setlocale.texi: Mention workaround.
14431
14432 2011-02-11  Bruno Haible  <bruno@clisp.org>
14433
14434         Tests for module 'setlocale'.
14435         * modules/setlocale-tests: New file.
14436         * tests/test-setlocale1.sh: New file.
14437         * tests/test-setlocale1.c: New file.
14438
14439         New module 'setlocale'.
14440         * lib/locale.in.h (setlocale): New declaration.
14441         * lib/setlocale.c: New file, based on
14442         gettext/gettext-runtime/intl/setlocale.c.
14443         * m4/setlocale.m4: New file.
14444         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14445         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14446         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14447         REPLACE_SETLOCALE.
14448         * modules/setlocale: New file.
14449         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14450         * doc/posix-functions/setlocale.texi: Mention the new module.
14451
14452 2011-02-11  Bruno Haible  <bruno@clisp.org>
14453
14454         Prepare for locale dependent tests on mingw.
14455         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14456         because it has the wrong locale encoding.
14457         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14458         French_France.1252 instead of "fr".
14459         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14460         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14461         because it has the wrong locale encoding.
14462         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14463         native Windows, try Turkish_Turkey.65001.
14464         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14465         Chinese_China.54936.
14466
14467         Prepare for locale dependent tests on mingw.
14468         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14469         differently.
14470         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14471         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14472         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14473         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14474
14475 2011-02-11  Eric Blake  <eblake@redhat.com>
14476
14477         strptime: avoid compiler warnings
14478         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14479         compiler warnings about dead code.
14480         Reported by Daniel P. Berrange.
14481
14482 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14483
14484         doc: update users.txt
14485         * users.txt: Add rcs.
14486
14487 2011-02-10  John W. Eaton  <jwe@gnu.org>
14488
14489         doc: update users.txt
14490         * users.txt: Add octave.
14491
14492 2011-02-10  Jim Meyering  <meyering@redhat.com>
14493
14494         doc: update users.txt
14495         * users.txt: Add iwhd.
14496
14497 2011-02-09  Bruno Haible  <bruno@clisp.org>
14498
14499         gnulib-tool: Make copyright notice adjustment more robust.
14500         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14501         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14502         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14503         License".
14504         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14505
14506 2011-02-06  Bruno Haible  <bruno@clisp.org>
14507
14508         New module 'towctrans'.
14509         * modules/towctrans: New file.
14510         * lib/wctype.in.h (towctrans): New declaration.
14511         * lib/towctrans.c: New file.
14512         * lib/towctrans-impl.h: New file.
14513         * m4/towctrans.m4: New file.
14514         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14515         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14516         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14517         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14518         * doc/posix-functions/towctrans.texi: Mention the new module.
14519
14520 2011-02-06  Bruno Haible  <bruno@clisp.org>
14521
14522         New module 'wctrans'.
14523         * modules/wctrans: New file.
14524         * lib/wctype.in.h (wctrans): New declaration.
14525         * lib/wctrans.c: New file.
14526         * lib/wctrans-impl.h: New file.
14527         * m4/wctrans.m4: New file.
14528         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14529         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14530         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14531         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14532         * doc/posix-functions/wctrans.texi: Mention the new module.
14533
14534 2011-02-06  Bruno Haible  <bruno@clisp.org>
14535
14536         New module 'iswctype'.
14537         * modules/iswctype: New file.
14538         * lib/wctype.in.h (iswctype): New declaration.
14539         * lib/iswctype.c: New file.
14540         * lib/iswctype-impl.h: New file.
14541         * m4/iswctype.m4: New file.
14542         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14543         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14544         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14545         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14546         * doc/posix-functions/iswctype.texi: Mention the new module and the
14547         HP-UX 11.00 problem.
14548
14549 2011-02-06  Bruno Haible  <bruno@clisp.org>
14550
14551         New module 'wctype'.
14552         * modules/wctype: Change to represent the wctype() substitute.
14553         * lib/wctype.in.h (wctype): New declaration.
14554         * lib/wctype.c: New file.
14555         * lib/wctype-impl.h: New file.
14556         * m4/wctype.m4: New file.
14557         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14558         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14559         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14560         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14561         * doc/posix-functions/wctype.texi: Mention the new module and the
14562         HP-UX 11.00 problem.
14563
14564 2011-02-06  Bruno Haible  <bruno@clisp.org>
14565
14566         wctype-h: Ensure wctype_t and wctrans_t are defined.
14567         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14568         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14569         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14570         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14571         HAVE_WCTRANS_T.
14572         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14573
14574 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14575
14576         flock: fix license typo
14577
14578         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14579         omitted.
14580
14581 2011-02-08  Bruno Haible  <bruno@clisp.org>
14582
14583         Split large sed scripts, for HP-UX sed.
14584         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14585         to avoid HP-UX limit of 99 commands, in the near future.
14586         * modules/stdlib (Makefile.am): Likewise.
14587         * modules/unistd (Makefile.am): Likewise.
14588         * modules/wchar (Makefile.am): Likewise.
14589         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14590         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14591         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14592
14593 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14594             Bruno Haible  <bruno@clisp.org>
14595
14596         stdlib: improve random_r modularization
14597         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14598         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14599         you also need the random_r module to get this material right.
14600         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14601         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14602         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14603
14604 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14605
14606         stdlib: don't depend on stdint
14607         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14608         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14609         be independent of whether stdint.h is needed.
14610         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14611         here, instead of ...
14612         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14613         struct random_data should be using the random_r module, not just
14614         the stdlib module (which wouldn't make sense: what package needs
14615         just struct random_data without also needing random_r?).
14616         * modules/stdlib (Depends-on): Remove stdint.
14617
14618         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14619         See the thread rooted at
14620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14621         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14622         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14623         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14624         __VMS)); previously it was always included (via fcntl--.h).
14625         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14626         hand; this is good enough for load averages.  Also, do not use
14627         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14628         flags directly if available and don't bother otherwise.  (Packages
14629         that need the extra reliability should use the modules that define
14630         these flags on older platforms that lack them.)
14631         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14632         fcntl-safer.
14633
14634 2011-02-08  Jim Meyering  <meyering@redhat.com>
14635
14636         di-set.h, ino-map.h: add multiple-inclusion guard
14637         Technically, the guard is required only for ino-map.h, due to its
14638         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14639         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14640         * lib/ino-map.h: Likewise.
14641
14642 2011-02-06  Bruno Haible  <bruno@clisp.org>
14643
14644         iswblank: Ensure declaration on glibc systems.
14645         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14646         * modules/iswblank (Dependencies): Add 'extensions'.
14647         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14648
14649 2011-02-06  Bruno Haible  <bruno@clisp.org>
14650
14651         New module 'iswblank'.
14652         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14653         * modules/iswblank: New file.
14654         * modules/wctype-h (Files): Remove lib/iswblank.c.
14655         (Makefile.am): Substitute GNULIB_ISWBLANK.
14656         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14657         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14658         (gl_WCTYPE_H_DEFAULTS): New macro.
14659         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14660         * modules/iswblank-tests: New file.
14661         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14662         * tests/test-wctype-h.c (main): Remove iswblank tests.
14663         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14664         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14665         of 'wctype-h'.
14666         * NEWS: Mention the change.
14667         * modules/mbchar (Depends-on): Add iswblank.
14668
14669 2011-02-08  Bruno Haible  <bruno@clisp.org>
14670
14671         di-set tests: Refactor.
14672         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14673         unnecessary includes.
14674         (ASSERT): Remove macro.
14675         (main): Make C90 compliant by avoiding variable declaration after
14676         statement.
14677         * modules/di-set-tests (Files): Add tests/macros.h.
14678
14679 2011-02-08  Bruno Haible  <bruno@clisp.org>
14680
14681         ino-map tests: Refactor.
14682         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14683         unnecessary includes.
14684         (ASSERT): Remove macro.
14685         (main): Make C90 compliant by avoiding variable declaration after
14686         statement.
14687         * modules/ino-map-tests (Files): Add tests/macros.h.
14688
14689 2011-02-08  Jim Meyering  <meyering@redhat.com>
14690
14691         di-set: add "const" to a cast
14692         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14693         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14694
14695 2011-02-06  Bruno Haible  <bruno@clisp.org>
14696
14697         Rename module 'wctype' to 'wctype-h'.
14698         * modules/wctype-h: Renamed from modules/wctype.
14699         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14700         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14701         (Files, Depends-on, Makefile.am): Update.
14702         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14703         (Files, Makefile.am): Update.
14704         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14705         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14706         * doc/posix-headers/wctype.texi: Update.
14707         * doc/posix-functions/iswalnum.texi: Update.
14708         * doc/posix-functions/iswalpha.texi: Update.
14709         * doc/posix-functions/iswblank.texi: Update.
14710         * doc/posix-functions/iswcntrl.texi: Update.
14711         * doc/posix-functions/iswdigit.texi: Update.
14712         * doc/posix-functions/iswgraph.texi: Update.
14713         * doc/posix-functions/iswlower.texi: Update.
14714         * doc/posix-functions/iswprint.texi: Update.
14715         * doc/posix-functions/iswpunct.texi: Update.
14716         * doc/posix-functions/iswspace.texi: Update.
14717         * doc/posix-functions/iswupper.texi: Update.
14718         * doc/posix-functions/iswxdigit.texi: Update.
14719         * doc/posix-functions/towlower.texi: Update.
14720         * doc/posix-functions/towupper.texi: Update.
14721         * NEWS: Mention the change.
14722         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14723         * modules/mbchar (Dependencies): Likewise.
14724         * modules/mbswidth (Dependencies): Likewise.
14725         * modules/quotearg (Dependencies): Likewise.
14726         * modules/regex (Dependencies): Likewise.
14727         * modules/wcscasecmp (Dependencies): Likewise.
14728         * modules/wcsncasecmp (Dependencies): Likewise.
14729         * modules/wcwidth (Dependencies): Likewise.
14730
14731 2011-02-06  Bruno Haible  <bruno@clisp.org>
14732
14733         New module 'wcswidth'.
14734         * modules/wcswidth: New file.
14735         * lib/wchar.in.h (wcswidth): New declaration.
14736         * lib/wcswidth.c: New file.
14737         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14738         * m4/wcswidth.m4: New file.
14739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14741         REPLACE_WCSWIDTH.
14742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14743         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14744         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14745         * doc/posix-functions/wcswidth.texi: Mention the new module.
14746
14747 2011-02-06  Bruno Haible  <bruno@clisp.org>
14748
14749         New module 'wcstok'.
14750         * modules/wcstok: New file.
14751         * lib/wchar.in.h (wcstok): New declaration.
14752         * lib/wcstok.c: New file.
14753         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14754         * m4/wcstok.m4: New file.
14755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14757         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14758         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14759         * doc/posix-functions/wcstok.texi: Mention the new module.
14760
14761 2011-02-06  Bruno Haible  <bruno@clisp.org>
14762
14763         New module 'wcsstr'.
14764         * modules/wcsstr: New file.
14765         * lib/wchar.in.h (wcsstr): New declaration.
14766         * lib/wcsstr.c: New file.
14767         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14768         * m4/wcsstr.m4: New file.
14769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14772         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14773         * doc/posix-functions/wcsstr.texi: Mention the new module.
14774
14775 2011-02-06  Bruno Haible  <bruno@clisp.org>
14776
14777         New module 'wcspbrk'.
14778         * modules/wcspbrk: New file.
14779         * lib/wchar.in.h (wcspbrk): New declaration.
14780         * lib/wcspbrk.c: New file.
14781         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14782         * m4/wcspbrk.m4: New file.
14783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14785         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14786         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14787         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14788
14789 2011-02-06  Bruno Haible  <bruno@clisp.org>
14790
14791         New module 'wcsspn'.
14792         * modules/wcsspn: New file.
14793         * lib/wchar.in.h (wcsspn): New declaration.
14794         * lib/wcsspn.c: New file.
14795         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14796         * m4/wcsspn.m4: New file.
14797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14800         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14801         * doc/posix-functions/wcsspn.texi: Mention the new module.
14802
14803 2011-02-06  Bruno Haible  <bruno@clisp.org>
14804
14805         New module 'wcscspn'.
14806         * modules/wcscspn: New file.
14807         * lib/wchar.in.h (wcscspn): New declaration.
14808         * lib/wcscspn.c: New file.
14809         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14810         * m4/wcscspn.m4: New file.
14811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14814         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14815         * doc/posix-functions/wcscspn.texi: Mention the new module.
14816
14817 2011-02-06  Bruno Haible  <bruno@clisp.org>
14818
14819         New module 'wcsrchr'.
14820         * modules/wcsrchr: New file.
14821         * lib/wchar.in.h (wcsrchr): New declaration.
14822         * lib/wcsrchr.c: New file.
14823         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14824         * m4/wcsrchr.m4: New file.
14825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14828         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14829         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14830
14831 2011-02-06  Bruno Haible  <bruno@clisp.org>
14832
14833         New module 'wcschr'.
14834         * modules/wcschr: New file.
14835         * lib/wchar.in.h (wcschr): New declaration.
14836         * lib/wcschr.c: New file.
14837         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14838         * m4/wcschr.m4: New file.
14839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14841         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14842         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14843         * doc/posix-functions/wcschr.texi: Mention the new module.
14844
14845 2011-02-06  Bruno Haible  <bruno@clisp.org>
14846
14847         New module 'wcsdup'.
14848         * modules/wcsdup: New file.
14849         * lib/wchar.in.h (wcsdup): New declaration.
14850         * lib/wcsdup.c: New file.
14851         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14852         * m4/wcsdup.m4: New file.
14853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14856         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14857         * doc/posix-functions/wcsdup.texi: Mention the new module.
14858
14859 2011-02-06  Bruno Haible  <bruno@clisp.org>
14860
14861         New module 'wcsxfrm'.
14862         * modules/wcsxfrm: New file.
14863         * lib/wchar.in.h (wcsxfrm): New declaration.
14864         * lib/wcsxfrm.c: New file.
14865         * lib/wcsxfrm-impl.h: New file.
14866         * m4/wcsxfrm.m4: New file.
14867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14870         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14871         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14872
14873 2011-02-06  Bruno Haible  <bruno@clisp.org>
14874
14875         New module 'wcscoll'.
14876         * modules/wcscoll: New file.
14877         * lib/wchar.in.h (wcscoll): New declaration.
14878         * lib/wcscoll.c: New file.
14879         * lib/wcscoll-impl.h: New file.
14880         * m4/wcscoll.m4: New file.
14881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14884         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14885         * doc/posix-functions/wcscoll.texi: Mention the new module.
14886
14887 2011-02-06  Bruno Haible  <bruno@clisp.org>
14888
14889         New module 'wcsncasecmp'.
14890         * modules/wcsncasecmp: New file.
14891         * lib/wchar.in.h (wcsncasecmp): New declaration.
14892         * lib/wcsncasecmp.c: New file.
14893         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14894         * m4/wcsncasecmp.m4: New file.
14895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14898         HAVE_WCSNCASECMP.
14899         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14900         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14901
14902 2011-02-06  Bruno Haible  <bruno@clisp.org>
14903
14904         New module 'wcscasecmp'.
14905         * modules/wcscasecmp: New file.
14906         * lib/wchar.in.h (wcscasecmp): New declaration.
14907         * lib/wcscasecmp.c: New file.
14908         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14909         * m4/wcscasecmp.m4: New file.
14910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14912         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14913         HAVE_WCSCASECMP.
14914         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14915         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14916
14917 2011-02-05  Bruno Haible  <bruno@clisp.org>
14918
14919         New module 'wcsncmp'.
14920         * modules/wcsncmp: New file.
14921         * lib/wchar.in.h (wcsncmp): New declaration.
14922         * lib/wcsncmp.c: New file.
14923         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14924         * m4/wcsncmp.m4: New file.
14925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14928         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
14929         * doc/posix-functions/wcsncmp.texi: Mention the new module.
14930
14931 2011-02-05  Bruno Haible  <bruno@clisp.org>
14932
14933         New module 'wcscmp'.
14934         * modules/wcscmp: New file.
14935         * lib/wchar.in.h (wcscmp): New declaration.
14936         * lib/wcscmp.c: New file.
14937         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
14938         * m4/wcscmp.m4: New file.
14939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
14940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
14941         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
14942         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
14943         * doc/posix-functions/wcscmp.texi: Mention the new module.
14944
14945 2011-02-05  Bruno Haible  <bruno@clisp.org>
14946
14947         New module 'wcsncat'.
14948         * modules/wcsncat: New file.
14949         * lib/wchar.in.h (wcsncat): New declaration.
14950         * lib/wcsncat.c: New file.
14951         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
14952         * m4/wcsncat.m4: New file.
14953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
14954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
14955         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
14956         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
14957         * doc/posix-functions/wcsncat.texi: Mention the new module.
14958
14959 2011-02-05  Bruno Haible  <bruno@clisp.org>
14960
14961         New module 'wcscat'.
14962         * modules/wcscat: New file.
14963         * lib/wchar.in.h (wcscat): New declaration.
14964         * lib/wcscat.c: New file.
14965         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
14966         * m4/wcscat.m4: New file.
14967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
14968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
14969         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
14970         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
14971         * doc/posix-functions/wcscat.texi: Mention the new module.
14972
14973 2011-02-05  Bruno Haible  <bruno@clisp.org>
14974
14975         New module 'wcpncpy'.
14976         * modules/wcpncpy: New file.
14977         * lib/wchar.in.h (wcpncpy): New declaration.
14978         * lib/wcpncpy.c: New file.
14979         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
14980         * m4/wcpncpy.m4: New file.
14981         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
14982         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
14983         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
14984         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
14985         * doc/posix-functions/wcpncpy.texi: Mention the new module.
14986
14987 2011-02-05  Bruno Haible  <bruno@clisp.org>
14988
14989         New module 'wcsncpy'.
14990         * modules/wcsncpy: New file.
14991         * lib/wchar.in.h (wcsncpy): New declaration.
14992         * lib/wcsncpy.c: New file.
14993         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
14994         * m4/wcsncpy.m4: New file.
14995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
14996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
14997         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
14998         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
14999         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15000
15001 2011-02-05  Bruno Haible  <bruno@clisp.org>
15002
15003         New module 'wcpcpy'.
15004         * modules/wcpcpy: New file.
15005         * lib/wchar.in.h (wcpcpy): New declaration.
15006         * lib/wcpcpy.c: New file.
15007         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15008         * m4/wcpcpy.m4: New file.
15009         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15010         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15011         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15012         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15013         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15014
15015 2011-02-05  Bruno Haible  <bruno@clisp.org>
15016
15017         New module 'wcscpy'.
15018         * modules/wcscpy: New file.
15019         * lib/wchar.in.h (wcscpy): New declaration.
15020         * lib/wcscpy.c: New file.
15021         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15022         * m4/wcscpy.m4: New file.
15023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15025         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15026         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15027         * doc/posix-functions/wcscpy.texi: Mention the new module.
15028
15029 2011-02-05  Bruno Haible  <bruno@clisp.org>
15030
15031         New module 'wcsnlen'.
15032         * modules/wcsnlen: New file.
15033         * lib/wchar.in.h (wcsnlen): New declaration.
15034         * lib/wcsnlen.c: New file.
15035         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15036         * m4/wcsnlen.m4: New file.
15037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15039         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15040         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15041         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15042
15043 2011-02-05  Bruno Haible  <bruno@clisp.org>
15044
15045         New module 'wcslen'.
15046         * modules/wcslen: New file.
15047         * lib/wchar.in.h (wcslen): New declaration.
15048         * lib/wcslen.c: New file.
15049         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15050         * m4/wcslen.m4: New file.
15051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15053         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15054         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15055         * doc/posix-functions/wcslen.texi: Mention the new module.
15056
15057 2011-02-05  Bruno Haible  <bruno@clisp.org>
15058
15059         New module 'wmemset'.
15060         * modules/wmemset: New file.
15061         * lib/wchar.in.h (wmemset): New declaration.
15062         * lib/wmemset.c: New file.
15063         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15064         * m4/wmemset.m4: New file.
15065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15067         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15068         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15069         * doc/posix-functions/wmemset.texi: Mention the new module.
15070
15071 2011-02-05  Bruno Haible  <bruno@clisp.org>
15072
15073         New module 'wmemmove'.
15074         * modules/wmemmove: New file.
15075         * lib/wchar.in.h (wmemmove): New declaration.
15076         * lib/wmemmove.c: New file.
15077         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15078         * m4/wmemmove.m4: New file.
15079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15081         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15082         HAVE_WMEMMOVE.
15083         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15084         * doc/posix-functions/wmemmove.texi: Mention the new module.
15085
15086 2011-02-05  Bruno Haible  <bruno@clisp.org>
15087
15088         New module 'wmemcpy'.
15089         * modules/wmemcpy: New file.
15090         * lib/wchar.in.h (wmemcpy): New declaration.
15091         * lib/wmemcpy.c: New file.
15092         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15093         * m4/wmemcpy.m4: New file.
15094         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15095         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15096         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15097         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15098         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15099
15100 2011-02-05  Bruno Haible  <bruno@clisp.org>
15101
15102         New module 'wmemcmp'.
15103         * modules/wmemcmp: New file.
15104         * lib/wchar.in.h (wmemcmp): New declaration.
15105         * lib/wmemcmp.c: New file.
15106         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15107         * m4/wmemcmp.m4: New file.
15108         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15109         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15110         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15111         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15112         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15113
15114 2011-02-07  Jim Meyering  <meyering@redhat.com>
15115
15116         di-set, ino-map: new modules, from coreutils
15117         * lib/di-set.c: New file.
15118         * lib/di-set.h: Likewise.
15119         * lib/ino-map.c: Likewise.
15120         * lib/ino-map.h: Likewise.
15121         * modules/di-set: Likewise.
15122         * modules/di-set-tests: Likewise.
15123         * modules/ino-map: Likewise.
15124         * modules/ino-map-tests: Likewise.
15125         * tests/test-di-set.c: Likewise.
15126         * tests/test-ino-map.c: Likewise.
15127
15128 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15129
15130         getloadavg: merge minor changes from Emacs
15131
15132         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15133         (getloadavg): Use memset, not bzero.
15134
15135         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15136         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15137         clash (bug#86).
15138
15139 2010-11-14  Bruno Haible  <bruno@clisp.org>
15140
15141         Allow multiple gnulib generated replacements to coexist.
15142         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15143         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15144         * lib/langinfo.in.h (nl_item): Likewise.
15145         * lib/math.in.h (_NaN, NAN): Likewise.
15146         * lib/netdb.in.h (struct addrinfo): Likewise.
15147         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15148         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15149         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15150         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15151         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15152         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15153         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15154         pthread_mutexattr_init, pthread_mutexattr_settype,
15155         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15156         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15157         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15158         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15159         * lib/sched.in.h (struct sched_param): Likewise.
15160         * lib/se-selinux.in.h (security_class_t, security_context_t,
15161         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15162         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15163         lsetfilecon, fsetfilecon, security_check_context,
15164         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15165         Likewise.
15166         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15167         Likewise.
15168         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15169         _gl_function_taking_int_returning_void_t, union sigval,
15170         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15171         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15172         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15173         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15174         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15175         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15176         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15177         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15178         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15179         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15180         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15181         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15182         socklen_t, rpl_fd_isset): Likewise.
15183         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15184         * lib/sys_time.in.h (struct timeval): Likewise.
15185         * lib/sys_times.in.h (struct tms): Likewise.
15186         * lib/sys_utsname.in.h (struct utsname):
15187         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15188         * lib/unistd.in.h (getpagesize): Likewise.
15189         * lib/wchar.in.h (mbstate_t): Likewise.
15190         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15191         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15192         towlower, towupper): Likewise.
15193         Reported by Sam Steingold <sds@gnu.org>.
15194
15195 2011-02-05  Eric Blake  <eblake@redhat.com>
15196
15197         unsetenv: work around Haiku issues
15198         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15199         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15200
15201 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15202
15203         libposix: avoid calling error() within libposix
15204         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15205         is defined.
15206
15207 2011-02-05  Eric Blake  <eblake@redhat.com>
15208
15209         strerror_r-posix: port to cygwin
15210         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15211         implementation.
15212         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15213         * tests/test-strerror_r.c (main): Fix test.
15214         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15215         issue.
15216
15217 2011-02-05  Bruno Haible  <bruno@clisp.org>
15218
15219         New module 'wmemchr'.
15220         * modules/wmemchr: New file.
15221         * lib/wchar.in.h (wmemchr): New declaration.
15222         * lib/wmemchr.c: New file.
15223         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15224         * m4/wmemchr.m4: New file.
15225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15227         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15228         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15229         * doc/posix-functions/wmemchr.texi: Mention the new module.
15230
15231 2011-02-04  Eric Blake  <eblake@redhat.com>
15232
15233         fdopendir: detect FreeBSD bug
15234         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15235         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15236
15237 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15238
15239         stdbool: do not define HAVE_STDBOOL_H
15240         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15241         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15242         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15243         imported from the latest Autoconf git.  It was motivated by Emacs,
15244         which uses gnulib but does not need HAVE_STDBOOL_H.
15245
15246 2011-02-04  Bruno Haible  <bruno@clisp.org>
15247
15248         wcsnrtombs: Prepare for new module wwcsnrtombs.
15249         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15250         * lib/wcsnrtombs.c: Include it.
15251         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15252
15253         wcsrtombs: Prepare for new module wwcsrtombs.
15254         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15255         * lib/wcsrtombs.c: Include it.
15256         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15257
15258         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15259         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15260         * lib/mbsnrtowcs.c: Include it.
15261         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15262
15263         mbsrtowcs: Prepare for new module mbsrtowwcs.
15264         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15265         * lib/mbsrtowcs.c: Include it.
15266         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15267
15268 2011-02-04  Bruno Haible  <bruno@clisp.org>
15269
15270         vasnprintf: Reduce use of malloc for small format strings.
15271         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15272         (arguments): Add room for the first 7 arguments.
15273         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15274         (char_directives, u8_directives, u16_directives, u32_directives): Add
15275         room for the first 7 directives.
15276         * lib/printf-parse.c: Include <string.h>.
15277         (PRINTF_PARSE): Change memory handling code so that it uses the first
15278         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15279         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15280         Reported by Pádraig Brady <P@draigbrady.com>.
15281
15282 2011-01-31  Eric Blake  <eblake@redhat.com>
15283
15284         dup2: work around Haiku bug
15285         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15286         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15287         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15288         * tests/test-dup2.c (main): Enhance test.
15289
15290 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15291
15292         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15293         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15294         declared by eglibc 2.11.2.
15295         * lib/stdio.in.h: Likewise.
15296
15297 2011-01-31  Eric Blake  <eblake@redhat.com>
15298
15299         ignore-value: add missing test dependency
15300         * tests/test-ignore-value.c: Revert previous change; stdio.h
15301         provides off_t.
15302         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15303
15304 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15305
15306         mktime: clarify long_int width checking
15307         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15308         the top level, to make it clearer that the assumption about
15309         long_int width is being checked.  See
15310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15311
15312 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15313
15314         ignore-value: Fix self-test.
15315         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15316
15317 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15318
15319         TYPE_MAXIMUM: avoid theoretically undefined behavior
15320         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15321         negative number, which the C Standard says has undefined behavior.
15322         In practice this is not a problem, but might as well do it by the book.
15323         Reported by Rich Felker and Eric Blake; see
15324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15325         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15326         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15328         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15329         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15330         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15331
15332         mktime: #undef mktime before #defining it
15333         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15334
15335         mktime: systematically normalize tm_isdst comparisons
15336         * lib/mktime.c (isdst_differ): New function.
15337         (__mktime_internal): Use it systematically for all isdst comparisons.
15338         This completes the fix for libc BZ #6723, and removes the need for
15339         normalizing tm_isdst.  See
15340         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15341         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15342
15343         mktime: fix some integer overflow issues and sidestep the rest
15344
15345         This was prompted by a bug report by Benjamin Lindner for MinGW
15346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15347         His bug is due to signed integer overflow (0 - INT_MIN), and I
15348         I scanned through mktime.c looking for other integer overflow
15349         problems, fixing all the bugs I found.
15350
15351         Although the C Standard says the resulting code is still not safe
15352         in the presence of integer overflow, in practice it should be good
15353         enough for all real-world two's-complement implementations, except
15354         for debugging environments that deliberately trap on integer
15355         overflow (e.g., gcc -ftrapv).
15356
15357         * lib/mktime.c (WRAPV): New macro.
15358         (SHR): Also check that long_int and time_t shift right in the
15359         usual way, before using the fast-but-unportable method.
15360         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15361         used.  The code already assumed two's complement, so there's
15362         no need to test for alternatives.  All uses removed.
15363         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15364         the C standard.  Problem reported by Rich Felker in
15365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15366         (twos_complement_arithmetic): Also check long_int and time_t.
15367         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15368         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15369         (__mktime_internal): Avoid integer overflow with unary subtraction
15370         in two instances where -1 - X is an adequate replacement for -X,
15371         since the calculations are approximate.
15372
15373 2011-01-29  Eric Blake  <eblake@redhat.com>
15374
15375         mktime: avoid infinite loop
15376         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15377         type; behavior is still undefined but portable to all known targets.
15378         Reported by Rich Felker.
15379
15380 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15381
15382         rename, unlink, same-inode: Relicense.
15383         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15384         * modules/unlink (License): Likewise.
15385         * modules/same-inode (License): Likewise.
15386
15387 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15388
15389         mktime: avoid problems on NetBSD 5 / i386
15390         * lib/mktime.c (long_int): New type.  This works around a problem
15391         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15392         but time_t is 64 bits, and where I expect the existing code is
15393         wrong in some cases.
15394         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15395         (ydhms_diff): Bring back the compile-time check for wide-enough
15396         year and yday.
15397
15398         mktime: fix misspelling in comment
15399         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15400         This merges all recent glibc changes of importance.
15401
15402 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15403
15404         move-if-change: cope with concurrent mv of identical file.
15405         * build-aux/move-if-change (CMPPROG): Accept environment
15406         variable as an override for `cmp'.
15407         (usage): Document CMPPROG.
15408         Adjust comparison to drop stdout.  Cope with failure of mv if
15409         the target file exists and is identical to the source, for
15410         parallel builds.
15411         Report from H.J. Lu against binutils in PR binutils/12283.
15412
15413 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15414
15415         * users.txt: Mention sharutils.
15416
15417 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15418
15419         * users.txt: Mention OATH Toolkit.
15420
15421 2011-01-27  Bruno Haible  <bruno@clisp.org>
15422
15423         Prepare for supporting FreeBSD 10.
15424         * build-aux/config.libpath: Remove handling of freebsd1*.
15425
15426 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15427
15428         Prepare for supporting FreeBSD 10.
15429         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15430         match FreeBSD 10.0.
15431
15432 2011-01-27  Bruno Haible  <bruno@clisp.org>
15433
15434         vma-iter, get-rusage-as: Add OpenBSD support.
15435         * modules/vma-iter (configure.ac): Test for mquery.
15436         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15437         * lib/vma-iter.c: Include <sys/mman.h>.
15438         (vma_iterate): Add an implementation based on mquery().
15439         * lib/resource-ext.h (get_rusage_as): Update comments.
15440         * lib/get-rusage-as.c: Likewise.
15441         * lib/get-rusage-data.c: Likewise.
15442
15443 2011-01-26  Karl Berry  <karl@gnu.org>
15444
15445         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15446         variables to make it easier to override the makeinfo program used.
15447
15448 2011-01-26  Eric Blake  <eblake@redhat.com>
15449
15450         fcntl: work around Haiku F_DUPFD bugs
15451         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15452         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15453         cloexec bit on duplication.
15454         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15455
15456 2011-01-26  Bruno Haible  <bruno@clisp.org>
15457
15458         Enable memory leak tests on AIX.
15459         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15460         * tests/test-fprintf-posix3.c (main): Likewise.
15461
15462 2011-01-26  Bruno Haible  <bruno@clisp.org>
15463
15464         Tests for module 'get-rusage-data'.
15465         * modules/get-rusage-data-tests: New file.
15466         * tests/test-get-rusage-data.c: New file.
15467
15468         New module 'get-rusage-data'.
15469         * lib/resource-ext.h (get_rusage_data): New declaration.
15470         * lib/get-rusage-data.c: New file.
15471         * modules/get-rusage-data: New file.
15472
15473 2011-01-25  Bruno Haible  <bruno@clisp.org>
15474
15475         get-rusage-as: Allow for easier testing.
15476         * lib/resource-ext.h (get_rusage_as): Add comment.
15477         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15478         (main): New function for interactive testing.
15479
15480 2011-01-25  Bruno Haible  <bruno@clisp.org>
15481
15482         vma-iter: Treat Haiku like BeOS.
15483         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15484         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15485
15486 2011-01-25  Eric Blake  <eblake@redhat.com>
15487
15488         c-stack: fix regression on cygwin when libsigsegv is present
15489         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15490
15491 2011-01-24  Bruno Haible  <bruno@clisp.org>
15492
15493         vma-iter: Avoid empty intervals.
15494         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15495         on an empty interval.
15496
15497 2011-01-24  Jim Meyering  <meyering@redhat.com>
15498
15499         u64: remove unnecessary #include
15500         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15501
15502 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15503
15504         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15505         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15506
15507 2011-01-23  Bruno Haible  <bruno@clisp.org>
15508
15509         New module 'vma-iter'.
15510         * lib/vma-iter.h: New file.
15511         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15512         * modules/vma-iter: New file.
15513         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15514         for get_rusage_as_via_iterator.
15515         (vma_iterate_callback): New function.
15516         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15517         * modules/get-rusage-as (Depends-on): Add vma-iter.
15518
15519 2011-01-23  Bruno Haible  <bruno@clisp.org>
15520
15521         uninorm: Tweak includes.
15522         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15523         Reported by Jim Meyering.
15524
15525 2011-01-23  Bruno Haible  <bruno@clisp.org>
15526
15527         get-rusage-as: Improve on NetBSD.
15528         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15529         /proc, like on FreeBSD.
15530
15531 2011-01-23  Jim Meyering  <meyering@redhat.com>
15532
15533         xreadlink.h: remove unnecessary #include
15534         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15535
15536         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15537         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15538
15539 2011-01-23  Bruno Haible  <bruno@clisp.org>
15540
15541         get-rusage-as: Fix bug.
15542         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15543         original limit when aborting the first loop.
15544
15545 2011-01-23  Bruno Haible  <bruno@clisp.org>
15546
15547         wctype: Ensure valid C syntax.
15548         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15549         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15550
15551 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15552
15553         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15555         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15556         as they are needed only for configure's test case.
15557         This removes two unnecessary symbols from config.h.
15558
15559         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15560         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15562         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15563         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15564         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15565         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15566         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15567         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15568         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15569         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15570         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15571         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15572         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15573         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15574         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15575         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15576         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15577
15578 2011-01-21  Eric Blake  <eblake@redhat.com>
15579
15580         maintainer-makefile: work with older git for submodule check
15581         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15582         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15583         Reported by Matthias Bolte.
15584
15585         bootstrap: minor portability fixes
15586         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15587         (usage): Omit leading capital and trailing . on help phrases, per
15588         GNU Coding Standards.
15589         (check_versions, top level): Prefix messages with script name.
15590
15591 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15592
15593         bootstrap: support --no-git option
15594         * build-aux/bootstrap: Add --no-git option, to be used when
15595         --gnulib-srcdir points to the exact desired checkout.
15596
15597 2011-01-21  Eric Blake  <eblake@redhat.com>
15598
15599         strerror_r-posix: work with glibc 2.13
15600         * lib/strerror_r.c (strerror_r): Fix return type.
15601
15602 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15603             Bruno Haible  <bruno@clisp.org>
15604
15605         uN_strstr: New unit tests.
15606         * modules/unistr/u8-strstr-tests: New file.
15607         * modules/unistr/u16-strstr-tests: New file.
15608         * modules/unistr/u32-strstr-tests: New file.
15609         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15610         * tests/unistr/test-u8-strstr.c: New file.
15611         * tests/unistr/test-u16-strstr.c: New file.
15612         * tests/unistr/test-u32-strstr.c: New file.
15613
15614 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15615             Bruno Haible  <bruno@clisp.org>
15616
15617         Make uN_strstr functions O(n) worst-case.
15618         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15619         16-bit and 32-bit unit cases, use the unibyte algorithm from
15620         lib/mbsstr.c.
15621         * lib/unistr/u8-strstr.c: Include <string.h>.
15622         (UNIT_IS_UINT8_T): New macro.
15623         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15624         (U_STRLEN, U_STRNLEN): New macros.
15625         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15626         (U_STRLEN, U_STRNLEN): New macros.
15627         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15628         (configure.ac): Update required libunistring version.
15629         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15630         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15631         malloca.
15632         (configure.ac): Update required libunistring version.
15633         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15634         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15635         malloca.
15636         (configure.ac): Update required libunistring version.
15637
15638 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15639             Bruno Haible  <bruno@clisp.org>
15640
15641         Prepare for faster uN_strstr functions.
15642         * lib/str-kmp.h: Support definable UNITs.
15643         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15644         needle_len argument.
15645         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15646         * lib/mbscasestr.c (mbscasestr): Likewise.
15647
15648 2011-01-21  Pádraig Brady <P@draigBrady.com>
15649
15650         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15651         * tests/test-malloca.c (main): Unset the environment variable
15652         to greatly speed up the test.
15653         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15654         * modules/malloca-tests: Depend on unsetenv.
15655
15656 2011-01-21  Pádraig Brady <P@draigBrady.com>
15657
15658         ignore-value: remove stdint dependency
15659         * lib/ignore-value.h: Remove <stdint.h>
15660         * modules/ignore-value: Remove stdint dependency.
15661
15662 2011-01-21  Jim Meyering  <meyering@redhat.com>
15663
15664         maint.mk: adjust variable name to be consistent with other gl_ vars
15665         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15666         to be lower case.
15667
15668 2011-01-20  Jim Meyering  <meyering@redhat.com>
15669
15670         maint.mk: make "check" depend on public-submodule-commit by default
15671         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15672
15673 2011-01-20  Bruno Haible  <bruno@clisp.org>
15674
15675         mbfile, mbiter: Complete change from 2008-12-21.
15676         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15677         * m4/mbiter.m4 (gl_MBITER): Likewise.
15678
15679 2011-01-20  Jim Meyering  <meyering@redhat.com>
15680
15681         init.sh: insert space between each function name and "()"
15682         * tests/init.sh: Make it a little easier to see that a function's
15683         name is "warn_", and not "warn" when looking at the first part of
15684         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15685
15686 2011-01-20  Jim Meyering  <meyering@redhat.com>
15687
15688         mountlist: clean up code formatting
15689         * lib/mountlist.c (read_file_system_list): Split a long line,
15690         correct bracing style, use NULL in place of "(struct statfs *)0",
15691         don't parenthesize return value, add spaces around "=" and after
15692         ";-in-for-stmt".
15693
15694 2011-01-14  Markus Duft <mduft@gentoo.org>
15695
15696         mountlist: add support for Interix
15697         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15698         Apply statvfs to all entries of /dev/fs.
15699         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15700         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15701
15702 2011-01-20  Jim Meyering  <meyering@redhat.com>
15703
15704         maint.mk: improve the public-submodule-commit rule
15705         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15706         to suppress printing of its commands... unless V=1.
15707         Add git submodule's --quiet option to suppress printing of e.g.,
15708         "Entering gnulib" output.
15709         "cd" into $(srcdir) before running git submodule.
15710
15711 2011-01-20  Bruno Haible  <bruno@clisp.org>
15712
15713         include_next: Fix bug introduced on 2011-01-18.
15714         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15715         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15716         ac_cv_header_... variable if the second argument is not 'check'.
15717         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15718         gl_NEXT_HEADERS_INTERNAL.
15719
15720 2011-01-20  Bruno Haible  <bruno@clisp.org>
15721
15722         Allow the user to avoid the GNULIB_TEST_* macros.
15723         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15724         Suggested by Paul Eggert.
15725
15726 2011-01-14  Jim Meyering  <meyering@redhat.com>
15727
15728         bootstrap: avoid failure when there is no .gitmodules file
15729         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15730         has been assigned to, even when its value is the empty string.
15731         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15732         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15733         Reported by John W. Eaton <jwe@gnu.org>.
15734
15735 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15736
15737         assume <ctype.h>, ..., <time.h> exist
15738         For years gnulib has been assuming the existence of the headers
15739         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15740         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15741         them, since they don't appear to be needed.
15742         * README (Portability guidelines): Document this.
15743         * lib/flock.c: Assume <fcntl.h> exists.
15744         * lib/regex_internal.h: Assume <locale.h> exists.
15745         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15746         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15747         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15748         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15749         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15750         * m4/regex.m4 (gl_REGEX): Likewise.
15751         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15752         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15753         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15754         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15755         * tests/test-argp.c: Likewise.
15756         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15757
15758         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15759         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15760         AA_APPLE_UNIVERSAL_BUILD.  See
15761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15762         * NEWS: Document this.
15763
15764 2011-01-19  Eric Blake  <eblake@redhat.com>
15765
15766         c-stack: assume stack overflow if SA_SIGINFO unsupported
15767         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15768         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15769         sigaction will work.
15770         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15771         behavior match Linux.
15772         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15773
15774         stdbool-tests: accomodate Haiku
15775         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15776
15777         binary-io: fix O_TEXT on Haiku
15778         * modules/binary-io (Depends-on): Add fcntl-h.
15779         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15780         than blindly undefining O_TEXT.
15781         Reported by Scott McCreary.
15782
15783 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15784
15785         include_next: do not check for standard headers like stddef.h
15786
15787         I found this problem when modifying Emacs to use gnulib.
15788         I noticed that it added HAVE_STDDEF_H to config.h, even though
15789         gnulib always assumes <stddef.h> exists as per README and this
15790         symbol is unnecessary.
15791         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15792         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15793         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15794         faster for headers like stddef.h that are known to exist.
15795         (gl_CHECK_NEXT_HEADERS): Use it.
15796         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15797         rather than gl_CHECK_NEXT_HEADERS.
15798         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15799         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15800
15801 2011-01-18  Eric Blake  <eblake@redhat.com>
15802
15803         ansi-c++-opt: skip C++ dependency style if C++ is unused
15804         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15805         tests when we know C++ compilation is not desired.
15806         Reported by Scott McCreary.
15807
15808 2011-01-18  Bruno Haible  <bruno@clisp.org>
15809
15810         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15811         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15812         (main): Perform test also when getrlimit and setrlimit don't exist or
15813         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15814         limiting the address space size using setrlimit, compare the address
15815         space size before and after the the test.
15816         * tests/test-dprintf-posix2.c: Likewise.
15817         * tests/test-fprintf-posix3.sh: Update skip messages.
15818         * tests/test-dprintf-posix2.sh: Likewise.
15819         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15820         * modules/dprintf-posix-tests (Depends-on): Likewise.
15821         Reported by Bruce Korb <bkorb@gnu.org> and
15822         Gary V. Vaughan <gary@gnu.org>.
15823
15824 2011-01-18  Bruno Haible  <bruno@clisp.org>
15825
15826         get-rusage-as: Improvement for Cygwin.
15827         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15828         areas that are merely reserved.
15829
15830 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15831
15832         strftime: remove dependencies on multibyte modules
15833
15834         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15835         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15836         only if __osf__ is defined, and I suspect OSF doesn't need these
15837         other modules.  If my guess is wrong, we'll need to come up with a
15838         variant of strftime that doesn't need the multibyte modules.
15839
15840         I discovered this problem when attempting modify Emacs to use the
15841         strftime module.  With the previous gnulib, this caused Emacs to
15842         need 31 new files, ranging from lib/config.charset to
15843         m4/wint_t.m4.  This was overkill and I expect would be offputting
15844         to the Emacs maintainers.  After this change, only 6 new files are
15845         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15846         stdbool.m4, and tm_gmtoff.m4.
15847
15848         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15849         Suggested by Bruno Haible in
15850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15851         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15852         and do not check for wchar.h.
15853         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15854         (Depends-on): Remove mbrlen, mbsinit, wchar.
15855
15856 2011-01-18  Bruno Haible  <bruno@clisp.org>
15857
15858         Tests for module 'get-rusage-as'.
15859         * modules/get-rusage-as-tests: New file.
15860         * tests/test-get-rusage-as.c: New file.
15861
15862         New module 'get-rusage-as'.
15863         * modules/get-rusage-as: New file.
15864         * lib/resource-ext.h: New file.
15865         * lib/get-rusage-as.c: New file.
15866
15867 2011-01-17  Eric Blake  <eblake@redhat.com>
15868
15869         sigaction: relax license from LGPLv3+ to LGPLv2+
15870         * modules/sigaction (License): Relax to LGPLv2+.
15871
15872 2011-01-14  Bruno Haible  <bruno@clisp.org>
15873
15874         filemode: Make function declarations usable in C++ mode.
15875         * lib/filemode.h: Enclose function declarations in extern "C" block.
15876         Reported by John W. Eaton <jwe@gnu.org>.
15877
15878 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15879
15880         save-cwd: no longer include "xgetcwd.h"
15881         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15882         This avoids a compilation failure in projects that use save-cwd
15883         without also using the xgetcwd module.
15884
15885 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15886
15887         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15888         This is so that a program like Emacs, which needs only dtoastr,
15889         does not have to bother with distributing and compiling ftoastr
15890         and ldtoastr.
15891         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15892         * modules/dtoastr, modules/ldtoastr: New files.
15893         * modules/ftoastr: Now works just for 'float'.
15894         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15895         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15896         dtoastr.c, ldtoastr.c.
15897
15898 2011-01-11  Jim Meyering  <meyering@redhat.com>
15899
15900         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15901         There is no need to work around the lack of the fchdir function,
15902         since gnulib can now provide a replacement when required.
15903         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15904         * modules/save-cwd (Depends-on): Add fchdir.
15905
15906 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15907
15908         openat, save-cwd: avoid xmalloc
15909
15910         This removes a direct (but undocumented) dependency of openat on
15911         xalloc, along with an indirect dependency via save-cwd.  It also
15912         removes a dependency of save-cwd on xgetcwd, and thereby
15913         indirectly on xalloc.  This change causes the openat substitute
15914         to fall back on save_cwd when memory is tight, and for save_cwd to
15915         fail instead of dying when memory is tight, but that's good enough.
15916         Problem and initial idea for fix reported by Bastien Roucaries in
15917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15918
15919         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15920         xalloc.h (for xmalloc).
15921         (openat_proc_name): Use malloc, not xmalloc.
15922         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15923         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15924
15925         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15926         This avoids heap allocation for file names whose lengths are in
15927         the range 512..1023, with the upper bound increasing to at most
15928         4031 depending on the platform's PATH_MAX.  (We do not want
15929         pathmax.h here as it might supply a non-constant PATH_MAX.)
15930         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
15931         Perhaps they should be moved to malloca.h?
15932         (OPENAT_BUFFER_SIZE): Use them.
15933
15934 2011-01-10  Bruno Haible  <bruno@clisp.org>
15935
15936         doc: Update users.txt.
15937         * users.txt: Add recutils.
15938
15939 2011-01-09  Karl Berry  <karl@gnu.org>
15940
15941         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
15942
15943         * doc/configmake.texi: New file.
15944         * doc/gnulib.texi: Include it.
15945         * modules/configmake: Move documentation from here.
15946
15947 2011-01-09  Bruno Haible  <bruno@clisp.org>
15948
15949         Update to Unicode 6.0.0.
15950         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
15951         (get_lbp): Update for Unicode 6.0.0.
15952         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
15953         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
15954         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
15955         U+11001, U+11038..U+11046. Remove U+06DE.
15956         (uc_width): Fix bounds of planes.
15957         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15958         lib/uniwidth/width.c.
15959         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
15960         trailing whitespace removed.
15961         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
15962         without comments, but with the original copyright notice.
15963         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
15964         * lib/unicase/ignorable.h: Likewise.
15965         * lib/unicase/tocasefold.h: Likewise.
15966         * lib/unicase/tolower.h: Likewise.
15967         * lib/unicase/totitle.h: Likewise.
15968         * lib/unicase/toupper.h: Likewise.
15969         * lib/unictype/bidi_of.h: Likewise.
15970         * lib/unictype/blocks.h: Likewise.
15971         * lib/unictype/categ_C.h: Likewise.
15972         * lib/unictype/categ_Cn.h: Likewise.
15973         * lib/unictype/categ_L.h: Likewise.
15974         * lib/unictype/categ_Ll.h: Likewise.
15975         * lib/unictype/categ_Lm.h: Likewise.
15976         * lib/unictype/categ_Lo.h: Likewise.
15977         * lib/unictype/categ_Lu.h: Likewise.
15978         * lib/unictype/categ_M.h: Likewise.
15979         * lib/unictype/categ_Mc.h: Likewise.
15980         * lib/unictype/categ_Me.h: Likewise.
15981         * lib/unictype/categ_Mn.h: Likewise.
15982         * lib/unictype/categ_N.h: Likewise.
15983         * lib/unictype/categ_Nd.h: Likewise.
15984         * lib/unictype/categ_No.h: Likewise.
15985         * lib/unictype/categ_P.h: Likewise.
15986         * lib/unictype/categ_Po.h: Likewise.
15987         * lib/unictype/categ_S.h: Likewise.
15988         * lib/unictype/categ_Sc.h: Likewise.
15989         * lib/unictype/categ_Sk.h: Likewise.
15990         * lib/unictype/categ_Sm.h: Likewise.
15991         * lib/unictype/categ_So.h: Likewise.
15992         * lib/unictype/categ_of.h: Likewise.
15993         * lib/unictype/combining.h: Likewise.
15994         * lib/unictype/ctype_alnum.h: Likewise.
15995         * lib/unictype/ctype_alpha.h: Likewise.
15996         * lib/unictype/ctype_graph.h: Likewise.
15997         * lib/unictype/ctype_lower.h: Likewise.
15998         * lib/unictype/ctype_print.h: Likewise.
15999         * lib/unictype/ctype_punct.h: Likewise.
16000         * lib/unictype/ctype_upper.h: Likewise.
16001         * lib/unictype/decdigit.h: Likewise.
16002         * lib/unictype/digit.h: Likewise.
16003         * lib/unictype/numeric.h: Likewise.
16004         * lib/unictype/pr_alphabetic.h: Likewise.
16005         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16006         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16007         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16008         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16009         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16010         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16011         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16012         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16013         * lib/unictype/pr_case_ignorable.h: Likewise.
16014         * lib/unictype/pr_cased.h: Likewise.
16015         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16016         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16017         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16018         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16019         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16020         * lib/unictype/pr_combining.h: Likewise.
16021         * lib/unictype/pr_composite.h: Likewise.
16022         * lib/unictype/pr_currency_symbol.h: Likewise.
16023         * lib/unictype/pr_decimal_digit.h: Likewise.
16024         * lib/unictype/pr_deprecated.h: Likewise.
16025         * lib/unictype/pr_format_control.h: Likewise.
16026         * lib/unictype/pr_grapheme_base.h: Likewise.
16027         * lib/unictype/pr_grapheme_extend.h: Likewise.
16028         * lib/unictype/pr_grapheme_link.h: Likewise.
16029         * lib/unictype/pr_id_continue.h: Likewise.
16030         * lib/unictype/pr_id_start.h: Likewise.
16031         * lib/unictype/pr_ideographic.h: Likewise.
16032         * lib/unictype/pr_lowercase.h: Likewise.
16033         * lib/unictype/pr_math.h: Likewise.
16034         * lib/unictype/pr_numeric.h: Likewise.
16035         * lib/unictype/pr_other_alphabetic.h: Likewise.
16036         * lib/unictype/pr_other_id_continue.h: Likewise.
16037         * lib/unictype/pr_other_math.h: Likewise.
16038         * lib/unictype/pr_punctuation.h: Likewise.
16039         * lib/unictype/pr_sentence_terminal.h: Likewise.
16040         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16041         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16042         * lib/unictype/pr_unified_ideograph.h: Likewise.
16043         * lib/unictype/pr_uppercase.h: Likewise.
16044         * lib/unictype/pr_xid_continue.h: Likewise.
16045         * lib/unictype/pr_xid_start.h: Likewise.
16046         * lib/unictype/scripts.h: Likewise.
16047         * lib/unictype/scripts_byname.gperf: Likewise.
16048         * lib/unictype/sy_java_ident.h: Likewise.
16049         * lib/unigbrk/gbrkprop.h: Likewise.
16050         * lib/unilbrk/lbrkprop1.h: Likewise.
16051         * lib/unilbrk/lbrkprop2.h: Likewise.
16052         * lib/uninorm/decomposition-table2.h: Likewise.
16053         * lib/uniwbrk/wbrkprop.h: Likewise.
16054         * tests/unicase/test-cased.c: Likewise.
16055         * tests/unicase/test-ignorable.c: Likewise.
16056         * tests/unicase/test-uc_tolower.c: Likewise.
16057         * tests/unicase/test-uc_totitle.c: Likewise.
16058         * tests/unicase/test-uc_toupper.c: Likewise.
16059         * tests/unictype/test-categ_C.c: Likewise.
16060         * tests/unictype/test-categ_Cn.c: Likewise.
16061         * tests/unictype/test-categ_L.c: Likewise.
16062         * tests/unictype/test-categ_Ll.c: Likewise.
16063         * tests/unictype/test-categ_Lm.c: Likewise.
16064         * tests/unictype/test-categ_Lo.c: Likewise.
16065         * tests/unictype/test-categ_Lu.c: Likewise.
16066         * tests/unictype/test-categ_M.c: Likewise.
16067         * tests/unictype/test-categ_Mc.c: Likewise.
16068         * tests/unictype/test-categ_Me.c: Likewise.
16069         * tests/unictype/test-categ_Mn.c: Likewise.
16070         * tests/unictype/test-categ_N.c: Likewise.
16071         * tests/unictype/test-categ_Nd.c: Likewise.
16072         * tests/unictype/test-categ_No.c: Likewise.
16073         * tests/unictype/test-categ_P.c: Likewise.
16074         * tests/unictype/test-categ_Po.c: Likewise.
16075         * tests/unictype/test-categ_S.c: Likewise.
16076         * tests/unictype/test-categ_Sc.c: Likewise.
16077         * tests/unictype/test-categ_Sk.c: Likewise.
16078         * tests/unictype/test-categ_Sm.c: Likewise.
16079         * tests/unictype/test-categ_So.c: Likewise.
16080         * tests/unictype/test-ctype_alnum.c: Likewise.
16081         * tests/unictype/test-ctype_alpha.c: Likewise.
16082         * tests/unictype/test-ctype_graph.c: Likewise.
16083         * tests/unictype/test-ctype_lower.c: Likewise.
16084         * tests/unictype/test-ctype_print.c: Likewise.
16085         * tests/unictype/test-ctype_punct.c: Likewise.
16086         * tests/unictype/test-ctype_upper.c: Likewise.
16087         * tests/unictype/test-decdigit.h: Likewise.
16088         * tests/unictype/test-digit.h: Likewise.
16089         * tests/unictype/test-numeric.h: Likewise.
16090         * tests/unictype/test-pr_alphabetic.c: Likewise.
16091         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16092         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16093         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16094         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16095         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16096         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16097         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16098         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16099         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16100         * tests/unictype/test-pr_cased.c: Likewise.
16101         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16102         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16103         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16104         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16105         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16106         * tests/unictype/test-pr_combining.c: Likewise.
16107         * tests/unictype/test-pr_composite.c: Likewise.
16108         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16109         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16110         * tests/unictype/test-pr_deprecated.c: Likewise.
16111         * tests/unictype/test-pr_format_control.c: Likewise.
16112         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16113         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16114         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16115         * tests/unictype/test-pr_id_continue.c: Likewise.
16116         * tests/unictype/test-pr_id_start.c: Likewise.
16117         * tests/unictype/test-pr_ideographic.c: Likewise.
16118         * tests/unictype/test-pr_lowercase.c: Likewise.
16119         * tests/unictype/test-pr_math.c: Likewise.
16120         * tests/unictype/test-pr_numeric.c: Likewise.
16121         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16122         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16123         * tests/unictype/test-pr_other_math.c: Likewise.
16124         * tests/unictype/test-pr_punctuation.c: Likewise.
16125         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16126         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16127         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16128         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16129         * tests/unictype/test-pr_uppercase.c: Likewise.
16130         * tests/unictype/test-pr_xid_continue.c: Likewise.
16131         * tests/unictype/test-pr_xid_start.c: Likewise.
16132         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16133         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16134         changes.
16135         * lib/unictype/categ_Cc.h: Likewise.
16136         * lib/unictype/categ_Cf.h: Likewise.
16137         * lib/unictype/categ_Co.h: Likewise.
16138         * lib/unictype/categ_Cs.h: Likewise.
16139         * lib/unictype/categ_Lt.h: Likewise.
16140         * lib/unictype/categ_Nl.h: Likewise.
16141         * lib/unictype/categ_Pc.h: Likewise.
16142         * lib/unictype/categ_Pd.h: Likewise.
16143         * lib/unictype/categ_Pe.h: Likewise.
16144         * lib/unictype/categ_Pf.h: Likewise.
16145         * lib/unictype/categ_Pi.h: Likewise.
16146         * lib/unictype/categ_Ps.h: Likewise.
16147         * lib/unictype/categ_Z.h: Likewise.
16148         * lib/unictype/categ_Zl.h: Likewise.
16149         * lib/unictype/categ_Zp.h: Likewise.
16150         * lib/unictype/categ_Zs.h: Likewise.
16151         * lib/unictype/ctype_blank.h: Likewise.
16152         * lib/unictype/ctype_cntrl.h: Likewise.
16153         * lib/unictype/ctype_digit.h: Likewise.
16154         * lib/unictype/ctype_space.h: Likewise.
16155         * lib/unictype/ctype_xdigit.h: Likewise.
16156         * lib/unictype/mirror.h: Likewise.
16157         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16158         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16159         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16160         * lib/unictype/pr_bidi_control.h: Likewise.
16161         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16162         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16163         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16164         * lib/unictype/pr_bidi_pdf.h: Likewise.
16165         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16166         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16167         * lib/unictype/pr_dash.h: Likewise.
16168         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16169         * lib/unictype/pr_diacritic.h: Likewise.
16170         * lib/unictype/pr_extender.h: Likewise.
16171         * lib/unictype/pr_hex_digit.h: Likewise.
16172         * lib/unictype/pr_hyphen.h: Likewise.
16173         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16174         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16175         * lib/unictype/pr_ignorable_control.h: Likewise.
16176         * lib/unictype/pr_iso_control.h: Likewise.
16177         * lib/unictype/pr_join_control.h: Likewise.
16178         * lib/unictype/pr_left_of_pair.h: Likewise.
16179         * lib/unictype/pr_line_separator.h: Likewise.
16180         * lib/unictype/pr_logical_order_exception.h: Likewise.
16181         * lib/unictype/pr_non_break.h: Likewise.
16182         * lib/unictype/pr_not_a_character.h: Likewise.
16183         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16184         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16185         * lib/unictype/pr_other_id_start.h: Likewise.
16186         * lib/unictype/pr_other_lowercase.h: Likewise.
16187         * lib/unictype/pr_other_uppercase.h: Likewise.
16188         * lib/unictype/pr_paired_punctuation.h: Likewise.
16189         * lib/unictype/pr_paragraph_separator.h: Likewise.
16190         * lib/unictype/pr_pattern_syntax.h: Likewise.
16191         * lib/unictype/pr_pattern_white_space.h: Likewise.
16192         * lib/unictype/pr_private_use.h: Likewise.
16193         * lib/unictype/pr_quotation_mark.h: Likewise.
16194         * lib/unictype/pr_radical.h: Likewise.
16195         * lib/unictype/pr_soft_dotted.h: Likewise.
16196         * lib/unictype/pr_space.h: Likewise.
16197         * lib/unictype/pr_titlecase.h: Likewise.
16198         * lib/unictype/pr_variation_selector.h: Likewise.
16199         * lib/unictype/pr_white_space.h: Likewise.
16200         * lib/unictype/pr_zero_width.h: Likewise.
16201         * lib/unictype/sy_c_ident.h: Likewise.
16202         * lib/unictype/sy_c_whitespace.h: Likewise.
16203         * lib/unictype/sy_java_whitespace.h: Likewise.
16204         * lib/uninorm/composition-table.gperf: Likewise.
16205         * lib/uninorm/decomposition-table1.h: Likewise.
16206         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16207         LB8.
16208         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16209         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16210         * modules/unictype/*: Bump version number of expected libunistring
16211         version.
16212
16213 2011-01-09  Bruno Haible  <bruno@clisp.org>
16214
16215         Update to Unicode 5.2.0.
16216         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16217         trailing whitespace removed.
16218
16219 2011-01-09  Bruno Haible  <bruno@clisp.org>
16220
16221         New Unicode character properties, from Unicode 5.2.0.
16222         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16223         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16224         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16225         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16226         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16227         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16228         uc_is_property_cased, uc_is_property_case_ignorable,
16229         uc_is_property_changes_when_lowercased,
16230         uc_is_property_changes_when_uppercased,
16231         uc_is_property_changes_when_titlecased,
16232         uc_is_property_changes_when_casefolded,
16233         uc_is_property_changes_when_casemapped): New declarations.
16234         * lib/unictype/pr_byname.gperf: Add the new properties.
16235         * modules/unictype/property-byname (Depends-on): Depend on the new
16236         properties modules.
16237         * modules/unictype/property-all (Depends-on): Likewise.
16238         * MODULES.html.sh (Unicode string functions): Add
16239         unictype/property-case-ignorable, unictype/property-cased,
16240         unictype/property-changes-when-casefolded,
16241         unictype/property-changes-when-casemapped,
16242         unictype/property-changes-when-lowercased,
16243         unictype/property-changes-when-titlecased,
16244         unictype/property-changes-when-uppercased.
16245
16246         New module 'unictype/property-changes-when-casemapped'.
16247         * modules/unictype/property-changes-when-casemapped: New file.
16248         * lib/unictype/pr_changes_when_casemapped.c: New file.
16249         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16250         generated by gen-uni-tables.
16251         * modules/unictype/property-changes-when-casemapped-tests: New file.
16252         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16253         automatically generated by gen-uni-tables.
16254
16255         New module 'unictype/property-changes-when-casefolded'.
16256         * modules/unictype/property-changes-when-casefolded: New file.
16257         * lib/unictype/pr_changes_when_casefolded.c: New file.
16258         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16259         generated by gen-uni-tables.
16260         * modules/unictype/property-changes-when-casefolded-tests: New file.
16261         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16262         automatically generated by gen-uni-tables.
16263
16264         New module 'unictype/property-changes-when-titlecased'.
16265         * modules/unictype/property-changes-when-titlecased: New file.
16266         * lib/unictype/pr_changes_when_titlecased.c: New file.
16267         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16268         generated by gen-uni-tables.
16269         * modules/unictype/property-changes-when-titlecased-tests: New file.
16270         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16271         automatically generated by gen-uni-tables.
16272
16273         New module 'unictype/property-changes-when-uppercased'.
16274         * modules/unictype/property-changes-when-uppercased: New file.
16275         * lib/unictype/pr_changes_when_uppercased.c: New file.
16276         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16277         generated by gen-uni-tables.
16278         * modules/unictype/property-changes-when-uppercased-tests: New file.
16279         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16280         automatically generated by gen-uni-tables.
16281
16282         New module 'unictype/property-changes-when-lowercased'.
16283         * modules/unictype/property-changes-when-lowercased: New file.
16284         * lib/unictype/pr_changes_when_lowercased.c: New file.
16285         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16286         generated by gen-uni-tables.
16287         * modules/unictype/property-changes-when-lowercased-tests: New file.
16288         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16289         automatically generated by gen-uni-tables.
16290
16291         New module 'unictype/property-case-ignorable'.
16292         * modules/unictype/property-case-ignorable: New file.
16293         * lib/unictype/pr_case_ignorable.c: New file.
16294         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16295         by gen-uni-tables.
16296         * modules/unictype/property-case-ignorable-tests: New file.
16297         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16298         generated by gen-uni-tables.
16299
16300         New module 'unictype/property-cased'.
16301         * modules/unictype/property-cased: New file.
16302         * lib/unictype/pr_cased.c: New file.
16303         * lib/unictype/pr_cased.h: New file, automatically generated by
16304         gen-uni-tables.
16305         * modules/unictype/property-cased-tests: New file.
16306         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16307         gen-uni-tables.
16308
16309 2011-01-09  Bruno Haible  <bruno@clisp.org>
16310
16311         Update to Unicode 5.2.0.
16312         * lib/gen-uni-tables.c (output_predicate, output_category,
16313         output_combclass, output_bidi_category, output_decimal_digit_test,
16314         output_decimal_digit, output_digit_test, output_digit,
16315         output_numeric_test, output_numeric, output_mirror, output_scripts,
16316         output_scripts_byname, output_blocks, output_ident_category): Fix
16317         comment header.
16318         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16319         get_wbp.
16320         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16321         items.
16322         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16323         Changes_When_Lowercased, Changes_When_Uppercased,
16324         Changes_When_Titlecased, Changes_When_Casefolded,
16325         Changes_When_Casemapped.
16326         (is_property_alphabetic, is_property_default_ignorable_code_point):
16327         Update for Unicode 5.2.0.
16328         (is_property_cased, is_property_case_ignorable,
16329         is_property_changes_when_lowercased,
16330         is_property_changes_when_uppercased,
16331         is_property_changes_when_titlecased,
16332         is_property_changes_when_casefolded,
16333         is_property_changes_when_casemapped): New functions.
16334         (output_properties): Output also the properties cased, case_ignorable,
16335         changes_when_lowercased, changes_when_uppercased,
16336         changes_when_titlecased, changes_when_casefolded,
16337         changes_when_casemapped.
16338         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16339         Unicode TR#11 revision 17 -> 19.
16340         (LBP_CP): New enumeration value.
16341         (LBP_*): Adjust values accordingly.
16342         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16343         TR#14 revision 22 -> 24.
16344         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16345         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16346         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16347         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16348         is_WBP_MIDLETTER.
16349         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16350         the code1 and code2 of each composition rule.
16351         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16352         * lib/unicase/ignorable.h: Likewise.
16353         * lib/unicase/tocasefold.h: Likewise.
16354         * lib/unicase/tolower.h: Likewise.
16355         * lib/unicase/totitle.h: Likewise.
16356         * lib/unicase/toupper.h: Likewise.
16357         * lib/unictype/bidi_of.h: Likewise.
16358         * lib/unictype/blocks.h: Likewise.
16359         * lib/unictype/categ_C.h: Likewise.
16360         * lib/unictype/categ_Cf.h: Likewise.
16361         * lib/unictype/categ_Cn.h: Likewise.
16362         * lib/unictype/categ_L.h: Likewise.
16363         * lib/unictype/categ_Ll.h: Likewise.
16364         * lib/unictype/categ_Lm.h: Likewise.
16365         * lib/unictype/categ_Lo.h: Likewise.
16366         * lib/unictype/categ_Lu.h: Likewise.
16367         * lib/unictype/categ_M.h: Likewise.
16368         * lib/unictype/categ_Mc.h: Likewise.
16369         * lib/unictype/categ_Mn.h: Likewise.
16370         * lib/unictype/categ_N.h: Likewise.
16371         * lib/unictype/categ_Nd.h: Likewise.
16372         * lib/unictype/categ_Nl.h: Likewise.
16373         * lib/unictype/categ_No.h: Likewise.
16374         * lib/unictype/categ_P.h: Likewise.
16375         * lib/unictype/categ_Pd.h: Likewise.
16376         * lib/unictype/categ_Po.h: Likewise.
16377         * lib/unictype/categ_S.h: Likewise.
16378         * lib/unictype/categ_Sc.h: Likewise.
16379         * lib/unictype/categ_So.h: Likewise.
16380         * lib/unictype/categ_of.h: Likewise.
16381         * lib/unictype/combining.h: Likewise.
16382         * lib/unictype/ctype_alnum.h: Likewise.
16383         * lib/unictype/ctype_alpha.h: Likewise.
16384         * lib/unictype/ctype_graph.h: Likewise.
16385         * lib/unictype/ctype_lower.h: Likewise.
16386         * lib/unictype/ctype_print.h: Likewise.
16387         * lib/unictype/ctype_punct.h: Likewise.
16388         * lib/unictype/ctype_upper.h: Likewise.
16389         * lib/unictype/decdigit.h: Likewise.
16390         * lib/unictype/digit.h: Likewise.
16391         * lib/unictype/numeric.h: Likewise.
16392         * lib/unictype/pr_alphabetic.h: Likewise.
16393         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16394         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16395         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16396         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16397         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16398         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16399         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16400         * lib/unictype/pr_combining.h: Likewise.
16401         * lib/unictype/pr_composite.h: Likewise.
16402         * lib/unictype/pr_currency_symbol.h: Likewise.
16403         * lib/unictype/pr_dash.h: Likewise.
16404         * lib/unictype/pr_decimal_digit.h: Likewise.
16405         * lib/unictype/pr_deprecated.h: Likewise.
16406         * lib/unictype/pr_diacritic.h: Likewise.
16407         * lib/unictype/pr_extender.h: Likewise.
16408         * lib/unictype/pr_grapheme_base.h: Likewise.
16409         * lib/unictype/pr_grapheme_extend.h: Likewise.
16410         * lib/unictype/pr_grapheme_link.h: Likewise.
16411         * lib/unictype/pr_id_continue.h: Likewise.
16412         * lib/unictype/pr_id_start.h: Likewise.
16413         * lib/unictype/pr_ideographic.h: Likewise.
16414         * lib/unictype/pr_ignorable_control.h: Likewise.
16415         * lib/unictype/pr_logical_order_exception.h: Likewise.
16416         * lib/unictype/pr_lowercase.h: Likewise.
16417         * lib/unictype/pr_numeric.h: Likewise.
16418         * lib/unictype/pr_other_alphabetic.h: Likewise.
16419         * lib/unictype/pr_punctuation.h: Likewise.
16420         * lib/unictype/pr_sentence_terminal.h: Likewise.
16421         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16422         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16423         * lib/unictype/pr_unified_ideograph.h: Likewise.
16424         * lib/unictype/pr_uppercase.h: Likewise.
16425         * lib/unictype/pr_xid_continue.h: Likewise.
16426         * lib/unictype/pr_xid_start.h: Likewise.
16427         * lib/unictype/pr_zero_width.h: Likewise.
16428         * lib/unictype/scripts.h: Likewise.
16429         * lib/unictype/scripts_byname.gperf: Likewise.
16430         * lib/unictype/sy_java_ident.h: Likewise.
16431         * lib/unigbrk/gbrkprop.h: Likewise.
16432         * lib/unilbrk/lbrkprop1.h: Likewise.
16433         * lib/unilbrk/lbrkprop2.h: Likewise.
16434         * lib/unilbrk/lbrktables.h: Likewise.
16435         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16436         LBP_CP. Implement rule LB30.
16437         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16438         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16439         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16440         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16441         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16442         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16443         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16444         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16445         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16446         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16447         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16448         bits instead of 16 bits in the code1 and code2 of each composition
16449         rule.
16450         (uc_composition): Update for Unicode 5.2.0.
16451         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16452         * lib/uninorm/decomposition-table2.h: Likewise.
16453         * lib/uniwbrk/wbrkprop.h: Likewise.
16454         * tests/unicase/test-cased.c: Likewise.
16455         * tests/unicase/test-ignorable.c: Likewise.
16456         * tests/unicase/test-uc_tolower.c: Likewise.
16457         * tests/unicase/test-uc_totitle.c: Likewise.
16458         * tests/unicase/test-uc_toupper.c: Likewise.
16459         * tests/unictype/test-categ_C.c: Likewise.
16460         * tests/unictype/test-categ_Cf.c: Likewise.
16461         * tests/unictype/test-categ_Cn.c: Likewise.
16462         * tests/unictype/test-categ_L.c: Likewise.
16463         * tests/unictype/test-categ_Ll.c: Likewise.
16464         * tests/unictype/test-categ_Lm.c: Likewise.
16465         * tests/unictype/test-categ_Lo.c: Likewise.
16466         * tests/unictype/test-categ_Lu.c: Likewise.
16467         * tests/unictype/test-categ_M.c: Likewise.
16468         * tests/unictype/test-categ_Mc.c: Likewise.
16469         * tests/unictype/test-categ_Mn.c: Likewise.
16470         * tests/unictype/test-categ_N.c: Likewise.
16471         * tests/unictype/test-categ_Nd.c: Likewise.
16472         * tests/unictype/test-categ_Nl.c: Likewise.
16473         * tests/unictype/test-categ_No.c: Likewise.
16474         * tests/unictype/test-categ_P.c: Likewise.
16475         * tests/unictype/test-categ_Pd.c: Likewise.
16476         * tests/unictype/test-categ_Po.c: Likewise.
16477         * tests/unictype/test-categ_S.c: Likewise.
16478         * tests/unictype/test-categ_Sc.c: Likewise.
16479         * tests/unictype/test-categ_So.c: Likewise.
16480         * tests/unictype/test-ctype_alnum.c: Likewise.
16481         * tests/unictype/test-ctype_alpha.c: Likewise.
16482         * tests/unictype/test-ctype_graph.c: Likewise.
16483         * tests/unictype/test-ctype_lower.c: Likewise.
16484         * tests/unictype/test-ctype_print.c: Likewise.
16485         * tests/unictype/test-ctype_punct.c: Likewise.
16486         * tests/unictype/test-ctype_upper.c: Likewise.
16487         * tests/unictype/test-decdigit.h: Likewise.
16488         * tests/unictype/test-digit.h: Likewise.
16489         * tests/unictype/test-numeric.h: Likewise.
16490         * tests/unictype/test-pr_alphabetic.c: Likewise.
16491         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16492         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16493         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16494         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16495         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16496         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16497         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16498         * tests/unictype/test-pr_combining.c: Likewise.
16499         * tests/unictype/test-pr_composite.c: Likewise.
16500         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16501         * tests/unictype/test-pr_dash.c: Likewise.
16502         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16503         * tests/unictype/test-pr_deprecated.c: Likewise.
16504         * tests/unictype/test-pr_diacritic.c: Likewise.
16505         * tests/unictype/test-pr_extender.c: Likewise.
16506         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16507         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16508         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16509         * tests/unictype/test-pr_id_continue.c: Likewise.
16510         * tests/unictype/test-pr_id_start.c: Likewise.
16511         * tests/unictype/test-pr_ideographic.c: Likewise.
16512         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16513         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16514         * tests/unictype/test-pr_lowercase.c: Likewise.
16515         * tests/unictype/test-pr_numeric.c: Likewise.
16516         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16517         * tests/unictype/test-pr_punctuation.c: Likewise.
16518         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16519         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16520         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16521         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16522         * tests/unictype/test-pr_uppercase.c: Likewise.
16523         * tests/unictype/test-pr_xid_continue.c: Likewise.
16524         * tests/unictype/test-pr_xid_start.c: Likewise.
16525         * tests/unictype/test-pr_zero_width.c: Likewise.
16526         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16527         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16528         changed behaviour: line breaking is now disallowed between a letter
16529         or '=' and '('.
16530         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16531         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16532         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16533         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16534         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16535         lib/uniwidth/width.c.
16536         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16537         without comments, but with the original copyright notice.
16538         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16539         changes.
16540         * lib/unictype/categ_Cc.h: Likewise.
16541         * lib/unictype/categ_Co.h: Likewise.
16542         * lib/unictype/categ_Cs.h: Likewise.
16543         * lib/unictype/categ_Lt.h: Likewise.
16544         * lib/unictype/categ_Me.h: Likewise.
16545         * lib/unictype/categ_Pc.h: Likewise.
16546         * lib/unictype/categ_Pe.h: Likewise.
16547         * lib/unictype/categ_Pf.h: Likewise.
16548         * lib/unictype/categ_Pi.h: Likewise.
16549         * lib/unictype/categ_Ps.h: Likewise.
16550         * lib/unictype/categ_Sk.h: Likewise.
16551         * lib/unictype/categ_Sm.h: Likewise.
16552         * lib/unictype/categ_Z.h: Likewise.
16553         * lib/unictype/categ_Zl.h: Likewise.
16554         * lib/unictype/categ_Zp.h: Likewise.
16555         * lib/unictype/categ_Zs.h: Likewise.
16556         * lib/unictype/ctype_blank.h: Likewise.
16557         * lib/unictype/ctype_cntrl.h: Likewise.
16558         * lib/unictype/ctype_digit.h: Likewise.
16559         * lib/unictype/ctype_space.h: Likewise.
16560         * lib/unictype/ctype_xdigit.h: Likewise.
16561         * lib/unictype/mirror.h: Likewise.
16562         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16563         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16564         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16565         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16566         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16567         * lib/unictype/pr_bidi_control.h: Likewise.
16568         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16569         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16570         * lib/unictype/pr_bidi_pdf.h: Likewise.
16571         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16572         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16573         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16574         * lib/unictype/pr_format_control.h: Likewise.
16575         * lib/unictype/pr_hex_digit.h: Likewise.
16576         * lib/unictype/pr_hyphen.h: Likewise.
16577         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16578         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16579         * lib/unictype/pr_iso_control.h: Likewise.
16580         * lib/unictype/pr_join_control.h: Likewise.
16581         * lib/unictype/pr_left_of_pair.h: Likewise.
16582         * lib/unictype/pr_line_separator.h: Likewise.
16583         * lib/unictype/pr_math.h: Likewise.
16584         * lib/unictype/pr_non_break.h: Likewise.
16585         * lib/unictype/pr_not_a_character.h: Likewise.
16586         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16587         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16588         * lib/unictype/pr_other_id_continue.h: Likewise.
16589         * lib/unictype/pr_other_id_start.h: Likewise.
16590         * lib/unictype/pr_other_lowercase.h: Likewise.
16591         * lib/unictype/pr_other_math.h: Likewise.
16592         * lib/unictype/pr_other_uppercase.h: Likewise.
16593         * lib/unictype/pr_paired_punctuation.h: Likewise.
16594         * lib/unictype/pr_paragraph_separator.h: Likewise.
16595         * lib/unictype/pr_pattern_syntax.h: Likewise.
16596         * lib/unictype/pr_pattern_white_space.h: Likewise.
16597         * lib/unictype/pr_private_use.h: Likewise.
16598         * lib/unictype/pr_quotation_mark.h: Likewise.
16599         * lib/unictype/pr_radical.h: Likewise.
16600         * lib/unictype/pr_soft_dotted.h: Likewise.
16601         * lib/unictype/pr_space.h: Likewise.
16602         * lib/unictype/pr_titlecase.h: Likewise.
16603         * lib/unictype/pr_variation_selector.h: Likewise.
16604         * lib/unictype/pr_white_space.h: Likewise.
16605         * lib/unictype/sy_c_ident.h: Likewise.
16606         * lib/unictype/sy_c_whitespace.h: Likewise.
16607         * lib/unictype/sy_java_whitespace.h: Likewise.
16608         * modules/uni*/*: Bump version number of expected libunistring version.
16609         Reported by Simon Josefsson.
16610
16611 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16612
16613         useless-if-before-free: fix typo in --help and make the internal,
16614         automatic version date update process work once again.
16615         --help output contained a NUL character instead of the
16616         backslash-zero that was intended.  Also, the "must lie within
16617         the first 8 lines" line is on line 9, and hence not getting
16618         automatically updated.
16619         * build-aux/useless-if-before-free: Fix the former by adding a
16620         backslash, and the latter by condensing the three lines of what-it-does
16621         to a single line, leaving one line of slack for the future.
16622
16623 2011-01-09  Bruno Haible  <bruno@clisp.org>
16624
16625         uniwidth/width: Fix width of U+1D173..U+1D17A.
16626         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16627         symbolic_width, output_width_property_test): New functions.
16628         (main): Invoke output_nonspacing_property, output_width_property_test.
16629         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16630         U+1D173..U+1D17A.
16631         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16632         1.
16633         * modules/uniwidth/*: Bump version number of expected libunistring
16634         version.
16635         * modules/unilbrk/*: Likewise.
16636
16637 2011-01-08  Bruno Haible  <bruno@clisp.org>
16638
16639         uninorm tests: Preserve copyright of Unicode data file.
16640         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16641         Mention modifications.
16642
16643 2011-01-08  Bruno Haible  <bruno@clisp.org>
16644
16645         gen-uni-tables: Prepare for Unicode 5.2.0.
16646         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16647         (debug_output_lbp, output_lbp): Update.
16648
16649 2011-01-08  Bruno Haible  <bruno@clisp.org>
16650
16651         unilbrk: Clarify gen-uni-tables.c code.
16652         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16653         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16654         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16655
16656 2011-01-07  Bruno Haible  <bruno@clisp.org>
16657
16658         strtod: Restore errno when successfully parsing Infinity or NaN.
16659         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16660         restore the original errno.
16661
16662 2011-01-07  Bruno Haible  <bruno@clisp.org>
16663
16664         remove test: Avoid failure on HP-UX 11.
16665         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16666
16667 2011-01-07  Bruno Haible  <bruno@clisp.org>
16668
16669         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16670         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16671         error code.
16672
16673 2011-01-07  Pádraig Brady <P@draigBrady.com>
16674
16675         ignore-value: fixup comments, and add Eric Blake
16676         as an author since he rewrote the macros.
16677         * lib/ignore-value.h (ignore_value):  State that
16678         we now support aggregates.  Also specify exactly
16679         when the GCC warn_unused_result feature was added.
16680
16681 2011-01-06  Eric Blake  <eblake@redhat.com>
16682
16683         ignore-value: support aggregate types
16684         * lib/ignore-value.h (ignore_value): Provide separate gcc
16685         definition.
16686         * modules/ignore-value-tests: New test module.
16687         * tests/test-ignore-value.c: New test.
16688
16689         maint.mk: improve sc_prohibit_strcmp regex
16690         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16691         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16692         definition of STRNEQ.
16693
16694         signal: work around Haiku issue with SIGBUS
16695         * lib/siglist.h: Add comment.
16696         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16697         strsignal's favoring of SIGSEGV.
16698         * tests/test-signal.c (main): Avoid test failure.
16699         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16700         Reported by Scott McCreary.
16701
16702         maint.mk: add pre-release check to ensure submodule commits are public
16703         * top/maint.mk (public-submodule-commit): New rule.
16704         (submodule-checks): New variable.
16705         (alpha beta stable): Depend on the variable.
16706
16707 2011-01-05  Pádraig Brady <P@draigBrady.com>
16708         and Jim Meyering  <meyering@redhat.com>
16709
16710         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16711         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16712         (ATTRIBUTE_DEPRECATED): Define.
16713         (_ignore_case): New function.
16714         (ignore_value): New macro, to replace the old function.
16715         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16716         * modules/ignore-value (Depends-on): Add stdint.
16717
16718 2011-01-04  Eric Blake  <eblake@redhat.com>
16719
16720         doc: regenerate INSTALL
16721         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16722         @firstparagraphindent support, now that autoconf dropped it.
16723         (INSTALL_PRELUDE): Reinstate old macro.
16724         * doc/install.texi: Resync from autoconf.
16725         * doc/INSTALL: Reflect recent autoconf update.
16726         * doc/INSTALL.ISO: Likewise.
16727         * doc/INSTALL.UTF-8: Likewise.
16728         Reported by Karl Berry.
16729
16730 2011-01-04  Bruce Korb  <address@hidden>
16731
16732         git-version-gen: avoid a sub-shell
16733         * build-aux/git-version-gen: Redirect stderr in `...` via
16734         "exec 2>...", rather than via an added sub-shell.
16735
16736 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16737
16738         git-version-gen: use (...) rather than sh -c '...'
16739         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16740         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16741
16742 2011-01-03  Jim Meyering  <meyering@redhat.com>
16743
16744         git-version-gen: convert leading TABs to spaces
16745         * build-aux/git-version-gen: Expand leading TABs.
16746
16747         git-version-gen: handle failed "git rev-list"
16748         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16749         from git and proceeding as if it had succeeded but printed no SHA1
16750         checksums, suppress the diagnostic and handle the failure.
16751         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16752
16753         git-version-gen: include command name in one more diagnostic
16754         * build-aux/git-version-gen: When the required .tarball-version file
16755         was missing or unreadable, you might see the diagnostic from "cat",
16756         but no trace of the name of the invoking script.  Now, you still see
16757         the diagnostic from cat, but also get one from "git-version-gen: ".
16758         Inspired by a patch from Bruce Korb.
16759
16760         update-copyright: adjust test to match changed code
16761         * tests/test-update-copyright.sh: Change test's expected output
16762         to match new actual output.
16763
16764 2011-01-02  Bruno Haible  <bruno@clisp.org>
16765
16766         getlogin_r: Avoid test failure on HP-UX 11.
16767         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16768         ERANGE when the second argument is zero.
16769         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16770         portability problem.
16771
16772 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16773
16774         * build-aux/update-copyright: doc Simon's changes
16775
16776 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16777
16778         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16779         environment variable.
16780
16781 2011-01-02  Bruno Haible  <bruno@clisp.org>
16782
16783         unigbrk: Avoid gcc warnings.
16784         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16785         unused variable.
16786         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16787         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16788         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16789         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16790         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16791         Change type of first argument to 'const char *'.
16792         (main): Remove unused variable.
16793         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16794         type of first argument to 'const char *'.
16795         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16796         Likewise.
16797         (main): Change type of variable 's'.
16798         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16799         to 'int'.
16800
16801 2011-01-02  Bruno Haible  <bruno@clisp.org>
16802
16803         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16804         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16805         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16806         bug.
16807         * lib/pwrite.c: Undo 2010-12-31 patch.
16808         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16809
16810 2011-01-02  Bruno Haible  <bruno@clisp.org>
16811
16812         pread: Fix test whether it works.
16813         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16814
16815 2011-01-02  Bruno Haible  <bruno@clisp.org>
16816
16817         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16818         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16819         ends in "6". Don't require a specific month name. Try also the locale
16820         names found on HP-UX 11 and Solaris 7.
16821
16822 2011-01-02  Bruno Haible  <bruno@clisp.org>
16823
16824         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16825         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16826         C linkage.
16827         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16828
16829 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16830
16831         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16832         for consistency, since the "cluster" term is not used elsewhere.
16833         * lib/unigbrk.in.h: Update name.
16834         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16835         * lib/unigbrk/u16-grapheme-next.c: Update name.
16836         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16837         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16838         * lib/unigbrk/u32-grapheme-next.c: Update name.
16839         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16840         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16841         * lib/unigbrk/u8-grapheme-next.c: Update name.
16842         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16843         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16844         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16845         Suggested by Bruno Haible.
16846
16847 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16848
16849         Remove module 'u8-grapheme-len' as too redundant with
16850         'u8-grapheme-next'.
16851         * modules/unigbrk/u8-grapheme-len: Delete file.
16852         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16853         * lib/unigbrk.in.h: Remove prototype for deleted function.
16854         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16855         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16856
16857         Remove module 'u16-grapheme-len' as too redundant with
16858         'u16-grapheme-next'.
16859         * modules/unigbrk/u16-grapheme-len: Delete file.
16860         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16861         * lib/unigbrk.in.h: Remove prototype for deleted function.
16862         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16863         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16864
16865         Remove module 'u32-grapheme-len' as too redundant with
16866         'u32-grapheme-next'.
16867         * modules/unigbrk/u32-grapheme-len: Delete file.
16868         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16869         * lib/unigbrk.in.h: Remove prototype for deleted function.
16870         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16871         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16872
16873         Suggested by Bruno Haible.
16874
16875 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16876
16877         * unigbrk.in.h: Fix typo: "ben" => "been".
16878         Reported by Bruno Haible.
16879
16880 2011-01-01  Jim Meyering  <meyering@redhat.com>
16881
16882         maint: update almost all copyright ranges to include 2011
16883         Run the new "make update-copyright" rule.
16884
16885 2011-01-01  Jim Meyering  <meyering@redhat.com>
16886
16887         maint: update-copyright: exempt doc/INSTALL*
16888         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16889         since they are generated.  Suggested by Bruno Haible.
16890
16891 2011-01-01  Jim Meyering  <meyering@redhat.com>
16892
16893         maint: refine the update-copyright rule
16894         * Makefile (update-copyright): Also exclude any file that includes
16895         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16896         code that merely generates the comment.
16897
16898 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16899
16900         New module 'u8-grapheme-len'.
16901         * modules/unigbrk/u8-grapheme-len: New file.
16902         * modules/unigbrk/u8-grapheme-len-tests: New file.
16903         * lib/unigbrk.in.h: Add prototype for new function.
16904         * lib/unigbrk/u8-grapheme-len.c: New file.
16905         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16906
16907         New module 'u16-grapheme-len'.
16908         * modules/unigbrk/u16-grapheme-len: New file.
16909         * modules/unigbrk/u16-grapheme-len-tests: New file.
16910         * lib/unigbrk.in.h: Add prototype for new function.
16911         * lib/unigbrk/u16-grapheme-len.c: New file.
16912         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16913
16914         New module 'u32-grapheme-len'.
16915         * modules/unigbrk/u32-grapheme-len: New file.
16916         * modules/unigbrk/u32-grapheme-len-tests: New file.
16917         * lib/unigbrk.in.h: Add prototype for new function.
16918         * lib/unigbrk/u32-grapheme-len.c: New file.
16919         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16920
16921         New module 'u8-grapheme-next'.
16922         * modules/unigbrk/u8-grapheme-next: New file.
16923         * modules/unigbrk/u8-grapheme-next-tests: New file.
16924         * lib/unigbrk.in.h: Add prototype for new function.
16925         * lib/unigbrk/u8-grapheme-next.c: New file.
16926         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16927
16928         New module 'u16-grapheme-next'.
16929         * modules/unigbrk/u16-grapheme-next: New file.
16930         * modules/unigbrk/u16-grapheme-next-tests: New file.
16931         * lib/unigbrk.in.h: Add prototype for new function.
16932         * lib/unigbrk/u16-grapheme-next.c: New file.
16933         * tests/unigbrk/test-u16-grapheme-next.c: New file.
16934
16935         New module 'u32-grapheme-next'.
16936         * modules/unigbrk/u32-grapheme-next: New file.
16937         * modules/unigbrk/u32-grapheme-next-tests: New file.
16938         * lib/unigbrk.in.h: Add prototype for new function.
16939         * lib/unigbrk/u32-grapheme-next.c: New file.
16940         * tests/unigbrk/test-u32-grapheme-next.c: New file.
16941
16942         New module 'u8-grapheme-prev'.
16943         * modules/unigbrk/u8-grapheme-prev: New file.
16944         * modules/unigbrk/u8-grapheme-prev-tests: New file.
16945         * lib/unigbrk.in.h: Add prototype for new function.
16946         * lib/unigbrk/u8-grapheme-prev.c: New file.
16947         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
16948
16949         New module 'u16-grapheme-prev'.
16950         * modules/unigbrk/u16-grapheme-prev: New file.
16951         * modules/unigbrk/u16-grapheme-prev-tests: New file.
16952         * lib/unigbrk.in.h: Add prototype for new function.
16953         * lib/unigbrk/u16-grapheme-prev.c: New file.
16954         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
16955
16956         New module 'u32-grapheme-prev'.
16957         * modules/unigbrk/u32-grapheme-prev: New file.
16958         * modules/unigbrk/u32-grapheme-prev-tests: New file.
16959         * lib/unigbrk.in.h: Add prototype for new function.
16960         * lib/unigbrk/u32-grapheme-prev.c: New file.
16961         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
16962
16963         New module 'u8-grapheme-breaks'.
16964         * modules/unigbrk/u8-grapheme-breaks: New file.
16965         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
16966         * lib/unigbrk.in.h: Add prototype for new function.
16967         * lib/unigbrk/u8-grapheme-breaks.c: New file.
16968         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
16969
16970         New module 'u16-grapheme-breaks'.
16971         * modules/unigbrk/u16-grapheme-breaks: New file.
16972         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
16973         * lib/unigbrk.in.h: Add prototype for new function.
16974         * lib/unigbrk/u16-grapheme-breaks.c: New file.
16975         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
16976
16977         New module 'u32-grapheme-breaks'.
16978         * modules/unigbrk/u32-grapheme-breaks: New file.
16979         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
16980         * lib/unigbrk.in.h: Add prototype for new function.
16981         * lib/unigbrk/u32-grapheme-breaks.c: New file.
16982         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
16983
16984         New module 'ulc-grapheme-breaks'.
16985         * modules/unigbrk/ulc-grapheme-breaks: New file.
16986         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
16987         * m4/locale-ar.m4: New file.
16988         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
16989         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
16990         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
16991
16992 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16993
16994         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
16995         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
16996         modified how this file was generated before I initially submitted
16997         the module, but failed to regenerate it.  This meant that several
16998         of the level2 entries were wrong.
16999         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17000         Remove the division-by-2 that is folded into the table now that
17001         gbrkprop.h has been regenerated properly.  Now -1 entries are
17002         handled correctly.
17003
17004         New module 'unigbrk/uc-gbrk-prop-tests'.
17005         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17006         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17007         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17008         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17009
17010 2011-01-01  Bruno Haible  <bruno@clisp.org>
17011
17012         Avoid use of hexadecimal escapes.
17013         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17014         instead of hexadecimal escapes.
17015
17016 2011-01-01  Jim Meyering  <meyering@redhat.com>
17017
17018         maint: new rule to update copyright year ranges
17019         * Makefile (update-copyright): New rule.
17020
17021         maint: indent with TABs in Makefile
17022         * Makefile: Expand leading sequences of spaces to TABs
17023
17024         version-etc: update the copyright year it reports
17025         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17026
17027 2010-12-31  Bruno Haible  <bruno@clisp.org>
17028
17029         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17030         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17031         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17032         zero.
17033
17034 2010-12-31  Bruno Haible  <bruno@clisp.org>
17035
17036         pwrite: Work around HP-UX 11.11 bug.
17037         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17038         works and set REPLACE_PWRITE if not.
17039         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17040         function.
17041         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17042
17043 2010-12-31  Bruno Haible  <bruno@clisp.org>
17044
17045         pread: Work around HP-UX 11 bugs.
17046         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17047         and set REPLACE_PREAD if not.
17048         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17049
17050 2010-12-31  Eric Blake  <eblake@redhat.com>
17051
17052         nl_langinfo: fix YESEXPR on Irix 6.5
17053         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17054         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17055         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17056         it.
17057
17058 2010-12-31  Bruno Haible  <bruno@clisp.org>
17059
17060         iconv: Document HP-UX 11 bug.
17061         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17062
17063 2010-12-31  Bruno Haible  <bruno@clisp.org>
17064
17065         ldexpl: Fix link error on HP-UX 11.
17066         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17067         LDEXPL_LIBM, using $ISNANL_LIBM.
17068
17069 2010-12-31  Eric Blake  <eblake@redhat.com>
17070
17071         ftello: avoid compilation failure with SunStudio c89
17072         * lib/ftello.c (ftello): Use lseek, not llseek.
17073
17074         tests: avoid failing coreutils tests on cygwin
17075         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17076         (create_exe_shims_): Return 0 when skipping.
17077
17078 2010-12-31  Bruno Haible  <bruno@clisp.org>
17079
17080         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17081         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17082
17083 2010-12-31  Bruno Haible  <bruno@clisp.org>
17084
17085         waitpid: Fix link error in C++ mode.
17086         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17087
17088 2010-12-31  Bruno Haible  <bruno@clisp.org>
17089
17090         isnan: Use GCC built-ins when possible.
17091         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17092         __builtin_isnan.
17093         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17094         (isnan): Define using GCC built-ins for GCC >= 4.0.
17095
17096 2010-12-31  Bruno Haible  <bruno@clisp.org>
17097
17098         isnand: Fix mistake.
17099         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17100         __builtin_isnand.
17101
17102 2010-12-31  Bruno Haible  <bruno@clisp.org>
17103
17104         open: Avoid C++ error on HP-UX 11.
17105         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17106
17107 2010-12-31  Bruno Haible  <bruno@clisp.org>
17108
17109         time_r: Add missing declarations on HP-UX 11.
17110         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17111         instead of HAVE_LOCALTIME_R.
17112         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17113         HAVE_LOCALTIME_R always.
17114         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17115         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17116         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17117         HAVE_LOCALTIME_R.
17118         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17119         * doc/posix-functions/localtime_r.texi: Likewise.
17120
17121 2010-12-29  Eric Blake  <eblake@redhat.com>
17122
17123         mountlist: tweak previous commit
17124         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17125         Reported by Paul Eggert.
17126
17127         mountlist: fix local drive detection on cygwin
17128         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17129         that works for cygwin.
17130
17131 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17132
17133         ftoastr, snprintf: ftoastr + snprintf module
17134         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17135         since the snprintf module now should be good enough here.
17136         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17137         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17138         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17139         GNULIB_SNPRINTF only for the test directory, and the latter
17140         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17141         seems to suffice by itself.
17142
17143 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17144
17145         alloca: one step towards thread-safety
17146         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17147         need for a static variable.  All callers changed.  This does not
17148         make the alloca replacement thread-safe, but it's one step.
17149
17150         tests: minor indenting change
17151         * tests/init.sh: Sync from coreutils housekeeping patch
17152         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17153         to keep lines within 80 columns.
17154
17155 2010-12-28  Jim Meyering  <meyering@redhat.com>
17156
17157         regex: don't infloop on persistent failing calloc
17158         * lib/regexec.c (build_trtable): Return failure indication upon
17159         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17160         In glibc, this was fixed for version 2.13:
17161         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17162
17163 2010-12-28  Bruno Haible  <bruno@clisp.org>
17164             Paul Eggert <eggert@cs.ucla.edu>
17165
17166         linkat: Make implementation robust against system behaviour variations.
17167         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17168         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17169         way, and to -2 if it needs a generic runtime test.
17170         * lib/linkat.c (solaris_optimized_link_immediate,
17171         solaris_optimized_link_follow): New functions.
17172         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17173         (check_same_link): Use it.
17174
17175 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17176
17177         New module 'unigbrk/base'.
17178         * modules/unigbrk/base: New file.
17179         * lib/unigbrk.in.h: New file.
17180
17181         New module 'unigbrk/uc-gbrk-prop'.
17182         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17183         * modules/unigbrk/uc-gbrk-prop: New file.
17184         * lib/unigbrk/gbrkprop.h: New file.
17185         * lib/unigbrk/uc-gbrk-prop.c: New file.
17186
17187         New module 'unigbrk/uc-is-grapheme-break'.
17188         * modules/unigbrk/uc-is-grapheme-break: New file.
17189         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17190         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17191         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17192         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17193         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17194
17195         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17196
17197 2010-12-27  Bruno Haible  <bruno@clisp.org>
17198
17199         linkat test: Avoid failure on Solaris 11 2010-11.
17200         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17201
17202 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17203
17204         utimens: work around glibc rounding bug on more platforms
17205         * lib/utimens.c (fdutimens): Work around rounding bug even if
17206         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17207         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17208
17209 2010-12-27  Bruno Haible  <bruno@clisp.org>
17210
17211         select tests: Improve comments.
17212         * tests/test-select.c (do_select): Add comments.
17213
17214 2010-12-27  Bruno Haible  <bruno@clisp.org>
17215
17216         select tests: Safer way of handling timeout.
17217         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17218         at every invocation.
17219
17220 2010-12-27  Bruno Haible  <bruno@clisp.org>
17221
17222         select tests: Use 'bool' where appropriate.
17223         * tests/test-select.c (connect_to_socket): Change argument type to
17224         'bool'.
17225
17226 2010-12-27  Bruno Haible  <bruno@clisp.org>
17227
17228         select tests: Use existing modules.
17229         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17230         (configure.ac): Don't test for unistd.h.
17231         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17232         declared in <unistd.h>.
17233
17234 2010-12-27  Bruno Haible  <bruno@clisp.org>
17235
17236         mbrtowc: Work around a Solaris 7 bug.
17237         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17238         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17239         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17240         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17241         MBRTOWC_NULL_ARG1_BUG.
17242         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17243         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17244         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17245         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17246
17247 2010-12-27  Jim Meyering  <meyering@redhat.com>
17248
17249         read-file.c: tweak syntax
17250         * lib/read-file.c (fread_file): Remove space after "*" in function
17251         definitions.
17252
17253 2010-12-27  Bruno Haible  <bruno@clisp.org>
17254
17255         times test: Avoid gcc warnings on OSF/1.
17256         * tests/test-times.c (main): Cast printf arguments from clock_t to
17257         'long int'.
17258
17259 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17260
17261         utimens: work around glibc rounding bug on older Linux kernels
17262         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17263         on Linux with a glibc whose utimes might not work, then work
17264         around a longstanding glibc bug involving rounding rather than
17265         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17266         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17267
17268 2010-12-26  Bruno Haible  <bruno@clisp.org>
17269
17270         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17271         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17272         _GL_CXXALIAS_SYS.
17273         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17274
17275 2010-12-26  Bruno Haible  <bruno@clisp.org>
17276
17277         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17278         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17279         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17280         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17281         looking for the declaration.
17282         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17283         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17284         problem.
17285         * doc/posix-functions/inet_pton.texi: Likewise.
17286
17287 2010-12-26  Bruno Haible  <bruno@clisp.org>
17288
17289         arpa_inet: Use the common idioms with C++ support.
17290         * lib/arpa_inet.in.h: Include c++defs.h.
17291         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17292         support.
17293         * modules/arpa_inet (Depends-on): Add c++defs.
17294         (Makefile.am): Substitute the contents of c++defs.h.
17295         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17296         * modules/arpa_inet-c++-tests: New file.
17297         * tests/test-arpa_inet-c++.cc: New file.
17298
17299 2010-12-25  Bruno Haible  <bruno@clisp.org>
17300
17301         Fix more C++ link errors on Solaris 8.
17302         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17303         $(LIB_EACCESS).
17304         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17305         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17306         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17307         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17308         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17309
17310 2010-12-25  Bruno Haible  <bruno@clisp.org>
17311
17312         printf-posix: Fix link error when a non-GCC compiler is used.
17313         * lib/stdio.in.h (printf): When not using GCC, override printf
17314         correctly.
17315         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17316
17317 2010-12-25  Bruno Haible  <bruno@clisp.org>
17318
17319         strerror_r-posix: Update doc.
17320         * doc/posix-functions/strerror_r.texi: Update doc about the return
17321         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17322
17323 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17324
17325         utimens: simplify the logic of the previous change
17326         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17327         This should not affect whether the test succeeds or fails.
17328
17329         utimens: configure better on hosts with NFS clock skew
17330         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17331         uses the clock of the local host.  It might use the clock of the
17332         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17333         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17334
17335 2010-12-25  Bruno Haible  <bruno@clisp.org>
17336
17337         ptsname test: Avoid failure on Solaris.
17338         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17339         open a pseudo-terminal; don't use BSD-style ptys.
17340         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17341
17342 2010-12-25  Bruno Haible  <bruno@clisp.org>
17343
17344         ptsname: Avoid ERANGE failure on some systems.
17345         * lib/ptsname.c (buffer): Increase size.
17346
17347 2010-12-25  Bruno Haible  <bruno@clisp.org>
17348
17349         rename, renameat: Avoid test failures at NFS mounted locations.
17350         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17351         so that subsequent mkdir calls succeed.
17352
17353 2010-12-25  Bruno Haible  <bruno@clisp.org>
17354
17355         iswblank: Fix C++ link error on Solaris 8.
17356         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17357         _GL_FUNCDECL_SYS.
17358
17359 2010-12-25  Bruno Haible  <bruno@clisp.org>
17360
17361         unistd: Fix C++ link error on Solaris 8.
17362         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17363
17364 2010-12-25  Bruno Haible  <bruno@clisp.org>
17365
17366         readlink doc: Mention an old glibc bug.
17367         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17368
17369 2010-12-25  Bruno Haible  <bruno@clisp.org>
17370
17371         fcntl-h: Fix for use of C++ on glibc systems.
17372         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17373         also on glibc systems in C++ mode.
17374         Reported by Gary V. Vaughan <gary@gnu.org>.
17375
17376 2010-12-25  Bruno Haible  <bruno@clisp.org>
17377
17378         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17379         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17380
17381 2010-12-25  Bruno Haible  <bruno@clisp.org>
17382
17383         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17384         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17385         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17386         test whether truncl works according to ISO C 99 with IEC 60559.
17387         * m4/truncl-ieee.m4: New file.
17388         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17389         m4/signbit.m4.
17390         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17391
17392 2010-12-25  Bruno Haible  <bruno@clisp.org>
17393
17394         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17395         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17396         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17397         test whether ceill works according to ISO C 99 with IEC 60559.
17398         * m4/ceill-ieee.m4: New file.
17399         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17400         m4/signbit.m4.
17401         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17402
17403 2010-12-25  Bruno Haible  <bruno@clisp.org>
17404
17405         Ensure all prerequisites of <wchar.h> are included.
17406         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17407         before <wchar.h>.
17408         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17409         gl_MBRLEN_NUL_RETVAL): Likewise.
17410         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17411         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17412         AC_FUNC_MBRTOWC): Likewise.
17413         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17414         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17415         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17416         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17417         Likewise.
17418         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17419         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17420         (gl_WCHAR_H): Improve comments.
17421         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17422
17423 2010-12-25  Bruno Haible  <bruno@clisp.org>
17424
17425         strtok_r: Fix C syntax error in autoconf macro.
17426         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17427         characters in test program.
17428
17429 2010-12-24  Bruno Haible  <bruno@clisp.org>
17430
17431         ceil, trunc, round: Fix gcc warnings.
17432         * lib/ceil.c (MIN): Undefine before redefining.
17433         * lib/trunc.c (MIN): Likewise.
17434         * lib/round.c (MIN): Likewise.
17435         Include <math.h> first.
17436
17437 2010-12-24  Bruno Haible  <bruno@clisp.org>
17438
17439         select tests: Avoid failures on OSF/1 5.1.
17440         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17441         failure of closing the last socket; it may fail with ECONNRESET.
17442
17443 2010-12-24  Eric Blake  <eblake@redhat.com>
17444
17445         stdint: avoid HP-UX 10.20 preprocessor bug
17446         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17447         than #if.
17448         * tests/test-floor2.c (main): Likewise.
17449         Reported by Peter O'Gorman.
17450
17451         pipe: make obsoletion transition easier
17452         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17453         * modules/pipe (Files): Include revived file.
17454         (Include): Drop reference, to mirror getdate's behavior.
17455
17456 2010-12-24  Bruno Haible  <bruno@clisp.org>
17457
17458         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17459         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17460         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17461         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17462
17463 2010-12-24  Bruno Haible  <bruno@clisp.org>
17464
17465         gethostname: Ensure declaration on NonStop Kernel.
17466         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17467         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17468
17469 2010-12-24  Bruno Haible  <bruno@clisp.org>
17470
17471         sys_select: Ensure all necessary types on NonStop Kernel.
17472         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17473         include <sys/time.h>.
17474         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17475         NonStop Kernel.
17476         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17477
17478 2010-12-24  Bruno Haible  <bruno@clisp.org>
17479
17480         sys_select: Remove unneeded include.
17481         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17482         have <sys/select.h>.
17483
17484 2010-12-24  Bruno Haible  <bruno@clisp.org>
17485
17486         gethostname: Provide a fallback for HOST_NAME_MAX.
17487         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17488         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17489         instead.
17490         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17491
17492 2010-12-24  Bruno Haible  <bruno@clisp.org>
17493
17494         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17495         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17496         (SA_RESTART): Likewise.
17497         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17498
17499 2010-12-24  Bruno Haible  <bruno@clisp.org>
17500
17501         signal: Define NSIG.
17502         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17503         * tests/test-signal.c (nsig): New variable.
17504         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17505
17506 2010-12-24  Bruno Haible  <bruno@clisp.org>
17507
17508         rename, renameat: Avoid test failures on OSF/1 5.1.
17509         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17510         alternative error codes.
17511         * tests/test-renameat.c (main): Likewise.
17512
17513 2010-12-24  Bruno Haible  <bruno@clisp.org>
17514
17515         *printf: Detect large precisions bug on Solaris 10/SPARC.
17516         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17517         by Paul Eggert.
17518         * tests/test-snprintf-posix.h (test_function): Add this test code here
17519         too.
17520         * tests/test-sprintf-posix.h (test_function): Likewise.
17521         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17522         * tests/test-vasprintf-posix.c (test_function): Likewise.
17523         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17524         around by gnulib.
17525         * doc/posix-functions/printf.texi: Likewise.
17526         * doc/posix-functions/snprintf.texi: Likewise.
17527         * doc/posix-functions/sprintf.texi: Likewise.
17528         * doc/posix-functions/vfprintf.texi: Likewise.
17529         * doc/posix-functions/vprintf.texi: Likewise.
17530         * doc/posix-functions/vsnprintf.texi: Likewise.
17531         * doc/posix-functions/vsprintf.texi: Likewise.
17532         * doc/posix-functions/dprintf.texi: Undo last commit.
17533         * doc/posix-functions/vdprintf.texi: Likewise.
17534
17535 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17536
17537         tests: port test-fdutimensat.c to Solaris 8
17538         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17539         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17540         On Solaris 8, it fails with errno == ENOSYS, because there is no
17541         futimens (so it can't use the fd), and there is no lutimens (so it
17542         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17543
17544         vsnprintf: make more consistent with snprintf; doc fixes
17545
17546         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17547         the byte count return problem was promoted from the snprintf-posix
17548         to the snprintf module.
17549         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17550         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17551         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17552         * tests/test-snprintf.c (main): Check the byte count returned.
17553         * tests/test-vsnprintf.c (main): Likewise.
17554
17555 2010-12-23  Eric Blake  <eblake@redhat.com>
17556
17557         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17558         * modules/sigpipe (License): Relax license.
17559
17560 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17561
17562         doc: document Solaris printf bug with large float precisions
17563         * doc/posix-functions/dprintf.texi (dprintf):
17564         * doc/posix-functions/fprintf.texi (fprintf):
17565         * doc/posix-functions/printf.texi (printf):
17566         * doc/posix-functions/snprintf.texi (snprintf):
17567         * doc/posix-functions/sprintf.texi (sprintf):
17568         * doc/posix-functions/vdprintf.texi (vdprintf):
17569         * doc/posix-functions/vfprintf.texi (vfprintf):
17570         * doc/posix-functions/vprintf.texi (vprintf):
17571         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17572         * doc/posix-functions/vsprintf.texi (vsprintf):
17573         Mention that these functions mishandle large floating point
17574         precisions on Solaris 10.  The same bug is also present in Solaris
17575         8, and I assume earlier.  This causes "cd gnulib-tests; make
17576         check" to fail on Solaris 8 (and I assume, later) when building
17577         the latest coreutils, in test-vasprintf-posix's call to
17578         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17579         the wide flavors (e.g., wprintf) so this patch just updates the
17580         documentation for the narrow ones.
17581
17582         test-posixtm.c: add two tests
17583         * tests/test-posixtm.c: Add two tests, to highlight the
17584         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17585         around this bug; this is merely to document it.
17586
17587 2010-12-22  Bruno Haible  <bruno@clisp.org>
17588
17589         getlogin_r: Work around portability problem on OSF/1.
17590         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17591         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17592         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17593         test for a truncated result.
17594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17595         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17596         * modules/getlogin_r (Depends-on): Add memchr.
17597         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17598
17599 2010-12-22  Bruno Haible  <bruno@clisp.org>
17600
17601         ptsname: Avoid test failure on OSF/1 5.1.
17602         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17603         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17604         (same_slave): New function.
17605         (main): Use it to compare ptsname's result with the expected file name.
17606
17607 2010-12-22  Bruno Haible  <bruno@clisp.org>
17608
17609         Port extended stdio modules to HP NonStop Kernel.
17610         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17611         macros.
17612         * lib/fbufmode.c: Update comments.
17613         * lib/fflush.c: Likewise.
17614         * lib/fpurge.c: Likewise.
17615         * lib/freadable.c: Likewise.
17616         * lib/freadahead.c: Likewise.
17617         * lib/freading.c: Likewise.
17618         * lib/freadptr.c: Likewise.
17619         * lib/freadseek.c: Likewise.
17620         * lib/fseeko.c: Likewise.
17621         * lib/fseterr.c: Likewise.
17622         * lib/fwritable.c: Likewise.
17623         * lib/fwriting.c: Likewise.
17624         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17625
17626 2010-12-22  Bruno Haible  <bruno@clisp.org>
17627
17628         ttyname_r: Work around bug on OSF/1 5.1.
17629         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17630         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17631         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17632         present.
17633         * lib/ttyname_r.c (ttyname_r): Update comments.
17634
17635 2010-12-22  Bruno Haible  <bruno@clisp.org>
17636
17637         round: Implement result sign according to IEEE 754.
17638         * lib/round.c (MIN, MINUS_ZERO): New macros.
17639         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17640         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17641         * tests/test-round-ieee.c (main): Likewise.
17642         * tests/test-roundl-ieee.c (main): Likewise.
17643
17644         trunc: Implement result sign according to IEEE 754.
17645         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17646         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17647         * tests/test-trunc2.c: Include minus-zero.h.
17648         (MINUS_ZERO): New macro.
17649         (trunc_reference): Keep in sync with lib/trunc.c.
17650         * tests/test-truncf2.c: Include minus-zero.h.
17651         (MINUS_ZERO): New macro.
17652         (truncf_reference): Keep in sync with lib/trunc.c.
17653         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17654         * tests/test-trunc-ieee.c (main): Likewise.
17655         * tests/test-truncl-ieee.c (main): Likewise.
17656
17657         ceil: Implement result sign according to IEEE 754.
17658         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17659         (FUNC): Return -0.0 for -1 < x < 0.
17660         * tests/test-ceil2.c: Include minus-zero.h.
17661         (MINUS_ZERO): New macro.
17662         (ceil_reference): Keep in sync with lib/ceil.c.
17663         * tests/test-ceilf2.c: Include minus-zero.h.
17664         (MINUS_ZERO): New macro.
17665         (ceilf_reference): Keep in sync with lib/ceil.c.
17666         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17667         * tests/test-ceil-ieee.c (main): Likewise.
17668         * tests/test-ceill-ieee.c (main): Likewise.
17669
17670         floor: Implement result sign according to IEEE 754.
17671         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17672         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17673         * tests/test-floorf2.c (floorf_reference): Likewise.
17674         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17675         * tests/test-floor-ieee.c (main): Likewise.
17676         * tests/test-floorl-ieee.c (main): Likewise.
17677
17678 2010-12-22  Bruno Haible  <bruno@clisp.org>
17679
17680         getaddrinfo: Update doc.
17681         * doc/posix-functions/gai_strerror.texi: Return type is also different
17682         on AIX and HP-UX.
17683
17684 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17685
17686         getaddrinfo, inet_ntop: Update doc for Solaris.
17687         * doc/posix-functions/gai_strerror.texi: Return type is also an
17688         issue on Solaris 9 and earlier.
17689         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17690         on Solaris 10 and earlier.
17691
17692 2010-12-21  Bruno Haible  <bruno@clisp.org>
17693
17694         New module 'roundl-ieee'.
17695         * modules/roundl-ieee: New file.
17696         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17697         test whether roundl works according to ISO C 99 with IEC 60559.
17698         * m4/roundl-ieee.m4: New file.
17699         * modules/roundl-ieee-tests: New file.
17700         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17701         * tests/test-roundl.c (main): Remove signbit tests.
17702         * modules/roundl-tests (Depends-on): Remove signbit.
17703         * doc/posix-functions/roundl.texi: Mention the new module.
17704
17705 2010-12-21  Bruno Haible  <bruno@clisp.org>
17706
17707         New module 'truncl-ieee'.
17708         * modules/truncl-ieee: New file.
17709         * modules/truncl-ieee-tests: New file.
17710         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17711         * tests/test-truncl.c (main): Remove signbit tests.
17712         * modules/truncl-tests (Depends-on): Remove signbit.
17713         * doc/posix-functions/truncl.texi: Mention the new module.
17714
17715 2010-12-21  Bruno Haible  <bruno@clisp.org>
17716
17717         New module 'ceill-ieee'.
17718         * modules/ceill-ieee: New file.
17719         * modules/ceill-ieee-tests: New file.
17720         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17721         * tests/test-ceill.c (main): Remove signbit tests.
17722         * modules/ceill-tests (Depends-on): Remove signbit.
17723         * doc/posix-functions/ceill.texi: Mention the new module.
17724
17725 2010-12-21  Bruno Haible  <bruno@clisp.org>
17726
17727         New module 'floorl-ieee'.
17728         * modules/floorl-ieee: New file.
17729         * modules/floorl-ieee-tests: New file.
17730         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17731         * tests/test-floorl.c (main): Remove signbit tests.
17732         * modules/floorl-tests (Depends-on): Remove signbit.
17733         * doc/posix-functions/floorl.texi: Mention the new module.
17734
17735 2010-12-21  Bruno Haible  <bruno@clisp.org>
17736
17737         New module 'round-ieee'.
17738         * modules/round-ieee: New file.
17739         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17740         whether round works according to ISO C 99 with IEC 60559.
17741         * m4/round-ieee.m4: New file.
17742         * modules/round-ieee-tests: New file.
17743         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17744         * tests/test-round1.c (main): Remove signbit tests.
17745         * modules/round-tests (Depends-on): Remove 'signbit'.
17746         * doc/posix-functions/round.texi: Mention the new module.
17747
17748 2010-12-21  Bruno Haible  <bruno@clisp.org>
17749
17750         New module 'trunc-ieee'.
17751         * modules/trunc-ieee: New file.
17752         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17753         whether trunc works according to ISO C 99 with IEC 60559.
17754         * m4/trunc-ieee.m4: New file.
17755         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17757         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17758         * modules/trunc-ieee-tests: New file.
17759         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17760         * tests/test-trunc1.c (main): Remove signbit tests.
17761         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17762         * doc/posix-functions/trunc.texi: Mention the new module.
17763
17764 2010-12-21  Bruno Haible  <bruno@clisp.org>
17765
17766         New module 'ceil-ieee'.
17767         * modules/ceil-ieee: New file.
17768         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17769         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17770         ISO C 99 with IEC 60559.
17771         * m4/ceil-ieee.m4: New file.
17772         * modules/ceil (Files): Add lib/ceil.c.
17773         (Depends-on): Add 'float'.
17774         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17775         * lib/math.in.h (ceil): New declaration.
17776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17777         REPLACE_CEIL.
17778         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17779         * modules/ceil-ieee-tests: New file.
17780         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17781         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17782         * doc/posix-functions/ceil.texi: Mention the new module.
17783
17784 2010-12-21  Bruno Haible  <bruno@clisp.org>
17785
17786         New module 'floor-ieee'.
17787         * modules/floor-ieee: New file.
17788         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17789         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17790         ISO C 99 with IEC 60559.
17791         * m4/floor-ieee.m4: New file.
17792         * modules/floor (Files): Add lib/floor.c.
17793         (Depends-on): Add 'float'.
17794         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17795         * lib/math.in.h (floor): New declaration.
17796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17797         REPLACE_FLOOR.
17798         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17799         * modules/floor-ieee-tests: New file.
17800         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17801         * tests/test-math-c++.cc: Check the signature of 'floor'.
17802         * doc/posix-functions/floor.texi: Mention the new module.
17803
17804 2010-12-21  Bruno Haible  <bruno@clisp.org>
17805
17806         New module 'roundf-ieee'.
17807         * modules/roundf-ieee: New file.
17808         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17809         test whether roundf works according to ISO C 99 with IEC 60559.
17810         * m4/roundf-ieee.m4: New file.
17811         * modules/roundf-ieee-tests: New file.
17812         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17813         * tests/test-roundf1.c (main): Remove signbit tests.
17814         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17815         * doc/posix-functions/roundf.texi: Mention the new module.
17816
17817 2010-12-21  Bruno Haible  <bruno@clisp.org>
17818
17819         New module 'truncf-ieee'.
17820         * modules/truncf-ieee: New file.
17821         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17822         test whether truncf works according to ISO C 99 with IEC 60559.
17823         * m4/truncf-ieee.m4: New file.
17824         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17826         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17827         * modules/truncf-ieee-tests: New file.
17828         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17829         * tests/test-truncf1.c (main): Remove signbit tests.
17830         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17831         * doc/posix-functions/truncf.texi: Mention the new module.
17832
17833 2010-12-21  Bruno Haible  <bruno@clisp.org>
17834
17835         New module 'ceilf-ieee'.
17836         * modules/ceilf-ieee: New file.
17837         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17838         test whether ceilf works according to ISO C 99 with IEC 60559.
17839         * m4/ceilf-ieee.m4: New file.
17840         * modules/ceilf-ieee-tests: New file.
17841         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17842         * tests/test-ceilf1.c (main): Remove signbit tests.
17843         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17844         * doc/posix-functions/ceilf.texi: Mention the new module.
17845
17846 2010-12-21  Bruno Haible  <bruno@clisp.org>
17847
17848         New module 'floorf-ieee'.
17849         * modules/floorf-ieee: New file.
17850         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17851         test whether floorf works according to ISO C 99 with IEC 60559.
17852         * m4/floorf-ieee.m4: New file.
17853         * modules/floorf-ieee-tests: New file.
17854         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17855         * tests/test-floorf1.c (main): Remove signbit tests.
17856         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17857         * doc/posix-functions/floorf.texi: Mention the new module.
17858
17859 2010-12-21  Bruno Haible  <bruno@clisp.org>
17860
17861         Support for minus zero in autoconf macros.
17862         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17863         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17864         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17865         * tests/minus-zero.h: Update comments.
17866
17867 2010-12-21  Bruno Haible  <bruno@clisp.org>
17868
17869         Tests for module 'ceil'.
17870         * modules/ceil-tests: New file.
17871         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17872         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17873
17874 2010-12-21  Bruno Haible  <bruno@clisp.org>
17875
17876         Tests for module 'floor'.
17877         * modules/floor-tests: New file.
17878         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17879         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17880
17881 2010-12-21  Bruno Haible  <bruno@clisp.org>
17882
17883         math: Fix indentation.
17884         * lib/math.in.h (floorf): Fix indentation.
17885
17886 2010-12-21  Bruno Haible  <bruno@clisp.org>
17887
17888         Fix cross-compilation guesses on Solaris.
17889         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17890         not match "solaris2.10".
17891         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17892         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17893         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17894
17895 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17896
17897         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17898         This fixes a problem observed with the latest coreutils snapshot
17899         that caused a test to fail on Solaris 8.  src/csplit.c's call
17900         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17901         earlier, instead of returning the number of bytes that would have
17902         been generated; this causes csplit to incorrectly report memory
17903         exhaustion.
17904         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17905         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17906         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17907         comments to match.
17908         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17909         Fix typo in matching older versions of Solaris: "solaris2.10"
17910         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17911         only for guessing while cross-compiling.
17912         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17913
17914 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17915
17916         ftoastr: fix comment again
17917         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17918         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17919         Also, simplify example a bit by using flags = 0.
17920
17921 2010-12-20  Bruno Haible  <bruno@clisp.org>
17922
17923         round*, trunc*: Update documentation regarding glibc.
17924         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17925         * doc/posix-functions/round.texi: Likewise.
17926         * doc/posix-functions/roundl.texi: Likewise.
17927         * doc/posix-functions/truncf.texi: Likewise.
17928         * doc/posix-functions/trunc.texi: Likewise.
17929         * doc/posix-functions/truncl.texi: Likewise.
17930
17931 2010-12-20  Bruno Haible  <bruno@clisp.org>
17932
17933         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
17934         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
17935         * doc/posix-functions/round.texi: Likewise.
17936         * doc/posix-functions/roundl.texi: Likewise.
17937
17938 2010-12-20  Bruno Haible  <bruno@clisp.org>
17939
17940         ttyname_r: Add missing declaration on HP-UX 11.
17941         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
17942         HAVE_TTYNAME_R.
17943         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
17944         declared. Set HAVE_TTYNAME_R always.
17945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17946         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
17947         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
17948         HAVE_TTYNAME_R.
17949         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
17950
17951 2010-12-20  Bruno Haible  <bruno@clisp.org>
17952
17953         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
17954         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
17955         * doc/posix-functions/getlogin_r.texi: Likewise.
17956         * tests/test-getlogin.c: Include <errno.h>.
17957         (main): Avoid test failure on HP-UX 11.11.
17958         * tests/test-getlogin_r.c (main): Likewise.
17959
17960 2010-12-20  Bruno Haible  <bruno@clisp.org>
17961
17962         getlogin_r: Add missing declaration on HP-UX 11.
17963         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
17964         declared also when it exists as a function.
17965         * doc/posix-functions/getlogin_r.texi: Document this workaround.
17966
17967 2010-12-20  Bruno Haible  <bruno@clisp.org>
17968
17969         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
17970         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
17971         through wcrtomb.
17972
17973 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17974
17975         ftoastr: fix comment
17976         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17977         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
17978
17979 2010-12-19  Bruno Haible  <bruno@clisp.org>
17980
17981         isnan: Ensure it is a macro.
17982         * lib/math.in.h (isnan): Define as a macro if not already a macro.
17983         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
17984         Solaris.
17985
17986 2010-12-19  Bruno Haible  <bruno@clisp.org>
17987
17988         ldexpl test: Fix link error on OSF/1 5.1.
17989         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
17990
17991 2010-12-19  Bruno Haible  <bruno@clisp.org>
17992
17993         wctype: Make it work in C++ mode on OSF/1 5.1.
17994         * lib/wctype.in.h (iswblank): Declare but not define here.
17995         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
17996         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
17997         * modules/wctype (Files): Add lib/iswblank.c.
17998
17999 2010-12-19  Bruno Haible  <bruno@clisp.org>
18000
18001         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18002         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18003         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18004
18005 2010-12-19  Bruno Haible  <bruno@clisp.org>
18006
18007         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18008         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18009         _POSIX_PII_SOCKET.
18010         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18011         * doc/posix-functions/recvfrom.texi: Likewise.
18012         * doc/posix-functions/send.texi: Likewise.
18013         * doc/posix-functions/sendto.texi: Likewise.
18014
18015 2010-12-19  Bruno Haible  <bruno@clisp.org>
18016
18017         tcgetsid: Add missing declaration on OSF/1 5.1.
18018         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18019         HAVE_TCGETSID.
18020         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18021         Don't set HAVE_TCGETSID.
18022         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18023         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18024         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18025         HAVE_TCGETSID.
18026         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18027
18028 2010-12-19  Bruno Haible  <bruno@clisp.org>
18029
18030         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18031         * lib/stdio.in.h: During the include_next statement, let recursive
18032         includes of this file include only the system header file.
18033
18034 2010-12-19  Bruno Haible  <bruno@clisp.org>
18035
18036         iconv_open: Fix regression from 2010-12-04.
18037         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18038         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18039
18040 2010-12-19  Bruno Haible  <bruno@clisp.org>
18041
18042         stdbool test: Avoid a gcc warning.
18043         * tests/test-stdbool.c (main): Fail if e1 is false.
18044         Reported by Jim Meyering.
18045
18046 2010-12-19  Jim Meyering  <meyering@redhat.com>
18047
18048         setenv: restore to working order
18049         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18050         mistakenly removed.
18051         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18052         HAVE_SETENV.
18053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18054         HAVE_SETENV.
18055
18056 2010-12-19  Bruno Haible  <bruno@clisp.org>
18057
18058         Document some different function declarations on OSF/1 5.1.
18059         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18060         * doc/posix-functions/inet_ntop.texi: Likewise.
18061         * doc/posix-functions/gethostname.texi: Likewise.
18062         * lib/unistd.in.h (gethostname): Update comment.
18063
18064 2010-12-19  Bruno Haible  <bruno@clisp.org>
18065
18066         doc: Mention vasprintf-posix module.
18067         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18068         the 'vasprintf-posix' module.
18069         * doc/glibc-functions/vasprintf.texi: Likewise.
18070
18071 2010-12-19  Bruno Haible  <bruno@clisp.org>
18072
18073         unsetenv: Add missing declaration on OSF/1 5.1.
18074         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18075         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18076         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18078         not HAVE_UNSETENV.
18079         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18080         HAVE_UNSETENV.
18081         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18082
18083 2010-12-19  Bruno Haible  <bruno@clisp.org>
18084
18085         setenv: Add missing declaration on OSF/1 5.1.
18086         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18087         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18088         declared. Don't set HAVE_SETENV.
18089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18090         not HAVE_SETENV.
18091         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18092         HAVE_SETENV.
18093         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18094
18095 2010-12-19  Bruno Haible  <bruno@clisp.org>
18096
18097         nl_langinfo tests: Avoid gcc warning.
18098         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18099
18100 2010-12-19  Bruno Haible  <bruno@clisp.org>
18101
18102         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18103         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18104         _GL_CXXALIAS_SYS.
18105
18106 2010-12-19  Bruno Haible  <bruno@clisp.org>
18107
18108         stdbool: Relax test.
18109         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18110         address to 'bool' work in static initializer, for compilers other than
18111         GCC.
18112
18113 2010-12-19  Bruno Haible  <bruno@clisp.org>
18114
18115         ftello: Add missing declaration on OSF/1 5.1.
18116         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18117         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18118         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18119         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18120         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18121
18122 2010-12-19  Bruno Haible  <bruno@clisp.org>
18123
18124         fseeko: Add missing declaration on OSF/1 5.1.
18125         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18126         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18128         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18129         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18130
18131 2010-12-19  Bruno Haible  <bruno@clisp.org>
18132
18133         fchdir: Add missing declaration on OSF/1 5.1.
18134         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18137         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18138         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18139
18140 2010-12-19  Bruno Haible  <bruno@clisp.org>
18141
18142         relocatable-prog-wrapper: Separate from relocatable-prog.
18143         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18144         uninstall-relocwrapper rule here.
18145         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18146         Reported by Ian Beckwith <ianb@erislabs.net>.
18147
18148 2010-12-19  Bruno Haible  <bruno@clisp.org>
18149
18150         unistr/u8-mbsnlen: Add missing dependency.
18151         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18152         Reported by Ian Beckwith <ianb@erislabs.net>.
18153
18154 2010-12-19  Bruno Haible  <bruno@clisp.org>
18155
18156         iconv: Make it possible again to use this module without 'iconv-h'.
18157         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18158         if it is not defined.
18159         Reported by Ian Beckwith <ianb@erislabs.net>.
18160
18161 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18162
18163         acl: port to Solaris 8 when copying from tmpfs to ufs
18164         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18165         error number.  Problem observed on Solaris 8 with latest
18166         coreutils, with "mv A B", where A is on a tmpfs file system and B
18167         is on a ufs file system.  This caused coreutils' mv/part-symlink
18168         test to fail.
18169
18170         tests: set fail=0 at start
18171         * tests/init.sh (setup_): Move fail=0 initialization here ...
18172         (mktempd_): ... from here, so that tests can rely on fail being
18173         set to 0 initially.  This fixes a problem in coreutils; see:
18174         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18175
18176 2010-12-18  Bruno Haible  <bruno@clisp.org>
18177
18178         memmem-simple: Stylistic changes.
18179         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18180         Fix preprocessor directive indentation.
18181
18182 2010-12-15  Pádraig Brady <P@draigBrady.com>
18183
18184         memmem, memmem-simple: reorganize and expand empty needle check
18185         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18186         functional checks to memmem-simple so that one has a fully functional
18187         memmem by using just this module.
18188         Restrict the performance only check to the memmem module.
18189         Also expand the empty needle check to ensure the correct
18190         pointer is returned, not just a non NULL pointer.
18191         * doc/glibc-functions/memmem.texi: Rearrange the portability
18192         documentation to correlate with the rearranged checks.
18193         Clarify exactly how the memmem and memmem-simple modules
18194         relate to each other.
18195
18196 2010-12-15  Pádraig Brady <P@draigBrady.com>
18197             Bruno Haible  <bruno@clisp.org>
18198
18199         Improve cross-compilation guesses for uClibc.
18200         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18201         that uClibc does not have the glibc bug.
18202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18203         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18204
18205 2010-12-14  Eric Blake  <eblake@redhat.com>
18206
18207         configmake: provide fallbacks for oldest supported autotools
18208         * m4/configmake.m4: New file.
18209         * modules/configmake (Files): Ship it.
18210         (configure.ac): Use it to guarantee fallbacks.
18211
18212 2010-12-13  Pádraig Brady <P@draigBrady.com>
18213
18214         read-file: Improve handling of large files
18215         * lib/read-file.c (fread_file): Minimize realloc()s
18216         for regular files, and better manage sizes around SIZE_MAX.
18217
18218 2010-12-13  Eric Blake  <eblake@redhat.com>
18219
18220         cloexec, fcntl: relax license
18221         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18222         consent from all contributors.
18223         * modules/fcntl (License): Likewise.
18224
18225 2010-12-10  Bruno Haible  <bruno@clisp.org>
18226
18227         Tests for module 'pipe-posix'.
18228         * modules/pipe-posix-tests: New file.
18229         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18230
18231 2010-12-10  Bruno Haible  <bruno@clisp.org>
18232
18233         pipe-posix: Make it work in C++ mode.
18234         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18235         (pipe): Use common idiom, not a macro definition.
18236         * lib/pipe.c: New file.
18237         * m4/pipe.m4: New file.
18238         * modules/pipe-posix (Description): Enhance.
18239         (Files): Add lib/pipe.c, m4/pipe.m4.
18240         (configure.ac): Invoke gl_FUNC_PIPE.
18241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18242         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18243         * tests/test-unistd-c++.cc: Check the signature of pipe.
18244
18245 2010-12-10  Bruno Haible  <bruno@clisp.org>
18246
18247         Rename module 'pipe' to 'spawn-pipe'.
18248         * modules/spawn-pipe: New file, renamed from modules/pipe.
18249         (Files, configure.ac, Makefile.am): Update.
18250         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18251         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18252         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18253         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18254         "spawn-pipe.h" instead of "pipe.h".
18255         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18256         to gl_SPAWN_PIPE.
18257         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18258         (Files, Makefile.am): Update.
18259         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18260         Update.
18261         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18262         Include "spawn-pipe.h" instead of "pipe.h".
18263         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18264         * lib/javacomp.c: Likewise.
18265         * lib/javaversion.c: Likewise.
18266         * lib/pipe-filter-gi.c: Likewise.
18267         * lib/pipe-filter-ii.c: Likewise.
18268         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18269         * modules/javacomp (Depends-on): Likewise.
18270         * modules/javaversion (Depends-on): Likewise.
18271         * modules/pipe-filter-gi (Depends-on): Likewise.
18272         * modules/pipe-filter-ii (Depends-on): Likewise.
18273         * MODULES.html.sh (Executing programs): Update.
18274         * NEWS: Mention the change.
18275
18276 2010-12-10  Eric Blake  <eblake@redhat.com>
18277
18278         pipe-posix: new module
18279         * modules/pipe-posix: New file.
18280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18281         (gl_UNISTD_H): Check for declaration.
18282         * modules/unistd (Makefile.am): Substitute it.
18283         * lib/unistd.in.h (pipe): Provide it for mingw.
18284         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18285         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18286
18287 2010-12-07  Bruno Haible  <bruno@clisp.org>
18288
18289         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18290         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18291         u8_strcmp_gnu.
18292         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18293
18294 2010-12-06  Bruno Haible  <bruno@clisp.org>
18295
18296         Update internal documentation.
18297         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18298
18299 2010-12-04  Bruno Haible  <bruno@clisp.org>
18300
18301         Put more information about failed tests into the test return codes.
18302         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18303         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18304         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18305         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18306         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18307         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18308         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18309         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18310         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18312         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18313         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18314         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18315         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18316         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18317         returns a bit mask.
18318         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18319         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18320         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18321         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18322         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18323         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18324         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18326         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18327         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18328         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18329         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18330         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18331         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18332         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18333         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18334         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18335         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18336         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18337         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18338         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18339         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18340         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18341         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18342         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18343         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18344         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18345         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18346         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18347         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18348         gl_PRINTF_PRECISION): Likewise.
18349         * m4/regex.m4 (gl_REGEX): Likewise.
18350         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18351         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18352         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18353         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18354         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18355         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18356         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18357         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18358         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18359         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18360         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18361         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18362         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18363         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18364         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18365         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18366         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18367         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18369         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18370         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18371         enumerated value.
18372         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18373
18374 2010-12-04  Bruno Haible  <bruno@clisp.org>
18375
18376         Update for Solaris 11 2010-11.
18377         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18378         Express, released in November 2010.
18379
18380 2010-12-04  Bruno Haible  <bruno@clisp.org>
18381
18382         nproc: Relax license.
18383         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18384         and Paul Eggert.
18385         Requested by Ludovic Courtès <ludo@gnu.org>.
18386
18387 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18388
18389         utimecmp: fine-grained src to nearby coarse-grained dest
18390
18391         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18392         and the source is on a file system with higher-resolution time
18393         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18394         not work, and the time stamps are close together, the algorithm to
18395         determine the exact resolution from the read-back mtime was buggy:
18396         it had a "!=" where it should have had an "==".  This bug has been
18397         in the code ever since it was introduced to gnulib.
18398         Problem reported by Dan Jacobson in
18399         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18400
18401 2010-11-30  Bruno Haible  <bruno@clisp.org>
18402
18403         strerror_r-posix: Fix autoconf test.
18404         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18405
18406 2010-11-28  Bruno Haible  <bruno@clisp.org>
18407             Paul Eggert  <eggert@cs.ucla.edu>
18408
18409         Tests for module 'getdomainname'.
18410         * modules/getdomainname-tests: New file.
18411         * tests/test-getdomainname.c: New file, based on
18412         tests/test-gethostname.c.
18413
18414 2010-11-28  Bruno Haible  <bruno@clisp.org>
18415             Paul Eggert  <eggert@cs.ucla.edu>
18416
18417         getdomainname: Use the system function when possible.
18418         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18419         (getdomainname): Replace if needed. Provide the declaration if it is
18420         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18421         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18422         (getdomainname): When the system has getdomainname, call the system
18423         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18424         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18425         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18426         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18427         the function if its second argument is of type 'int' or if it is found
18428         in libnsl.
18429         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18430         <sys/systeminfo.h> and sysinfo().
18431         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18433         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18434         HAVE_GETDOMAINNAME.
18435         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18436         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18437         * doc/glibc-functions/getdomainname.texi: Document the problems with
18438         the getdomainname declaration.
18439
18440 2010-11-28  Bruno Haible  <bruno@clisp.org>
18441
18442         sys_socket: Ensure ss_family field on AIX.
18443         * lib/sys_socket.in.h (ss_family): New macro definition.
18444         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18445         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18446         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18447         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18448         * modules/sys_socket (Makefile.am): Substitute
18449         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18450         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18451
18452 2010-11-27  Bruno Haible  <bruno@clisp.org>
18453
18454         readline: Improve configure output.
18455         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18456         "checking for readline..." result understandable.
18457
18458 2010-11-27  Bruno Haible  <bruno@clisp.org>
18459
18460         *printf-posix: Detect a bug on Solaris 10/x86.
18461         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18462         for floating-point output.
18463         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18464         directive.
18465         * tests/test-snprintf-posix.h (test_function): Likewise.
18466         * tests/test-sprintf-posix.h (test_function): Likewise.
18467         * tests/test-vasprintf-posix.c (test_function): Likewise.
18468         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18469         * doc/posix-functions/printf.texi: Likewise.
18470         * doc/posix-functions/snprintf.texi: Likewise.
18471         * doc/posix-functions/sprintf.texi: Likewise.
18472         * doc/posix-functions/vfprintf.texi: Likewise.
18473         * doc/posix-functions/vprintf.texi: Likewise.
18474         * doc/posix-functions/vsnprintf.texi: Likewise.
18475         * doc/posix-functions/vsprintf.texi: Likewise.
18476         * doc/glibc-functions/obstack_printf.texi: Likewise.
18477         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18478
18479 2010-11-27  Bruno Haible  <bruno@clisp.org>
18480
18481         Fix link error when module libunistring-optional is in use.
18482         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18483         * modules/striconveha-tests (Makefile.am): Likewise.
18484
18485 2010-11-27  Bruno Haible  <bruno@clisp.org>
18486
18487         regex: Mention link dependencies.
18488         * modules/regex (Link): New section.
18489         * modules/rpmatch (Link): Likewise.
18490         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18491
18492 2010-11-27  Bruno Haible  <bruno@clisp.org>
18493
18494         ftoastr: Fix compilation error on Solaris.
18495         * lib/ftoastr.c: Include <config.h>.
18496
18497 2010-11-27  Bruno Haible  <bruno@clisp.org>
18498
18499         getloadavg: Update documentation.
18500         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18501
18502 2010-11-27  Bruno Haible  <bruno@clisp.org>
18503
18504         sys_socket: Fix test whether the functions are declared.
18505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18506         not <sys/select.h>.
18507
18508 2010-11-27  Bruno Haible  <bruno@clisp.org>
18509
18510         getpass: Make sure to get system declaration on some platforms.
18511         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18512         gl_USE_SYSTEM_EXTENSIONS.
18513         * modules/getpass (Depends-on): Add extensions.
18514
18515 2010-11-26  Bruno Haible  <bruno@clisp.org>
18516
18517         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18518         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18519         'iconv' module is present.
18520         (ICONV_CONST): New macro.
18521         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18522         ICONV_CONST.
18523         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18524         set ICONV_CONST.
18525         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18526         here.
18527         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18528         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18529         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18530         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18531         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18532         present.
18533
18534 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18535
18536         ftoastr: comment fix
18537         * lib/ftoastr.c: "little" -> "little or no" in comment
18538
18539 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18540
18541         stdint: port to GCC 4.3 + OSX + Octave
18542         On this platform, stdint.h is buggy and defines int64_t to long
18543         long int.  The replacement defined it to long int, causing
18544         problems with C++ style name mangling.  Instead, trust the system
18545         definition if INT64_MAX is defined, and likewise for the unsigned
18546         variant.   Problem reported by Jarno Rajahalme in
18547         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18548         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18549         and don't mess with int64_t and INT64_MAX in this case.
18550         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18551
18552 2010-11-24  Bruno Haible  <bruno@clisp.org>
18553
18554         doc: Corrections regarding MacOS X 10.4 and 10.5.
18555         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18556         MacOS X.
18557         Reported by Simon Josefsson.
18558
18559 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18560
18561         Uninstall ".bin" files installed by relocwrapper.
18562         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18563         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18564         unless it is already there.
18565
18566 2010-11-21  Bruno Haible  <bruno@clisp.org>
18567
18568         Update for NetBSD 5.0.
18569         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18570         NetBSD; the test fails on NetBSD 5.0.
18571         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18572         about NetBSD.
18573
18574 2010-11-21  Bruno Haible  <bruno@clisp.org>
18575
18576         Update for HP-UX 11.23 and HP-UX 11.31.
18577         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18578         HP-UX.
18579
18580 2010-11-21  Bruno Haible  <bruno@clisp.org>
18581
18582         Update for MacOS X 10.5.
18583         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18584         MacOS X; the test fails on MacOS X 10.5.8.
18585         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18586         about MacOS X.
18587
18588 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18589
18590         bootstrap: add bootstrap_sync option.
18591         See discussion at
18592         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18594         * build-aux/bootstrap: Accept --bootstrap-sync to update
18595         bootstrap if it is not identical to the local gnulib's
18596         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18597         enable this by default.  Accept --no-bootstrap-sync to disable
18598         it.
18599
18600 2010-11-20  Bruno Haible  <bruno@clisp.org>
18601
18602         Ensure that <features.h> is included before __GLIBC__ is tested.
18603         * lib/printf-parse.h: Include <features.h>.
18604         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18605         Reported by Mike Frysinger <vapier@gentoo.org>.
18606
18607         Ensure that <features.h> is included before __GLIBC__ is tested.
18608         * lib/wchar.in.h: Include <features.h>.
18609         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18610         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18611         Reported by Mike Frysinger <vapier@gentoo.org>.
18612
18613         Ensure that <features.h> is included before __GLIBC__ is tested.
18614         * lib/arpa_inet.in.h: Include <features.h>.
18615         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18616         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18617         Reported by Mike Frysinger <vapier@gentoo.org>.
18618
18619         Ensure that <features.h> is included before __GLIBC__ is tested.
18620         * build-aux/link-warning.h: Include <features.h>.
18621         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18622         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18623         Reported by Mike Frysinger <vapier@gentoo.org>.
18624
18625         Ensure that <features.h> is included before __GLIBC__ is tested.
18626         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18627         Reported by Mike Frysinger <vapier@gentoo.org>.
18628
18629 2010-11-20  Bruno Haible  <bruno@clisp.org>
18630
18631         memmem: Fix autoconf test.
18632         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18633
18634 2010-11-20  Bruno Haible  <bruno@clisp.org>
18635
18636         Port to uClibc.
18637         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18638         * lib/fcntl.in.h: Likewise.
18639         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18640         * lib/mbrtowc.c (mbrtowc): Likewise.
18641         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18642         * lib/strerror_r.c: Likewise.
18643         * lib/unistr/u8-strnlen.c: Likewise.
18644         * lib/vasnprintf.c (decimal_point_char): Likewise.
18645         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18646         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18647         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18648         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18649         * tests/test-sigaction.c (handler, main): Likewise.
18650         * lib/freading.h: Treat uClibc like a non-glibc platform.
18651         * lib/freading.c: Likewise.
18652         * lib/gettext.h: Likewise.
18653         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18654         Likewise.
18655         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18656         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18657         * lib/propername.c (proper_name_utf8): Likewise.
18658         * lib/spawn.in.h: Likewise.
18659         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18660         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18661         mem_cd_iconveh_internal): Likewise.
18662         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18663         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18664         strstr, strcasestr): Likewise.
18665         * lib/unicodeio.c (unicode_to_mb): Likewise.
18666         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18667         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18668         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18669         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18670         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18671         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18672         * lib/unistr/u8-stpncpy.c: Likewise.
18673         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18674         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18675         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18676         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18677         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18678         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18679         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18680         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18682         Likewise.
18683         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18684         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18685         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18686         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18687         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18688         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18689         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18690         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18691         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18692         * tests/test-striconveha.c (main): Likewise.
18693         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18694         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18695         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18696         * doc/posix-functions/getline.texi: Likewise.
18697         Reported by Mike Frysinger <vapier@gentoo.org>.
18698
18699 2010-11-20  Bruno Haible  <bruno@clisp.org>
18700
18701         nproc: Fix condition.
18702         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18703         HAVE_PTHREAD_AFFINITY_NP.
18704
18705 2010-11-20  Bruno Haible  <bruno@clisp.org>
18706
18707         Fix a comment.
18708         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18709
18710 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18711
18712         ftoastr: don't assume snprintf
18713         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18714         Implement a subset of snprintf here, by using sprintf safely.
18715         * modules/ftoastr (Depends-on): Remove snprintf.
18716
18717 2010-11-19  Jim Meyering  <meyering@redhat.com>
18718
18719         test-rename.h: fix compilation failure
18720         * tests/test-rename.h (test_rename): Add omitted "}".
18721
18722 2010-11-17  Jim Meyering  <meyering@redhat.com>
18723
18724         maint.mk: add a URL discussing the no-@acronym policy
18725         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18726
18727 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18728
18729         ftoastr: depend on snprintf, improve comments
18730         * lib/ftoastr.c: Also mention Loitsch's draft.
18731         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18732         needed in the current implementation, but it might simplify
18733         speeding up the code later.
18734         * modules/ftoastr: Depend on snprintf; this improves portability.
18735         Suggested by Bruno Haible in the same email.
18736
18737         ftoastr: port to hosts lacking strtof and strtold
18738         Problem reported by Bruno Haible in
18739         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18740         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18741         environment and strtold (and presumably strtof) are not available.
18742         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18743         (configure.ac): Require gl_C99_STRTOLD.
18744
18745 2010-11-18  Bruno Haible  <bruno@clisp.org>
18746
18747         c-strtold: Avoid link error on AIX 7.
18748         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18749         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18750         (gl_C_STRTOLD): Test whether strtold_l exists.
18751         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18752
18753 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18754
18755         intprops: new macro INT_BITS_STRLEN_BOUND
18756         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18757         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18758         not exposed.  Also, it uses a slightly tighter bound than before;
18759         though this makes no practical difference, we might as well be as
18760         tight as we easily can.
18761
18762         ftoastr: new module, for lossless conversion of floats to short strings
18763         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18764         * modules/ftoastr: New files.
18765
18766 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18767
18768         bootstrap: port to Solaris sed
18769         * build-aux/bootstrap (get_version): Port to Solaris sed.
18770         See Ralf Wildenhues's note in
18771         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18772
18773 2010-11-14  Jim Meyering  <meyering@redhat.com>
18774
18775         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18776         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18777         and move definition closer to sole use.
18778
18779 2010-11-13  Jim Meyering  <meyering@redhat.com>
18780
18781         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18782         Now we require at least autoconf-2.59, which means the work-around
18783         is no longer needed.
18784         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18785         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18786         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18787         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18788         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18789
18790 2010-11-13  Bruno Haible  <bruno@clisp.org>
18791
18792         rename, renameat: Avoid test failures at NFS mounted locations.
18793         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18794         functions.
18795         (test_rename): Use assert_nonexistent.
18796         * tests/test-rename.c: Include <dirent.h>.
18797         * tests/test-renameat.c: Likewise.
18798         Reported by Gary V. Vaughan <gary@gnu.org>.
18799
18800         rename, renameat: Document Linux bug with NFS
18801         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18802         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18803         * doc/posix-functions/renameat.texi: Likewise.
18804         Suggested by Eric Blake.
18805
18806 2010-11-13  Bruno Haible  <bruno@clisp.org>
18807
18808         rename test: Add comments.
18809         * tests/test-rename.h (test_rename): Add structure and comments.
18810
18811 2010-11-13  Eric Blake  <eblake@redhat.com>
18812
18813         maintainer-makefile: cover a few more files
18814         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18815         scripts generated within C files, for libvirt.
18816
18817 2010-11-13  Bruno Haible  <bruno@clisp.org>
18818
18819         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18820         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18821         character, return the number of bytes that belong together, not always
18822         1.
18823         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18824         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18825         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18826         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18827         number of bytes of an invalid character.
18828         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18829         (main): Invoke it.
18830         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18831         results.
18832         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18833         malformed byte sequences.
18834         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18835         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18836         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18837         Reported by Ben Pfaff and Paolo Bonzini.
18838
18839 2010-11-13  Bruno Haible  <bruno@clisp.org>
18840
18841         openat: Work around glibc bug with fchownat() and empty file names.
18842         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18843         (gl_FUNC_FCHOWNAT): Invoke it.
18844         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18845         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18846         Reported by Gary V. Vaughan <gary@gnu.org>.
18847
18848 2010-11-13  Bruno Haible  <bruno@clisp.org>
18849
18850         openat: Ensure autoconf macro ordering.
18851         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18852         gl_USE_SYSTEM_EXTENSIONS.
18853         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18854
18855 2010-11-13  Bruno Haible  <bruno@clisp.org>
18856
18857         Update comments.
18858         * lib/unistr/u8-check.c: Update file name in comments.
18859         * lib/unistr/u8-mblen.c: Likewise.
18860         * lib/unistr/u8-prev.c: Likewise.
18861         * lib/unistr/u8-strmblen.c: Likewise.
18862         * lib/unistr/u8-strmbtouc.c: Likewise.
18863
18864 2010-11-13  Jim Meyering  <meyering@redhat.com>
18865
18866         tests: avoid test failure on Solaris 10 due to lack of PATH export
18867         * tests/test-update-copyright.sh: Don't forget to export PATH.
18868
18869         init.sh: ensure that IFS is defined, just in case...
18870         * tests/init.sh (setup_): Ensure that IFS is defined,
18871         so that saving and restoring it works as expected.  This
18872         appears to be useful at least for an old version of dash
18873         from a long time ago (RH 6).  See here for details:
18874         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18875
18876         maint.mk: tighten "test a == b" check
18877         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18878         test to files that contain something like #!/bin/sh.
18879         Without this, coreutils would get two false positives in
18880         the comments of C source files.
18881
18882 2010-11-12  Eric Blake  <eblake@redhat.com>
18883
18884         bootstrap: fix typo in previous attempt
18885         * build-aux/bootstrap (buildreq): Correct the grouping.
18886         Reported by Paul Eggert.
18887
18888         maintainer-makefile: prohibit test x == x
18889         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18890         Based on a report by Matthias Bolte.
18891
18892         bootstrap: allow FreeBSD gzip
18893         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18894         which has no '.' and goes to stderr.
18895         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18896         Reported by Matthias Bolte.
18897
18898         maintainer-makefile: check for i18n setup
18899         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18900         will likely work.
18901
18902 2010-11-12  Bruno Haible  <bruno@clisp.org>
18903
18904         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18905         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18906         * lib/nanosleep.c (nanosleep): Likewise.
18907
18908 2010-11-11  Bruno Haible  <bruno@clisp.org>
18909
18910         fcntl-h: Fix for use of C++ on glibc systems.
18911         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18912         also on glibc systems in C++ mode.
18913         Reported by Gary V. Vaughan <gary@gnu.org>.
18914
18915 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18916
18917         mknod: avoid false failure with dash
18918         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18919
18920 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18921
18922         unlink: Fix "is it should" typo in diagnostic.
18923         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18924         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18925
18926 2010-11-11  Bruno Haible  <bruno@clisp.org>
18927
18928         Tests for module 'strerror_r-posix'.
18929         * modules/strerror_r-posix-tests: New file.
18930         * tests/test-strerror_r.c: New file.
18931         * tests/test-string-c++.cc: Check the signature of strerror_r.
18932
18933         New module 'strerror_r-posix'.
18934         * lib/string.in.h (strerror_r): New declaration.
18935         * lib/strerror_r.c: New file.
18936         * m4/strerror_r.m4: New file.
18937         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
18938         of strerror_r.
18939         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
18940         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18941         * modules/strerror_r-posix: New file.
18942         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
18943         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
18944         * doc/posix-functions/strerror_r.texi: Mention the new module and the
18945         portability problems.
18946
18947 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
18948
18949         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
18950         line is also considered for output. Quoted function name in shell
18951         command, so temporary files for functions like MyClass::operator()
18952         are removed correctly without errors.
18953
18954 2010-11-09  Bruno Haible  <bruno@clisp.org>
18955
18956         * doc/posix-functions/strerror.texi: List more failing platforms.
18957
18958         * doc/posix-functions/strerror.texi: Add a comment.
18959
18960 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18961
18962         fdopendir: fix bug on MacOS X when low on file descriptors
18963
18964         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
18965         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
18966         All callers changed.
18967         (fdopendir): Invoke save_cwd at the top level, not after using
18968         multiple dup() calls to use up file descriptors.  Then retry
18969         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
18970         less than the maximum number of open file descriptors, because
18971         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
18972         on Mac OS X 10.6.4 for tar 1.24
18973         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
18974         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
18975         and for tar 1.25
18976         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
18977
18978 2010-11-07  Bruno Haible  <bruno@clisp.org>
18979
18980         vasnprintf: Support I flag on glibc systems.
18981         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
18982         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
18983         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
18984         snprintf function.
18985         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
18986         glibc systems.
18987         * tests/test-vasnprintf-posix3.c: New file.
18988         * modules/vasnprintf-posix-tests (Files): Add it.
18989         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
18990
18991 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18992
18993         [html] Fix copy/paste bug: Use unique name for compiler warnings.
18994         * MODULES.html.sh: For compiler warnings, use name
18995         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
18996
18997 2010-11-05  Eric Blake  <eblake@redhat.com>
18998
18999         ceil, floor: avoid spurious failure with icc
19000         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19001         [denormals-as-zero] when optimizing without -mieee-fp option.
19002         * tests/test-floorf2.c (floorf_reference): Likewise.
19003         * tests/test-ceilf1.c (dummy): New function.
19004         (main): Use it to outsmart icc's optimization.
19005         * tests/test-floorf1.c (dummy, main): Likewise.
19006
19007         tests: require working signbit
19008         * modules/ceilf-tests (Depends-on): Add signbit.
19009         * modules/ceill-tests (Depends-on): Likewise.
19010         * modules/floorf-tests (Depends-on): Likewise.
19011         * modules/floorl-tests (Depends-on): Likewise.
19012         * modules/round-tests (Depends-on): Likewise.
19013         * modules/roundf-tests (Depends-on): Likewise.
19014         * modules/roundl-tests (Depends-on): Likewise.
19015         * modules/trunc-tests (Depends-on): Likewise.
19016         * modules/truncf-tests (Depends-on): Likewise.
19017         * modules/truncl-tests (Depends-on): Likewise.
19018
19019         strtod: work around icc bug
19020         * lib/strtod.c (minus_zero): Define to working value.
19021         (strtod): Use it to avoid icc bug.
19022
19023         copysign: enhance tests
19024         * modules/copysign-tests (Files): Add minus-zero.h.
19025         * tests/test-copysign.c (main): Also test zeros.
19026
19027 2010-11-04  Eric Blake  <eblake@redhat.com>
19028
19029         ceil, floor, round, trunc: enhance tests of -0
19030         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19031         * tests/test-ceill.c (main): Likewise.
19032         * tests/test-floorf1.c (main): Likewise.
19033         * tests/test-floorl.c (main): Likewise.
19034         * tests/test-round1.c (main): Likewise.
19035         * tests/test-roundf1.c (main): Likewise.
19036         * tests/test-roundl.c (main): Likewise.
19037         * tests/test-trunc1.c (main): Likewise.
19038         * tests/test-truncf1.c (main): Likewise.
19039         * tests/test-truncl.c (main): Likewise.
19040
19041 2010-11-04  Eric Blake  <eblake@redhat.com>
19042
19043         frexp, tests: work around ICC bug with -zero
19044         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19045         works with more compilers.
19046         * tests/minus-zero.h: New file.
19047         * modules/ceilf-tests (Files): Include it.
19048         * modules/ceill-tests (Files): Likewise.
19049         * modules/floorf-tests (Files): Likewise.
19050         * modules/floorl-tests (Files): Likewise.
19051         * modules/frexp-nolibm-tests (Files): Likewise.
19052         * modules/frexp-tests (Files): Likewise.
19053         * modules/frexpl-nolibm-tests (Files): Likewise.
19054         * modules/frexpl-tests (Files): Likewise.
19055         * modules/isnan-tests (Files): Likewise.
19056         * modules/isnand-nolibm-tests (Files): Likewise.
19057         * modules/isnand-tests (Files): Likewise.
19058         * modules/isnanf-nolibm-tests (Files): Likewise.
19059         * modules/isnanf-tests (Files): Likewise.
19060         * modules/isnanl-nolibm-tests (Files): Likewise.
19061         * modules/isnanl-tests (Files): Likewise.
19062         * modules/round-tests (Files): Likewise.
19063         * modules/roundf-tests (Files): Likewise.
19064         * modules/roundl-tests (Files): Likewise.
19065         * modules/ldexpl-tests (Files): Likewise.
19066         * modules/signbit-tests (Files): Likewise.
19067         * modules/snprintf-posix-tests (Files): Likewise.
19068         * modules/sprintf-posix-tests (Files): Likewise.
19069         * modules/strtod-tests (Files): Likewise.
19070         * modules/trunc-tests (Files): Likewise.
19071         * modules/truncf-tests (Files): Likewise.
19072         * modules/truncl-tests (Files): Likewise.
19073         * modules/vsnprintf-posix-tests (Files): Likewise.
19074         * modules/vsprintf-posix-tests (Files): Likewise.
19075         * modules/vasnprintf-posix-tests (Files): Likewise.
19076         * modules/vasprintf-posix-tests (Files): Likewise.
19077         * tests/test-ceilf1.c (main): Use it.
19078         * tests/test-ceill.c (main): Likewise.
19079         * tests/test-floorf1.c (main): Likewise.
19080         * tests/test-floorl.c (main): Likewise.
19081         * tests/test-frexp.c (main): Likewise.
19082         * tests/test-frexpl.c (main): Likewise.
19083         * tests/test-isnan.c (main): Likewise.
19084         * tests/test-isnand.h (main): Likewise.
19085         * tests/test-isnanf.h (main): Likewise.
19086         * tests/test-isnanl.h (main): Likewise.
19087         * tests/test-ldexpl.c (main): Likewise.
19088         * tests/test-round.c (main): Likewise.
19089         * tests/test-roundf.c (main): Likewise.
19090         * tests/test-roundl.c (main): Likewise.
19091         * tests/test-signbit.c (test_signbitf, test_signbitd)
19092         (test_signbitl): Likewise.
19093         * tests/test-snprintf-posix.h (test_function): Likewise.
19094         * tests/test-sprintf-posix.h (test_function): Likewise.
19095         * tests/test-strtod.c (main): Likewise.
19096         * tests/test-trunc1.c (main): Likewise.
19097         * tests/test-truncf1.c (main): Likewise.
19098         * tests/test-truncl.c (main): Likewise.
19099
19100         isnanl: work around icc bug
19101         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19102
19103 2010-11-03  Eric Blake  <eblake@redhat.com>
19104
19105         tests: fix compiler warnings
19106         * tests/test-getopt.h (test_getopt): Fix condition.
19107         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19108         * tests/test-pipe2.c (main): Likewise.
19109         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19110
19111         utimens: fix broken m4 test
19112         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19113
19114 2010-10-28  Bruno Haible  <bruno@clisp.org>
19115
19116         posix_spawn*, getdtablesize: Relax license.
19117         * modules/posix_spawn (License): Change to LGPLv2+.
19118         * modules/posix_spawnp (License): Likewise.
19119         * modules/posix_spawn-internal (License): Likewise.
19120         * modules/posix_spawnattr_init (License): Likewise.
19121         * modules/posix_spawnattr_getflags (License): Likewise.
19122         * modules/posix_spawnattr_setflags (License): Likewise.
19123         * modules/posix_spawnattr_getpgroup (License): Likewise.
19124         * modules/posix_spawnattr_setpgroup (License): Likewise.
19125         * modules/posix_spawnattr_getschedparam (License): Likewise.
19126         * modules/posix_spawnattr_setschedparam (License): Likewise.
19127         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19128         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19129         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19130         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19131         * modules/posix_spawnattr_getsigmask (License): Likewise.
19132         * modules/posix_spawnattr_setsigmask (License): Likewise.
19133         * modules/posix_spawnattr_destroy (License): Likewise.
19134         * modules/posix_spawn_file_actions_init (License): Likewise.
19135         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19136         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19137         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19138         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19139         * modules/getdtablesize (License): Likewise.
19140         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19141
19142 2010-10-26  Bruno Haible  <bruno@clisp.org>
19143
19144         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19145         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19146         Cygwin and mingw.
19147         Suggested by Eric Blake.
19148
19149 2010-10-26  Bruno Haible  <bruno@clisp.org>
19150
19151         stdio: Work around compilation error due to renameat() on Solaris 10.
19152         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19153         * lib/renameat.c: Don't include <unistd.h> here.
19154         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19155         Reported by Paul Eggert and Eric Blake.
19156
19157 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19158
19159         renameat: port to Solaris 10, which declares renameat in unistd.h
19160
19161         * lib/renameat.c: Include unistd.h before stdio.h, because
19162         Solaris 10 declares renameat in unistd.h.  Problem encountered
19163         when building GNU tar 1.24 on Solaris 10.
19164
19165 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19166
19167         fdopendir: fix C89 compilation
19168         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19169         compilers.
19170
19171 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19172
19173         inttostr: simplify by removing unnecessary redundancy
19174         * lib/anytostr.c: Don't include verify.h.
19175         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19176         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19177         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19178         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19179         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19180         Likewise.
19181         * modules/inttostr (Depends-on): Remove 'verify'.
19182
19183 2010-10-23  Bruno Haible  <bruno@clisp.org>
19184
19185         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19186         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19187         Reported by Eric Blake.
19188
19189 2010-10-23  Bruno Haible  <bruno@clisp.org>
19190
19191         Tests: Fix LOCALE_JA on MirBSD 10.
19192         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19193         to an UTF-8 locale.
19194         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19195         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19196         Reported by Eric Blake.
19197
19198 2010-10-21  Bruno Haible  <bruno@clisp.org>
19199
19200         nl_langinfo test: Avoid test failure on NetBSD 5.
19201         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19202         Reported by Eric Blake.
19203
19204 2010-10-21  Eric Blake  <eblake@redhat.com>
19205
19206         c-stack: work around libsigsegv 2.8 bug
19207         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19208         overflow on at least PowerPC64.
19209
19210 2010-10-17  Bruno Haible  <bruno@clisp.org>
19211
19212         userspec: Drop redundant file.
19213         * modules/userspec (Files): Remove lib/inttostr.h.
19214
19215 2010-10-17  Bruno Haible  <bruno@clisp.org>
19216
19217         nl_langinfo tests: Silence some warnings.
19218         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19219         Reported by Jim Meyering.
19220
19221 2010-10-17  Bruno Haible  <bruno@clisp.org>
19222
19223         Make use of GCC's attribute __alloc_size__.
19224         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19225         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19226         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19227         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19228         __alloc_size__.
19229         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19230         Suggested by Jim Meyering.
19231
19232 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19233
19234         bootstrap: anchor .gitignore entries.
19235         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19236         with...
19237         (insert_vc_ignore): ... this new function, which prepends `/' to
19238         all .gitignore entries before passing them to
19239         insert_sorted_if_absent.
19240
19241 2010-10-16  Bruno Haible  <bruno@clisp.org>
19242
19243         nextafter: Fix configure check.
19244         * modules/nextafter (configure.ac): Correct expected prototype.
19245
19246 2010-10-16  Bruno Haible  <bruno@clisp.org>
19247
19248         termios: Update documentation.
19249         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19250
19251 2010-10-16  Bruno Haible  <bruno@clisp.org>
19252
19253         tests: Make them compile with TinyCC.
19254         * tests/test-strstr.c (main): Remove parentheses around array
19255         initializer.
19256
19257 2010-10-15  Eric Blake  <eblake@redhat.com>
19258
19259         ignore-value: make header idempotent
19260         * lib/ignore-value.h: Add double-inclusion guards.
19261         Reported by Stefan Berger.
19262
19263 2010-10-15  Jim Meyering  <meyering@redhat.com>
19264
19265         GNUmakefile: handle "stable" target, not "major"
19266         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19267         lists in maint.mk and announce-gen.  Without this, "make stable"
19268         would fail to ensure that $(VERSION) is up to date.
19269
19270 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19271
19272         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19273         & co.
19274
19275 2010-10-14  Bruno Haible  <bruno@clisp.org>
19276
19277         vasnprintf: Don't set errno to 0.
19278         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19279         block that sets it to 0.
19280         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19281
19282 2010-10-14  Bruno Haible  <bruno@clisp.org>
19283
19284         socketlib: Fix.
19285         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19286         gl_PREREQ_SYS_H_WINSOCK2.
19287         Reported by Ian Beckwith <ianb@erislabs.net>.
19288
19289 2010-10-13  Jim Meyering  <meyering@redhat.com>
19290
19291         test-select-stdin.c: avoid warn_unused_result warnings
19292         * tests/test-select-stdin.c: Include "macros.h".
19293         ASSERT that read and fflush succeed.
19294
19295 2010-10-13  Jim Meyering  <meyering@redhat.com>
19296
19297         git-version-gen: do require git-VC'd files in cwd
19298         * build-aux/git-version-gen: Reject a git version string
19299         if there are no commits associated with the current directory.
19300         This avoids an unlikely false-positive (unrelated dir whose parent
19301         repository also contains a tag matching v*), as pointed out
19302         by Giuseppe Scrivano in
19303         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19304
19305 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19306
19307         argv-iter: omit nonconforming declaration
19308         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19309         enum arg_iter_err declaration, which doesn't conform to C99.
19310         Solaris 10 cc warns about this.
19311
19312 2010-10-13  Eric Blake  <eblake@redhat.com>
19313
19314         termios: fix compilation on mingw
19315         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19316         (gl_TERMIOS_H): Adjust it on mingw.
19317         * modules/termios (Makefile.am): Substitute new key.
19318         * lib/termios.in.h (includes): Make include_next conditional.
19319         * doc/posix-headers/termios.texi (termios.h): Update
19320         documentation.
19321         Reported by Daniel P. Berrange.
19322
19323 2010-10-13  Jim Meyering  <meyering@redhat.com>
19324
19325         git-version-gen: don't require that .git/ be in the current dir
19326         * build-aux/git-version-gen: Adjust this script so that it works
19327         when run from any working directory beneath the top-level .git/-
19328         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19329         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19330
19331         test-select: avoid warn_unused_result warnings
19332         * tests/test-select.c: Include "macros.h".
19333         ASSERT that each call to read, write, and pipe succeeds.
19334         While not technically required, also check each "close".
19335         * modules/select-tests (Files): Add tests/macros.h.
19336
19337         test-symlinkat: remove declaration of unused local
19338         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19339
19340         test-inttostr: avoid shadowing warnings
19341         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19342         and use malloc rather than the stack for the same reason as
19343         mentioned in the comment justifying the other allocation.
19344
19345 2010-10-11  Bruno Haible  <bruno@clisp.org>
19346
19347         stdlib: Allow multiple gnulib generated replacements to coexist.
19348         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19349         Reported by Sam Steingold <sds@gnu.org>.
19350
19351 2010-10-11  Jim Meyering  <meyering@redhat.com>
19352
19353         fix a documentation typo
19354         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19355
19356 2010-10-11  Eric Blake  <eblake@redhat.com>
19357
19358         futimens: work around Solaris 11 bug
19359         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19360         * tests/test-futimens.h (test_futimens): Enhance, rather than
19361         weaken test.
19362         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19363
19364 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19365
19366         Indentation.
19367         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19368         higher-level operators more to the left.
19369
19370 2010-10-11  Jim Meyering  <meyering@redhat.com>
19371
19372         test-futimens: avoid unwarranted test failure on Solaris 5.11
19373         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19374         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19375         because it tries to dereference the NULL name argument.
19376
19377 2010-10-11  Bruno Haible  <bruno@clisp.org>
19378
19379         Indentation.
19380         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19381         indentation.
19382
19383 2010-10-11  Jim Meyering  <meyering@redhat.com>
19384
19385         spawn.in.h: make indentation consistent with parentheses
19386         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19387         Make indentation consistent with parentheses.
19388
19389 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19390
19391         Fix mismatched parens in previous commit
19392         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19393         parens.
19394
19395 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19396
19397         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19398
19399         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19400         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19401         * lib/malloca.c: Include "verify.h".
19402         (verify1): Remove, replacing with a verify call.
19403         * lib/relocwrapper.c (verify1): Likewise.
19404         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19405         Likewise.
19406         * modules/malloca (Depends-on): Add 'verify'.
19407         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19408         * modules/vasnprintf (Depends-on): Add 'verify'.
19409         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19410         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19411         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19412         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19413         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19414         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19415         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19416
19417         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19418
19419         Formerly the style was sometimes 2*X - 1, because the C standard
19420         was wrongly thought to disallow ?: in integral constant expressions.
19421         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19422         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19423         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19424         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19425         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19426         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19427         verify that time_t cannot be floating.
19428
19429 2010-10-08  Eric Blake  <eblake@redhat.com>
19430
19431         time: enforce recent POSIX ruling that time_t is integral
19432         * lib/time.in.h (__time_t_must_be_integral): Detect any
19433         problematic systems, allowing the rest of gnulib to assume POSIX.
19434
19435 2010-10-08  Jim Meyering  <meyering@redhat.com>
19436
19437         fdopendir: fix a bug on systems lacking openat and /proc support
19438         OpenBSD 4.7 is one such system.  The most noticeable effect was
19439         failure of any application making nontrivial use of fts: rm, du,
19440         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19441           ./rm: traversal failed: `a': Bad file descriptor
19442         Debugging that, you see that even though FD 6 was closed just
19443         prior to the opendir call in fd_clone_opendir, its resulting
19444         dir->dd_fd was 8, rather than the expected value of 6:
19445
19446         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19447         93                close (fd);
19448         (gdb) n
19449         94                dir = fd_clone_opendir (dupfd);
19450         (gdb) n
19451         95                saved_errno = errno;
19452         (gdb) p dir->dd_fd
19453         $11 = 8
19454
19455         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19456         The problem is that on OpenBSD, fd_clone_opendir has to resort
19457         to using the old-style save/restore CWD mechanism, due to its
19458         lack of openat/proc support, and *that* would steal the FD (6)
19459         that opendir was supposed to use.
19460
19461         The fix is to squirrel away the desired FD so that save_cwd uses a
19462         different one, and then free the dest FD right before calling opendir.
19463         That guarantees opendir will use the required file descriptor.
19464
19465         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19466
19467 2010-10-08  Bruno Haible  <bruno@clisp.org>
19468
19469         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19470         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19471
19472 2010-10-08  Bruno Haible  <bruno@clisp.org>
19473
19474         nanosleep: Make replacement POSIX compliant.
19475         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19476         is out of range.
19477         Reported by Jim Meyering.
19478
19479 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19480
19481         bootstrap: add hook for altering gnulib.mk, for Bison
19482         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19483         the Bison bootstrapping process can rewrite file names and variables
19484         in this file before later parts of 'bootstrap' use the file.
19485         Bison wants to include lib/gnulib.mk from the top-level makefile,
19486         so it needs the file names in this file to be relative to the top
19487         level, not relative to lib; plus it needs variable names to be
19488         rewritten.
19489         (slurp): Use the new function.
19490
19491         bootstrap: reformat for readability
19492         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19493
19494 2010-10-08  Eric Blake  <eblake@redhat.com>
19495
19496         docs: update cygwin progress
19497         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19498         1.7.7.
19499         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19500         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19501         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19502         * doc/posix-functions/carg.texi (carg): Likewise.
19503         * doc/posix-functions/cargf.texi (cargf): Likewise.
19504         * doc/posix-functions/casin.texi (casin): Likewise.
19505         * doc/posix-functions/casinf.texi (casinf): Likewise.
19506         * doc/posix-functions/casinh.texi (casinh): Likewise.
19507         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19508         * doc/posix-functions/catan.texi (catan): Likewise.
19509         * doc/posix-functions/catanf.texi (catanf): Likewise.
19510         * doc/posix-functions/catanh.texi (catanh): Likewise.
19511         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19512         * doc/posix-functions/ccos.texi (ccos): Likewise.
19513         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19514         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19515         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19516         * doc/posix-functions/cexp.texi (cexp): Likewise.
19517         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19518         * doc/posix-functions/cimag.texi (cimag): Likewise.
19519         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19520         * doc/posix-functions/clog.texi (clog): Likewise.
19521         * doc/posix-functions/clogf.texi (clogf): Likewise.
19522         * doc/posix-functions/conj.texi (conj): Likewise.
19523         * doc/posix-functions/conjf.texi (conjf): Likewise.
19524         * doc/posix-functions/cpow.texi (cpow): Likewise.
19525         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19526         * doc/posix-functions/cproj.texi (cproj): Likewise.
19527         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19528         * doc/posix-functions/creal.texi (creal): Likewise.
19529         * doc/posix-functions/crealf.texi (crealf): Likewise.
19530         * doc/posix-functions/csin.texi (csin): Likewise.
19531         * doc/posix-functions/csinf.texi (csinf): Likewise.
19532         * doc/posix-functions/csinh.texi (csinh): Likewise.
19533         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19534         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19535         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19536         * doc/posix-functions/ctan.texi (ctan): Likewise.
19537         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19538         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19539         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19540         * doc/posix-headers/complex.texi (complex.h): Likewise.
19541
19542 2010-10-07  Jim Meyering  <meyering@redhat.com>
19543
19544         parse-datetime: avoid compilation failure on OpenBSD 4.7
19545         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19546         This works around a compilation failure on OpenBSD 4.7:
19547         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19548
19549 2010-10-07  Eric Blake  <eblake@redhat.com>
19550
19551         docs: update cygwin progress
19552         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19553         1.7.6.
19554         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19555         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19556         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19557         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19558         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19559         Likewise.
19560         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19561         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19562         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19563         Likewise.
19564         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19565         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19566         Likewise.
19567         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19568         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19569         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19570         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19571         Likewise.
19572         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19573         Likewise.
19574         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19575
19576         docs: update parse-datetime history
19577         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19578         documentation of this function's history and alternatives.
19579
19580         cygwin: use more robust version check
19581         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19582         exclude an eventual cygwin 1.9.1.
19583         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19585         (gl_FUNC_STRCASESTR): Likewise.
19586         Reported by Bruno Haible.
19587
19588 2010-10-06  Bruno Haible  <bruno@clisp.org>
19589
19590         string, sys_select: Avoid #including large headers unless necessary.
19591         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19592         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19593         OSF/1, BeOS, Haiku.
19594         Reported by Jim Meyering.
19595
19596 2010-10-05  Eric Blake  <eblake@redhat.com>
19597
19598         memmem, strstr, strcasestr: fix bug with long periodic needle
19599         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19600         periodic needle having false positive.
19601         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19602         and cygwin 1.7.7.
19603         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19604         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19605         (gl_FUNC_STRCASESTR): Likewise.
19606         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19607         * tests/test-memmem.c (main): Expose the bug.
19608         * tests/test-strcasestr.c (main): Likewise.
19609         * tests/test-strstr.c (main): Likewise.
19610         * tests/test-c-strcasestr.c (main): Likewise.
19611         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19612         * doc/posix-functions/strstr.texi (strstr): Likewise.
19613         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19614         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19615
19616 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19617
19618         parse-datetime: do some more renaming
19619         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19620         parse_datetime, not get_date.  Mention the renaming.
19621         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19622         in comments.
19623         * m4/bison.m4: Likewise.
19624
19625 2010-10-05  Eric Blake  <eblake@redhat.com>
19626
19627         parse-datetime: better name than get_date
19628         * NEWS: Reword the deprecation notice.
19629         * modules/get_date: Rename to modules/parse-datetime.
19630         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19631         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19632         * lib/get_date.y: Rename to lib/parse-datetime.y.
19633         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19634         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19635         * doc/getdate.texi: Provide fallback wrapper.
19636         * lib/getdate.h: Move guts, and wrap...
19637         * lib/parse-datetime.h: ...new file.
19638         * lib/parse-datetime.y (get_date): Rename...
19639         (parse_datetime): ...to this.
19640         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19641         (gl_PARSE_DATETIME): ...to this.
19642         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19643         documentation.
19644         * modules/getdate (Files): Provide fallback docs and header.
19645         (Notice, Depends-on): Update references.
19646         * tests/test-parse-datetime.c: Likewise.
19647         * DEPENDENCIES: Likewise.
19648         * MODULES.html.sh (Date and time <time.h>): Likewise.
19649         * doc/parse-datetime.texi (Date input formats)
19650         (Authors of parse_datetime): Likewise.
19651         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19652         (Include): Likewise.
19653         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19654         * gnulib-tool: Likewise.
19655         * m4/bison.m4 (gl_BISON): Likewise.
19656         Suggested by Bruno Haible.
19657
19658 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19659
19660         more ports to Solaris tr, which needs [] around ranges
19661         * gnulib-tool: Solaris tr needs [] around ranges.
19662         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19663         * tests/test-pipe-filter-gi1.c (main): Likewise.
19664         * tests/test-pipe-filter-ii1.c (main): Likewise.
19665
19666 2010-10-05  Eric Blake  <eblake@redhat.com>
19667
19668         bootstrap: fix Solaris regression
19669         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19670         around ranges.
19671         Reported by Pádraig Brady.
19672
19673         bootstrap: work with pkg-config
19674         * build-aux/bootstrap (check_versions): Also transliterate - in
19675         prerequisite name.
19676         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19677         prerequisites that were already found, to avoid confusion.
19678         Reported by Justin Clift.
19679
19680         faccessat: remove unused wrappers
19681         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19682         presence of these wrappers dragged in -lgen on Solaris.
19683         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19684
19685 2010-10-05  Jim Meyering  <meyering@redhat.com>
19686
19687         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19688         * Makefile (sc_pragma_columns): New syntax-check rule.
19689
19690 2010-10-04  Bruno Haible  <bruno@clisp.org>
19691
19692         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19693         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19694         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19695         Reported by Bruce Korb and Eric Blake.
19696
19697 2010-10-04  Bruno Haible  <bruno@clisp.org>
19698
19699         threadlib: Make option --with-libpth-prefix work.
19700         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19701         use $LIBPTH, not just -lpth.
19702
19703 2010-10-04  Bruno Haible  <bruno@clisp.org>
19704
19705         Avoid line length limitation from HP NonStop system header files.
19706         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19707         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19708         * lib/ctype.in.h: Likewise.
19709         * lib/dirent.in.h: Likewise.
19710         * lib/errno.in.h: Likewise.
19711         * lib/fcntl.in.h: Likewise.
19712         * lib/float.in.h: Likewise.
19713         * lib/getopt.in.h: Likewise.
19714         * lib/iconv.in.h: Likewise.
19715         * lib/inttypes.in.h: Likewise.
19716         * lib/langinfo.in.h: Likewise.
19717         * lib/locale.in.h: Likewise.
19718         * lib/math.in.h: Likewise.
19719         * lib/netdb.in.h: Likewise.
19720         * lib/netinet_in.in.h: Likewise.
19721         * lib/poll.in.h: Likewise.
19722         * lib/pthread.in.h: Likewise.
19723         * lib/pty.in.h: Likewise.
19724         * lib/sched.in.h: Likewise.
19725         * lib/se-selinux.in.h: Likewise.
19726         * lib/search.in.h: Likewise.
19727         * lib/signal.in.h: Likewise.
19728         * lib/spawn.in.h: Likewise.
19729         * lib/stdarg.in.h: Likewise.
19730         * lib/stddef.in.h: Likewise.
19731         * lib/stdint.in.h: Likewise.
19732         * lib/stdio.in.h: Likewise.
19733         * lib/stdlib.in.h: Likewise.
19734         * lib/string.in.h: Likewise.
19735         * lib/strings.in.h: Likewise.
19736         * lib/sys_file.in.h: Likewise.
19737         * lib/sys_ioctl.in.h: Likewise.
19738         * lib/sys_select.in.h: Likewise.
19739         * lib/sys_socket.in.h: Likewise.
19740         * lib/sys_stat.in.h: Likewise.
19741         * lib/sys_time.in.h: Likewise.
19742         * lib/sys_times.in.h: Likewise.
19743         * lib/sys_utsname.in.h: Likewise.
19744         * lib/sys_wait.in.h: Likewise.
19745         * lib/sysexits.in.h: Likewise.
19746         * lib/termios.in.h: Likewise.
19747         * lib/time.in.h: Likewise.
19748         * lib/unistd.in.h: Likewise.
19749         * lib/wchar.in.h: Likewise.
19750         * lib/wctype.in.h: Likewise.
19751         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19752         * modules/ctype (Makefile.am): Likewise.
19753         * modules/dirent (Makefile.am): Likewise.
19754         * modules/errno (Makefile.am): Likewise.
19755         * modules/fcntl-h (Makefile.am): Likewise.
19756         * modules/float (Makefile.am): Likewise.
19757         * modules/getopt-posix (Makefile.am): Likewise.
19758         * modules/iconv-h (Makefile.am): Likewise.
19759         * modules/inttypes (Makefile.am): Likewise.
19760         * modules/langinfo (Makefile.am): Likewise.
19761         * modules/locale (Makefile.am): Likewise.
19762         * modules/math (Makefile.am): Likewise.
19763         * modules/netdb (Makefile.am): Likewise.
19764         * modules/netinet_in (Makefile.am): Likewise.
19765         * modules/poll-h (Makefile.am): Likewise.
19766         * modules/pthread (Makefile.am): Likewise.
19767         * modules/pty (Makefile.am): Likewise.
19768         * modules/sched (Makefile.am): Likewise.
19769         * modules/search (Makefile.am): Likewise.
19770         * modules/selinux-h (Makefile.am): Likewise.
19771         * modules/signal (Makefile.am): Likewise.
19772         * modules/spawn (Makefile.am): Likewise.
19773         * modules/stdarg (Makefile.am): Likewise.
19774         * modules/stddef (Makefile.am): Likewise.
19775         * modules/stdint (Makefile.am): Likewise.
19776         * modules/stdio (Makefile.am): Likewise.
19777         * modules/stdlib (Makefile.am): Likewise.
19778         * modules/string (Makefile.am): Likewise.
19779         * modules/strings (Makefile.am): Likewise.
19780         * modules/sys_file (Makefile.am): Likewise.
19781         * modules/sys_ioctl (Makefile.am): Likewise.
19782         * modules/sys_select (Makefile.am): Likewise.
19783         * modules/sys_socket (Makefile.am): Likewise.
19784         * modules/sys_stat (Makefile.am): Likewise.
19785         * modules/sys_time (Makefile.am): Likewise.
19786         * modules/sys_times (Makefile.am): Likewise.
19787         * modules/sys_utsname (Makefile.am): Likewise.
19788         * modules/sys_wait (Makefile.am): Likewise.
19789         * modules/sysexits (Makefile.am): Likewise.
19790         * modules/termios (Makefile.am): Likewise.
19791         * modules/time (Makefile.am): Likewise.
19792         * modules/unistd (Makefile.am): Likewise.
19793         * modules/wchar (Makefile.am): Likewise.
19794         * modules/wctype (Makefile.am): Likewise.
19795
19796 2010-10-04  Bruno Haible  <bruno@clisp.org>
19797
19798         read-file tests: Avoid a test failure on NonStop Kernel.
19799         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19800         a regular file.
19801         Reported by Joachim Schmitz <schmitz@hp.com>.
19802
19803 2010-10-03  Bruno Haible  <bruno@clisp.org>
19804
19805         gnulib-tool: Fixes for --create-testdir with --libtool.
19806         * gnulib-tool (func_get_automake_snippet): Don't augment
19807         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19808         an executable.
19809         (func_create_testdir): Handle module 'alloca' like func_import.
19810         Reported by Bruce Korb <bruce.korb@gmail.com>.
19811
19812 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19813
19814         Avoid some lines longer than 80 characters.
19815         * lib/stdint.in.h: Break long comment lines.
19816         * lib/math.in.h: Likewise.
19817         (_GL_NUM_UINT_WORDS): New macro, for readability.
19818         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19819         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19820         * lib/stdlib.in.h: Likewise.
19821         * lib/spawn.in.h: Likewise.
19822         * lib/sys_socket.in.h: Update an URL.
19823         * lib/sys_stat.in.h: Break long line.
19824
19825 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19826
19827         Improve pmccabe2html.
19828         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19829         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19830         when the sources change. Remove the line in the HTML about "Used
19831         ranges" (which implied that there might be other unused ranges),
19832         rename "Resume" to "Summary" (easier to understand for more users).
19833         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19834         styles, and some unnecessary blank lines.
19835
19836 2010-10-03  Bruno Haible  <bruno@clisp.org>
19837             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19838
19839         acl: Add support for ACLs on NonStop Kernel.
19840         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19841         Check whether the function aclsort() exists.
19842         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19843         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19844         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19845         (acl_nontrivial [HAVE_ACLSORT]: New function.
19846         (file_has_acl): Implement for NonStop Kernel.
19847         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19848         (qset_acl): Implement for NonStop Kernel.
19849         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19850         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19851         (main): Implement for NonStop Kernel.
19852         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19853         Kernel. Handle this flavor.
19854         * tests/test-set-mode-acl.sh: Likewise.
19855         * tests/test-copy-acl.sh: Likewise.
19856         * tests/test-copy-file.sh: Likewise.
19857
19858 2010-10-03  Bruno Haible  <bruno@clisp.org>
19859
19860         Info about ACLs on NonStop Kernel.
19861         * doc/acl-resources.txt: Add info about NonStop Kernel.
19862         References by Joachim Schmitz <schmitz@hp.com>.
19863
19864 2010-10-02  Bruno Haible  <bruno@clisp.org>
19865
19866         Define missing EDQUOT on NonStop Kernel.
19867         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19868         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19869         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19870         missing.
19871         * doc/posix-headers/errno.texi: Mention the NSK bug.
19872         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19873         Reported by Joachim Schmitz <schmitz@hp.com>.
19874
19875 2010-10-02  Bruno Haible  <bruno@clisp.org>
19876
19877         Update doc for POSIX:2008.
19878         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19879         Update URL of POSIX specification.
19880
19881 2010-10-02  Bruno Haible  <bruno@clisp.org>
19882
19883         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19884         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19885         from gnulib, not from Automake.
19886
19887 2010-10-02  Bruno Haible  <bruno@clisp.org>
19888
19889         New module 'system-posix'.
19890         * modules/system-posix: New file.
19891         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19892         module is present.
19893         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19894         GNULIB_SYSTEM_POSIX.
19895         * modules/stdlib (Depends-on): Remove sys_wait.
19896         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19897         * doc/posix-functions/system.texi: Mention the new module.
19898         * doc/posix-headers/stdlib.texi: Likewise.
19899         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19900         define test_sys_wait_macros to a no-op.
19901         Reported by Sam Steingold <sds@gnu.org>.
19902
19903 2010-09-30  Bruno Haible  <bruno@clisp.org>
19904
19905         More renaming from 'getdate' to 'get_date'.
19906         * doc/get_date.texi: Renamed from doc/getdate.texi.
19907         * modules/get_date (Files): Update.
19908         * MODULES.html.sh (Date and time <time.h>): Update.
19909         * DEPENDENCIES: Update.
19910         * gnulib-tool: Update comment.
19911         * m4/bison.m4 (gl_BISON): Likewise.
19912         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19913
19914 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19915
19916         bootstrap: support ACLOCAL_FLAGS during aclocal
19917         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19918         can add additional -I dir for third-party .m4 files.
19919
19920 2010-09-30  Eric Blake  <eblake@redhat.com>
19921
19922         bootstrap: use glibtoolize on MacOS
19923         * build-aux/bootstrap (check_versions): Convert libtool into
19924         libtoolize.
19925         (tool search): Move libtool check earlier, and look for
19926         glibtoolize for MacOS.
19927         (gnulib_tool_options): Auto-add --libtool when appropriate.
19928         Reported by Justin Clift.
19929
19930         poll: fix typo that broke test on MacOS
19931         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
19932         Reported by Justin Clift.
19933
19934         getdate: rename to get_date
19935         Note: getdate.h is not renamed, to minimize client impact.
19936         * modules/getdate: Mark obsolete.  Move old contents...
19937         * modules/get_date: ...to new module name.
19938         * modules/getdate-tests: Move...
19939         * modules/get_date-tests: ...here.
19940         * m4/getdate.m4: Move...
19941         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
19942         * lib/getdate.y: Move...
19943         * lib/get_date.y: ...here.
19944         * tests/test-getdate.c: Move...
19945         * tests/test-get_date.c: ...here.
19946         * doc/posix-functions/getdate.texi (getdate): Update name.
19947         * NEWS: Mention the change.
19948
19949 2010-09-29  Bruno Haible  <bruno@clisp.org>
19950
19951         Separate the module 'waitpid' from the module 'sys_wait'.
19952         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
19953         present.
19954         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
19955         gl_MODULE_INDICATOR_FOR_TESTS.
19956         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
19957         * modules/sys_wait (Depends-on): Remove waitpid.
19958         (Makefile.am): Substitute GNULIB_WAITPID.
19959         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
19960         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
19961         signature only if the 'waitpid' module is present.
19962         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
19963         * NEWS: Mention the change.
19964         * modules/grantpt (Depends-on): Add waitpid.
19965         * modules/wait-process (Depends-on): Likewise.
19966
19967 2010-09-29  Bruno Haible  <bruno@clisp.org>
19968
19969         More tests for module 'sys_wait'.
19970         * modules/sys_wait-c++-tests: New file.
19971         * tests/test-sys_wait-c++.cc: New file.
19972         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
19973         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19974
19975 2010-09-29  Bruno Haible  <bruno@clisp.org>
19976
19977         New module 'waitpid'.
19978         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
19979         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
19980         Don't include <process.h>.
19981         (waitpid): Declare only, using modern idiom.
19982         * m4/waitpid.m4: New file.
19983         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
19984         * modules/waitpid: New file.
19985         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
19986         (Makefile.am): Update.
19987         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
19988
19989 2010-09-28  Bruno Haible  <bruno@clisp.org>
19990
19991         poll: Assume ANSI C.
19992         * lib/poll.c (poll): Use an ANSI C declaration.
19993
19994 2010-09-28  Bruno Haible  <bruno@clisp.org>
19995
19996         poll-h: Create poll.h on all platforms.
19997         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
19998         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
19999         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20000         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20001         (gl_REPLACE_POLL_H): Don't set POLL_H.
20002         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20003         * modules/poll-h (Depends-on): Add include_next.
20004         (Makefile.am): Create poll.h unconditionally. Substitute also
20005         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20006
20007 2010-09-28  Bruno Haible  <bruno@clisp.org>
20008
20009         Tests for module 'poll-h'.
20010         * modules/poll-h-c++-tests: New file.
20011         * tests/test-poll-h-c++.cc: New file.
20012
20013         Tests for module 'poll-h'.
20014         * modules/poll-h-tests: New file.
20015         * tests/test-poll-h.c: New file.
20016
20017 2010-09-28  Bruno Haible  <bruno@clisp.org>
20018
20019         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20020         * modules/poll-h (Depends-on): Add 'extensions'.
20021
20022 2010-09-28  Bruno Haible  <bruno@clisp.org>
20023
20024         New module 'poll-h'.
20025         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20026         (poll): Use modern idiom.
20027         * modules/poll-h: New file.
20028         * modules/poll (Files): Remove lib/poll.in.h.
20029         (Depends-on): Add poll-h.
20030         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20031         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20032         * m4/poll_h.m4: New file.
20033         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20034         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20035         and invoke gl_REPLACE_POLL_H.
20036         * lib/poll.c: Use common idiom.
20037         * tests/test-poll.c: Likewise.
20038         * doc/posix-headers/poll.texi: Mention the poll-h module.
20039         Suggested by Eric Blake.
20040
20041 2010-09-26  Bruno Haible  <bruno@clisp.org>
20042
20043         sys_wait: Implement WSTOPSIG.
20044         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20045         Reported by Simon Josefsson.
20046
20047 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20048
20049         stdlib, sys_wait: Avoid compilation error on mingw.
20050         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20051
20052 2010-09-26  Bruno Haible  <bruno@clisp.org>
20053
20054         stdlib tests: Avoid code duplication.
20055         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20056         * modules/sys_wait-tests (Files): Likewise.
20057         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20058         * tests/test-stdlib.c: Include test-sys_wait.h.
20059         (main): Invoke test_sys_wait_macros.
20060         * tests/test-sys_wait.c: Include test-sys_wait.h.
20061         (main): Invoke test_sys_wait_macros.
20062
20063 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20064
20065         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20066         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20067         sure Windows sockets are working before calling getaddrinfo.
20068         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20069         * doc/gnulib.texi (Windows sockets): Fix typo.
20070
20071 2010-09-25  Bruno Haible  <bruno@clisp.org>
20072
20073         Tests for module 'regex-quote'.
20074         * modules/regex-quote-tests: New file.
20075         * tests/test-regex-quote.c: New file.
20076
20077         New module 'regex-quote'.
20078         * lib/regex-quote.h: New file.
20079         * lib/regex-quote.c: New file.
20080         * modules/regex-quote: New file.
20081         Suggested by Reuben Thomas <rrt@sc3d.org>.
20082
20083 2010-09-24  Bruno Haible  <bruno@clisp.org>
20084
20085         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20086         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20087
20088 2010-09-23  Bruno Haible  <bruno@clisp.org>
20089
20090         setenv: Relax license.
20091         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20092         Blake.
20093         Requested by Eric Blake.
20094
20095 2010-09-22  Bruno Haible  <bruno@clisp.org>
20096
20097         termios: Relax license.
20098         * modules/termios (License): Change to LGPLv2+.
20099         Requested by Eric Blake.
20100
20101 2010-09-22  Bruno Haible  <bruno@clisp.org>
20102
20103         threadlib: Allow the package to change the default to 'no'.
20104         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20105         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20106         Reported by Paul Eggert.
20107
20108 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20109             Bruno Haible  <bruno@clisp.org>
20110
20111         Fix endless loop in mbmemcasecoll.
20112         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20113         byte.
20114         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20115
20116 2010-09-22  Bruno Haible  <bruno@clisp.org>
20117
20118         Tests for module 'memcoll'.
20119         * modules/memcoll-tests: New file.
20120         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20121
20122         memcoll, xmemcoll: Clarify size vs. length.
20123         * modules/memcoll.c (memcoll0): Clarify specification.
20124         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20125         passed to collate_error.
20126
20127 2010-09-22  Bruno Haible  <bruno@clisp.org>
20128
20129         Tests for module 'memcasecmp'.
20130         * modules/memcasecmp-tests: New file.
20131         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20132
20133 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20134
20135         * lib/pthread.in.h: Add split double-inclusion guard, and include
20136         system <pthread.h> if there is one.  Use @@-style as in other
20137         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20138         pthread.h doesn't.
20139         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20140         (pthread_mutexattr_settype, pthread_mutex_trylock):
20141         New static inline functions, if there's no system <pthread.h>.
20142         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20143         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20144         Approximate with mutexes if the system lacks spinlocks, as in
20145         MacOS.
20146         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20147         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20148         @@-style.  Check for spinlocks separately.
20149         (gl_PTHREAD_DEFAULTS): New macro.
20150         * modules/pthread: Redo to use a more typical style for in.h files.
20151
20152 2010-09-21  Eric Blake  <eblake@redhat.com>
20153
20154         net_if: enhance tests
20155         * tests/test-net_if.c (main): Move signature checks earlier.
20156         Print failures to stderr.
20157         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20158         Document the bug that we do not yet fix.
20159
20160 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20161
20162         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20163         about gnulib, not GSS.
20164
20165 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20166
20167         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20168         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20169         for Emacs.
20170         * build-aux/pmccabe2html: Make Makefile.am example code more
20171         cut-and-paste friendly.
20172
20173 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20174
20175         * tests/test-net_if.c: New file.
20176         * modules/net_if-tests: New file.
20177
20178 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20179
20180         pthread: add pthread_spin_destroy
20181         * lib/pthread.in.h (pthread_spin_destroy): New function.
20182
20183 2010-09-19  Bruno Haible  <bruno@clisp.org>
20184
20185         gnulib-tool: Fix --help output.
20186         * gnulib-tool (func_usage): Fix help message.
20187         Reported by Reuben Thomas <rrt@sc3d.org>.
20188
20189 2010-09-18  Jim Meyering  <meyering@redhat.com>
20190
20191         maint.mk: avoid unexpanded \n in two diagnostics
20192         * top/maint.mk (sc_prohibit_always_true_header_tests):
20193         Don't use a literal \n in a halt=... assignment.  It would not be
20194         expanded, and the two \n bytes would appear in the diagnostic output
20195         rather than the desired newline.  Use halt=$$(printf ... instead.
20196         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20197
20198 2010-09-18  Bruno Haible  <bruno@clisp.org>
20199
20200         netinet_in: Doc tweak.
20201         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20202         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20203
20204 2010-09-18  Jim Meyering  <meyering@redhat.com>
20205
20206         init.sh: correct an outdated comment
20207         * tests/init.sh (create_exe_shims_):  s/function/alias/
20208
20209         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20210         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20211         a file named "*.exe" is removed between the glob expansion and the
20212         processing of that oddly named file.
20213
20214 2010-09-17  Eric Blake  <eblake@redhat.com>
20215
20216         mirbsd: add some more support
20217         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20218         in BSD family.
20219         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20220         devices as OpenBSD.
20221         * m4/host-os.m4 (mirbsd): Add MirBSD.
20222
20223         tests: fix unportable assumption on sys/wait.h
20224         * tests/test-sys_wait.c (main): Relax test.
20225         * tests/test-stdlib.c (main): Likewise.
20226
20227         init.sh: accomodate directory with no .exes
20228         * tests/init.sh: Accomodate directory containing only scripts.
20229
20230         tests: avoid compiler warning
20231         * tests/test-stdlib.c (main): Use the variable.
20232
20233         fdutimens, fdutimensat: update signature, again
20234         * lib/utimens.h (gl_futimens): Delete, and move signature...
20235         (fdutimens): ...here.
20236         (fdutimensat): Rearrange signature.
20237         (lutimensat): Rename variable for clarity.
20238         * lib/fdutimensat.c (fdutimensat): Update signature.
20239         * lib/utimens.c (fdutimens): Likewise.
20240         (gl_futimens): Delete.
20241         (utimens, lutimens): Update callers.
20242         * lib/futimens.c (futimens): Likewise.
20243         * tests/test-fdutimensat.c: Likewise.
20244         * tests/test-utimens.c: Likewise.
20245         * tests/test-futimens.h: Update comment.
20246         * NEWS: Mention this.
20247         Suggested by Paul Eggert.
20248
20249 2010-09-17  Bruno Haible  <bruno@clisp.org>
20250
20251         Take over the maintenance of some older macros from Autoconf.
20252         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20253         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20254         GNU Autoconf.
20255         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20256         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20257
20258 2010-09-17  Eric Blake  <eblake@redhat.com>
20259
20260         fdutimensat: drop atflag validation
20261         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20262         with valid fd, to close a race scenario where futimens is
20263         unsupported and FILE was replaced by a symlink.
20264         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20265         accordingly.
20266         Suggested by Paul Eggert.
20267
20268 2010-09-16  Bruno Haible  <bruno@clisp.org>
20269
20270         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20271         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20272
20273 2010-09-16  Bruno Haible  <bruno@clisp.org>
20274
20275         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20276         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20277         login_tty exists.
20278         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20279
20280 2010-09-16  Bruno Haible  <bruno@clisp.org>
20281
20282         login_tty: Make the replacement code work on BSD systems.
20283         * lib/login_tty.c: Include <sys/ioctl.h>.
20284         (login_tty): Use ioctl TIOCSCTTY when available.
20285         * modules/login_tty (Depends-on): Add sys_ioctl.
20286         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20287
20288 2010-09-16  Bruno Haible  <bruno@clisp.org>
20289
20290         login_tty: Stricter unit test.
20291         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20292         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20293         and tcgetsid() after login_tty.
20294         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20295
20296 2010-09-16  Bruno Haible  <bruno@clisp.org>
20297
20298         New module 'tcgetsid'.
20299         * lib/tcgetsid.c: New file.
20300         * m4/tcgetsid.m4: New file.
20301         * modules/tcgetsid: New file.
20302         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20303         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20304         GNULIB_TCGETSID, HAVE_TCGETSID.
20305         * lib/termios.in.h: Include <sys/types.h>.
20306         (tcgetsid): New declaration.
20307         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20308         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20309         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20310         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20311
20312 2010-09-16  Bruno Haible  <bruno@clisp.org>
20313
20314         Tests for module 'termios'.
20315         * modules/termios-c++-tests: New file.
20316         * modules/termios-tests: New file.
20317         * tests/test-termios-c++.cc: New file.
20318         * tests/test-termios.c: New file.
20319
20320         New module 'termios'.
20321         * modules/termios: New file.
20322         * lib/termios.in.h: New file.
20323         * m4/termios_h.m4: New file.
20324         * doc/posix-headers/termios.texi: Mention the new module.
20325
20326 2010-09-16  Eric Blake  <eblake@redhat.com>
20327
20328         fdutimensat: add an atflag parameter
20329         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20330         * lib/utimens.h (fdutimensat): Update prototype.
20331         * tests/test-fdutimensat.c: Adjust test to match.
20332         * NEWS: Document the change.
20333         Suggested by Paul Eggert.
20334
20335 2010-09-16  Bruno Haible  <bruno@clisp.org>
20336
20337         Fix typos in comments.
20338         * lib/striconveh.h: Fix typo in comment.
20339         * lib/login_tty.c (login_tty): Likewise.
20340
20341 2010-09-15  Bruno Haible  <bruno@clisp.org>
20342
20343         stdlib: clarify MirBSD WEXITSTATUS bug
20344         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20345         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20346
20347 2010-09-15  Eric Blake  <eblake@redhat.com>
20348
20349         stdlib: work around MirBSD WEXITSTATUS bug
20350         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20351         * modules/stdlib (Depends-on): Add sys_wait.
20352         * tests/test-sys_wait.c (main): Enhance test.
20353         * tests/test-stdlib.c (main): Likewise.
20354         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20355
20356         docs: mention MacOS issue with WEXITSTATUS(constant)
20357         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20358         issue.
20359         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20360
20361         strnlen: add tests
20362         * modules/strnlen-tests: New file.
20363         * tests/test-strnlen.c: Likewise.
20364
20365 2010-09-14  Bruno Haible  <bruno@clisp.org>
20366
20367         unistr/base: Avoid link errors when module 'libunistring' is also used.
20368         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20369         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20370         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20371         Declare also when HAVE_LIBUNISTRING is set.
20372         Reported by Pádraig Brady <P@draigbrady.com>.
20373
20374 2010-09-14  Eric Blake  <eblake@redhat.com>
20375
20376         test-rawmemchr: make more robust
20377         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20378         (Depends-on, configure.ac): Add needed prerequisites to use it.
20379         * modules/memchr-tests (Files, Depends-on, configure.ac):
20380         Likewise, to avoid implicit reliance on memchr module prereqs.
20381         * tests/test-memchr.c (main): Ensure proper masking.
20382         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20383         reads.
20384
20385         memchr: detect glibc Alpha bug
20386         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20387         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20388         Alpha.
20389         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20390         * tests/test-memchr.c (main): Enhance test.
20391         Reported by Nelson H. F. Beebe.
20392
20393 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20394
20395         fts, getcwd, glob: audit for dirfd returning -1
20396         * lib/fts.c (opendir): Remove #define; no longer used.
20397         (opendirat): New arg PDIR_FD.  All callers changed.
20398         (fts_build, _opendir2): Use new opendirat to avoid the need for
20399         dirfd, or for checking whether dirfd returns a negative value.
20400         Don't use opendir; always use openat followed by fdopendir.
20401         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20402         it.
20403         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20404         returns -1 here.
20405         * modules/fts (Depends-on): Remove dirfd.
20406         * modules/getcwd (Depends-on): Likewise.
20407
20408 2010-09-13  Eric Blake  <eblake@redhat.com>
20409
20410         float: fix broken MirBSD header
20411         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20412         * doc/posix-headers/float.texi (float.h): Document it.
20413
20414 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20415
20416         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20417         * lib/fts.c (opendirat): New arg extra_flags.
20418         (__opendir2): Use it to avoid following symlinks when opening
20419         a directory, if symlinks are not supposed to be followed.  See
20420         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20421
20422         fdopendir: preserve argument fd before returning
20423         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20424         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20425         (fdopendir): Use them, arranging for FD to be open to the same
20426         directory that it was when it started.  (It might be temporarily
20427         closed while fdopendir is running, so this not thread- or
20428         signal-safe.)  Be careful to do the right thing even when file
20429         descriptors are scarce and dup fails with errno == EMFILE.  See
20430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20431
20432 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20433
20434         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20435         * NEWS: Document change.
20436         * m4/regex.m4: Disable test for regoff_t size.
20437
20438 2010-09-13  Jim Meyering  <meyering@redhat.com>
20439
20440         fts: don't operate on an invalid file descriptor after failed dup
20441         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20442         negative file descriptor.
20443
20444 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20445
20446         savedir: add streamsavedir, deprecate fdsavedir
20447         * NEWS: Mention deprecation of fdsavedir.
20448         * lib/savedir.c (streamsavedir): New extern function, whose name
20449         ends in "savedir" to be consistent with the others.  This differs
20450         from savedirstream in that it doesn't close its argument.  The
20451         next version of GNU tar will use this instead of fdsavedir, to
20452         avoid some race conditions and conserve file descriptors.
20453         (savedirstream): Reimplement as a wrapper around streamsavedir.
20454         (fdsavedir): Add a comment deprecating this function.  As far as
20455         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20456         * lib/savedir.h (streamsavedir): New decl.
20457         (fdsavedir): Add a comment deprecating this.
20458
20459 2010-09-10  Bruno Haible  <bruno@clisp.org>
20460
20461         langinfo: Fix last commit.
20462         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20463         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20464         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20465
20466 2010-09-10  Bruno Haible  <bruno@clisp.org>
20467
20468         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20469         * lib/progreloc.c (O_EXEC): Define fallback.
20470
20471 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20472
20473         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20474         * NEWS: Document recent changes to fcntl-h.
20475         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20476         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20477         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20478         Similarly for O_SEARCH; this last was already true, but not documented.
20479         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20480         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20481         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20482         Likewise.
20483         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20484         is zero, not whether it is defined.
20485         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20486         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20487         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20488
20489 2010-09-10  Bruno Haible  <bruno@clisp.org>
20490
20491         langinfo, nl_langinfo: Fix for IRIX 5.3.
20492         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20493         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20494         HAVE_LANGINFO_YESEXPR.
20495         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20496         HAVE_LANGINFO_YESEXPR.
20497         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20498         HAVE_LANGINFO_T_FMT_AMPM is 0.
20499         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20500         HAVE_LANGINFO_YESEXPR is 0.
20501         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20502         NOEXPR.
20503         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20504         * doc/posix-functions/nl_langinfo.texi: Likewise.
20505         Reported by Eric Blake.
20506
20507 2010-09-10  Bruno Haible  <bruno@clisp.org>
20508
20509         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20510         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20511         on FreeBSD 8.0 and OpenBSD 4.6.
20512         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20513         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20514         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20515         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20516         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20517         ac_includes_default.
20518         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20519
20520 2010-09-09  Eric Blake  <eblake@redhat.com>
20521
20522         strsignal: work around NetBSD bug
20523         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20524         * lib/string.in.h (includes): Likewise.
20525         * doc/posix-functions/strsignal.texi (strsignal): Document the
20526         bug.
20527         Reported by Nelson H. F. Beebe.
20528
20529         gnulib-tool: work with NetBSD /bin/sh
20530         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20531         (func_get_description, func_get_comment, func_get_status)
20532         (func_get_notice, func_get_applicability, func_get_filelist)
20533         (func_get_dependencies, func_get_autoconf_early_snippet)
20534         (func_get_autoconf_snippet, func_get_automake_snippet)
20535         (func_get_include_directive, func_get_link_directive)
20536         (func_get_license, func_get_maintainer, func_import): Avoid
20537         shell syntax errors from parsing syntax extensions.
20538
20539 2010-09-09  Bruno Haible  <bruno@clisp.org>
20540
20541         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20542         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20543         a reliable way to determine whether the 'alias' command works.
20544
20545 2010-09-08  Jim Meyering  <meyering@redhat.com>
20546
20547         init.sh: penalize a set-x-impaired shell; don't disqualify it
20548         * tests/init.sh: Too many shells corrupt application stderr when
20549         you set -x, so we can't afford to disqualify them, since at least
20550         on Irix-6.5, that would disqualify all bourne shells.
20551         Instead, use a two-pass approach.
20552         On the first pass, try to find a shell that meets the stricter
20553         condition that set -x does not corrupt stderr.
20554         If no shell meets the stricter condition, retest each candidate
20555         shell, but without that extra condition.  Finally, when
20556         VERBOSE=yes is requested and set -x might cause trouble, simply
20557         issue a warning and refrain from enabling debug output.
20558
20559 2010-09-08  Eric Blake  <eblake@redhat.com>
20560
20561         unsetenv: fix OpenBSD bug
20562         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20563         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20564         documentation.
20565         Reported by Jim Meyering.
20566
20567         strtod: work around IRIX 6.5 bug
20568         * lib/strtod.c (strtod): Reparse number on shorter string if
20569         exponent parse was invalid.
20570         * tests/test-strtod.c (main): Add check for "0x1p 2".
20571         Reported by Tom G. Christensen.
20572
20573         getopt: optimize previous patch
20574         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20575         empty variable.  Speed up awk script.
20576         Reported by Paolo Bonzini.
20577
20578 2010-09-08  Jim Meyering  <meyering@redhat.com>
20579
20580         test.sh: disqualify shells for which set -x corrupts stderr
20581         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20582         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20583         appear in stderr output.  For example, this command:
20584             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20585         prints "P=1" on those two systems:
20586
20587 2010-09-08  Bruno Haible  <bruno@clisp.org>
20588
20589         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20590         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20591         commands, because some shells ignore redirections when there is an
20592         error in the command lookup.
20593         Reported by Eric Blake.
20594
20595 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20596
20597         * lib/regex.h: Fix a mention of `regex_compile' (should be
20598         `re_compile_pattern').
20599         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20600         (re_set_registers): Correct name of parameter in comment.
20601
20602         * doc/regex.texi: Add documentation for missing syntax flags.
20603         Remove commented-out documentation of defunct syntax option
20604         RE_NO_EMPTY_ALTS.
20605         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20606         Add documentation of re_set_registers.
20607         Document trick to re-use a pattern buffer by setting fastmap manually.
20608         Update documentation of struct re_pattern_buffer per public members.
20609         Uncomment documentation of equivalence class operators and
20610         collating symbol operators, since they are now implemented,
20611         Explain leftmost-longest matching in relation to alternatives.
20612         Tidy documentation of substring matching.
20613         Remove POSIX documentation, which is done better in
20614         glibc, and refer the reader there. Keep BSD API documentation, as
20615         that is not readily available elsewhere.
20616
20617 2010-09-07  Eric Blake  <eblake@redhat.com>
20618
20619         getopt: handle POSIXLY_CORRECT set but not exported
20620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20621         export state of POSIXLY_CORRECT, due to bash set -o posix.
20622         Reported by Dustin J. Mitchell.
20623
20624 2010-09-05  Bruno Haible  <bruno@clisp.org>
20625
20626         gnulib-tool: Highlight the changed options.
20627         * gnulib-tool (func_usage): Display the --import, --add-import,
20628         --remove-import explanations in bold font.
20629
20630 2010-09-06  Karl Berry  <karl@gnu.org>
20631
20632         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20633
20634 2010-09-05  Bruno Haible  <bruno@clisp.org>
20635
20636         uniwidth/width: Update comment.
20637         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20638         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20639
20640 2010-09-05  Bruno Haible  <bruno@clisp.org>
20641
20642         isinf, isnan: Relax license.
20643         * modules/isinf (License): Change from GPL to LGPL, with consent from
20644         Ben Pfaff.
20645         * modules/isnan (License): Likewise.
20646         Requested by Ludovic Courtès.
20647
20648 2010-09-04  Bruno Haible  <bruno@clisp.org>
20649
20650         gnulib-tool: Help migration from --import to --add-import or --update.
20651         * gnulib-tool: Emit a verbose error message when --import is used
20652         without any module name.
20653
20654 2010-09-04  Bruno Haible  <bruno@clisp.org>
20655
20656         Update doc about gnulib-tool.
20657         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20658         'gnulib-tool --update' in more detail.
20659         Reported by Eric Blake.
20660
20661 2010-09-04  Bruno Haible  <bruno@clisp.org>
20662
20663         gnulib-tool: Change --import. New options --add/remove-import.
20664         * gnulib-tool: New options --add-import, --remove-import.
20665         (func_usage): Document them.
20666         (have_associative): Define always.
20667         (func_import): In import mode, don't merge the specified settings with
20668         the cached settings. Implement remove-import mode.
20669         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20670         Explain when to use them versus --import.
20671         (Simple update): Use --add-import instead of --import.
20672         * NEWS: Mention the change.
20673
20674 2010-09-04  Bruno Haible  <bruno@clisp.org>
20675
20676         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20677         separate gnulib.mk.
20678
20679 2010-09-04  Bruno Haible  <bruno@clisp.org>
20680
20681         gnulib-tool: Don't talk about CVS any more.
20682         * gnulib-tool (func_usage, func_import): Write "version control"
20683         instead of CVS.
20684
20685 2010-09-04  Jim Meyering  <meyering@redhat.com>
20686
20687         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20688         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20689         false positives (whose names may be ill-chosen) when searching
20690         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20691         would cause a false-positive.
20692
20693         avoid coreutils "make distcheck" failure
20694         Coreutils tests with an absolute build directory name that contains
20695         a space.  Not quoting this directory name caused a failure.
20696         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20697         * tests/test-vc-list-files-cvs.sh: Likewise.
20698
20699 2010-09-04  Bruno Haible  <bruno@clisp.org>
20700
20701         gnulib-tool: Avoid error when run in a package without Makefile.am.
20702         * gnulib-tool: When collecting the m4dirs in a package that does not
20703         have a Makefile.am, eliminate those directories that contain no
20704         gnulib-cache.m4. Fix expression that counts these directories.
20705
20706 2010-09-04  Bruno Haible  <bruno@clisp.org>
20707
20708         update-copyright test: Improve output when perl is missing or too old.
20709         * tests/test-update-copyright.sh: Move test of Perl version down after
20710         the test whether Perl exists. Provide an explanation relating Perl's
20711         error message to Automake's SKIP: message.
20712
20713 2010-09-04  Bruno Haible  <bruno@clisp.org>
20714
20715         Don't augment PATH in TESTS_ENVIRONMENT.
20716         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20717         set abs_aux_dir instead of augmenting PATH.
20718         * modules/vc-list-files-tests (Makefile.am): Likewise.
20719         * tests/test-update-copyright.sh: Augment PATH here.
20720         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20721         path_prepend_.
20722         * tests/test-vc-list-files-git.sh: Likewise.
20723
20724 2010-09-04  Jim Meyering  <meyering@redhat.com>
20725
20726         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20727         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20728
20729 2010-09-04  Bruno Haible  <bruno@clisp.org>
20730
20731         strdup: Fix compilation error in C++ mode.
20732         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20733         the macro.
20734
20735 2010-09-04  Bruno Haible  <bruno@clisp.org>
20736
20737         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20738         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20739         macro into a function.
20740         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20741
20742 2010-09-04  Bruno Haible  <bruno@clisp.org>
20743
20744         Set PATH_SEPARATOR the same way autoconf does.
20745         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20746         the value of PATH_SEPARATOR the same way autoconf-generated configure
20747         scripts do.
20748         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20749         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20750
20751 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20752
20753         Set PATH_SEPARATOR the same way autoconf does.
20754         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20755         the same way autoconf-generated configure scripts do.
20756         * posix-modules: Likewise.
20757
20758 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20759
20760         hash: fix safe_hasher const typo
20761         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20762         const; otherwise, there is a type error later.
20763
20764 2010-09-02  Jim Meyering  <meyering@redhat.com>
20765
20766         test-update-copyright.sh: require perl 5.8.0
20767         * tests/test-update-copyright.sh: Require 5.8.0,
20768         which Tom G. Christensen has confirmed is adequate,
20769         while 5.6.1 is not.
20770
20771 2010-09-02  Eric Blake  <eblake@redhat.com>
20772
20773         tests: init.sh improvements for re-exec'ing with zsh
20774         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20775         -vx through shell re-exec.
20776         Reported by Tom G. Christensen.
20777
20778         wctype: fix typo in previous commit
20779         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20780         Reported by Ludovic Courtès.
20781
20782 2010-09-02  Jim Meyering  <meyering@redhat.com>
20783
20784         test-update-copyright.sh: skip test if Perl is too old
20785         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20786         Reported by Tom G. Christensen.
20787
20788 2010-09-02  Bruno Haible  <bruno@clisp.org>
20789
20790         wctype: Avoid compilation error on IRIX 6.5.30.
20791         * lib/wctype.in.h (iswblank): Declare with a replacement if
20792         REPLACE_ISWBLANK is set.
20793         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20794         declared. Set REPLACE_ISWBLANK.
20795         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20796         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20797         * doc/posix-headers/wctype.texi: Likewise.
20798         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20799
20800 2010-09-01  Bruno Haible  <bruno@clisp.org>
20801
20802         New module 'socketlib'.
20803         * modules/socketlib: New file.
20804         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20805         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20806         * modules/sockets (Depends-on): Add socketlib.
20807         Suggested by Sam Steingold <sds@gnu.org>.
20808
20809 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20810
20811         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20812
20813         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20814         when one needs search access to a directory but not read access.
20815         On systems where it is available, it works in some cases where
20816         O_RDONLY does not, namely on directories that are searchable but
20817         not readable, and which need only to be searchable.  If O_SEARCH
20818         is not available, fall back to the traditional method of using
20819         O_RDONLY.
20820
20821         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20822         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20823         when opening a directory that needs only to be searchable.
20824         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20825         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20826         * lib/openat-proc.c (openat_proc_name): Likewise.
20827         * lib/openat.c (openat_needs_fchdir): Likewise.
20828         * lib/save-cwd.c (save_cwd): Likewise.
20829         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20830
20831 2010-08-28  Bruno Haible  <bruno@clisp.org>
20832
20833         New module 'host-cpu-c-abi'.
20834         * modules/host-cpu-c-abi: New file.
20835         * m4/host-cpu-c-abi.m4: New file, based on part of
20836         clisp/src/m4/general.m4.
20837         Requested by Sam Steingold <sds@gnu.org>.
20838
20839 2010-08-31  Eric Blake  <eblake@redhat.com>
20840         and Jim Meyering  <meyering@redhat.com>
20841
20842         hash: factor, and guard against misbehaving hasher function
20843         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20844         of table->hasher's return value.  Also protect against a hash value
20845         so large that adding it to table->bucket results in a NULL pointer.
20846         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20847         Use it in place of open-coded check-and-abort.
20848
20849 2010-08-30  Bruno Haible  <bruno@clisp.org>
20850
20851         hash: silence spurious clang warning
20852         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20853         Reported by Eric Blake.
20854
20855 2010-08-30  Eric Blake  <eblake@redhat.com>
20856
20857         strstr, memmem, strcasestr: avoid leaked shell message
20858         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20859         FreeBSD.
20860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20861         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20862
20863         tests: silence clang warning
20864         * tests/test-malloca.c (do_allocation): Avoid dead store.
20865
20866 2010-08-29  Bruno Haible  <bruno@clisp.org>
20867
20868         gettext: Fix recent mistake.
20869         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20870
20871 2010-08-29  Bruno Haible  <bruno@clisp.org>
20872
20873         selinux-h: Offer a --without-selinux option.
20874         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20875         --without-selinux was specified, skip all tests and define
20876         HAVE_SELINUX_SELINUX_H to 0.
20877         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20878         set LIB_SELINUX to empty.
20879         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20880         gl_LIBSELINUX. If --without-selinux was specified, replace
20881         selinux/context.h.
20882         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20883
20884 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20885             Bruno Haible  <bruno@clisp.org>
20886
20887         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20888         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20889         of HAVE_REALLOC.
20890         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20891         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20892         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20893         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20894
20895 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20896             Bruno Haible  <bruno@clisp.org>
20897
20898         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20899         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20900         HAVE_CALLOC.
20901         * lib/xmalloc.c: Update accordingly.
20902         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20903         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20904         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20905
20906 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20907             Bruno Haible  <bruno@clisp.org>
20908
20909         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20910         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20911         HAVE_MALLOC.
20912         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20913         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20914         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20915
20916 2010-08-29  Bruno Haible  <bruno@clisp.org>
20917
20918         Update modules list.
20919         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20920         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20921         (String handling <string.h>): Add astrxfrm.
20922         (File system functions): Add readlinkat.
20923
20924 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20925
20926         Tests for module 'realloc-gnu'.
20927         * modules/realloc-gnu-tests: New file.
20928         * tests/test-realloc-gnu.c: New file.
20929
20930         Tests for module 'calloc-gnu'.
20931         * modules/calloc-gnu-tests: New file.
20932         * tests/test-calloc-gnu.c: New file.
20933
20934         Tests for module 'malloc-gnu'.
20935         * modules/malloc-gnu-tests: New file.
20936         * tests/test-malloc-gnu.c: New file.
20937
20938 2010-08-28  Bruno Haible  <bruno@clisp.org>
20939
20940         Rename module 'realloc' -> 'realloc-gnu'.
20941         * modules/realloc-gnu: New file, copied from modules/realloc.
20942         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
20943         obsolete.
20944         * modules/mgetgroups (Depends-on): Update.
20945         * doc/posix-functions/realloc.texi: Update.
20946         * NEWS: Mention the change.
20947
20948         Rename module 'calloc' -> 'calloc-gnu'.
20949         * modules/calloc-gnu: New file, copied from modules/calloc.
20950         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
20951         obsolete.
20952         * doc/posix-functions/calloc.texi: Update.
20953         * NEWS: Mention the change.
20954
20955         Rename module 'malloc' -> 'malloc-gnu'.
20956         * modules/malloc-gnu: New file, copied from modules/malloc.
20957         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
20958         obsolete.
20959         * modules/argp (Depends-on): Update.
20960         * modules/regex (Depends-on): Update.
20961         * doc/posix-functions/malloc.texi: Update.
20962         * NEWS: Mention the change.
20963
20964 2010-08-28  Eric Blake  <eblake@redhat.com>
20965
20966         pread, pwrite: add missing dependency
20967         * modules/pread (Depends-on): Add extensions.
20968         * modules/pwrite (Depends-on): Likewise.
20969
20970 2010-08-28  Bruno Haible  <bruno@clisp.org>
20971
20972         unistr/u*-strchr: Fix tests dependencies.
20973         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
20974         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
20975         Reported by Ian Beckwith <ianb@erislabs.net>.
20976
20977 2010-08-28  Bruno Haible  <bruno@clisp.org>
20978
20979         read-file: Don't occupy too much unused memory.
20980         * lib/read-file.c (fread_file): Shrink the buffer at the end.
20981
20982 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
20983             Eric Blake  <eblake@redhat.com>
20984             Bruno Haible  <bruno@clisp.org>
20985
20986         read-file: Avoid memory reallocations with regular files.
20987         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
20988         (fread_file): With regular files, use the remaining length as the
20989         initial buffer size.  Check against overflow.
20990         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
20991         sys_stat.
20992
20993 2010-08-28  Bruno Haible  <bruno@clisp.org>
20994
20995         ftello: Relax license.
20996         * modules/ftello (License): Relax to LGPLv2+.
20997         Reported by Eric Blake.
20998
20999 2010-08-28  Bruno Haible  <bruno@clisp.org>
21000
21001         Avoid relocwrapper link errors due to gnulib replacement functions.
21002         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21003         function.
21004         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21005
21006 2010-08-28  Bruno Haible  <bruno@clisp.org>
21007
21008         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21009         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21010         defined.
21011         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21012         Suggested by Eric Blake.
21013
21014 2010-08-28  Bruno Haible  <bruno@clisp.org>
21015
21016         sys_socket, netdb: Ensure socklen_t gets defined.
21017         * modules/sys_socket (Depends-on): Add socklen.
21018         * modules/netdb (Depends-on): Likewise.
21019         * modules/getaddrinfo (Depends-on): Remove socklen.
21020         * modules/getsockopt (Depends-on): Likewise.
21021         * modules/setsockopt (Depends-on): Likewise.
21022         * tests/test-sys_socket.c: Check that socklen_t is defined.
21023         * tests/test-netdb.c: Likewise.
21024         * m4/socklen.m4: Update comments.
21025         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21026
21027 2010-08-27  Eric Blake  <eblake@redhat.com>
21028
21029         login_tty: add missing dependency
21030         * modules/login_tty (Depends-on): Add pty.
21031
21032 2010-08-26  Eric Blake  <eblake@redhat.com>
21033
21034         lib-symbol-versions: fix m4 quoting
21035         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21036         format for AC_LINK_IFELSE.
21037
21038         glob: fix compile test
21039         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21040
21041         btowc: fix missing file
21042         * modules/btowc (Files): Also ship locale-fr.m4.
21043
21044         lseek: fix link test
21045         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21046         AC_LINK_IFELSE.
21047
21048         include_next: silence autoconf 2.68 warning
21049         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21050         AC_COMPILE_IFELSE as special.
21051         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21052         autoconf < 2.68.
21053
21054         acl: fix compilation test
21055         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21056         AC_COMPILE_IFELSE.
21057
21058 2010-08-26  Bruno Haible  <bruno@clisp.org>
21059
21060         Modernize AC_TRY_RUN invocations.
21061         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21062         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21063         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21064         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21065         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21066         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21067         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21068         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21069         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21070         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21071         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21072         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21073         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21074         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21075         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21076         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21077         gl_MBRLEN_NUL_RETVAL): Likewise.
21078         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21079         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21080         Likewise.
21081         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21082         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21083         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21084         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21085         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21086         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21087         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21088         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21089         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21090         Likewise.
21091         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21092         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21093         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21094         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21095         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21096         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21097         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21098         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21099         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21101
21102 2010-08-26  Bruno Haible  <bruno@clisp.org>
21103
21104         Modernize AC_TRY_LINK invocations.
21105         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21106         AC_TRY_LINK.
21107         * m4/argp.m4 (gl_ARGP): Likewise.
21108         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21109         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21110         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21111         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21112         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21113         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21114         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21115         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21116         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21117         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21118         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21119         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21120         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21121         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21122         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21123         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21124         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21125         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21126         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21127         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21128         Likewise.
21129         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21130         Likewise.
21131         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21132         Likewise.
21133         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21134         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21135         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21136         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21137         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21138         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21139         * m4/servent.m4 (gl_SERVENT): Likewise.
21140         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21141         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21142         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21143         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21144         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21145         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21146         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21147         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21148         * modules/tsearch-tests (configure.ac): Likewise.
21149
21150 2010-08-26  Bruno Haible  <bruno@clisp.org>
21151
21152         Modernize AC_TRY_COMPILE invocations.
21153         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21154         AC_TRY_COMPILE.
21155         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21156         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21157         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21158         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21159         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21160         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21161         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21162         * m4/lock.m4 (gl_LOCK): Likewise.
21163         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21164         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21165         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21166         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21167         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21168         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21169         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21170         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21171         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21172         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21173         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21174         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21175         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21176         extraneous semicolon.
21177
21178 2010-08-26  Jim Meyering  <meyering@redhat.com>
21179
21180         stat-time: relax license LGPL
21181         * modules/stat-time (License): Change from GPL to LGPL,
21182         with consent from all contributors, for use in libguile.
21183         Requested by Ludovic Courtès.
21184
21185 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21186
21187         poll: return immediately on POLLHUP.
21188         * lib/poll.c (poll): Always set timeout before wait_timeout is
21189         computed.
21190
21191 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21192
21193         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21194         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21195         rmdir ("dir/.//"), unlinkat.
21196
21197 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21198
21199         stdbool: avoid spurious failure with modern xlc
21200         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21201
21202 2010-08-24  Bruno Haible  <bruno@clisp.org>
21203
21204         getloadavg: simplify code
21205         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21206         gl_have_func. Update comments.
21207
21208 2010-08-24  Eric Blake  <eblake@redhat.com>
21209
21210         getloadavg: don't define SVR4 on cygwin
21211         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21212         only define SVR4 when -lkvm is required.
21213         Reported by Yaakov Selkowitz.
21214
21215 2010-08-24  Bruno Haible  <bruno@clisp.org>
21216
21217         priv-set: fix comment
21218         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21219
21220 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21221
21222         priv-set: fix comments
21223         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21224         to match code, as suggested by David Bartley in:
21225         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21226
21227 2010-08-23  Eric Blake  <eblake@redhat.com>
21228
21229         stdbool: avoid rejecting clang
21230         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21231         * tests/test-stdbool.c: Enable more tests if using the system
21232         <stdbool.h> instead of the gnulib replacement.
21233         (main): Move xlc bug test to a runtime test for all compilers.
21234         Reported by Anders Kaseorg.
21235
21236         argz: fix shell quoting issue
21237         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21238         Reported by Charles Wilson.
21239
21240 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21241             Erik Faye-Lund <kusmabite@gmail.com>
21242
21243         poll, select: handle ERROR_BROKEN_PIPE.
21244         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21245         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21246         * lib/select.c (win32_compute_revents): Do not mark a pipe
21247         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21248
21249 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21250
21251         fts: allow compilation with C++
21252         * lib/fts_.h: Specify extern "C" linkage with C++.
21253
21254 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21255
21256         Fix gnulib-tool sed script de-commentation for AIX sed.
21257         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21258         sed.
21259
21260 2010-08-17  Eric Blake  <eblake@redhat.com>
21261
21262         test-stddef: test for (some) offsetof bugs
21263         * tests/test-stddef.c: Enhance test to ensure correct type of
21264         offsetof.
21265         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21266         that we are not fixing at this time.
21267
21268 2010-08-15  Bruno Haible  <bruno@clisp.org>
21269
21270         stpncpy: Allow stpncpy to be defined as a macro.
21271         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21272         if it's already correctly declared.
21273         * lib/string.in.h (stpncpy): Undefine before redefining.
21274         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21275
21276 2010-08-14  Bruno Haible  <bruno@clisp.org>
21277
21278         Rename module 'memxfrm' to 'amemxfrm'.
21279         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21280         (amemxfrm): Renamed from memxfrm.
21281         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21282         (amemxfrm): Renamed from memxfrm.
21283         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21284         * NEWS: Mention the change.
21285         * MODULES.html.sh (String handling <string.h>): Update.
21286         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21287         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21288         * lib/unicase/u16-casexfrm.c: Likewise.
21289         * lib/unicase/u32-casexfrm.c: Likewise.
21290         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21291         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21292         * lib/uninorm/u16-normxfrm.c: Likewise.
21293         * lib/uninorm/u32-normxfrm.c: Likewise.
21294         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21295         memxfrm.
21296         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21297         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21298         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21299         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21300         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21301         Suggested by Paul Eggert.
21302
21303 2010-08-14  Bruno Haible  <bruno@clisp.org>
21304
21305         Tests for module 'astrxfrm'.
21306         * modules/astrxfrm-tests: New file.
21307         * tests/test-astrxfrm.c: New file.
21308
21309         New module 'astrxfrm'.
21310         * lib/astrxfrm.h: New file.
21311         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21312         * modules/astrxfrm: New file.
21313
21314 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21315
21316         regex: Tweak doc.
21317         * doc/regex.texi (Overview): Don't mention regex.c.
21318         (GNU Regular Expression Compiling): Likewise.
21319         (Match-end-of-line Operator): Mention 'not_eol'.
21320
21321 2010-08-14  Brian Gough  <bjg@gnu.org>
21322             Bruno Haible  <bruno@clisp.org>
21323
21324         git-merge-changelog: add doc relating to use with bzr and hg.
21325         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21326
21327 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21328
21329         pthread: fix pthread.h creation for srcdir != builddir
21330         * modules/pthread (Makefile.am): Fix the rule to work also in a
21331         non-srcdir build.
21332
21333 2010-08-13  Karl Berry  <karl@gnu.org>
21334
21335         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21336         * doc/posix-*/*: force line break before @url of POSIX
21337         specifications.
21338         Suggested by Werner Lemberg.
21339
21340 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21341
21342         strtod: fix const diagnostic
21343         * lib/strtod.c (strtod): Don't assign const char * to char *,
21344         as this elicits a warning from GCC when warnings are enabled.
21345
21346 2010-08-10  Pádraig Brady <P@draigbrady.com>
21347         and Eric Blake  <eblake@redhat.com>
21348
21349         copy-acl: ignore ENOTSUP on HP-UX
21350         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21351         so that it is available for HP-UX.
21352         * lib/copy-acl.c (qcopy_acl): Use it.
21353         Reported by Patrick M. Callahan.
21354
21355 2010-08-10  Eric Blake  <eblake@redhat.com>
21356
21357         open, chown: relax license
21358         * modules/open (License): Change to LGPLv2+, with consent by all
21359         authors, for use in augeas.
21360         * modules/chown (License): Likewise.
21361         * modules/lchown (Likewise): Likewise.
21362         Requested by Adam Stokes.
21363
21364 2010-08-09  Karl Berry  <karl@gnu.org>
21365
21366         * build-aux/ar-lib: new file, import from Automake.
21367         * config/srclist.txt: autocheck for updates.
21368
21369 2010-08-09  Eric Blake  <eblake@redhat.com>
21370
21371         readlinkat: adjust client modules
21372         * modules/areadlinkat (Depends-on): Use readlinkat, not
21373         symlinkat.
21374         * modules/areadlinkat-with-size (Depends-on): Likewise.
21375
21376         mknod: be more vocal about danger of running tests as root
21377         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21378         root, since that is just asking for problems.
21379         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21380
21381         readlinkat: split into its own module
21382         * modules/symlinkat: Split readlinkat...
21383         * modules/readlinkat: ...into separate module.
21384         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21385         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21386         * lib/symlinkat.c (readlinkat): Move...
21387         * lib/readlinkat.c: ...into new file.
21388         * modules/symlinkat-tests: Split readlinkat test...
21389         * modules/readlinkat-tests: ...into separate module.
21390         * tests/test-symlinkat.c: Split...
21391         * tests/test-readlinkat.c: ...into new file.
21392         * NEWS: Document the split.
21393         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21394         * lib/unistd.in.h (readlinkat): Likewise.
21395         Suggested by Bruno Haible.
21396
21397 2010-08-08  Bruno Haible  <bruno@clisp.org>
21398
21399         memxfrm: Speed up.
21400         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21401         that usually only one call to strxfrm is necessary for each string
21402         part.
21403         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21404
21405 2010-08-07  Karl Berry  <karl@gnu.org>
21406
21407         * doc/posix-headers/limits.texi,
21408         * doc/posix-functions/malloc.texi,
21409         * doc/posix-functions/strsignal.texi: missing @item.
21410         * doc/ld-version-script.texi: spurious leading i.
21411         * doc/regex.texi (Interval Operators): no commas inside @var.
21412
21413 2010-08-01  Bruno Haible  <bruno@clisp.org>
21414
21415         Integrate the regex documentation.
21416         * doc/gnulib.texi: Define 'cn' index.
21417         (Regular expressions): New a chapter that includes regex.texi and
21418         regexprops-generic.texi.
21419         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21420         syntax.
21421
21422         Whitespace cleanup.
21423         * doc/regex.texi: Remove trailing spaces.
21424
21425         Add regex documentation.
21426         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21427         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21428         Written by Kathy A. Hargreaves and Karl Berry.
21429
21430 2010-08-01  Bruno Haible  <bruno@clisp.org>
21431
21432         link: Update documentation.
21433         * doc/posix-functions/link.texi: Update regarding Solaris.
21434
21435 2010-07-31  Bruno Haible  <bruno@clisp.org>
21436
21437         Update modules list.
21438         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21439         (String handling <string.h>): Add memcmp2, memxfrm.
21440         (Container data structures): Add xlist, xsublist, xoset.
21441         (Core language properties): Add alignof, unused-parameter.
21442         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21443         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21444         (Unibyte characters <ctype.h>): New section.
21445         (String handling <string.h>): New section.
21446         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21447         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21448         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21449         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21450         tan, tanh, tanl, y0, y1, yn.
21451         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21452         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21453         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21454         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21455         unlockpt, vdprintf, vdprintf-posix.
21456         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21457         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21458         xconcat-filename.
21459         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21460         getdtablesize, pipe2, pipe2-safer.
21461         (Security): New section.
21462         (Networking functions): Add accept4.
21463         (Signal handling): Add sigpipe.
21464         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21465         mbmemcasecoll.
21466         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21467         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21468         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21469         pipe-filter-ii.
21470         (Misc): Add argp-version-etc, login_tty, parse-duration.
21471
21472 2010-07-31  Bruno Haible  <bruno@clisp.org>
21473
21474         Improve doc in MODULES.html.
21475         * modules/linkat (Description): Add the word "function".
21476         * modules/mkfifo (Description): Likewise.
21477         * modules/mknod (Description): Likewise.
21478         * modules/remove (Description): Likewise.
21479         * modules/renameat (Description): Likewise.
21480         * modules/stat (Description): Likewise.
21481         * modules/symlink (Description): Likewise.
21482         * modules/unlink (Description): Likewise.
21483
21484 2010-07-31  Bruno Haible  <bruno@clisp.org>
21485
21486         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21487         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21488         option --enable/disable-c++ instead of --enable/disable-cxx.
21489         * NEWS: Mention the change.
21490
21491 2010-07-31  Bruno Haible  <bruno@clisp.org>
21492
21493         readlink, areadlink: Relax test a bit.
21494         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21495         alternative to ENOTDIR.
21496         * tests/test-areadlink.h (test_areadlink): Likewise.
21497         Reported by Rainer Tammer.
21498
21499 2010-07-31  Bruno Haible  <bruno@clisp.org>
21500
21501         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21502         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21503         character, perform the search using U_STRCHR.
21504         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21505         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21506         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21507         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21508         Suggested by Paolo Bonzini.
21509
21510 2010-07-31  Bruno Haible  <bruno@clisp.org>
21511
21512         unistr/u*-strstr: Fix dependencies.
21513         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21514         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21515         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21516
21517 2010-07-31  Bruno Haible  <bruno@clisp.org>
21518
21519         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21520         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21521         the beginning of the loop.
21522         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21523         cases in 'switch' statement.
21524
21525         unistr/u8-strchr: Fix several bugs.
21526         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21527         the string. When not found, return NULL, not a pointer near the end.
21528
21529         More tests for unistr/u8-strchr.
21530         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21531         that the function does not read past the first occurrence of the byte
21532         being searched.
21533         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21534         * tests/unistr/test-u16-strchr.c (main): New function.
21535         * tests/unistr/test-u32-strchr.c (main): New function.
21536
21537 2010-07-31  Bruno Haible  <bruno@clisp.org>
21538
21539         posix-modules: Ignore backup files of documentation files.
21540         * posix-modules: grep only through files named *.texi.
21541
21542 2010-07-31  Bruno Haible  <bruno@clisp.org>
21543
21544         symlinkat: Fix documentation.
21545         * doc/posix-functions/readlinkat.texi: Fix module name.
21546
21547 2010-07-31  Bruno Haible  <bruno@clisp.org>
21548
21549         fchownat: Replace also when chown has the trailing slash bug.
21550         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21551         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21552         introduced on 2010-04-10.
21553         Reported by Rainer Tammer.
21554
21555 2010-07-31  Bruno Haible  <bruno@clisp.org>
21556
21557         linkat: Work around AIX 7.1 bug.
21558         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21559         whether linkat handles trailing slash correctly. If not, replace linkat
21560         and define LINKAT_TRAILING_SLASH_BUG.
21561         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21562         check whether (fd1,file1) points to a directory if file1 or file2 ends
21563         in a slash. Code taken from lib/link.c.
21564         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21565         Reported by Rainer Tammer.
21566
21567 2010-07-31  Bruno Haible  <bruno@clisp.org>
21568
21569         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21570         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21571         This disables an xlc optimization that was causing wrong test results.
21572         Reported by Rainer Tammer.
21573
21574 2010-07-31  Bruno Haible  <bruno@clisp.org>
21575
21576         iconv: Work around AIX 6.1..7.1 bug.
21577         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21578         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21579         cross-compiling, guess no on all versions of AIX.
21580         Reported by Rainer Tammer.
21581
21582 2010-07-31  Bruno Haible  <bruno@clisp.org>
21583
21584         readlink: Relax test a bit.
21585         * tests/test-readlink.h (test_readlink): Allow different errno value
21586         when readlink is called with a file name that ends in / and refers to
21587         a file.
21588         Suggested by Eric Blake.
21589         Reported by Rainer Tammer.
21590
21591 2010-07-31  Bruno Haible  <bruno@clisp.org>
21592
21593         copysign: Does not require -lm on glibc systems.
21594         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21595         gl_COMMON_DOUBLE_MATHFUNC.
21596         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21597
21598 2010-07-31  Bruno Haible  <bruno@clisp.org>
21599
21600         duplocale: Work around AIX 7.1 bug.
21601         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21602         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21603         * lib/duplocale.c (rpl_duplocale): Update comment.
21604         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21605         Reported by Rainer Tammer.
21606
21607 2010-07-30  Bruno Haible  <bruno@clisp.org>
21608
21609         dirfd: Avoid link error on AIX 7.1.
21610         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21611         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21612         exist, set REPLACE_DIRFD.
21613         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21614         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21615         * doc/posix-functions/dirfd.texi: Update.
21616         Reported by Rainer Tammer.
21617
21618 2010-07-30  Eric Blake  <eblake@redhat.com>
21619
21620         strtod: next round of AIX fixes
21621         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21622         exponent.
21623         * tests/test-strtod.c (main): Enhance tests.
21624         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21625         Reported by Rainer Tammer.
21626
21627         futimens: fix configure check
21628         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21629         Reported by Bruno Haible.
21630
21631 2010-07-30  Bruno Haible  <bruno@clisp.org>
21632
21633         getline: Update regarding AIX.
21634         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21635         Reported by Rainer Tammer.
21636
21637 2010-07-30  Bruno Haible  <bruno@clisp.org>
21638
21639         wcwidth: Drop replacement on AIX 7.
21640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21641         AIX 7.
21642         Reported by Rainer Tammer.
21643
21644 2010-07-30  Bruno Haible  <bruno@clisp.org>
21645
21646         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21647         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21648         a 'char *'.
21649         Reported by Rainer Tammer.
21650
21651 2010-07-30  Bruno Haible  <bruno@clisp.org>
21652
21653         unlink: Update regarding AIX.
21654         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21655         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21656         Reported by Rainer Tammer.
21657
21658 2010-07-30  Bruno Haible  <bruno@clisp.org>
21659
21660         symlink: Update regarding AIX.
21661         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21662         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21663         Reported by Rainer Tammer.
21664
21665 2010-07-30  Bruno Haible  <bruno@clisp.org>
21666
21667         strndup: Update regarding AIX.
21668         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21669         AIX 7.
21670         Reported by Rainer Tammer.
21671
21672 2010-07-30  Bruno Haible  <bruno@clisp.org>
21673
21674         stat: Update regarding AIX.
21675         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21676         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21677         Reported by Rainer Tammer.
21678
21679 2010-07-30  Bruno Haible  <bruno@clisp.org>
21680
21681         truncl: Fix autoconf test.
21682         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21683         whether truncl works.
21684         Reported by Rainer Tammer.
21685
21686 2010-07-30  Bruno Haible  <bruno@clisp.org>
21687
21688         round: Update regarding AIX.
21689         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21690         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21691         Reported by Rainer Tammer.
21692
21693 2010-07-30  Bruno Haible  <bruno@clisp.org>
21694
21695         rename: Update regarding AIX.
21696         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21697         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21698         Reported by Rainer Tammer.
21699
21700 2010-07-30  Bruno Haible  <bruno@clisp.org>
21701
21702         printf.m4: Update regarding AIX.
21703         * m4/printf.m4: Update comments regarding AIX.
21704         Reported by Rainer Tammer.
21705
21706 2010-07-30  Bruno Haible  <bruno@clisp.org>
21707
21708         iconv: Update regarding AIX.
21709         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21710         AIX 7.
21711         Reported by Rainer Tammer.
21712
21713 2010-07-30  Bruno Haible  <bruno@clisp.org>
21714
21715         getopt: Update regarding AIX.
21716         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21717         no on AIX.
21718         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21719         Reported by Rainer Tammer.
21720
21721 2010-07-30  Bruno Haible  <bruno@clisp.org>
21722
21723         ldexpl; Update regarding AIX.
21724         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21725         on AIX 7.
21726         Reported by Rainer Tammer.
21727
21728 2010-07-30  Bruno Haible  <bruno@clisp.org>
21729
21730         frexpl: Update regarding AIX.
21731         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21732         on AIX 7.
21733         Reported by Rainer Tammer.
21734
21735 2010-07-30  Bruno Haible  <bruno@clisp.org>
21736
21737         open, fopen: Update regarding AIX.
21738         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21739         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21740         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21741         * doc/posix-functions/fopen.texi: Likewise.
21742         Reported by Rainer Tammer.
21743
21744 2010-07-30  Bruno Haible  <bruno@clisp.org>
21745
21746         chown: Update doc regarding AIX.
21747         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21748         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21749         Reported by Rainer Tammer.
21750
21751 2010-07-30  Eric Blake  <eblake@redhat.com>
21752
21753         strtod: fix bug in replacement function on AIX
21754         * lib/strtod.c (strtod): Special case broken "0x" parse in
21755         underlying strtod.
21756         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21757         * doc/posix-functions/strtod.texi (strtod): Likewise.
21758         Reported by Rainer Tammer.
21759
21760 2010-07-30  Bruno Haible  <bruno@clisp.org>
21761
21762         mbrlen: Fix cross-compilation guess for AIX.
21763         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21764         guess. Leftover from 2008-12-22.
21765
21766 2010-07-30  Bruno Haible  <bruno@clisp.org>
21767
21768         mbrtowc: Fix cross-compilation guess for AIX.
21769         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21770         guess. Leftover from 2008-12-21.
21771
21772 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21773
21774         init.sh: work around trap limitation of some shells
21775         * tests/init.sh (setup_): Move exit trap outside of shell function.
21776
21777 2010-07-29  Eric Blake  <eblake@redhat.com>
21778
21779         strtod: aid debugging
21780         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21781         understanding why strtod is rejected.
21782
21783 2010-07-28  Bruno Haible  <bruno@clisp.org>
21784
21785         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21786         * lib/unistr/u8-chr.c: Include <string.h>.
21787         * tests/unistr/test-u8-chr.c: Likewise.
21788         * tests/unistr/test-u16-chr.c: Likewise.
21789         * tests/unistr/test-u32-chr.c: Likewise.
21790         * tests/unistr/test-u8-strchr.c: Likewise.
21791         * tests/unistr/test-u16-strchr.c: Likewise.
21792         * tests/unistr/test-u32-strchr.c: Likewise.
21793         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21794         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21795         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21796         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21797
21798 2010-07-28  Bruno Haible  <bruno@clisp.org>
21799
21800         Use spaces for indentation, not tabs.
21801         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21802
21803 2010-07-27  Bruno Haible  <bruno@clisp.org>
21804
21805         mbspcasecmp: Fix function specification.
21806         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21807         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21808         Reported by Eric Blake <eblake@redhat.com>.
21809
21810 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21811
21812         timespec: use cast and not conditional, as truncation isn't possible
21813         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21814         instead of a conditional.  Comment about the situation in more detail.
21815         This undoes most of the 2009-10-29 patch.
21816
21817 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21818
21819         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21820         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21821         * lib/unistr/u8-strchr.c: Likewise.
21822         * modules/unistr/u8-chr: Depend on memchr.
21823
21824         unistr/u*-strchr: add tests
21825         * modules/unistr/u8-strchr-tests: New file.
21826         * modules/unistr/u16-strchr-tests: New file.
21827         * modules/unistr/u32-strchr-tests: New file.
21828         * tests/unistr/test-strchr.h: New file.
21829         * tests/unistr/test-u8-strchr.c: New file.
21830         * tests/unistr/test-u16-strchr.c: New file.
21831         * tests/unistr/test-u32-strchr.c: New file.
21832
21833         unistr/u*-chr: test multibyte sequences more
21834         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21835         test vector.
21836         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21837         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21838         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21839
21840         unistr/u*-chr: test multibyte sequences
21841         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21842
21843         unistr/u*-chr: prepare for multibyte tests
21844         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21845         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21846         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21847         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21848         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21849         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21850
21851 2010-07-18  Bruno Haible  <bruno@clisp.org>
21852
21853         unistr/u8-strchr: Optimize non-ASCII argument case.
21854         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21855         because the first byte often matches anyway.
21856         Reported by Pádraig Brady <P@draigbrady.com>.
21857
21858 2010-07-15  Karl Berry  <karl@gnu.org>
21859
21860         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21861
21862 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21863
21864         getcwd: on Solaris, work better if ancestors are inaccessible
21865         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21866         buffer and size, try again with a large buffer.  This works better
21867         on Solaris, since its getcwd succeeds even if the path to the root
21868         is inaccessible, and this is helpful in common cases such as .zfs
21869         hidden directories.  Problem reported by J Chapman Flack in
21870         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21871         Use system getcwd if it's declared, not merely if it's partly
21872         working; use the partly-working test only to avoid needless effort
21873         if the system getcwd fails.
21874         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21875         comment that was already obsolete and is now even more obsolete.
21876         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21877         now might call strdup.
21878
21879 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21880
21881         pthread: Add enough so that coreutils/src/sort.c compiles.
21882         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21883         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21884         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21885         Include <sys/types.h>, in case it defines pthread_t.
21886         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21887         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21888         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21889         (pthread_rwlockattr_t, pthread_spinlock_t):
21890         New typedefs, if HAVE_PTHREAD_T is not defined.
21891         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21892         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21893         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21894         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21895         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21896         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21897         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21898         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21899         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21900         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21901         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21902         New macros.
21903         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21904         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21905         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21906         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21907         (pthread_spin_unlock): New dummy functions.
21908         (pthread_create): Return EAGAIN; don't set errno.
21909         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21910         require AC_C_INLINE.
21911         * modules/pthread (Depends-on): Add sched, time.
21912         (pthread.h): Use AM_V_GEN.
21913
21914 2010-07-13  Bruno Haible  <bruno@clisp.org>
21915
21916         striconveh: Don't malloc memory if the result buffer is sufficient.
21917         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21918         buffer if its size is sufficient.
21919         Reported by Ludovic Courtès <ludo@gnu.org>.
21920
21921 2010-07-13  Bruno Haible  <bruno@clisp.org>
21922
21923         strtod: Add safety check.
21924         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21925
21926 2010-07-12  Bruno Haible  <bruno@clisp.org>
21927
21928         Unify tests that set gl_cv_func_ldexpl_no_libm.
21929         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
21930         gl_FUNC_LDEXPL.
21931         (gl_FUNC_LDEXPL): Invoke it.
21932         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21933
21934 2010-07-12  Bruno Haible  <bruno@clisp.org>
21935
21936         Unify tests that set gl_cv_func_ldexp_no_libm.
21937         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
21938         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
21939         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
21940         (configure.ac): Simply invoke gl_FUNC_LDEXP.
21941         * modules/strtod (Files): Add m4/ldexp.m4.
21942
21943 2010-07-12  Bruno Haible  <bruno@clisp.org>
21944
21945         Unify tests that set gl_cv_func_frexpl_no_libm.
21946         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
21947         gl_FUNC_FREXPL_NO_LIBM.
21948         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
21949         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
21950
21951 2010-07-12  Bruno Haible  <bruno@clisp.org>
21952
21953         Unify tests that set gl_cv_func_frexp_no_libm.
21954         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
21955         gl_FUNC_FREXP_NO_LIBM.
21956         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
21957         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21958
21959 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21960
21961         memcoll: clarify sizes versus lengths, document better, and tweak perf
21962         * lib/memcoll.c (strcoll_loop, memcoll0):
21963         Improve quality of descriptive comments.  Name variables
21964         consistently as to whether they are lengths (which do not include
21965         terminating null) versus sizes (which do).
21966         * lib/xmemcoll.c (xmemcoll0): Likewise.
21967         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
21968         returned when s1size == 0; this is easier to compile and saves
21969         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
21970
21971 2010-07-12  Bruno Haible  <bruno@clisp.org>
21972
21973         Tests for module '_Exit'.
21974         * modules/_Exit-tests: New file.
21975         * tests/test-_Exit.sh: New file.
21976         * tests/test-_Exit.c: New file.
21977
21978         New module '_Exit'.
21979         * lib/stdlib.in.h (__attribute__): New macro.
21980         (_Exit): New declaration.
21981         * lib/_Exit.c: New file.
21982         * m4/_Exit.m4: New file.
21983         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
21984         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
21985         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
21986         * modules/_Exit: New file.
21987         * tests/test-stdlib-c++.cc (_Exit): Check signature.
21988         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
21989
21990 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
21991
21992         strtod: make it more-accurate typically, and don't require libm
21993         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
21994         Include limits.h.  Don't include string.h.
21995         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
21996         (locale_isspace): New function, so that no casts are needed to
21997         check whether *s is a space.
21998         (ldexp): Provide an unused dummy if not available.
21999         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22000         (strtod): Use them.  This implementation prefers to use the
22001         underlying strtod if available, falling back on our own code
22002         only to fix known bugs.  This is more likely to produce an
22003         accurate result.  Also, it avoids the use of libm functions.
22004         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22005         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22006         was absent, but it caused a test failure with coreutils.
22007         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22008         with libm.
22009         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22010         * modules/strtod-tests (Makefile.am): Likewise.
22011
22012 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22013             Bruno Haible  <bruno@clisp.org>
22014
22015         unistr/u8-strchr: Optimize ASCII argument case.
22016         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22017
22018 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22019
22020         (x)memcoll: minor tweaks
22021         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22022         is after the type that it qualifies.
22023         (memcoll0): Likewise.
22024         * lib/memcoll.h (memcoll0): Likewise.
22025         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22026         * lib/xmemcoll.h (xmemcoll0): Likewise.
22027         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22028         differs from memcoll in that the NUL byte is part of the argument.
22029         Omit the abort-checks, as performance is a real issue here.  Plus,
22030         the checks were wrong anyway (an off-by-one error).  Omit local
22031         variable 'diff', as it's a bit clearer that way.
22032         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22033         no longer needed.
22034
22035 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22036
22037         (x)memcoll: speedup when input is known to be NUL delimited
22038         * lib/memcoll.c: Include stdlib.
22039         (memcoll0): New function.
22040         (strcoll_loop): New function, refactored for use in both memcoll
22041         and memcoll0.
22042         * lib/memcoll.h (memcoll0): Add prototype.
22043         * lib/xmemcoll.c (xmemcoll0): New function.
22044         (collate_error): New function, refactored for use in both xmemcoll
22045         and xmemcoll0.
22046         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22047         * m4/memcoll.m4: add inline invocation.
22048
22049 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22050
22051         * build-aux/bootstrap: Remove any local translations
22052         from the translation project synchronization directory,
22053         so that local only translations are not distributed.
22054
22055 2010-07-04  Bruno Haible  <bruno@clisp.org>
22056
22057         fsusage: Clarify which code applies to which platforms.
22058         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22059         platform.
22060         * lib/fsusage.c (get_fs_usage): Likewise.
22061
22062 2010-07-04  Bruno Haible  <bruno@clisp.org>
22063
22064         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22065         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22066         Reported by Martin Lambers <marlam@marlam.de>.
22067
22068 2010-07-04  Jim Meyering  <meyering@redhat.com>
22069
22070         hash: once again explicitly disallow insertion of NULL
22071         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22072         inserting a NULL pointer cannot work with these functions.
22073         Add a comment with details.
22074         This reverts part of the 2010-07-01 commit, 5bef1a35
22075         "hash: extend module to deal with non-pointer keys".
22076
22077 2010-07-01  Bruno Haible  <bruno@clisp.org>
22078
22079         stdbool: Update doc.
22080         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22081         Info from Christian Weisgerber <naddy@mips.inka.de>.
22082
22083 2010-07-01  Jim Meyering  <meyering@redhat.com>
22084
22085         hash: extend module to deal with non-pointer keys
22086         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22087         but that allows insertion of non-pointer entries.
22088         Do not disallow an ENTRY value of NULL.
22089         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22090         * lib/hash.h (hash_insert0): Declare.
22091
22092 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22093
22094         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22095         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22096         not present (i.e. with autoconf 2.59 and when using gettextize, not
22097         gnulib), require AC_GNU_SOURCE instead.
22098
22099 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22100
22101         idpriv-drop: Fix tests.
22102         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22103         not to the test-idpriv-droptemp program.
22104
22105 2010-06-29  Bruno Haible  <bruno@clisp.org>
22106
22107         string: Fix syntax error with g++ 2.96.
22108         * lib/string.in.h (__pure__): Remove definition.
22109         (_GL_ATTRIBUTE_PURE): New macro.
22110         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22111         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22112         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22113
22114 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22115
22116         unitypes: Fix bug introduced on 2010-05-18.
22117         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22118
22119 2010-06-22  Eric Blake  <eblake@redhat.com>
22120
22121         memmem: slight optimization
22122         * lib/str-two-way.h (critical_factorization): Update comments.
22123         Reduce work during factorization phase.
22124         Reported by Carlos Bueno <carlos@bueno.org>.
22125
22126 2010-06-21  Bruno Haible  <bruno@clisp.org>
22127
22128         Fix HAVE_CALLOC_POSIX misnomer.
22129         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22130         !HAVE_CALLOC_POSIX.
22131         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22132         HAVE_CALLOC_POSIX.
22133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22134         instead of HAVE_CALLOC_POSIX.
22135         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22136         HAVE_CALLOC_POSIX.
22137
22138         Use modern idiom for calloc() replacement.
22139         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22140         AC_FUNC_CALLOC.
22141         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22142         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22143         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22144         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22145         (gl_REPLACE_CALLOC): New macro.
22146
22147 2010-06-21  Bruno Haible  <bruno@clisp.org>
22148
22149         Fix HAVE_REALLOC_POSIX misnomer.
22150         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22151         !HAVE_REALLOC_POSIX.
22152         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22153         HAVE_REALLOC_POSIX.
22154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22155         instead of HAVE_REALLOC_POSIX.
22156         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22157         HAVE_REALLOC_POSIX.
22158
22159         Use modern idiom for realloc() replacement.
22160         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22161         AC_FUNC_REALLOC.
22162         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22163         Autoconf's AC_FUNC_REALLOC.
22164         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22165         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22166         (gl_REPLACE_REALLOC): New macro.
22167         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22168
22169 2010-06-21  Bruno Haible  <bruno@clisp.org>
22170
22171         Fix HAVE_MALLOC_POSIX misnomer.
22172         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22173         !HAVE_MALLOC_POSIX.
22174         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22175         HAVE_MALLOC_POSIX.
22176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22177         instead of HAVE_MALLOC_POSIX.
22178         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22179         HAVE_MALLOC_POSIX.
22180
22181         Use modern idiom for malloc() replacement.
22182         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22183         AC_FUNC_MALLOC.
22184         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22185         Autoconf's AC_FUNC_MALLOC.
22186         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22187         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22188         (gl_REPLACE_MALLOC): New macro.
22189         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22190
22191 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22192
22193         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22194         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22195         This macro takes 3 arguments, not 4.
22196
22197 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22198
22199         ipv6: fix detection under mingw
22200         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22201         in6_addr.
22202
22203 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22204
22205         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22206         that strtod() works when cross-compiling to a glibc version known
22207         to work.
22208
22209 2010-06-15  Bruno Haible  <bruno@clisp.org>
22210
22211         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22212
22213 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22214
22215         select: Correct timeout.
22216         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22217
22218 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22219
22220         git-version-gen: init shell var to avoid env var influence
22221         * build-aux/git-version-gen (v): Init shell var to empty.
22222
22223 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22224
22225         priv-set: Don't assume that priv.h exists merely because getppriv does.
22226         See Jan Andersen's bug report about AIX 5L in
22227         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22228         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22229         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22230         * lib/priv-set.h: Likewise.
22231         * tests/test-priv-set.c: Likewise.
22232
22233 2010-06-13  Bruno Haible  <bruno@clisp.org>
22234
22235         relocatable: Make it easier to test whether to install wrappers.
22236         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22237         RELOCATABLE_VIA_WRAPPER.
22238
22239 2010-06-13  Bruno Haible  <bruno@clisp.org>
22240
22241         gnulib-tool: Display specified modules and dependencies differently.
22242         * gnulib-tool (func_show_module_list): New function.
22243         (func_import, func_create_testdir): Invoke it.
22244         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22245
22246 2010-06-13  Bruno Haible  <bruno@clisp.org>
22247
22248         gnulib-tool: Align code of func_import and func_create_testdir.
22249         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22250         specified_modules.
22251
22252 2010-06-12  Jim Meyering  <meyering@redhat.com>
22253
22254         test-inttostr: avoid spurious failure on Solaris 9
22255         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22256         to accept "%ju".  Reported by Bruno Haible.
22257
22258 2010-06-11  Jim Meyering  <meyering@redhat.com>
22259
22260         test-sys_socket: mark variables as used more readably
22261         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22262         as "used" explicitly via (void) statement casts.  This is more
22263         readable than using them in an artificial return expression.
22264         Suggestion from Bruno Haible.
22265
22266 2010-06-11  Bruno Haible  <bruno@clisp.org>
22267
22268         Avoid some more warnings from "gcc -Wwrite-strings".
22269         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22270         to 'const char *'.
22271         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22272         * tests/test-c-strcasestr.c (main): Likewise.
22273         * tests/test-mbscasestr1.c (main): Likewise.
22274         * tests/test-mbscasestr2.c (main): Likewise.
22275         * tests/test-memmem.c (main): Likewise.
22276         * tests/test-strstr.c (main): Likewise.
22277         * tests/test-strcasestr.c (main): Likewise.
22278
22279 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22280
22281         init.sh: change framework_failure_ to fail with status 99, not 1
22282         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22283         automake's parallel-tests rule that this is an unexpected failure,
22284         even if the test is listed in XFAIL_TESTS.
22285
22286 2010-06-11  Jim Meyering  <meyering@redhat.com>
22287
22288         test-inttostr: avoid warnings about 4-6KB literal strings
22289         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22290         Include "macros.h", for its definition of ASSERT.
22291         (CK): s/assert/ASSERT/
22292         * modules/inttostr-tests (Files): Add macros.h.
22293
22294         init.sh: don't use $ME_ or skip_ before they are defined
22295         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22296         their first uses.  Also hoist their companions: warn_, fail_,
22297         framework_failure_, $stderr_fileno.  Prompted by a patch from
22298         Stefano Lattarini.
22299
22300         test-sys_socket: avoid set-but-not-used warnings from gcc
22301         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22302         avoid warning about set-but-not-used variables.
22303
22304         test-xvasprintf: avoid 'const' discard warnings
22305         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22306         "const" when assigning from literal strings.
22307         (test_xasprintf): Add "void" in function argument list to placate
22308         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22309
22310         tests: avoid compilation warnings in argmatch and exclude tests...
22311         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22312         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22313         Since it always exits, declare with the "noreturn" attribute.
22314         * tests/test-argmatch.c: Likewise.
22315
22316         tests: avoid 'const' discard warnings in mbsstr tests
22317         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22318         * tests/test-mbsstr2.c (main): Likewise.
22319
22320         test-verify: avoid warning from gcc's -Wmissing-declarations
22321         * tests/test-verify.c (function): Declare to be static.
22322
22323         test-inttostr.c: include <string.h> for use of strcmp
22324         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22325
22326         test-linkat: avoid failed assertion on "other" architectures
22327         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22328         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22329         sparc: https://bugs.launchpad.net/bugs/591968
22330
22331 2010-06-11  Jim Meyering  <meyering@redhat.com>
22332
22333         printf.m4: avoid autoconf's "Expanded Before Required" warning
22334         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22335         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22336         autoconf warning.
22337
22338 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22339
22340         Replacement header templates are now named with ".in", not "_".
22341         * doc/gnulib-intro.texi: Correct.
22342
22343 2010-06-10  Jim Meyering  <meyering@redhat.com>
22344
22345         inttostr-tests: depend on snprintf, not snprintf-posix
22346         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22347         snprintf-posix, to avoid this aclocal failure:
22348           missing file gnulib-tests/vasnprintf.c
22349           configure.ac:45: error: expected source file, required through \
22350           AC_LIBSOURCES, not found
22351
22352 2010-06-10  Jim Meyering  <meyering@redhat.com>
22353
22354         inttostr: add a new function, inttostr, and tests
22355         The namesake function was not available.  The existence of the
22356         template file, inttostr.c makes its addition nontrivial.
22357         * lib/anytostr.c: Rename from inttostr.c.
22358         (anytostr): Rename from inttostr.
22359         * lib/inttostr.c: New file.
22360         * modules/inttostr (Files): Add anytostr.c.
22361         (Makefile.am): Set lib_SOURCES instead of ...
22362         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22363         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22364         * lib/offtostr.c: Likewise.
22365         * lib/uinttostr.c: Likewise.
22366         * lib/umaxtostr.c: Likewise.
22367         * modules/inttostr-tests: New file.
22368         * tests/test-inttostr.c: New file.  Test these functions.
22369
22370 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22371             Bruno Haible  <bruno@clisp.org>
22372
22373         Add "Extending Gnulib" chapter to manual.
22374         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22375         chapter.
22376         (Extending Gnulib): New chapter.
22377         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22378         chapter.
22379
22380 2010-06-09  Bruno Haible  <bruno@clisp.org>
22381
22382         Avoid relocwrapper link errors due to gnulib replacement functions.
22383         * lib/areadlink.c: Use the system's malloc, realloc functions.
22384         (areadlink): Set errno to ENOMEM explicitly.
22385         * modules/areadlink (Depends-on): Remove malloc-posix.
22386         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22387
22388 2010-06-09  Bruno Haible  <bruno@clisp.org>
22389
22390         Avoid relocwrapper link errors due to gnulib replacement functions.
22391         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22392         * lib/malloca.c: Likewise.
22393         * lib/relocatable.c: Likewise.
22394         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22395         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22396         * lib/setenv.c: Use the system's malloc, realloc functions.
22397         * lib/strerror.c: Use the system's sprintf function.
22398         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22399
22400 2010-06-04  Bruno Haible  <bruno@clisp.org>
22401
22402         Prefer documented low-level autoconf macro names.
22403         * m4/lib-link.m4: Use m4_translit instead of translit.
22404         * m4/environ.m4: Likewise.
22405         * m4/mathfunc.m4: Likewise.
22406         * m4/onceonly.m4: Likewise.
22407         * m4/stdint.m4: Likewise.
22408         Suggested by Eric Blake.
22409
22410 2010-06-04  Martin Lambers  <marlam@marlam.de>
22411             Bruno Haible  <bruno@clisp.org>
22412
22413         havelib: Allow library names with '+' characters.
22414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22415         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22416
22417 2010-06-09  Bruno Haible  <bruno@clisp.org>
22418
22419         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22420         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22421         realloc failed.
22422
22423 2010-06-08  Peter Simons  <simons@cryp.to>
22424
22425         maint.mk: make the news-check rule more configurable
22426         * top/maint.mk (news-check-lines-spec): New variable.
22427         (news-check): Use "sed -n 1,10p" in place of "head".
22428
22429 2010-06-07  Jim Meyering  <meyering@redhat.com>
22430
22431         do-release-commit-and-tag: fix typo in --help
22432         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22433
22434         regex: avoid new dead-code warning with gcc-4.6.0
22435         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22436         if-block containing a while-loop.  It's been unused for at least
22437         5 years.
22438
22439 2010-06-05  Bruno Haible  <bruno@clisp.org>
22440
22441         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22442         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22443
22444 2010-06-04  Bruno Haible  <bruno@clisp.org>
22445
22446         Update to GNU gettext 0.18.1.
22447         * modules/gettext (configure.ac): Require gettext infrastructure from
22448         version 0.18.1.
22449
22450 2010-06-03  Bruno Haible  <bruno@clisp.org>
22451
22452         Don't use AC_LIBOBJ with file names in subdirectories.
22453         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22454         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22455         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22456         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22457         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22458         gl_LIBUNISTRING_LIBSOURCE.
22459         (Makefile.am): Augment lib_SOURCES here, conditionally.
22460         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22461
22462 2010-06-03  Bruno Haible  <bruno@clisp.org>
22463
22464         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22465         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22466         expansion does not end with a newline.
22467         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22468         unnecessary newline.
22469
22470 2010-06-03  Bruno Haible  <bruno@clisp.org>
22471
22472         Reduce dependencies.
22473         * tests/test-quotearg.h: New file, extracted from
22474         tests/test-quotearg.c.
22475         * tests/test-quotearg-simple.c: New file, extracted from
22476         tests/test-quotearg.c.
22477         * tests/test-quotearg.c: Don't include <ctype.h>.
22478         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22479         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22480         use_quote_double_quotes, use_quotearg_colon): Moved to
22481         tests/test-quotearg.h.
22482         (results_g, flag_results, custom_quotes, custom_results): Moved
22483         to tests/test-quotearg-simple.c.
22484         (main): Moved the part that does not depend on gettext to
22485         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22486         performed.
22487         * modules/quotearg-simple: New file.
22488         * modules/quotearg-simple-tests: New file.
22489         * modules/quotearg (Depends-on): Add quotearg-simple.
22490         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22491         (Files): Add tests/test-quotearg.h.
22492         Reported by Paolo Bonzini.
22493
22494 2010-06-03  Bruno Haible  <bruno@clisp.org>
22495
22496         Reduce dependencies.
22497         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22498
22499 2010-06-03  Bruno Haible  <bruno@clisp.org>
22500
22501         time: Undefine more broken macros.
22502         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22503         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22504         Reported by Eric Blake.
22505
22506 2010-06-03  Bruno Haible  <bruno@clisp.org>
22507
22508         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22509         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22510         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22511         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22512         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22513         Reported by Ludovic Courtès <ludo@gnu.org>.
22514
22515 2010-06-02  Eric Blake  <eblake@redhat.com>
22516
22517         time: work with mingw + pthreads-win32 library
22518         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22519         if timespec is defined only in pthread.h.
22520         * modules/time (Makefile.am): Substitute it.
22521         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22522         <pthread.h>, when needed.
22523         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22524         from the library.
22525
22526 2010-05-31  Bruno Haible  <bruno@clisp.org>
22527
22528         Avoid expanding two macros in the wrong order.
22529         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22530         gl_LIBUNISTRING if it is defined.
22531         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22532         autoconf >= 2.64.
22533         Reported by Ludovic Courtès <ludo@gnu.org>.
22534
22535 2010-05-27  Jim Meyering  <meyering@redhat.com>
22536
22537         maint.mk: also prohibit "#undef" of always-defined symbols
22538         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22539         Allow more than one space before the symbol name.
22540         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22541         the regexp uses alternation.
22542
22543 2010-05-26  Eric Blake  <eblake@redhat.com>
22544
22545         maint.mk: avoid echo -e
22546         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22547         Convert all uses of echo -* to printf.
22548         Reported by Matthias Bolte.
22549
22550 2010-05-25  Bruno Haible  <bruno@clisp.org>
22551
22552         Update to GNU gettext 0.18, part 2.
22553         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22554         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22555
22556 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22557
22558         Add missing include in test-pwrite.c.
22559         * tests/test-pwrite.c: Include string.h, for strcmp.
22560
22561 2010-05-24  Bruno Haible  <bruno@clisp.org>
22562
22563         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22564
22565 2010-05-24  Bruno Haible  <bruno@clisp.org>
22566
22567         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22568         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22569         iconveh_error argument.
22570         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22571         U_STRCONV_TO_LOCALE.
22572         * lib/unistr/u16-strcoll.c: Likewise.
22573         * lib/unistr/u32-strcoll.c: Likewise.
22574         * modules/unistr/u8-strcoll (Depends-on): Add
22575         uniconv/u8-strconv-to-enc, localcharset. Remove
22576         uniconv/u8-strconv-to-locale.
22577         (configure.ac): Bump version number.
22578         * modules/unistr/u16-strcoll (Depends-on): Add
22579         uniconv/u16-strconv-to-enc, localcharset. Remove
22580         uniconv/u16-strconv-to-locale.
22581         (configure.ac): Bump version number.
22582         * modules/unistr/u32-strcoll (Depends-on): Add
22583         uniconv/u32-strconv-to-enc, localcharset. Remove
22584         uniconv/u32-strconv-to-locale.
22585         (configure.ac): Bump version number.
22586
22587 2010-05-24  Bruno Haible  <bruno@clisp.org>
22588
22589         Avoid a test failure on NetBSD 5.0.
22590         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22591         an iconv() bug.
22592
22593 2010-05-24  Bruno Haible  <bruno@clisp.org>
22594
22595         Adjust #include directive style.
22596         * modules/regex (Includes): Recommend to write <regex.h>.
22597
22598 2010-05-24  Bruno Haible  <bruno@clisp.org>
22599
22600         regex: Don't require alloca.
22601         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22602         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22603         only inside if (0).
22604
22605 2010-05-23  Jim Meyering  <meyering@redhat.com>
22606
22607         test-renameat.c: include <sys/stat.h>
22608         * tests/test-renameat.c: Include <sys/stat.h>; required for
22609         definition of S_IS* macros.
22610
22611 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22612
22613         Update maintainer documentation for 'relocatable-prog' module.
22614         * doc/relocatable-maint.texi: Update.
22615         Comments by Bruno Haible.
22616
22617 2010-05-23  Bruno Haible  <bruno@clisp.org>
22618
22619         git-merge-changelog: Enable --split-merged-entry by default.
22620         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22621         (usage): Don't mention this option any more.
22622         Reported by Ralf Wildenhues.
22623
22624 2010-05-23  Jim Meyering  <meyering@redhat.com>
22625
22626         test-pwrite: do not leave behind a test file named "out"
22627         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22628         The trivial-looking use of init.sh is really necessary.
22629         It ensures that the temporary file, "out", is created in
22630         a temporary directory, and removed upon termination.
22631         * tests/test-pwrite.sh: Re-add file.
22632         * modules/pwrite-tests: Reference it.
22633
22634 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22635
22636         Fix output redirection buglet in init.sh.
22637         * tests/init.sh: Fix redirection of stderr.
22638
22639 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22640
22641         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22642
22643 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22644
22645         * modules/valgrind-tests: New file.
22646         * m4/valgrind-tests.m4: New file.
22647         * doc/valgrind-tests.texi: New file.
22648         * doc/gnulib.texi (Running self-tests under valgrind): New
22649         section.
22650
22651 2010-05-19  Bruno Haible  <bruno@clisp.org>
22652
22653         Clean up dead code in recent commit.
22654         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22655         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22656         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22657         Suggested by Paolo Bonzini.
22658
22659 2010-05-19  Bruno Haible  <bruno@clisp.org>
22660
22661         Avoid valgrind error reports from libunistring.
22662         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22663         * modules/libunistring (Files): Add it.
22664         * modules/libunistring-optional (Files): Likewise.
22665
22666 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22667             Bruno Haible  <bruno@clisp.org>
22668
22669         New module 'libunistring-optional'.
22670         * modules/libunistring-optional: New file.
22671         * m4/libunistring-base.m4: New file.
22672         * m4/libunistring-optional.m4: New file.
22673         * lib/unicase.in.h: Renamed from lib/unicase.h.
22674         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22675         * lib/unictype.in.h: Renamed from lib/unictype.h.
22676         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22677         * lib/uniname.in.h: Renamed from lib/uniname.h.
22678         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22679         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22680         * lib/unistr.in.h: Renamed from lib/unistr.h.
22681         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22682         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22683         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22684         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22685         gl_LIBUNISTRING. If the library was found, determine the installed
22686         version and set LIBUNISTRING_VERSION.
22687         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22688         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22689         handle a configuration option --with-included-libunistring.
22690         * modules/libunistring (Files): Add m4/absolute-header.m4.
22691         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22692         Add m4/libunistring-base.m4.
22693         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22694         (Makefile.am): Build unicase.h from unicase.in.h.
22695         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22696         Add m4/libunistring-base.m4.
22697         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22698         (Makefile.am): Build uniconv.h from uniconv.in.h.
22699         * modules/unictype/base (Files): Use unictype.in.h instead of
22700         unictype.h. Add m4/libunistring-base.m4.
22701         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22702         (Makefile.am): Build unictype.h from unictype.in.h.
22703         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22704         Add m4/libunistring-base.m4.
22705         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22706         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22707         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22708         Add m4/libunistring-base.m4.
22709         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22710         (Makefile.am): Build uniname.h from uniname.in.h.
22711         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22712         Add m4/libunistring-base.m4.
22713         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22714         (Makefile.am): Build uninorm.h from uninorm.in.h.
22715         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22716         unistdio.h. Add m4/libunistring-base.m4.
22717         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22718         (Makefile.am): Build unistdio.h from unistdio.in.h.
22719         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22720         Add m4/libunistring-base.m4.
22721         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22722         (Makefile.am): Build unistr.h from unistr.in.h.
22723         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22724         Add m4/libunistring-base.m4.
22725         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22726         (Makefile.am): Build unitypes.h from unitypes.in.h.
22727         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22728         Add m4/libunistring-base.m4.
22729         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22730         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22731         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22732         uniwidth.h. Add m4/libunistring-base.m4.
22733         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22734         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22735         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22736         instead of augmenting lib_SOURCES.
22737         * modules/unicase/empty-suffix-context: Likewise.
22738         * modules/unicase/locale-language: Likewise.
22739         * modules/unicase/tolower: Likewise.
22740         * modules/unicase/totitle: Likewise.
22741         * modules/unicase/toupper: Likewise.
22742         * modules/unicase/u8-casecmp: Likewise.
22743         * modules/unicase/u8-casecoll: Likewise.
22744         * modules/unicase/u8-casefold: Likewise.
22745         * modules/unicase/u8-casexfrm: Likewise.
22746         * modules/unicase/u8-ct-casefold: Likewise.
22747         * modules/unicase/u8-ct-tolower: Likewise.
22748         * modules/unicase/u8-ct-totitle: Likewise.
22749         * modules/unicase/u8-ct-toupper: Likewise.
22750         * modules/unicase/u8-is-cased: Likewise.
22751         * modules/unicase/u8-is-casefolded: Likewise.
22752         * modules/unicase/u8-is-lowercase: Likewise.
22753         * modules/unicase/u8-is-titlecase: Likewise.
22754         * modules/unicase/u8-is-uppercase: Likewise.
22755         * modules/unicase/u8-prefix-context: Likewise.
22756         * modules/unicase/u8-suffix-context: Likewise.
22757         * modules/unicase/u8-tolower: Likewise.
22758         * modules/unicase/u8-totitle: Likewise.
22759         * modules/unicase/u8-toupper: Likewise.
22760         * modules/unicase/u16-casecmp: Likewise.
22761         * modules/unicase/u16-casecoll: Likewise.
22762         * modules/unicase/u16-casefold: Likewise.
22763         * modules/unicase/u16-casexfrm: Likewise.
22764         * modules/unicase/u16-ct-casefold: Likewise.
22765         * modules/unicase/u16-ct-tolower: Likewise.
22766         * modules/unicase/u16-ct-totitle: Likewise.
22767         * modules/unicase/u16-ct-toupper: Likewise.
22768         * modules/unicase/u16-is-cased: Likewise.
22769         * modules/unicase/u16-is-casefolded: Likewise.
22770         * modules/unicase/u16-is-lowercase: Likewise.
22771         * modules/unicase/u16-is-titlecase: Likewise.
22772         * modules/unicase/u16-is-uppercase: Likewise.
22773         * modules/unicase/u16-prefix-context: Likewise.
22774         * modules/unicase/u16-suffix-context: Likewise.
22775         * modules/unicase/u16-tolower: Likewise.
22776         * modules/unicase/u16-totitle: Likewise.
22777         * modules/unicase/u16-toupper: Likewise.
22778         * modules/unicase/u32-casecmp: Likewise.
22779         * modules/unicase/u32-casecoll: Likewise.
22780         * modules/unicase/u32-casefold: Likewise.
22781         * modules/unicase/u32-casexfrm: Likewise.
22782         * modules/unicase/u32-ct-casefold: Likewise.
22783         * modules/unicase/u32-ct-tolower: Likewise.
22784         * modules/unicase/u32-ct-totitle: Likewise.
22785         * modules/unicase/u32-ct-toupper: Likewise.
22786         * modules/unicase/u32-is-cased: Likewise.
22787         * modules/unicase/u32-is-casefolded: Likewise.
22788         * modules/unicase/u32-is-lowercase: Likewise.
22789         * modules/unicase/u32-is-titlecase: Likewise.
22790         * modules/unicase/u32-is-uppercase: Likewise.
22791         * modules/unicase/u32-prefix-context: Likewise.
22792         * modules/unicase/u32-suffix-context: Likewise.
22793         * modules/unicase/u32-tolower: Likewise.
22794         * modules/unicase/u32-totitle: Likewise.
22795         * modules/unicase/u32-toupper: Likewise.
22796         * modules/unicase/ulc-casecmp: Likewise.
22797         * modules/unicase/ulc-casecoll: Likewise.
22798         * modules/unicase/ulc-casexfrm: Likewise.
22799         * modules/uniconv/u8-conv-from-enc: Likewise.
22800         * modules/uniconv/u8-conv-to-enc: Likewise.
22801         * modules/uniconv/u8-strconv-from-enc: Likewise.
22802         * modules/uniconv/u8-strconv-from-locale: Likewise.
22803         * modules/uniconv/u8-strconv-to-enc: Likewise.
22804         * modules/uniconv/u8-strconv-to-locale: Likewise.
22805         * modules/uniconv/u16-conv-from-enc: Likewise.
22806         * modules/uniconv/u16-conv-to-enc: Likewise.
22807         * modules/uniconv/u16-strconv-from-enc: Likewise.
22808         * modules/uniconv/u16-strconv-from-locale: Likewise.
22809         * modules/uniconv/u16-strconv-to-enc: Likewise.
22810         * modules/uniconv/u16-strconv-to-locale: Likewise.
22811         * modules/uniconv/u32-conv-from-enc: Likewise.
22812         * modules/uniconv/u32-conv-to-enc: Likewise.
22813         * modules/uniconv/u32-strconv-from-enc: Likewise.
22814         * modules/uniconv/u32-strconv-from-locale: Likewise.
22815         * modules/uniconv/u32-strconv-to-enc: Likewise.
22816         * modules/uniconv/u32-strconv-to-locale: Likewise.
22817         * modules/unictype/bidicategory-byname: Likewise.
22818         * modules/unictype/bidicategory-name: Likewise.
22819         * modules/unictype/bidicategory-of: Likewise.
22820         * modules/unictype/bidicategory-test: Likewise.
22821         * modules/unictype/block-list: Likewise.
22822         * modules/unictype/block-test: Likewise.
22823         * modules/unictype/category-C: Likewise.
22824         * modules/unictype/category-Cc: Likewise.
22825         * modules/unictype/category-Cf: Likewise.
22826         * modules/unictype/category-Cn: Likewise.
22827         * modules/unictype/category-Co: Likewise.
22828         * modules/unictype/category-Cs: Likewise.
22829         * modules/unictype/category-L: Likewise.
22830         * modules/unictype/category-Ll: Likewise.
22831         * modules/unictype/category-Lm: Likewise.
22832         * modules/unictype/category-Lo: Likewise.
22833         * modules/unictype/category-Lt: Likewise.
22834         * modules/unictype/category-Lu: Likewise.
22835         * modules/unictype/category-M: Likewise.
22836         * modules/unictype/category-Mc: Likewise.
22837         * modules/unictype/category-Me: Likewise.
22838         * modules/unictype/category-Mn: Likewise.
22839         * modules/unictype/category-N: Likewise.
22840         * modules/unictype/category-Nd: Likewise.
22841         * modules/unictype/category-Nl: Likewise.
22842         * modules/unictype/category-No: Likewise.
22843         * modules/unictype/category-P: Likewise.
22844         * modules/unictype/category-Pc: Likewise.
22845         * modules/unictype/category-Pd: Likewise.
22846         * modules/unictype/category-Pe: Likewise.
22847         * modules/unictype/category-Pf: Likewise.
22848         * modules/unictype/category-Pi: Likewise.
22849         * modules/unictype/category-Po: Likewise.
22850         * modules/unictype/category-Ps: Likewise.
22851         * modules/unictype/category-S: Likewise.
22852         * modules/unictype/category-Sc: Likewise.
22853         * modules/unictype/category-Sk: Likewise.
22854         * modules/unictype/category-Sm: Likewise.
22855         * modules/unictype/category-So: Likewise.
22856         * modules/unictype/category-Z: Likewise.
22857         * modules/unictype/category-Zl: Likewise.
22858         * modules/unictype/category-Zp: Likewise.
22859         * modules/unictype/category-Zs: Likewise.
22860         * modules/unictype/category-and: Likewise.
22861         * modules/unictype/category-and-not: Likewise.
22862         * modules/unictype/category-byname: Likewise.
22863         * modules/unictype/category-name: Likewise.
22864         * modules/unictype/category-none: Likewise.
22865         * modules/unictype/category-of: Likewise.
22866         * modules/unictype/category-or: Likewise.
22867         * modules/unictype/category-test: Likewise.
22868         * modules/unictype/combining-class: Likewise.
22869         * modules/unictype/ctype-alnum: Likewise.
22870         * modules/unictype/ctype-alpha: Likewise.
22871         * modules/unictype/ctype-blank: Likewise.
22872         * modules/unictype/ctype-cntrl: Likewise.
22873         * modules/unictype/ctype-digit: Likewise.
22874         * modules/unictype/ctype-graph: Likewise.
22875         * modules/unictype/ctype-lower: Likewise.
22876         * modules/unictype/ctype-print: Likewise.
22877         * modules/unictype/ctype-punct: Likewise.
22878         * modules/unictype/ctype-space: Likewise.
22879         * modules/unictype/ctype-upper: Likewise.
22880         * modules/unictype/ctype-xdigit: Likewise.
22881         * modules/unictype/decimal-digit: Likewise.
22882         * modules/unictype/digit: Likewise.
22883         * modules/unictype/mirror: Likewise.
22884         * modules/unictype/numeric: Likewise.
22885         * modules/unictype/property-alphabetic: Likewise.
22886         * modules/unictype/property-ascii-hex-digit: Likewise.
22887         * modules/unictype/property-bidi-arabic-digit: Likewise.
22888         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22889         * modules/unictype/property-bidi-block-separator: Likewise.
22890         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22891         * modules/unictype/property-bidi-common-separator: Likewise.
22892         * modules/unictype/property-bidi-control: Likewise.
22893         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22894         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22895         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22896         * modules/unictype/property-bidi-european-digit: Likewise.
22897         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22898         * modules/unictype/property-bidi-left-to-right: Likewise.
22899         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22900         * modules/unictype/property-bidi-other-neutral: Likewise.
22901         * modules/unictype/property-bidi-pdf: Likewise.
22902         * modules/unictype/property-bidi-segment-separator: Likewise.
22903         * modules/unictype/property-bidi-whitespace: Likewise.
22904         * modules/unictype/property-byname: Likewise.
22905         * modules/unictype/property-combining: Likewise.
22906         * modules/unictype/property-composite: Likewise.
22907         * modules/unictype/property-currency-symbol: Likewise.
22908         * modules/unictype/property-dash: Likewise.
22909         * modules/unictype/property-decimal-digit: Likewise.
22910         * modules/unictype/property-default-ignorable-code-point: Likewise.
22911         * modules/unictype/property-deprecated: Likewise.
22912         * modules/unictype/property-diacritic: Likewise.
22913         * modules/unictype/property-extender: Likewise.
22914         * modules/unictype/property-format-control: Likewise.
22915         * modules/unictype/property-grapheme-base: Likewise.
22916         * modules/unictype/property-grapheme-extend: Likewise.
22917         * modules/unictype/property-grapheme-link: Likewise.
22918         * modules/unictype/property-hex-digit: Likewise.
22919         * modules/unictype/property-hyphen: Likewise.
22920         * modules/unictype/property-id-continue: Likewise.
22921         * modules/unictype/property-id-start: Likewise.
22922         * modules/unictype/property-ideographic: Likewise.
22923         * modules/unictype/property-ids-binary-operator: Likewise.
22924         * modules/unictype/property-ids-trinary-operator: Likewise.
22925         * modules/unictype/property-ignorable-control: Likewise.
22926         * modules/unictype/property-iso-control: Likewise.
22927         * modules/unictype/property-join-control: Likewise.
22928         * modules/unictype/property-left-of-pair: Likewise.
22929         * modules/unictype/property-line-separator: Likewise.
22930         * modules/unictype/property-logical-order-exception: Likewise.
22931         * modules/unictype/property-lowercase: Likewise.
22932         * modules/unictype/property-math: Likewise.
22933         * modules/unictype/property-non-break: Likewise.
22934         * modules/unictype/property-not-a-character: Likewise.
22935         * modules/unictype/property-numeric: Likewise.
22936         * modules/unictype/property-other-alphabetic: Likewise.
22937         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
22938         * modules/unictype/property-other-grapheme-extend: Likewise.
22939         * modules/unictype/property-other-id-continue: Likewise.
22940         * modules/unictype/property-other-id-start: Likewise.
22941         * modules/unictype/property-other-lowercase: Likewise.
22942         * modules/unictype/property-other-math: Likewise.
22943         * modules/unictype/property-other-uppercase: Likewise.
22944         * modules/unictype/property-paired-punctuation: Likewise.
22945         * modules/unictype/property-paragraph-separator: Likewise.
22946         * modules/unictype/property-pattern-syntax: Likewise.
22947         * modules/unictype/property-pattern-white-space: Likewise.
22948         * modules/unictype/property-private-use: Likewise.
22949         * modules/unictype/property-punctuation: Likewise.
22950         * modules/unictype/property-quotation-mark: Likewise.
22951         * modules/unictype/property-radical: Likewise.
22952         * modules/unictype/property-sentence-terminal: Likewise.
22953         * modules/unictype/property-soft-dotted: Likewise.
22954         * modules/unictype/property-space: Likewise.
22955         * modules/unictype/property-terminal-punctuation: Likewise.
22956         * modules/unictype/property-test: Likewise.
22957         * modules/unictype/property-titlecase: Likewise.
22958         * modules/unictype/property-unassigned-code-value: Likewise.
22959         * modules/unictype/property-unified-ideograph: Likewise.
22960         * modules/unictype/property-uppercase: Likewise.
22961         * modules/unictype/property-variation-selector: Likewise.
22962         * modules/unictype/property-white-space: Likewise.
22963         * modules/unictype/property-xid-continue: Likewise.
22964         * modules/unictype/property-xid-start: Likewise.
22965         * modules/unictype/property-zero-width: Likewise.
22966         * modules/unictype/scripts: Likewise.
22967         * modules/unictype/syntax-c-ident: Likewise.
22968         * modules/unictype/syntax-c-whitespace: Likewise.
22969         * modules/unictype/syntax-java-ident: Likewise.
22970         * modules/unictype/syntax-java-whitespace: Likewise.
22971         * modules/unilbrk/u8-possible-linebreaks: Likewise.
22972         * modules/unilbrk/u8-width-linebreaks: Likewise.
22973         * modules/unilbrk/u16-possible-linebreaks: Likewise.
22974         * modules/unilbrk/u16-width-linebreaks: Likewise.
22975         * modules/unilbrk/u32-possible-linebreaks: Likewise.
22976         * modules/unilbrk/u32-width-linebreaks: Likewise.
22977         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
22978         * modules/unilbrk/ulc-width-linebreaks: Likewise.
22979         * modules/uniname/uniname: Likewise.
22980         * modules/uninorm/canonical-decomposition: Likewise.
22981         * modules/uninorm/composition: Likewise.
22982         * modules/uninorm/decomposing-form: Likewise.
22983         * modules/uninorm/decomposition: Likewise.
22984         * modules/uninorm/filter: Likewise.
22985         * modules/uninorm/nfc: Likewise.
22986         * modules/uninorm/nfd: Likewise.
22987         * modules/uninorm/nfkc: Likewise.
22988         * modules/uninorm/nfkd: Likewise.
22989         * modules/uninorm/u8-normalize: Likewise.
22990         * modules/uninorm/u8-normcmp: Likewise.
22991         * modules/uninorm/u8-normcoll: Likewise.
22992         * modules/uninorm/u8-normxfrm: Likewise.
22993         * modules/uninorm/u16-normalize: Likewise.
22994         * modules/uninorm/u16-normcmp: Likewise.
22995         * modules/uninorm/u16-normcoll: Likewise.
22996         * modules/uninorm/u16-normxfrm: Likewise.
22997         * modules/uninorm/u32-normalize: Likewise.
22998         * modules/uninorm/u32-normcmp: Likewise.
22999         * modules/uninorm/u32-normcoll: Likewise.
23000         * modules/uninorm/u32-normxfrm: Likewise.
23001         * modules/unistdio/u8-asnprintf: Likewise.
23002         * modules/unistdio/u8-asprintf: Likewise.
23003         * modules/unistdio/u8-snprintf: Likewise.
23004         * modules/unistdio/u8-sprintf: Likewise.
23005         * modules/unistdio/u8-u8-asnprintf: Likewise.
23006         * modules/unistdio/u8-u8-asprintf: Likewise.
23007         * modules/unistdio/u8-u8-snprintf: Likewise.
23008         * modules/unistdio/u8-u8-sprintf: Likewise.
23009         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23010         * modules/unistdio/u8-u8-vasprintf: Likewise.
23011         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23012         * modules/unistdio/u8-u8-vsprintf: Likewise.
23013         * modules/unistdio/u8-vasnprintf: Likewise.
23014         * modules/unistdio/u8-vasprintf: Likewise.
23015         * modules/unistdio/u8-vsnprintf: Likewise.
23016         * modules/unistdio/u8-vsprintf: Likewise.
23017         * modules/unistdio/u16-asnprintf: Likewise.
23018         * modules/unistdio/u16-asprintf: Likewise.
23019         * modules/unistdio/u16-snprintf: Likewise.
23020         * modules/unistdio/u16-sprintf: Likewise.
23021         * modules/unistdio/u16-u16-asnprintf: Likewise.
23022         * modules/unistdio/u16-u16-asprintf: Likewise.
23023         * modules/unistdio/u16-u16-snprintf: Likewise.
23024         * modules/unistdio/u16-u16-sprintf: Likewise.
23025         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23026         * modules/unistdio/u16-u16-vasprintf: Likewise.
23027         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23028         * modules/unistdio/u16-u16-vsprintf: Likewise.
23029         * modules/unistdio/u16-vasnprintf: Likewise.
23030         * modules/unistdio/u16-vasprintf: Likewise.
23031         * modules/unistdio/u16-vsnprintf: Likewise.
23032         * modules/unistdio/u16-vsprintf: Likewise.
23033         * modules/unistdio/u32-asnprintf: Likewise.
23034         * modules/unistdio/u32-asprintf: Likewise.
23035         * modules/unistdio/u32-snprintf: Likewise.
23036         * modules/unistdio/u32-sprintf: Likewise.
23037         * modules/unistdio/u32-u32-asnprintf: Likewise.
23038         * modules/unistdio/u32-u32-asprintf: Likewise.
23039         * modules/unistdio/u32-u32-snprintf: Likewise.
23040         * modules/unistdio/u32-u32-sprintf: Likewise.
23041         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23042         * modules/unistdio/u32-u32-vasprintf: Likewise.
23043         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23044         * modules/unistdio/u32-u32-vsprintf: Likewise.
23045         * modules/unistdio/u32-vasnprintf: Likewise.
23046         * modules/unistdio/u32-vasprintf: Likewise.
23047         * modules/unistdio/u32-vsnprintf: Likewise.
23048         * modules/unistdio/u32-vsprintf: Likewise.
23049         * modules/unistdio/ulc-asnprintf: Likewise.
23050         * modules/unistdio/ulc-asprintf: Likewise.
23051         * modules/unistdio/ulc-fprintf: Likewise.
23052         * modules/unistdio/ulc-snprintf: Likewise.
23053         * modules/unistdio/ulc-sprintf: Likewise.
23054         * modules/unistdio/ulc-vasnprintf: Likewise.
23055         * modules/unistdio/ulc-vasprintf: Likewise.
23056         * modules/unistdio/ulc-vfprintf: Likewise.
23057         * modules/unistdio/ulc-vsnprintf: Likewise.
23058         * modules/unistdio/ulc-vsprintf: Likewise.
23059         * modules/unistr/u8-check: Likewise.
23060         * modules/unistr/u8-chr: Likewise.
23061         * modules/unistr/u8-cmp: Likewise.
23062         * modules/unistr/u8-cmp2: Likewise.
23063         * modules/unistr/u8-cpy: Likewise.
23064         * modules/unistr/u8-cpy-alloc: Likewise.
23065         * modules/unistr/u8-endswith: Likewise.
23066         * modules/unistr/u8-mblen: Likewise.
23067         * modules/unistr/u8-mbsnlen: Likewise.
23068         * modules/unistr/u8-mbtouc: Likewise.
23069         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23070         * modules/unistr/u8-mbtoucr: Likewise.
23071         * modules/unistr/u8-move: Likewise.
23072         * modules/unistr/u8-next: Likewise.
23073         * modules/unistr/u8-prev: Likewise.
23074         * modules/unistr/u8-set: Likewise.
23075         * modules/unistr/u8-startswith: Likewise.
23076         * modules/unistr/u8-stpcpy: Likewise.
23077         * modules/unistr/u8-stpncpy: Likewise.
23078         * modules/unistr/u8-strcat: Likewise.
23079         * modules/unistr/u8-strchr: Likewise.
23080         * modules/unistr/u8-strcmp: Likewise.
23081         * modules/unistr/u8-strcoll: Likewise.
23082         * modules/unistr/u8-strcpy: Likewise.
23083         * modules/unistr/u8-strcspn: Likewise.
23084         * modules/unistr/u8-strdup: Likewise.
23085         * modules/unistr/u8-strlen: Likewise.
23086         * modules/unistr/u8-strmblen: Likewise.
23087         * modules/unistr/u8-strmbtouc: Likewise.
23088         * modules/unistr/u8-strncat: Likewise.
23089         * modules/unistr/u8-strncmp: Likewise.
23090         * modules/unistr/u8-strncpy: Likewise.
23091         * modules/unistr/u8-strnlen: Likewise.
23092         * modules/unistr/u8-strpbrk: Likewise.
23093         * modules/unistr/u8-strrchr: Likewise.
23094         * modules/unistr/u8-strspn: Likewise.
23095         * modules/unistr/u8-strstr: Likewise.
23096         * modules/unistr/u8-strtok: Likewise.
23097         * modules/unistr/u8-to-u16: Likewise.
23098         * modules/unistr/u8-to-u32: Likewise.
23099         * modules/unistr/u8-uctomb: Likewise.
23100         * modules/unistr/u16-check: Likewise.
23101         * modules/unistr/u16-chr: Likewise.
23102         * modules/unistr/u16-cmp: Likewise.
23103         * modules/unistr/u16-cmp2: Likewise.
23104         * modules/unistr/u16-cpy: Likewise.
23105         * modules/unistr/u16-cpy-alloc: Likewise.
23106         * modules/unistr/u16-endswith: Likewise.
23107         * modules/unistr/u16-mblen: Likewise.
23108         * modules/unistr/u16-mbsnlen: Likewise.
23109         * modules/unistr/u16-mbtouc: Likewise.
23110         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23111         * modules/unistr/u16-mbtoucr: Likewise.
23112         * modules/unistr/u16-move: Likewise.
23113         * modules/unistr/u16-next: Likewise.
23114         * modules/unistr/u16-prev: Likewise.
23115         * modules/unistr/u16-set: Likewise.
23116         * modules/unistr/u16-startswith: Likewise.
23117         * modules/unistr/u16-stpcpy: Likewise.
23118         * modules/unistr/u16-stpncpy: Likewise.
23119         * modules/unistr/u16-strcat: Likewise.
23120         * modules/unistr/u16-strchr: Likewise.
23121         * modules/unistr/u16-strcmp: Likewise.
23122         * modules/unistr/u16-strcoll: Likewise.
23123         * modules/unistr/u16-strcpy: Likewise.
23124         * modules/unistr/u16-strcspn: Likewise.
23125         * modules/unistr/u16-strdup: Likewise.
23126         * modules/unistr/u16-strlen: Likewise.
23127         * modules/unistr/u16-strmblen: Likewise.
23128         * modules/unistr/u16-strmbtouc: Likewise.
23129         * modules/unistr/u16-strncat: Likewise.
23130         * modules/unistr/u16-strncmp: Likewise.
23131         * modules/unistr/u16-strncpy: Likewise.
23132         * modules/unistr/u16-strnlen: Likewise.
23133         * modules/unistr/u16-strpbrk: Likewise.
23134         * modules/unistr/u16-strrchr: Likewise.
23135         * modules/unistr/u16-strspn: Likewise.
23136         * modules/unistr/u16-strstr: Likewise.
23137         * modules/unistr/u16-strtok: Likewise.
23138         * modules/unistr/u16-to-u32: Likewise.
23139         * modules/unistr/u16-to-u8: Likewise.
23140         * modules/unistr/u16-uctomb: Likewise.
23141         * modules/unistr/u32-check: Likewise.
23142         * modules/unistr/u32-chr: Likewise.
23143         * modules/unistr/u32-cmp: Likewise.
23144         * modules/unistr/u32-cmp2: Likewise.
23145         * modules/unistr/u32-cpy: Likewise.
23146         * modules/unistr/u32-cpy-alloc: Likewise.
23147         * modules/unistr/u32-endswith: Likewise.
23148         * modules/unistr/u32-mblen: Likewise.
23149         * modules/unistr/u32-mbsnlen: Likewise.
23150         * modules/unistr/u32-mbtouc: Likewise.
23151         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23152         * modules/unistr/u32-mbtoucr: Likewise.
23153         * modules/unistr/u32-move: Likewise.
23154         * modules/unistr/u32-next: Likewise.
23155         * modules/unistr/u32-prev: Likewise.
23156         * modules/unistr/u32-set: Likewise.
23157         * modules/unistr/u32-startswith: Likewise.
23158         * modules/unistr/u32-stpcpy: Likewise.
23159         * modules/unistr/u32-stpncpy: Likewise.
23160         * modules/unistr/u32-strcat: Likewise.
23161         * modules/unistr/u32-strchr: Likewise.
23162         * modules/unistr/u32-strcmp: Likewise.
23163         * modules/unistr/u32-strcoll: Likewise.
23164         * modules/unistr/u32-strcpy: Likewise.
23165         * modules/unistr/u32-strcspn: Likewise.
23166         * modules/unistr/u32-strdup: Likewise.
23167         * modules/unistr/u32-strlen: Likewise.
23168         * modules/unistr/u32-strmblen: Likewise.
23169         * modules/unistr/u32-strmbtouc: Likewise.
23170         * modules/unistr/u32-strncat: Likewise.
23171         * modules/unistr/u32-strncmp: Likewise.
23172         * modules/unistr/u32-strncpy: Likewise.
23173         * modules/unistr/u32-strnlen: Likewise.
23174         * modules/unistr/u32-strpbrk: Likewise.
23175         * modules/unistr/u32-strrchr: Likewise.
23176         * modules/unistr/u32-strspn: Likewise.
23177         * modules/unistr/u32-strstr: Likewise.
23178         * modules/unistr/u32-strtok: Likewise.
23179         * modules/unistr/u32-to-u16: Likewise.
23180         * modules/unistr/u32-to-u8: Likewise.
23181         * modules/unistr/u32-uctomb: Likewise.
23182         * modules/uniwbrk/u8-wordbreaks: Likewise.
23183         * modules/uniwbrk/u16-wordbreaks: Likewise.
23184         * modules/uniwbrk/u32-wordbreaks: Likewise.
23185         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23186         * modules/uniwbrk/wordbreak-property: Likewise.
23187         * modules/uniwidth/u8-strwidth: Likewise.
23188         * modules/uniwidth/u8-width: Likewise.
23189         * modules/uniwidth/u16-strwidth: Likewise.
23190         * modules/uniwidth/u16-width: Likewise.
23191         * modules/uniwidth/u32-strwidth: Likewise.
23192         * modules/uniwidth/u32-width: Likewise.
23193         * modules/uniwidth/width: Likewise.
23194         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23195         with $(LIBUNISTRING).
23196         * modules/unicase/ignorable-tests: Likewise.
23197         * modules/unicase/locale-language-tests: Likewise.
23198         * modules/unicase/tolower-tests: Likewise.
23199         * modules/unicase/totitle-tests: Likewise.
23200         * modules/unicase/toupper-tests: Likewise.
23201         * modules/unicase/u8-casecmp-tests: Likewise.
23202         * modules/unicase/u8-casecoll-tests: Likewise.
23203         * modules/unicase/u8-casefold-tests: Likewise.
23204         * modules/unicase/u8-is-cased-tests: Likewise.
23205         * modules/unicase/u8-is-casefolded-tests: Likewise.
23206         * modules/unicase/u8-is-lowercase-tests: Likewise.
23207         * modules/unicase/u8-is-titlecase-tests: Likewise.
23208         * modules/unicase/u8-is-uppercase-tests: Likewise.
23209         * modules/unicase/u8-tolower-tests: Likewise.
23210         * modules/unicase/u8-totitle-tests: Likewise.
23211         * modules/unicase/u8-toupper-tests: Likewise.
23212         * modules/unicase/u16-casecmp-tests: Likewise.
23213         * modules/unicase/u16-casecoll-tests: Likewise.
23214         * modules/unicase/u16-casefold-tests: Likewise.
23215         * modules/unicase/u16-is-cased-tests: Likewise.
23216         * modules/unicase/u16-is-casefolded-tests: Likewise.
23217         * modules/unicase/u16-is-lowercase-tests: Likewise.
23218         * modules/unicase/u16-is-titlecase-tests: Likewise.
23219         * modules/unicase/u16-is-uppercase-tests: Likewise.
23220         * modules/unicase/u16-tolower-tests: Likewise.
23221         * modules/unicase/u16-totitle-tests: Likewise.
23222         * modules/unicase/u16-toupper-tests: Likewise.
23223         * modules/unicase/u32-casecmp-tests: Likewise.
23224         * modules/unicase/u32-casecoll-tests: Likewise.
23225         * modules/unicase/u32-casefold-tests: Likewise.
23226         * modules/unicase/u32-is-cased-tests: Likewise.
23227         * modules/unicase/u32-is-casefolded-tests: Likewise.
23228         * modules/unicase/u32-is-lowercase-tests: Likewise.
23229         * modules/unicase/u32-is-titlecase-tests: Likewise.
23230         * modules/unicase/u32-is-uppercase-tests: Likewise.
23231         * modules/unicase/u32-tolower-tests: Likewise.
23232         * modules/unicase/u32-totitle-tests: Likewise.
23233         * modules/unicase/u32-toupper-tests: Likewise.
23234         * modules/unicase/ulc-casecmp-tests: Likewise.
23235         * modules/unicase/ulc-casecoll-tests: Likewise.
23236         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23237         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23238         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23239         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23240         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23241         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23242         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23243         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23244         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23245         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23246         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23247         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23248         * modules/unictype/bidicategory-byname-tests: Likewise.
23249         * modules/unictype/bidicategory-name-tests: Likewise.
23250         * modules/unictype/bidicategory-of-tests: Likewise.
23251         * modules/unictype/bidicategory-test-tests: Likewise.
23252         * modules/unictype/block-list-tests: Likewise.
23253         * modules/unictype/block-of-tests: Likewise.
23254         * modules/unictype/block-test-tests: Likewise.
23255         * modules/unictype/category-C-tests: Likewise.
23256         * modules/unictype/category-Cc-tests: Likewise.
23257         * modules/unictype/category-Cf-tests: Likewise.
23258         * modules/unictype/category-Cn-tests: Likewise.
23259         * modules/unictype/category-Co-tests: Likewise.
23260         * modules/unictype/category-Cs-tests: Likewise.
23261         * modules/unictype/category-L-tests: Likewise.
23262         * modules/unictype/category-Ll-tests: Likewise.
23263         * modules/unictype/category-Lm-tests: Likewise.
23264         * modules/unictype/category-Lo-tests: Likewise.
23265         * modules/unictype/category-Lt-tests: Likewise.
23266         * modules/unictype/category-Lu-tests: Likewise.
23267         * modules/unictype/category-M-tests: Likewise.
23268         * modules/unictype/category-Mc-tests: Likewise.
23269         * modules/unictype/category-Me-tests: Likewise.
23270         * modules/unictype/category-Mn-tests: Likewise.
23271         * modules/unictype/category-N-tests: Likewise.
23272         * modules/unictype/category-Nd-tests: Likewise.
23273         * modules/unictype/category-Nl-tests: Likewise.
23274         * modules/unictype/category-No-tests: Likewise.
23275         * modules/unictype/category-P-tests: Likewise.
23276         * modules/unictype/category-Pc-tests: Likewise.
23277         * modules/unictype/category-Pd-tests: Likewise.
23278         * modules/unictype/category-Pe-tests: Likewise.
23279         * modules/unictype/category-Pf-tests: Likewise.
23280         * modules/unictype/category-Pi-tests: Likewise.
23281         * modules/unictype/category-Po-tests: Likewise.
23282         * modules/unictype/category-Ps-tests: Likewise.
23283         * modules/unictype/category-S-tests: Likewise.
23284         * modules/unictype/category-Sc-tests: Likewise.
23285         * modules/unictype/category-Sk-tests: Likewise.
23286         * modules/unictype/category-Sm-tests: Likewise.
23287         * modules/unictype/category-So-tests: Likewise.
23288         * modules/unictype/category-Z-tests: Likewise.
23289         * modules/unictype/category-Zl-tests: Likewise.
23290         * modules/unictype/category-Zp-tests: Likewise.
23291         * modules/unictype/category-Zs-tests: Likewise.
23292         * modules/unictype/category-and-not-tests: Likewise.
23293         * modules/unictype/category-and-tests: Likewise.
23294         * modules/unictype/category-byname-tests: Likewise.
23295         * modules/unictype/category-name-tests: Likewise.
23296         * modules/unictype/category-none-tests: Likewise.
23297         * modules/unictype/category-of-tests: Likewise.
23298         * modules/unictype/category-or-tests: Likewise.
23299         * modules/unictype/category-test-withtable-tests: Likewise.
23300         * modules/unictype/combining-class-tests: Likewise.
23301         * modules/unictype/ctype-alnum-tests: Likewise.
23302         * modules/unictype/ctype-alpha-tests: Likewise.
23303         * modules/unictype/ctype-blank-tests: Likewise.
23304         * modules/unictype/ctype-cntrl-tests: Likewise.
23305         * modules/unictype/ctype-digit-tests: Likewise.
23306         * modules/unictype/ctype-graph-tests: Likewise.
23307         * modules/unictype/ctype-lower-tests: Likewise.
23308         * modules/unictype/ctype-print-tests: Likewise.
23309         * modules/unictype/ctype-punct-tests: Likewise.
23310         * modules/unictype/ctype-space-tests: Likewise.
23311         * modules/unictype/ctype-upper-tests: Likewise.
23312         * modules/unictype/ctype-xdigit-tests: Likewise.
23313         * modules/unictype/decimal-digit-tests: Likewise.
23314         * modules/unictype/digit-tests: Likewise.
23315         * modules/unictype/mirror-tests: Likewise.
23316         * modules/unictype/numeric-tests: Likewise.
23317         * modules/unictype/property-alphabetic-tests: Likewise.
23318         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23319         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23320         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23321         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23322         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23323         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23324         * modules/unictype/property-bidi-control-tests: Likewise.
23325         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23326         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23327         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23328         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23329         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23330         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23331         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23332         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23333         * modules/unictype/property-bidi-pdf-tests: Likewise.
23334         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23335         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23336         * modules/unictype/property-byname-tests: Likewise.
23337         * modules/unictype/property-combining-tests: Likewise.
23338         * modules/unictype/property-composite-tests: Likewise.
23339         * modules/unictype/property-currency-symbol-tests: Likewise.
23340         * modules/unictype/property-dash-tests: Likewise.
23341         * modules/unictype/property-decimal-digit-tests: Likewise.
23342         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23343         * modules/unictype/property-deprecated-tests: Likewise.
23344         * modules/unictype/property-diacritic-tests: Likewise.
23345         * modules/unictype/property-extender-tests: Likewise.
23346         * modules/unictype/property-format-control-tests: Likewise.
23347         * modules/unictype/property-grapheme-base-tests: Likewise.
23348         * modules/unictype/property-grapheme-extend-tests: Likewise.
23349         * modules/unictype/property-grapheme-link-tests: Likewise.
23350         * modules/unictype/property-hex-digit-tests: Likewise.
23351         * modules/unictype/property-hyphen-tests: Likewise.
23352         * modules/unictype/property-id-continue-tests: Likewise.
23353         * modules/unictype/property-id-start-tests: Likewise.
23354         * modules/unictype/property-ideographic-tests: Likewise.
23355         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23356         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23357         * modules/unictype/property-ignorable-control-tests: Likewise.
23358         * modules/unictype/property-iso-control-tests: Likewise.
23359         * modules/unictype/property-join-control-tests: Likewise.
23360         * modules/unictype/property-left-of-pair-tests: Likewise.
23361         * modules/unictype/property-line-separator-tests: Likewise.
23362         * modules/unictype/property-logical-order-exception-tests: Likewise.
23363         * modules/unictype/property-lowercase-tests: Likewise.
23364         * modules/unictype/property-math-tests: Likewise.
23365         * modules/unictype/property-non-break-tests: Likewise.
23366         * modules/unictype/property-not-a-character-tests: Likewise.
23367         * modules/unictype/property-numeric-tests: Likewise.
23368         * modules/unictype/property-other-alphabetic-tests: Likewise.
23369         * modules/unictype/property-other-default-ignorable-code-point-tests:
23370         Likewise.
23371         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23372         * modules/unictype/property-other-id-continue-tests: Likewise.
23373         * modules/unictype/property-other-id-start-tests: Likewise.
23374         * modules/unictype/property-other-lowercase-tests: Likewise.
23375         * modules/unictype/property-other-math-tests: Likewise.
23376         * modules/unictype/property-other-uppercase-tests: Likewise.
23377         * modules/unictype/property-paired-punctuation-tests: Likewise.
23378         * modules/unictype/property-paragraph-separator-tests: Likewise.
23379         * modules/unictype/property-pattern-syntax-tests: Likewise.
23380         * modules/unictype/property-pattern-white-space-tests: Likewise.
23381         * modules/unictype/property-private-use-tests: Likewise.
23382         * modules/unictype/property-punctuation-tests: Likewise.
23383         * modules/unictype/property-quotation-mark-tests: Likewise.
23384         * modules/unictype/property-radical-tests: Likewise.
23385         * modules/unictype/property-sentence-terminal-tests: Likewise.
23386         * modules/unictype/property-soft-dotted-tests: Likewise.
23387         * modules/unictype/property-space-tests: Likewise.
23388         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23389         * modules/unictype/property-test-tests: Likewise.
23390         * modules/unictype/property-titlecase-tests: Likewise.
23391         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23392         * modules/unictype/property-unified-ideograph-tests: Likewise.
23393         * modules/unictype/property-uppercase-tests: Likewise.
23394         * modules/unictype/property-variation-selector-tests: Likewise.
23395         * modules/unictype/property-white-space-tests: Likewise.
23396         * modules/unictype/property-xid-continue-tests: Likewise.
23397         * modules/unictype/property-xid-start-tests: Likewise.
23398         * modules/unictype/property-zero-width-tests: Likewise.
23399         * modules/unictype/scripts-tests: Likewise.
23400         * modules/unictype/syntax-c-ident-tests: Likewise.
23401         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23402         * modules/unictype/syntax-java-ident-tests: Likewise.
23403         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23404         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23405         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23406         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23407         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23408         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23409         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23410         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23411         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23412         * modules/uniname/uniname-tests: Likewise.
23413         * modules/uninorm/canonical-decomposition-tests: Likewise.
23414         * modules/uninorm/compat-decomposition-tests: Likewise.
23415         * modules/uninorm/composition-tests: Likewise.
23416         * modules/uninorm/decomposing-form-tests: Likewise.
23417         * modules/uninorm/decomposition-tests: Likewise.
23418         * modules/uninorm/filter-tests: Likewise.
23419         * modules/uninorm/nfc-tests: Likewise.
23420         * modules/uninorm/nfd-tests: Likewise.
23421         * modules/uninorm/nfkc-tests: Likewise.
23422         * modules/uninorm/nfkd-tests: Likewise.
23423         * modules/uninorm/u8-normcmp-tests: Likewise.
23424         * modules/uninorm/u8-normcoll-tests: Likewise.
23425         * modules/uninorm/u16-normcmp-tests: Likewise.
23426         * modules/uninorm/u16-normcoll-tests: Likewise.
23427         * modules/uninorm/u32-normcmp-tests: Likewise.
23428         * modules/uninorm/u32-normcoll-tests: Likewise.
23429         * modules/unistdio/u8-asnprintf-tests: Likewise.
23430         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23431         * modules/unistdio/u8-vasprintf-tests: Likewise.
23432         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23433         * modules/unistdio/u8-vsprintf-tests: Likewise.
23434         * modules/unistdio/u16-asnprintf-tests: Likewise.
23435         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23436         * modules/unistdio/u16-vasprintf-tests: Likewise.
23437         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23438         * modules/unistdio/u16-vsprintf-tests: Likewise.
23439         * modules/unistdio/u32-asnprintf-tests: Likewise.
23440         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23441         * modules/unistdio/u32-vasprintf-tests: Likewise.
23442         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23443         * modules/unistdio/u32-vsprintf-tests: Likewise.
23444         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23445         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23446         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23447         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23448         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23449         * modules/unistr/u8-check-tests: Likewise.
23450         * modules/unistr/u8-chr-tests: Likewise.
23451         * modules/unistr/u8-cmp-tests: Likewise.
23452         * modules/unistr/u8-cmp2-tests: Likewise.
23453         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23454         * modules/unistr/u8-cpy-tests: Likewise.
23455         * modules/unistr/u8-mblen-tests: Likewise.
23456         * modules/unistr/u8-mbsnlen-tests: Likewise.
23457         * modules/unistr/u8-mbtouc-tests: Likewise.
23458         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23459         * modules/unistr/u8-mbtoucr-tests: Likewise.
23460         * modules/unistr/u8-move-tests: Likewise.
23461         * modules/unistr/u8-next-tests: Likewise.
23462         * modules/unistr/u8-prev-tests: Likewise.
23463         * modules/unistr/u8-set-tests: Likewise.
23464         * modules/unistr/u8-stpcpy-tests: Likewise.
23465         * modules/unistr/u8-stpncpy-tests: Likewise.
23466         * modules/unistr/u8-strcat-tests: Likewise.
23467         * modules/unistr/u8-strcmp-tests: Likewise.
23468         * modules/unistr/u8-strcoll-tests: Likewise.
23469         * modules/unistr/u8-strcpy-tests: Likewise.
23470         * modules/unistr/u8-strdup-tests: Likewise.
23471         * modules/unistr/u8-strlen-tests: Likewise.
23472         * modules/unistr/u8-strmblen-tests: Likewise.
23473         * modules/unistr/u8-strmbtouc-tests: Likewise.
23474         * modules/unistr/u8-strncat-tests: Likewise.
23475         * modules/unistr/u8-strncmp-tests: Likewise.
23476         * modules/unistr/u8-strncpy-tests: Likewise.
23477         * modules/unistr/u8-strnlen-tests: Likewise.
23478         * modules/unistr/u8-to-u16-tests: Likewise.
23479         * modules/unistr/u8-to-u32-tests: Likewise.
23480         * modules/unistr/u8-uctomb-tests: Likewise.
23481         * modules/unistr/u16-check-tests: Likewise.
23482         * modules/unistr/u16-chr-tests: Likewise.
23483         * modules/unistr/u16-cmp-tests: Likewise.
23484         * modules/unistr/u16-cmp2-tests: Likewise.
23485         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23486         * modules/unistr/u16-cpy-tests: Likewise.
23487         * modules/unistr/u16-mblen-tests: Likewise.
23488         * modules/unistr/u16-mbsnlen-tests: Likewise.
23489         * modules/unistr/u16-mbtouc-tests: Likewise.
23490         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23491         * modules/unistr/u16-mbtoucr-tests: Likewise.
23492         * modules/unistr/u16-move-tests: Likewise.
23493         * modules/unistr/u16-next-tests: Likewise.
23494         * modules/unistr/u16-prev-tests: Likewise.
23495         * modules/unistr/u16-set-tests: Likewise.
23496         * modules/unistr/u16-stpcpy-tests: Likewise.
23497         * modules/unistr/u16-stpncpy-tests: Likewise.
23498         * modules/unistr/u16-strcat-tests: Likewise.
23499         * modules/unistr/u16-strcmp-tests: Likewise.
23500         * modules/unistr/u16-strcoll-tests: Likewise.
23501         * modules/unistr/u16-strcpy-tests: Likewise.
23502         * modules/unistr/u16-strdup-tests: Likewise.
23503         * modules/unistr/u16-strlen-tests: Likewise.
23504         * modules/unistr/u16-strmblen-tests: Likewise.
23505         * modules/unistr/u16-strmbtouc-tests: Likewise.
23506         * modules/unistr/u16-strncat-tests: Likewise.
23507         * modules/unistr/u16-strncmp-tests: Likewise.
23508         * modules/unistr/u16-strncpy-tests: Likewise.
23509         * modules/unistr/u16-strnlen-tests: Likewise.
23510         * modules/unistr/u16-to-u32-tests: Likewise.
23511         * modules/unistr/u16-to-u8-tests: Likewise.
23512         * modules/unistr/u16-uctomb-tests: Likewise.
23513         * modules/unistr/u32-check-tests: Likewise.
23514         * modules/unistr/u32-chr-tests: Likewise.
23515         * modules/unistr/u32-cmp-tests: Likewise.
23516         * modules/unistr/u32-cmp2-tests: Likewise.
23517         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23518         * modules/unistr/u32-cpy-tests: Likewise.
23519         * modules/unistr/u32-mblen-tests: Likewise.
23520         * modules/unistr/u32-mbsnlen-tests: Likewise.
23521         * modules/unistr/u32-mbtouc-tests: Likewise.
23522         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23523         * modules/unistr/u32-mbtoucr-tests: Likewise.
23524         * modules/unistr/u32-move-tests: Likewise.
23525         * modules/unistr/u32-next-tests: Likewise.
23526         * modules/unistr/u32-prev-tests: Likewise.
23527         * modules/unistr/u32-set-tests: Likewise.
23528         * modules/unistr/u32-stpcpy-tests: Likewise.
23529         * modules/unistr/u32-stpncpy-tests: Likewise.
23530         * modules/unistr/u32-strcat-tests: Likewise.
23531         * modules/unistr/u32-strcmp-tests: Likewise.
23532         * modules/unistr/u32-strcoll-tests: Likewise.
23533         * modules/unistr/u32-strcpy-tests: Likewise.
23534         * modules/unistr/u32-strdup-tests: Likewise.
23535         * modules/unistr/u32-strlen-tests: Likewise.
23536         * modules/unistr/u32-strmblen-tests: Likewise.
23537         * modules/unistr/u32-strmbtouc-tests: Likewise.
23538         * modules/unistr/u32-strncat-tests: Likewise.
23539         * modules/unistr/u32-strncmp-tests: Likewise.
23540         * modules/unistr/u32-strncpy-tests: Likewise.
23541         * modules/unistr/u32-strnlen-tests: Likewise.
23542         * modules/unistr/u32-to-u16-tests: Likewise.
23543         * modules/unistr/u32-to-u8-tests: Likewise.
23544         * modules/unistr/u32-uctomb-tests: Likewise.
23545         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23546         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23547         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23548         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23549         * modules/uniwidth/u8-strwidth-tests: Likewise.
23550         * modules/uniwidth/u8-width-tests: Likewise.
23551         * modules/uniwidth/u16-strwidth-tests: Likewise.
23552         * modules/uniwidth/u16-width-tests: Likewise.
23553         * modules/uniwidth/u32-strwidth-tests: Likewise.
23554         * modules/uniwidth/u32-width-tests: Likewise.
23555         * modules/uniwidth/width-tests: Likewise.
23556
23557 2010-05-18  Richard Jones  <rjones@redhat.com>
23558
23559         doc: users.txt: list hivex
23560         * users.txt: Add hivex.
23561
23562 2010-05-18  Richard Jones  <rjones@redhat.com>
23563
23564         doc: users.txt: list febootstrap
23565         * users.txt: Add febootstrap.
23566
23567 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23568
23569         bootstrap: fix an error when gnulib is not used as a git submodule
23570         * build-aux/bootstrap (gnulib_path): If its length is zero then
23571         assign "gnulib" to it.
23572         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23573
23574 2010-05-16  Bruno Haible  <bruno@clisp.org>
23575
23576         Avoid autoconf warnings about AM_ICONV.
23577         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23578         2.64.
23579
23580 2010-05-16  Bruno Haible  <bruno@clisp.org>
23581
23582         absolute-header: Make the macro usable in more situations.
23583         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23584         from gl_ABSOLUTE_HEADER.
23585         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23586
23587 2010-05-16  James Youngman  <jay@gnu.org>
23588
23589         doc: update users.txt
23590         * users.txt: Add CSSC.
23591
23592 2010-05-16  Jim Meyering  <meyering@redhat.com>
23593
23594         init.sh: fix an error in the previous change; add more comments
23595         * tests/init.sh: Compare exit code in loop against 9, not 2.
23596         Patch by Bruno Haible.
23597         Make the two tests more similar by adding an empty "then" clause.
23598         Add comments.
23599
23600         init.sh: avoid unnecessary shell re-exec
23601         * tests/init.sh: Improve the re-exec-required check to first test the
23602         current shell.  If it passes the test, do not search for a shell that
23603         does pass, and do not re-exec.  This test is particularly contorted to
23604         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23605         of $(...) evokes a syntax error and causes immediate shell exit with
23606         status 2.  Bruno Haible reported that the re-exec made it impossible
23607         to single-step through any init.sh-using script.
23608
23609 2010-05-16  Bruno Haible  <bruno@clisp.org>
23610
23611         Fix collision between gnulib's and libintl's printf replacements.
23612         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23613         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23614         (printf): When using GNU C, map the __printf__ function to rpl_printf
23615         via __asm__. When not using GNU C, define rpl_printf instead of
23616         __printf__.
23617         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23618         commit.
23619         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23620         commit.
23621         * m4/asm-underscore.m4: New file.
23622         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23623         * modules/stdio (Files): Add m4/asm-underscore.m4.
23624         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23625         Reported by Ben Pfaff.
23626
23627 2010-05-16  Bruno Haible  <bruno@clisp.org>
23628
23629         verify: Avoid skipping the test on openSUSE 11.0.
23630         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23631
23632 2010-05-13  Bruno Haible  <bruno@clisp.org>
23633
23634         Avoid useless warnings from G++.
23635         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23636         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23637         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23638
23639 2010-05-11  Jim Meyering  <meyering@redhat.com>
23640
23641         maint.mk: tweak preceding change
23642         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23643         regexps tighter by anchoring at EOL, and make the new group "shy"
23644         for slightly decreased overhead.
23645
23646 2010-05-11  Eric Blake  <eblake@redhat.com>
23647
23648         maint.mk: gnulib doesn't guarantee NSIG
23649         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23650
23651 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23652
23653         test-pwrite.c: Remove unused variable declaration.
23654         * tests/test-pwrite.c (main): Remove read_buf declaration.
23655
23656         Remove useless test-pwrite.sh file.
23657         * tests/test-pwrite.sh: Delete file.
23658         * modules/pwrite-tests: Remove references.
23659         Reported by Bruno Haible.
23660
23661 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23662
23663         init.sh: fix a typo
23664         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23665
23666 2010-05-10  Jim Meyering  <meyering@redhat.com>
23667
23668         maint.mk: avoid using a temporary file in the always-defined-macros check
23669         * top/maint.mk (.re-defmac): Remove rule.
23670         (gl_trap_): Remove definition.
23671         (sc_prohibit_always-defined_macros): Rewrite not to create and
23672         depend on a temporary file.  Instead, depend on GNU grep's ability
23673         to read a list of regular expressions from stdin when given "-f -".
23674
23675 2010-05-09  Bruno Haible  <bruno@clisp.org>
23676
23677         Update to GNU gettext 0.18, part 1.
23678         * m4/gettext.m4: Update to GNU gettext 0.18.
23679         * m4/intl.m4: Likewise.
23680         * m4/po.m4: Likewise.
23681         * modules/gettext (Files): Add m4/fcntl-o.m4.
23682         (configure.ac): Require gettext infrastructure from version 0.18.
23683
23684 2010-05-09  Jim Meyering  <meyering@redhat.com>
23685
23686         init.sh: enable MALLOC_PERTURB_
23687         * tests/init.sh: Enable glibc's malloc-perturbing option.
23688
23689         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23690         With my recent change in init.sh from the two-line form:
23691             -#   : ${srcdir=.}
23692             -#   . "$srcdir/init.sh"; path_prepend_ .
23693             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23694         I noticed that using the one-line form would cause this test
23695         to fail with a false-positive, or to stop working altogether,
23696         depending on whether help-version changed or all the tests did.
23697         * top/maint.mk (_hv_regex): Remove this definition.
23698         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23699         (_hv_regex_strong): Use a stronger regex to check for conformance.
23700         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23701         Give a separate diagnostic for lack of conforming use.
23702
23703         maint.mk: prohibit definition of symbols defined by gnulib
23704         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23705         definition of symbols defined by gnulib.
23706
23707 2010-05-09  Bruno Haible  <bruno@clisp.org>
23708
23709         acl: Avoid test failure on Cygwin-hosted mingw.
23710         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23711
23712 2010-05-09  Bruno Haible  <bruno@clisp.org>
23713
23714         error: Use system's fcntl function.
23715         * lib/error.c (fcntl): Undefine.
23716
23717 2010-05-09  Jim Meyering  <meyering@redhat.com>
23718
23719         verify: adjust formatting to be more consistent
23720         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23721         argument-list '('s, and after one comma.
23722
23723 2010-05-09  Bruno Haible  <bruno@clisp.org>
23724
23725         error: More reliable output on mingw.
23726         * lib/error.c: Include <windows.h>.
23727         (is_open): New function.
23728         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23729         defined.
23730
23731 2010-05-09  Bruno Haible  <bruno@clisp.org>
23732
23733         vasnprintf: Fix syntax errors in libintl build on mingw.
23734         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23735         pad_ourselves and prec_ourselves after use.
23736
23737 2010-05-08  Bruno Haible  <bruno@clisp.org>
23738
23739         * lib/config.charset: Update comments for Cygwin 1.7.
23740         * lib/localcharset.c: Likewise.
23741
23742 2010-05-07  Jim Meyering  <meyering@redhat.com>
23743
23744         init.sh: improve comments
23745         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23746         . "${srcdir=.}/init.sh"; path_prepend_ .
23747         Add a note about path_prepend_ and the alternative of using
23748         TESTS_ENVIRONMENT.
23749
23750 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23751
23752         exclude: Unescape hashed patterns in wildcard mode.
23753         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23754         to the hash list.
23755         * tests/test-exclude8.sh: New test case.
23756         * modules/exclude-tests: Add new test.
23757
23758 2010-05-05  Eric Blake  <eblake@redhat.com>
23759
23760         verify: automate tests
23761         * modules/verify-tests: New module.
23762         * tests/test-verify.sh: New file.
23763         * tests/test-verify.c: Guard each negative test with a unique id.
23764         Also avoid warning about unused left hand of comma expressions.
23765
23766 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23767
23768         Further improvements to verify.h, suggested by Eric Blake.
23769         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23770         the GL_* versions, to avoid collision with OpenGL.
23771         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23772         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23773         than testing merely whether it's defined.
23774
23775         Modify verify.h to pacify gcc -Wredundant_decls.
23776         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23777         These use the prefix "GL_" since they're likely to be useful elsewhere.
23778         We may need to break them out into a different .h file.
23779         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23780         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23781         of verify_function__.
23782
23783 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23784
23785         Tests for module pwrite.
23786         * modules/pwrite-tests: New file.
23787         * tests/test-pwrite.sh: New file.
23788         * tests/test-pwrite.c: New file.
23789
23790         New module pwrite.
23791         * lib/unistd.in.h (pwrite): New declaration.
23792         * lib/pwrite.c: New file, from glibc with modifications.
23793         * m4/pwrite.m4: New file.
23794         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23795         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23796         REPLACE_PWRITE.
23797         * modules/pwrite: New file.
23798         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23799         REPLACE_PWRITE.
23800         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23801         * doc/posix-functions/pwrite.texi: Mention the new module.
23802
23803 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23804
23805         pread: Update documentation.
23806         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23807
23808 2010-05-04  Eric Blake  <eblake@redhat.com>
23809
23810         docs: update cygwin progress
23811         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23812         this bug.
23813         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23814         Added in cygwin 1.7.2.
23815         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23816         Likewise.
23817         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23818         Likewise.
23819         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23820         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23821         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23822         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23823         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23824         Mention nproc module.
23825         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23826         bug in cygwin 1.7.5 addition.
23827         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23828         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23829         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23830         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23831         1.7.5.
23832         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23833         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23834         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23835         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23836         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23837         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23838         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23839         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23840         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23841         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23842         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23843         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23844         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23845         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23846         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23847         Likewise.
23848         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23849         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23850         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23851         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23852         Likewise.
23853         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23854         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23855         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23856         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23857         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23858         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23859         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23860         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23861         Likewise.
23862         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23863         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23864         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23865         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23866         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23867         Likewise.
23868         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23869         Likewise.
23870         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23871         Likewise.
23872         * doc/glibc-functions/xdrrec_endofrecord.texi
23873         (xdrrec_endofrecord): Likewise.
23874         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23875         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23876         Likewise.
23877         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23878         Likewise.
23879
23880 2010-05-04  Jim Meyering  <meyering@redhat.com>
23881
23882         gendocs.sh: make its "-s FILE" option more useful
23883         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23884         $PACKAGE to reflect the probably-different basename of "FILE".
23885
23886 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23887
23888         bootstrap: don't ignore download_po_files failure
23889         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23890         failure.
23891
23892 2010-05-03  Jim Meyering  <meyering@redhat.com>
23893
23894         maint.mk: allow to pass options to gendocs.sh
23895         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23896         (gendocs_options_): New overridable variable.
23897
23898         gnu-web-doc-update: don't ignore configure or build failure
23899         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23900
23901         announce-gen: backslash-escape '@'s in --help output
23902         * build-aux/announce-gen: Fix syntax errors.
23903
23904         maint.mk, announce-gen: allow project-specific announcement mail headers
23905         * top/maint.mk (translation_project_): Define default.
23906         (announcement_Cc_, announcement_mail_headers_): Likewise.
23907         (announcement): Invoke announce-gen with new --mail-headers option.
23908         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23909
23910         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23911         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23912         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23913         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23914         line in the "err2" output file when running "make check" in verbose
23915         mode (i.e., with set -x enabled).
23916
23917 2010-05-03  Bruno Haible  <bruno@clisp.org>
23918
23919         wctob: Fix for weird platforms.
23920         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23921         argument value.
23922
23923 2010-05-03  Jim Meyering  <meyering@redhat.com>
23924
23925         maint.mk: prohibit unwarranted use of <strings.h>
23926         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23927         strings.h in a file that does not also use strcasecmp, strncasecmp,
23928         ffs or ffsll.
23929
23930         maint.mk: remove obsolete comments
23931         * top/maint.mk: Remove stale, commented-out rules.
23932
23933 2010-05-02  Bruno Haible  <bruno@clisp.org>
23934
23935         wcwidth: Declare also when it's aliased.
23936         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
23937         macro.
23938
23939 2010-05-02  Bruno Haible  <bruno@clisp.org>
23940
23941         Fix regression from 2010-04-25.
23942         * gnulib-tool (func_modules_transitive_closure): Check the status of
23943         all modules, not only of the tests that are of the form foo-tests where
23944         foo is a module.
23945
23946 2010-05-02  Bruno Haible  <bruno@clisp.org>
23947
23948         wctob: Work around nasty Cygwin 1.7.2 bug.
23949         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
23950         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
23951
23952 2010-05-01  Bruno Haible  <bruno@clisp.org>
23953
23954         fpurge: Sharper test.
23955         * tests/test-fpurge.c (main): Add one more ftell check.
23956         * modules/fpurge-tests (Depends-on): Add ftell.
23957         Suggested by Eric Blake.
23958
23959 2010-05-01  Bruno Haible  <bruno@clisp.org>
23960
23961         ftello: Another test.
23962         * tests/test-ftello3.c: New file.
23963         * modules/ftello-tests (Files): Add it.
23964         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23965         MOSTLYCLEANFILES.
23966
23967         ftell: Another test.
23968         * tests/test-ftell3.c: New file.
23969         * modules/ftell-tests (Files): Add it.
23970         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
23971         MOSTLYCLEANFILES.
23972
23973 2010-05-01  Bruno Haible  <bruno@clisp.org>
23974
23975         ftell, ftello: Work around Solaris bug.
23976         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
23977         * lib/ftello.c: Include stdio-impl.h.
23978         (ftello): On Solaris, when _IOWRT is set, compute the result without
23979         looking at _IOREAD.
23980         * modules/ftello (Files): Add lib/stdio-impl.h.
23981         * doc/posix-functions/ftell.texi: Mention Solaris bug.
23982         * doc/posix-functions/ftello.texi: Likewise.
23983         Reported by Eric Blake.
23984
23985 2010-05-01  Bruno Haible  <bruno@clisp.org>
23986
23987         freading: Adapt to special meaning of _IOREAD flag on Solaris.
23988         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
23989         the _IOWRT flag is also set.
23990
23991 2010-05-01  Bruno Haible  <bruno@clisp.org>
23992
23993         Fix doc about a HP-UX stdio bug.
23994         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
23995         * doc/posix-functions/ftello.texi: Likewise.
23996
23997 2010-05-01  Bruno Haible  <bruno@clisp.org>
23998
23999         lseek test: Fix failure on Solaris.
24000         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24001         output.
24002
24003 2010-04-30  Jim Meyering  <meyering@redhat.com>
24004
24005         bootstrap: don't ignore failure to generate po*/Makevars
24006         * build-aux/bootstrap (with_gettext): Don't ignore failure
24007         to create po/Makevars or runtime-po/Makevars.
24008
24009 2010-04-29  Eric Blake  <eblake@redhat.com>
24010
24011         headers: relax license to LGPLv2+
24012         * modules/fcntl-h (License): Relax license.
24013         * modules/getopt-posix (License): Likewise.
24014         * modules/locale (License): Likewise.
24015         * modules/math (License): Likewise.
24016         * modules/pty (License): Likewise.
24017         * modules/sched (License): Likewise.
24018         * modules/search (License): Likewise.
24019         * modules/spawn (License): Likewise.
24020         * modules/stdarg (License): Likewise.
24021         * modules/sysexits (License): Likewise.
24022
24023 2010-04-29  Jim Meyering  <meyering@redhat.com>
24024
24025         inttypes: relax license to LGPLv2+
24026         * modules/inttypes (License): Relax license.
24027
24028 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24029
24030         * top/maint.mk (indent): Run twice to produce idempotent results.
24031
24032 2010-04-28  Bruno Haible  <bruno@clisp.org>
24033
24034         getdate: Generate getdate.c in the source directory.
24035         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24036         MOSTLYCLEANFILES.
24037         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24038
24039 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24040
24041         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24042         is not declared as a const *; avoid warnings in that case.
24043
24044 2010-04-28  Eric Blake  <eblake@redhat.com>
24045
24046         canonicalize-lgpl: avoid compiler warning
24047         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24048         declaration' / 'extraneous semicolon' warning with some compilers.
24049         Reported by Andreas Gruenbacher.
24050
24051 2010-04-28  Jim Meyering  <meyering@redhat.com>
24052
24053         init.sh: ensure a more reliable exit status when exiting via trap
24054         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24055         Inspired by patches from Dmitry V. Levin.
24056         Also trap on signal 3 (SIGQUIT).
24057
24058 2010-04-27  Bruno Haible  <bruno@clisp.org>
24059
24060         Update doc about utimes().
24061         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24062         'utimens' module.
24063         Reported by Andreas Gruenbacher <agruen@suse.de>.
24064
24065 2010-04-27  Eric Blake  <eblake@redhat.com>
24066
24067         full-read, full-write: relax license
24068         * modules/full-read (License): Drop to LGPLv2+.
24069         * modules/full-write (License): Likewise.
24070         * modules/safe-read (License): Likewise.
24071         * modules/safe-write (License): Likewise.
24072
24073         pthread: mention library for linking
24074         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24075
24076 2010-04-27  Jim Meyering  <meyering@redhat.com>
24077
24078         maint.mk: fix a bug introduced in last change
24079         * top/maint.mk (gl_assured_headers_): Now that all names are on
24080         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24081         is not anchored to end of word, it should be adequate.
24082
24083         maint.mk: avoid side-effect in latest syntax-check
24084         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24085         to run commands via $(shell...), and hence to incur cost only when
24086         the new rule is actually run.
24087
24088         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24089         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24090         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24091         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24092         (gl_assured_headers_, az_, AZ_): Define.
24093         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24094
24095 2010-04-26  Jim Meyering  <jim@meyering.net>
24096             Bruno Haible  <bruno@clisp.org>
24097
24098         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24099         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24100         Prompted by an exchange with Gilles Espinasse.
24101
24102 2010-04-26  Jim Meyering  <meyering@redhat.com>
24103
24104         git-version-gen: aesthetic tweak
24105         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24106         so that the command remains on a single line.
24107
24108 2010-04-26  Eric Blake  <eblake@redhat.com>
24109
24110         git-version-gen: allow use on EBCDIC hosts
24111         * build-aux/git-version-gen (dirty): Use literal rather than tying
24112         ourselves to ascii.
24113         Reported by Steve Goetze.
24114
24115 2010-04-25  Bruno Haible  <bruno@clisp.org>
24116
24117         netdb: Add support for GNULIB_POSIXCHECK.
24118         * lib/netdb.in.h: Include warn-on-use.h.
24119         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24120         functions are used when GNULIB_POSIXCHECK is defined and the
24121         getaddrinfo module is not in use.
24122         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24123         freeaddrinfo, gai_strerror, getnameinfo are declared.
24124         * modules/netdb (Depends-on): Add warn-on-use.
24125         (Makefile.am): Include warn-on-use.h in netdb.h.
24126
24127 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24128
24129         build: avoid "make check" failure without .git/ directory
24130         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24131         there is no .git/ directory.
24132
24133 2010-04-25  Bruno Haible  <bruno@clisp.org>
24134
24135         ptsname: Fix misuse of ttyname_r.
24136         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24137         of errno.
24138
24139 2010-04-25  Bruno Haible  <bruno@clisp.org>
24140
24141         ttyname_r: Make it work on Solaris 10.
24142         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24143         if the system function has the POSIX declaration. Test whether the
24144         function fails if the buffer is less than 128 bytes large.
24145         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24146         system's ttyname_r function. Provide a reasonably large buffer.
24147         * modules/ttyname_r (Depends-on): Add extensions.
24148         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24149
24150 2010-04-25  Bruno Haible  <bruno@clisp.org>
24151
24152         Use the 'extensions' module for some more functions on Solaris.
24153         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24154         module.
24155         * doc/posix-functions/ctime_r.texi: Likewise.
24156         * doc/posix-functions/getgrgid_r.texi: Likewise.
24157         * doc/posix-functions/getgrnam_r.texi: Likewise.
24158         * doc/posix-functions/getpwnam_r.texi: Likewise.
24159         * doc/posix-functions/getpwuid_r.texi: Likewise.
24160         * doc/posix-functions/readdir_r.texi: Likewise.
24161         * doc/posix-functions/sigwait.texi: Likewise.
24162         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24163         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24164
24165 2010-04-25  Bruno Haible  <bruno@clisp.org>
24166
24167         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24168         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24169         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24170         * lib/ttyname_r.c: Include <limits.h>.
24171         (ttyname_r): Define using the system's ttyname_r function, if it exists
24172         and not on Solaris.
24173         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24174         set.
24175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24176         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24177         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24178         Reported by Simon Josefsson.
24179
24180 2010-04-25  Bruno Haible  <bruno@clisp.org>
24181
24182         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24183         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24184         * doc/posix-functions/ctime_r.texi: Likewise.
24185         * doc/posix-functions/getgrgid_r.texi: Likewise.
24186         * doc/posix-functions/getgrnam_r.texi: Likewise.
24187         * doc/posix-functions/getlogin_r.texi: Likewise.
24188         * doc/posix-functions/getpwnam_r.texi: Likewise.
24189         * doc/posix-functions/getpwuid_r.texi: Likewise.
24190         * doc/posix-functions/readdir_r.texi: Likewise.
24191         * doc/posix-functions/sigwait.texi: Likewise.
24192         * doc/posix-functions/ttyname_r.texi: Likewise.
24193         Reported by Simon Josefsson.
24194
24195 2010-04-25  Bruno Haible  <bruno@clisp.org>
24196
24197         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24198         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24199         also to --create-testdir.
24200         (func_acceptable): Don't consider the status of *-tests modules here.
24201         (func_modules_transitive_closure): Consider it here, before including a
24202         test module.
24203         (func_import, func_create_testdir): Set inc_all_direct_tests,
24204         inc_all_indirect_tests.
24205         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24206         --create-testdir and --create-megatestdir.
24207
24208 2010-04-25  Bruno Haible  <bruno@clisp.org>
24209
24210         gnulib-tool: Add --without-*-tests options.
24211         * gnulib-tool (func_usage): Document the --without-*-tests options.
24212         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24213         excl_unportable_tests): New variables.
24214         Fail if they are specified with --import or --update.
24215         (func_acceptable): Respect the excl_*_tests variables.
24216         (func_import): Set the excl_*_tests variables to empty.
24217
24218 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24219             Bruno Haible  <bruno@clisp.org>
24220
24221         Work around a MacOS X 10.4 bug with openpty.
24222         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24223         * tests/test-openpty.c (main): Close the master side explicitly.
24224
24225 2010-04-25  Bruno Haible  <bruno@clisp.org>
24226
24227         strnlen: Fix a C++ test error on MacOS X and Solaris.
24228         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24229         the function is not declared.
24230         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24231         Simon Josefsson.
24232
24233 2010-04-24  Bruno Haible  <bruno@clisp.org>
24234
24235         Avoid a gcc warning.
24236         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24237         of correct type for %08lx directive.
24238         Reported by Eric Blake.
24239
24240 2010-04-24  Bruno Haible  <bruno@clisp.org>
24241
24242         vasnprintf: Correct errno value in case of out-of-memory.
24243         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24244         or sprintf. Use the errno value from SNPRINTF or sprintf.
24245         Reported by Ian Beckwith <ianb@erislabs.net>.
24246
24247 2010-04-24  Bruno Haible  <bruno@clisp.org>
24248
24249         ansi-c++-opt: Find correct compiler when cross-compiling.
24250         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24251         AC_CHECK_PROGS.
24252         Reported by Simon Josefsson.
24253
24254 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24255
24256         vc-list-files: Add support for subversion
24257         * build-aux/vc-list-files: Use "svn list" to generate the list of
24258         files controlled by subversion.
24259
24260 2010-04-23  Jim Meyering  <meyering@redhat.com>
24261
24262         vc-list-files tests: convert to use init.sh
24263         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24264         path_prepend_.
24265         Use Exit, not exit.
24266         Use skip_ rather than open coding it.
24267         Remove trap set-up and compare definitions.
24268         * tests/test-vc-list-files-git.sh: Likewise.
24269         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24270
24271 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24272
24273         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24274         backup files.
24275
24276 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24277
24278         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24279
24280 2010-04-20  Eric Blake  <eblake@redhat.com>
24281
24282         tests: be robust to ignored SIGPIPE
24283         * tests/test-select-in.sh: Consume all output.
24284         * tests/test-lseek.sh: Check correct exit status, while avoiding
24285         EPIPE.
24286
24287 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24288             Bruno Haible  <bruno@clisp.org>
24289
24290         visibility: Don't use -fvisibility if it leads to a warning.
24291         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24292         yes, don't pretend that visibility works if it leads to a warning.
24293         Reported by Mike Gran <spk121@yahoo.com>.
24294
24295 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24296
24297         * build-aux/bootstrap: Use "git -h" for testing for supported options
24298         instead of "git --help".  The short-form option only shows a summary,
24299         and doesn't layout the full man page.  Grep for the full option name
24300         in the summary, too.
24301
24302 2010-04-19  Bruno Haible  <bruno@clisp.org>
24303
24304         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24305         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24306         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24307         mention of RELOCATABLE_STRIP.
24308         Reported by Sylvain Beucler <beuc@beuc.net>.
24309
24310 2010-04-19  Bruno Haible  <bruno@clisp.org>
24311
24312         * lib/diffseq.h: Fix typo in comment.
24313         Reported by Eric Blake.
24314
24315 2010-04-19  Bruno Haible  <bruno@clisp.org>
24316
24317         ioctl: Move autoconf macro to a .m4 file.
24318         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24319         * modules/ioctl (Files): Add it.
24320         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24321         Reported by Ian Beckwith <ianb@erislabs.net>.
24322
24323 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24324             Bruno Haible  <bruno@clisp.org>
24325
24326         diffseq: Accommodate use-case with abstract arrays.
24327         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24328         is not defined.
24329         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24330         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24331
24332 2010-04-18  Bruno Haible  <bruno@clisp.org>
24333
24334         * doc/posix-headers/stdbool.texi: More precise wording.
24335
24336 2010-04-17  Jim Meyering  <meyering@redhat.com>
24337
24338         maint.mk: use gnu-style indentation in an embedded perl script
24339         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24340         Rename variable: s/two/last_two_bytes/
24341
24342 2010-04-16  Eric Blake  <eblake@redhat.com>
24343
24344         test-stdbool: skip test that fails with Solaris CC
24345         * tests/test-stdbool.c (f): Skip test that causes compilation
24346         error under buggy C++ compiler.
24347         * lib/stdbool.in.h: Document the limitation.
24348         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24349
24350         setenv: allow compilation with C++
24351         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24352         register keyword.
24353
24354         stdint: allow test to pass with C++
24355         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24356
24357         getopt: allow compilation with C++
24358         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24359         struct.
24360         * lib/getopt.c (_getopt_internal_r): Use correct type.
24361         Reported by Dagobert Michelson, via Joel E. Denny.
24362
24363 2010-04-16  Bruno Haible  <bruno@clisp.org>
24364
24365         Override netdb.h always.
24366         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24367         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24368         Reported by Ludovic Courtès <ludo@gnu.org>.
24369
24370 2010-04-15  Bruno Haible  <bruno@clisp.org>
24371
24372         openpty: Fix mistake from 2010-03-21.
24373         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24374         Reported by Simon Josefsson.
24375
24376 2010-04-15  Eric Blake  <eblake@redhat.com>
24377
24378         test-forkpty: fix expected signature
24379         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24380         Reported by Simon Josefsson.
24381
24382 2010-04-15  Jim Meyering  <meyering@redhat.com>
24383
24384         maint.mk: texinfo_suffix_re_: correct the default regexp
24385         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24386
24387         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24388         make it configurable via texinfo_suffix_re_.
24389
24390 2010-04-14  Eric Blake  <eblake@redhat.com>
24391
24392         strtok_r: relax license to LGPLv2+
24393         * modules/strtok_r (License): Relax license.
24394         Reported by Matthias Bolte.
24395
24396 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24397
24398         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24399         version 1.4.4 by default instead of requiring the libgcrypt
24400         version used during build.  This makes it possible to use the
24401         application with older but still binary compatible libgcrypt
24402         versions.
24403
24404 2010-04-13  Eric Blake  <eblake@redhat.com>
24405
24406         getopt-gnu: match recent glibc fixes and posix ruling
24407         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24408         '+' handling, when requesting extensions.
24409         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24410         'W;' handling.
24411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24412         * doc/posix-functions/getopt.texi (getopt): Document this.
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: merge bug fixes from glibc
24418         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24419         diagnostics.  Honor '+:' correctly.  Reject ';'.
24420
24421         getopt-posix: detect MacOS bug
24422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24423         optind when missing a required argument.
24424         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24425         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24426         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24427         Likewise.
24428
24429         getopt-posix: avoid spurious failure on Solaris
24430         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24431         an indicator that setting optind=1 is sufficient for reset.
24432
24433         getopt-posix: avoid spurious failure on FreeBSD
24434         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24435         in POSIX mode, since the m4 test uses it.
24436
24437         gnulib-tool: silence warning on BSD sh
24438         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24439
24440 2010-04-13  Jim Meyering  <meyering@redhat.com>
24441
24442         doc: users.txt: GNU patch now uses gnulib
24443         * users.txt: Add patch.
24444
24445 2010-04-12  Jim Meyering  <meyering@redhat.com>
24446
24447         maint.mk: generate more concise timing data for syntax-check rules
24448         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24449         " done" from each line that reports a syntax-check test duration.
24450
24451 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24452
24453         git-version-gen: use "git update-index..." rather than "git status"
24454         * build-aux/git-version-gen: Use git update-index --refresh, not
24455         "git status".  With some versions of git, "git status" would fail
24456         to update the index and result in an unwarranted "-dirty" suffix.
24457
24458 2010-04-11  Jim Meyering  <meyering@redhat.com>
24459
24460         openat: correct formatting (no semantic change)
24461         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24462         Suggested by Bruno Haible.
24463
24464 2010-04-11  Bruno Haible  <bruno@clisp.org>
24465
24466         Stricter declaration checking in testdirs.
24467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24468         If for_tests is true, augment AM_CPPFLAGS to define
24469         GNULIB_STRICT_CHECKING.
24470         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24471         GNULIB_STRICT_CHECKING is defined, verify that the function is
24472         declared.
24473
24474 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24475             Bruno Haible  <bruno@clisp.org>
24476
24477         libunistring: Improve configure output.
24478         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24479         Don't say "consider installing GNU libunistring" when checking again
24480         with libiconv.
24481
24482 2010-04-11  Bruno Haible  <bruno@clisp.org>
24483
24484         libunistring: Correct value of $LTLIBUNISTRING.
24485         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24486         correct the value of $LTLIBUNISTRING.
24487
24488 2010-04-11  Bruno Haible  <bruno@clisp.org>
24489
24490         havelib: Add static libraries to LIBS in the right order.
24491         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24492         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24493
24494 2010-04-11  Bruno Haible  <bruno@clisp.org>
24495
24496         libunistring: Detect libunistring also when it depends on libiconv.
24497         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24498         the second AC_LIB_HAVE_LINKFLAGS invocation.
24499
24500 2010-04-11  James Youngman  <jay@gnu.org>
24501
24502         close-stream: declare local scalars to be "const"
24503         * lib/close-stream.c (close_stream): Make boolean variables const
24504         to document the fact that we set but do not change them.
24505
24506 2010-04-11  Bruno Haible  <bruno@clisp.org>
24507
24508         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24509
24510 2010-04-11  Jim Meyering  <meyering@redhat.com>
24511
24512         maint.mk: don't include dist-check.mk
24513         * top/maint.mk: Remove bogus include directive.
24514
24515         maint.mk: improve empty-line-at-EOF check
24516         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24517         solution, rather than tail+Perl-based one.  The latter would read
24518         a few kilobytes from the end of each file, and did not handle empty
24519         files properly.
24520
24521         maint.mk: print the elapsed time for each syntax-check rule
24522         * top/maint.mk (sc_m_rules_): Save start time in a file.
24523         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24524         (local-check): Interpose the .z rules
24525
24526 2010-04-11  Jim Meyering  <meyering@redhat.com>
24527
24528         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24529         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24530         empty file with one that ends in an empty line.
24531
24532 2010-04-10  Bruno Haible  <bruno@clisp.org>
24533
24534         mkdir: Make it work on mingw64.
24535         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24536         * lib/mkdir.c: Update comment.
24537         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
24538
24539 2010-04-10  Bruno Haible  <bruno@clisp.org>
24540
24541         Don't override improved macro from newer autoconf.
24542         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24543         autoconf >= 2.62.
24544         Reported by Joel E. Denny <jdenny@clemson.edu>.
24545
24546 2010-04-10  Jim Meyering  <meyering@redhat.com>
24547
24548         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24549         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24550
24551         maint.mk: correct a diagnostic
24552         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24553         in diagnostic; now use $prohibit.
24554
24555 2010-04-10  Bruno Haible  <address@hidden>
24556
24557         fchownat: Fix a C++ test error on Solaris 8.
24558         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24559         the function does not exist.
24560
24561 2010-04-10  Bruno Haible  <bruno@clisp.org>
24562
24563         vasnprintf: Add more tests.
24564         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24565         (test_function): Test converting an invalid wide string.
24566
24567         vasnprintf: Correct handling of unconvertible wide string arguments.
24568         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24569         VASNPRINTF.
24570         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24571         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24572         smaller than the expected maximum need for the directive. Set errno to
24573         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24574         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24575         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24576         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24577         * modules/vasnprintf (Files): Add m4/printf.m4.
24578         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24579
24580 2010-04-10  Bruno Haible  <bruno@clisp.org>
24581
24582         vasnprintf: Fix crash in %ls directive.
24583         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24584         string is passed as argument to %ls, with no precision and no width.
24585         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24586
24587 2010-04-10  Bruno Haible  <bruno@clisp.org>
24588
24589         vasnprintf: Fix multiple test failures on mingw.
24590         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24591         _snprintf, or snwprintf, not _snwprintf.
24592
24593 2010-04-10  Bruno Haible  <bruno@clisp.org>
24594
24595         write: Fix a C++ test error on mingw.
24596         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24597
24598 2010-04-10  Bruno Haible  <bruno@clisp.org>
24599
24600         vasnprintf test: Reduce code duplication.
24601         * tests/test-vasnprintf.c (test_function): New function, extracted from
24602         test_vasnprintf.
24603         (test_vasnprintf, test_asnprintf): Invoke it.
24604
24605 2010-04-10  Bruno Haible  <bruno@clisp.org>
24606
24607         strnlen: Fix warning in C++ mode on MacOS X.
24608         * lib/string.in.h (strnlen): Use the modern idiom.
24609         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24610         defining strnlen as a macro already in <config.h>.
24611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24612         REPLACE_STRNLEN.
24613         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24614         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24615
24616 2010-04-08  James Youngman  <jay@gnu.org>
24617
24618         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24619         the example.
24620
24621 2010-04-09  Jim Meyering  <meyering@redhat.com>
24622
24623         maint.mk: print better diagnostic when there is no $(_hv_file)
24624         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24625         announce that when $(_hv_file) (aka help-version) does not exist.
24626
24627         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24628         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24629         not try to interpret its random input bytes.  Jarno Rajahalme reported
24630         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24631         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24632         (mktempd_): Likewise, just in case.
24633
24634         ftruncate: add two years to projected module removal date: 2012
24635         * m4/ftruncate.m4: Adjust comments.
24636
24637         ftruncate: mark module as obsolete; even MinGW provides it, now
24638         * modules/ftruncate (Status): Obsolete.
24639         (Notice): Say that.
24640         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24641         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24642
24643 2010-04-08  Bruno Haible  <bruno@clisp.org>
24644
24645         Fix side effects from tests-related modules.
24646         * modules/dprintf-posix (Comment): New section.
24647         * modules/fprintf-posix (Comment): Likewise.
24648         * modules/obstack-printf-posix (Comment): Likewise.
24649         * modules/printf-posix (Comment): Likewise.
24650         * modules/snprintf-posix (Comment): Likewise.
24651         * modules/sprintf-posix (Comment): Likewise.
24652         * modules/vasnprintf-posix (Comment): Likewise.
24653         * modules/vasprintf-posix (Comment): Likewise.
24654         * modules/vdprintf-posix (Comment): Likewise.
24655         * modules/vfprintf-posix (Comment): Likewise.
24656         * modules/vprintf-posix (Comment): Likewise.
24657         * modules/vsnprintf-posix (Comment): Likewise.
24658         * modules/vsprintf-posix (Comment): Likewise.
24659         * modules/xprintf-posix (Comment): Likewise.
24660         * modules/xvasprintf-posix (Comment): Likewise.
24661         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24662         * modules/floorf-tests (Depends-on): Likewise.
24663         * modules/round-tests (Depends-on): Likewise.
24664         * modules/roundf-tests (Depends-on): Likewise.
24665         * modules/trunc-tests (Depends-on): Likewise.
24666         * modules/truncf-tests (Depends-on): Likewise.
24667         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24668         'fprintf-posix' module is not present.
24669         * tests/test-floorf2.c (check): Likewise.
24670         * tests/test-trunc2.c (check): Likewise.
24671         * tests/test-truncf2.c (check): Likewise.
24672         * tests/test-round2.c (equal): Likewise.
24673         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24674
24675 2010-04-07  Karl Berry  <karl@gnu.org>
24676
24677         * config/srclist.txt,
24678         * config/srclistvars.sh,
24679         * config/srclist-update: doc fixes.
24680
24681 2010-04-07  Jim Meyering  <meyering@redhat.com>
24682
24683         maint.mk: add a PATH crosschecking syntax-check rule
24684         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24685         Useful if you use a test like the one in help-version (coreutils,
24686         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24687         printed by prog --version.
24688
24689 2010-04-06  Bruno Haible  <bruno@clisp.org>
24690
24691         Fix link error on mingw.
24692         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24693         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24694
24695 2010-04-06  Bruno Haible  <bruno@clisp.org>
24696
24697         Assume rmdir exists.
24698         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24699
24700 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24701
24702         doc: update users.txt
24703         * users.txt: Add gcal.
24704
24705 2010-04-06  Jim Meyering  <meyering@redhat.com>
24706
24707         init.sh: simply unset TMPDIR rather than risking env -i
24708         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24709         although it probably works fine on all Unix-based systems, some
24710         systems (Cygwin?) cannot tolerate a totally cleared environment.
24711         Suggestion from Eric Blake.
24712
24713 2010-04-06  Jim Meyering  <meyering@redhat.com>
24714
24715         init.sh: portability fix: use env's POSIX-specified -i option not -u
24716         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24717         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24718
24719 2010-04-05  Bruno Haible  <bruno@clisp.org>
24720
24721         btowc: Work around Cygwin 1.7.2 bug.
24722         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24723         does not map NUL to 0.
24724         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24725
24726 2010-04-05  Bruno Haible  <bruno@clisp.org>
24727
24728         Make the multithread modules work on Cygwin 1.7.2.
24729         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24730         imported symbols can be declared weak, so that it returns "no" on
24731         Cygwin 1.7.2.
24732
24733 2010-04-05  Bruno Haible  <bruno@clisp.org>
24734
24735         Use the module 'strncat'.
24736         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24737
24738         Tests for module 'strncat'.
24739         * modules/strncat-tests: New file.
24740         * tests/test-strncat.c: New file.
24741
24742         New module 'strncat'.
24743         * lib/string.in.h (strncat): New declaration.
24744         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24745         * m4/strncat.m4: New file, based on m4/memchr.m4.
24746         * modules/strncat: New file.
24747         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24748         is declared.
24749         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24750         REPLACE_STRNCAT.
24751         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24752         REPLACE_STRNCAT.
24753         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24754         module.
24755         * tests/test-string-c++.cc: Check signature of strncat.
24756
24757 2010-04-05  Jim Meyering  <meyering@redhat.com>
24758
24759         xstrtoumax-tests: convert to use init.sh
24760         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24761         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24762         Use Exit, not exit.
24763         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24764
24765         xstrtoimax-tests: convert to use init.sh
24766         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24767         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24768         Use Exit, not exit.
24769         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24770
24771 2010-04-05  Bruno Haible  <bruno@clisp.org>
24772
24773         sys_socket: Avoid #define replacements in C++ mode.
24774         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24775         warning to the function if possible, rather than #defining the symbol
24776         to a dysfunctional alias.
24777
24778 2010-04-05  Bruno Haible  <bruno@clisp.org>
24779
24780         fseeko: Fix C++ test error on mingw.
24781         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24782         gl_FUNC_FSEEKO.
24783         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24784         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24785         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24786         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24787
24788 2010-04-05  Bruno Haible  <bruno@clisp.org>
24789
24790         duplocale: Improve test output.
24791         * tests/test-duplocale.c (main): Print reason for skipped test.
24792
24793 2010-04-05  Bruno Haible  <bruno@clisp.org>
24794
24795         Assume rmdir exists.
24796         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24797         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24798
24799 2010-04-05  Bruno Haible  <bruno@clisp.org>
24800
24801         Fix link error on Solaris 8 with cc.
24802         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24803
24804 2010-04-05  Bruno Haible  <bruno@clisp.org>
24805
24806         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24807         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24808
24809 2010-04-05  Bruno Haible  <bruno@clisp.org>
24810
24811         vasprintf: Update documentation.
24812         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24813
24814 2010-04-05  Bruno Haible  <bruno@clisp.org>
24815
24816         ptsname: Improve test.
24817         * tests/test-ptsname.c (main): Also try the various master names of BSD
24818         systems.
24819
24820 2010-04-05  Bruno Haible  <bruno@clisp.org>
24821
24822         memchr: Avoid a possible C++ test error.
24823         * lib/string.in.h (memchr): Provide declaration if function is missing.
24824         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24825         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24827         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24828
24829 2010-04-05  Bruno Haible  <bruno@clisp.org>
24830
24831         strtok_r: Improve idiom.
24832         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24833         AC_LIBOBJ is used.
24834
24835 2010-04-05  Bruno Haible  <bruno@clisp.org>
24836
24837         strdup: Improve idiom.
24838         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24839         AC_LIBOBJ is used.
24840         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24841         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24842         when AC_LIBOBJ is used.
24843
24844 2010-04-05  Bruno Haible  <bruno@clisp.org>
24845
24846         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24847         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24848         don't set REPLACE_MBSINIT to 1.
24849         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24850         don't set REPLACE_MBRTOWC to 1.
24851         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24852         exist, don't set REPLACE_MBSRTOWCS to 1.
24853         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24854         exist, don't set REPLACE_MBSNRTOWCS to 1.
24855         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24856         don't set REPLACE_WCRTOMB to 1.
24857         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24858         exist, don't set REPLACE_WCSRTOMBS to 1.
24859         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24860         exist, don't set REPLACE_WCSNRTOMBS to 1.
24861
24862 2010-04-05  Bruno Haible  <bruno@clisp.org>
24863
24864         ldexpl: Improve idiom.
24865         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24866         make sure to set HAVE_DECL_LDEXPL to 0.
24867
24868 2010-04-05  Jim Meyering  <meyering@redhat.com>
24869
24870         xstrtol-tests: convert to use init.sh
24871         * modules/xstrtol-tests (Files): Add tests/init.sh.
24872         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24873         Use Exit, not exit.
24874         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24875
24876         atexit-tests: convert to use init.sh
24877         * modules/atexit-tests (Files): Add tests/init.sh.
24878         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24879         Use Exit, not exit.
24880         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24881
24882         init.sh: fix typo
24883         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24884
24885         init.sh: make it easier for a test script to write to the tty, ...
24886         when using automake's parallel-tests mode.
24887         * tests/init.sh (stderr_fileno_): Define overridable variable.
24888         (warn_): New function, to use it.
24889         (fail_, skip_, framework_failure_): Use warn_.
24890
24891 2010-04-04  Bruno Haible  <bruno@clisp.org>
24892
24893         btowc: Avoid warning.
24894         * lib/btowc.c: Include <stdlib.h>.
24895         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24896
24897 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24898             Bruno Haible  <bruno@clisp.org>
24899
24900         wchar: Port to NetBSD 1.5.
24901         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24902         * lib/wctype.in.h (WEOF): Likewise.
24903
24904 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24905             Bruno Haible  <bruno@clisp.org>
24906
24907         Port extended stdio to NetBSD 1.5.
24908         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24909         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24910         older.
24911
24912 2010-04-04  Bruno Haible  <bruno@clisp.org>
24913
24914         string: Remove unused substitution.
24915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24916         HAVE_DECL_STRERROR.
24917         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24918
24919 2010-04-04  Bruno Haible  <bruno@clisp.org>
24920
24921         strtod: Avoid a possible C++ test error.
24922         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24923         set REPLACE_STRTOD.
24924
24925 2010-04-04  Bruno Haible  <bruno@clisp.org>
24926
24927         strerror: Update documentation.
24928         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
24929
24930 2010-04-04  Bruno Haible  <bruno@clisp.org>
24931
24932         stdio: Fix some C++ test errors on Solaris 8 with GCC.
24933         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
24934         _GL_CXXALIAS_SYS_CAST.
24935
24936 2010-04-04  Bruno Haible  <bruno@clisp.org>
24937
24938         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24939         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
24940         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
24941         REPLACE_FREXPL to 1.
24942         * doc/posix-functions/frexpl.texi: Update documentation.
24943
24944 2010-04-04  Bruno Haible  <bruno@clisp.org>
24945
24946         math: Fix some C++ test errors on Solaris 8 and Cygwin.
24947         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
24948
24949 2010-04-04  Bruno Haible  <bruno@clisp.org>
24950
24951         Implement nanosleep for native Windows.
24952         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
24953
24954 2010-04-04  Bruno Haible  <bruno@clisp.org>
24955
24956         math: Fix some C++ test errors on Solaris 8.
24957         * lib/math.in.h (truncf, trunc): Use simpler idiom.
24958
24959 2010-04-04  Bruno Haible  <bruno@clisp.org>
24960
24961         math: Fix some C++ test errors on Cygwin.
24962         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
24963         truncl): Provide declaration if the system does not have it.
24964         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
24965         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
24966         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
24967         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
24968         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
24969         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
24970         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
24971         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
24972         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
24973         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
24974         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
24975         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
24976         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
24977         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
24978         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
24979         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
24980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
24981         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24982         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24983         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
24984         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
24985         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
24986
24987 2010-04-04  Bruno Haible  <bruno@clisp.org>
24988
24989         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
24990         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
24991         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
24992         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24993         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
24994         * m4/isinf.m4 (gl_ISINF): Likewise.
24995         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
24996
24997 2010-04-04  Bruno Haible  <bruno@clisp.org>
24998
24999         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25000         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25001
25002 2010-04-04  Bruno Haible  <bruno@clisp.org>
25003
25004         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25005         * modules/tmpfile (configure.ac): Update.
25006
25007         tmpfile: Fix C++ test error on mingw.
25008         * lib/stdio.in.h (tmpfile): New declaration.
25009         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25010         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25011         * modules/tmpfile (Depends-on): Add stdio.
25012         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25013         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25014         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25015         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25016         REPLACE_TMPFILE.
25017         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25018
25019 2010-04-04  Bruno Haible  <bruno@clisp.org>
25020
25021         ioctl: Fix C++ test error on mingw.
25022         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25023         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25024         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25025
25026 2010-04-03  Bruno Haible  <bruno@clisp.org>
25027
25028         wcwidth: Fix C++ test error on mingw.
25029         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25031         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25032
25033 2010-04-03  Bruno Haible  <bruno@clisp.org>
25034
25035         nanosleep: Fix C++ test error on mingw.
25036         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25037         * lib/time.in.h (nanosleep): Use modern idiom.
25038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25039         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25040         REPLACE_NANOSLEEP to 1.
25041         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25042         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25043
25044 2010-04-03  Bruno Haible  <bruno@clisp.org>
25045
25046         strptime: Fix C++ test error on mingw.
25047         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25048         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25049         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25050         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25051         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25052         not REPLACE_STRPTIME.
25053         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25054         REPLACE_STRPTIME.
25055
25056 2010-04-03  Bruno Haible  <bruno@clisp.org>
25057
25058         timegm: Fix C++ test error on mingw.
25059         * lib/time.in.h (timegm): Use modern idiom.
25060         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25061         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25062         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25063         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25064
25065 2010-04-03  Bruno Haible  <bruno@clisp.org>
25066
25067         timegm: Assume declaration if function exists.
25068         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25069         if it exists. Don't clobber ac_cv_func_timegm.
25070
25071 2010-04-03  Bruno Haible  <bruno@clisp.org>
25072
25073         time_r: Fix C++ test error on mingw.
25074         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25075         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25076         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25077         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25078         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25079
25080 2010-04-03  Bruno Haible  <bruno@clisp.org>
25081
25082         time_r: Minor updates.
25083         * modules/time_r (Description): Mention the provided functions.
25084         * lib/time_r.c: Don't include <string.h>.
25085         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25086         * doc/posix-functions/localtime_r.texi: Likewise.
25087
25088 2010-04-03  Bruno Haible  <bruno@clisp.org>
25089
25090         time: Fix regression introduced on 2010-03-08.
25091         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25092         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25093
25094 2010-04-03  Jim Meyering  <meyering@redhat.com>
25095
25096         maint.mk: don't silently disable project-specific syntax-check rules
25097         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25098         that they need to convert their project-specific syntax-check rules
25099         to use the new _sc_search_regexp.
25100
25101 2010-04-03  Bruno Haible  <bruno@clisp.org>
25102
25103         fchdir: Fix regression introduced on 2010-03-08.
25104         * lib/unistd.in.h (fchdir): Fix declaration.
25105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25107         REPLACE_FCHDIR.
25108         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25109         REPLACE_FCHDIR.
25110
25111 2010-04-03  Bruno Haible  <bruno@clisp.org>
25112
25113         getpagesize: Fix C++ test error on mingw.
25114         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25115         system does not declare the function.
25116         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25117         declared.
25118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25119         HAVE_DECL_GETPAGESIZE.
25120         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25121
25122 2010-04-03  Bruno Haible  <bruno@clisp.org>
25123
25124         stdio: Make C++ tests work on mingw.
25125         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25126         does not declare the function.
25127
25128 2010-04-03  Bruno Haible  <bruno@clisp.org>
25129
25130         ftello: Fix C++ test error on mingw.
25131         * lib/stdio.in.h (ftello): Use modern idiom.
25132         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25133         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25134         is missing and that it needs to be replaced.
25135         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25137         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25138
25139 2010-04-03  Bruno Haible  <bruno@clisp.org>
25140
25141         fseeko: Fix C++ test error on mingw.
25142         * lib/stdio.in.h (fseeko): Use modern idiom.
25143         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25144         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25145         is missing and that it needs to be replaced.
25146         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25148         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25149
25150 2010-04-03  Bruno Haible  <bruno@clisp.org>
25151
25152         mkstemp: Fix C++ test error on mingw.
25153         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25154         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25155         function is missing and that it needs to be replaced.
25156         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25157         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25158
25159 2010-04-03  Bruno Haible  <bruno@clisp.org>
25160
25161         stpncpy: Fix C++ test error on mingw.
25162         * lib/string.in.h (stpncpy): Use modern idiom.
25163         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25164         function is missing and that it needs to be replaced.
25165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25166         REPLACE_STPNCPY.
25167         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25168
25169 2010-04-03  Bruno Haible  <bruno@clisp.org>
25170
25171         sys_stat: Fix C++ test error on mingw.
25172         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25173         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25174
25175 2010-04-03  Bruno Haible  <bruno@clisp.org>
25176
25177         pty: Update doc.
25178         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25179
25180 2010-04-03  Bruno Haible  <bruno@clisp.org>
25181
25182         unistd: Fix C++ test error on mingw.
25183         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25184
25185 2010-04-03  Bruno Haible  <bruno@clisp.org>
25186
25187         Update doc regarding mingw.
25188         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25189         * doc/glibc-functions/login_tty.texi: Likewise.
25190         * doc/glibc-functions/forkpty.texi: Likewise.
25191
25192 2010-04-03  Bruno Haible  <bruno@clisp.org>
25193
25194         stdlib: Avoid compilation failure of c-strtold on mingw.
25195         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25196
25197 2010-04-03  Bruno Haible  <bruno@clisp.org>
25198
25199         locale: Make C++ tests work on Cygwin and mingw.
25200         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25201         cannot provide the function.
25202         Reported by Simon Josefsson.
25203
25204 2010-04-03  Bruno Haible  <bruno@clisp.org>
25205
25206         localename: Port to MacOS X 10.6.
25207         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25208         memory layout of the locales in MacOS X 10.6 as well.
25209         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25210
25211 2010-04-02  Bruno Haible  <bruno@clisp.org>
25212
25213         gnulib-tool: Ensure that long-running tests are executed last.
25214         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25215         running tests after the one for the other tests.
25216
25217 2010-04-02  Bruno Haible  <bruno@clisp.org>
25218
25219         gnulib-tool: Ensure the tests in the main directory are executed first.
25220         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25221         start with the current directory.
25222
25223 2010-04-02  Bruno Haible  <bruno@clisp.org>
25224
25225         Tests for module 'havelib', moved here from GNU gettext.
25226         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25227         modifications.
25228         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25229         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25230         with modifications.
25231         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25232         modifications.
25233         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25234         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25235         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25236         with modifications.
25237         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25238         with modifications.
25239         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25240         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25241         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25242         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25243         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25244         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25245         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25246         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25247         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25248         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25249         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25250         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25251         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25252         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25253         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25254         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25255         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25256         with modifications.
25257         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25258         with modifications.
25259         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25260         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25261         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25262         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25263         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25264         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25265         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25266         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25267         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25268         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25269         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25270         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25271         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25272         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25273         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25274         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25275         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25276         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25277         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25278         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25279         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25280         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25281         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25282         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25283         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25284         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25285         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25286         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25287         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25288         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25289         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25290         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25291         * tests/havelib/rpathx/rpathx.c: New file, from
25292         gettext/autoconf-lib-link.
25293         * tests/havelib/rpathx/Makefile.am: New file, from
25294         gettext/autoconf-lib-link.
25295         * tests/havelib/rpathx/configure.ac: New file, from
25296         gettext/autoconf-lib-link with modifications.
25297         * tests/havelib/rpathy/rpathy.c: New file, from
25298         gettext/autoconf-lib-link.
25299         * tests/havelib/rpathy/Makefile.am: New file, from
25300         gettext/autoconf-lib-link.
25301         * tests/havelib/rpathy/configure.ac: New file, from
25302         gettext/autoconf-lib-link with modifications.
25303         * tests/havelib/rpathz/rpathz.c: New file, from
25304         gettext/autoconf-lib-link.
25305         * tests/havelib/rpathz/Makefile.am: New file, from
25306         gettext/autoconf-lib-link.
25307         * tests/havelib/rpathz/configure.ac: New file, from
25308         gettext/autoconf-lib-link with modifications.
25309         * tests/havelib/rpathlx/usex.c: New file, from
25310         gettext/autoconf-lib-link.
25311         * tests/havelib/rpathlx/Makefile.am: New file, from
25312         gettext/autoconf-lib-link.
25313         * tests/havelib/rpathlx/configure.ac: New file, from
25314         gettext/autoconf-lib-link with modifications.
25315         * tests/havelib/rpathly/usey.c: New file, from
25316         gettext/autoconf-lib-link.
25317         * tests/havelib/rpathly/Makefile.am: New file, from
25318         gettext/autoconf-lib-link.
25319         * tests/havelib/rpathly/configure.ac: New file, from
25320         gettext/autoconf-lib-link with modifications.
25321         * tests/havelib/rpathlz/usez.c: New file, from
25322         gettext/autoconf-lib-link.
25323         * tests/havelib/rpathlz/Makefile.am: New file, from
25324         gettext/autoconf-lib-link.
25325         * tests/havelib/rpathlz/configure.ac: New file, from
25326         gettext/autoconf-lib-link with modifications.
25327         * tests/havelib/rpathlyx/usey.c: New file, from
25328         gettext/autoconf-lib-link.
25329         * tests/havelib/rpathlyx/Makefile.am: New file, from
25330         gettext/autoconf-lib-link.
25331         * tests/havelib/rpathlyx/configure.ac: New file, from
25332         gettext/autoconf-lib-link with modifications.
25333         * tests/havelib/rpathlzyx/usez.c: New file, from
25334         gettext/autoconf-lib-link.
25335         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25336         gettext/autoconf-lib-link.
25337         * tests/havelib/rpathlzyx/configure.ac: New file, from
25338         gettext/autoconf-lib-link with modifications.
25339         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25340         with modifications.
25341
25342 2010-04-02  Bruno Haible  <bruno@clisp.org>
25343
25344         gnulib-tool: Create distributed built sources also for the tests.
25345         * gnulib-tool (func_create_testdir): Also generate distributed built
25346         sources in the tests directory.
25347
25348 2010-04-02  Bruno Haible  <bruno@clisp.org>
25349
25350         gnulib-tool: Obey user's environment variables.
25351         * gnulib-tool (func_create_testdir): When creating built sources,
25352         respect the environment variables for autoconf, automake, etc. given by
25353         the user.
25354
25355 2010-04-02  Bruno Haible  <bruno@clisp.org>
25356
25357         gnulib-tool: Provide the value of --m4-base to modules.
25358         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25359         of gl_m4_base.
25360
25361 2010-04-02  Eric Blake  <eblake@redhat.com>
25362
25363         maint.mk: fix some fallout
25364         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25365         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25366
25367 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25368
25369         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25370         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25371         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25372         (sc_cast_of_x_alloc_return_value): Likewise.
25373         (sc_cast_of_alloca_return_value): Likewise.
25374         (sc_space_tab): Likewise.
25375         (sc_prohibit_atoi_atof): Likewise.
25376         (sc_prohibit_magic_number_exit): Likewise.
25377         (sc_error_exit_success): Likewise.
25378         (sc_file_system): Likewise.
25379         (sc_prohibit_have_config_h): Likewise.
25380         (sc_require_config_h): Likewise.
25381         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25382         (sc_obsolete_symbols): Likewise.
25383         (sc_changelog): Likewise.
25384         (sc_program_name): Likewise.
25385         (sc_the_the): Likewise.
25386         (sc_trailing_blank): Likewise.
25387         (sc_two_space_separator_in_usage): Likewise.
25388         (sc_useless_cpp_parens): Likewise.
25389         (sc_GPL_version): Likewise.
25390         (sc_GFDL_version): Likewise.
25391         (sc_texinfo_acronym): Likewise.
25392         (sc_prohibit_cvs_keyword): Likewise.
25393         (sc_prohibit_stat_st_blocks): Likewise.
25394         (sc_prohibit_S_IS_definition): Likewise.
25395         (sc_redundant_const): Likewise.
25396         (sc_makefile_TAB_only_indentation): Likewise.
25397         (sc_m4_quote_check): Likewise.
25398         (sc_makefile_path_separator_check): Likewise.
25399         (sc_copyright_check): Likewise.
25400         (sc_Wundef_boolean): Likewise.
25401         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25402
25403         maint.mk: match 0 or more whitespace-before-function-call '('
25404         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25405         that have zero or two-and-more spaces between the function name
25406         and the open parenthesis.
25407         (sc_error_message_warn_fatal): Likewise.
25408         (sc_error_message_uppercase): Likewise.
25409         (sc_error_message_period): Likewise.
25410
25411 2010-03-31  Eric Blake  <eblake@redhat.com>
25412
25413         maint.mk: check for [ as well as test
25414         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25415         Based on a libvirt report by Matthias Bolte.
25416
25417         gnumakefile: don't squelch _version output
25418         * top/GNUmakefile (_version): Create one-shot dependency rather
25419         than using $(shell) when version must be regenerated.
25420         (_autoreconf): Run verbosely, by default.
25421
25422         sys_time: avoid compiler warnings
25423         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25424         unconditional, fixing regression from 2010-03-29.
25425         Reported by Simon Josefsson.
25426
25427 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25428
25429         maint.mk: s/_header_without_use/_sc_header_without_use/
25430         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25431         (sc_prohibit_assert_without_use): Use the new name.
25432         (sc_prohibit_close_stream_without_use): Likewise.
25433         (sc_prohibit_getopt_without_use): Likewise.
25434         (sc_prohibit_quotearg_without_use): Likewise.
25435         (sc_prohibit_quote_without_use): Likewise.
25436         (sc_prohibit_long_options_without_use): Likewise.
25437         (sc_prohibit_inttostr_without_use): Likewise.
25438         (sc_prohibit_ignore_value_without_use): Likewise.
25439         (sc_prohibit_error_without_use): Likewise.
25440         (sc_prohibit_xalloc_without_use): Likewise.
25441         (sc_prohibit_hash_without_use): Likewise.
25442         (sc_prohibit_hash_pjw_without_use): Likewise.
25443         (sc_prohibit_safe_read_without_use): Likewise.
25444         (sc_prohibit_argmatch_without_use): Likewise.
25445         (sc_prohibit_canonicalize_without_use): Likewise.
25446         (sc_prohibit_root_dev_ino_without_use): Likewise.
25447         (sc_prohibit_openat_without_use): Likewise.
25448         (sc_prohibit_c_ctype_without_use): Likewise.
25449         (sc_prohibit_signal_without_use): Likewise.
25450         (sc_prohibit_intprops_without_use): Likewise.
25451
25452 2010-03-30  Eric Blake  <eblake@redhat.com>
25453
25454         maint: improve module indicators
25455         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25456         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25457         columns, and avoid extra macro expansion.
25458
25459         fdopendir: work around FreeBSD bug
25460         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25461         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25462         * modules/dirent (Makefile.am): Substitute it.
25463         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25464         declaration.
25465         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25466         fix.
25467         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25468
25469 2010-03-29  Bruno Haible  <bruno@clisp.org>
25470
25471         Emit #pragma system_header after the inclusion guard, not before.
25472         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25473         guard that spans the entire file, not before. This enables an
25474         optimization in GCC's preprocessor.
25475         * lib/ctype.in.h: Likewise.
25476         * lib/dirent.in.h: Likewise.
25477         * lib/errno.in.h: Likewise.
25478         * lib/float.in.h: Likewise.
25479         * lib/getopt.in.h: Likewise.
25480         * lib/iconv.in.h: Likewise.
25481         * lib/langinfo.in.h: Likewise.
25482         * lib/locale.in.h: Likewise.
25483         * lib/math.in.h: Likewise.
25484         * lib/netdb.in.h: Likewise.
25485         * lib/netinet_in.in.h: Likewise.
25486         * lib/pty.in.h: Likewise.
25487         * lib/sched.in.h: Likewise.
25488         * lib/se-selinux.in.h: Likewise.
25489         * lib/search.in.h: Likewise.
25490         * lib/spawn.in.h: Likewise.
25491         * lib/stdarg.in.h: Likewise.
25492         * lib/stdint.in.h: Likewise.
25493         * lib/string.in.h: Likewise.
25494         * lib/strings.in.h: Likewise.
25495         * lib/sys_file.in.h: Likewise.
25496         * lib/sys_ioctl.in.h: Likewise.
25497         * lib/sys_time.in.h: Likewise.
25498         * lib/sys_times.in.h: Likewise.
25499         * lib/sys_utsname.in.h: Likewise.
25500         * lib/sys_wait.in.h: Likewise.
25501         * lib/sysexits.in.h: Likewise.
25502         * lib/wctype.in.h: Likewise.
25503
25504 2010-03-28  James Youngman  <jay@gnu.org>
25505
25506         save-cwd: don't leak a file descriptor when the caller execs.
25507         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25508         saved file descriptor.
25509         * modules/save-cwd (Depends-on): Depend on cloexec.
25510
25511 2010-03-29  Bruno Haible  <bruno@clisp.org>
25512
25513         Remove vestiges of fts-lgpl module.
25514         * lib/fts_.h: Assume GNULIB_FTS is 1.
25515         * lib/fts.c: Likewise.
25516         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25517
25518 2010-03-28  Bruno Haible  <bruno@clisp.org>
25519
25520         Fix definition of tests witness macro.
25521         * gnulib-tool (func_import): Fix definition of witness macro.
25522
25523 2010-03-28  Bruno Haible  <bruno@clisp.org>
25524
25525         Fix ioctl's protoype on glibc systems.
25526         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25527         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25528         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25529         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25530         signature. If not, arrange to replace the ioctl function.
25531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25532         REPLACE_IOCTL.
25533         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25534         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25535         Reported by Ludovic Courtès <ludo@gnu.org>.
25536
25537 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25538
25539         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25540         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25541         made it so grep -r --include=GLOB* ... did not work.
25542
25543 2010-03-26  Jim Meyering  <meyering@redhat.com>
25544             Eric Blake  <eblake@redhat.com>
25545
25546         maint.mk: prohibit use of test's -o and -a operators
25547         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25548
25549 2010-03-28  Bruno Haible  <bruno@clisp.org>
25550
25551         Remove unused GNULIB_XYZ macro definitions.
25552         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25553         invocation.
25554
25555 2010-03-28  Bruno Haible  <bruno@clisp.org>
25556
25557         Mark privileged tests modules.
25558         * modules/idpriv-drop-tests (Status): New section.
25559         * modules/idpriv-droptemp-tests (Status): New section.
25560
25561 2010-03-28  Bruno Haible  <bruno@clisp.org>
25562
25563         Split C++ tests into separate tests modules.
25564         * modules/dirent-c++-tests: New file, extracted from
25565         modules/dirent-tests.
25566         * modules/dirent-tests: Depend on it.
25567         * modules/fcntl-h-c++-tests: New file, extracted from
25568         modules/fcntl-h-tests.
25569         * modules/fcntl-h-tests: Depend on it.
25570         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25571         * modules/glob-tests: Depend on it.
25572         * modules/iconv-h-c++-tests: New file, extracted from
25573         modules/iconv-h-tests.
25574         * modules/iconv-h-tests: Depend on it.
25575         * modules/langinfo-c++-tests: New file, extracted from
25576         modules/langinfo-tests.
25577         * modules/langinfo-tests: Depend on it.
25578         * modules/locale-c++-tests: New file, extracted from
25579         modules/locale-tests.
25580         * modules/locale-tests: Depend on it.
25581         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25582         * modules/math-tests: Depend on it.
25583         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25584         * modules/pty-tests: Depend on it.
25585         * modules/search-c++-tests: New file, extracted from
25586         modules/search-tests.
25587         * modules/search-tests: Depend on it.
25588         * modules/signal-c++-tests: New file, extracted from
25589         modules/signal-tests.
25590         * modules/signal-tests: Depend on it.
25591         * modules/spawn-c++-tests: New file, extracted from
25592         modules/spawn-tests.
25593         * modules/spawn-tests: Depend on it.
25594         * modules/stdio-c++-tests: New file, extracted from
25595         modules/stdio-tests.
25596         * modules/stdio-tests: Depend on it.
25597         * modules/stdlib-c++-tests: New file, extracted from
25598         modules/stdlib-tests.
25599         * modules/stdlib-tests: Depend on it.
25600         * modules/string-c++-tests: New file, extracted from
25601         modules/string-tests.
25602         * modules/string-tests: Depend on it.
25603         * modules/sys_ioctl-c++-tests: New file, extracted from
25604         modules/sys_ioctl-tests.
25605         * modules/sys_ioctl-tests: Depend on it.
25606         * modules/sys_select-c++-tests: New file, extracted from
25607         modules/sys_select-tests.
25608         * modules/sys_select-tests: Depend on it.
25609         * modules/sys_socket-c++-tests: New file, extracted from
25610         modules/sys_socket-tests.
25611         * modules/sys_socket-tests: Depend on it.
25612         * modules/sys_stat-c++-tests: New file, extracted from
25613         modules/sys_stat-tests.
25614         * modules/sys_stat-tests: Depend on it.
25615         * modules/sys_time-c++-tests: New file, extracted from
25616         modules/sys_time-tests.
25617         * modules/sys_time-tests: Depend on it.
25618         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25619         * modules/time-tests: Depend on it.
25620         * modules/unistd-c++-tests: New file, extracted from
25621         modules/unistd-tests.
25622         * modules/unistd-tests: Depend on it.
25623         * modules/wchar-c++-tests: New file, extracted from
25624         modules/wchar-tests.
25625         * modules/wchar-tests: Depend on it.
25626         * modules/wctype-c++-tests: New file, extracted from
25627         modules/wctype-tests.
25628         * modules/wctype-tests: Depend on it.
25629         Reported by Simon Josefsson.
25630
25631 2010-03-28  Bruno Haible  <bruno@clisp.org>
25632
25633         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25634         * gnulib-tool (func_exists_module): New function, extracted from
25635         func_verify_module.
25636         (func_verify_module): Use it.
25637         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25638         'foo' only if 'foo' exists.
25639         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25640         module.
25641
25642 2010-03-28  Bruno Haible  <bruno@clisp.org>
25643
25644         gnulib-tool: Add support for special categories of tests.
25645         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25646         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25647         (func_usage): Document them.
25648         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25649         inc_unportable_tests, inc_all_tests): New variables.
25650         (func_acceptable): Consider these variables.
25651         (func_modules_transitive_closure): Make it work when the 'Status' field
25652         consists of multiple words.
25653         (func_import): Store and restore the values of inc_cxx_tests,
25654         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25655         inc_all_tests in gnulib-comp.m4.
25656         (func_create_testdir): Set inc_all_tests to true.
25657         * doc/gnulib.texi (Extra tests modules): New section.
25658         Suggested by Jim Meyering.
25659
25660 2010-03-28  Bruno Haible  <bruno@clisp.org>
25661
25662         ansi-c++-opt: Allow turning off the C++ build by default.
25663         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25664         gl_CXX_CHOICE_DEFAULT_NO is defined.
25665         Requested by Eric Blake.
25666
25667 2010-03-28  Bruno Haible  <bruno@clisp.org>
25668
25669         unistd: Avoid #define replacements in C++ mode.
25670         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25671         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25672         setsockopt, shutdown, select): In C++, attach a warning to the function
25673         if possible, rather than #defining the symbol to a dysfunctional alias.
25674         Reported by John W. Eaton <jwe@gnu.org>.
25675
25676 2010-03-28  Bruno Haible  <bruno@clisp.org>
25677
25678         Fix link errors on mingw.
25679         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25680         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25681         $(LIBSOCKET).
25682         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25683         $(LIBSOCKET).
25684
25685 2010-03-28  Bruno Haible  <bruno@clisp.org>
25686             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25687
25688         lib-ignore: Determine different options for different compilers.
25689         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25690         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25691         Add comments.
25692         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25693         * NEWS: Mention the change.
25694
25695 2010-03-27  Bruno Haible  <bruno@clisp.org>
25696
25697         Remove unused GNULIB_XYZ macro definitions.
25698         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25699         * modules/fseek (configure.ac): Likewise.
25700         * modules/ioctl (configure.ac): Likewise.
25701         * modules/open (configure.ac): Likewise.
25702         * modules/stdlib-safer (configure.ac): Likewise.
25703
25704 2010-03-27  Bruno Haible  <bruno@clisp.org>
25705
25706         Add a remark about certain modules.
25707         * modules/malloc (Comment): New section.
25708         * modules/realloc (Comment): Likewise.
25709         * modules/sigpipe (Comment): Likewise.
25710
25711 2010-03-27  Bruno Haible  <bruno@clisp.org>
25712
25713         Resolve conflict between the two kinds of module indicators.
25714         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25715         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25716         * modules/canonicalize (configure.ac): Invoke
25717         gl_MODULE_INDICATOR_FOR_TESTS.
25718         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25719         GNULIB_XYZ.
25720         * tests/test-dirent-c++.cc: Likewise.
25721         * tests/test-dirent-safer.c: Likewise.
25722         * tests/test-dup2.c: Likewise.
25723         * tests/test-fchdir.c: Likewise.
25724         * tests/test-fcntl-h-c++.cc: Likewise.
25725         * tests/test-getopt.c: Likewise.
25726         * tests/test-getopt.h: Likewise.
25727         * tests/test-langinfo-c++.cc: Likewise.
25728         * tests/test-locale-c++.cc: Likewise.
25729         * tests/test-math-c++.cc: Likewise.
25730         * tests/test-pty-c++.cc: Likewise.
25731         * tests/test-search-c++.cc: Likewise.
25732         * tests/test-signal-c++.cc: Likewise.
25733         * tests/test-spawn-c++.cc: Likewise.
25734         * tests/test-stdio-c++.cc: Likewise.
25735         * tests/test-stdlib-c++.cc: Likewise.
25736         * tests/test-string-c++.cc: Likewise.
25737         * tests/test-sys_ioctl-c++.cc: Likewise.
25738         * tests/test-sys_select-c++.cc: Likewise.
25739         * tests/test-sys_socket-c++.cc: Likewise.
25740         * tests/test-sys_stat-c++.cc: Likewise.
25741         * tests/test-sys_time-c++.cc: Likewise.
25742         * tests/test-time-c++.cc: Likewise.
25743         * tests/test-unistd-c++.cc: Likewise.
25744         * tests/test-wchar-c++.cc: Likewise.
25745         * tests/uninorm/test-u8-nfc.c: Likewise.
25746         * tests/uninorm/test-u8-nfd.c: Likewise.
25747         * tests/uninorm/test-u8-nfkc.c: Likewise.
25748         * tests/uninorm/test-u8-nfkd.c: Likewise.
25749         * tests/uninorm/test-u16-nfc.c: Likewise.
25750         * tests/uninorm/test-u16-nfd.c: Likewise.
25751         * tests/uninorm/test-u16-nfkc.c: Likewise.
25752         * tests/uninorm/test-u16-nfkd.c: Likewise.
25753         * tests/uninorm/test-u32-nfc.c: Likewise.
25754         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25755         * tests/uninorm/test-u32-nfd.c: Likewise.
25756         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25757         * tests/uninorm/test-u32-nfkc.c: Likewise.
25758         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25759         * tests/uninorm/test-u32-nfkd.c: Likewise.
25760         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25761         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25762
25763 2010-03-27  Bruno Haible  <bruno@clisp.org>
25764
25765         Distinguish two kinds of module indicators.
25766         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25767         gl_MODULE_INDICATOR.
25768         (gl_MODULE_INDICATOR): New macro.
25769         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25770         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25771         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25772         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25773         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25774         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25775         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25776         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25777         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25778         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25779         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25780         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25782         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25783         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25784         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25785         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25786         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25787         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25788         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25789         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25790         * modules/cloexec (configure.ac): Likewise.
25791         * modules/getopt-gnu (configure.ac): Likewise.
25792         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25793         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25794         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25795         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25796
25797 2010-03-27  Bruno Haible  <bruno@clisp.org>
25798
25799         New module description field 'Comment'.
25800         * gnulib-tool: New option --extract-comment.
25801         (func_usage): Document it.
25802         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25803         (func_get_comment): New function.
25804         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25805
25806 2010-03-27  Bruno Haible  <bruno@clisp.org>
25807
25808         Addendum to 2010-02-07 commit.
25809         * gnulib-tool (func_usage): Document --extract-applicability option.
25810
25811 2010-03-27  Bruno Haible  <bruno@clisp.org>
25812
25813         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25814         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25815         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25816         rather than link errors.
25817
25818 2010-03-27  Bruno Haible  <bruno@clisp.org>
25819
25820         Avoid side effects from tests-related modules on the compilation of lib.
25821         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25822         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25823         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25824         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25825         macro.
25826         (func_import): Define a witness macro. Assign it a value that depends
25827         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25828         tests-related modules.
25829         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25830         Reported by Jim Meyering.
25831
25832 2010-03-27  Bruno Haible  <bruno@clisp.org>
25833
25834         Factorize common .m4 code.
25835         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25836         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25837         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25838         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25839         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25840         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25841         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25842         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25843         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25844         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25845         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25846         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25847         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25848         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25849         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25850         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25851         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25852         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25853         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25854         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25855         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25856         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25857         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25858         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25859         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25860         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25861         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25862         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25863         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25864         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25865         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25866         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25867
25868 2010-03-27  Bruno Haible  <bruno@clisp.org>
25869
25870         Fix a compilation error on Cygwin with g++ >= 4.3.
25871         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25872         if it is undefined or if we alias it to chmod.
25873         (lstat): Don't warn about the use of this function if it is undefined
25874         or if we alias it to stat.
25875         Reported by Simon Josefsson.
25876
25877 2010-03-27  Bruno Haible  <bruno@clisp.org>
25878
25879         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25880         * modules/getlogin (configure.ac): Update.
25881
25882         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25883         * modules/getlogin_r (configure.ac): Update.
25884
25885         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25887         * modules/inet_ntop (configure.ac): Update.
25888
25889         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25890         * modules/inet_pton (configure.ac): Update.
25891
25892         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25893         * modules/mbslen (configure.ac): Update.
25894
25895         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25896         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25897         * modules/forkpty (configure.ac): Update.
25898         * modules/openpty (configure.ac): Update.
25899
25900 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25901
25902         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25903         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25904
25905 2010-03-25  Eric Blake  <eblake@redhat.com>
25906
25907         maint: use pragma consistently across replacement headers
25908         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25909         * lib/dirent.in.h (system_header): Likewise.
25910         * lib/errno.in.h (system_header): Likewise.
25911         * lib/float.in.h (system_header): Likewise.
25912         * lib/getopt.in.h (system_header): Likewise.
25913         * lib/iconv.in.h (system_header): Likewise.
25914         * lib/inttypes.in.h (system_header): Likewise.
25915         * lib/langinfo.in.h (system_header): Likewise.
25916         * lib/locale.in.h (system_header): Likewise.
25917         * lib/math.in.h (system_header): Likewise.
25918         * lib/netdb.in.h (system_header): Likewise.
25919         * lib/netinet_in.in.h (system_header): Likewise.
25920         * lib/pty.in.h (system_header): Likewise.
25921         * lib/sched.in.h (system_header): Likewise.
25922         * lib/se-selinux.in.h (system_header): Likewise.
25923         * lib/search.in.h (system_header): Likewise.
25924         * lib/spawn.in.h (system_header): Likewise.
25925         * lib/stdarg.in.h (system_header): Likewise.
25926         * lib/stdint.in.h (system_header): Likewise.
25927         * lib/string.in.h (system_header): Likewise.
25928         * lib/strings.in.h (system_header): Likewise.
25929         * lib/sys_file.in.h (system_header): Likewise.
25930         * lib/sys_ioctl.in.h (system_header): Likewise.
25931         * lib/sys_socket.in.h (system_header): Likewise.
25932         * lib/sys_times.in.h (system_header): Likewise.
25933         * lib/sys_utsname.in.h (system_header): Likewise.
25934         * lib/sys_wait.in.h (system_header): Likewise.
25935         * lib/sysexits.in.h (system_header): Likewise.
25936         * lib/unistd.in.h (system_header): Likewise.
25937         * lib/wctype.in.h (system_header): Likewise.
25938
25939         arpa/inet: fix mingw compilation warning
25940         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
25941         Reported by Matthew Bolte.
25942
25943 2010-03-25  Bruno Haible  <bruno@clisp.org>
25944
25945         Avoid collision between gnulib wrapper and libintl wrapper.
25946         * lib/printf.c (printf): Don't define if a printf wrapper is already
25947         defined in intl/printf.c.
25948         Reported by Michel Boaventura <michel@michelboaventura.com>.
25949
25950 2010-03-25  Bruno Haible  <bruno@clisp.org>
25951
25952         Use ANSI C.
25953         * lib/readutmp.h (getutent): Provide ANSI C prototype.
25954
25955 2010-03-25  Bruno Haible  <bruno@clisp.org>
25956
25957         Minor formatting changes.
25958         * lib/acosl.c: Insert space before function argument list.
25959         * lib/argz.c: Likewise.
25960         * lib/asinl.c: Likewise.
25961         * lib/expl.c: Likewise.
25962         * lib/gen-uni-tables.c: Likewise.
25963         * lib/gettext.h: Likewise.
25964         * lib/glthread/lock.h: Likewise.
25965         * lib/tanl.c: Likewise.
25966         * lib/uniname/uniname.c: Likewise.
25967         * tests/test-idpriv-drop.c: Likewise.
25968         * tests/test-idpriv-droptemp.c: Likewise.
25969         * tests/test-lock.c: Likewise.
25970         * tests/test-tls.c: Likewise.
25971         * lib/argp-help.c: Insert space before function-like macro argument
25972         list.
25973         * lib/memcmp.c: Likewise.
25974         * tests/test-base64.c: Likewise.
25975         * lib/localename.c: Insert space before sizeof's argument list.
25976         * lib/safe-alloc.h: Likewise.
25977         * lib/file-set.h: Insert space before macro argument list.
25978         * tests/test-argp.c: Likewise.
25979         * lib/argp-namefrob.h: Insert space before function parameter list.
25980         * lib/getaddrinfo.c: Likewise.
25981         * lib/netdb.in.h: Likewise.
25982         * lib/parse-duration.h: Likewise.
25983         * lib/parse-duration.c: Likewise.
25984         * lib/poll.c: Likewise.
25985         * lib/select.c: Likewise.
25986         * lib/trim.h: Likewise.
25987         * tests/test-usleep.c: Likewise.
25988         * lib/ldexpl.c: Insert space before function parameter list and before
25989         function argument list.
25990         * lib/logl.c: Likewise.
25991         * lib/sqrtl.c: Likewise.
25992         * lib/trim.c: Likewise.
25993         * lib/cosl.c: Use GNU style indentation. Insert space before function
25994         argument list.
25995         * lib/sinl.c: Likewise.
25996         * lib/tsearch.c: Insert space after 'for'.
25997         Reported by Jim Meyering.
25998
25999 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26000
26001         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26002         config header before grepping, as it's not present before
26003         autoreconf/configure are run.  Reported by Simon Josefsson.
26004
26005 2010-03-23  Bruno Haible  <bruno@clisp.org>
26006
26007         pt_chown: Make it work with automake < 1.11.
26008         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26009         Reported by Simon Josefsson.
26010
26011 2010-03-23  Bruno Haible  <bruno@clisp.org>
26012
26013         pt_chown: Don't depend on GPLed modules.
26014         * lib/pt_chown.c: Don't include idpriv.h.
26015         (main): Don't drop privileges.
26016         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26017         Reported by Simon Josefsson.
26018
26019 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26020
26021         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26022         suggestions from karl@freefriends.org (Karl Berry).
26023
26024 2010-03-22  Eric Blake  <eblake@redhat.com>
26025
26026         gethostname: further tweaks
26027         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26028         are overriding gethostname.
26029         Suggested by Bruno Haible.
26030
26031 2010-03-21  Bruno Haible  <bruno@clisp.org>
26032
26033         Fix comments.
26034         * lib/forkpty.c (rpl_forkpty): Fix comment.
26035         * lib/openpty.c (rpl_openpty): Likewise.
26036         Reported by Eric Blake.
26037
26038 2010-03-22  Eric Blake  <eblake@redhat.com>
26039
26040         gethostname: fix build on mingw
26041         * lib/unistd.in.h (includes): Work around fact that mingw
26042         <winsock2.h> re-includes <unistd.h>, by avoiding any
26043         redeclarations if we are being included by <winsock2.h>.
26044         Reported by Matthias Bolte.
26045
26046 2010-03-21  Bruno Haible  <bruno@clisp.org>
26047
26048         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26049         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26050         modifications.
26051         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26052         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26053         provide the replacement.
26054         * modules/forkpty (Depends-on): Add openpty, login_tty.
26055         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26056         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26057         * doc/glibc-functions/forkpty.texi: More supported platforms.
26058         * config/srclist.txt: Add forkpty.c (commented).
26059
26060 2010-03-21  Bruno Haible  <bruno@clisp.org>
26061
26062         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26063         (Makefile.am): Verify that PTY_LIB is defined.
26064
26065         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26066
26067 2010-03-21  Bruno Haible  <bruno@clisp.org>
26068
26069         Tests for module 'login_tty'.
26070         * modules/login_tty-tests: New file.
26071         * tests/test-login_tty.c: New file.
26072
26073         New module 'login_tty'.
26074         * lib/login_tty.c: New file.
26075         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26076         * modules/login_tty: New file.
26077         * doc/glibc-functions/login_tty.texi: Mention the new module.
26078
26079 2010-03-21  Bruno Haible  <bruno@clisp.org>
26080
26081         login_tty: Documentation.
26082         * doc/glibc-functions/login_tty.texi: New file.
26083         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26084
26085 2010-03-21  Bruno Haible  <bruno@clisp.org>
26086
26087         pty: Consistent macro naming.
26088         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26089         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26090         * modules/pty (configure.ac): Update.
26091
26092 2010-03-21  Bruno Haible  <bruno@clisp.org>
26093
26094         Tests for openpty: Make stricter.
26095         * tests/test-openpty.c (main): Add test of canonical processing and
26096         erase.
26097         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26098
26099         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26100         * lib/openpty.c (openpty): New replacement function.
26101         * lib/pty.in.h: Include <termios.h>.
26102         (openpty): Update declaration. Add comments.
26103         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26104         is not declared, arrange to provide the replacement. Check for _getpty
26105         and posix_openpt.
26106         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26107         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26108         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26109         * modules/pty-tests (test_pty_c___LDADD): New variable.
26110         * doc/glibc-functions/openpty.texi: More supported platforms.
26111
26112 2010-03-21  Bruno Haible  <bruno@clisp.org>
26113
26114         setenv: Tweaks.
26115         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26116         the test program.
26117         * doc/posix-functions/setenv.texi: Update platforms list.
26118
26119 2010-03-21  Bruno Haible  <bruno@clisp.org>
26120
26121         New module 'unlockpt'.
26122         * lib/unlockpt.c: New file, from glibc with modifications.
26123         * m4/unlockpt.m4: New file.
26124         * modules/unlockpt: New file.
26125         * lib/stdlib.in.h (unlockpt): New declaration.
26126         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26127         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26128         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26129         HAVE_UNLOCKPT.
26130         * doc/posix-functions/unlockpt.texi: Mention the new module.
26131         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26132         * config/srclist.txt: Add unlockpt.c (commented).
26133
26134 2010-03-21  Jim Meyering  <meyering@redhat.com>
26135
26136         maint.mk: prohibit inclusion of "intprops.h" without use
26137         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26138
26139 2010-03-21  Bruno Haible  <bruno@clisp.org>
26140
26141         New module 'grantpt'.
26142         * lib/grantpt.c: New file, from glibc with modifications.
26143         * m4/grantpt.m4: New file.
26144         * modules/grantpt: New file.
26145         * lib/stdlib.in.h (grantpt): New declaration.
26146         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26147         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26148         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26149         HAVE_GRANTPT.
26150         * doc/posix-functions/grantpt.texi: Mention the new module.
26151         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26152         * config/srclist.txt: Add grantpt.c (commented).
26153
26154 2010-03-21  Bruno Haible  <bruno@clisp.org>
26155
26156         New module 'pt_chown'.
26157         * lib/pt_chown.c: New file, from glibc with modifications.
26158         * lib/pty-private.h: New file, from glibc with modifications.
26159         * modules/pt_chown: New file.
26160         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26161
26162 2010-03-21  Bruno Haible  <bruno@clisp.org>
26163
26164         Tests for module 'ptsname'.
26165         * modules/ptsname-tests: New file.
26166         * tests/test-ptsname.c: New file.
26167
26168         New module 'ptsname'.
26169         * lib/ptsname.c: New file, from glibc with modifications.
26170         * m4/ptsname.m4: New file.
26171         * modules/ptsname: New file.
26172         * lib/stdlib.in.h (ptsname): New declaration.
26173         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26174         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26175         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26176         HAVE_PTSNAME.
26177         * doc/posix-functions/ptsname.texi: Mention the new module.
26178         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26179         * config/srclist.txt: Add ptsname.c (commented).
26180
26181 2010-03-21  Bruno Haible  <bruno@clisp.org>
26182
26183         Tests for module 'ttyname_r'.
26184         * modules/ttyname_r-tests: New file.
26185         * tests/test-ttyname_r.c: New file.
26186
26187         New module 'ttyname_r'.
26188         * lib/ttyname_r.c: New file.
26189         * m4/ttyname_r.m4: New file.
26190         * modules/ttyname_r: New file.
26191         * lib/unistd.in.h (ttyname_r): New declaration.
26192         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26193         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26194         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26195         HAVE_TTYNAME_R.
26196         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26197         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26198
26199 2010-03-20  Bruno Haible  <bruno@clisp.org>
26200
26201         signal: Undefine macro definitions in C++ mode.
26202         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26203         sigfillset): Undefine macro definitions from the system header in C++
26204         mode.
26205         Reported by John W. Eaton <jwe@gnu.org>.
26206
26207 2010-03-20  Bruno Haible  <bruno@clisp.org>
26208
26209         Ensure no #include statements inside extern "C" { ... }.
26210         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26211         contain #include statements.
26212         * lib/time.in.h: Likewise.
26213
26214 2010-03-20  Bruno Haible  <bruno@clisp.org>
26215
26216         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26217         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26218         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26219         Reported by John W. Eaton <jwe@gnu.org>.
26220
26221 2010-03-20  Bruno Haible  <bruno@clisp.org>
26222
26223         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26224         Reported by Jim Meyering.
26225
26226 2010-03-20  Bruno Haible  <bruno@clisp.org>
26227
26228         pipe: Set errno upon failure.
26229         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26230         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26231         errno value in error message.
26232
26233 2010-03-20  Bruno Haible  <bruno@clisp.org>
26234             Jim Meyering  <meyering@redhat.com>
26235
26236         lchown: Avoid "unused variable" warning.
26237         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26238
26239 2010-03-20  Bruno Haible  <bruno@clisp.org>
26240
26241         Work around unlink() bug on MacOS X 10.5.6.
26242         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26243         attempting to unlink a parent directory.
26244         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26245         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26246         activate for the replacement function.
26247         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26248
26249 2010-03-20  Bruno Haible  <bruno@clisp.org>
26250
26251         Fix link errors on Solaris 8.
26252         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26253         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26254
26255 2010-03-19  Jim Meyering  <meyering@redhat.com>
26256
26257         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26258         The _LIBC implementation of build_range_exp correctly honors the
26259         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26260         However, the non-_LIBC implementation would ignore that syntax-bit
26261         flag and return REG_ERANGE unconditionally.
26262         This change makes it honor that flag.
26263         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26264         Make two pointer parameters "const".
26265         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26266         (parse_bracket_exp): Update caller.
26267
26268         regex.m4: correct the reversed range endpoint ([b-a]) test
26269         * m4/regex.m4: When requiring that [b-a] evoke failure,
26270         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26271         test pass once again for x86-based systems.
26272
26273 2010-03-19  Bruno Haible  <bruno@clisp.org>
26274
26275         scandir: Fix link error on Solaris 8.
26276         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26277         macros.
26278
26279 2010-03-19  Bruno Haible  <bruno@clisp.org>
26280
26281         getusershell: Fix documentation.
26282         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26283         module.
26284         * doc/glibc-functions/setusershell.texi: Likewise.
26285
26286         getusershell: Provide declaration, missing on Solaris 9.
26287         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26288         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26289         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26290         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26292         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26293         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26294         HAVE_GETUSERSHELL.
26295         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26296
26297 2010-03-19  Bruno Haible  <bruno@clisp.org>
26298
26299         wctype: Provide iswblank function.
26300         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26301         exists and is fine.
26302         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26303         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26304         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26305         * doc/posix-functions/iswblank.texi: Update.
26306
26307 2010-03-19  Bruno Haible  <bruno@clisp.org>
26308
26309         Tests of module 'pty' in C++ mode.
26310         * modules/pty-tests: New file.
26311         * tests/test-pty-c++.cc: New file.
26312         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26313
26314 2010-03-19  Eric Blake  <eblake@redhat.com>
26315
26316         logb: fix documentation
26317         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26318         1.5 declaration bug.
26319
26320         forkpty, openpty: prefer glibc's const-safe prototype
26321         * lib/forkpty.c (rpl_forkpty): New file.
26322         * lib/openpty.c (rpl_openpty): Likewise.
26323         * modules/forkpty (Files): Distribute it.
26324         * modules/openpty (Files): Likewise.
26325         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26326         check...
26327         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26328         replacement for for non-const BSD signature.
26329         * modules/pty (Makefile.am): Substitute witnesses.
26330         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26331         * tests/test-forkpty.c: Update signature check.
26332         * tests/test-openpty.c: Likewise.
26333         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26334         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26335
26336         forkpty, openpty: split functions into new modules
26337         * modules/pty (Makefile.am): Substitute new witnesses.
26338         (Libraries): Move library detection...
26339         * modules/forkpty: ...into new module.
26340         * modules/openpty: Another new module.
26341         * modules/pty-tests: Rename and split...
26342         * modules/forkpty-tests: ...to this...
26343         * modules/openpty-tests: ...and this.
26344         * tests/test-pty.c: Rename and split...
26345         * tests/test-forkpty.c: ...to this...
26346         * tests/test-openpty.c: ...and this.
26347         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26348         (gl_PTY): Split library searching...
26349         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26350         (gl_FORKPTY, gl_OPENPTY): New macros.
26351         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26352         * NEWS: Mention the split.
26353         * MODULES.html.sh (Misc): Document the modules.
26354         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26355         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26356
26357         pty: improve replacement header
26358         * lib/pty.in.h: New file.
26359         * modules/pty (Files): Ship it.
26360         (Makefile.am): Always build replacement.
26361         * m4/pty.m4: Rename...
26362         * m4/pty_h.m4: ...to this.
26363         (gl_PTY): Modernize setting of witness macros; update check of
26364         forkpty to take proper advantage of cache.
26365         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26366
26367         getopt: avoid compiler warning
26368         * lib/getopt.c (attribute_hidden): Remove unused macro.
26369
26370 2010-03-18  Bruno Haible  <bruno@clisp.org>
26371
26372         Fix link errors on Solaris 8.
26373         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26374         * modules/search-tests (test_search_c___LDADD): Likewise.
26375         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26376         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26377         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26378         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26379         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26380         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26381         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26382
26383 2010-03-18  Bruno Haible  <bruno@clisp.org>
26384
26385         Fix bug introduced on 2010-03-14.
26386         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26387         (gl_SPAWN_H): Require it.
26388         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26389         Reported by Simon Josefsson.
26390
26391 2010-03-18  Bruno Haible  <bruno@clisp.org>
26392
26393         Fix typo introduced on 2009-12-31.
26394         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26395         posix_spawn_file_actions_adddup2.
26396
26397 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26398         and Eric Blake  <eblake@redhat.com>
26399
26400         test-vc-list-files-git: make more robust
26401         * tests/test-vc-list-files-git.sh: Unset problematic environment
26402         variables.  Chain commands together.
26403
26404 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26405
26406         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26407         `AC_CHECK_DECL' invocation.
26408
26409 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26410
26411         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26412         appears before executable statements. Suggested by Petr Sumbera
26413         <Petr.Sumbera@Sun.COM>.
26414
26415 2010-03-14  Bruno Haible  <bruno@clisp.org>
26416
26417         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26418         portability problems. Instead use a simpler test.
26419         (main): Check that invalid arguments are rejected only on Linux.
26420
26421 2010-03-14  Bruno Haible  <bruno@clisp.org>
26422
26423         Fix bug introduced on 2009-12-31.
26424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26425         gl_PREREQ_SYS_H_WINSOCK2 always.
26426         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26427         SYS_SOCKET_H variable.
26428         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26429         Update comments.
26430         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26431         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26432         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26433         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26434         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26435
26436 2010-03-14  Bruno Haible  <bruno@clisp.org>
26437
26438         Fix values returned by sinl, cosl.
26439         * lib/trigl.h: Add specification comments.
26440         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26441         that combines the values from the precomputed table with the values of
26442         the Chebyshev polynomials.
26443
26444 2010-03-14  Bruno Haible  <bruno@clisp.org>
26445
26446         Fix compilation error when modules 'posix_spawn[p]' are not used.
26447         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26448         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26449
26450 2010-03-14  Bruno Haible  <bruno@clisp.org>
26451
26452         Fix compilation error on mingw when module 'time_r' is not used.
26453         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26454         is 1.
26455         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26456         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26457         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26458         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26459
26460 2010-03-14  Bruno Haible  <bruno@clisp.org>
26461
26462         Fix compilation error with Sun C.
26463         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26464         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26465         instead of GCC specific ULONG_LONG_MAX.
26466         * lib/xstrtoll.c: Likewise.
26467         * lib/xstrtoull.c: Likewise.
26468
26469 2010-03-13  Bruno Haible  <bruno@clisp.org>
26470
26471         Allow the user to disable C++ code and tests.
26472         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26473         (gl_PROG_ANSI_CXX): Require it.
26474
26475 2010-03-13  Bruno Haible  <bruno@clisp.org>
26476
26477         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26478         cases.
26479
26480 2010-03-13  Bruno Haible  <bruno@clisp.org>
26481
26482         Test that gnulib does not break the standard C++ headers.
26483         * tests/test-locale-c++2.cc: New file.
26484         * modules/locale-tests (Files): Add it.
26485         (Makefile.am): Compile it for test-locale-c++.
26486         * tests/test-math-c++2.cc: New file.
26487         * modules/math-tests (Files): Add it.
26488         (Makefile.am): Compile it for test-math-c++.
26489         * tests/test-signal-c++2.cc: New file.
26490         * modules/signal-tests (Files): Add it.
26491         (Makefile.am): Compile it for test-signal-c++.
26492         * tests/test-stdio-c++2.cc: New file.
26493         * modules/stdio-tests (Files): Add it.
26494         (Makefile.am): Compile it for test-stdio-c++.
26495         * tests/test-stdlib-c++2.cc: New file.
26496         * modules/stdlib-tests (Files): Add it.
26497         (Makefile.am): Compile it for test-stdlib-c++.
26498         * tests/test-string-c++2.cc: New file.
26499         * modules/string-tests (Files): Add it.
26500         (Makefile.am): Compile it for test-string-c++.
26501         * tests/test-time-c++2.cc: New file.
26502         * modules/time-tests (Files): Add it.
26503         (Makefile.am): Compile it for test-time-c++.
26504         Reported by John W. Eaton <jwe@gnu.org>.
26505
26506 2010-03-13  Bruno Haible  <bruno@clisp.org>
26507
26508         * gnulib-tool (func_usage): Clarify which options are available for
26509         --create-testdir and --create-megatestdir.
26510
26511 2010-03-13  Bruno Haible  <bruno@clisp.org>
26512
26513         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26514         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26515         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26516         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26517         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26518         when appropriate.
26519         Reported by Jim Meyering.
26520
26521 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26522
26523         * gnulib-tool (func_import): Explain origin of code.
26524
26525 2010-03-12  Bruno Haible  <bruno@clisp.org>
26526
26527         Fix problem with automake's definition of CXXLINK.
26528         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26529         Reported by Simon Josefsson and Ludovic Courtès.
26530
26531 2010-03-12  Bruno Haible  <bruno@clisp.org>
26532
26533         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26534         stable releases.
26535
26536 2010-03-11  Bruno Haible  <bruno@clisp.org>
26537
26538         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26539         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26540         whether the system provides one variant or multiple variants of the
26541         function.
26542         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26543         C++ compilers.
26544         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26545         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26546         Reported by Jim Meyering.
26547
26548 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26549
26550         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26551
26552 2010-03-08  Bruno Haible  <bruno@clisp.org>
26553
26554         gnulib-tool: Add support for --libtool in --create-testdir.
26555         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26556         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26557
26558 2010-03-08  Eric Blake  <eblake@redhat.com>
26559
26560         gnulib-tool.texi: mention possibility of git submodule
26561         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26562         submodules.
26563         * doc/.gitignore: Ignore another generated file.
26564
26565 2010-03-08  Karl Berry  <karl@gnu.org>
26566
26567         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26568         of committing gnulib files while skipping others.
26569
26570 2010-03-07  Bruno Haible  <bruno@clisp.org>
26571
26572         Tests of module 'wctype' in C++ mode.
26573         * tests/test-wctype-c++.cc: New file.
26574         * modules/wctype-tests (Files): Add it and tests/signature.h.
26575         (Depends-on): Add ansi-c++-opt.
26576         (Makefile.am): Arrange to compile and run test-wctype-c++.
26577
26578         Tests of module 'wchar' in C++ mode.
26579         * tests/test-wchar-c++.cc: New file.
26580         * modules/wchar-tests (Files): Add it and tests/signature.h.
26581         (Depends-on): Add ansi-c++-opt.
26582         (Makefile.am): Arrange to compile and run test-wchar-c++.
26583         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26584         gl_MODULE_INDICATOR.
26585
26586         Tests of module 'unistd' in C++ mode.
26587         * tests/test-unistd-c++.cc: New file.
26588         * modules/unistd-tests (Files): Add it and tests/signature.h.
26589         (Depends-on): Add ansi-c++-opt.
26590         (Makefile.am): Arrange to compile and run test-unistd-c++.
26591         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26592         gl_MODULE_INDICATOR.
26593
26594         Tests of module 'time' in C++ mode.
26595         * tests/test-time-c++.cc: New file.
26596         * modules/time-tests (Files): Add it and tests/signature.h.
26597         (Depends-on): Add ansi-c++-opt.
26598         (Makefile.am): Arrange to compile and run test-time-c++.
26599         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26600
26601         Tests of module 'sys_time' in C++ mode.
26602         * tests/test-sys_time-c++.cc: New file.
26603         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26604         (Depends-on): Add ansi-c++-opt.
26605         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26606         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26607         gl_MODULE_INDICATOR.
26608
26609         Tests of module 'sys_stat' in C++ mode.
26610         * tests/test-sys_stat-c++.cc: New file.
26611         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26612         (Depends-on): Add ansi-c++-opt.
26613         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26614         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26615         gl_MODULE_INDICATOR.
26616
26617         Tests of module 'sys_socket' in C++ mode.
26618         * tests/test-sys_socket-c++.cc: New file.
26619         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26620         (Depends-on): Add ansi-c++-opt.
26621         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26622         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26623         gl_MODULE_INDICATOR.
26624
26625         Tests of module 'sys_select' in C++ mode.
26626         * tests/test-sys_select-c++.cc: New file.
26627         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26628         (Depends-on): Add ansi-c++-opt.
26629         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26630         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26631         gl_MODULE_INDICATOR.
26632
26633         Tests of module 'sys_ioctl' in C++ mode.
26634         * tests/test-sys_ioctl-c++.cc: New file.
26635         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26636         (Depends-on): Add ansi-c++-opt.
26637         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26638         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26639         gl_MODULE_INDICATOR.
26640
26641         Tests of module 'string' in C++ mode.
26642         * tests/test-string-c++.cc: New file.
26643         * modules/string-tests (Files): Add it and tests/signature.h.
26644         (Depends-on): Add ansi-c++-opt.
26645         (Makefile.am): Arrange to compile and run test-string-c++.
26646         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26647         gl_MODULE_INDICATOR.
26648
26649         Tests of module 'stdlib' in C++ mode.
26650         * tests/test-stdlib-c++.cc: New file.
26651         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26652         (Depends-on): Add ansi-c++-opt.
26653         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26654         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26655         gl_MODULE_INDICATOR.
26656
26657         Tests of module 'stdio' in C++ mode.
26658         * tests/test-stdio-c++.cc: New file.
26659         * modules/stdio-tests (Files): Add it and tests/signature.h.
26660         (Depends-on): Add ansi-c++-opt.
26661         (Makefile.am): Arrange to compile and run test-stdio-c++.
26662         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26663         gl_MODULE_INDICATOR.
26664
26665         Tests of module 'spawn' in C++ mode.
26666         * tests/test-spawn-c++.cc: New file.
26667         * modules/spawn-tests (Files): Add it and tests/signature.h.
26668         (Depends-on): Add ansi-c++-opt.
26669         (Makefile.am): Arrange to compile and run test-spawn-c++.
26670         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26671         gl_MODULE_INDICATOR.
26672
26673         Tests of module 'signal' in C++ mode.
26674         * tests/test-signal-c++.cc: New file.
26675         * modules/signal-tests (Files): Add it and tests/signature.h.
26676         (Depends-on): Add ansi-c++-opt.
26677         (Makefile.am): Arrange to compile and run test-signal-c++.
26678         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26679         gl_MODULE_INDICATOR.
26680
26681         Tests of module 'search' in C++ mode.
26682         * tests/test-search-c++.cc: New file.
26683         * modules/search-tests (Files): Add it and tests/signature.h.
26684         (Depends-on): Add ansi-c++-opt.
26685         (Makefile.am): Arrange to compile and run test-search-c++.
26686         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26687         gl_MODULE_INDICATOR.
26688
26689         Tests of module 'math' in C++ mode.
26690         * tests/test-math-c++.cc: New file.
26691         * modules/math-tests (Files): Add it and tests/signature.h.
26692         (Depends-on): Add ansi-c++-opt.
26693         (Makefile.am): Arrange to compile and run test-math-c++.
26694         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26695
26696         Tests of module 'locale' in C++ mode.
26697         * tests/test-locale-c++.cc: New file.
26698         * modules/locale-tests (Files): Add it and tests/signature.h.
26699         (Depends-on): Add ansi-c++-opt.
26700         (Makefile.am): Arrange to compile and run test-locale-c++.
26701         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26702         gl_MODULE_INDICATOR.
26703
26704         Tests of module 'langinfo' in C++ mode.
26705         * tests/test-langinfo-c++.cc: New file.
26706         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26707         (Depends-on): Add ansi-c++-opt.
26708         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26709         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26710         gl_MODULE_INDICATOR.
26711
26712         Tests of module 'iconv-h' in C++ mode.
26713         * tests/test-iconv-h-c++.cc: New file.
26714         * modules/iconv-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-iconv-h-c++.
26717
26718         Tests of module 'glob' in C++ mode.
26719         * tests/test-glob-c++.cc: New file.
26720         * modules/glob-tests (Files): Add it.
26721         (Depends-on): Add ansi-c++-opt.
26722         (Makefile.am): Arrange to compile and run test-glob-c++.
26723
26724         Tests of module 'fcntl-h' in C++ mode.
26725         * tests/test-fcntl-h-c++.cc: New file.
26726         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26727         (Depends-on): Add ansi-c++-opt.
26728         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26729         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26730         gl_MODULE_INDICATOR.
26731
26732         Tests of module 'dirent' in C++ mode.
26733         * tests/test-dirent-c++.cc: New file.
26734         * modules/dirent-tests (Files): Add it and tests/signature.h.
26735         (Depends-on): Add ansi-c++-opt.
26736         (Makefile.am): Arrange to compile and run test-dirent-c++.
26737         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26738         gl_MODULE_INDICATOR.
26739
26740         New module 'ansi-c++-opt'.
26741         * modules/ansi-c++-opt: New file.
26742         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26743
26744         Document C++ namespace mode.
26745         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26746
26747         wctype: Avoid #define replacements in C++ mode.
26748         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26749         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26750         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26751         In C++, define a namespaced alias symbol.
26752         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26753         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26754         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26755         rule.
26756
26757         wchar: Avoid #define replacements in C++ mode.
26758         * lib/wchar.in.h: Include c++defs.h.
26759         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26760         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26761         symbol.
26762         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26763         * modules/wchar (Depends-on): Add c++defs.
26764         (Makefile.am): Update wchar.h rule.
26765
26766         unistd: Avoid #define replacements in C++ mode.
26767         * lib/unistd.in.h: Include c++defs.h.
26768         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26769         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26770         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26771         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26772         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26773         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26774         symbol.
26775         (environ): Update.
26776         * modules/unistd (Depends-on): Add c++defs.
26777         (Makefile.am): Update unistd.h rule.
26778
26779         time: Avoid #define replacements in C++ mode.
26780         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26781         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26782         define a namespaced alias symbol.
26783         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26784         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26785         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26786         * modules/time (Depends-on): Add c++defs, warn-on-use.
26787         (Makefile.am): Update time.h rule.
26788         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26789         * modules/nanosleep (configure.ac): Likewise.
26790         * modules/strptime (configure.ac): Likewise.
26791         * modules/timegm (configure.ac): Likewise.
26792
26793         sys_time: Avoid #define replacements in C++ mode.
26794         * lib/sys_time.in.h: Include c++defs.h.
26795         (gettimeofday): In C++, define a namespaced alias symbol.
26796         * modules/sys_time (Depends-on): Add c++defs.
26797         (Makefile.am): Update sys/time.h rule.
26798
26799         sys_stat: Avoid #define replacements in C++ mode.
26800         * lib/sys_stat.in.h: Include c++defs.h.
26801         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26802         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26803         namespaced alias symbol.
26804         In C++, define a namespaced alias symbol.
26805         * modules/sys_stat (Depends-on): Add c++defs.
26806         (Makefile.am): Update sys/stat.h rule.
26807
26808         sys_socket: Avoid #define replacements in C++ mode.
26809         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26810         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26811         definitions also when the system has a <sys/socket.h>.
26812         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26813         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26814         In C++, define a namespaced alias symbol.
26815         * modules/sys_socket (Depends-on): Add c++defs.
26816         (Makefile.am): Update sys/socket.h rule.
26817
26818         sys_select: Avoid #define replacements in C++ mode.
26819         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26820         definitions also when the system has a <sys/select.h>.
26821         (select): In C++, define a namespaced alias symbol.
26822         * modules/sys_select (Depends-on): Add c++defs.
26823         (Makefile.am): Update sys/select.h rule.
26824
26825         sys_ioctl: Avoid #define replacements in C++ mode.
26826         * lib/sys_ioctl.in.h: Include c++defs.h.
26827         (ioctl): In C++, define a namespaced alias symbol.
26828         * modules/sys_ioctl (Depends-on): Add c++defs.
26829         (Makefile.am): Update sys/ioctl.h rule.
26830
26831         string: Avoid #define replacements in C++ mode.
26832         * lib/string.in.h: Include c++defs.h.
26833         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26834         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26835         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26836         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26837         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26838         * modules/string (Depends-on): Add c++defs.
26839         (Makefile.am): Update string.h rule.
26840
26841         stdlib: Avoid #define replacements in C++ mode.
26842         * lib/stdlib.in.h: Include c++defs.h.
26843         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26844         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26845         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26846         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26847         symbol.
26848         * modules/stdlib (Depends-on): Add c++defs.
26849         (Makefile.am): Update stdlib.h rule.
26850
26851         stdio: Avoid #define replacements in C++ mode.
26852         * lib/stdio.in.h: Include c++defs.h.
26853         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26854         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26855         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26856         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26857         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26858         namespaced alias symbol.
26859         * modules/stdio (Depends-on): Add c++defs.
26860         (Makefile.am): Update stdio.h rule.
26861
26862         spawn: Avoid #define replacements in C++ mode.
26863         * lib/spawn.in.h: Include c++defs.h.
26864         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26865         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26866         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26867         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26868         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26869         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26870         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26871         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26872         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26873         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26874         In C++, define a namespaced alias symbol.
26875         * modules/spawn (Depends-on): Add c++defs.
26876         (Makefile.am): Update spawn.h rule.
26877
26878         signal: Avoid #define replacements in C++ mode.
26879         * lib/signal.in.h: Include c++defs.h.
26880         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26881         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26882         namespaced alias symbol.
26883         * modules/signal (Depends-on): Add c++defs.
26884         (Makefile.am): Update signal.h rule.
26885
26886         search: Avoid #define replacements in C++ mode.
26887         * lib/search.in.h: Include c++defs.h.
26888         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26889         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26890         symbol.
26891         * modules/search (Depends-on): Add c++defs.
26892         (Makefile.am): Update search.h rule.
26893
26894         math: Avoid #define replacements in C++ mode.
26895         * lib/math.in.h: Include c++defs.h.
26896         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26897         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26898         trunc, truncl): In C++, define a namespaced alias symbol.
26899         * modules/math (Depends-on): Add c++defs.
26900         (Makefile.am): Update math.h rule.
26901
26902         locale: Avoid #define replacements in C++ mode.
26903         * lib/locale.in.h: Include c++defs.h.
26904         (duplocale): In C++, define a namespaced alias symbol.
26905         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26906         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26907         * modules/locale (Depends-on): Add c++defs.
26908         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26909
26910         langinfo: Avoid #define replacements in C++ mode.
26911         * lib/langinfo.in.h: Include c++defs.h.
26912         (nl_langinfo): In C++, define a namespaced alias symbol.
26913         * modules/langinfo (Depends-on): Add c++defs.
26914         (Makefile.am): Update langinfo.h rule.
26915
26916         iconv-h: Avoid #define replacements in C++ mode.
26917         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26918         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26919         symbol.
26920         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26921         whenever iconv is present.
26922         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26923         (Makefile.am): Update iconv.h rule.
26924
26925         glob: Avoid #define replacements in C++ mode.
26926         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26927         (_gl_glob_errfunc_fn): New type.
26928         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
26929         symbol.
26930         * modules/glob (Depends-on): Add c++defs, warn-on-use.
26931         (Makefile.am): Update glob.h rule.
26932
26933         fcntl-h: Avoid #define replacements in C++ mode.
26934         * lib/fcntl.in.h: Include c++defs.h.
26935         (fcntl, open, openat): In C++, define a namespaced alias symbol.
26936         * modules/fcntl-h (Depends-on): Add c++defs.
26937         (Makefile.am): Update fcntl.h rule.
26938
26939         dirent: Avoid #define replacements in C++ mode.
26940         * lib/dirent.in.h: Include c++defs.h.
26941         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
26942         namespaced alias symbol.
26943         (dirfd): Update declaration.
26944         * modules/dirent (Depends-on): Add c++defs.
26945         (Makefile.am): Update dirent.h rule.
26946
26947         ctype: Make it usable in C++ code.
26948         * lib/ctype.in.h: Include c++defs.h.
26949         (isblank): Declare as extern "C".
26950         * modules/ctype (Depends-on): Add c++defs.
26951         (Makefile.am): Update ctype.h rule.
26952
26953         New module 'c++defs'.
26954         * modules/c++defs: New file.
26955         * build-aux/c++defs.h: New file.
26956         Reported by John W. Eaton <jwe@gnu.org>.
26957
26958 2010-03-07  Bruno Haible  <bruno@clisp.org>
26959
26960         logb: Provide missing declaration for Cygwin.
26961         * lib/math.in.h (logb): New declaration.
26962         * m4/logb.m4: New file.
26963         * modules/logb (Files): Add m4/logb.m4.
26964         (Depends-on): Add math.
26965         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
26966         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
26967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
26968         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
26969         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
26970
26971 2010-03-07  Bruno Haible  <bruno@clisp.org>
26972
26973         Fix test-cond link error.
26974         * tests/test-cond.c: Include <stdio.h>.
26975
26976 2010-03-07  Bruno Haible  <bruno@clisp.org>
26977
26978         Fix test-dirent-safer link error.
26979         * modules/dirent-safer-tests (Makefile.am): Define
26980         test_dirent_safer_LDADD.
26981
26982 2010-03-07  Bruno Haible  <bruno@clisp.org>
26983
26984         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
26985         among default module list.
26986
26987 2010-03-07  Bruno Haible  <bruno@clisp.org>
26988
26989         Fix link error on platforms with GNU libiconv.
26990         * modules/unistr/u8-strcoll-tests (Makefile): Define
26991         test_u8_strcoll_LDADD.
26992         * modules/unistr/u16-strcoll-tests (Makefile): Define
26993         test_u16_strcoll_LDADD.
26994         * modules/unistr/u32-strcoll-tests (Makefile): Define
26995         test_u32_strcoll_LDADD.
26996
26997 2010-03-07  Bruno Haible  <bruno@clisp.org>
26998
26999         Use POSIX declarations for socket functions.
27000         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27001         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27002         rpl_sendto): Change declaration to match POSIX.
27003         * lib/connect.c (rpl_connect): Likewise.
27004         * lib/accept.c (rpl_accept): Likewise.
27005         * lib/bind.c (rpl_bind): Likewise.
27006         * lib/getpeername.c (rpl_getpeername): Likewise.
27007         * lib/getsockname.c (rpl_getsockname): Likewise.
27008         * lib/recv.c (rpl_recv): Likewise.
27009         * lib/send.c (rpl_send): Likewise.
27010         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27011         * lib/sendto.c (rpl_sendto): Likewise.
27012
27013 2010-03-06  Bruno Haible  <bruno@clisp.org>
27014
27015         Clarify access, euidaccess, faccessat.
27016         * doc/posix-functions/faccessat.texi: Mention security problem under
27017         "Other problems", not "Portability problems".
27018         * doc/posix-functions/access.texi: Likewise. Mention a related security
27019         problem.
27020         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27021         * lib/euidaccess.c: Add comments about platforms.
27022         * lib/unistd.in.h (access, euidaccess): Add warnings.
27023
27024 2010-03-07  Bruno Haible  <bruno@clisp.org>
27025
27026         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27027         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27028         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27029         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27030         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27031         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27032         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27033         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27034         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27035         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27036         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27037         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27038         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27039         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27040         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27041         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27042         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27043         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27044         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27045         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27046         Likewise.
27047         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27048         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27049         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27050         Likewise.
27051         * tests/test-spawn.c (main): Make it work when
27052         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27053
27054 2010-03-07  Bruno Haible  <bruno@clisp.org>
27055
27056         Fix incorrect Makefile.am generation in German locale.
27057         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27058         Execute sed command with character range in C locale.
27059
27060 2010-03-06  Bruno Haible  <bruno@clisp.org>
27061
27062         Tests for module 'iconv-h'.
27063         * modules/iconv-h-tests: New file.
27064         * tests/test-iconv-h.c: New file.
27065
27066         New module 'iconv-h'.
27067         * modules/iconv-h: New file.
27068         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27069         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27070         (configure.ac): Remove gl_ICONV_H.
27071         (Makefile.am): Remove rule for iconv.h.
27072
27073 2010-03-06  Bruno Haible  <bruno@clisp.org>
27074
27075         More consistent naming of *.m4 files.
27076         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27077         * modules/wctype (Files): Update.
27078
27079         More consistent naming of *.m4 files.
27080         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27081         * modules/wchar (Files): Update.
27082
27083 2010-03-06  Jim Meyering  <meyering@redhat.com>
27084
27085         euidaccess: relax license to LGPLv2+
27086         * modules/euidaccess (License): Relax to LGPLv2+.
27087
27088 2010-03-06  Bruno Haible  <bruno@clisp.org>
27089
27090         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27091         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27092         (Makefile.am): Augment lib_SOURCES instead.
27093
27094 2010-03-04  Jim Meyering  <meyering@redhat.com>
27095
27096         utime: remove obsolete module
27097         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27098         unnecessary for years, and has been marked as obsolete for 10 months.
27099         * modules/utime: Remove file.
27100         * lib/utime.c: Remove file.
27101         * m4/utime.m4: Remove file.
27102         * m4/utimes-null.m4: Remove file.
27103         * doc/posix-functions/utime.texi (utime): Remove reference to
27104         the module.  Move the sole "fixed by gnulib" item into the
27105         "problems not fixed by Gnulib" list.
27106         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27107
27108 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27109
27110         * modules/exit (License): Relax license to LGPLv2+.
27111         (Status): Mark as obsolete.
27112         * NEWS: Mention deprecated 'exit' module.
27113         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27114         of now obsolete 'exit'.
27115
27116 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27117
27118         fts-lgpl: remove unused module
27119         * modules/fts-lgpl: Remove.
27120         * MODULES.html.sh (func_all_modules): Adjust.
27121         * check-module (find_included_lib_files): Adjust.
27122         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27123
27124 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27125
27126         copy-acl: enhance Solaris ACL error handling
27127         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27128         * lib/set-mode-acl.c (qset_acl): Likewise.
27129
27130 2010-03-02  Bruno Haible  <bruno@clisp.org>
27131
27132         spawn: Don't override the system defined values on FreeBSD 8.
27133         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27134         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27135         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27136         if HAVE_POSIX_SPAWN is 1.
27137         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27138
27139 2010-03-01  Bruno Haible  <bruno@clisp.org>
27140
27141         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27142         regarding Automake.
27143
27144 2010-02-25  Bruno Haible  <bruno@clisp.org>
27145
27146         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27147         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27148         setting, not afterwards.
27149         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27150
27151 2010-02-24  Eric Blake  <eblake@redhat.com>
27152
27153         bootstrap, git-version-gen: use timestamp
27154         * build-aux/git-version-gen (scriptversion): Force UTC.
27155         * build-aux/bootstrap (scriptversion): New variable.
27156
27157         bootstrap: allow older git
27158         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27159         older than 1.6.4.  Requested by the libvirt project.
27160
27161 2010-02-23  Eric Blake  <eblake@redhat.com>
27162
27163         warn-on-use: work with old autoconf
27164         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27165         AS_VAR semantics of autoconf 2.60.
27166         Reported by Bruno Haible.
27167
27168         bootstrap: improve some comments
27169         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27170         clarification comments.
27171
27172         gettimeofday: provide correct function
27173         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27174         when replacement is declared, otherwise provide gettimeofday.
27175         Reported by Michael Goffioul.
27176
27177 2010-02-23  Jim Meyering  <meyering@redhat.com>
27178
27179         lib-ignore: relax license to "unlimited", not LGPLv2+
27180         * modules/lib-ignore (License): Relax to "unlimited".
27181
27182 2010-02-23  Jim Meyering  <meyering@redhat.com>
27183
27184         lib-ignore: relax license to LGPLv2+
27185         * modules/lib-ignore (License): Relax to LGPLv2+.
27186
27187 2010-02-22  Eric Blake  <eblake@redhat.com>
27188
27189         lseek: avoid bash 3.2 broken pipe bug
27190         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27191         warning from bash 3.2.
27192         Reported by Ben Pfaff, with analysis from Bruno Haible.
27193
27194         bootstrap: support non-FSF copyright holder
27195         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27196         bootstrap.conf override of COPYRIGHT_HOLDER.
27197         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27198
27199         bootstrap: interoperate with gettext 0.14.1
27200         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27201
27202         bootstrap: allow for alternate submodule location
27203         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27204         hardcoding submodule location.
27205         (gnulib_mk): Allow direct use of Makefile.am.
27206
27207         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27208         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27209         rather than reconfiguring where the submodule points.
27210
27211         gettimeofday: restore support for platforms that lack function
27212         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27213         replacement if function is missing.
27214         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27215         * modules/sys_time (Makefile.am): Substitute it.
27216         * lib/sys_time.in.h (gettimeofday): Check it.
27217         Reported by Michael Goffioul.
27218
27219 2010-02-21  Bruno Haible  <bruno@clisp.org>
27220
27221         * lib/stdio.in.h (obstack_printf): Fix typo.
27222
27223 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27224
27225         vc-list-files: use bzr ls's -R option
27226         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27227         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27228
27229 2010-02-21  Jim Meyering  <meyering@redhat.com>
27230
27231         init.sh: fix EXEEXT shims to work also for names like test-prog
27232         * tests/init.sh: Re-exec a better shell, when needed.
27233         If the current shell lacks support for posix $(...), an init.sh-using
27234         test will now try to find a shell that supports that.  If EXEEXT is
27235         nonempty, we also require support for hyphen-in-alias-name and shell
27236         substitutions like ${var#glob}.  Failure to find such a shell results
27237         in a skipped test.
27238
27239 2010-02-21  Bruno Haible  <bruno@clisp.org>
27240
27241         Really work around around "broken pipe" error message from bash 3.2.
27242         * gnulib-tool (func_reset_sigpipe): Remove function.
27243         (echo): In bash 3.2, define to a function that uses printf.
27244         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27245
27246 2010-02-20  Bruno Haible  <bruno@clisp.org>
27247
27248         Restore support for automake 1.9.6 with autoconf 2.61.
27249         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27250         Reported by James Youngman <jay@gnu.org>.
27251
27252 2010-02-20  Bruno Haible  <bruno@clisp.org>
27253
27254         Improve *printf warning condition.
27255         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27256         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27257         and the function is overridden due to SIGPIPE emulation.
27258
27259 2010-02-20  Bruno Haible  <bruno@clisp.org>
27260
27261         * lib/stdio.in.h: Tweak comments.
27262
27263 2010-02-19  Bruno Haible  <bruno@clisp.org>
27264
27265         Make it easier to find modules. New gnulib-tool option '--find'.
27266         * gnulib-tool: New option --find.
27267         (func_usage): Document it.
27268         (func_sanitize_modulelist): New function, extracted from
27269         func_all_modules.
27270         (func_all_modules): Invoke it.
27271         * doc/gnulib-tool.texi (Which modules?): New node.
27272
27273 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27274
27275         * lib/sys_select.in.h: Provide select replacement even if
27276         sys/select.h exists on a system, for Interix.
27277
27278 2010-02-18  Jim Meyering  <meyering@redhat.com>
27279
27280         init.sh: don't use $(...) just yet
27281         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27282         to accommodate e.g., Solaris' /bin/sh.
27283
27284 2010-02-17  Bruno Haible  <bruno@clisp.org>
27285
27286         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27287         Reported by Ludovic Courtès <ludo@gnu.org>.
27288
27289 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27290
27291         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27292         linking with -lintl.
27293
27294 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27295
27296         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27297         if not provided by the system's netdb.h.  Reported by
27298         ludo@gnu.org (Ludovic Courtès).
27299
27300 2010-02-15  Jim Meyering  <meyering@redhat.com>
27301
27302         init.sh: improve portability and efficiency
27303         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27304         "dummy" in a for loop.
27305         Use '!', not '^' to select the complement of a character set used
27306         in a "case" statement.
27307         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27308         Suggestions from Eric Blake.
27309
27310         init.sh: automatically accommodate programs with the .exe suffix
27311         Automatically arrange for an invocation of "prog" to execute the
27312         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27313         may use the simpler "prog", yet still work when built on a system
27314         that requires specifying the added suffix.
27315         Do this by constructing a function named "prog" that invokes
27316         "prog.exe" for each .exe file in selected directories.
27317         * tests/init.sh (find_exe_basenames_): New function.
27318         (create_exe_shim_functions_): New function.
27319         (path_prepend_): Use it.
27320
27321         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27322         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27323         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27324
27325 2010-02-14  Jim Meyering  <meyering@redhat.com>
27326
27327         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27328         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27329         (sc_prohibit_hash_pjw_without_use): New rule.
27330
27331         maint.mk: allow the default upload destination dir to be overridden
27332         * top/maint.mk (upload_dest_dir_): Define with a default that
27333         preserves the status quo.
27334         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27335         Reported by Peter Simons.
27336
27337         maint.mk: prohibit inclusion of "hash.h" without_use
27338         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27339
27340 2010-02-10  Jim Meyering  <meyering@redhat.com>
27341
27342         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27343         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27344
27345 2010-02-09  Eric Blake  <ebb9@byu.net>
27346         and Bruno Haible  <bruno@clisp.org>
27347
27348         obstack-printf-posix: ensure declaration
27349         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27350         extracted from gl_FUNC_OBSTACK_PRINTF.
27351         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27352         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27353         Likewise.
27354         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27355         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27356         0.
27357
27358 2010-02-08  Bruno Haible  <bruno@clisp.org>
27359
27360         gnulib-tool: Fix typo in 2010-02-07 commit.
27361         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27362         Reported by Eric Blake.
27363
27364 2010-02-07  Bruno Haible  <bruno@clisp.org>
27365
27366         gnulib-tool: Fix up caching patches.
27367         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27368         option --no-cache. Use associative arrays when supported by the shell.
27369         (sed_comments): New variable.
27370         (modcache): Renamed from do_cache.
27371         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27372         abbreviate unnecessarily.
27373         (have_associative): New variable.
27374         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27375         way also for ksh and zsh.
27376         (func_init_sed_convert_to_cache_statements): New function, extracted
27377         from func_cache_lookup_module. Add support for associative arrays.
27378         Don't set the c_MODULE_cached variable here. Ignore all lines before
27379         the first field header. Remove only the final newline, not all trailing
27380         newlines. Support empty fields correctly. Limit the use of 'eval' to
27381         assignments.
27382         (func_get_description, func_get_status, func_get_notice,
27383         func_get_applicability, func_get_filelist, func_get_dependencies,
27384         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27385         func_get_automake_snippet, func_get_include_directive,
27386         func_get_link_directive, func_get_license, func_get_maintainer):
27387         Update documentation. List the unoptimized code first. Add support for
27388         associative arrays. Limit the use of 'eval' to assignments.
27389         (func_get_applicability): Undo stylistic pessimisations.
27390         (func_get_automake_snippet, func_get_include_directive): Reduce code
27391         duplication.
27392         (func_modules_transitive_closure, func_modules_add_dummy,
27393         func_modules_notice, func_modules_to_filelist, func_add_file,
27394         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27395         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27396         func_create_testdir, func_create_megatestdir): Update documentation.
27397
27398 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27399
27400         * gnulib-tool (func_cache_lookup_module): Store the module name
27401         belonging to the cache variable; error out if two different
27402         module names map to the same cache variable name.
27403
27404 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27405
27406         gnulib-tool: Make caching optional.
27407         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27408         Update matching short versions of --no-changelog.
27409         (func_usage): Update.
27410         (sed_extract_cache_prog): Renamed from ...
27411         (sed_extract_prog): ... this; revert to old extraction script.
27412         (func_get_description, func_get_status)
27413         (func_get_notice, func_get_applicability, func_get_filelist)
27414         (func_get_dependencies, func_get_autoconf_early_snippet)
27415         (func_get_autoconf_snippet, func_get_automake_snippet)
27416         (func_get_include_directive, func_get_link_directive)
27417         (func_get_license, func_get_maintainer): If $do_cache is false,
27418         use old, non-caching extraction scripts.
27419         Suggestion by Bruno Haible.
27420
27421 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27422
27423         gnulib-tool: cache module metainformation.
27424         * gnulib-tool (sed_extract_prog): Match newline before each
27425         header, and rewrite header to a shell variable suffix.
27426         (func_cache_var, func_cache_lookup_module): New functions,
27427         to turn a module name into a cache variable prefix, and to
27428         look up and cache module metainformation.
27429         (func_get_description, func_get_status)
27430         (func_get_notice, func_get_applicability, func_get_filelist)
27431         (func_get_dependencies, func_get_autoconf_early_snippet)
27432         (func_get_autoconf_snippet, func_get_automake_snippet)
27433         (func_get_include_directive, func_get_link_directive)
27434         (func_get_license, func_get_maintainer): Use
27435         func_cache_lookup_module.
27436
27437 2010-02-07  Bruno Haible  <bruno@clisp.org>
27438
27439         fnctl: Fix missing dependency.
27440         * modules/fcntl (Depends-on): Add getdtablesize.
27441         Reported by John W. Eaton <jwe@gnu.org>.
27442
27443 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27444
27445         Argp: fix recognition of short alias options.
27446
27447         * lib/argp-parse.c (convert_options): Fix improper use of
27448         `|' between character values.
27449         * tests/test-argp.c (group1_option): New alias option
27450         --read (-r).
27451         (group1_parser): Special handling for 'r'.
27452         (test15): New test case.
27453         (test_fun): Add test15.
27454         * tests/test-argp-2.sh: Update expected --help and --usage
27455         outputs.
27456
27457 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27458
27459         * tests/test-argp.c: Fix indentation.
27460
27461 2010-02-04  Eric Blake  <ebb9@byu.net>
27462
27463         gettimeofday: expose type of second argument
27464         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27465         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27466         * tests/test-gettimeofday.c: Use it to silence warning.
27467         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27468         the issue.
27469
27470 2010-02-03  Jim Meyering  <meyering@redhat.com>
27471
27472         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27473         * lib/regcomp.c (TYPE_SIGNED): Define.
27474         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27475
27476         regcomp.c: avoid a new -Wshadow warning
27477         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27478
27479 2010-02-01  Jim Meyering  <meyering@redhat.com>
27480
27481         removing useless parentheses in cpp #define directives
27482         For motivation, see commit c0221df4, "define STREQ(a,b)
27483         consistently, removing useless parentheses"
27484         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27485         * lib/mountlist.c (MNT_IGNORE): Likewise.
27486         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27487
27488 2010-02-01  Eric Blake  <ebb9@byu.net>
27489
27490         sys_time: use link-warning
27491         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27492         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27493         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27494         * modules/sys_time (Depends-on): Add warn-on-use.
27495         (Makefile.am): Always build replacement.
27496         (configure.ac): Update substitutions.
27497         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27498         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27499         bother with SYS_TIME_H.
27500         * modules/gettimeofday (configure.ac): Declare indicator.
27501         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27502         in use.
27503
27504         closein-tests: silence compiler warning
27505         * tests/test-closein.c (main): Ignore fread result.
27506         * modules/closein-tests (Depends-on): Add ignore-value.
27507
27508         tests: silence warning about system return
27509         * tests/test-areadlink-with-size.c (main): Ignore system result.
27510         * tests/test-areadlink.c (main): Likewise.
27511         * tests/test-areadlinkat-with-size.c (main): Likewise.
27512         * tests/test-areadlinkat.c (main): Likewise.
27513         * tests/test-canonicalize-lgpl.c (main): Likewise.
27514         * tests/test-canonicalize.c (main): Likewise.
27515         * tests/test-chown.c (main): Likewise.
27516         * tests/test-fchownat.c (main): Likewise.
27517         * tests/test-fdutimensat.c (main): Likewise.
27518         * tests/test-fstatat.c (main): Likewise.
27519         * tests/test-futimens.c (main): Likewise.
27520         * tests/test-lchown.c (main): Likewise.
27521         * tests/test-link.c (main): Likewise.
27522         * tests/test-linkat.c (main): Likewise.
27523         * tests/test-lstat.c (main): Likewise.
27524         * tests/test-mkdir.c (main): Likewise.
27525         * tests/test-mkdirat.c (main): Likewise.
27526         * tests/test-mkfifo.c (main): Likewise.
27527         * tests/test-mkfifoat.c (main): Likewise.
27528         * tests/test-mknod.c (main): Likewise.
27529         * tests/test-readlink.c (main): Likewise.
27530         * tests/test-remove.c (main): Likewise.
27531         * tests/test-rename.c (main): Likewise.
27532         * tests/test-renameat.c (main): Likewise.
27533         * tests/test-rmdir.c (main): Likewise.
27534         * tests/test-symlink.c (main): Likewise.
27535         * tests/test-symlinkat.c (main): Likewise.
27536         * tests/test-unlink.c (main): Likewise.
27537         * tests/test-unlinkat.c (main): Likewise.
27538         * tests/test-utimens.c (main): Likewise.
27539         * tests/test-utimensat.c (main): Likewise.
27540         * modules/areadlink-tests (Depends-on): Add ignore-value.
27541         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27542         * modules/areadlinkat-tests (Depends-on): Likewise.
27543         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27544         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27545         * modules/canonicalize-tests (Depends-on): Likewise.
27546         * modules/chown-tests (Depends-on): Likewise.
27547         * modules/fdutimensat-tests (Depends-on): Likewise.
27548         * modules/futimens-tests (Depends-on): Likewise.
27549         * modules/lchown-tests (Depends-on): Likewise.
27550         * modules/link-tests (Depends-on): Likewise.
27551         * modules/linkat-tests (Depends-on): Likewise.
27552         * modules/lstat-tests (Depends-on): Likewise.
27553         * modules/mkdir-tests (Depends-on): Likewise.
27554         * modules/mkfifo-tests (Depends-on): Likewise.
27555         * modules/mkfifoat-tests (Depends-on): Likewise.
27556         * modules/mknod-tests (Depends-on): Likewise.
27557         * modules/openat-tests (Depends-on): Likewise.
27558         * modules/readlink-tests (Depends-on): Likewise.
27559         * modules/remove-tests (Depends-on): Likewise.
27560         * modules/rename-tests (Depends-on): Likewise.
27561         * modules/renameat-tests (Depends-on): Likewise.
27562         * modules/rmdir-tests (Depends-on): Likewise.
27563         * modules/symlink-tests (Depends-on): Likewise.
27564         * modules/symlinkat-tests (Depends-on): Likewise.
27565         * modules/unlink-tests (Depends-on): Likewise.
27566         * modules/utimens-tests (Depends-on): Likewise.
27567         * modules/utimensat-tests (Depends-on): Likewise.
27568
27569 2010-01-31  Bruno Haible  <bruno@clisp.org>
27570
27571         Perform the same test for many <math.h> functions.
27572         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27573         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27574         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27575         of gl_MATHFUNC.
27576         * modules/acos (configure.ac): Likewise.
27577         * modules/asin (configure.ac): Likewise.
27578         * modules/atan (configure.ac): Likewise.
27579         * modules/atan2 (configure.ac): Likewise.
27580         * modules/cbrt (configure.ac): Likewise.
27581         * modules/copysign (configure.ac): Likewise.
27582         * modules/cos (configure.ac): Likewise.
27583         * modules/cosh (configure.ac): Likewise.
27584         * modules/erf (configure.ac): Likewise.
27585         * modules/erfc (configure.ac): Likewise.
27586         * modules/exp (configure.ac): Likewise.
27587         * modules/fmod (configure.ac): Likewise.
27588         * modules/hypot (configure.ac): Likewise.
27589         * modules/j0 (configure.ac): Likewise.
27590         * modules/j1 (configure.ac): Likewise.
27591         * modules/jn (configure.ac): Likewise.
27592         * modules/lgamma (configure.ac): Likewise.
27593         * modules/log (configure.ac): Likewise.
27594         * modules/log10 (configure.ac): Likewise.
27595         * modules/log1p (configure.ac): Likewise.
27596         * modules/pow (configure.ac): Likewise.
27597         * modules/remainder (configure.ac): Likewise.
27598         * modules/sin (configure.ac): Likewise.
27599         * modules/sinh (configure.ac): Likewise.
27600         * modules/tan (configure.ac): Likewise.
27601         * modules/tanh (configure.ac): Likewise.
27602         * modules/y0 (configure.ac): Likewise.
27603         * modules/y1 (configure.ac): Likewise.
27604         * modules/yn (configure.ac): Likewise.
27605         Suggested by Paolo Bonzini.
27606
27607 2010-01-31  Bruno Haible  <bruno@clisp.org>
27608
27609         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27610
27611 2010-01-31  Bruno Haible  <bruno@clisp.org>
27612
27613         Work around getdelim() bug on FreeBSD 8.0.
27614         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27615         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27616         not work.
27617         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27618         is 1.
27619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27620         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27621         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27622         a non-zero size.
27623         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27624
27625 2010-01-31  Bruno Haible  <bruno@clisp.org>
27626
27627         Work around getline() bug on FreeBSD 8.0.
27628         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27629         and a non-zero size.
27630         * tests/test-getline.c (main): Likewise.
27631         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27632         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27633
27634 2010-01-28  Eric Blake  <ebb9@byu.net>
27635
27636         regex: fix build failure
27637         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27638         platforms.
27639
27640 2010-01-28  Jim Meyering  <meyering@redhat.com>
27641
27642         regex: do not ignore memory allocation failure
27643         * lib/regex_internal.c (create_cd_newstate): Detect
27644         re_node_set_init_copy failure.   Extracted from glibc commit
27645         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27646
27647         regex: sync more white-space changes from libc
27648         * lib/regex_internal.c: White-space only changes.
27649         * lib/regexec.c: Likewise.
27650
27651         regex: add many uses of __attribute_warn_unused_result__
27652         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27653         * lib/regexec.c: Likewise.
27654         Extracted from a messy glibc commit.
27655
27656         regcomp.c: spelling and merge-artifact from glibc
27657         * lib/regcomp.c: Merge remainder of glibc's
27658         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27659
27660         regcomp.c: sync white-space changes from glibc
27661         * lib/regcomp.c: Merge to accommodate white space
27662         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27663
27664         regcomp.c: do not ignore internal return values
27665         * lib/regcomp.c: Do not ignore internal return values.
27666         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27667         but without its white-space changes and spelling fixes.
27668
27669         regex_internal.h: define __attribute_warn_unused_result__
27670         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27671
27672         maint: add a syntax-check rule to check for vulnerable Makefile.in
27673         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27674
27675 2010-01-27  Jim Meyering  <meyering@redhat.com>
27676
27677         ncftpput-ftp: clean up spaces
27678         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27679         Remove trailing blanks.
27680
27681 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27682
27683         * build-aux/git-version-gen: Fix copyright statement.
27684         * build-aux/gnupload: Likewise.
27685         * tests/test-arcfour.c: Likewise.
27686         * tests/test-arctwo.c: Likewise.
27687         * tests/test-count-one-bits.c: Likewise.
27688         * tests/test-crc.c: Likewise.
27689         * tests/test-des.c: Likewise.
27690         * tests/test-gc-arcfour.c: Likewise.
27691         * tests/test-gc-arctwo.c: Likewise.
27692         * tests/test-gc-des.c: Likewise.
27693         * tests/test-gc-hmac-md5.c: Likewise.
27694         * tests/test-gc-hmac-sha1.c: Likewise.
27695         * tests/test-gc-md2.c: Likewise.
27696         * tests/test-gc-md4.c: Likewise.
27697         * tests/test-gc-md5.c: Likewise.
27698         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27699         * tests/test-gc-rijndael.c: Likewise.
27700         * tests/test-gc-sha1.c: Likewise.
27701         * tests/test-gc.c: Likewise.
27702         * tests/test-gethostname.c: Likewise.
27703         * tests/test-gettimeofday.c: Likewise.
27704         * tests/test-hash.c: Likewise.
27705         * tests/test-hmac-md5.c: Likewise.
27706         * tests/test-hmac-sha1.c: Likewise.
27707         * tests/test-md2.c: Likewise.
27708         * tests/test-md4.c: Likewise.
27709         * tests/test-md5.c: Likewise.
27710         * tests/test-memchr.c: Likewise.
27711         * tests/test-memchr2.c: Likewise.
27712         * tests/test-memcmp.c: Likewise.
27713         * tests/test-memmem.c: Likewise.
27714         * tests/test-memrchr.c: Likewise.
27715         * tests/test-rawmemchr.c: Likewise.
27716         * tests/test-read-file.c: Likewise.
27717         * tests/test-rijndael.c: Likewise.
27718         * tests/test-sockets.c: Likewise.
27719         * tests/test-strchrnul.c: Likewise.
27720         * tests/test-strstr.c: Likewise.
27721         * tests/test-strtod.c: Likewise.
27722         * build-aux/ncftpput-ftp: Likewise.
27723
27724 2010-01-26  Eric Blake  <ebb9@byu.net>
27725
27726         ignore-value: update recommended header name
27727         * modules/ignore-value (Include): Only use <> for headers that
27728         exist in glibc.
27729
27730 2010-01-26  Jim Meyering  <meyering@redhat.com>
27731
27732         test-userspec.c: avoid compiler warnings
27733         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27734         and "initialization discards qualifiers..." warnings.
27735         Put the first "uid" in its own scope, and make char* members "const".
27736
27737 2010-01-25  Bruno Haible  <bruno@clisp.org>
27738
27739         gnulib-tool: Make warning diagnostics consistent.
27740         * gnulib-tool (func_warning): New function.
27741         Use it everywhere where gnulib-tool produces output to stderr and it is
27742         not a fatal error.
27743
27744 2010-01-25  Bruno Haible  <bruno@clisp.org>
27745
27746         Fix test dependencies.
27747         * modules/xstrtol-tests (Depends-on): Add inttypes.
27748         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27749
27750 2010-01-25 Pádraig Brady <P@draigBrady.com>
27751
27752         syntax-check: detect incorrect boolean macro values in config.h
27753         * modules/maintainer-makefile (configure.ac): Parameterize the location
27754         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27755         The logic is from Eric Blake and the location indicated by Jim Meyering.
27756         Note the more natural CONFIG_HEADER name is prohibited by automake
27757         for backwards compatibility reasons.
27758         * top/maint.mk (sc_Wundef_boolean): New rule.
27759
27760 2010-01-25  Jim Meyering  <meyering@redhat.com>
27761
27762         bootstrap: detect MacOS 10.6's shasum, too
27763         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27764         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27765
27766 2010-01-23  Jim Meyering  <meyering@redhat.com>
27767
27768         xstrtoll: new module
27769         * modules/xstrtoll: New file.
27770         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27771         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27772         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27773         ./configure fails if you use this module and lack "long long".
27774         * modules/xstrtoll-tests: New module.
27775         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27776         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27777         new init.sh-based test framework.
27778
27779 2010-01-24  Bruno Haible  <bruno@clisp.org>
27780
27781         Tests for module 'yn'.
27782         * modules/yn-tests: New file.
27783         * tests/test-yn.c: New file.
27784
27785         Tests for module 'y1'.
27786         * modules/y1-tests: New file.
27787         * tests/test-y1.c: New file.
27788
27789         Tests for module 'y0'.
27790         * modules/y0-tests: New file.
27791         * tests/test-y0.c: New file.
27792
27793         Tests for module 'tanh'.
27794         * modules/tanh-tests: New file.
27795         * tests/test-tanh.c: New file.
27796
27797         Tests for module 'tan'.
27798         * modules/tan-tests: New file.
27799         * tests/test-tan.c: New file.
27800
27801         Tests for module 'sqrt'.
27802         * modules/sqrt-tests: New file.
27803         * tests/test-sqrt.c: New file.
27804
27805         Tests for module 'sinh'.
27806         * modules/sinh-tests: New file.
27807         * tests/test-sinh.c: New file.
27808
27809         Tests for module 'sin'.
27810         * modules/sin-tests: New file.
27811         * tests/test-sin.c: New file.
27812
27813         Tests for module 'rint'.
27814         * modules/rint-tests: New file.
27815         * tests/test-rint.c: New file.
27816
27817         Tests for module 'remainder'.
27818         * modules/remainder-tests: New file.
27819         * tests/test-remainder.c: New file.
27820
27821         Tests for module 'pow'.
27822         * modules/pow-tests: New file.
27823         * tests/test-pow.c: New file.
27824
27825         Tests for module 'nextafter'.
27826         * modules/nextafter-tests: New file.
27827         * tests/test-nextafter.c: New file.
27828
27829         Tests for module 'modf'.
27830         * modules/modf-tests: New file.
27831         * tests/test-modf.c: New file.
27832
27833         Tests for module 'logb'.
27834         * modules/logb-tests: New file.
27835         * tests/test-logb.c: New file.
27836
27837         Tests for module 'log1p'.
27838         * modules/log1p-tests: New file.
27839         * tests/test-log1p.c: New file.
27840
27841         Tests for module 'log10'.
27842         * modules/log10-tests: New file.
27843         * tests/test-log10.c: New file.
27844
27845         Tests for module 'log'.
27846         * modules/log-tests: New file.
27847         * tests/test-log.c: New file.
27848
27849         Tests for module 'lgamma'.
27850         * modules/lgamma-tests: New file.
27851         * tests/test-lgamma.c: New file.
27852
27853         Tests for module 'ldexp'.
27854         * modules/ldexp-tests: New file.
27855         * tests/test-ldexp.c: New file.
27856
27857         Tests for module 'jn'.
27858         * modules/jn-tests: New file.
27859         * tests/test-jn.c: New file.
27860
27861         Tests for module 'j1'.
27862         * modules/j1-tests: New file.
27863         * tests/test-j1.c: New file.
27864
27865         Tests for module 'j0'.
27866         * modules/j0-tests: New file.
27867         * tests/test-j0.c: New file.
27868
27869         Tests for module 'hypot'.
27870         * modules/hypot-tests: New file.
27871         * tests/test-hypot.c: New file.
27872
27873         Tests for module 'fmod'.
27874         * modules/fmod-tests: New file.
27875         * tests/test-fmod.c: New file.
27876
27877         Tests for module 'fabs'.
27878         * modules/fabs-tests: New file.
27879         * tests/test-fabs.c: New file.
27880
27881         Tests for module 'exp'.
27882         * modules/exp-tests: New file.
27883         * tests/test-exp.c: New file.
27884
27885         Tests for module 'erfc'.
27886         * modules/erfc-tests: New file.
27887         * tests/test-erfc.c: New file.
27888
27889         Tests for module 'erf'.
27890         * modules/erf-tests: New file.
27891         * tests/test-erf.c: New file.
27892
27893         Tests for module 'cosh'.
27894         * modules/cosh-tests: New file.
27895         * tests/test-cosh.c: New file.
27896
27897         Tests for module 'cos'.
27898         * modules/cos-tests: New file.
27899         * tests/test-cos.c: New file.
27900
27901         Tests for module 'copysign'.
27902         * modules/copysign-tests: New file.
27903         * tests/test-copysign.c: New file.
27904
27905         Tests for module 'cbrt'.
27906         * modules/cbrt-tests: New file.
27907         * tests/test-cbrt.c: New file.
27908
27909         Tests for module 'atan2'.
27910         * modules/atan2-tests: New file.
27911         * tests/test-atan2.c: New file.
27912
27913         Tests for module 'atan'.
27914         * modules/atan-tests: New file.
27915         * tests/test-atan.c: New file.
27916
27917         Tests for module 'asin'.
27918         * modules/asin-tests: New file.
27919         * tests/test-asin.c: New file.
27920
27921         Tests for module 'acos'.
27922         * modules/acos-tests: New file.
27923         * tests/test-acos.c: New file.
27924
27925 2010-01-24  Bruno Haible  <bruno@clisp.org>
27926
27927         Fix tests for common <math.h> functions.
27928         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
27929         code snippet that references the function pointer, rather than merely
27930         calling the function. Substitute the FUNC_LIBM variable.
27931         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
27932         * modules/acos (configure.ac): Likewise.
27933         * modules/asin (configure.ac): Likewise.
27934         * modules/atan (configure.ac): Likewise.
27935         * modules/atan2 (configure.ac): Likewise.
27936         * modules/cbrt (configure.ac): Likewise.
27937         * modules/copysign (configure.ac): Likewise.
27938         * modules/cos (configure.ac): Likewise.
27939         * modules/cosh (configure.ac): Likewise.
27940         * modules/erf (configure.ac): Likewise.
27941         * modules/erfc (configure.ac): Likewise.
27942         * modules/exp (configure.ac): Likewise.
27943         * modules/fabs (configure.ac): Likewise.
27944         * modules/fmod (configure.ac): Likewise.
27945         * modules/hypot (configure.ac): Likewise.
27946         * modules/j0 (configure.ac): Likewise.
27947         * modules/j1 (configure.ac): Likewise.
27948         * modules/jn (configure.ac): Likewise.
27949         * modules/ldexp (configure.ac): Likewise.
27950         * modules/lgamma (configure.ac): Likewise.
27951         * modules/log (configure.ac): Likewise.
27952         * modules/log10 (configure.ac): Likewise.
27953         * modules/log1p (configure.ac): Likewise.
27954         * modules/logb (configure.ac): Likewise.
27955         * modules/modf (configure.ac): Likewise.
27956         * modules/nextafter (configure.ac): Likewise.
27957         * modules/pow (configure.ac): Likewise.
27958         * modules/remainder (configure.ac): Likewise.
27959         * modules/rint (configure.ac): Likewise.
27960         * modules/sin (configure.ac): Likewise.
27961         * modules/sinh (configure.ac): Likewise.
27962         * modules/tan (configure.ac): Likewise.
27963         * modules/tanh (configure.ac): Likewise.
27964         * modules/y0 (configure.ac): Likewise.
27965         * modules/y1 (configure.ac): Likewise.
27966         * modules/yn (configure.ac): Likewise.
27967
27968 2010-01-24  Bruno Haible  <bruno@clisp.org>
27969
27970         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
27971         * tests/test-acosl.c (x): New variable.
27972         (main): Store argument in x and fetch it from x.
27973         * tests/test-asinl.c (x): New variable.
27974         (main): Store argument in x and fetch it from x.
27975         * tests/test-atanl.c (x): New variable.
27976         (main): Store argument in x and fetch it from x.
27977         * tests/test-cosl.c (x): New variable.
27978         (main): Store argument in x and fetch it from x.
27979         * tests/test-expl.c (x): New variable.
27980         (main): Store argument in x and fetch it from x.
27981         * tests/test-logl.c (x): New variable.
27982         (main): Store argument in x and fetch it from x.
27983         * tests/test-sinl.c (x): New variable.
27984         (main): Store argument in x and fetch it from x.
27985         * tests/test-sqrtl.c (x): New variable.
27986         (main): Store argument in x and fetch it from x.
27987         * tests/test-tanl.c (x): New variable.
27988         (main): Store argument in x and fetch it from x.
27989
27990 2010-01-24  Bruno Haible  <bruno@clisp.org>
27991
27992         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
27993         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
27994         assignments to the initial TESTS_ENVIRONMENT.
27995         * doc/gnulib.texi (Unit test modules): Document it.
27996         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
27997         TESTS_ENVIRONMENT.
27998         * modules/btowc-tests (Makefile.am): Likewise.
27999         * modules/c-stack-tests (Makefile.am): Likewise.
28000         * modules/c-strcase-tests (Makefile.am): Likewise.
28001         * modules/copy-file-tests (Makefile.am): Likewise.
28002         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28003         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28004         * modules/mbrtowc-tests (Makefile.am): Likewise.
28005         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28006         * modules/mbscasestr-tests (Makefile.am): Likewise.
28007         * modules/mbschr-tests (Makefile.am): Likewise.
28008         * modules/mbscspn-tests (Makefile.am): Likewise.
28009         * modules/mbsinit-tests (Makefile.am): Likewise.
28010         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28011         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28012         * modules/mbspbrk-tests (Makefile.am): Likewise.
28013         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28014         * modules/mbsrchr-tests (Makefile.am): Likewise.
28015         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28016         * modules/mbsspn-tests (Makefile.am): Likewise.
28017         * modules/mbsstr-tests (Makefile.am): Likewise.
28018         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28019         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28020         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28021         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28022         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28023         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28024         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28025         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28026         * modules/wcrtomb-tests (Makefile.am): Likewise.
28027         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28028         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28029         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28030         assignments from TESTS_ENVIRONMENT.
28031         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28032         augmentation.
28033         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28034         * modules/atexit-tests (Makefile.am): Likewise.
28035         * modules/binary-io-tests (Makefile.am): Likewise.
28036         * modules/closein-tests (Makefile.am): Likewise.
28037         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28038         * modules/exclude-tests (Makefile.am): Likewise.
28039         * modules/fflush-tests (Makefile.am): Likewise.
28040         * modules/fpending-tests (Makefile.am): Likewise.
28041         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28042         * modules/freadahead-tests (Makefile.am): Likewise.
28043         * modules/freadptr-tests (Makefile.am): Likewise.
28044         * modules/freadseek-tests (Makefile.am): Likewise.
28045         * modules/fseek-tests (Makefile.am): Likewise.
28046         * modules/fseeko-tests (Makefile.am): Likewise.
28047         * modules/ftell-tests (Makefile.am): Likewise.
28048         * modules/ftello-tests (Makefile.am): Likewise.
28049         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28050         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28051         * modules/lseek-tests (Makefile.am): Likewise.
28052         * modules/parse-duration-tests (Makefile.am): Likewise.
28053         * modules/perror-tests (Makefile.am): Likewise.
28054         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28055         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28056         * modules/pipe-tests (Makefile.am): Likewise.
28057         * modules/pread-tests (Makefile.am): Likewise.
28058         * modules/printf-posix-tests (Makefile.am): Likewise.
28059         * modules/select-tests (Makefile.am): Likewise.
28060         * modules/sigpipe-tests (Makefile.am): Likewise.
28061         * modules/tsearch-tests (Makefile.am): Likewise.
28062         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28063         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28064         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28065         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28066         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28067         * modules/version-etc-tests (Makefile.am): Likewise.
28068         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28069         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28070         * modules/xalloc-die-tests (Makefile.am): Likewise.
28071         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28072         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28073         * modules/xstrtol-tests (Makefile.am): Likewise.
28074         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28075         * modules/yesno-tests (Makefile.am): Likewise.
28076         Suggested by Jim Meyering.
28077
28078 2010-01-24  Bruno Haible  <bruno@clisp.org>
28079
28080         More documentation.
28081         * doc/gnulib.texi (Writing modules): New chapter.
28082         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28083         the new chapter.
28084
28085 2010-01-24  Jim Meyering  <meyering@redhat.com>
28086
28087         maint.mk: do not prepend "./" after filtering
28088         * top/maint.mk (_prepend_srcdir_prefix): New variable
28089         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28090         "./" when $(srcdir) is ".".
28091
28092         define STREQ(a,b) consistently, removing useless parentheses
28093         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28094         since the only risk is that "a" or "b" contains an unparenthesized
28095         comma, but if either did that, STREQ would have 3 or more arguments.
28096         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28097         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28098         * lib/hash-triple.c (STREQ): Likewise.
28099         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28100         * lib/getugroups.c (STREQ): Likewise.
28101
28102 2010-01-23  Jim Meyering  <meyering@redhat.com>
28103
28104         maint.mk: fix syntax-check in a non-srcdir build directory
28105         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28106         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28107
28108 2010-01-22  Jim Meyering  <meyering@redhat.com>
28109
28110         userspec: add unit tests
28111         * tests/test-userspec.c: New file.
28112         * modules/userspec-tests: Likewise.
28113
28114 2010-01-21  Jim Meyering  <meyering@redhat.com>
28115
28116         maint.mk: handle source file names containing "." robustly
28117         * top/maint.mk (_dot_escaped_srcdir): Define.
28118         (VC_LIST): Use it in LHS of sed substitution.
28119
28120 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28121
28122         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28123         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28124         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28125         from a non-srcdir build.
28126
28127 2010-01-20  Eric Blake  <ebb9@byu.net>
28128
28129         warn-on-use: use instead of link-warning
28130         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28131         * modules/unistd (Depends-on, Makefile.am): Likewise.
28132         * modules/arpa_inet (Depends-on): Replace link-warning with
28133         warn-on-use.
28134         (Makefile.am): Update rules accordingly.
28135         * modules/ctype (Depends-on, Makefile.am): Likewise.
28136         * modules/dirent (Depends-on, Makefile.am): Likewise.
28137         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28138         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28139         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28140         * modules/locale (Depends-on, Makefile.am): Likewise.
28141         * modules/math (Depends-on, Makefile.am): Likewise.
28142         * modules/search (Depends-on, Makefile.am): Likewise.
28143         * modules/signal (Depends-on, Makefile.am): Likewise.
28144         * modules/spawn (Depends-on, Makefile.am): Likewise.
28145         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28146         * modules/string (Depends-on, Makefile.am): Likewise.
28147         * modules/strings (Depends-on, Makefile.am): Likewise.
28148         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28149         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28150         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28151         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28152         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28153         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28154         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28155         * modules/wchar (Depends-on, Makefile.am): Likewise.
28156         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28157         should be poisoned.
28158         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28159         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28160         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28161         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28162         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28163         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28164         * m4/math_h.m4 (gl_MATH_H): Likewise.
28165         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28166         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28167         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28168         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28169         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28170         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28171         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28172         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28173         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28174         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28175         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28176         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28177         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28178         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28179         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28180         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28181         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28182         GL_LINK_WARNING.
28183         * lib/ctype.in.h: Likewise.
28184         * lib/dirent.in.h: Likewise.
28185         * lib/fcntl.in.h: Likewise.
28186         * lib/inttypes.in.h: Likewise.
28187         * lib/langinfo.in.h: Likewise.
28188         * lib/locale.in.h: Likewise.
28189         * lib/math.in.h: Likewise.
28190         * lib/search.in.h: Likewise.
28191         * lib/signal.in.h: Likewise.
28192         * lib/spawn.in.h: Likewise.
28193         * lib/stdio.in.h: Likewise.
28194         * lib/stdlib.in.h: Likewise.
28195         * lib/string.in.h: Likewise.
28196         * lib/strings.in.h: Likewise.
28197         * lib/sys_file.in.h: Likewise.
28198         * lib/sys_ioctl.in.h: Likewise.
28199         * lib/sys_select.in.h: Likewise.
28200         * lib/sys_socket.in.h: Likewise.
28201         * lib/sys_stat.in.h: Likewise.
28202         * lib/sys_times.in.h: Likewise.
28203         * lib/sys_utsname.in.h: Likewise.
28204         * lib/unistd.in.h: Likewise.
28205         * lib/wchar.in.h: Likewise.
28206
28207 2010-01-20  Bruno Haible  <bruno@clisp.org>
28208
28209         Avoid duplicate -lm.
28210         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28211         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28212         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28213         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28214         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28215         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28216         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28217         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28218         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28219         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28220         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28221         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28222         Reported by Paolo Bonzini.
28223
28224 2010-01-19  Bruno Haible  <bruno@clisp.org>
28225
28226         langinfo, nl_langinfo: Relicense under LGPLv2+.
28227         * modules/langinfo (License): Change to LGPLv2+.
28228         * modules/nl_langinfo (License): Likewise.
28229         Patch by David Lutterkort <lutter@redhat.com>.
28230
28231 2010-01-19  Bruno Haible  <bruno@clisp.org>
28232
28233         Avoid compilation error with cc on OSF/1 5.1.
28234         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28235         statement, not before.
28236         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28237
28238 2010-01-18  Bruno Haible  <bruno@clisp.org>
28239
28240         Avoid a link error due to the __printf__ symbol.
28241         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28242         and 2.6.x.
28243         (__format__, __printf__): Remove definitions.
28244         * lib/argp-fmtstream.h: Likewise.
28245         * lib/argp.h: Likewise.
28246         * lib/error.h: Likewise.
28247         * lib/vasnprintf.h: Likewise.
28248         * lib/xprintf.h: Likewise.
28249         * lib/xvasprintf.h: Likewise.
28250         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28251
28252 2010-01-18  Bruno Haible  <bruno@clisp.org>
28253
28254         Tests for module 'tanl'.
28255         * modules/tanl-tests: New file.
28256         * tests/test-tanl.c: New file.
28257
28258         Tests for module 'sqrtl'.
28259         * modules/sqrtl-tests: New file.
28260         * tests/test-sqrtl.c: New file.
28261
28262         Tests for module 'sinl'.
28263         * modules/sinl-tests: New file.
28264         * tests/test-sinl.c: New file.
28265
28266         Tests for module 'logl'.
28267         * modules/logl-tests: New file.
28268         * tests/test-logl.c: New file.
28269
28270         Tests for module 'expl'.
28271         * modules/expl-tests: New file.
28272         * tests/test-expl.c: New file.
28273
28274         Tests for module 'cosl'.
28275         * modules/cosl-tests: New file.
28276         * tests/test-cosl.c: New file.
28277
28278         Tests for module 'atanl'.
28279         * modules/atanl-tests: New file.
28280         * tests/test-atanl.c: New file.
28281
28282         Tests for module 'asinl'.
28283         * modules/asinl-tests: New file.
28284         * tests/test-asinl.c: New file.
28285
28286         Tests for module 'acosl'.
28287         * modules/acosl-tests: New file.
28288         * tests/test-acosl.c: New file.
28289
28290         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28291         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28292         tanl): Use the standard gnulib idiom.
28293         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28294         * lib/sinl.c: Likewise.
28295         * lib/tanl.c: Don't include trigl.c.
28296         (kernel_tanl): Make static.
28297         * lib/sincosl.c: Include trigl.h first.
28298         * lib/trigl.c: Likewise.
28299         * m4/acosl.m4: New file.
28300         * m4/asinl.m4: New file.
28301         * m4/atanl.m4: New file.
28302         * m4/cosl.m4: New file.
28303         * m4/expl.m4: New file.
28304         * m4/logl.m4: New file.
28305         * m4/sinl.m4: New file.
28306         * m4/sqrtl.m4: New file.
28307         * m4/tanl.m4: New file.
28308         * m4/mathl.m4: Remove file.
28309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28310         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28311         Don't initialize GNULIB_MATHL.
28312         * modules/acosl: New file.
28313         * modules/asinl: New file.
28314         * modules/atanl: New file.
28315         * modules/cosl: New file.
28316         * modules/expl: New file.
28317         * modules/logl: New file.
28318         * modules/sinl: New file.
28319         * modules/sqrtl: New file.
28320         * modules/tanl: New file.
28321         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28322         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28323         substitute GNULIB_MATHL.
28324         * modules/mathl: Rewritten.
28325         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28326         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28327         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28328         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28329         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28330         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28331         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28332         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28333         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28334
28335 2010-01-18  Bruno Haible  <bruno@clisp.org>
28336
28337         sqrt: Make gl_FUNC_SQRT requirable.
28338         * m4/sqrt.m4: New file.
28339         * modules/sqrt (Files): Add it.
28340         (configure.ac): Invoke gl_FUNC_SQRT.
28341
28342 2010-01-18  Bruno Haible  <bruno@clisp.org>
28343
28344         New modules for common <math.h> functions.
28345         * m4/mathfunc.m4: New file.
28346         * modules/acos: New file.
28347         * modules/asin: New file.
28348         * modules/atan: New file.
28349         * modules/atan2: New file.
28350         * modules/cbrt: New file.
28351         * modules/copysign: New file.
28352         * modules/cos: New file.
28353         * modules/cosh: New file.
28354         * modules/erf: New file.
28355         * modules/erfc: New file.
28356         * modules/exp: New file.
28357         * modules/fabs: New file.
28358         * modules/fmod: New file.
28359         * modules/hypot: New file.
28360         * modules/j0: New file.
28361         * modules/j1: New file.
28362         * modules/jn: New file.
28363         * modules/ldexp: New file.
28364         * modules/lgamma: New file.
28365         * modules/log: New file.
28366         * modules/log10: New file.
28367         * modules/log1p: New file.
28368         * modules/logb: New file.
28369         * modules/modf: New file.
28370         * modules/nextafter: New file.
28371         * modules/pow: New file.
28372         * modules/remainder: New file.
28373         * modules/rint: New file.
28374         * modules/sin: New file.
28375         * modules/sinh: New file.
28376         * modules/sqrt: New file.
28377         * modules/tan: New file.
28378         * modules/tanh: New file.
28379         * modules/y0: New file.
28380         * modules/y1: New file.
28381         * modules/yn: New file.
28382         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28383         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28384         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28385         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28386         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28387         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28388         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28389         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28390         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28391         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28392         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28393         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28394         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28395         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28396         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28397         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28398         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28399         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28400         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28401         * doc/posix-functions/log.texi: Mention the 'log' module.
28402         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28403         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28404         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28405         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28406         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28407         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28408         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28409         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28410         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28411         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28412         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28413         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28414         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28415         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28416         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28417         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28418
28419 2010-01-18  Jim Meyering  <meyering@redhat.com>
28420
28421         ignore-value: relax license to LGPLv2+
28422         * modules/ignore-value (License): Relax to LGPLv2+.
28423
28424         getdate: don't leak when TZ contains two or more '"'s
28425         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28426         double quote in TZ after the first one.
28427
28428         readtokens: do not leak internal token_lengths buffer
28429         * lib/readtokens.c (readtokens): Free the local, lengths,
28430         when the supplied "token_lengths" parameter is NULL.
28431
28432 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28433
28434         Fix a couple of missing LIBTHREAD link failures on AIX.
28435         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28436         $(LIBTHREAD).
28437         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28438
28439         Link test-poll against INET_PTON_LIB.
28440         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28441         for inet_pton on Solaris 10.
28442
28443 2010-01-17  Bruno Haible  <bruno@clisp.org>
28444
28445         unistdio/*-sprintf: Fix typo in module description.
28446         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28447         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28448         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28449         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28450         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28451         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28452         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28453         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28454
28455 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28456
28457         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28458         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28459         variables in shell case patterns, for AIX and HP-UX ksh.
28460
28461         Split large sed scripts, for HP-UX sed.
28462         * modules/stdio: Split sed scripts around 50 sed commands,
28463         to avoid HP-UX limit of 99 commands, in the near future.
28464         * modules/string: Likewise.
28465         * modules/unistd: Likewise.
28466
28467         gnulib-tool: avoid writing in the current directory.
28468         * gnulib-tool (func_emit_lib_Makefile_am)
28469         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28470         not in the current directory, so concurrent gnulib-tool
28471         instances do not interfere.
28472
28473 2010-01-16  Jim Meyering  <meyering@redhat.com>
28474
28475         doc: update users.txt
28476         * users.txt: Add grep.
28477         (diffutils, gzip): Update URLs.
28478
28479 2010-01-12  Bruno Haible  <bruno@clisp.org>
28480
28481         posix_spawn: Avoid test failure on Cygwin.
28482         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28483         characters.
28484         Reported by Simon Josefsson.
28485
28486 2010-01-12  Bruno Haible  <bruno@clisp.org>
28487
28488         * tests/test-cond.c (main): When skipping the test, show the reason.
28489
28490 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28491
28492         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28493
28494 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28495
28496         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28497         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28498
28499 2010-01-12  Eric Blake  <ebb9@byu.net>
28500
28501         build: guarantee AS_VAR_IF
28502         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28503         (gl_AS_VAR_IF): Move...
28504         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28505         Reported by Simon Josefsson.
28506
28507 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28508
28509         * lib/stdio.in.h: Fix typo.
28510
28511 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28512
28513         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28514         libgpg-error.
28515
28516 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28517
28518         * tests/test-xalloc-die.sh: Use $EXEEXT.
28519
28520 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28521             Bruno Haible  <bruno@clisp.org>
28522
28523         getlogin, getlogin_r: Avoid test failure.
28524         * tests/test-getlogin.c: Include <stdio.h>.
28525         (main): Skip the test when the function fails because stdin is not a
28526         tty.
28527         * tests/test-getlogin_r.c: Include <stdio.h>.
28528         (main): Skip the test when the function fails because stdin is not a
28529         tty.
28530
28531 2010-01-11  Eric Blake  <ebb9@byu.net>
28532
28533         tests: avoid more large file warnings
28534         * tests/test-fflush.c: Avoid warning about ftell use.
28535         * tests/test-fseek.c: Avoid warning about fseek use.
28536
28537 2010-01-10  Bruno Haible  <bruno@clisp.org>
28538
28539         nproc: Work better on Linux when /proc and /sys are not mounted.
28540         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28541         as lower bound when, on glibc/Linux systems,
28542         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28543         Suggested by Pádraig Brady <P@draigbrady.com>.
28544         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28545
28546         nproc: Refactor.
28547         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28548         extracted from num_processors.
28549         (num_processors): Call it.
28550
28551 2010-01-11  Jim Meyering  <meyering@redhat.com>
28552
28553         utimecmp: avoid new warning from upcoming gcc-4.5.0
28554         * lib/utimecmp.c (BILLION): Define using #define rather than an
28555         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28556
28557 2010-01-11  Eric Blake  <ebb9@byu.net>
28558
28559         math: add portability warnings for classification macros
28560         * modules/math (Depends-on): Add warn-on-use.
28561         (Makefile.am): Provide new substitutions.
28562         * m4/math_h.m4 (gl_MATH_H): Require inline.
28563         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28564         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28565         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28566         implement warnings.
28567
28568         unistd: warn on use of environ without module
28569         * modules/unistd (Depends-on): Add warn-on-use.
28570         (Makefile.am): Provide new substitutions.
28571         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28572         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28573
28574         stdio: warn on suspicious uses
28575         * modules/stdio (Depends-on): Add warn-on-use.
28576         (Makefile.am): Provide new substitutions.
28577         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28578         fseeko.
28579         * lib/stdio.in.h (gets): Always warn on use.
28580         (fseek, ftell): Adjust when warnings are issued, and honor
28581         _GL_NO_LARGE_FILES as a way to silence the warning.
28582         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28583         any warning about large file offsets.
28584         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28585         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28586         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28587         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28588         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28589         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28590         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28591         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28592
28593         warn-on-use: new module
28594         * modules/warn-on-use: New file.
28595         * build-aux/warn-on-use.h: Likewise.
28596         * m4/warn-on-use.m4: Likewise.
28597         * MODULES.html.sh (Support for building): Mention it.
28598
28599 2010-01-10  Bruno Haible  <bruno@clisp.org>
28600
28601         Tests for module 'unistr/u32-strdup'.
28602         * modules/unistr/u32-strdup-tests: New file.
28603         * tests/unistr/test-u32-strdup.c: New file.
28604
28605         Tests for module 'unistr/u16-strdup'.
28606         * modules/unistr/u16-strdup-tests: New file.
28607         * tests/unistr/test-u16-strdup.c: New file.
28608
28609         Tests for module 'unistr/u8-strdup'.
28610         * modules/unistr/u8-strdup-tests: New file.
28611         * tests/unistr/test-u8-strdup.c: New file.
28612         * tests/unistr/test-strdup.h: New file.
28613
28614         Tests for module 'unistr/u32-strncmp'.
28615         * modules/unistr/u32-strncmp-tests: New file.
28616         * tests/unistr/test-u32-strncmp.c: New file.
28617
28618         Tests for module 'unistr/u16-strncmp'.
28619         * modules/unistr/u16-strncmp-tests: New file.
28620         * tests/unistr/test-u16-strncmp.c: New file.
28621
28622         Tests for module 'unistr/u8-strncmp'.
28623         * modules/unistr/u8-strncmp-tests: New file.
28624         * tests/unistr/test-u8-strncmp.c: New file.
28625         * tests/unistr/test-strncmp.h: New file.
28626
28627         Tests for module 'unistr/u32-strcoll'.
28628         * modules/unistr/u32-strcoll-tests: New file.
28629         * tests/unistr/test-u32-strcoll.c: New file.
28630
28631         Tests for module 'unistr/u16-strcoll'.
28632         * modules/unistr/u16-strcoll-tests: New file.
28633         * tests/unistr/test-u16-strcoll.c: New file.
28634
28635         Tests for module 'unistr/u8-strcoll'.
28636         * modules/unistr/u8-strcoll-tests: New file.
28637         * tests/unistr/test-u8-strcoll.c: New file.
28638
28639         Tests for module 'unistr/u32-strcmp'.
28640         * modules/unistr/u32-strcmp-tests: New file.
28641         * tests/unistr/test-u32-strcmp.c: New file.
28642         * tests/unistr/test-u32-strcmp.h: New file.
28643
28644         Tests for module 'unistr/u16-strcmp'.
28645         * modules/unistr/u16-strcmp-tests: New file.
28646         * tests/unistr/test-u16-strcmp.c: New file.
28647         * tests/unistr/test-u16-strcmp.h: New file.
28648
28649         Tests for module 'unistr/u8-strcmp'.
28650         * modules/unistr/u8-strcmp-tests: New file.
28651         * tests/unistr/test-u8-strcmp.c: New file.
28652         * tests/unistr/test-u8-strcmp.h: New file.
28653         * tests/unistr/test-strcmp.h: New file.
28654
28655         Tests for module 'unistr/u32-strncat'.
28656         * modules/unistr/u32-strncat-tests: New file.
28657         * tests/unistr/test-u32-strncat.c: New file.
28658
28659         Tests for module 'unistr/u16-strncat'.
28660         * modules/unistr/u16-strncat-tests: New file.
28661         * tests/unistr/test-u16-strncat.c: New file.
28662
28663         Tests for module 'unistr/u8-strncat'.
28664         * modules/unistr/u8-strncat-tests: New file.
28665         * tests/unistr/test-u8-strncat.c: New file.
28666         * tests/unistr/test-strncat.h: New file.
28667
28668         Tests for module 'unistr/u32-strcat'.
28669         * modules/unistr/u32-strcat-tests: New file.
28670         * tests/unistr/test-u32-strcat.c: New file.
28671
28672         Tests for module 'unistr/u16-strcat'.
28673         * modules/unistr/u16-strcat-tests: New file.
28674         * tests/unistr/test-u16-strcat.c: New file.
28675
28676         Tests for module 'unistr/u8-strcat'.
28677         * modules/unistr/u8-strcat-tests: New file.
28678         * tests/unistr/test-u8-strcat.c: New file.
28679         * tests/unistr/test-strcat.h: New file.
28680
28681         Tests for module 'unistr/u32-stpncpy'.
28682         * modules/unistr/u32-stpncpy-tests: New file.
28683         * tests/unistr/test-u32-stpncpy.c: New file.
28684
28685         Tests for module 'unistr/u16-stpncpy'.
28686         * modules/unistr/u16-stpncpy-tests: New file.
28687         * tests/unistr/test-u16-stpncpy.c: New file.
28688
28689         Tests for module 'unistr/u8-stpncpy'.
28690         * modules/unistr/u8-stpncpy-tests: New file.
28691         * tests/unistr/test-u8-stpncpy.c: New file.
28692         * tests/unistr/test-stpncpy.h: New file.
28693
28694         Tests for module 'unistr/u32-strncpy'.
28695         * modules/unistr/u32-strncpy-tests: New file.
28696         * tests/unistr/test-u32-strncpy.c: New file.
28697
28698         Tests for module 'unistr/u16-strncpy'.
28699         * modules/unistr/u16-strncpy-tests: New file.
28700         * tests/unistr/test-u16-strncpy.c: New file.
28701
28702         Tests for module 'unistr/u8-strncpy'.
28703         * modules/unistr/u8-strncpy-tests: New file.
28704         * tests/unistr/test-u8-strncpy.c: New file.
28705         * tests/unistr/test-strncpy.h: New file.
28706
28707         Tests for module 'unistr/u32-stpcpy'.
28708         * modules/unistr/u32-stpcpy-tests: New file.
28709         * tests/unistr/test-u32-stpcpy.c: New file.
28710
28711         Tests for module 'unistr/u16-stpcpy'.
28712         * modules/unistr/u16-stpcpy-tests: New file.
28713         * tests/unistr/test-u16-stpcpy.c: New file.
28714
28715         Tests for module 'unistr/u8-stpcpy'.
28716         * modules/unistr/u8-stpcpy-tests: New file.
28717         * tests/unistr/test-u8-stpcpy.c: New file.
28718         * tests/unistr/test-stpcpy.h: New file.
28719
28720         Tests for module 'unistr/u32-strcpy'.
28721         * modules/unistr/u32-strcpy-tests: New file.
28722         * tests/unistr/test-u32-strcpy.c: New file.
28723
28724         Tests for module 'unistr/u16-strcpy'.
28725         * modules/unistr/u16-strcpy-tests: New file.
28726         * tests/unistr/test-u16-strcpy.c: New file.
28727
28728         Tests for module 'unistr/u8-strcpy'.
28729         * modules/unistr/u8-strcpy-tests: New file.
28730         * tests/unistr/test-u8-strcpy.c: New file.
28731         * tests/unistr/test-strcpy.h: New file.
28732
28733         Tests for module 'unistr/u32-strnlen'.
28734         * modules/unistr/u32-strnlen-tests: New file.
28735         * tests/unistr/test-u32-strnlen.c: New file.
28736
28737         Tests for module 'unistr/u16-strnlen'.
28738         * modules/unistr/u16-strnlen-tests: New file.
28739         * tests/unistr/test-u16-strnlen.c: New file.
28740
28741         Tests for module 'unistr/u8-strnlen'.
28742         * modules/unistr/u8-strnlen-tests: New file.
28743         * tests/unistr/test-u8-strnlen.c: New file.
28744         * tests/unistr/test-strnlen.h: New file.
28745
28746         Tests for module 'unistr/u32-strlen'.
28747         * modules/unistr/u32-strlen-tests: New file.
28748         * tests/unistr/test-u32-strlen.c: New file.
28749
28750         Tests for module 'unistr/u16-strlen'.
28751         * modules/unistr/u16-strlen-tests: New file.
28752         * tests/unistr/test-u16-strlen.c: New file.
28753
28754         Tests for module 'unistr/u8-strlen'.
28755         * modules/unistr/u8-strlen-tests: New file.
28756         * tests/unistr/test-u8-strlen.c: New file.
28757
28758         Tests for module 'unistr/u32-prev'.
28759         * modules/unistr/u32-prev-tests: New file.
28760         * tests/unistr/test-u32-prev.c: New file.
28761
28762         Tests for module 'unistr/u16-prev'.
28763         * modules/unistr/u16-prev-tests: New file.
28764         * tests/unistr/test-u16-prev.c: New file.
28765
28766         Tests for module 'unistr/u8-prev'.
28767         * modules/unistr/u8-prev-tests: New file.
28768         * tests/unistr/test-u8-prev.c: New file.
28769
28770         Tests for module 'unistr/u32-next'.
28771         * modules/unistr/u32-next-tests: New file.
28772         * tests/unistr/test-u32-next.c: New file.
28773
28774         Tests for module 'unistr/u16-next'.
28775         * modules/unistr/u16-next-tests: New file.
28776         * tests/unistr/test-u16-next.c: New file.
28777
28778         Tests for module 'unistr/u8-next'.
28779         * modules/unistr/u8-next-tests: New file.
28780         * tests/unistr/test-u8-next.c: New file.
28781
28782         Tests for module 'unistr/u32-strmbtouc'.
28783         * modules/unistr/u32-strmbtouc-tests: New file.
28784         * tests/unistr/test-u32-strmbtouc.c: New file.
28785
28786         Tests for module 'unistr/u16-strmbtouc'.
28787         * modules/unistr/u16-strmbtouc-tests: New file.
28788         * tests/unistr/test-u16-strmbtouc.c: New file.
28789
28790         Tests for module 'unistr/u8-strmbtouc'.
28791         * modules/unistr/u8-strmbtouc-tests: New file.
28792         * tests/unistr/test-u8-strmbtouc.c: New file.
28793
28794         Tests for module 'unistr/u32-strmblen'.
28795         * modules/unistr/u32-strmblen-tests: New file.
28796         * tests/unistr/test-u32-strmblen.c: New file.
28797
28798         Tests for module 'unistr/u16-strmblen'.
28799         * modules/unistr/u16-strmblen-tests: New file.
28800         * tests/unistr/test-u16-strmblen.c: New file.
28801
28802         Tests for module 'unistr/u8-strmblen'.
28803         * modules/unistr/u8-strmblen-tests: New file.
28804         * tests/unistr/test-u8-strmblen.c: New file.
28805
28806         Tests for module 'unistr/u32-cpy-alloc'.
28807         * modules/unistr/u32-cpy-alloc-tests: New file.
28808         * tests/unistr/test-u32-cpy-alloc.c: New file.
28809
28810         Tests for module 'unistr/u16-cpy-alloc'.
28811         * modules/unistr/u16-cpy-alloc-tests: New file.
28812         * tests/unistr/test-u16-cpy-alloc.c: New file.
28813
28814         Tests for module 'unistr/u8-cpy-alloc'.
28815         * modules/unistr/u8-cpy-alloc-tests: New file.
28816         * tests/unistr/test-u8-cpy-alloc.c: New file.
28817         * tests/unistr/test-cpy-alloc.h: New file.
28818
28819         Tests for module 'unistr/u32-mbsnlen'.
28820         * modules/unistr/u32-mbsnlen-tests: New file.
28821         * tests/unistr/test-u32-mbsnlen.c: New file.
28822
28823         Tests for module 'unistr/u16-mbsnlen'.
28824         * modules/unistr/u16-mbsnlen-tests: New file.
28825         * tests/unistr/test-u16-mbsnlen.c: New file.
28826
28827         Tests for module 'unistr/u8-mbsnlen'.
28828         * modules/unistr/u8-mbsnlen-tests: New file.
28829         * tests/unistr/test-u8-mbsnlen.c: New file.
28830
28831         Tests for module 'unistr/u32-chr'.
28832         * modules/unistr/u32-chr-tests: New file.
28833         * tests/unistr/test-u32-chr.c: New file.
28834
28835         Tests for module 'unistr/u16-chr'.
28836         * modules/unistr/u16-chr-tests: New file.
28837         * tests/unistr/test-u16-chr.c: New file.
28838
28839         Tests for module 'unistr/u8-chr'.
28840         * modules/unistr/u8-chr-tests: New file.
28841         * tests/unistr/test-u8-chr.c: New file.
28842         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28843
28844         Tests for module 'unistr/u32-cmp2'.
28845         * modules/unistr/u32-cmp2-tests: New file.
28846         * tests/unistr/test-u32-cmp2.c: New file.
28847
28848         Tests for module 'unistr/u16-cmp2'.
28849         * modules/unistr/u16-cmp2-tests: New file.
28850         * tests/unistr/test-u16-cmp2.c: New file.
28851
28852         Tests for module 'unistr/u8-cmp2'.
28853         * modules/unistr/u8-cmp2-tests: New file.
28854         * tests/unistr/test-u8-cmp2.c: New file.
28855         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28856
28857         Tests for module 'unistr/u32-cmp'.
28858         * modules/unistr/u32-cmp-tests: New file.
28859         * tests/unistr/test-u32-cmp.c: New file.
28860
28861         Tests for module 'unistr/u16-cmp'.
28862         * modules/unistr/u16-cmp-tests: New file.
28863         * tests/unistr/test-u16-cmp.c: New file.
28864
28865         Tests for module 'unistr/u8-cmp'.
28866         * modules/unistr/u8-cmp-tests: New file.
28867         * tests/unistr/test-u8-cmp.c: New file.
28868         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28869
28870         Tests for module 'unistr/u32-set'.
28871         * modules/unistr/u32-set-tests: New file.
28872         * tests/unistr/test-u32-set.c: New file.
28873
28874         Tests for module 'unistr/u16-set'.
28875         * modules/unistr/u16-set-tests: New file.
28876         * tests/unistr/test-u16-set.c: New file.
28877
28878         Tests for module 'unistr/u8-set'.
28879         * modules/unistr/u8-set-tests: New file.
28880         * tests/unistr/test-u8-set.c: New file.
28881         * tests/unistr/test-set.h: New file.
28882
28883         Tests for module 'unistr/u32-move'.
28884         * modules/unistr/u32-move-tests: New file.
28885         * tests/unistr/test-u32-move.c: New file.
28886
28887         Tests for module 'unistr/u16-move'.
28888         * modules/unistr/u16-move-tests: New file.
28889         * tests/unistr/test-u16-move.c: New file.
28890
28891         Tests for module 'unistr/u8-move'.
28892         * modules/unistr/u8-move-tests: New file.
28893         * tests/unistr/test-u8-move.c: New file.
28894         * tests/unistr/test-move.h: New file.
28895
28896         Tests for module 'unistr/u32-cpy'.
28897         * modules/unistr/u32-cpy-tests: New file.
28898         * tests/unistr/test-u32-cpy.c: New file.
28899
28900         Tests for module 'unistr/u16-cpy'.
28901         * modules/unistr/u16-cpy-tests: New file.
28902         * tests/unistr/test-u16-cpy.c: New file.
28903
28904         Tests for module 'unistr/u8-cpy'.
28905         * modules/unistr/u8-cpy-tests: New file.
28906         * tests/unistr/test-u8-cpy.c: New file.
28907         * tests/unistr/test-cpy.h: New file.
28908
28909 2010-01-09  Bruno Haible  <bruno@clisp.org>
28910
28911         Tests for module 'unistr/u32-uctomb'.
28912         * modules/unistr/u32-uctomb-tests: New file.
28913         * tests/unistr/test-u32-uctomb.c: New file.
28914
28915         Tests for module 'unistr/u16-uctomb'.
28916         * modules/unistr/u16-uctomb-tests: New file.
28917         * tests/unistr/test-u16-uctomb.c: New file.
28918
28919         Tests for module 'unistr/u8-uctomb'.
28920         * modules/unistr/u8-uctomb-tests: New file.
28921         * tests/unistr/test-u8-uctomb.c: New file.
28922
28923         Tests for module 'unistr/u32-mbtoucr'.
28924         * modules/unistr/u32-mbtoucr-tests: New file.
28925         * tests/unistr/test-u32-mbtoucr.c: New file.
28926
28927         Tests for module 'unistr/u16-mbtoucr'.
28928         * modules/unistr/u16-mbtoucr-tests: New file.
28929         * tests/unistr/test-u16-mbtoucr.c: New file.
28930
28931         Tests for module 'unistr/u8-mbtoucr'.
28932         * modules/unistr/u8-mbtoucr-tests: New file.
28933         * tests/unistr/test-u8-mbtoucr.c: New file.
28934
28935         Tests for module 'unistr/u32-mbtouc'.
28936         * modules/unistr/u32-mbtouc-tests: New file.
28937         * tests/unistr/test-u32-mbtouc.c: New file.
28938
28939         Tests for module 'unistr/u16-mbtouc'.
28940         * modules/unistr/u16-mbtouc-tests: New file.
28941         * tests/unistr/test-u16-mbtouc.c: New file.
28942
28943         Tests for module 'unistr/u8-mbtouc'.
28944         * modules/unistr/u8-mbtouc-tests: New file.
28945         * tests/unistr/test-u8-mbtouc.c: New file.
28946
28947         Tests for module 'unistr/u32-mbtouc-unsafe'.
28948         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
28949         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
28950         * tests/unistr/test-u32-mbtouc.h: New file.
28951
28952         Tests for module 'unistr/u16-mbtouc-unsafe'.
28953         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
28954         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
28955         * tests/unistr/test-u16-mbtouc.h: New file.
28956
28957         Tests for module 'unistr/u8-mbtouc-unsafe'.
28958         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
28959         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
28960         * tests/unistr/test-u8-mbtouc.h: New file.
28961
28962         Tests for module 'unistr/u32-mblen'.
28963         * modules/unistr/u32-mblen-tests: New file.
28964         * tests/unistr/test-u32-mblen.c: New file.
28965
28966         Tests for module 'unistr/u16-mblen'.
28967         * modules/unistr/u16-mblen-tests: New file.
28968         * tests/unistr/test-u16-mblen.c: New file.
28969
28970         Tests for module 'unistr/u8-mblen'.
28971         * modules/unistr/u8-mblen-tests: New file.
28972         * tests/unistr/test-u8-mblen.c: New file.
28973
28974         Tests for module 'unistr/u32-to-u16'.
28975         * modules/unistr/u32-to-u16-tests: New file.
28976         * tests/unistr/test-u32-to-u16.c: New file.
28977
28978         Tests for module 'unistr/u32-to-u8'.
28979         * modules/unistr/u32-to-u8-tests: New file.
28980         * tests/unistr/test-u32-to-u8.c: New file.
28981
28982         Tests for module 'unistr/u16-to-u32'.
28983         * modules/unistr/u16-to-u32-tests: New file.
28984         * tests/unistr/test-u16-to-u32.c: New file.
28985
28986         Tests for module 'unistr/u16-to-u8'.
28987         * modules/unistr/u16-to-u8-tests: New file.
28988         * tests/unistr/test-u16-to-u8.c: New file.
28989
28990         Tests for module 'unistr/u8-to-u32'.
28991         * modules/unistr/u8-to-u32-tests: New file.
28992         * tests/unistr/test-u8-to-u32.c: New file.
28993
28994         Tests for module 'unistr/u8-to-u16'.
28995         * modules/unistr/u8-to-u16-tests: New file.
28996         * tests/unistr/test-u8-to-u16.c: New file.
28997
28998         Tests for module 'unistr/u32-check'.
28999         * modules/unistr/u32-check-tests: New file.
29000         * tests/unistr/test-u32-check.c: New file.
29001
29002         Tests for module 'unistr/u16-check'.
29003         * modules/unistr/u16-check-tests: New file.
29004         * tests/unistr/test-u16-check.c: New file.
29005
29006         Tests for module 'unistr/u8-check'.
29007         * modules/unistr/u8-check-tests: New file.
29008         * tests/unistr/test-u8-check.c: New file.
29009
29010         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29011         (category_equals): New function.
29012         (main): Add more tests.
29013         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29014
29015         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29016
29017 2010-01-10  Bruno Haible  <bruno@clisp.org>
29018
29019         unistr/u*-strcoll: Try harder to distinguish different strings.
29020         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29021         compare s1 and s2 to see if they are different.
29022
29023 2010-01-10  Bruno Haible  <bruno@clisp.org>
29024
29025         unistr/u*-stpncpy: Fix the return value.
29026         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29027         description of the return value consistent with stpncpy in glibc.
29028         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29029         written non-NUL unit.
29030
29031 2010-01-10  Bruno Haible  <bruno@clisp.org>
29032
29033         unistr/u*-next: Add missing dependencies.
29034         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29035         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29036         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29037
29038 2010-01-10  Bruno Haible  <bruno@clisp.org>
29039
29040         unistr/u8-mbsnlen: Fix return value for incomplete character.
29041         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29042         u8_mblen.
29043         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29044         Remove unistr/u8-mblen.
29045         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29046         u16_mblen.
29047         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29048         Remove unistr/u16-mblen.
29049
29050 2010-01-10  Bruno Haible  <bruno@clisp.org>
29051
29052         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29053         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29054         Reported by Brian Gough <bjg@gnu.org> and
29055         Chris Clayton <chris2553@googlemail.com> via
29056         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29057
29058 2010-01-09  Bruno Haible  <bruno@clisp.org>
29059
29060         unistr/u16-to-u32: Reject invalid input.
29061         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29062         u16_mbtouc.
29063         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29064         Remove unistr/u16-mbtouc.
29065
29066         unistr/u16-to-u8: Reject invalid input.
29067         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29068         u16_mbtouc.
29069         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29070         Remove unistr/u16-mbtouc.
29071
29072         unistr/u8-to-u32: Reject invalid input.
29073         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29074         u8_mbtouc.
29075         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29076         Remove unistr/u8-mbtouc.
29077
29078         unistr/u8-to-u16: Reject invalid input.
29079         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29080         u8_mbtouc.
29081         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29082         Remove unistr/u8-mbtouc.
29083
29084 2010-01-09  Bruno Haible  <bruno@clisp.org>
29085
29086         Tests for module 'getlogin'.
29087         * modules/getlogin-tests: New file.
29088         * tests/test-getlogin.c: New file.
29089
29090         New module 'getlogin'.
29091         * lib/unistd.in.h (getlogin): New declaration.
29092         * lib/getlogin.c: New file.
29093         * m4/getlogin.m4: New file.
29094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29095         HAVE_GETLOGIN.
29096         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29097         HAVE_GETLOGIN.
29098         * modules/getlogin: New file.
29099         * doc/posix-functions/getlogin.texi: Mention the new module.
29100         Reported by John W. Eaton <jwe@gnu.org>.
29101
29102 2010-01-09  Bruno Haible  <bruno@clisp.org>
29103
29104         getlogin_r: Support for native Windows.
29105         * lib/getlogin_r.c: Include <windows.h>
29106         (getlogin_r): Implement for native Windows.
29107         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29108         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29109         via John W. Eaton <jwe@gnu.org>.
29110
29111 2010-01-09  Bruno Haible  <bruno@clisp.org>
29112
29113         getlogin_r: Small fixes.
29114         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29115         succeeds.
29116         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29117         before testing whether getlogin_r is declared. No need to set
29118         HAVE_DECL_GETLOGIN_R to 1.
29119         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29120
29121 2010-01-09  Bruno Haible  <bruno@clisp.org>
29122
29123         * lib/unistd.in.h (getlogin_r): Add comment.
29124
29125 2010-01-09  Bruno Haible  <bruno@clisp.org>
29126
29127         Tests for module 'getlogin_r'.
29128         * modules/getlogin_r-tests: New file.
29129         * tests/test-getlogin_r.c: New file.
29130
29131 2010-01-09  Jim Meyering  <meyering@redhat.com>
29132
29133         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29134         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29135         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29136
29137 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29138
29139         * lib/dup2.c (rpl_dup2): Improve comment.
29140
29141 2010-01-08  Eric Blake  <ebb9@byu.net>
29142
29143         maint.mk: allow packages to add makefile @@ exceptions
29144         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29145         (sc_makefile_check): Rename...
29146         (sc_makefile_at_at_check): ...to this, and use hook.
29147
29148         dup2: work around mingw bug
29149         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29150         Reported by Simon Josefsson.
29151
29152 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29153
29154         glob: Fix C++ compilation.
29155         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29156         C++.
29157
29158 2010-01-07  Bruno Haible  <bruno@clisp.org>
29159
29160         Fix indentation of wctype.in.h, broken since 2007-01-06.
29161         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29162
29163 2010-01-07  Bruno Haible  <bruno@clisp.org>
29164
29165         mbslen: Avoid collision with system function.
29166         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29167         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29168         * m4/mbslen.m4: New file.
29169         * modules/mbslen (Files): Add it.
29170         (configure.ac): Invoke gl_MBSLEN.
29171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29172         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29173         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29174         via Ian Beckwith <ianb@erislabs.net>.
29175
29176 2010-01-07  Bruno Haible  <bruno@clisp.org>
29177
29178         dirent: Document the last fix.
29179         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29180
29181 2010-01-07  Bruno Haible  <bruno@clisp.org>
29182
29183         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29184         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29185         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29186         va_list are defined.
29187         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29188         Reported by Eric Blake.
29189
29190 2010-01-07  Bruno Haible  <bruno@clisp.org>
29191
29192         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29193         * modules/xlist (Depends-on): Add 'list',
29194         * modules/xoset (Depends-on): Add 'oset'.
29195         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29196
29197 2010-01-07  Bruno Haible  <bruno@clisp.org>
29198
29199         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29200         * doc/posix-functions/strncasecmp.texi: Likewise.
29201
29202 2010-01-07  Bruno Haible  <bruno@clisp.org>
29203
29204         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29205
29206 2010-01-07  John W. Eaton  <jwe@octave.org>
29207
29208         wctype: allow C++ use
29209         * lib/wctype.in.h: Add extern "C" block for C++.
29210
29211 2010-01-06  Eric Blake  <ebb9@byu.net>
29212
29213         maint.mk: detect incorrect GFDL usage
29214         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29215
29216 2010-01-06  Jim Meyering  <meyering@redhat.com>
29217         and Eric Blake  <ebb9@byu.net>
29218
29219         maint.mk: ignore multi-line copyright in NEWS
29220         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29221
29222 2010-01-06  Eric Blake  <ebb9@byu.net>
29223
29224         select: add missing dependency
29225         * modules/select-tests (Depends-on): Move sockets dependency...
29226         * modules/select (Depends-on): ...here.
29227         Reported by Ian Beckwith.
29228
29229         doc: regenerate INSTALL
29230         * doc/INSTALL: Reflect recent autoconf update.
29231         * doc/INSTALL.ISO: Likewise.
29232         * doc/INSTALL.UTF-8: Likewise.
29233
29234         pread: fix compilation on glibc
29235         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29236         Reported by Ralf Wildenhues.
29237
29238         dirent: fix test failure
29239         * lib/dirent.in.h (includes): Guarantee ino_t.
29240         Reported by Ralf Wildenhues.
29241
29242 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29243
29244         linkat, renameat: avoid bad free
29245         * lib/at-func2.c (at_func2): Fix typo.
29246         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29247
29248 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29249
29250         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29251         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29252         to avoid failure of symlink test later.
29253
29254 2010-01-06  Eric Blake  <ebb9@byu.net>
29255
29256         stdio, unistd: guarantee ssize_t
29257         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29258         2008 are exposed when needed.
29259         * lib/stdio.in.h (includes): Likewise.
29260         Reported by Ralf Wildenhues.
29261
29262 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29263
29264         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29265         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29266         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29267
29268 2010-01-06  Jim Meyering  <meyering@redhat.com>
29269
29270         readtokens: this module *does* require xalloc.h
29271         It uses only functions that were omitted by the old syntax-check rule.
29272         * lib/readtokens.c: Include "xalloc.h" once again.
29273         * modules/readtokens (Depends-on): Add xalloc.
29274         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29275
29276 2010-01-05  Eric Blake  <ebb9@byu.net>
29277
29278         maint: support 'make announcement' from a VPATH build
29279         * top/maint.mk (announcement): Look for correct NEWS file.
29280
29281 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29282
29283         utimens (fdutimens): ignore a negative FD, per contract
29284         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29285         when we have a valid file descriptor.  Otherwise, using a brand
29286         new glibc (with just-patched futimens that now fails with EBADF)
29287         would cause this function to fail with ENOSYS.
29288         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29289         See also http://bugzilla.redhat.com/552320.
29290
29291 2010-01-05  Eric Blake  <ebb9@byu.net>
29292
29293         strcase: document what it provides
29294         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29295         gnulib module.
29296         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29297         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29298
29299 2010-01-05  Jim Meyering  <meyering@redhat.com>
29300
29301         maint: remove useless inclusions of "xalloc.h"
29302         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29303         * lib/readtokens.c: Likewise.
29304         * lib/same.c: Likewise.
29305         * modules/getloadavg (Depends-on): Remove xalloc.
29306         * modules/readtokens: Likewise.
29307         * modules/same: Likewise.
29308
29309         maint.mk: include 4 more function names in alloca.h-checking regexp
29310         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29311         regexp.  Before, we would give a false-positive (saying alloca.h
29312         is included unnecessarily) when the only uses involved omitted symbols.
29313
29314         xalloc.h: use consistent formatting
29315         * lib/xalloc.h: Move declarations to start in the first column.
29316
29317 2010-01-05  Eric Blake  <ebb9@byu.net>
29318
29319         mkdir: avoid xalloc
29320         * lib/mkdir.c (includes): Drop unused header.
29321         Reported by John W. Eaton.
29322
29323 2010-01-04  Jim Meyering  <meyering@redhat.com>
29324
29325         nl_langinfo: avoid configure-time syntax error
29326         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29327         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29328         the empty string.  Don't let that provoke a shell syntax error.
29329
29330         regcomp, regexec, fnmatch: avoid array bounds read error
29331         * lib/regcomp.c (build_equiv_class): From glibc:
29332         Use only the low 24 bits of a findidx return value as an index
29333         into the weights array.  Patch by Ulrich Drepper:
29334         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29335         * lib/regexec.c (check_node_accept_bytes): Likewise.
29336         * lib/fnmatch_loop.c (FCT): Likewise.
29337
29338         regcomp: skip collseq lookup when there are no rules
29339         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29340         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29341
29342         regcomp: recognize ill-formed { } expressions
29343         * lib/regcomp.c (parse_dup_op): From glibc:
29344         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29345
29346         regcomp: fix typo in comment
29347         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29348         s/satisfy/satisfies/.
29349
29350         regcomp: sync from glibc: remove dead store
29351         * lib/regcomp.c (duplicate_node_closure): Remove useless
29352         search_duplicated_node call and dead store.
29353
29354         regcomp: sync from glibc; always use nl_langinfo
29355         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29356         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29357         * modules/regex (Depends-on): Add nl_langinfo.
29358
29359 2010-01-04  Eric Blake  <ebb9@byu.net>
29360
29361         fdopendir: fix configure test
29362         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29363
29364 2010-01-01  Bruno Haible  <bruno@clisp.org>
29365
29366         wchar: Remove unused configure check.
29367         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29368
29369 2010-01-01  Eric Blake  <ebb9@byu.net>
29370
29371         headers: make check of system header explicit
29372         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29373         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29374         ourselves.
29375         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29376         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29377         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29378         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29379         internals.
29380         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29381         missing.
29382         Suggested by Bruno Haible.
29383
29384 2010-01-01  Jim Meyering  <meyering@redhat.com>
29385
29386         ChangeLog: tweak to eliminate unnecessary copyright line
29387         * ChangeLog: Remove a copyright line that was mistakenly updated
29388         by today's update-copyright run.  Reported by Eric Blake.
29389
29390         test-update-copyright: don't let envvar setting cause test failure
29391         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29392
29393 2010-01-01  Bruno Haible  <bruno@clisp.org>
29394
29395         localename: Avoid gcc warning.
29396         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29397         function if it is not used.
29398
29399 2010-01-01  Jim Meyering  <meyering@redhat.com>
29400
29401         update nearly all FSF copyright year lists to include 2010
29402         Use the same procedure as for 2009, outlined in
29403         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29404
29405         version-etc: set COPYRIGHT_YEAR to 2010
29406         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29407
29408 2009-12-31  Eric Blake  <ebb9@byu.net>
29409
29410         doc: correct availability of cygwin 1.5.x getopt
29411         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29412         variables.
29413         * doc/posix-functions/opterr.texi (opterr): Likewise.
29414         * doc/posix-functions/optind.texi (optind): Likewise.
29415         * doc/posix-functions/optopt.texi (optopt): Likewise.
29416         * doc/posix-functions/tzname.texi (tzname): Likewise.
29417
29418         openat: update maintainer
29419         * modules/openat (Maintainer): Add myself.
29420
29421         utimens: avoid shadowing warning
29422         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29423         buffers into one, to avoid shadowing, as well as avoiding a
29424         redundant stat.
29425         Reported by Jim Meyering.
29426
29427         test-dup2: avoid compiler warning
29428         * tests/test-dup2.c (is_inheritable): Only define if used.
29429
29430 2010-01-01  Bruno Haible  <bruno@clisp.org>
29431
29432         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29433         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29434         defined, use wctomb instead of wcrtomb.
29435
29436 2010-01-01  Bruno Haible  <bruno@clisp.org>
29437
29438         iconv: Reject native Solaris iconv.
29439         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29440         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29441
29442 2009-12-31  Bruno Haible  <bruno@clisp.org>
29443
29444         * tests/test-signal.c (main): Remove test of 'SIG'.
29445
29446 2009-12-31  Bruno Haible  <bruno@clisp.org>
29447
29448         spawn: Fix incomplete fix.
29449         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29450         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29451         warnings for GNULIB_POSIXCHECK again.
29452         Reported by Eric Blake.
29453
29454 2009-12-31  Bruno Haible  <bruno@clisp.org>
29455
29456         Avoid namespace pollution on glibc systems.
29457         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29458         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29459         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29460         glibc systems.
29461
29462 2009-12-31  Bruno Haible  <bruno@clisp.org>
29463
29464         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29465         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29466         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29467         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29468         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29469         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29470         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29471
29472 2009-12-31  Bruno Haible  <bruno@clisp.org>
29473
29474         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29475         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29476         afterwards.
29477
29478 2009-12-31  Bruno Haible  <bruno@clisp.org>
29479
29480         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29481         SYS_UTSNAME_H.
29482
29483 2009-12-31  Bruno Haible  <bruno@clisp.org>
29484
29485         spawn: Fix misapplied patch.
29486         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29487         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29488         warnings for GNULIB_POSIXCHECK.
29489
29490 2009-12-31  Bruno Haible  <bruno@clisp.org>
29491
29492         times: Update after sys_times changed.
29493         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29494         * modules/times (Files): Add it.
29495         (configure.ac): Invoke gl_FUNC_TIMES.
29496
29497 2009-12-31  Bruno Haible  <bruno@clisp.org>
29498
29499         Use AC_C_INLINE where necessary.
29500         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29501         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29502         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29503         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29504         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29505         * m4/mbiter.m4 (gl_MBITER): Likewise.
29506         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29507         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29508         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29509         * modules/u64 (configure.ac): Likewise.
29510
29511 2009-12-31  Bruno Haible  <bruno@clisp.org>
29512
29513         Use AC_C_INLINE instead of module 'inline' where possible.
29514         * modules/inline (Description): Clarify purpose.
29515         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29516         * modules/count-one-bits (Depends-on): Remove inline.
29517         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29518         * modules/openat (Depends-on): Remove inline.
29519         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29520         instead of depending on module 'inline'.
29521         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29522         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29523         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29524         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29525         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29526         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29527         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29528         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29529         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29530         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29531         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29532         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29533         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29534         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29535         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29536         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29537         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29538         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29539         Likewise.
29540         * modules/unictype/property-ascii-hex-digit (Depends-on,
29541         configure.ac): Likewise.
29542         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29543         configure.ac): Likewise.
29544         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29545         configure.ac): Likewise.
29546         * modules/unictype/property-bidi-block-separator (Depends-on,
29547         configure.ac): Likewise.
29548         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29549         configure.ac): Likewise.
29550         * modules/unictype/property-bidi-common-separator (Depends-on,
29551         configure.ac): Likewise.
29552         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29553         Likewise.
29554         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29555         configure.ac): Likewise.
29556         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29557         configure.ac): Likewise.
29558         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29559         configure.ac): Likewise.
29560         * modules/unictype/property-bidi-european-digit (Depends-on,
29561         configure.ac): Likewise.
29562         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29563         configure.ac): Likewise.
29564         * modules/unictype/property-bidi-left-to-right (Depends-on,
29565         configure.ac): Likewise.
29566         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29567         configure.ac): Likewise.
29568         * modules/unictype/property-bidi-other-neutral (Depends-on,
29569         configure.ac): Likewise.
29570         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29571         Likewise.
29572         * modules/unictype/property-bidi-segment-separator (Depends-on,
29573         configure.ac): Likewise.
29574         * modules/unictype/property-bidi-whitespace (Depends-on,
29575         configure.ac): Likewise.
29576         * modules/unictype/property-combining (Depends-on, configure.ac):
29577         Likewise.
29578         * modules/unictype/property-composite (Depends-on, configure.ac):
29579         Likewise.
29580         * modules/unictype/property-currency-symbol (Depends-on,
29581         configure.ac): Likewise.
29582         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29583         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29584         Likewise.
29585         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29586         configure.ac): Likewise.
29587         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29588         Likewise.
29589         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29590         Likewise.
29591         * modules/unictype/property-extender (Depends-on, configure.ac):
29592         Likewise.
29593         * modules/unictype/property-format-control (Depends-on, configure.ac):
29594         Likewise.
29595         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29596         Likewise.
29597         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29598         Likewise.
29599         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29600         Likewise.
29601         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29602         Likewise.
29603         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29604         Likewise.
29605         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29606         Likewise.
29607         * modules/unictype/property-id-start (Depends-on, configure.ac):
29608         Likewise.
29609         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29610         Likewise.
29611         * modules/unictype/property-ids-binary-operator (Depends-on,
29612         configure.ac): Likewise.
29613         * modules/unictype/property-ids-trinary-operator (Depends-on,
29614         configure.ac): Likewise.
29615         * modules/unictype/property-ignorable-control (Depends-on,
29616         configure.ac): Likewise.
29617         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29618         Likewise.
29619         * modules/unictype/property-join-control (Depends-on, configure.ac):
29620         Likewise.
29621         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29622         Likewise.
29623         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29624         Likewise.
29625         * modules/unictype/property-logical-order-exception (Depends-on,
29626         configure.ac): Likewise.
29627         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29628         Likewise.
29629         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29630         * modules/unictype/property-non-break (Depends-on, configure.ac):
29631         Likewise.
29632         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29633         Likewise.
29634         * modules/unictype/property-numeric (Depends-on, configure.ac):
29635         Likewise.
29636         * modules/unictype/property-other-alphabetic (Depends-on,
29637         configure.ac): Likewise.
29638         * modules/unictype/property-other-default-ignorable-code-point
29639         (Depends-on, configure.ac): Likewise.
29640         * modules/unictype/property-other-grapheme-extend (Depends-on,
29641         configure.ac): Likewise.
29642         * modules/unictype/property-other-id-continue (Depends-on,
29643         configure.ac): Likewise.
29644         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29645         Likewise.
29646         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29647         Likewise.
29648         * modules/unictype/property-other-math (Depends-on, configure.ac):
29649         Likewise.
29650         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29651         Likewise.
29652         * modules/unictype/property-paired-punctuation (Depends-on,
29653         configure.ac): Likewise.
29654         * modules/unictype/property-paragraph-separator (Depends-on,
29655         configure.ac): Likewise.
29656         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29657         Likewise.
29658         * modules/unictype/property-pattern-white-space (Depends-on,
29659         configure.ac): Likewise.
29660         * modules/unictype/property-private-use (Depends-on, configure.ac):
29661         Likewise.
29662         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29663         Likewise.
29664         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29665         Likewise.
29666         * modules/unictype/property-radical (Depends-on, configure.ac):
29667         Likewise.
29668         * modules/unictype/property-sentence-terminal (Depends-on,
29669         configure.ac): Likewise.
29670         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29671         Likewise.
29672         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29673         * modules/unictype/property-terminal-punctuation (Depends-on,
29674         configure.ac): Likewise.
29675         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29676         Likewise.
29677         * modules/unictype/property-unassigned-code-value (Depends-on,
29678         configure.ac): Likewise.
29679         * modules/unictype/property-unified-ideograph (Depends-on,
29680         configure.ac): Likewise.
29681         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29682         Likewise.
29683         * modules/unictype/property-variation-selector (Depends-on,
29684         configure.ac): Likewise.
29685         * modules/unictype/property-white-space (Depends-on, configure.ac):
29686         Likewise.
29687         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29688         Likewise.
29689         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29690         Likewise.
29691         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29692         Likewise.
29693         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29694         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29695         Likewise.
29696
29697 2009-12-31  Bruno Haible  <bruno@clisp.org>
29698
29699         Remove unnecessary AC_C_INLINE invocation.
29700         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29701         since 2009-08-21.
29702
29703 2009-12-31  Jim Meyering  <meyering@redhat.com>
29704
29705         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29706         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29707         With this change, we can all remove the gpg_key_ID = ... definition
29708         from our respective cfg.mk files.
29709
29710         maint.mk: create announcement template in ~/, not in /tmp
29711         * top/maint.mk (emit_upload_commands): Adjust.
29712         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29713         Remove temporary file, .ci-msg.
29714
29715 2009-12-31  Eric Blake  <ebb9@byu.net>
29716
29717         link-warning: always build headers with link warnings
29718         * modules/arpa_inet (Makefile.am): Always build replacement
29719         header.
29720         * modules/ctype (Makefile.am): Likewise.
29721         * modules/dirent (Makefile.am): Likewise.
29722         * modules/inttypes (Makefile.am): Likewise.
29723         * modules/langinfo (Makefile.am): Likewise.
29724         * modules/locale (Makefile.am): Likewise.
29725         * modules/spawn (Makefile.am): Likewise.
29726         * modules/sys_file (Makefile.am): Likewise.
29727         * modules/sys_ioctl (Makefile.am): Likewise.
29728         * modules/sys_select (Makefile.am): Likewise.
29729         * modules/sys_socket (Makefile.am): Likewise.
29730         * modules/sys_times (Makefile.am): Likewise.
29731         * modules/sys_utsname (Makefile.am): Likewise.
29732         * modules/sys_wait (Makefile.am): Likewise.
29733         * modules/wchar (Makefile.am): Likewise.
29734         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29735         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29736         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29737         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29738         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29739         Likewise.
29740         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29741         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29742         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29743         Likewise.
29744         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29745         Likewise.
29746         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29747         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29748         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29749         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29750         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29751         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29752         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29753         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29754         (gl_WCHAR_H_DEFAULTS): Likewise.
29755
29756 2009-12-31  Eric Blake  <ebb9@byu.net>
29757
29758         signal, spawn: use link warnings
29759         * lib/signal.in.h (sigset_t): Make unconditional.
29760         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29761         (sigpending, sigprocmask, sigaction): Add link warnings.
29762         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29763         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29764         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29765         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29766         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29767         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29768         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29769         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29770         (posix_spawn_file_actions_destroy)
29771         (posix_spawn_file_actions_addopen)
29772         (posix_spawn_file_actions_addclose)
29773         (posix_spawn_file_actions_adddup2): Likewise.
29774         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29775         * tests/test-signal.c (main): Enhance test.
29776
29777         spawn: improve wrapper support
29778         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29779         (gl_SPAWN_H_DEFAULTS): New defaults.
29780         * modules/spawn (Makefile.am): Substitute them.
29781         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29782         Only declare if missing or broken.
29783
29784         sys_times, sys_utsname: use include_next
29785         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29786         header.
29787         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29788         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29789         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29790         * modules/sys_times (Depends-on): Add include_next.
29791         (Makefile.am): Substitute additional values.
29792         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29793         * lib/sys_times.in.h (includes): Include native header, if
29794         available.
29795         * lib/sys_utsname.in.h (includes): Likewise.
29796         * tests/test-sys_times.c (main): Enhance test.
29797
29798         fdutimensat: revert prior patch
29799         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29800         utimens.h.
29801         Reported by Bruno Haible.
29802
29803 2009-12-30  Eric Blake  <ebb9@byu.net>
29804
29805         sys_wait: drop link-warning dependency
29806         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29807         link-warning efforts.
29808         * lib/sys_wait.in.h: Likewise.
29809
29810         fdutimensat: remove bogus dependency
29811         * modules/fdutimensat (Depends-on): Drop inline.
29812
29813         unistd: fix typo
29814         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29815
29816 2009-12-30  Bruno Haible  <bruno@clisp.org>
29817
29818         Fix compilation error with Solaris cc.
29819         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29820         * lib/unicase/u16-is-invariant.c: Likewise.
29821         * lib/unicase/u32-is-invariant.c: Likewise.
29822         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29823
29824 2009-12-30  Bruno Haible  <bruno@clisp.org>
29825
29826         Fix test crash.
29827         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29828         locales.
29829         Reported by Simon Josefsson <simon@josefsson.org>.
29830
29831 2009-12-30  Bruno Haible  <bruno@clisp.org>
29832
29833         Fix compilation error on most platforms.
29834         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29835         Reported by Simon Josefsson <simon@josefsson.org>
29836         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29837
29838 2009-12-30  Eric Blake  <ebb9@byu.net>
29839
29840         futimens, utimensat: work around ntfs-3g bug
29841         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29842         a ctime bug is present, and expand workaround to cover ntfs-3g.
29843         * lib/utimens.c (fdutimens, lutimens): Likewise.
29844         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29845         (validate_timespec): Adjust return value.
29846         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29847         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29848         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29849
29850 2009-12-29  Eric Blake  <ebb9@byu.net>
29851
29852         link-warning: make usage consistent
29853         * modules/ctype (Depends-on): Add link-warning.
29854         (Makefile.am): Update rules accordingly.
29855         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29856         * modules/locale (Depends-on, Makefile.am): Likewise.
29857         * modules/sys_file (Makefile.am): Likewise.
29858         * modules/getopt-posix (Makefile.am): Delete unused link warning
29859         efforts.
29860         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29861         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29862         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29863         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29864
29865         stdio: remove unused variables
29866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29867         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29868         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29869
29870         tests: test more substitute headers
29871         * modules/ctype-tests: New file.
29872         * modules/dirent-tests: Likewise.
29873         * modules/spawn-tests: Likewise.
29874         * modules/sys_file-tests: Likewise.
29875         * modules/sys_ioctl-tests: Likewise.
29876         * modules/sys_wait-tests: Likewise.
29877         * tests/test-ctype.c: Likewise.
29878         * tests/test-dirent.c: Likewise.
29879         * tests/test-spawn.c: Likewise.
29880         * tests/test-sys_file.c: Likewise.
29881         * tests/test-sys_ioctl.c: Likewise.
29882         * tests/test-sys_wait.c: Likewise.
29883         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29884         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29885         whether or not flock is in use.
29886
29887         tests: remove License section from module
29888         * modules/arpa_inet-tests: Remove unneeded section.
29889         * modules/byteswap-tests: Likewise.
29890         * modules/ceilf-tests: Likewise.
29891         * modules/ceill-tests: Likewise.
29892         * modules/crypto/des-tests: Likewise.
29893         * modules/crypto/gc-arcfour-tests: Likewise.
29894         * modules/crypto/gc-arctwo-tests: Likewise.
29895         * modules/crypto/gc-des-tests: Likewise.
29896         * modules/crypto/gc-hmac-md5-tests: Likewise.
29897         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29898         * modules/crypto/gc-md2-tests: Likewise.
29899         * modules/crypto/gc-md4-tests: Likewise.
29900         * modules/crypto/gc-md5-tests: Likewise.
29901         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29902         * modules/crypto/gc-rijndael-tests: Likewise.
29903         * modules/crypto/gc-sha1-tests: Likewise.
29904         * modules/crypto/gc-tests: Likewise.
29905         * modules/crypto/md2-tests: Likewise.
29906         * modules/crypto/md4-tests: Likewise.
29907         * modules/fcntl-h-tests: Likewise.
29908         * modules/floorf-tests: Likewise.
29909         * modules/floorl-tests: Likewise.
29910         * modules/frexp-nolibm-tests: Likewise.
29911         * modules/frexp-tests: Likewise.
29912         * modules/frexpl-nolibm-tests: Likewise.
29913         * modules/frexpl-tests: Likewise.
29914         * modules/getaddrinfo-tests: Likewise.
29915         * modules/inttypes-tests: Likewise.
29916         * modules/isfinite-tests: Likewise.
29917         * modules/isinf-tests: Likewise.
29918         * modules/ldexpl-tests: Likewise.
29919         * modules/locale-tests: Likewise.
29920         * modules/math-tests: Likewise.
29921         * modules/netdb-tests: Likewise.
29922         * modules/netinet_in-tests: Likewise.
29923         * modules/printf-frexp-tests: Likewise.
29924         * modules/printf-frexpl-tests: Likewise.
29925         * modules/priv-set-tests: Likewise.
29926         * modules/random_r-tests: Likewise.
29927         * modules/round-tests: Likewise.
29928         * modules/roundf-tests: Likewise.
29929         * modules/roundl-tests: Likewise.
29930         * modules/search-tests: Likewise.
29931         * modules/select-tests: Likewise.
29932         * modules/signal-tests: Likewise.
29933         * modules/stdbool-tests: Likewise.
29934         * modules/stddef-tests: Likewise.
29935         * modules/stdint-tests: Likewise.
29936         * modules/stdio-tests: Likewise.
29937         * modules/stdlib-tests: Likewise.
29938         * modules/string-tests: Likewise.
29939         * modules/strings-tests: Likewise.
29940         * modules/sys_select-tests: Likewise.
29941         * modules/sys_socket-tests: Likewise.
29942         * modules/sys_stat-tests: Likewise.
29943         * modules/sys_time-tests: Likewise.
29944         * modules/sys_utsname-tests: Likewise.
29945         * modules/sysexits-tests: Likewise.
29946         * modules/time-tests: Likewise.
29947         * modules/trunc-tests: Likewise.
29948         * modules/truncf-tests: Likewise.
29949         * modules/truncl-tests: Likewise.
29950         * modules/tsearch-tests: Likewise.
29951         * modules/unistd-tests: Likewise.
29952         * modules/wchar-tests: Likewise.
29953         * modules/wctype-tests: Likewise.
29954
29955         tests: fix license on several tests
29956         * tests/test-des.c: Update to GPLv3+.
29957         * tests/test-flock.c: Likewise.
29958         * tests/test-fsync.c: Likewise.
29959         * tests/test-futimens.h: Likewise.
29960         * tests/test-gc-arcfour.c: Likewise.
29961         * tests/test-gc-arctwo.c: Likewise.
29962         * tests/test-gc-des.c: Likewise.
29963         * tests/test-gc-hmac-md5.c: Likewise.
29964         * tests/test-gc-hmac-sha1.c: Likewise.
29965         * tests/test-gc-md2.c: Likewise.
29966         * tests/test-gc-md4.c: Likewise.
29967         * tests/test-gc-md5.c: Likewise.
29968         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29969         * tests/test-gc-rijndael.c: Likewise.
29970         * tests/test-gc-sha1.c: Likewise.
29971         * tests/test-gc.c: Likewise.
29972         * tests/test-getcwd.c: Likewise.
29973         * tests/test-link.c: Likewise.
29974         * tests/test-link.h: Likewise.
29975         * tests/test-lutimens.h: Likewise.
29976         * tests/test-md2.c: Likewise.
29977         * tests/test-md4.c: Likewise.
29978         * tests/test-mkdir.h: Likewise.
29979         * tests/test-rename.c: Likewise.
29980         * tests/test-rename.h: Likewise.
29981         * tests/test-safe-alloc.c: Likewise.
29982         * tests/test-utimens-common.h: Likewise.
29983         * tests/test-utimens.h: Likewise.
29984
29985         maint: sync license texts
29986         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
29987         * doc/gpl-3.0.texi: Revert copyright year update.
29988         * doc/lgpl-3.0.texi: Likewise.
29989
29990 2009-12-29  Jim Meyering  <meyering@redhat.com>
29991
29992         update nearly all FSF copyright year lists to include 2009
29993         The files named by the following are exempted:
29994             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
29995               test -f "$dst" && { echo "$dst"; continue; }
29996               test -d "$dst" || continue
29997               echo "$dst"/$(basename "$src")
29998             done > exempt
29999             git ls-files tests/unictype >> exempt
30000         In the remaining files, convert to all-interval notation if
30001         - there is already at least one year interval like 2000-2003
30002         - the file is maintained by me
30003         - the file is in lib/uni*/, where that style already prevails
30004         Otherwise, use update-copyright's default.
30005
30006 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30007         and Eric Blake  <ebb9@byu.net>
30008
30009         tests: don't require debug system() to pass
30010         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30011         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30012         * tests/test-unlink.h (test_unlink_func): Likewise.
30013         * tests/test-fstatat.c (main): ...into callers.
30014         * tests/test-lstat.c (main): Likewise.
30015         * tests/test-rmdir.c (main): Likewise.
30016         * tests/test-unlink.c (main): Likewise.
30017         * tests/test-unlinkat.c (main): Likewise.
30018         * tests/test-areadlink-with-size.c (main): Don't require a
30019         debug-only system call to pass, aiding cross-testing to mingw.
30020         * tests/test-areadlink.c (main): Likewise.
30021         * tests/test-areadlinkat-with-size.c (main): Likewise.
30022         * tests/test-areadlinkat.c (main): Likewise.
30023         * tests/test-canonicalize-lgpl.c (main): Likewise.
30024         * tests/test-canonicalize.c (main): Likewise.
30025         * tests/test-chown.c (main): Likewise.
30026         * tests/test-fchownat.c (main): Likewise.
30027         * tests/test-lchown.c (main): Likewise.
30028         * tests/test-fdutimensat.c (main): Likewise.
30029         * tests/test-futimens.c (main): Likewise.
30030         * tests/test-link.c (main): Likewise.
30031         * tests/test-linkat.c (main): Likewise.
30032         * tests/test-mkdir.c (main): Likewise.
30033         * tests/test-mkdirat.c (main): Likewise.
30034         * tests/test-mkfifo.c (main): Likewise.
30035         * tests/test-mkfifoat.c (main): Likewise.
30036         * tests/test-mknod.c (main): Likewise.
30037         * tests/test-readlink.c (main): Likewise.
30038         * tests/test-remove.c (main): Likewise.
30039         * tests/test-rename.c (main): Likewise.
30040         * tests/test-renameat.c (main): Likewise.
30041         * tests/test-symlink.c (main): Likewise.
30042         * tests/test-symlinkat.c (main): Likewise.
30043         * tests/test-utimens.c (main): Likewise.
30044         * tests/test-utimensat.c (main): Likewise.
30045
30046 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30047
30048         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30049         on $(UNUSED_PARAMETER_H) to avoid build failure.
30050
30051 2009-12-28  Jim Meyering  <meyering@redhat.com>
30052
30053         update-copyright: you may specify a max. line length other than 72
30054         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30055
30056         maint: use consistent FSF copyright line syntax
30057         * lib/posixtm.c: Add missing comma in FSF copyright line.
30058         * lib/posixtm.h: Likewise.
30059         * lib/getugroups.c: Add missing ", Inc.".
30060
30061         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30062         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30063         FSF copyright line.  Remove trailing blanks.
30064
30065 2009-12-28  Eric Blake  <ebb9@byu.net>
30066
30067         test-dup2: reduce dependencies
30068         * modules/cloexec (Configure.ac): Set witness.
30069         * modules/dup2-tests (Depends-on): Drop cloexec.
30070         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30071         not present.
30072         Suggested by Bruno Haible.
30073
30074 2009-12-26  Bruno Haible  <bruno@clisp.org>
30075
30076         Remove an unneeded dependency.
30077         * modules/fseterr (Depends-on): Remove dup2.
30078
30079 2009-12-26  Eric Blake  <ebb9@byu.net>
30080
30081         tests: use macros.h in more places
30082         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30083         (ASSERT_STREAM): Provide default of stderr.
30084         * tests/test-dirent-safer.c: Include macros.h, using alternate
30085         stream for assertions.
30086         * tests/test-dup-safer.c: Likewise.
30087         * tests/test-freopen-safer.c: Likewise.
30088         * tests/test-getopt.c: Likewise.
30089         * tests/test-openat-safer.c: Likewise.
30090         * tests/test-pipe.c: Likewise.
30091         * tests/test-popen-safer.c: Likewise.
30092         * modules/dirent-safer-tests (Files): Include macros.h.
30093         * modules/unistd-safer-tests (Files): Likewise.
30094         * modules/freopen-safer-tests (Files): Likewise.
30095         * modules/getopt-posix-tests (Files): Likewise.
30096         * modules/openat-safer-tests (Files): Likewise.
30097         * modules/pipe-tests (Files): Likewise.
30098
30099 2009-12-26  Bruno Haible  <bruno@clisp.org>
30100
30101         javacomp: Portability fix.
30102         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30103         that it also works on Solaris.
30104
30105 2009-12-26  Bruno Haible  <bruno@clisp.org>
30106
30107         localename: Fix storage allocation of gl_locale_name_thread's result.
30108         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30109         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30110         all platforms that have 'uselocale'.
30111         (gl_locale_name_thread_unsafe): New function, extracted from
30112         gl_locale_name_thread.
30113         (gl_locale_name_thread): Call struniq on all platforms that have
30114         'uselocale'.
30115         * tests/test-localename.c (test_locale_name_thread): Check that the
30116         resulting strings are permanently allocated.
30117         * modules/localename-tests (Depends-on): Add strdup.
30118
30119 2009-12-26  Bruno Haible  <bruno@clisp.org>
30120
30121         * tests/test-localename.c (categories): Fill in the strings.
30122
30123 2009-12-26  Jim Meyering  <meyering@redhat.com>
30124
30125         isdir: complete the removal of m4/isdir.m4
30126         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30127
30128         isdir: clean up, since at least grep still uses it
30129         * lib/isdir.c: Include "isdir.h".
30130         (S_ISDIR): Remove now-unneeded definition.
30131         * modules/isdir (Files): Add lib/isdir.h.
30132         * lib/isdir.h: New file, with declaration.
30133         * m4/isdir.m4: Remove file -- unneeded.
30134
30135 2009-12-25  Bruno Haible  <bruno@clisp.org>
30136
30137         selinux-h: Make generated .h files standalone.
30138         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30139         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30140         * lib/se-selinux.in.h: Likewise.
30141         * modules/selinux-h (Depends-on): Add unused-parameter.
30142         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30143         selinux/selinux.h and selinux/context.h.
30144         Suggested by Eric Blake.
30145
30146 2009-12-25  Bruno Haible  <bruno@clisp.org>
30147
30148         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30149         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30150         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30151         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30152         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30153
30154 2009-12-24  Bruno Haible  <bruno@clisp.org>
30155
30156         openat: Fix warning.
30157         * lib/openat-proc.c: Include <unistd.h>.
30158
30159 2009-12-24  Bruno Haible  <bruno@clisp.org>
30160
30161         New module 'unused-parameter'.
30162         * build-aux/unused-parameter.h: New file, extracted from earlier
30163         gnulib-common.m4.
30164         * modules/unused-parameter: New file.
30165         * lib/unistr.h: Include unused-parameter.h.
30166         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30167         _GL_UNUSED.
30168         * modules/unistr/base (Depends-on): Add unused-parameter.
30169
30170 2009-12-24  Bruno Haible  <bruno@clisp.org>
30171
30172         Add missing dependencies to 'extensions' module.
30173         * m4/extensions.m4: Add comment.
30174         * modules/accept4 (Depends-on): Add extensions.
30175         * modules/dup3 (Depends-on): Likewise.
30176         * modules/fcntl (Depends-on): Likewise.
30177         * modules/futimens (Depends-on): Likewise.
30178         * modules/mknod (Depends-on): Likewise.
30179         * modules/pipe2 (Depends-on): Likewise.
30180         * modules/stat-time (Depends-on): Likewise.
30181         * modules/strcasestr-simple (Depends-on): Likewise.
30182         * modules/strsignal (Depends-on): Likewise.
30183         * modules/utimensat (Depends-on): Likewise.
30184         * modules/localcharset (Depends-on): Likewise. Needed because of
30185         gl_FCNTL_O_FLAGS.
30186         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30187         AC_TYPE_MBSTATE_T.
30188         * modules/wcsnrtombs (Depends-on): Likewise.
30189         * modules/wcsrtombs (Depends-on): Likewise.
30190
30191 2009-12-24  Bruno Haible  <bruno@clisp.org>
30192
30193         binary-io: Avoid gcc warning due to SET_BINARY.
30194         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30195         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30196
30197 2009-12-24  Bruno Haible  <bruno@clisp.org>
30198
30199         Avoid future namespace pollution on glibc systems.
30200         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30201         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30202         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30203         glibc systems.
30204
30205 2009-12-24  Bruno Haible  <bruno@clisp.org>
30206
30207         Refactor common macros used in tests.
30208         * tests/macros.h: New file.
30209         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30210         and/or <stdlib.h>, if appropriate.
30211         (ASSERT, SIZEOF): Remove macros.
30212         * tests/test-areadlink-with-size.c: Likewise.
30213         * tests/test-areadlinkat.c: Likewise.
30214         * tests/test-areadlinkat-with-size.c: Likewise.
30215         * tests/test-argmatch.c: Likewise.
30216         * tests/test-argv-iter.c: Likewise.
30217         * tests/test-array-mergesort.c: Likewise.
30218         * tests/test-array_list.c: Likewise.
30219         * tests/test-array_oset.c: Likewise.
30220         * tests/test-avltree_list.c: Likewise.
30221         * tests/test-avltree_oset.c: Likewise.
30222         * tests/test-avltreehash_list.c: Likewise.
30223         * tests/test-base64.c: Likewise.
30224         * tests/test-binary-io.c: Likewise.
30225         * tests/test-bitrotate.c: Likewise.
30226         * tests/test-btowc.c: Likewise.
30227         * tests/test-byteswap.c: Likewise.
30228         * tests/test-c-ctype.c: Likewise.
30229         * tests/test-c-stack.c: Likewise.
30230         * tests/test-c-strcasecmp.c: Likewise.
30231         * tests/test-c-strcasestr.c: Likewise.
30232         * tests/test-c-strncasecmp.c: Likewise.
30233         * tests/test-c-strstr.c: Likewise.
30234         * tests/test-canonicalize-lgpl.c: Likewise.
30235         * tests/test-canonicalize.c: Likewise.
30236         * tests/test-carray_list.c: Likewise.
30237         * tests/test-ceilf1.c: Likewise.
30238         * tests/test-ceilf2.c: Likewise.
30239         * tests/test-ceill.c: Likewise.
30240         * tests/test-chown.c: Likewise.
30241         * tests/test-cloexec.c: Likewise.
30242         * tests/test-copy-acl.c: Likewise.
30243         * tests/test-copy-file.c: Likewise.
30244         * tests/test-count-one-bits.c: Likewise.
30245         * tests/test-dprintf-posix.c: Likewise.
30246         * tests/test-dup2.c: Likewise.
30247         * tests/test-dup3.c: Likewise.
30248         * tests/test-duplocale.c: Likewise.
30249         * tests/test-fbufmode.c: Likewise.
30250         * tests/test-fchdir.c: Likewise.
30251         * tests/test-fchownat.c: Likewise.
30252         * tests/test-fcntl-safer.c: Likewise.
30253         * tests/test-fcntl.c: Likewise.
30254         * tests/test-fdopendir.c: Likewise.
30255         * tests/test-fdutimensat.c: Likewise.
30256         * tests/test-fflush2.c: Likewise.
30257         * tests/test-file-has-acl.c: Likewise.
30258         * tests/test-filevercmp.c: Likewise.
30259         * tests/test-flock.c: Likewise.
30260         * tests/test-floorf1.c: Likewise.
30261         * tests/test-floorf2.c: Likewise.
30262         * tests/test-floorl.c: Likewise.
30263         * tests/test-fnmatch.c: Likewise.
30264         * tests/test-fopen.h: Likewise.
30265         * tests/test-fpending.c: Likewise.
30266         * tests/test-fprintf-posix.c: Likewise.
30267         * tests/test-fpurge.c: Likewise.
30268         * tests/test-freadable.c: Likewise.
30269         * tests/test-freadahead.c: Likewise.
30270         * tests/test-freading.c: Likewise.
30271         * tests/test-freadptr.c: Likewise.
30272         * tests/test-freadptr2.c: Likewise.
30273         * tests/test-freadseek.c: Likewise.
30274         * tests/test-freopen.c: Likewise.
30275         * tests/test-frexp.c: Likewise.
30276         * tests/test-frexpl.c: Likewise.
30277         * tests/test-fseek.c: Likewise.
30278         * tests/test-fseeko.c: Likewise.
30279         * tests/test-fstatat.c: Likewise.
30280         * tests/test-fstrcmp.c: Likewise.
30281         * tests/test-fsync.c: Likewise.
30282         * tests/test-ftell.c: Likewise.
30283         * tests/test-ftello.c: Likewise.
30284         * tests/test-func.c: Likewise.
30285         * tests/test-futimens.c: Likewise.
30286         * tests/test-fwritable.c: Likewise.
30287         * tests/test-fwriting.c: Likewise.
30288         * tests/test-getcwd.c: Likewise.
30289         * tests/test-getdate.c: Likewise.
30290         * tests/test-getdelim.c: Likewise.
30291         * tests/test-getdtablesize.c: Likewise.
30292         * tests/test-getgroups.c: Likewise.
30293         * tests/test-getline.c: Likewise.
30294         * tests/test-getndelim2.c: Likewise.
30295         * tests/test-glob.c: Likewise.
30296         * tests/test-hash.c: Likewise.
30297         * tests/test-i-ring.c: Likewise.
30298         * tests/test-iconv-utf.c: Likewise.
30299         * tests/test-iconv.c: Likewise.
30300         * tests/test-idpriv-drop.c: Likewise.
30301         * tests/test-idpriv-droptemp.c: Likewise.
30302         * tests/test-inet_ntop.c: Likewise.
30303         * tests/test-inet_pton.c: Likewise.
30304         * tests/test-isblank.c: Likewise.
30305         * tests/test-isfinite.c: Likewise.
30306         * tests/test-isinf.c: Likewise.
30307         * tests/test-isnan.c: Likewise.
30308         * tests/test-isnand.h: Likewise.
30309         * tests/test-isnanf.h: Likewise.
30310         * tests/test-isnanl.h: Likewise.
30311         * tests/test-lchown.c: Likewise.
30312         * tests/test-ldexpl.c: Likewise.
30313         * tests/test-link.c: Likewise.
30314         * tests/test-linkat.c: Likewise.
30315         * tests/test-linked_list.c: Likewise.
30316         * tests/test-linkedhash_list.c: Likewise.
30317         * tests/test-localename.c: Likewise.
30318         * tests/test-lseek.c: Likewise.
30319         * tests/test-lstat.c: Likewise.
30320         * tests/test-mbmemcasecmp.c: Likewise.
30321         * tests/test-mbmemcasecoll.c: Likewise.
30322         * tests/test-mbrtowc.c: Likewise.
30323         * tests/test-mbscasecmp.c: Likewise.
30324         * tests/test-mbscasestr1.c: Likewise.
30325         * tests/test-mbscasestr2.c: Likewise.
30326         * tests/test-mbscasestr3.c: Likewise.
30327         * tests/test-mbscasestr4.c: Likewise.
30328         * tests/test-mbschr.c: Likewise.
30329         * tests/test-mbscspn.c: Likewise.
30330         * tests/test-mbsinit.c: Likewise.
30331         * tests/test-mbsncasecmp.c: Likewise.
30332         * tests/test-mbsnrtowcs.c: Likewise.
30333         * tests/test-mbspbrk.c: Likewise.
30334         * tests/test-mbspcasecmp.c: Likewise.
30335         * tests/test-mbsrchr.c: Likewise.
30336         * tests/test-mbsrtowcs.c: Likewise.
30337         * tests/test-mbsspn.c: Likewise.
30338         * tests/test-mbsstr1.c: Likewise.
30339         * tests/test-mbsstr2.c: Likewise.
30340         * tests/test-mbsstr3.c: Likewise.
30341         * tests/test-memchr.c: Likewise.
30342         * tests/test-memchr2.c: Likewise.
30343         * tests/test-memcmp.c: Likewise.
30344         * tests/test-memmem.c: Likewise.
30345         * tests/test-memrchr.c: Likewise.
30346         * tests/test-mkdir.c: Likewise.
30347         * tests/test-mkdirat.c: Likewise.
30348         * tests/test-mkfifo.c: Likewise.
30349         * tests/test-mkfifoat.c: Likewise.
30350         * tests/test-mknod.c: Likewise.
30351         * tests/test-nanosleep.c: Likewise.
30352         * tests/test-nl_langinfo.c: Likewise.
30353         * tests/test-obstack-printf.c: Likewise.
30354         * tests/test-open.c: Likewise.
30355         * tests/test-openat.c: Likewise.
30356         * tests/test-pipe-filter-gi1.c: Likewise.
30357         * tests/test-pipe-filter-gi2-main.c: Likewise.
30358         * tests/test-pipe-filter-ii1.c: Likewise.
30359         * tests/test-pipe-filter-ii2-main.c: Likewise.
30360         * tests/test-pipe2.c: Likewise.
30361         * tests/test-popen.h: Likewise.
30362         * tests/test-posixtm.c: Likewise.
30363         * tests/test-pread.c: Likewise.
30364         * tests/test-printf-frexp.c: Likewise.
30365         * tests/test-printf-frexpl.c: Likewise.
30366         * tests/test-printf-posix.c: Likewise.
30367         * tests/test-priv-set.c: Likewise.
30368         * tests/test-quotearg.c: Likewise.
30369         * tests/test-random_r.c: Likewise.
30370         * tests/test-rawmemchr.c: Likewise.
30371         * tests/test-rbtree_list.c: Likewise.
30372         * tests/test-rbtree_oset.c: Likewise.
30373         * tests/test-rbtreehash_list.c: Likewise.
30374         * tests/test-readlink.c: Likewise.
30375         * tests/test-remove.c: Likewise.
30376         * tests/test-rename.c: Likewise.
30377         * tests/test-renameat.c: Likewise.
30378         * tests/test-rmdir.c: Likewise.
30379         * tests/test-round1.c: Likewise.
30380         * tests/test-roundf1.c: Likewise.
30381         * tests/test-roundl.c: Likewise.
30382         * tests/test-safe-alloc.c: Likewise.
30383         * tests/test-sameacls.c: Likewise.
30384         * tests/test-set-mode-acl.c: Likewise.
30385         * tests/test-setenv.c: Likewise.
30386         * tests/test-sigaction.c: Likewise.
30387         * tests/test-signbit.c: Likewise.
30388         * tests/test-sleep.c: Likewise.
30389         * tests/test-snprintf-posix.c: Likewise.
30390         * tests/test-snprintf.c: Likewise.
30391         * tests/test-sprintf-posix.c: Likewise.
30392         * tests/test-stat-time.c: Likewise.
30393         * tests/test-stat.c: Likewise.
30394         * tests/test-strcasestr.c: Likewise.
30395         * tests/test-strchrnul.c: Likewise.
30396         * tests/test-strerror.c: Likewise.
30397         * tests/test-striconv.c: Likewise.
30398         * tests/test-striconveh.c: Likewise.
30399         * tests/test-striconveha.c: Likewise.
30400         * tests/test-strsignal.c: Likewise.
30401         * tests/test-strstr.c: Likewise.
30402         * tests/test-strtod.c: Likewise.
30403         * tests/test-strverscmp.c: Likewise.
30404         * tests/test-symlink.c: Likewise.
30405         * tests/test-symlinkat.c: Likewise.
30406         * tests/test-trunc1.c: Likewise.
30407         * tests/test-trunc2.c: Likewise.
30408         * tests/test-truncf1.c: Likewise.
30409         * tests/test-truncf2.c: Likewise.
30410         * tests/test-truncl.c: Likewise.
30411         * tests/test-uname.c: Likewise.
30412         * tests/test-unlink.c: Likewise.
30413         * tests/test-unlinkat.c: Likewise.
30414         * tests/test-unsetenv.c: Likewise.
30415         * tests/test-usleep.c: Likewise.
30416         * tests/test-utimens.c: Likewise.
30417         * tests/test-utimensat.c: Likewise.
30418         * tests/test-vasnprintf-posix.c: Likewise.
30419         * tests/test-vasnprintf-posix2.c: Likewise.
30420         * tests/test-vasnprintf.c: Likewise.
30421         * tests/test-vasprintf-posix.c: Likewise.
30422         * tests/test-vasprintf.c: Likewise.
30423         * tests/test-vdprintf-posix.c: Likewise.
30424         * tests/test-vfprintf-posix.c: Likewise.
30425         * tests/test-vprintf-posix.c: Likewise.
30426         * tests/test-vsnprintf-posix.c: Likewise.
30427         * tests/test-vsnprintf.c: Likewise.
30428         * tests/test-vsprintf-posix.c: Likewise.
30429         * tests/test-wcrtomb.c: Likewise.
30430         * tests/test-wcsnrtombs.c: Likewise.
30431         * tests/test-wcsrtombs.c: Likewise.
30432         * tests/test-wctype.c: Likewise.
30433         * tests/test-wcwidth.c: Likewise.
30434         * tests/test-xfprintf-posix.c: Likewise.
30435         * tests/test-xmemdup0.c: Likewise.
30436         * tests/test-xprintf-posix.c: Likewise.
30437         * tests/test-xvasprintf.c: Likewise.
30438         * tests/unicase/test-locale-language.c: Likewise.
30439         * tests/unicase/test-mapping-part1.h: Likewise.
30440         * tests/unicase/test-predicate-part1.h: Likewise.
30441         * tests/unicase/test-u8-casecmp.c: Likewise.
30442         * tests/unicase/test-u8-casecoll.c: Likewise.
30443         * tests/unicase/test-u8-casefold.c: Likewise.
30444         * tests/unicase/test-u8-is-cased.c: Likewise.
30445         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30446         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30447         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30448         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30449         * tests/unicase/test-u8-tolower.c: Likewise.
30450         * tests/unicase/test-u8-totitle.c: Likewise.
30451         * tests/unicase/test-u8-toupper.c: Likewise.
30452         * tests/unicase/test-u16-casecmp.c: Likewise.
30453         * tests/unicase/test-u16-casecoll.c: Likewise.
30454         * tests/unicase/test-u16-casefold.c: Likewise.
30455         * tests/unicase/test-u16-is-cased.c: Likewise.
30456         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30457         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30458         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30459         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30460         * tests/unicase/test-u16-tolower.c: Likewise.
30461         * tests/unicase/test-u16-totitle.c: Likewise.
30462         * tests/unicase/test-u16-toupper.c: Likewise.
30463         * tests/unicase/test-u32-casecmp.c: Likewise.
30464         * tests/unicase/test-u32-casecoll.c: Likewise.
30465         * tests/unicase/test-u32-casefold.c: Likewise.
30466         * tests/unicase/test-u32-is-cased.c: Likewise.
30467         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30468         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30469         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30470         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30471         * tests/unicase/test-u32-tolower.c: Likewise.
30472         * tests/unicase/test-u32-totitle.c: Likewise.
30473         * tests/unicase/test-u32-toupper.c: Likewise.
30474         * tests/unicase/test-ulc-casecmp.c: Likewise.
30475         * tests/unicase/test-ulc-casecoll.c: Likewise.
30476         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30477         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30478         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30479         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30480         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30481         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30482         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30483         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30484         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30485         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30486         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30487         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30488         * tests/unictype/test-bidi_byname.c: Likewise.
30489         * tests/unictype/test-bidi_name.c: Likewise.
30490         * tests/unictype/test-bidi_of.c: Likewise.
30491         * tests/unictype/test-bidi_test.c: Likewise.
30492         * tests/unictype/test-block_list.c: Likewise.
30493         * tests/unictype/test-block_of.c: Likewise.
30494         * tests/unictype/test-block_test.c: Likewise.
30495         * tests/unictype/test-categ_and.c: Likewise.
30496         * tests/unictype/test-categ_and_not.c: Likewise.
30497         * tests/unictype/test-categ_byname.c: Likewise.
30498         * tests/unictype/test-categ_name.c: Likewise.
30499         * tests/unictype/test-categ_none.c: Likewise.
30500         * tests/unictype/test-categ_of.c: Likewise.
30501         * tests/unictype/test-categ_or.c: Likewise.
30502         * tests/unictype/test-categ_test_withtable.c: Likewise.
30503         * tests/unictype/test-combining.c: Likewise.
30504         * tests/unictype/test-decdigit.c: Likewise.
30505         * tests/unictype/test-digit.c: Likewise.
30506         * tests/unictype/test-mirror.c: Likewise.
30507         * tests/unictype/test-numeric.c: Likewise.
30508         * tests/unictype/test-pr_byname.c: Likewise.
30509         * tests/unictype/test-pr_test.c: Likewise.
30510         * tests/unictype/test-predicate-part1.h: Likewise.
30511         * tests/unictype/test-scripts.c: Likewise.
30512         * tests/unictype/test-sy_c_ident.c: Likewise.
30513         * tests/unictype/test-sy_java_ident.c: Likewise.
30514         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30515         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30516         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30517         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30518         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30519         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30520         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30521         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30522         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30523         * tests/uninorm/test-compat-decomposition.c: Likewise.
30524         * tests/uninorm/test-composition.c: Likewise.
30525         * tests/uninorm/test-decomposing-form.c: Likewise.
30526         * tests/uninorm/test-decomposition.c: Likewise.
30527         * tests/uninorm/test-u8-nfc.c: Likewise.
30528         * tests/uninorm/test-u8-nfd.c: Likewise.
30529         * tests/uninorm/test-u8-nfkc.c: Likewise.
30530         * tests/uninorm/test-u8-nfkd.c: Likewise.
30531         * tests/uninorm/test-u8-normcmp.c: Likewise.
30532         * tests/uninorm/test-u8-normcoll.c: Likewise.
30533         * tests/uninorm/test-u16-nfc.c: Likewise.
30534         * tests/uninorm/test-u16-nfd.c: Likewise.
30535         * tests/uninorm/test-u16-nfkc.c: Likewise.
30536         * tests/uninorm/test-u16-nfkd.c: Likewise.
30537         * tests/uninorm/test-u16-normcmp.c: Likewise.
30538         * tests/uninorm/test-u16-normcoll.c: Likewise.
30539         * tests/uninorm/test-u32-nfc.c: Likewise.
30540         * tests/uninorm/test-u32-nfd.c: Likewise.
30541         * tests/uninorm/test-u32-nfkc.c: Likewise.
30542         * tests/uninorm/test-u32-nfkd.c: Likewise.
30543         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30544         * tests/uninorm/test-u32-normcmp.c: Likewise.
30545         * tests/uninorm/test-u32-normcoll.c: Likewise.
30546         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30547         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30548         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30549         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30550         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30551         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30552         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30553         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30554         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30555         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30556         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30557         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30558         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30559         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30560         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30561         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30562         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30563         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30564         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30565         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30566         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30567         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30568         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30569         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30570         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30571         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30572         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30573         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30574         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30575         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30576         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30577         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30578         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30579         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30580         * tests/uniwidth/test-u8-width.c: Likewise.
30581         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30582         * tests/uniwidth/test-u16-width.c: Likewise.
30583         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30584         * tests/uniwidth/test-u32-width.c: Likewise.
30585         * tests/uniwidth/test-uc_width.c: Likewise.
30586         * tests/uniwidth/test-uc_width2.c: Likewise.
30587         * modules/acl-tests (Files): Add tests/macros.h.
30588         * modules/areadlink-tests (Files): Likewise.
30589         * modules/areadlink-with-size-tests (Files): Likewise.
30590         * modules/areadlinkat-tests (Files): Likewise.
30591         * modules/areadlinkat-with-size-tests (Files): Likewise.
30592         * modules/argmatch-tests (Files): Likewise.
30593         * modules/argv-iter-tests (Files): Likewise.
30594         * modules/array-list-tests (Files): Likewise.
30595         * modules/array-mergesort-tests (Files): Likewise.
30596         * modules/array-oset-tests (Files): Likewise.
30597         * modules/avltree-list-tests (Files): Likewise.
30598         * modules/avltree-oset-tests (Files): Likewise.
30599         * modules/avltreehash-list-tests (Files): Likewise.
30600         * modules/base64-tests (Files): Likewise.
30601         * modules/binary-io-tests (Files): Likewise.
30602         * modules/bitrotate-tests (Files): Likewise.
30603         * modules/btowc-tests (Files): Likewise.
30604         * modules/byteswap-tests (Files): Likewise.
30605         * modules/c-ctype-tests (Files): Likewise.
30606         * modules/c-stack-tests (Files): Likewise.
30607         * modules/c-strcase-tests (Files): Likewise.
30608         * modules/c-strcasestr-tests (Files): Likewise.
30609         * modules/c-strstr-tests (Files): Likewise.
30610         * modules/canonicalize-lgpl-tests (Files): Likewise.
30611         * modules/canonicalize-tests (Files): Likewise.
30612         * modules/carray-list-tests (Files): Likewise.
30613         * modules/ceilf-tests (Files): Likewise.
30614         * modules/ceill-tests (Files): Likewise.
30615         * modules/chown-tests (Files): Likewise.
30616         * modules/cloexec-tests (Files): Likewise.
30617         * modules/copy-file-tests (Files): Likewise.
30618         * modules/count-one-bits-tests (Files): Likewise.
30619         * modules/dprintf-posix-tests (Files): Likewise.
30620         * modules/dup2-tests (Files): Likewise.
30621         * modules/dup3-tests (Files): Likewise.
30622         * modules/duplocale-tests (Files): Likewise.
30623         * modules/fbufmode-tests (Files): Likewise.
30624         * modules/fchdir-tests (Files): Likewise.
30625         * modules/fcntl-safer-tests (Files): Likewise.
30626         * modules/fcntl-tests (Files): Likewise.
30627         * modules/fdopendir-tests (Files): Likewise.
30628         * modules/fdutimensat-tests (Files): Likewise.
30629         * modules/fflush-tests (Files): Likewise.
30630         * modules/filevercmp-tests (Files): Likewise.
30631         * modules/flock-tests (Files): Likewise.
30632         * modules/floorf-tests (Files): Likewise.
30633         * modules/floorl-tests (Files): Likewise.
30634         * modules/fnmatch-tests (Files): Likewise.
30635         * modules/fopen-safer-tests (Files): Likewise.
30636         * modules/fopen-tests (Files): Likewise.
30637         * modules/fpending-tests (Files): Likewise.
30638         * modules/fprintf-posix-tests (Files): Likewise.
30639         * modules/fpurge-tests (Files): Likewise.
30640         * modules/freadable-tests (Files): Likewise.
30641         * modules/freadahead-tests (Files): Likewise.
30642         * modules/freading-tests (Files): Likewise.
30643         * modules/freadptr-tests (Files): Likewise.
30644         * modules/freadseek-tests (Files): Likewise.
30645         * modules/freopen-tests (Files): Likewise.
30646         * modules/frexp-nolibm-tests (Files): Likewise.
30647         * modules/frexp-tests (Files): Likewise.
30648         * modules/frexpl-nolibm-tests (Files): Likewise.
30649         * modules/frexpl-tests (Files): Likewise.
30650         * modules/fseek-tests (Files): Likewise.
30651         * modules/fseeko-tests (Files): Likewise.
30652         * modules/fstrcmp-tests (Files): Likewise.
30653         * modules/fsync-tests (Files): Likewise.
30654         * modules/ftell-tests (Files): Likewise.
30655         * modules/ftello-tests (Files): Likewise.
30656         * modules/func-tests (Files): Likewise.
30657         * modules/futimens-tests (Files): Likewise.
30658         * modules/fwritable-tests (Files): Likewise.
30659         * modules/fwriting-tests (Files): Likewise.
30660         * modules/getcwd-tests (Files): Likewise.
30661         * modules/getdate-tests (Files): Likewise.
30662         * modules/getdelim-tests (Files): Likewise.
30663         * modules/getdtablesize-tests (Files): Likewise.
30664         * modules/getgroups-tests (Files): Likewise.
30665         * modules/getline-tests (Files): Likewise.
30666         * modules/getndelim2-tests (Files): Likewise.
30667         * modules/glob-tests (Files): Likewise.
30668         * modules/hash-tests (Files): Likewise.
30669         * modules/i-ring-tests (Files): Likewise.
30670         * modules/iconv-tests (Files): Likewise.
30671         * modules/iconv_open-utf-tests (Files): Likewise.
30672         * modules/idpriv-drop-tests (Files): Likewise.
30673         * modules/idpriv-droptemp-tests (Files): Likewise.
30674         * modules/inet_ntop-tests (Files): Likewise.
30675         * modules/inet_pton-tests (Files): Likewise.
30676         * modules/isblank-tests (Files): Likewise.
30677         * modules/isfinite-tests (Files): Likewise.
30678         * modules/isinf-tests (Files): Likewise.
30679         * modules/isnan-tests (Files): Likewise.
30680         * modules/isnand-nolibm-tests (Files): Likewise.
30681         * modules/isnand-tests (Files): Likewise.
30682         * modules/isnanf-nolibm-tests (Files): Likewise.
30683         * modules/isnanf-tests (Files): Likewise.
30684         * modules/isnanl-nolibm-tests (Files): Likewise.
30685         * modules/isnanl-tests (Files): Likewise.
30686         * modules/lchown-tests (Files): Likewise.
30687         * modules/ldexpl-tests (Files): Likewise.
30688         * modules/link-tests (Files): Likewise.
30689         * modules/linkat-tests (Files): Likewise.
30690         * modules/linked-list-tests (Files): Likewise.
30691         * modules/linkedhash-list-tests (Files): Likewise.
30692         * modules/localename-tests (Files): Likewise.
30693         * modules/lseek-tests (Files): Likewise.
30694         * modules/lstat-tests (Files): Likewise.
30695         * modules/mbmemcasecmp-tests (Files): Likewise.
30696         * modules/mbmemcasecoll-tests (Files): Likewise.
30697         * modules/mbrtowc-tests (Files): Likewise.
30698         * modules/mbscasecmp-tests (Files): Likewise.
30699         * modules/mbscasestr-tests (Files): Likewise.
30700         * modules/mbschr-tests (Files): Likewise.
30701         * modules/mbscspn-tests (Files): Likewise.
30702         * modules/mbsinit-tests (Files): Likewise.
30703         * modules/mbsncasecmp-tests (Files): Likewise.
30704         * modules/mbsnrtowcs-tests (Files): Likewise.
30705         * modules/mbspbrk-tests (Files): Likewise.
30706         * modules/mbspcasecmp-tests (Files): Likewise.
30707         * modules/mbsrchr-tests (Files): Likewise.
30708         * modules/mbsrtowcs-tests (Files): Likewise.
30709         * modules/mbsspn-tests (Files): Likewise.
30710         * modules/mbsstr-tests (Files): Likewise.
30711         * modules/memchr-tests (Files): Likewise.
30712         * modules/memchr2-tests (Files): Likewise.
30713         * modules/memcmp-tests (Files): Likewise.
30714         * modules/memmem-tests (Files): Likewise.
30715         * modules/memrchr-tests (Files): Likewise.
30716         * modules/mkdir-tests (Files): Likewise.
30717         * modules/mkfifo-tests (Files): Likewise.
30718         * modules/mkfifoat-tests (Files): Likewise.
30719         * modules/mknod-tests (Files): Likewise.
30720         * modules/nanosleep-tests (Files): Likewise.
30721         * modules/nl_langinfo-tests (Files): Likewise.
30722         * modules/obstack-printf-tests (Files): Likewise.
30723         * modules/open-tests (Files): Likewise.
30724         * modules/openat-tests (Files): Likewise.
30725         * modules/pipe-filter-gi-tests (Files): Likewise.
30726         * modules/pipe-filter-ii-tests (Files): Likewise.
30727         * modules/pipe2-tests (Files): Likewise.
30728         * modules/popen-safer-tests (Files): Likewise.
30729         * modules/popen-tests (Files): Likewise.
30730         * modules/posixtm-tests (Files): Likewise.
30731         * modules/pread-tests (Files): Likewise.
30732         * modules/printf-frexp-tests (Files): Likewise.
30733         * modules/printf-frexpl-tests (Files): Likewise.
30734         * modules/printf-posix-tests (Files): Likewise.
30735         * modules/priv-set-tests (Files): Likewise.
30736         * modules/quotearg-tests (Files): Likewise.
30737         * modules/random_r-tests (Files): Likewise.
30738         * modules/rawmemchr-tests (Files): Likewise.
30739         * modules/rbtree-list-tests (Files): Likewise.
30740         * modules/rbtree-oset-tests (Files): Likewise.
30741         * modules/rbtreehash-list-tests (Files): Likewise.
30742         * modules/readlink-tests (Files): Likewise.
30743         * modules/remove-tests (Files): Likewise.
30744         * modules/rename-tests (Files): Likewise.
30745         * modules/renameat-tests (Files): Likewise.
30746         * modules/rmdir-tests (Files): Likewise.
30747         * modules/round-tests (Files): Likewise.
30748         * modules/roundf-tests (Files): Likewise.
30749         * modules/roundl-tests (Files): Likewise.
30750         * modules/safe-alloc-tests (Files): Likewise.
30751         * modules/setenv-tests (Files): Likewise.
30752         * modules/sigaction-tests (Files): Likewise.
30753         * modules/signbit-tests (Files): Likewise.
30754         * modules/sleep-tests (Files): Likewise.
30755         * modules/snprintf-posix-tests (Files): Likewise.
30756         * modules/snprintf-tests (Files): Likewise.
30757         * modules/sprintf-posix-tests (Files): Likewise.
30758         * modules/stat-tests (Files): Likewise.
30759         * modules/stat-time-tests (Files): Likewise.
30760         * modules/strcasestr-tests (Files): Likewise.
30761         * modules/strchrnul-tests (Files): Likewise.
30762         * modules/strerror-tests (Files): Likewise.
30763         * modules/striconv-tests (Files): Likewise.
30764         * modules/striconveh-tests (Files): Likewise.
30765         * modules/striconveha-tests (Files): Likewise.
30766         * modules/strsignal-tests (Files): Likewise.
30767         * modules/strstr-tests (Files): Likewise.
30768         * modules/strtod-tests (Files): Likewise.
30769         * modules/strverscmp-tests (Files): Likewise.
30770         * modules/symlink-tests (Files): Likewise.
30771         * modules/symlinkat-tests (Files): Likewise.
30772         * modules/trunc-tests (Files): Likewise.
30773         * modules/truncf-tests (Files): Likewise.
30774         * modules/truncl-tests (Files): Likewise.
30775         * modules/uname-tests (Files): Likewise.
30776         * modules/unicase/cased-tests (Files): Likewise.
30777         * modules/unicase/ignorable-tests (Files): Likewise.
30778         * modules/unicase/locale-language-tests (Files): Likewise.
30779         * modules/unicase/tolower-tests (Files): Likewise.
30780         * modules/unicase/totitle-tests (Files): Likewise.
30781         * modules/unicase/toupper-tests (Files): Likewise.
30782         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30783         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30784         * modules/unicase/u8-casefold-tests (Files): Likewise.
30785         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30786         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30787         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30788         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30789         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30790         * modules/unicase/u8-tolower-tests (Files): Likewise.
30791         * modules/unicase/u8-totitle-tests (Files): Likewise.
30792         * modules/unicase/u8-toupper-tests (Files): Likewise.
30793         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30794         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30795         * modules/unicase/u16-casefold-tests (Files): Likewise.
30796         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30797         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30798         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30799         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30800         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30801         * modules/unicase/u16-tolower-tests (Files): Likewise.
30802         * modules/unicase/u16-totitle-tests (Files): Likewise.
30803         * modules/unicase/u16-toupper-tests (Files): Likewise.
30804         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30805         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30806         * modules/unicase/u32-casefold-tests (Files): Likewise.
30807         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30808         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30809         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30810         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30811         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30812         * modules/unicase/u32-tolower-tests (Files): Likewise.
30813         * modules/unicase/u32-totitle-tests (Files): Likewise.
30814         * modules/unicase/u32-toupper-tests (Files): Likewise.
30815         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30816         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30817         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30818         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30819         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30820         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30821         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30822         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30823         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30824         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30825         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30826         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30827         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30828         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30829         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30830         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30831         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30832         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30833         * modules/unictype/block-list-tests (Files): Likewise.
30834         * modules/unictype/block-of-tests (Files): Likewise.
30835         * modules/unictype/block-test-tests (Files): Likewise.
30836         * modules/unictype/category-C-tests (Files): Likewise.
30837         * modules/unictype/category-Cc-tests (Files): Likewise.
30838         * modules/unictype/category-Cf-tests (Files): Likewise.
30839         * modules/unictype/category-Cn-tests (Files): Likewise.
30840         * modules/unictype/category-Co-tests (Files): Likewise.
30841         * modules/unictype/category-Cs-tests (Files): Likewise.
30842         * modules/unictype/category-L-tests (Files): Likewise.
30843         * modules/unictype/category-Ll-tests (Files): Likewise.
30844         * modules/unictype/category-Lm-tests (Files): Likewise.
30845         * modules/unictype/category-Lo-tests (Files): Likewise.
30846         * modules/unictype/category-Lt-tests (Files): Likewise.
30847         * modules/unictype/category-Lu-tests (Files): Likewise.
30848         * modules/unictype/category-M-tests (Files): Likewise.
30849         * modules/unictype/category-Mc-tests (Files): Likewise.
30850         * modules/unictype/category-Me-tests (Files): Likewise.
30851         * modules/unictype/category-Mn-tests (Files): Likewise.
30852         * modules/unictype/category-N-tests (Files): Likewise.
30853         * modules/unictype/category-Nd-tests (Files): Likewise.
30854         * modules/unictype/category-Nl-tests (Files): Likewise.
30855         * modules/unictype/category-No-tests (Files): Likewise.
30856         * modules/unictype/category-P-tests (Files): Likewise.
30857         * modules/unictype/category-Pc-tests (Files): Likewise.
30858         * modules/unictype/category-Pd-tests (Files): Likewise.
30859         * modules/unictype/category-Pe-tests (Files): Likewise.
30860         * modules/unictype/category-Pf-tests (Files): Likewise.
30861         * modules/unictype/category-Pi-tests (Files): Likewise.
30862         * modules/unictype/category-Po-tests (Files): Likewise.
30863         * modules/unictype/category-Ps-tests (Files): Likewise.
30864         * modules/unictype/category-S-tests (Files): Likewise.
30865         * modules/unictype/category-Sc-tests (Files): Likewise.
30866         * modules/unictype/category-Sk-tests (Files): Likewise.
30867         * modules/unictype/category-Sm-tests (Files): Likewise.
30868         * modules/unictype/category-So-tests (Files): Likewise.
30869         * modules/unictype/category-Z-tests (Files): Likewise.
30870         * modules/unictype/category-Zl-tests (Files): Likewise.
30871         * modules/unictype/category-Zp-tests (Files): Likewise.
30872         * modules/unictype/category-Zs-tests (Files): Likewise.
30873         * modules/unictype/category-and-not-tests (Files): Likewise.
30874         * modules/unictype/category-and-tests (Files): Likewise.
30875         * modules/unictype/category-byname-tests (Files): Likewise.
30876         * modules/unictype/category-name-tests (Files): Likewise.
30877         * modules/unictype/category-none-tests (Files): Likewise.
30878         * modules/unictype/category-of-tests (Files): Likewise.
30879         * modules/unictype/category-or-tests (Files): Likewise.
30880         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30881         * modules/unictype/combining-class-tests (Files): Likewise.
30882         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30883         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30884         * modules/unictype/ctype-blank-tests (Files): Likewise.
30885         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30886         * modules/unictype/ctype-digit-tests (Files): Likewise.
30887         * modules/unictype/ctype-graph-tests (Files): Likewise.
30888         * modules/unictype/ctype-lower-tests (Files): Likewise.
30889         * modules/unictype/ctype-print-tests (Files): Likewise.
30890         * modules/unictype/ctype-punct-tests (Files): Likewise.
30891         * modules/unictype/ctype-space-tests (Files): Likewise.
30892         * modules/unictype/ctype-upper-tests (Files): Likewise.
30893         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30894         * modules/unictype/decimal-digit-tests (Files): Likewise.
30895         * modules/unictype/digit-tests (Files): Likewise.
30896         * modules/unictype/mirror-tests (Files): Likewise.
30897         * modules/unictype/numeric-tests (Files): Likewise.
30898         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30899         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30900         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30901         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30902         Likewise.
30903         * modules/unictype/property-bidi-block-separator-tests (Files):
30904         Likewise.
30905         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30906         Likewise.
30907         * modules/unictype/property-bidi-common-separator-tests (Files):
30908         Likewise.
30909         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30910         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30911         Likewise.
30912         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30913         Likewise.
30914         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30915         Likewise.
30916         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30917         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30918         Likewise.
30919         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30920         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30921         Likewise.
30922         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30923         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30924         * modules/unictype/property-bidi-segment-separator-tests (Files):
30925         Likewise.
30926         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30927         * modules/unictype/property-byname-tests (Files): Likewise.
30928         * modules/unictype/property-combining-tests (Files): Likewise.
30929         * modules/unictype/property-composite-tests (Files): Likewise.
30930         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
30931         * modules/unictype/property-dash-tests (Files): Likewise.
30932         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
30933         * modules/unictype/property-default-ignorable-code-point-tests (Files):
30934         Likewise.
30935         * modules/unictype/property-deprecated-tests (Files): Likewise.
30936         * modules/unictype/property-diacritic-tests (Files): Likewise.
30937         * modules/unictype/property-extender-tests (Files): Likewise.
30938         * modules/unictype/property-format-control-tests (Files): Likewise.
30939         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
30940         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
30941         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
30942         * modules/unictype/property-hex-digit-tests (Files): Likewise.
30943         * modules/unictype/property-hyphen-tests (Files): Likewise.
30944         * modules/unictype/property-id-continue-tests (Files): Likewise.
30945         * modules/unictype/property-id-start-tests (Files): Likewise.
30946         * modules/unictype/property-ideographic-tests (Files): Likewise.
30947         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
30948         * modules/unictype/property-ids-trinary-operator-tests (Files):
30949         Likewise.
30950         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
30951         * modules/unictype/property-iso-control-tests (Files): Likewise.
30952         * modules/unictype/property-join-control-tests (Files): Likewise.
30953         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
30954         * modules/unictype/property-line-separator-tests (Files): Likewise.
30955         * modules/unictype/property-logical-order-exception-tests (Files):
30956         Likewise.
30957         * modules/unictype/property-lowercase-tests (Files): Likewise.
30958         * modules/unictype/property-math-tests (Files): Likewise.
30959         * modules/unictype/property-non-break-tests (Files): Likewise.
30960         * modules/unictype/property-not-a-character-tests (Files): Likewise.
30961         * modules/unictype/property-numeric-tests (Files): Likewise.
30962         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
30963         * modules/unictype/property-other-default-ignorable-code-point-tests
30964         (Files): Likewise.
30965         * modules/unictype/property-other-grapheme-extend-tests (Files):
30966         Likewise.
30967         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
30968         * modules/unictype/property-other-id-start-tests (Files): Likewise.
30969         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
30970         * modules/unictype/property-other-math-tests (Files): Likewise.
30971         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
30972         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
30973         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
30974         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
30975         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
30976         * modules/unictype/property-private-use-tests (Files): Likewise.
30977         * modules/unictype/property-punctuation-tests (Files): Likewise.
30978         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
30979         * modules/unictype/property-radical-tests (Files): Likewise.
30980         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
30981         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
30982         * modules/unictype/property-space-tests (Files): Likewise.
30983         * modules/unictype/property-terminal-punctuation-tests (Files):
30984         Likewise.
30985         * modules/unictype/property-test-tests (Files): Likewise.
30986         * modules/unictype/property-titlecase-tests (Files): Likewise.
30987         * modules/unictype/property-unassigned-code-value-tests (Files):
30988         Likewise.
30989         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
30990         * modules/unictype/property-uppercase-tests (Files): Likewise.
30991         * modules/unictype/property-variation-selector-tests (Files): Likewise.
30992         * modules/unictype/property-white-space-tests (Files): Likewise.
30993         * modules/unictype/property-xid-continue-tests (Files): Likewise.
30994         * modules/unictype/property-xid-start-tests (Files): Likewise.
30995         * modules/unictype/property-zero-width-tests (Files): Likewise.
30996         * modules/unictype/scripts-tests (Files): Likewise.
30997         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
30998         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
30999         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31000         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31001         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31002         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31003         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31004         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31005         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31006         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31007         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31008         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31009         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31010         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31011         * modules/uninorm/composition-tests (Files): Likewise.
31012         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31013         * modules/uninorm/decomposition-tests (Files): Likewise.
31014         * modules/uninorm/filter-tests (Files): Likewise.
31015         * modules/uninorm/nfc-tests (Files): Likewise.
31016         * modules/uninorm/nfd-tests (Files): Likewise.
31017         * modules/uninorm/nfkc-tests (Files): Likewise.
31018         * modules/uninorm/nfkd-tests (Files): Likewise.
31019         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31020         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31021         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31022         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31023         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31024         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31025         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31026         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31027         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31028         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31029         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31030         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31031         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31032         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31033         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31034         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31035         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31036         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31037         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31038         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31039         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31040         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31041         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31042         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31043         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31044         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31045         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31046         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31047         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31048         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31049         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31050         * modules/uniwidth/u8-width-tests (Files): Likewise.
31051         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31052         * modules/uniwidth/u16-width-tests (Files): Likewise.
31053         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31054         * modules/uniwidth/u32-width-tests (Files): Likewise.
31055         * modules/uniwidth/width-tests (Files): Likewise.
31056         * modules/unlink-tests (Files): Likewise.
31057         * modules/unsetenv-tests (Files): Likewise.
31058         * modules/usleep-tests (Files): Likewise.
31059         * modules/utimens-tests (Files): Likewise.
31060         * modules/utimensat-tests (Files): Likewise.
31061         * modules/vasnprintf-posix-tests (Files): Likewise.
31062         * modules/vasnprintf-tests (Files): Likewise.
31063         * modules/vasprintf-posix-tests (Files): Likewise.
31064         * modules/vasprintf-tests (Files): Likewise.
31065         * modules/vdprintf-posix-tests (Files): Likewise.
31066         * modules/vfprintf-posix-tests (Files): Likewise.
31067         * modules/vprintf-posix-tests (Files): Likewise.
31068         * modules/vsnprintf-posix-tests (Files): Likewise.
31069         * modules/vsnprintf-tests (Files): Likewise.
31070         * modules/vsprintf-posix-tests (Files): Likewise.
31071         * modules/wcrtomb-tests (Files): Likewise.
31072         * modules/wcsnrtombs-tests (Files): Likewise.
31073         * modules/wcsrtombs-tests (Files): Likewise.
31074         * modules/wctype-tests (Files): Likewise.
31075         * modules/wcwidth-tests (Files): Likewise.
31076         * modules/xmemdup0-tests (Files): Likewise.
31077         * modules/xprintf-posix-tests (Files): Likewise.
31078         * modules/xvasprintf-tests (Files): Likewise.
31079
31080 2009-12-24  Eric Blake  <ebb9@byu.net>
31081
31082         test-nanosleep: fix typo
31083         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31084         patch.
31085         Reported by Bruno Haible.
31086
31087 2009-12-24  Bruno Haible  <bruno@clisp.org>
31088
31089         Reduce namespace pollution on glibc systems.
31090         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31091         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31092         systems.
31093         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31094         <getopt.h> on glibc systems.
31095         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31096         systems.
31097         * lib/fcntl.c: Include <unistd.h> here instead.
31098
31099 2009-12-24  Bruno Haible  <bruno@clisp.org>
31100
31101         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31102
31103 2009-12-24  Eric Blake  <ebb9@byu.net>
31104
31105         tests: add signature checks
31106         * tests/signature.h (SIGNATURE_CHECK): New file.
31107         * modules/atexit-tests (Files): Use it.
31108         * modules/btowc-tests (Files): Likewise.
31109         * modules/canonicalize-lgpl-tests (Files): Likewise.
31110         * modules/ceilf-tests (Files): Likewise.
31111         * modules/ceill-tests (Files): Likewise.
31112         * modules/chown-tests (Files): Likewise.
31113         * modules/dprintf-posix-tests (Files): Likewise.
31114         * modules/dup2-tests (Files): Likewise.
31115         * modules/dup3-tests (Files): Likewise.
31116         * modules/duplocale-tests (Files): Likewise.
31117         * modules/fchdir-tests (Files): Likewise.
31118         * modules/fcntl-tests (Files): Likewise.
31119         * modules/fdopendir-tests (Files): Likewise.
31120         * modules/fflush-tests (Files): Likewise.
31121         * modules/flock-tests (Files): Likewise.
31122         * modules/floorf-tests (Files): Likewise.
31123         * modules/floorl-tests (Files): Likewise.
31124         * modules/fnmatch-tests (Files): Likewise.
31125         * modules/fopen-tests (Files): Likewise.
31126         * modules/fprintf-posix-tests (Files): Likewise.
31127         * modules/freopen-tests (Files): Likewise.
31128         * modules/frexp-nolibm-tests (Files): Likewise.
31129         * modules/frexp-tests (Files): Likewise.
31130         * modules/frexpl-nolibm-tests (Files): Likewise.
31131         * modules/frexpl-tests (Files): Likewise.
31132         * modules/fseek-tests (Files): Likewise.
31133         * modules/fseeko-tests (Files): Likewise.
31134         * modules/fsync-tests (Files): Likewise.
31135         * modules/ftell-tests (Files): Likewise.
31136         * modules/ftello-tests (Files): Likewise.
31137         * modules/futimens-tests (Files): Likewise.
31138         * modules/getaddrinfo-tests (Files): Likewise.
31139         * modules/getcwd-tests (Files): Likewise.
31140         * modules/getdelim-tests (Files): Likewise.
31141         * modules/getdtablesize-tests (Files): Likewise.
31142         * modules/getgroups-tests (Files): Likewise.
31143         * modules/gethostname-tests (Files): Likewise.
31144         * modules/getline-tests (Files): Likewise.
31145         * modules/getopt-posix-tests (Files): Likewise.
31146         * modules/gettimeofday-tests (Files): Likewise.
31147         * modules/glob-tests (Files): Likewise.
31148         * modules/iconv-tests (Files): Likewise.
31149         * modules/inet_ntop-tests (Files): Likewise.
31150         * modules/inet_pton-tests (Files): Likewise.
31151         * modules/isblank-tests (Files): Likewise.
31152         * modules/lchown-tests (Files): Likewise.
31153         * modules/ldexpl-tests (Files): Likewise.
31154         * modules/link-tests (Files): Likewise.
31155         * modules/linkat-tests (Files): Likewise.
31156         * modules/lseek-tests (Files): Likewise.
31157         * modules/lstat-tests (Files): Likewise.
31158         * modules/mbrtowc-tests (Files): Likewise.
31159         * modules/mbsinit-tests (Files): Likewise.
31160         * modules/mbsnrtowcs-tests (Files): Likewise.
31161         * modules/mbsrtowcs-tests (Files): Likewise.
31162         * modules/memchr-tests (Files): Likewise.
31163         * modules/memcmp-tests (Files): Likewise.
31164         * modules/memmem-tests (Files): Likewise.
31165         * modules/memrchr-tests (Files): Likewise.
31166         * modules/mkdir-tests (Files): Likewise.
31167         * modules/mkfifo-tests (Files): Likewise.
31168         * modules/mkfifoat-tests (Files): Likewise.
31169         * modules/mknod-tests (Files): Likewise.
31170         * modules/nanosleep-tests (Files): Likewise.
31171         * modules/nl_langinfo-tests (Files): Likewise.
31172         * modules/obstack-printf-tests (Files): Likewise.
31173         * modules/open-tests (Files): Likewise.
31174         * modules/openat-tests (Files): Likewise.
31175         * modules/perror-tests (Files): Likewise.
31176         * modules/pipe2-tests (Files): Likewise.
31177         * modules/poll-tests (Files): Likewise.
31178         * modules/popen-tests (Files): Likewise.
31179         * modules/posix_spawn-tests (Files): Likewise.
31180         * modules/posix_spawnp-tests (Files): Likewise.
31181         * modules/pread-tests (Files): Likewise.
31182         * modules/printf-posix-tests (Files): Likewise.
31183         * modules/pty-tests (Files): Likewise.
31184         * modules/random_r-tests (Files): Likewise.
31185         * modules/rawmemchr-tests (Files): Likewise.
31186         * modules/readlink-tests (Files): Likewise.
31187         * modules/remove-tests (Files): Likewise.
31188         * modules/rename-tests (Files): Likewise.
31189         * modules/renameat-tests (Files): Likewise.
31190         * modules/rmdir-tests (Files): Likewise.
31191         * modules/round-tests (Files): Likewise.
31192         * modules/roundf-tests (Files): Likewise.
31193         * modules/roundl-tests (Files): Likewise.
31194         * modules/select-tests (Files): Likewise.
31195         * modules/setenv-tests (Files): Likewise.
31196         * modules/sigaction-tests (Files): Likewise.
31197         * modules/sleep-tests (Files): Likewise.
31198         * modules/snprintf-posix-tests (Files): Likewise.
31199         * modules/snprintf-tests (Files): Likewise.
31200         * modules/sprintf-posix-tests (Files): Likewise.
31201         * modules/stat-tests (Files): Likewise.
31202         * modules/strcasestr-tests (Files): Likewise.
31203         * modules/strchrnul-tests (Files): Likewise.
31204         * modules/strerror-tests (Files): Likewise.
31205         * modules/strsignal-tests (Files): Likewise.
31206         * modules/strstr-tests (Files): Likewise.
31207         * modules/strtod-tests (Files): Likewise.
31208         * modules/strverscmp-tests (Files): Likewise.
31209         * modules/symlink-tests (Files): Likewise.
31210         * modules/symlinkat-tests (Files): Likewise.
31211         * modules/times-tests (Files): Likewise.
31212         * modules/trunc-tests (Files): Likewise.
31213         * modules/truncf-tests (Files): Likewise.
31214         * modules/truncl-tests (Files): Likewise.
31215         * modules/tsearch-tests (Files): Likewise.
31216         * modules/uname-tests (Files): Likewise.
31217         * modules/unlink-tests (Files): Likewise.
31218         * modules/unsetenv-tests (Files): Likewise.
31219         * modules/usleep-tests (Files): Likewise.
31220         * modules/utimensat-tests (Files): Likewise.
31221         * modules/vasprintf-tests (Files): Likewise.
31222         * modules/vdprintf-posix-tests (Files): Likewise.
31223         * modules/vfprintf-posix-tests (Files): Likewise.
31224         * modules/vprintf-posix-tests (Files): Likewise.
31225         * modules/vsnprintf-posix-tests (Files): Likewise.
31226         * modules/vsnprintf-tests (Files): Likewise.
31227         * modules/vsprintf-posix-tests (Files): Likewise.
31228         * modules/wcrtomb-tests (Files): Likewise.
31229         * modules/wcsnrtombs-tests (Files): Likewise.
31230         * modules/wcsrtombs-tests (Files): Likewise.
31231         * modules/wcwidth-tests (Files): Likewise.
31232         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31233         * tests/test-isinf.c (isinf): Likewise.
31234         * tests/test-isnan.c (isnan): Likewise.
31235         * tests/test-signbit.c (signbit): Likewise.
31236         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31237         declaration, either as macro or with correct signature.
31238         (select): Ensure function under test is declared with correct
31239         signature in correct header.
31240         * tests/test-atexit.c (atexit): Likewise.
31241         * tests/test-btowc.c (btowc): Likewise.
31242         * tests/test-canonicalize-lgpl.c (realpath)
31243         (canonicalize_file_name): Likewise.
31244         * tests/test-ceilf1.c (ceilf): Likewise.
31245         * tests/test-ceill.c (ceill): Likewise.
31246         * tests/test-chown.c (chown): Likewise.
31247         * tests/test-dprintf-posix.c (dprintf): Likewise.
31248         * tests/test-dup2.c (dup2): Likewise.
31249         * tests/test-dup3.c (dup3): Likewise.
31250         * tests/test-duplocale.c (duplocale): Likewise.
31251         * tests/test-fchdir.c (fchdir): Likewise.
31252         * tests/test-fchownat.c (fchownat): Likewise.
31253         * tests/test-fcntl.c (fcntl): Likewise.
31254         * tests/test-fdopendir.c (fdopendir): Likewise.
31255         * tests/test-fflush.c (fflush): Likewise.
31256         * tests/test-flock.c (flock): Likewise.
31257         * tests/test-floorf1.c (floorf): Likewise.
31258         * tests/test-floorl.c (floorl): Likewise.
31259         * tests/test-fnmatch.c (fnmatch): Likewise.
31260         * tests/test-fopen.c (fopen): Likewise.
31261         * tests/test-fprintf-posix.c (fprintf): Likewise.
31262         * tests/test-freopen.c (freopen): Likewise.
31263         * tests/test-frexp.c (frexp): Likewise.
31264         * tests/test-frexpl.c (frexpl): Likewise.
31265         * tests/test-fseek.c (fseek): Likewise.
31266         * tests/test-fseeko.c (fseeko): Likewise.
31267         * tests/test-fstatat.c (fstatat): Likewise.
31268         * tests/test-fsync.c (fsync): Likewise.
31269         * tests/test-ftell.c (ftell): Likewise.
31270         * tests/test-ftello.c (ftello): Likewise.
31271         * tests/test-futimens.c (futimens): Likewise.
31272         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31273         (gai_strerror): Likewise.
31274         * tests/test-getcwd.c (getcwd): Likewise.
31275         * tests/test-getdelim.c (getdelim): Likewise.
31276         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31277         * tests/test-getgroups.c (getgroups): Likewise.
31278         * tests/test-gethostname.c (gethostname): Likewise.
31279         * tests/test-getline.c (getline): Likewise.
31280         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31281         Likewise.
31282         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31283         * tests/test-glob.c (glob, globfree): Likewise.
31284         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31285         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31286         * tests/test-inet_pton.c (inet_pton): Likewise.
31287         * tests/test-isblank.c (isblank): Likewise.
31288         * tests/test-lchown.c (lchown): Likewise.
31289         * tests/test-ldexpl.c (ldexpl): Likewise.
31290         * tests/test-link.c (link): Likewise.
31291         * tests/test-linkat.c (linkat): Likewise.
31292         * tests/test-lseek.c (lseek): Likewise.
31293         * tests/test-lstat.c (lstat): Likewise.
31294         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31295         * tests/test-mbsinit.c (mbsinit): Likewise.
31296         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31297         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31298         * tests/test-memchr.c (memchr): Likewise.
31299         * tests/test-memcmp.c (memcmp): Likewise.
31300         * tests/test-memmem.c (memmem): Likewise.
31301         * tests/test-memrchr.c (memrchr): Likewise.
31302         * tests/test-mkdir.c (mkdir): Likewise.
31303         * tests/test-mkdirat.c (mkdirat): Likewise.
31304         * tests/test-mkfifo.c (mkfifo): Likewise.
31305         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31306         * tests/test-mknod.c (mknod): Likewise.
31307         * tests/test-nanosleep.c (nanosleep): Likewise.
31308         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31309         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31310         Likewise.
31311         * tests/test-open.c (open): Likewise.
31312         * tests/test-openat.c (openat): Likewise.
31313         * tests/test-perror.c (perror): Likewise.
31314         * tests/test-pipe2.c (pipe2): Likewise.
31315         * tests/test-poll.c (poll): Likewise.
31316         * tests/test-popen.c (popen, pclose): Likewise.
31317         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31318         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31319         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31320         (posix_spawn_file_actions_destroy)
31321         (posix_spawn_file_actions_addclose)
31322         (posix_spawn_file_actions_addopen)
31323         (posix_spawn_file_actions_adddup2): Likewise.
31324         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31325         * tests/test-pread.c (pread): Likewise.
31326         * tests/test-printf-posix.c (printf): Likewise.
31327         * tests/test-pty.c (openpty, forkpty): Likewise.
31328         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31329         (random_r): Likewise.
31330         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31331         * tests/test-readlink.c (readlink): Likewise.
31332         * tests/test-remove.c (remove): Likewise.
31333         * tests/test-rename.c (rename): Likewise.
31334         * tests/test-renameat.c (renameat): Likewise.
31335         * tests/test-rmdir.c (rmdir): Likewise.
31336         * tests/test-round1.c (round): Likewise.
31337         * tests/test-roundf1.c (roundf): Likewise.
31338         * tests/test-roundl.c (roundl): Likewise.
31339         * tests/test-setenv.c (setenv): Likewise.
31340         * tests/test-sigaction.c (sigaction): Likewise.
31341         * tests/test-sleep.c (sleep): Likewise.
31342         * tests/test-snprintf.c (snprintf): Likewise.
31343         * tests/test-sprintf-posix.c (sprintf): Likewise.
31344         * tests/test-stat.c (stat): Likewise.
31345         * tests/test-stpncpy.c (stpncpy): Likewise.
31346         * tests/test-strcasestr.c (strcasestr): Likewise.
31347         * tests/test-strchrnul.c (strchrnul): Likewise.
31348         * tests/test-strerror.c (strerror): Likewise.
31349         * tests/test-strsignal.c (strsignal): Likewise.
31350         * tests/test-strstr.c (strstr): Likewise.
31351         * tests/test-strtod.c (strtod): Likewise.
31352         * tests/test-strverscmp.c (strverscmp): Likewise.
31353         * tests/test-symlink.c (symlink): Likewise.
31354         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31355         * tests/test-times.c (times): Likewise.
31356         * tests/test-trunc1.c (trunc): Likewise.
31357         * tests/test-truncf1.c (truncf): Likewise.
31358         * tests/test-truncl.c (truncl): Likewise.
31359         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31360         Likewise.
31361         * tests/test-uname.c (uname): Likewise.
31362         * tests/test-unlink.c (unlink): Likewise.
31363         * tests/test-unlinkat.c (unlinkat): Likewise.
31364         * tests/test-unsetenv.c (unsetenv): Likewise.
31365         * tests/test-usleep.c (usleep): Likewise.
31366         * tests/test-utimensat.c (utimensat): Likewise.
31367         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31368         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31369         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31370         * tests/test-vprintf-posix.c (vprintf): Likewise.
31371         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31372         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31373         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31374         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31375         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31376         * tests/test-wcwidth.c (wcwidth): Likewise.
31377
31378         build: pull in conditional headers during GNULIB_POSIXCHECK
31379         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31380         definitions from any conditionally-included headers.
31381         * lib/stdlib.in.h (includes): Likewise.
31382         * lib/unistd.in.h (includes): Likewise.
31383
31384 2009-12-24  Bruno Haible  <bruno@clisp.org>
31385
31386         * tests/test-argv-iter.c: Include header file being tested immediately
31387         after config.h.
31388         * tests/test-base64.c: Likewise.
31389         * tests/test-flock.c: Likewise.
31390         * tests/test-fsync.c: Likewise.
31391         * tests/test-getdate.c: Likewise.
31392         * tests/test-getndelim2.c: Likewise.
31393         * tests/test-isfinite.c: Likewise.
31394         * tests/test-isinf.c: Likewise.
31395         * tests/test-strerror.c: Likewise.
31396         * tests/test-strsignal.c: Likewise.
31397
31398 2009-12-23  Eric Blake  <ebb9@byu.net>
31399
31400         unistd: work around cygwin bug
31401         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31402         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31403         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31404
31405 2009-12-23  Bruno Haible  <bruno@clisp.org>
31406
31407         localename: More tests.
31408         * tests/test-localename.c (SIZEOF): New macro.
31409         (categories): New variable.
31410         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31411         test_locale_name_default): Add test w.r.t. thread locale.
31412         (test_locale_name_thread): New function.
31413         (main): Invoke it.
31414
31415         localename: Make aware of thread locale.
31416         * lib/localename.h (gl_locale_name_thread): New declaration.
31417         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31418         behaviour with respect to thread locale.
31419         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31420         <langinfo.h>, glthread/lock.h.
31421         (SIZE_BITS): New macro.
31422         (string_hash): New function.
31423         (struct hash_node): New type.
31424         (HASH_TABLE_SIZE): New macro.
31425         (struniq_hash_table, struniq_lock): New variables.
31426         (struniq): New function.
31427         (gl_locale_name_thread): New function.
31428         (gl_locale_name): Invoke it.
31429         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31430         * modules/localename (Depends-on): Add lock.
31431         Reported by Mike Gran <spk121@yahoo.com>.
31432
31433 2009-12-23  Eric Blake  <ebb9@byu.net>
31434
31435         va-args: new module
31436         * modules/va-args: New file.
31437         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31438         * MODULES.html.sh (Core language properties): Mention it.
31439
31440         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31441         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31442         named alias for __attribute__((__unused__)).
31443         * lib/chown.c: Update client.
31444         * lib/fchmodat.c: Likewise.
31445         * lib/fts.c: Likewise.
31446         * lib/getdate.y: Likewise.
31447         * lib/getgroups.c: Likewise.
31448         * lib/getopt.c: Likewise.
31449         * lib/getugroups.c: Likewise.
31450         * lib/mkdir.c: Likewise.
31451         * lib/mkfifo.c: Likewise.
31452         * lib/mkfifoat.c: Likewise.
31453         * lib/mknod.c: Likewise.
31454         * lib/mknodat.c: Likewise.
31455         * lib/readlink.c: Likewise.
31456         * lib/se-context.in.h: Likewise.
31457         * lib/se-selinux.in.h: Likewise.
31458         * lib/sockets.c: Likewise.
31459         * lib/symlink.c: Likewise.
31460         * lib/symlinkat.c: Likewise.
31461         * lib/unicodeio.c: Likewise.
31462         * lib/unistr.h: Likewise.
31463         * tests/test-areadlink.c: Likewise.
31464         * tests/test-areadlinkat.c: Likewise.
31465         * tests/test-filenamecat.c: Likewise.
31466         * tests/test-fseeko.c: Likewise.
31467         * tests/test-ftello.c: Likewise.
31468         * tests/test-getdate.c: Likewise.
31469         * tests/test-getgroups.c: Likewise.
31470         * tests/test-gethostname.c: Likewise.
31471         * tests/test-quotearg.c: Likewise.
31472         * tests/test-version-etc.c: Likewise.
31473         * tests/test-xalloc-die.c: Likewise.
31474         * tests/test-xfprintf-posix.c: Likewise.
31475         * tests/test-xprintf-posix.c: Likewise.
31476         * tests/test-xvasprintf.c: Likewise.
31477
31478         tests: avoid compiler warnings
31479         * tests/test-fcntl.c (main): Delete unused parameters.
31480         * tests/test-freopen-safer.c (main): Likewise.
31481         * tests/test-xalloc-die.c (main): Mark unused parameters.
31482         * tests/test-fseeko.c (main): Likewise.
31483         * tests/test-ftello.c (main): Likewise.
31484         * tests/test-nanosleep.c (main): Avoid declaration warning.
31485         * tests/test-sleep.c (main): Likewise.
31486         * tests/test-unsetenv.c (main): Silence warning about string
31487         literal.
31488         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31489
31490 2009-12-23  Bruno Haible  <bruno@clisp.org>
31491
31492         * tests/test-localename.c (test_locale_name): New function, extracted
31493         from main. Also test mixed situations.
31494         (test_locale_name_posix, test_locale_name_environ,
31495         test_locale_name_default): New functions.
31496         (main): Invoke them all.
31497         * modules/localename-tests (configure.ac): Test for newlocale.
31498
31499 2009-12-23  Bruno Haible  <bruno@clisp.org>
31500
31501         unistd: Ensure getcwd gets declared before being overridden.
31502         * lib/unistd.in.h: Conditionally include <io.h>.
31503
31504 2009-12-22  Bruno Haible  <bruno@clisp.org>
31505
31506         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31507         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31508         (gl_WCHAR_H): Invoke it.
31509         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31510         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31511         Reported by Karl Berry <karl@freefriends.org>.
31512
31513 2009-12-22  Eric Blake  <ebb9@byu.net>
31514
31515         math, unistd: avoid redundant includes
31516         * lib/math.in.h (isnan): No need to re-include <math.h>.
31517         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31518
31519         getsubopt: work around cygwin bug
31520         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31521         avoid conflicting with system getsubopt.
31522         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31523         bug.
31524
31525         getopt: synchronize from glibc
31526         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31527         parameter order.  Adjust all callers.
31528         (_getopt_internal_r, main): Adjust quoting in error messages.
31529         Drop considerations for outdated POSIX 1003.2 error message.
31530         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31531         callers.
31532         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31533
31534         test-getopt: test stderr behavior
31535         * modules/getopt-posix-tests (Depends-on): Add dup2.
31536         * tests/test-getopt.c (ASSERT): Avoid stderr.
31537         (main): Move stderr to a temporary file.
31538         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31539         Instead, add parameter to inform caller if output occurred.
31540         (test_getopt): Adjust all existing tests to expect silence, and
31541         add new tests of leading ":".
31542         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31543         glibc shortcomings with leading "-:" or "+:" in optstring.
31544         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31545         Likewise.
31546         * doc/posix-functions/getopt.texi (getopt): Likewise.
31547
31548         test-getopt: enhance test
31549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31550         supports optind=0.
31551         * tests/test-getopt.c (OPTIND_MIN): Move...
31552         * tests/test-getopt.h (OPTIND_MIN): ...here.
31553         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31554         Require that optind=0 works, since modern BSD supports it in
31555         addition to optreset, and since coreutils expects it.
31556         (test_getopt_long_only): New test.
31557         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31558         glibc shortcomings with 'W;', and enforcement of optind=0.
31559         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31560         Likewise.
31561
31562 2009-12-21  Bruno Haible  <bruno@clisp.org>
31563
31564         localename: Improvements for MacOS X and Cygwin.
31565         * lib/localename.h (gl_locale_name_environ): New declaration.
31566         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31567         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31568         (gl_locale_name_posix): Invoke it.
31569         (gl_locale_name_default): Add comments. Use Windows native API also on
31570         Cygwin.
31571
31572 2009-12-21  Bruno Haible  <bruno@clisp.org>
31573
31574         Update list of Win32 locale ids.
31575         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31576         (LANG_SAMI): Renamed from LANG_SAAMI.
31577         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31578         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31579         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31580         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31581         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31582         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31583         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31584         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31585         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31586         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31587         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31588         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31589         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31590         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31591         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31592         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31593         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31594         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31595         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31596         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31597         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31598         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31599         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31600         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31601         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31602         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31603         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31604         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31605         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31606         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31607         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31608         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31609         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31610         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31611         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31612         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31613         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31614         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31615         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31616         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31617         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31618         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31619         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31620         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31621         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31622         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31623         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31624         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31625         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31626         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31627         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31628         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31629         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31630         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31631         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31632         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31633         Add more languages and countries for Sami, Sorbian. Add more countries
31634         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31635         for Pashto. Change country for Syriac, Tswana.
31636
31637 2009-12-21  Eric Blake  <ebb9@byu.net>
31638
31639         test-utimens: avoid spurious failure
31640         * tests/test-chown.h (nap): Factor...
31641         * tests/nap.h: ...into new file.
31642         * tests/test-lchown.h (nap): Avoid duplication.
31643         * tests/test-utimens-common.h (nap): Use shared implementation,
31644         necessary on file systems with 1-second resolution.
31645         * modules/chown-tests (Files): Include new file.
31646         * modules/fdutimensat-tests (Files): Likewise.
31647         * modules/futimens-tests (Files): Likewise.
31648         * modules/lchown-tests (Files): Likewise.
31649         * modules/openat-tests (Files): Likewise.
31650         * modules/utimens-tests (Files): Likewise.
31651         * modules/utimensat-tests (Files): Likewise.
31652
31653 2009-12-19  Eric Blake  <ebb9@byu.net>
31654
31655         futimens, utimensat: work around Linux bug
31656         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31657         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31658         * lib/utimensat.c (rpl_utimensat): Work around it.
31659         * lib/futimens.c (rpl_futimens): Adjust comment.
31660
31661         utimens: work around Linux ctime bug
31662         * lib/utimens.c (detect_ctime_bug): New helper function.
31663         (update_timespec): Differentiate between workaround needed for
31664         this bug vs. what is needed for systems that lack utimensat.
31665         (fdutimens, lutimens): Work around bug.
31666
31667         utimens: check for ctime update
31668         * tests/test-utimens-common.h (check_ctime): Define.
31669         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31670         * tests/test-futimens.h (test_futimens): Likewise.
31671         * tests/test-lutimens.h (test_lutimens): Likewise.
31672         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31673         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31674
31675 2009-12-19  Bruno Haible  <bruno@clisp.org>
31676
31677         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31678         * tests/test-dprintf-posix2.sh: New file.
31679         * tests/test-dprintf-posix2.c: New file.
31680         * modules/dprintf-posix-tests (Files): Add them.
31681         (configure.ac): Check for getrlimit and setrlimit.
31682         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31683
31684 2009-12-19  Bruno Haible  <bruno@clisp.org>
31685
31686         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31687         * tests/test-fprintf-posix3.sh: New file.
31688         * tests/test-fprintf-posix3.c: New file.
31689         * modules/fprintf-posix-tests (Files): Add them.
31690         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31691
31692 2009-12-19  Eric Blake  <ebb9@byu.net>
31693
31694         dirfd: fix prototype
31695         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31696         * lib/dirfd.c (dirfd): Likewise.
31697
31698         canonicalize: reduce memory usage
31699         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31700         allocation to size.
31701         Reported by Solar Designer <solar@openwall.com>.
31702
31703 2009-12-19  Bruno Haible  <bruno@clisp.org>
31704
31705         New module attribute 'Applicability'.
31706         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31707         * gnulib-tool: New option --extract-applicability.
31708         (func_usage): Document it.
31709         (sed_extract_prog): Recognize it.
31710         (func_get_applicability): New function.
31711         (func_import): Generalize handling of 'link-warning' module.
31712         * modules/link-warning (Applicability): New section.
31713         * modules/arg-nonnull (Applicability): New section.
31714         Repoted by Simon Josefsson <simon@josefsson.org>.
31715
31716 2009-12-19  Bruno Haible  <bruno@clisp.org>
31717
31718         fflush: tweak
31719         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31720         * lib/fseeko.c (rpl_fseeko): Likewise.
31721
31722 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31723
31724         * lib/gl_list.h: Fix typo in comment.
31725
31726 2009-12-16  Eric Blake  <ebb9@byu.net>
31727
31728         fcntl: use to simplify other modules
31729         * modules/cloexec (Depends-on): Add fcntl.
31730         * modules/fchdir (Depends-on): Likewise.
31731         * modules/fd-safer-flag (Depends-on): Likewise.
31732         * modules/unistd-safer (Depends-on): Likewise.
31733         * modules/dup3 (configure.ac): Set module indicator.
31734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31735         missing.
31736         * lib/fchdir.c (_gl_register_dup): Fix comment.
31737         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31738         * lib/dup-safer.c (dup_safer): Likewise.
31739         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31740         * lib/dup3.c (dup3): Likewise.
31741         * tests/test-fchdir.c (main): Enhance test.
31742         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
31743
31744         fcntl: port portions of fcntl to mingw
31745         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31746         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31747         replacement for mingw.
31748         * modules/fcntl (Description): Update.
31749         (Depends-on): Add dup2.
31750         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31751         * modules/fcntl-h (Makefile.am): Substitute it.
31752         * lib/fcntl.in.h (fcntl): Update declaration.
31753         (F_DUPFD, F_GETFD): New macros, when needed.
31754         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31755         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31756         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31757         we now guarantee.
31758
31759         fcntl: work around cygwin bug in F_DUPFD
31760         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31761         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31762         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31763         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31764         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31765
31766         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31767         * modules/fcntl (Files): List new files.
31768         (configure.ac): Run a test.
31769         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31770         * lib/fcntl.c (rpl_fcntl): Likewise.
31771         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31772         (gl_FCNTL_H): Always replace fcntl.h.
31773         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31774         * lib/fcntl.in.h (fcntl): Declare replacement.
31775         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31776         needed, plus a witness.
31777         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31778         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31779         * tests/test-fcntl.c: New file.
31780         * modules/fcntl-tests: Likewise.
31781
31782         binary-io: avoid potential compilation warning
31783         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31784         directives.
31785
31786         fflush: avoid compilation error on NetBSD
31787         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31788         between off_t and fpos_t, since the latter is sometimes a struct.
31789         * lib/fseeko.c (rpl_fseeko): Likewise.
31790         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31791
31792 2009-12-15  Eric Blake  <ebb9@byu.net>
31793
31794         fcntl-h, stdio, sys_ioctl: fix declarations
31795         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31796         function must not take arguments.
31797         * lib/sys_ioctl.in.h (ioctl): Likewise.
31798         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31799         (open): Add a link warning.
31800
31801 2009-12-15  Jim Meyering  <meyering@redhat.com>
31802
31803         areadlink, areadlink-with-size: relax license to LGPLv2+
31804         * modules/areadlink (License): Relax to LGPLv2+.
31805         * modules/areadlink-with-size (License): Likewise.
31806
31807 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31808             Bruno Haible  <bruno@clisp.org>
31809
31810         *printf: Fix memory leak.
31811         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31812         * lib/vfprintf.c (vfprintf): Likewise.
31813         * lib/dprintf.c (dprintf): Likewise.
31814         * lib/vdprintf.c (vdprintf): Likewise.
31815
31816 2009-12-14  Eric Blake  <ebb9@byu.net>
31817
31818         accept4: adjust module dependencies
31819         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31820
31821         utimens: one more try at avoiding compiler warning
31822         * lib/utimens.c (lutimens): Lower scope of result.
31823
31824 2009-12-13  Bruno Haible  <bruno@clisp.org>
31825
31826         Move the malloc checking from module 'list' to new module 'xlist'.
31827         * modules/xlist: New file.
31828         * lib/gl_xlist.h: New file.
31829         * lib/gl_xlist.c: New file.
31830         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31831         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31832         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31833         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31834         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31835         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31836         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31837         gl_sortedlist_nx_add): New declarations.
31838         (struct gl_list_implementation): Rename and change methods accordingly.
31839         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31840         (gl_list_nx_create): Renamed from gl_list_create.
31841         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31842         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31843         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31844         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31845         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31846         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31847         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31848         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31849         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31850         gl_list_create_empty.
31851         (gl_list_nx_create): Renamed from gl_list_create.
31852         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31853         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31854         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31855         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31856         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31857         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31858         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31859         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31860         * lib/gl_array_list.c: Don't include xalloc.h.
31861         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31862         NULL upon out-of-memory.
31863         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31864         out-of-memory.
31865         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31866         Change return type to 'int'.
31867         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31868         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31869         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31870         upon out-of-memory.
31871         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31872         upon out-of-memory.
31873         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31874         upon out-of-memory.
31875         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31876         upon out-of-memory.
31877         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31878         out-of-memory.
31879         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31880         Update.
31881         (gl_array_list_implementation): Update.
31882         * lib/gl_carray_list.c: Don't include xalloc.h.
31883         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31884         Return NULL upon out-of-memory.
31885         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31886         out-of-memory.
31887         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31888         Change return type to 'int'.
31889         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31890         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31891         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31892         upon out-of-memory.
31893         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31894         upon out-of-memory.
31895         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31896         out-of-memory.
31897         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31898         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31899         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31900         Update.
31901         (gl_carray_list_implementation): Update.
31902         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31903         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31904         gl_linked_create_empty. Return NULL upon out-of-memory.
31905         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31906         out-of-memory.
31907         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31908         Change return type to 'int'. Return -1 upon out-of-memory.
31909         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31910         out-of-memory.
31911         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31912         upon out-of-memory.
31913         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31914         upon out-of-memory.
31915         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31916         NULL upon out-of-memory.
31917         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31918         upon out-of-memory.
31919         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31920         out-of-memory.
31921         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31922         Update.
31923         * lib/gl_linked_list.c: Don't include xalloc.h.
31924         (gl_linked_list_implementation): Update.
31925         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31926         (add_to_bucket): Change return type to 'int'.
31927         (gl_linkedhash_list_implementation): Update.
31928         * lib/gl_anytree_list1.h (free_subtree): New function.
31929         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
31930         gl_tree_create_empty. Return NULL upon out-of-memory.
31931         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
31932         Change return type to 'int'. Return -1 upon out-of-memory.
31933         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
31934         out-of-memory.
31935         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
31936         (gl_tree_remove_node): New function, moved here from
31937         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
31938         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
31939         Update.
31940         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
31941         malloc, not xmalloc. Return NULL upon out-of-memory.
31942         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31943         out-of-memory.
31944         (gl_tree_remove_node_from_tree): New function, extracted from
31945         gl_tree_remove_node.
31946         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31947         upon out-of-memory.
31948         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31949         out-of-memory.
31950         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31951         upon out-of-memory.
31952         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31953         upon out-of-memory.
31954         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31955         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
31956         not xmalloc. Return NULL upon out-of-memory.
31957         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
31958         out-of-memory.
31959         (gl_tree_remove_node_from_tree): New function, extracted from
31960         gl_tree_remove_node.
31961         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
31962         upon out-of-memory.
31963         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
31964         out-of-memory.
31965         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
31966         upon out-of-memory.
31967         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
31968         upon out-of-memory.
31969         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
31970         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
31971         gl_anytree_list1.h before gl_anyavltree_list2.h.
31972         (gl_avltree_list_implementation): Update.
31973         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
31974         gl_anytree_list1.h before gl_anyavltree_list2.h.
31975         (gl_rbtree_list_implementation): Update.
31976         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
31977         Change return type to 'int'. Return -1 upon out-of-memory. Use
31978         __builtin_expect.
31979         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
31980         (gl_avltreehash_list_implementation): Update.
31981         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
31982         (gl_rbtreehash_list_implementation): Update.
31983         * modules/array-list (Depends-on): Remove xalloc.
31984         * modules/carray-list (Depends-on): Likewise.
31985         * modules/linked-list (Depends-on): Likewise.
31986         * modules/linkedhash-list (Depends-on): Likewise.
31987         * modules/avltree-list (Depends-on): Likewise.
31988         * modules/rbtree-list (Depends-on): Likewise.
31989         * modules/avltreehash-list (Depends-on): Likewise.
31990         * modules/rbtreehash-list (Depends-on): Likewise.
31991
31992         * modules/xsublist: New file.
31993         * lib/gl_xsublist.h: New file.
31994         * lib/gl_xsublist.c: New file.
31995         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
31996         (gl_sublist_nx_create): New declaration.
31997         * lib/gl_sublist.c: Don't include xalloc.h.
31998         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
31999         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32000         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32001         Change return type to 'int'. Return -1 upon out-of-memory.
32002         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32003         upon out-of-memory.
32004         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32005         NULL upon out-of-memory.
32006         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32007         upon out-of-memory.
32008         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32009         NULL upon out-of-memory.
32010         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32011         NULL upon out-of-memory.
32012         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32013         upon out-of-memory.
32014         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32015         (gl_sublist_list_implementation): Update.
32016         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32017         upon out-of-memory.
32018         * modules/sublist (Depends-on): Remove xalloc.
32019
32020         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32021         * tests/test-carray_list.c: Likewise.
32022         * tests/test-linked_list.c: Likewise.
32023         * tests/test-linkedhash_list.c: Likewise.
32024         * tests/test-avltree_list.c: Likewise.
32025         * tests/test-rbtree_list.c: Likewise.
32026         * tests/test-avltreehash_list.c: Likewise.
32027         * tests/test-rbtreehash_list.c: Likewise.
32028         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32029         * modules/carray-list-tests (Makefile.am): Likewise.
32030         * modules/linked-list-tests (Makefile.am): Likewise.
32031         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32032         * modules/avltree-list-tests (Makefile.am): Likewise.
32033         * modules/rbtree-list-tests (Makefile.am): Likewise.
32034         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32035         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32036
32037         * NEWS: Mention the changes.
32038
32039         * lib/clean-temp.c: Include gl_xlist.h.
32040         * modules/clean-temp (Depends-on): Add xlist.
32041
32042         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32043         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32044
32045         * tests/test-array_oset.c: Include gl_xlist.h.
32046         * modules/array-oset-tests (Depends-on): Add xlist.
32047
32048         Reported by José E. Marchesi <jemarch@gnu.org>.
32049
32050 2009-12-13  Bruno Haible  <bruno@clisp.org>
32051
32052         Move the malloc checking from module 'oset' to new module 'xoset'.
32053         * modules/xoset: New file.
32054         * lib/gl_xoset.h: New file.
32055         * lib/gl_xoset.c: New file.
32056         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32057         declarations.
32058         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32059         (struct gl_oset_implementation): Rename and change methods accordingly.
32060         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32061         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32062         'int'. Mark as __warn_unused_result__.
32063         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32064         gl_oset_create_empty.
32065         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32066         'int'.
32067         * lib/gl_array_oset.c: Don't include xalloc.h.
32068         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32069         malloc, not xmalloc.
32070         (grow): Change return type to 'int'. Don't call xalloc_die.
32071         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32072         to 'int'.
32073         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32074         'int'.
32075         (gl_array_oset_implementation): Update.
32076         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32077         gl_tree_create_empty.
32078         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32079         'int'.
32080         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32081         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32082         xmalloc.
32083         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32084         not xmalloc.
32085         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32086         xmalloc.
32087         (gl_avltree_oset_implementation): Update.
32088         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32089         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32090         xmalloc.
32091         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32092         not xmalloc.
32093         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32094         xmalloc.
32095         (gl_rbtree_oset_implementation): Update.
32096         * modules/array-oset (Depends-on): Remove xalloc.
32097         * modules/avltree-oset (Depends-on): Likewise.
32098         * modules/rbtree-oset (Depends-on): Likewise.
32099         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32100         * tests/test-avltree_oset.c: Likewise.
32101         * tests/test-rbtree_oset.c: Likewise.
32102         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32103         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32104         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32105         * NEWS: Mention the change.
32106
32107 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32108
32109         maint.mk: allow a project to override release-prep commands
32110         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32111         commands into a new rule.
32112         (release-prep): New rule.
32113         (release-prep-hook): New overridable variable.
32114
32115 2009-12-13  Bruno Haible  <bruno@clisp.org>
32116
32117         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32118
32119 2009-12-13  Jim Meyering  <meyering@redhat.com>
32120
32121         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32122         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32123
32124 2009-12-12  Bruno Haible  <bruno@clisp.org>
32125
32126         duplocale: Tweak.
32127         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32128
32129 2009-12-12  Karl Berry  <karl@gnu.org>
32130
32131         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32132
32133 2009-12-12  Bruno Haible  <bruno@clisp.org>
32134
32135         * m4/po.m4: Undo incorrect untabification.
32136
32137 2009-12-12  Bruno Haible  <bruno@clisp.org>
32138
32139         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32140         * modules/c-strtod (Depends-on): Add locale.
32141         * modules/c-strtold (Depends-on): Likewise.
32142
32143 2009-12-12  Bruno Haible  <bruno@clisp.org>
32144
32145         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32146
32147 2009-12-11  Eric Blake  <ebb9@byu.net>
32148
32149         setenv: relax requirement in light of POSIX ruling
32150         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32151         not NULL.
32152         * tests/test-setenv.c (main): Relax test.
32153         * tests/test-unsetenv.c (main): Likewise.
32154         * doc/posix-functions/setenv.texi (setenv): Document this.
32155         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32156
32157 2009-12-11  Bruno Haible  <bruno@clisp.org>
32158
32159         New module 'fd-safer-flag'.
32160         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32161         * lib/dup-safer.c (dup_safer_flag): Remove function.
32162         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32163         * lib/fd-safer.c (fd_safer_flag): Remove function.
32164         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32165         * modules/cloexec (configure.ac): Drop indicator macro.
32166         * modules/fd-safer-flag: New file.
32167         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32168         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32169         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32170
32171 2009-12-11  Bruno Haible  <bruno@clisp.org>
32172
32173         Tests for module 'nl_langinfo'.
32174         * modules/nl_langinfo-tests: New file.
32175         * tests/test-nl_langinfo.sh: New file.
32176         * tests/test-nl_langinfo.c: New file.
32177
32178         New module 'nl_langinfo'.
32179         * lib/nl_langinfo.c: New file.
32180         * m4/nl_langinfo.m4: New file.
32181         * modules/nl_langinfo: New file.
32182         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32183
32184 2009-12-11  Bruno Haible  <bruno@clisp.org>
32185
32186         Tests for module 'langinfo'.
32187         * modules/langinfo-tests: New file.
32188         * tests/test-langinfo.c: New file.
32189
32190         New module 'langinfo'.
32191         * lib/langinfo.in.h: New file.
32192         * m4/langinfo_h.m4: New file.
32193         * modules/langinfo: New file.
32194         * doc/posix-headers/langinfo.texi: Mention the new module.
32195
32196 2009-12-11  Bruno Haible  <bruno@clisp.org>
32197
32198         * lib/config.charset: Untabify.
32199
32200 2009-12-11  Bruno Haible  <bruno@clisp.org>
32201
32202         * modules/unistd-safer (configure.ac): Drop indicator macro.
32203
32204 2009-12-11  Bruno Haible  <bruno@clisp.org>
32205
32206         Move pipe2-safer code to its own file.
32207         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32208         * lib/pipe-safer.c (pipe2_safer): Remove function.
32209         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32210         (Makefile.am): Add it to lib_SOURCES.
32211
32212 2009-12-10  Bruno Haible  <bruno@clisp.org>
32213
32214         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32215
32216 2009-12-10  Bruno Haible  <bruno@clisp.org>
32217
32218         Declare which arguments expect non-NULL values, for GCC and clang.
32219         * build-aux/arg-nonnull.h: New file.
32220         * modules/arg-nonnull: New file.
32221         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32222         (inet_ntop, inet_pton): Use it.
32223         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32224         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32225         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32226         (open, openat): Use it.
32227         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32228         (fnmatch): Use it.
32229         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32230         (getopt, getopt_long, getopt_long_only): Use it.
32231         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32232         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32233         Use it.
32234         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32235         (iconv_open): Use it.
32236         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32237         (strtoimax, strtoumax): Use it.
32238         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32239         (duplocale): Use it.
32240         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32241         (frexp, frexpl): Use it.
32242         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32243         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32244         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32245         (tsearch, tfind, tdelete, twalk): Use it.
32246         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32247         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32248         sigpending): Use it.
32249         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32250         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32251         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32252         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32253         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32254         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32255         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32256         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32257         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32258         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32259         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32260         Use it.
32261         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32262         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32263         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32264         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32265         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32266         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32267         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32268         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32269         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32270         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32271         strtoull, unsetenv): Use it.
32272         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32273         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32274         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32275         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32276         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32277         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32278         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32279         (strcasecmp, strncasecmp): Use it.
32280         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32281         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32282         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32283         rpl_setsockopt): Use it.
32284         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32285         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32286         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32287         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32288         (gettimeofday): Use it.
32289         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32290         (times): Use it.
32291         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32292         (uname): Use it.
32293         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32294         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32295         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32296         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32297         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32298         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32299         unlinkat, write): Use it.
32300         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32301         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32302         * lib/argv-iter.h: Include arg-nonnull.h.
32303         (_ATTRIBUTE_NONNULL_): Remove macro.
32304         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32305         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32306         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32307         optimization.
32308         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32309         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32310         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32311         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32312         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32313         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32314         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32315         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32316         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32317         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32318         * modules/dirent (Depends-on): Add arg-nonnull.
32319         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32320         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32321         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32322         * modules/fnmatch (Depends-on): Add arg-nonnull.
32323         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32324         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32325         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32326         * modules/glob (Depends-on): Add arg-nonnull.
32327         (Makefile.am): Insert arg-nonnull.h into glob.h.
32328         * modules/iconv_open (Depends-on): Add arg-nonnull.
32329         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32330         * modules/inttypes (Depends-on): Add arg-nonnull.
32331         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32332         * modules/locale (Depends-on): Add arg-nonnull.
32333         (Makefile.am): Insert arg-nonnull.h into locale.h.
32334         * modules/math (Depends-on): Add arg-nonnull.
32335         (Makefile.am): Insert arg-nonnull.h into math.h.
32336         * modules/netdb (Depends-on): Add arg-nonnull.
32337         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32338         * modules/search (Depends-on): Add arg-nonnull.
32339         (Makefile.am): Insert arg-nonnull.h into search.h.
32340         * modules/signal (Depends-on): Add arg-nonnull.
32341         (Makefile.am): Insert arg-nonnull.h into signal.h.
32342         * modules/spawn (Depends-on): Add arg-nonnull.
32343         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32344         * modules/stdio (Depends-on): Add arg-nonnull.
32345         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32346         * modules/stdlib (Depends-on): Add arg-nonnull.
32347         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32348         * modules/string (Depends-on): Add arg-nonnull.
32349         (Makefile.am): Insert arg-nonnull.h into string.h.
32350         * modules/strings (Depends-on): Add arg-nonnull.
32351         (Makefile.am): Insert arg-nonnull.h into strings.h.
32352         * modules/sys_socket (Depends-on): Add arg-nonnull.
32353         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32354         * modules/sys_stat (Depends-on): Add arg-nonnull.
32355         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32356         * modules/sys_time (Depends-on): Add arg-nonnull.
32357         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32358         * modules/sys_times (Depends-on): Add arg-nonnull.
32359         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32360         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32361         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32362         * modules/time (Depends-on): Add arg-nonnull.
32363         (Makefile.am): Insert arg-nonnull.h into time.h.
32364         * modules/unistd (Depends-on): Add arg-nonnull.
32365         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32366         * modules/wchar (Depends-on): Add arg-nonnull.
32367         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32368         * modules/argv-iter (Depends-on): Add arg-nonnull.
32369         * tests/test-canonicalize.c (null_ptr): New function.
32370         (main): Use it.
32371         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32372         (main): Use it.
32373         * tests/test-memmem.c (null_ptr): New function.
32374         (main): Use it.
32375         Reported by Jim Meyering.
32376
32377 2009-12-10  Bruno Haible  <bruno@clisp.org>
32378
32379         Use spaces for indentation, not tabs.
32380         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32381         * m4/*.m4: Untabify.
32382         * build-aux/*.h: Untabify.
32383         * tests/**/*.[hc]: Untabify.
32384         * README: New section "Indent with spaces, not TABs", based on
32385         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32386         * NEWS: Mention the change.
32387
32388 2009-12-10  Bruno Haible  <bruno@clisp.org>
32389
32390         pty test: Fix link error.
32391         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32392         test_pty_LDADD.
32393
32394 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32395
32396         * modules/pty: New file.
32397         * modules/pty-tests: New file.
32398         * m4/pty.m4: New file.
32399         * tests/test-pty.c: New file.
32400         * doc/glibc-headers/pty.texi: Modified.
32401         * doc/glibc-functions/forkpty.texi: Modified.
32402         * doc/glibc-functions/openpty.texi: Modified.
32403
32404 2009-12-10  Bruno Haible  <bruno@clisp.org>
32405
32406         Avoid syntax error in C++ mode.
32407         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32408
32409 2009-12-10  Bruno Haible  <bruno@clisp.org>
32410
32411         Use sed with option -e.
32412         * gnulib-tool (func_version, func_emit_copyright_notice,
32413         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32414         option -e to sed.
32415         * modules/link-warning (Makefile.am): Likewise.
32416
32417 2009-12-10  Jim Meyering  <meyering@redhat.com>
32418
32419         mgetgroups: do not write bytes beyond end of malloc'd buffer
32420         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32421         username, we call getgroups with a one-element-shorter buffer,
32422         but still told it the length was original, max_n_groups.
32423
32424 2009-12-09  Eric Blake  <ebb9@byu.net>
32425
32426         cloexec: relax license
32427         * modules/cloexec (Maintainer): Add myself.
32428         (License): Use LGPL, not GPL.
32429
32430         link-warning: optimize generation
32431         * modules/link-warning (Makefile.am): Reduce process usage.
32432
32433 2009-12-09  Bruno Haible  <bruno@clisp.org>
32434
32435         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32436         workaround was added on 2009-11-17.
32437
32438 2009-12-09  Jim Meyering  <meyering@redhat.com>
32439             Bruno Haible  <bruno@clisp.org>
32440
32441         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32442         * modules/link-warning (Makefile.am): Make the comment-removing sed
32443         command more robust in the face of bootstrap-prepended comment lines.
32444
32445 2009-12-09  Bruno Haible  <bruno@clisp.org>
32446
32447         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32448         most one group.
32449
32450 2009-12-09  Simon Josefsson <simon@josefsson.org>
32451             Bruno Haible  <bruno@clisp.org>
32452
32453         * build-aux/link-warning.h: Add copyright notice.
32454         * modules/link-warning (Makefile.am): Generate link-warning.h from
32455         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32456         * NEWS: Mention change in link-warning module.
32457         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32458         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32459         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32460         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32461         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32462         * modules/math (Makefile.am): Add dependency to math.h.
32463         * modules/search (Makefile.am): Add dependency to search.h.
32464         * modules/signal (Makefile.am): Add dependency to signal.h.
32465         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32466         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32467         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32468         * modules/string (Makefile.am): Add dependency to string.h.
32469         * modules/strings (Makefile.am): Add dependency to strings.h.
32470         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32471         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32472         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32473         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32474         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32475         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32476         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32477         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32478         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32479
32480 2009-12-09  Bruno Haible  <bruno@clisp.org>
32481
32482         fchdir: Optimize away rpl_fstat when possible.
32483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32484         REPLACE_OPEN_DIRECTORY.
32485         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32486
32487 2009-12-09  Bruno Haible  <bruno@clisp.org>
32488
32489         * lib/fchdir.c: Update comment.
32490
32491 2009-12-09  Bruno Haible  <bruno@clisp.org>
32492
32493         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32494
32495 2009-12-08  Eric Blake  <ebb9@byu.net>
32496
32497         fchdir: avoid memory leak on re-registration.
32498         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32499
32500 2009-12-08  Jim Meyering  <meyering@redhat.com>
32501
32502         init.sh: avoid Solaris 10 /bin/sh portability problem
32503         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32504         sourced script:
32505           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32506           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32507           bar
32508         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32509         and two tests used that idiom.
32510         * tests/init.sh: Update suggested usage comments.
32511         (path_prepend_): New function, to be used in place
32512         of the --src-path=DIR option.
32513         (setup_): Move PATH-prepending code into path_prepend_.
32514         * tests/test-pread.sh: Adapt to new usage.
32515         * tests/test-xalloc-die.sh: Likewise.
32516
32517 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32518
32519         * doc/gnulib.texi (Glibc pty.h): Add.
32520         * doc/glibc-functions/forkpty.texi: Add.
32521         * doc/glibc-functions/openpty.texi: Add.
32522         Suggested by Bruno Haible.
32523
32524 2009-12-08  Eric Blake  <ebb9@byu.net>
32525
32526         fchdir: fix logic bugs
32527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32528         * tests/test-fchdir.c (main): Enhance test.
32529         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32530         is in use.
32531
32532         dup2: fix logic bugs
32533         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32534         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32535         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32536         exists.
32537         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32538
32539 2009-12-07  Eric Blake  <ebb9@byu.net>
32540
32541         unlink: fix m4 detection
32542         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32543
32544         unistd-safer: add unit test
32545         * modules/unistd-safer-tests: New file.
32546         * tests/test-dup-safer.c: Likewise.
32547         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32548         * tests/test-dup2.c (setmode): Likewise.
32549         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32550
32551         cloexec: preserve text vs. binary across dup_cloexec
32552         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32553         mode.
32554         * modules/dup2-tests (Depends-on): Add binary-io.
32555         * modules/cloexec-tests (Depends-on): Likewise.
32556         * tests/test-dup2.c (setmode, is_mode): New helpers.
32557         (main): Add tests that translation mode is preserved.
32558         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32559         Reported by Bruno Haible.
32560
32561         mgetgroups: reduce duplicate listings
32562         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32563         resulting array.
32564         * tests/test-chown.h (test_chown): Simplify client.
32565         * tests/test-lchown.h (test_lchown): Likewise.
32566
32567 2009-12-06  Bruno Haible  <bruno@clisp.org>
32568
32569         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32570         value.
32571
32572 2009-12-06  Bruno Haible  <bruno@clisp.org>
32573
32574         * lib/progname.c: Include stdio.h, stdlib.h.
32575         (set_program_name): Reject a NULL argument.
32576
32577 2009-12-05  Eric Blake  <ebb9@byu.net>
32578
32579         pipe2-safer: new module
32580         * modules/pipe2-safer: New file.
32581         * lib/unistd-safer.h (pipe2_safer): New prototype.
32582         * lib/unistd--.h (pipe2): New wrapper.
32583         * lib/pipe-safer.c (pipe2_safer): New function.
32584         * modules/pipe (Depends-on): Add pipe2-safer.
32585         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32586
32587         stdlib-safer: preserve cloexec flag for mkostemp[s]
32588         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32589         fd_safer_flag.
32590
32591         unistd-safer: allow preservation of cloexec status via flag
32592         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32593         prototypes.
32594         * lib/dup-safer.c (dup_safer_flag): New function.
32595         * lib/fd-safer.c (fd_safer_flag): Likewise.
32596         * modules/cloexec (configure.ac): Set witness.
32597
32598         test-dup2: enhance test
32599         * modules/dup2-tests (Depends-on): Add cloexec.
32600         * tests/test-dup2.c (main): Enhance test.
32601
32602         cloexec: add dup_cloexec
32603         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32604         header and comments.
32605         * lib/cloexec.c (set_cloexec_flag): Add comments.
32606         (dup_cloexec): New function, with mingw implementation borrowed
32607         from...
32608         * lib/w32spawn.h (dup_noinherit): ...here.
32609         * modules/execute (Depends-on): Add cloexec.
32610         * modules/pipe (Depends-on): Likewise.
32611         * modules/cloexec (Depends-on): Add dup2.
32612         * modules/cloexec-tests (Files): New file.
32613         * tests/test-cloexec.c: Likewise.
32614
32615         test-xalloc-die: fix test for mingw
32616         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32617         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32618         directory and .exe suffix off argv[0] output.
32619
32620         test-fseeko: fix test for mingw
32621         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32622         than undefining fseek, so test will pass on mingw.
32623
32624 2009-12-05  Bruno Haible  <bruno@clisp.org>
32625
32626         * lib/progname.h (set_program_name): Clarify specification.
32627         * lib/progname.c (set_program_name): Likewise.
32628         Reported by Jim Meyering.
32629
32630 2009-12-05  Jim Meyering  <meyering@redhat.com>
32631
32632         maint.mk: backslash-escape parens in default regexp
32633         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32634         backslash-escape the literal parentheses.
32635
32636         maint.mk: news-date-check: use grep -E
32637         * top/maint.mk (today): Define a Make variable, not a...
32638         (news-date-check): ...shell variable.
32639         (news-date-regexp): Use the Make variable.
32640         Use grep's -E option.  Change the failing diagnostic to mention
32641         the variable, $(news-date-regexp).
32642
32643 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32644
32645         maintainer-makefile: allow customization of NEWS entry format
32646         * top/maint.mk (news-date-regexp): New overridable variable.
32647         (news-date-check): Use it.
32648
32649 2009-12-04  Eric Blake  <ebb9@byu.net>
32650
32651         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32652         * lib/mgetgroups.h (xgetgroups): New prototype.
32653         * lib/mgetgroups.c (xgetgroups): New wrapper.
32654         (mgetgroups): Handle ENOSYS.
32655         * modules/mgetgroups (Depends-on): Add realloc.
32656         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32657
32658         mgetgroups: avoid argument promotion issues with -1
32659         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32660         for invalid gid_t.
32661         * tests/test-chown.h (getegid, test_chown): Likewise.
32662         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32663
32664 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32665
32666         exclude: Fix header file problems.
32667         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32668
32669 2009-12-01  Jim Meyering  <meyering@redhat.com>
32670
32671         fts: fts_open: do not let an empty string cause immediate failure
32672         This is required in support of GNU rm, for which the command
32673         "rm A '' B" must process and remove both A and B, in spite of
32674         the empty string argument.
32675         * lib/fts.c (fts_open): Do not let the presence of an empty string
32676         cause fts_open to fail immediately.  Most fts-using tools must be
32677         able to process all arguments, in order, and can be expected to
32678         diagnose such arguments themselves.
32679
32680 2009-11-30  Eric Blake  <ebb9@byu.net>
32681
32682         utimens: fix compilation error
32683         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32684         Declare variable at right scope.
32685
32686 2009-11-29  Jim Meyering  <meyering@redhat.com>
32687
32688         bootstrap: handle perl-5.11's changed --version output
32689         * build-aux/bootstrap (get_version): Handle perl separately,
32690         since perl-5.11's --version output is different.
32691
32692 2009-11-28  Jim Meyering  <meyering@redhat.com>
32693
32694         userspec: depend on the inttostr module, too
32695         * modules/userspec (Depends-on): Add inttostr.
32696
32697         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32698         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32699         number of MAXUID when it evaluates to (uid_t) -1.
32700         Likewise for group ID.  Reported by Matt McCutchen in
32701         <http://savannah.gnu.org/bugs/?28113>
32702
32703         userspec: reformat to use spaces, not TABs
32704         * lib/userspec.c: Expand TABs to spaces.
32705         Add Emacs' "indent-tabs-mode: nil" hint.
32706
32707 2009-11-27  Eric Blake  <ebb9@byu.net>
32708
32709         getopt-gnu: flush out another BSD bug
32710         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32711         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32712         flush out BSD bug.
32713         * tests/test-getopt.h (test_getopt): End lists with NULL.
32714         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32715         (test_getopt_long_posix): Enhance test.
32716         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32717         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32718         getopt-gnu.
32719         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32720         Likewise.
32721
32722 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32723
32724         * modules/idpriv-droptemp-tests (Notice): Fix text.
32725
32726 2009-11-27  Jim Meyering  <meyering@redhat.com>
32727
32728         test-xalloc-die: avoid spurious failure due to libtool argv difference
32729         In a libtool-enabled project, this test would fail due to a difference
32730         in the emitted program name, e.g.,
32731         -test-xalloc-die: memory exhausted
32732         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32733         Use program to avoid that.
32734         * modules/xalloc-die-tests (Depends-on): Add progname.
32735         * tests/test-xalloc-die.c: Include progname.h".
32736         (program_name): Remove decl.
32737         (main): Call set_program_name.
32738         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32739
32740 2009-11-26  Richard Jones  <rjones@redhat.com>
32741
32742         w32sock: leave win32 error in place.
32743         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32744
32745 2009-11-26  Eric Blake  <ebb9@byu.net>
32746
32747         init.sh: suggest to use skip_ and fail_ functions in comments
32748         * tests/init.sh: Add a sentence.
32749
32750 2009-11-25  Bruno Haible  <bruno@clisp.org>
32751
32752         init.sh: add documentation in comments
32753         * tests/init.sh: Add some developer and user documentation.
32754
32755 2009-11-26  Jim Meyering  <meyering@redhat.com>
32756
32757         init.sh: accommodate even those who specify bogus srcdir manually
32758         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32759         configure-time tests to be sanitized, so that there is no need to
32760         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32761         (with no double quotes) suffices.  However, since tests may be
32762         invoked manually, and since you may explicitly set srcdir to the
32763         name of a directory containing spaces, do quote its uses here.
32764         * tests/test-pread.sh: Likewise.
32765         Suggested by Bruno Haible.
32766
32767         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32768         * tests/test-pread.sh: Write no data into the pipe, because
32769         test-pread actually reads none.  This avoids a diagnostic,
32770         "bash: echo: write error: Broken pipe", that arises in the unusual
32771         event something is ignoring SIGPIPE, and might be interpreted
32772         as some sort of failure.  Reported by Bruno Haible.
32773
32774 2009-11-25  Jim Meyering  <meyering@redhat.com>
32775
32776         test-pread: cover failure with ESPIPE and EINVAL
32777         * tests/test-pread.c (main): Test for failure, too.
32778         * tests/test-pread.sh: Invoke with stdin on a pipe.
32779         Suggested by Eric Blake.
32780
32781         pread: improvement and fix
32782         * modules/pread (Depends-on): Depend on lseek, for portability to
32783         e.g., mingw.  Suggested by Eric Blake.
32784         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32785
32786         unistd.in.h: correct declaration of pread
32787         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32788         Reported by Richard W.M. Jones.
32789
32790         test-pread.sh: distribute the test script
32791         * modules/pread-tests (Files): Include test-pread.sh.
32792
32793         test-pread.sh: clean up
32794         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32795         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32796         That is unnecessary, since it's always ".".
32797         Suggestion from Eric Blake.
32798
32799         test-pread.sh: make executable
32800         * tests/test-pread.sh: Set executable bit.
32801         Reported by Eric Blake.
32802
32803         correct typo in test-pread.sh
32804         * tests/test-pread.sh: Add #! line.
32805
32806         test pread
32807         * tests/test-pread.c: New file.
32808         * tests/test-pread.sh: Likewise.
32809         * modules/pread-tests: Likewise.
32810
32811         pread: new module
32812         * modules/pread: New file.
32813         * lib/unistd.in.h (pread): Define/declare.
32814         * lib/pread.c (pread): New file.
32815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32816         * modules/unistd (Makefile.am): Substitute witnesses.
32817         * doc/posix-functions/pread.texi (pread): Update.
32818         * MODULES.html.sh: Add pread.
32819
32820 2009-11-25  Jim Meyering  <meyering@redhat.com>
32821
32822         tests/init.sh: new file to be used via most *.sh tests
32823         * tests/init.sh: New file.
32824
32825 2009-11-25  Eric Blake  <ebb9@byu.net>
32826
32827         utimens: work around older Linux failure with symlinks
32828         * lib/utimens.c (lutimensat_works_really): New variable.
32829         (fdutimens, lutimens): Use it to manage kernels that support
32830         nanosecond times on files, but not on symlinks.
32831         Reported by OndÅ™ej Vašík.
32832
32833         utimes: fix configure grammar
32834         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32835
32836 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32837
32838         regex: Fix fastmap for multibyte character ranges.
32839         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32840         characters when a multibyte character range is included.
32841
32842 2009-11-22  Andy Wingo  <wingo@pobox.com>
32843
32844         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32845         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32846
32847 2009-11-24  Bruno Haible  <bruno@clisp.org>
32848
32849         doc: Most *_l functions exist in MacOS X 10.5.
32850         * doc/posix-functions/duplocale.texi: Update platforms list.
32851         * doc/posix-functions/freelocale.texi: Likewise.
32852         * doc/posix-functions/newlocale.texi: Likewise.
32853         * doc/posix-functions/uselocale.texi: Likewise.
32854         * doc/posix-functions/isalnum_l.texi: Likewise.
32855         * doc/posix-functions/isalpha_l.texi: Likewise.
32856         * doc/posix-functions/isblank_l.texi: Likewise.
32857         * doc/posix-functions/iscntrl_l.texi: Likewise.
32858         * doc/posix-functions/isdigit_l.texi: Likewise.
32859         * doc/posix-functions/isgraph_l.texi: Likewise.
32860         * doc/posix-functions/islower_l.texi: Likewise.
32861         * doc/posix-functions/isprint_l.texi: Likewise.
32862         * doc/posix-functions/ispunct_l.texi: Likewise.
32863         * doc/posix-functions/isspace_l.texi: Likewise.
32864         * doc/posix-functions/isupper_l.texi: Likewise.
32865         * doc/posix-functions/iswalnum_l.texi: Likewise.
32866         * doc/posix-functions/iswalpha_l.texi: Likewise.
32867         * doc/posix-functions/iswblank_l.texi: Likewise.
32868         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32869         * doc/posix-functions/iswctype_l.texi: Likewise.
32870         * doc/posix-functions/iswdigit_l.texi: Likewise.
32871         * doc/posix-functions/iswgraph_l.texi: Likewise.
32872         * doc/posix-functions/iswlower_l.texi: Likewise.
32873         * doc/posix-functions/iswprint_l.texi: Likewise.
32874         * doc/posix-functions/iswpunct_l.texi: Likewise.
32875         * doc/posix-functions/iswspace_l.texi: Likewise.
32876         * doc/posix-functions/iswupper_l.texi: Likewise.
32877         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32878         * doc/posix-functions/isxdigit_l.texi: Likewise.
32879         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32880         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32881         * doc/posix-functions/strcoll_l.texi: Likewise.
32882         * doc/posix-functions/strfmon_l.texi: Likewise.
32883         * doc/posix-functions/strftime_l.texi: Likewise.
32884         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32885         * doc/posix-functions/strxfrm_l.texi: Likewise.
32886         * doc/posix-functions/tolower_l.texi: Likewise.
32887         * doc/posix-functions/toupper_l.texi: Likewise.
32888         * doc/posix-functions/towctrans_l.texi: Likewise.
32889         * doc/posix-functions/towlower_l.texi: Likewise.
32890         * doc/posix-functions/towupper_l.texi: Likewise.
32891         * doc/posix-functions/wcscoll_l.texi: Likewise.
32892         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32893         * doc/posix-functions/wctrans_l.texi: Likewise.
32894         * doc/posix-functions/wctype_l.texi: Likewise.
32895         * doc/glibc-functions/strptime_l.texi: Likewise.
32896         * doc/glibc-functions/strtod_l.texi: Likewise.
32897         * doc/glibc-functions/strtof_l.texi: Likewise.
32898         * doc/glibc-functions/strtol_l.texi: Likewise.
32899         * doc/glibc-functions/strtold_l.texi: Likewise.
32900         * doc/glibc-functions/strtoll_l.texi: Likewise.
32901         * doc/glibc-functions/strtoul_l.texi: Likewise.
32902         * doc/glibc-functions/strtoull_l.texi: Likewise.
32903         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32904         * doc/glibc-functions/wcstod_l.texi: Likewise.
32905         * doc/glibc-functions/wcstof_l.texi: Likewise.
32906         * doc/glibc-functions/wcstol_l.texi: Likewise.
32907         * doc/glibc-functions/wcstold_l.texi: Likewise.
32908         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32909         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32910         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32911
32912 2009-11-24  Bruno Haible  <bruno@clisp.org>
32913
32914         duplocale: Fix logic bug.
32915         * lib/duplocale.c: Don't include <langinfo.h>.
32916         (_NL_LOCALE_NAME): Remove macro.
32917         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32918         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32919
32920 2009-11-23  Jim Meyering  <meyering@redhat.com>
32921
32922         test-update-copyright: don't hard-code /usr/bin/perl
32923         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32924         perl to print the current year.  Gilles Espinasse reported that
32925         the replaced use of perl was hard-coded as /usr/bin/perl.
32926
32927 2009-11-23  Bruno Haible  <bruno@clisp.org>
32928
32929         duplocale: Add support for glibc 2.3.x.
32930         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
32931
32932 2009-11-22  Bruno Haible  <bruno@clisp.org>
32933
32934         vasnprintf: Tiny optimization.
32935         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
32936         MacOS X.
32937
32938 2009-11-22  Bruno Haible  <bruno@clisp.org>
32939
32940         Tests for module 'duplocale'.
32941         * modules/duplocale-tests: New file.
32942         * tests/test-duplocale.c: New file.
32943
32944         New module 'duplocale'.
32945         * m4/duplocale.m4: New file.
32946         * lib/locale.in.h (duplocale): New declaration.
32947         * lib/duplocale.c: New file.
32948         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
32949         gl_LOCALE_H_DEFAULTS): New macros.
32950         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
32951         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
32952         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
32953         REPLACE_DUPLOCALE.
32954         * modules/duplocale: New file.
32955         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
32956
32957 2009-11-22  Bruno Haible  <bruno@clisp.org>
32958
32959         * modules/locale-tests (configure.ac): Test for newlocale function.
32960         * tests/test-locale.c: When the system has extended locale functions,
32961         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
32962
32963         locale: Make locale_t available when possible.
32964         * lib/locale.in.h: Include <xlocale.h> when it exists.
32965         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
32966         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
32967         * modules/locale (Depends-on): Add extensions.
32968         (Makefile.am): Also substitute HAVE_XLOCALE_H.
32969         * doc/posix-headers/locale.texi: Document the problem with locale_t.
32970
32971 2009-11-22  Bruno Haible  <bruno@clisp.org>
32972
32973         Add comments.
32974         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
32975         invocation.
32976         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32977         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32978         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32979
32980 2009-11-22  Bruno Haible  <bruno@clisp.org>
32981
32982         error: account for the possibility of freopen (stdout).
32983         * lib/error.c: Include <unistd.h>.
32984         (flush_stdout): New function, extracted from error and error_at_line.
32985         Determine stdout's fd dynamically.
32986         (error, error_at_line): Invoke flush_stdout.
32987         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
32988         * modules/error (Depends-on): Add unistd.
32989
32990 2009-11-22  Bruno Haible  <bruno@clisp.org>
32991
32992         diffseq: Add comment.
32993         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
32994
32995 2009-11-22  Jim Meyering  <meyering@redhat.com>
32996
32997         c-stack: avoid defining an unused static function
32998         * lib/c-stack.c (find_stack_direction): Do not define this function
32999         when it will not be used.
33000
33001         diffseq: avoid spurious gcc warnings
33002         * lib/diffseq.h (IF_LINT2): Define.
33003         (compareseq): Use it to initialize two members of "part".
33004         This avoids two used-uninitialized warnings.
33005
33006 2009-11-21  Jim Meyering  <meyering@redhat.com>
33007
33008         c-stack: avoid "ignoring return value of `write'" warning
33009         * lib/c-stack.c: Include "ignore-value.h".
33010         (die): Explicitly ignore each write return value.
33011         * modules/c-stack (Depends-on): Add ignore-value.
33012
33013 2009-11-21  Bruno Haible  <bruno@clisp.org>
33014
33015         diffseq: reduce scope of variable 'best'.
33016         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33017         variable, earlier used for two different purposes.
33018
33019 2009-11-21  Jim Meyering  <meyering@redhat.com>
33020
33021         diffseq: remove useless assignment to "best"
33022         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33023         assignment.  At that point "best" is already guaranteed to be zero.
33024
33025 2009-11-20  Eric Blake  <ebb9@byu.net>
33026
33027         build: mention ftp redirector in release announcements
33028         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33029         values that used to come from cfg.mk; mention FTP redirect URL.
33030         * build-aux/announce-gen: Mention the mirror list.
33031         Suggested by Karl Berry.
33032
33033         nanosleep: improve port to mingw
33034         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33036         LIB_NANOSLEEP, but only when needed.
33037         * modules/select (Link): Document LIBSOCKET.
33038         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33039         enough.
33040
33041         nanosleep: work around cygwin bug
33042         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33043         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33044         bug.
33045         (getnow): Delete, not needed.
33046         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33047         LIB_CLOCK_GETTIME.
33048         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33049         clock-time, gettime.
33050         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33051         bug.
33052         * modules/nanosleep-tests: New test.
33053         * tests/test-nanosleep.c: New file.
33054
33055         sleep: work around cygwin bug
33056         * lib/sleep.c (rpl_sleep): Work around the bug.
33057         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33058         (gl_PREREQ_SLEEP): Delete unused macro.
33059         * modules/sleep (Depends-on): Add verify.
33060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33061         * modules/unistd (Makefile.am): Substitute witness.
33062         * lib/unistd.in.h (sleep): Update prototype.
33063         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33064         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33065         * modules/sleep-tests (Depends-on): Check for alarm.
33066
33067 2009-11-20  Jim Meyering  <meyering@redhat.com>
33068
33069         maint.mk: improve sc_prohibit_magic_number_exit
33070         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33071         so it does not match uses like System.exit(1).
33072         Add comments showing how to correct all offenders.
33073
33074 2009-11-19  Eric Blake  <ebb9@byu.net>
33075
33076         xalloc-die-tests: add missing library
33077         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33078
33079         test-xvasprintf: silence compiler warnings
33080         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33081         empty string from gcc.
33082
33083 2009-11-19  Jim Meyering  <meyering@redhat.com>
33084
33085         xfreopen: new module, from coreutils
33086         * modules/xfreopen: New module.
33087         * lib/xfreopen.c: New file.
33088         * lib/xfreopen.h: New file.
33089         * MODULES.html.sh (File stream based Input/Output"): Add it.
33090
33091 2009-11-19  Eric Blake  <ebb9@byu.net>
33092
33093         manywarnings: depend on warnings
33094         * modules/manywarnings (Depends-on): Add warnings.
33095
33096         build: avoid compiler warnings
33097         * lib/select.c (rpl_select): Delete unused variable.
33098         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33099
33100 2009-11-18  Eric Blake  <ebb9@byu.net>
33101
33102         tests: avoid false negative with --with-packager
33103         * tests/test-version-etc.sh: Discard packager information.
33104         * tests/test-argp-version-etc-1.sh: Likewise.
33105         Reported by Mike Frysinger.
33106
33107         utimens: fix regression on Solaris
33108         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33109         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33110         can only change fd timestamps via futimesat.  Instead, use an
33111         additional witness macro to avoid BSD bug.
33112         Reported by Jim Meyering.
33113
33114 2009-11-17  Eric Blake  <ebb9@byu.net>
33115
33116         usleep: use it to simplify tests
33117         * modules/stat-time-tests (Depends-on): Add usleep.
33118         (configure.ac): Drop usleep check.
33119         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33120         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33121         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33122         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33123         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33124         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33125         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33126         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33127         Likewise.
33128         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33129         * tests/test-lchown.h (nap): Likewise.
33130         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33131         * tests/test-stat-time.c (nap): Likewise.
33132         * tests/test-utimens-common.h (nap): Update comments.
33133
33134         usleep: new module
33135         * modules/usleep: New file.
33136         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33137         * lib/usleep.c (usleep): Likewise.
33138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33139         * modules/unistd (Makefile.am): Substitute witnesses.
33140         * lib/unistd.in.h (usleep): Add declaration.
33141         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33142         * MODULES.html.sh (Date and time): Likewise.
33143         * modules/usleep-tests (Depends-on): New test.
33144         * tests/test-usleep.c: New file.
33145
33146         chown: work around OpenBSD bug
33147         * lib/chown.c (rpl_chown): Work around the bug.
33148         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33149         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33150         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33151         * modules/chown (Depends-on): Add stdbool.
33152         * modules/lchown (Depends-on): Likewise.
33153         * doc/posix-functions/chown.texi (chown): Document the bug.
33154         * doc/posix-functions/lchown.texi (lchown): Likewise.
33155         * tests/test-lchown.h (test_chown): Relax test.
33156
33157         mkstemp: avoid conflict with C++ keyword template
33158         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33159         * lib/mkostemp.c (mkostemp): Likewise.
33160         * lib/mkostemps.c (mkostemps): Likewise.
33161         * lib/mkstemp.c (mkstemp): Likewise.
33162         * lib/mkstemps.c (mkstemps): Likewise.
33163
33164         xalloc-die-tests: optimize
33165         * tests/test-xalloc-die.sh: Reduce number of processes.
33166
33167 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33168
33169         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33170         patch from ludo@gnu.org (Ludovic Courtès).
33171
33172 2009-11-17  Jim Meyering  <meyering@redhat.com>
33173
33174         version-etc: use proper license string
33175         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33176         * modules/version-etc-fsf: Likewise.
33177
33178 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33179
33180         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33181         printed to stdout.  Deal with EOL differences.
33182
33183 2009-11-17  Eric Blake  <ebb9@byu.net>
33184
33185         unsetenv: work around Solaris bug
33186         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33187         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33188         Reported by Jim Meyering.
33189
33190         vasnprintf: avoid compiler warnings
33191         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33192         variables.
33193         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33194
33195 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33196
33197         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33198         settings since xalloc-die is no longer the self test,
33199         xalloc-die.sh is.
33200
33201 2009-11-17  Jim Meyering  <meyering@redhat.com>
33202
33203         test-xalloc-die.sh: make the code agree with the commit log
33204         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33205         at the end, just in case you happen to have a test-xalloc-die
33206         program in some other PATH directory.
33207
33208         test-xalloc-die.sh: fix a portability bug
33209         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33210         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33211         Otherwise, argv[0] (as often seen in diagnostics) would be too
33212         system-dependent, sometimes with, and sometimes without the leading "./".
33213
33214         version-etc-fsf: relax license to LGPLv3+
33215         * modules/version-etc-fsf (License): Relax license.
33216
33217 2009-11-16  Eric Blake  <ebb9@byu.net>
33218
33219         xalloc-die-tests: avoid printing null pointer
33220         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33221         shell script.
33222         * tests/test-xalloc-die.c (program_name): Declare.
33223         * tests/test-xalloc-die.sh (tmpfiles): New file.
33224
33225         setenv, unsetenv: work around various bugs
33226         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33227         (setenv) [HAVE_SETENV]: Work around bugs.
33228         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33229         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33230         for bugs.
33231         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33232         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33234         * modules/stdlib (Makefile.am): Update substitutions.
33235         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33236         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33237         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33238         * modules/setenv-tests: New test.
33239         * modules/unsetenv-tests: Likewise.
33240         * tests/test-setenv.c: New file.
33241         * tests/test-unsetenv.c: Likewise.
33242
33243 2009-11-16  Jim Meyering  <meyering@redhat.com>
33244
33245         version-etc: relax license to LGPLv3+
33246         * modules/version-etc (License): Relax license.
33247
33248         better AC_REQUIRE expanded-before-required-warning avoidance
33249         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33250         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33251         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33252         which is no longer needed.
33253
33254 2009-11-16  Eric Blake  <ebb9@byu.net>
33255
33256         test-freading: clean up temporary file
33257         * tests/test-freading.c (main): Remove file on success, and use
33258         ASSERT more liberally.
33259         Reported by Jim Meyering.
33260
33261 2009-11-16  Jim Meyering  <meyering@redhat.com>
33262
33263         avoid new AC_REQUIRE expanded-before-required warnings
33264         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33265         merely using it.
33266         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33267         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33268
33269 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33270
33271         * tests/test-xalloc-die.c: New file.
33272         * modules/xalloc-die-tests: New file.
33273         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33274         XFAIL_TESTS so it can be appended by modules.
33275
33276 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33277
33278         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33279         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33280
33281 2009-11-14  Eric Blake  <ebb9@byu.net>
33282
33283         fnmatch: avoid compiler warning
33284         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33285         to silence compiler warning about mismatch signedness in ?:.
33286         Reported by Robert Millan.
33287
33288         intprops: add double-inclusion guard
33289         * lib/intprops.h: Allow idempotent includes.
33290         Suggested by Bruce Korb.
33291
33292         openat: detect Solaris fchownat bug
33293         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33294         penalizing glibc chownat when only lchownat is broken.
33295         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33296         trailing slash bugs.
33297         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33298         * modules/openat-tests (Files): Include more files.
33299         (Depends-on): Add mgetgroups, sleep, stat-time.
33300         (configure.ac): Add additional checks.
33301         (Makefile.am): Build new test.
33302         * tests/test-fchownat.c: New file.
33303
33304         lchown: detect Solaris and FreeBSD bug
33305         * lib/lchown.c (rpl_lchown): Work around bug.
33306         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33308         * modules/unistd (Makefile.am): Populate it.
33309         * lib/unistd.in.h (lchown): Update declaration.
33310         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33311         * modules/lchown-tests: New file.
33312         * tests/test-lchown.h (test_lchown): Likewise.
33313         * tests/test-lchown.c (main): Likewise.
33314
33315         chown: detect Solaris and FreeBSD bug
33316         * lib/chown.c (rpl_chown): Work around bug.
33317         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33318         (gl_PREREQ_CHOWN): Delete.
33319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33320         * modules/unistd (Makefile.am): Populate it.
33321         * lib/unistd.in.h (chown): Update declaration.
33322         * lib/lchown.c (chown): Update client.
33323         * modules/lchown (Depends-on): Add lstat.
33324         * doc/posix-functions/chown.texi (chown): Document the bug.
33325         * doc/posix-functions/getgroups.texi (getgroups): Document
33326         getgroups pitfall.
33327         * modules/chown-tests: New file.
33328         * tests/test-chown.h (test_chown): Likewise.
33329         * tests/test-chown.c (main): Likewise.
33330
33331 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33332
33333         gnulib-tool: correctly detect absence of m4 directories
33334         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33335
33336 2009-11-14  Jim Meyering  <meyering@redhat.com>
33337
33338         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33339         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33340
33341 2009-11-14  John W. Eaton  <jwe@gnu.org>
33342
33343         strftime.h: wrap funtion declaration in extern "C" block
33344         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33345
33346 2009-11-13  Eric Blake  <ebb9@byu.net>
33347
33348         getgroups: avoid compiler warning
33349         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33350
33351         getgroups: work around FreeBSD bug
33352         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33353         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33354         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33355         * tests/test-getgroups.c (main): Fix buffer overrun.
33356
33357         getgroups: avoid compilation failure
33358         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33359         * modules/getgroups (Depends-on): Add stdint.
33360
33361 2009-11-13  Jim Meyering  <meyering@redhat.com>
33362
33363         test-getgroups: avoid compilation failure
33364         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33365
33366 2009-11-13  Eric Blake  <ebb9@byu.net>
33367
33368         mgetgroups: new module, taken from coreutils
33369         * modules/mgetgroups: New file.
33370         * lib/mgetgroups.h: Likewise.
33371         * lib/mgetgroups.c (mgetgroups): Likewise.
33372         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33373         * MODULES.html.sh (Users and groups): Mention it.
33374
33375         getgroups: don't expose GETGROUPS_T to user
33376         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33377         an element at a time if GETGROUPS_T is wrong size.
33378         * lib/getugroups.h (getugroups): Change signature.
33379         * lib/unistd.in.h (getgroups): Likewise.
33380         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33381         signature needs fixing.
33382         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33383         AC_TYPE_GETGROUPS.
33384         * modules/group-member (Depends-on): Add getgroups.
33385         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33386         (group_member): Rely on getgroups replacement.
33387         * lib/getugroups.c (getugroups): Use gid_t.
33388         * tests/test-getgroups.c (main): Likewise.
33389         * NEWS: Mention the signature change.
33390         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33391         problem with signature.
33392         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33393         GETGROUPS_T is still useful for setgroups.
33394
33395         getgroups, getugroups: provide stubs for mingw
33396         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33397         * lib/getugroups.c (getugroups): Likewise.
33398         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33399         function.  Modernize replacement scheme.
33400         (gl_PREREQ_GETGROUPS): Delete.
33401         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33402         * modules/getgroups (configure.ac): Declare witness.
33403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33404         * modules/unistd (Depends-on): Substitute witness.
33405         * lib/unistd.in.h (getgroups): Declare replacement.
33406
33407         getgroups: avoid calling exit
33408         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33409         drop xalloc.
33410         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33411         dependencies.
33412         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33413         exiting, in the rare case of malloc failure.
33414
33415         getgroups: fix logic error
33416         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33417         has more than 20 groups.
33418         * modules/getgroups-tests: New test.
33419         * tests/test-getgroups.c: New file.
33420
33421 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33422
33423         * tests/test-base64.c: Improve.
33424
33425 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33426
33427         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33428         Blake <ebb9@byu.net>.
33429
33430 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33431
33432         * tests/test-xvasprintf.c: Add %s%s related checks.
33433
33434 2009-11-12  Eric Blake  <ebb9@byu.net>
33435
33436         version-etc: match standards.texi style
33437         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33438         and use <> only for URLs.
33439
33440 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33441
33442         fts: do not fail on a submount during traversal
33443         * lib/fts.c (fts_build): Read the stat info again after opening
33444         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33445         Original report at http://bugzilla.redhat.com/501848.
33446
33447 2009-11-12  Jim Meyering  <meyering@redhat.com>
33448
33449         bootstrap: sync from coreutils
33450         * build-aux/bootstrap (bootstrap_epilogue): New function.
33451         Use git_modules_config in one more place.  This make bootstrap's
33452         --gnulib-srcdir option more useful for testing.
33453
33454         bootstrap: generalize autoheader check
33455         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33456         AC_CONFIG_HEADERS.
33457
33458 2009-11-11  Eric Blake  <ebb9@byu.net>
33459
33460         mkfifoat: use new modules for Solaris and BSD bugs
33461         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33462         * lib/mkfifoat.c (mknodat): Split...
33463         * lib/mknodat.c (mknodat): ...into new file.
33464         * modules/mkfifoat (Files): Ship new file.
33465         (Depends-on): Add mkfifo, mknod.
33466         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33467         (Depends-on): Add symlink.
33468         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33469         redundant with test_mkfifo.h.
33470         (do_mkfifoat, do_mknodat): New helpers.
33471
33472         mknod: new module
33473         * modules/mknod: New file.
33474         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33475         * lib/mknod.c (mknod): Likewise.
33476         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33477         defaults.
33478         * modules/sys_stat (Makefile.am): Substitute them.
33479         * lib/sys_stat.in.h (mknod): Declare replacement.
33480         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33481         Document it.
33482         * doc/posix-functions/mknod.texi (mknod): Likewise.
33483         * modules/mknod-tests: New test.
33484         * tests/test-mknod.c: Likewise.
33485
33486         mkfifo: new module
33487         * modules/mkfifo: New file.
33488         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33489         * lib/mkfifo.c (mkfifo): Likewise.
33490         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33491         defaults.
33492         * modules/sys_stat (Makefile.am): Substitute them.
33493         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33494         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33495         Document it.
33496         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33497         * modules/mkfifo-tests: New test.
33498         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33499         from test-mkfifoat.c.
33500         * tests/test-mkfifo.c: New file.
33501
33502         readlink: detect FreeBSD bug
33503         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33504         slash on symlink.
33505         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33506         * tests/test-readlink.h (test_readlink): Enhance test.
33507
33508         symlink: detect FreeBSD bug
33509         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33510         slash on symlink.
33511         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33512         * tests/test-symlink.h (test_symlink): Enhance test.
33513
33514 2009-11-10  Eric Blake  <ebb9@byu.net>
33515
33516         link: detect FreeBSD bug
33517         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33518         symlink.
33519         * doc/posix-functions/link.texi (link): Document the bug.
33520         * tests/test-link.h (test_link): Enhance test.
33521         * tests/test-linkat.c (main): Update caller.
33522
33523         unlink, remove: detect FreeBSD bug
33524         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33525         slash on symlink.
33526         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33527         * doc/posix-functions/remove.texi (remove): Likewise.
33528         * tests/test-unlink.h (test_unlink): Enhance test.
33529         * tests/test-remove.c (main): Likewise.
33530
33531 2009-11-09  Eric Blake  <ebb9@byu.net>
33532
33533         rename: detect FreeBSD bug
33534         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33535         slash on symlink.
33536         * modules/renameat-tests (Depends-on): Add filenamecat.
33537         * tests/test-rename.h (test_rename): Allow one more errno.
33538         * tests/test-renameat.c (main): Likewise.
33539         * doc/posix-functions/rename.texi (rename): Document the bug.
33540
33541         open: detect FreeBSD bug
33542         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33543         symlink.
33544         * doc/posix-functions/open.texi (open): Document the bug.
33545         * doc/posix-functions/utimes.texi (utimes): Likewise.
33546         * tests/test-open.h (test_open): Add parameters, and test symlink
33547         handling.
33548         * tests/test-open.c (main): Adjust caller.
33549         * tests/test-fcntl-safer.c (main): Likewise.
33550         * modules/open-tests (Depends-on): Add stdbool, symlink.
33551         * modules/fcntl-safer-tests (Depends-on): Likewise.
33552         * tests/test-openat.c (main): Add test-open tests.
33553
33554         stat: detect FreeBSD bug
33555         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33556         symlink.
33557         * doc/posix-functions/stat.texi (stat): Document the bug.
33558         * tests/test-stat.h (test_stat_func): Add argument.
33559         * tests/test-stat.c (main): Adjust caller.
33560         * tests/test-fstatat.c (main): Likewise.
33561         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33562         Reported by Jim Meyering.
33563
33564 2009-11-09  James Youngman  <jay@gnu.org>
33565
33566         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33567         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33568
33569 2009-11-08  Jim Meyering  <meyering@redhat.com>
33570
33571         utimens: remove invalid futimesat call
33572         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33573         It used the file descriptor of the target file as the DIR_FD
33574         parameter and NULL as the file name.  That caused failure with
33575         errno == EFAULT on FreeBSD-8.0-rc2
33576
33577 2009-11-07  Eric Blake  <ebb9@byu.net>
33578
33579         fflush, freadseek: use fseeko, not fseek
33580         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33581         (clear_ungetc_buffer): Avoid potential problems on large files.
33582         * lib/freadseek.c (freadseek): Likewise.
33583         * modules/freadseek (Depends-on): Add fseeko.
33584         * modules/fseek (configure.ac): Set a witness.
33585         * tests/test-fflush.c (main): Use fseeko.
33586         * tests/test-fpurge.c (fseek): Disable link warning.
33587         * tests/test-freadable.c (fseek): Likewise.
33588         * tests/test-freading.c (fseek): Likewise.
33589         * tests/test-fseeko.c (fseek): Likewise.
33590         * tests/test-ftell.c (fseek): Likewise.
33591         * tests/test-ftello.c (fseek): Likewise.
33592         * tests/test-fwritable.c (fseek): Likewise.
33593         * tests/test-fwriting.c (fseek): Likewise.
33594
33595 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33596
33597         * modules/memchr (Depends-on): Drop getpagesize dependency.
33598
33599 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33600
33601         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33602         Reported by Ludovic Courtès.
33603         * build-aux/pmccabe2html: Improve example usage.
33604         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33605
33606 2009-11-06  Jim Meyering  <meyering@redhat.com>
33607
33608         do-release-commit-and-tag: New module.
33609         Automate the release-commit and tag process.
33610         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33611         * modules/do-release-commit-and-tag: New file.
33612         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33613
33614 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33615
33616         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33617         because test-select.c uses inet_pton.
33618
33619 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33620
33621         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33622         GETADDRINFO_LIB.  Bump serial number.
33623         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33624         Suggested by Eric Blake <ebb9@byu.net>.
33625
33626 2009-11-05  Eric Blake  <ebb9@byu.net>
33627
33628         strtod: detect darwin bug
33629         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33630         Reported by Leo Davis.
33631
33632         freopen-safer: new module
33633         * modules/freopen-safer: New module.
33634         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33635         * lib/freopen-safer.c (freopen_safer): New file.
33636         * lib/stdio-safer.h (freopen_safer): New declaration.
33637         * lib/stdio--.h (freopen): New override.
33638         * MODULES.html.sh (File stream based Input/Output): Mention it.
33639         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33640         freopen-safer module.
33641         * doc/posix-functions/stderr.texi (stderr): Likewise.
33642         * doc/posix-functions/stdin.texi (stdin): Likewise.
33643         * doc/posix-functions/stdout.texi (stdout): Likewise.
33644         * modules/freopen-safer-tests: New test.
33645         * tests/test-reopen-safer.c: New file.
33646
33647 2009-11-05  Jim Meyering  <meyering@redhat.com>
33648
33649         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33650         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33651
33652 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33653
33654         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33655
33656 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33657
33658         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33659
33660 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33661
33662         Fix link error.
33663         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33664         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33665
33666 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33667
33668         * tests/test-func.c: Also test value of __func__.
33669
33670 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33671
33672         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33673         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33674
33675 2009-11-05  Bruno Haible  <bruno@clisp.org>
33676
33677         Fix link error.
33678         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33679         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33680         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33681
33682 2009-11-05  Bruno Haible  <bruno@clisp.org>
33683
33684         Tests for module 'inet_pton'.
33685         * modules/inet_pton-tests: New file.
33686         * tests/test-inet_pton.c: New file.
33687
33688 2009-11-05  Bruno Haible  <bruno@clisp.org>
33689
33690         Tests for module 'inet_ntop'.
33691         * modules/inet_ntop-tests: New file.
33692         * tests/test-inet_ntop.c: New file.
33693
33694 2009-11-04  Eric Blake  <ebb9@byu.net>
33695
33696         stdlib-safer: wrap all mkstemp variants
33697         * modules/mkostemp (configure.ac): Set witness.
33698         * modules/mkostemps (configure.ac): Likewise.
33699         * modules/mkstemps (configure.ac): Likewise.
33700         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33701         (mkstemps_safer): Wrap more functions.
33702         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33703         wrapping.
33704         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33705         (mkstemps_safer): Implement the wrappers.
33706
33707         mkstemps, mkostemps: new modules
33708         * modules/mkostemps: New module.
33709         * modules/mkstemps: Likewise.
33710         * lib/mkostemps.c (mkostemps): New file.
33711         * lib/mkstemps.c (mkstemps): Likewise.
33712         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33713         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33715         * modules/stdlib (Makefile.am): Substitute them.
33716         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33717         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33718         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33719         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33720         * MODULES.html.sh (File system functions): Mention them.
33721
33722         tempname: resync from glibc
33723         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33724         same values for __GT_FILE as glibc.  Abort even when assertions
33725         are disabled.
33726         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33727         match its value otherwise.  Allow idempotent inclusion.
33728         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33729         * lib/mkostemp.c (mkostemp): Likewise.
33730         * lib/mkstemp.c (mkstemp): Likewise.
33731         * lib/tmpfile.c (tmpfile): Likewise.
33732         * NEWS: Document this.
33733
33734         utimens: fix use of futimens on older Linux
33735         * lib/utimens.c (fdutimens): Use updated, rather than original,
33736         timespec to avoid bug in older Linux kernel.
33737         Reported by Simon Josefsson.
33738
33739 2009-11-04  Bruno Haible  <bruno@clisp.org>
33740
33741         Make num_processors more flexible and consistent.
33742         * lib/nproc.h (enum nproc_query): New type.
33743         (num_processors): Add a 'query' argument.
33744         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33745         (num_processors): Add a 'query' argument. Test the value of the
33746         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33747         mingw, count the number of CPUs available for the current process.
33748         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33749         Check for sched_getaffinity and sched_getaffinity_np.
33750         * modules/nproc (Depends-on): Add c-ctype, extensions.
33751         * NEWS: Mention the change.
33752
33753 2009-11-03  Bruno Haible  <bruno@clisp.org>
33754
33755         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33756
33757 2009-11-03  Jim Meyering  <meyering@redhat.com>
33758
33759         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33760         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33761         if it is defined.
33762
33763 2009-11-02  Eric Blake  <ebb9@byu.net>
33764
33765         mktime, timegm: share common declaration
33766         * lib/mktime-internal.h: New file.
33767         * lib/mktime.c: Use it rather than open-coding a declaration.
33768         * lib/timegm.c: Likewise.
33769         * modules/mktime (Files): Ship it.
33770         * modules/timegm (Files): Likewise.
33771         Suggested by Bruno Haible.
33772
33773         test-update-copyright: update test to match script changes
33774         * tests/test-update-copyright.sh: Avoid hard-coding perl
33775         location.  Don't update *.bak created by earlier runs.
33776
33777 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33778             Simon Josefsson  <simon@josefsson.org>
33779             Bruno Haible  <bruno@clisp.org>
33780
33781         Fix link error on Solaris 8.
33782         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33783         also in libnsl. Define also INET_PTON_LIB.
33784         * modules/inet_pton (Link): New section.
33785
33786 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33787             Bruno Haible  <bruno@clisp.org>
33788
33789         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33790         * modules/inet_ntop (Link): New section.
33791         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33792
33793 2009-11-02  Eric Blake  <ebb9@byu.net>
33794
33795         maint: avoid compiler warnings in m4 macros
33796         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33797         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33798
33799 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33800
33801         * m4/pmccabe2html.m4: Remove file.
33802         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33803         function.  Change maintainer.
33804         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33805         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33806         Courtès).
33807
33808 2009-10-31  Eric Blake  <ebb9@byu.net>
33809
33810         fseeko: fix m4 regression
33811         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33812         regression from 2009-10-27.
33813         Reported by Ralf Wildenhues.
33814
33815 2009-10-31  Jim Meyering  <meyering@redhat.com>
33816
33817         inttostr: aesthetics and improved (compile-time) safety
33818         Define inttype_is_signed rather than inttype_is_unsigned,
33819         since the sole use is via "#if inttype_is_signed".
33820         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33821         inttype_is_unsigned.
33822         * lib/offtostr.c (inttype_is_signed): Likewise.
33823         * lib/uinttostr.c (inttype_is_signed): Likewise.
33824         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33825         * lib/inttostr.c (inttostr): Use verify to cross-check the
33826         inttype_is_signed value and the signedness of the actual type.
33827         * modules/inttostr (Depends-on): Add verify.
33828
33829 2009-10-30  Eric Blake  <ebb9@byu.net>
33830
33831         build: avoid compiler warnings
33832         * lib/fchmodat.c (lchmod): Mark unused variables.
33833         * lib/getopt.c (_getopt_initialize): Likewise.
33834         * lib/mktime.c (__mktime_internal): Provide prototype.
33835         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33836         older gcc that do not understand #pragma GCC diagnostic.
33837         * lib/uinttostr.c (inttype_is_unsigned): Define.
33838         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33839
33840 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33841
33842         stat: fix compilation on AIX
33843         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33844         only see struct stat64.
33845
33846 2009-10-30  Eric Blake  <ebb9@byu.net>
33847
33848         exclude: make more robust
33849         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33850         rather than masking a coding bug.
33851         Suggested by Bruno Haible.
33852
33853 2009-10-30  Jim Meyering  <meyering@redhat.com>
33854
33855         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33856         Rather than putting #!/usr/bin/perl on the first line,
33857         start with a variant of what's recommended by "man perlrun" that
33858         invokes the first "perl" program from your shell's search path.
33859         * build-aux/gitlog-to-changelog: Replace #!... as above.
33860         Add a "Local Variables" perl mode setting.
33861         Prompted by a patch from Ludovic Courtès.
33862         Improved by Eric Blake.
33863         * build-aux/useless-if-before-free: Likewise.
33864         * build-aux/announce-gen: Likewise.
33865         * build-aux/update-copyright: Likewise.
33866
33867 2009-10-29  Eric Blake  <ebb9@byu.net>
33868
33869         filenamecat-lgpl: adjust clients
33870         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33871         filenamecat.
33872         * modules/renameat (Depends-on): Likewise.
33873
33874         filenamecat: split into filenamecat-lgpl
33875         * modules/filenamecat-lgpl: New module.
33876         * modules/filenamecat (Files): Move library-safe files into
33877         filenamecat-lgpl.
33878         (Depends-on): Add filenamecat-lgpl.
33879         (configure.ac): Declare witness.
33880         * lib/filenamecat.h (file_name_concat): Only declare when using
33881         GPL module.
33882         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33883         Move...
33884         * lib/filenamecat-lgpl.c: ...into new file.
33885         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33886         (gl_FILE_NAME_CONCAT): Use it.
33887         * MODULES.html.sh (File system functions): Mention new module.
33888
33889         argp: avoid memory leak
33890         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33891         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33892         base_name, since the latter malloc()s and can call exit().
33893         Leak introduced 2006-07-03.
33894
33895         dirname-lgpl: adjust clients that don't need full dirname
33896         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33897         * modules/filenamecat (Depends-on): Likewise.
33898         * modules/linkat (Depends-on): Likewise.
33899         * modules/mkancesdirs (Depends-on): Likewise.
33900         * modules/mkdir (Depends-on): Likewise.
33901         * modules/openat (Depends-on): Likewise.
33902         * modules/savewd (Depends-on): Likewise.
33903         * modules/rename (Depends-on): Likewise.
33904         (License): Relax license.
33905         * modules/mkdir-tests (Depends-on): Drop progname.
33906         (Makefile.am): Delete unneeded LDADD.
33907         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33908
33909         dirname: split into dirname-lgpl
33910         * modules/dirname-lgpl: New module.
33911         * modules/dirname (Files): Move library-safe files into
33912         dirname-lgpl.
33913         (Depends-on): Add dirname-lgpl.
33914         (configure.ac): Declare witness.
33915         * modules/double-slash-root (License): Relax license.
33916         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33917         module.
33918         * lib/dirname.c (dir_len, mdir_name): Move...
33919         * lib/dirname-lgpl.c: ...into new file.
33920         * lib/basename.c (last_component, base_len): Move...
33921         * lib/basename-lgpl.c: ...into new file.
33922         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33923         (gl_DIRNAME): Use it.
33924         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33925         Mention new module.
33926         * modules/dirname-tests (Depends-on): Add progname.
33927         * tests/test-dirname.c (program_name): Delete.
33928
33929         mkdir: make safe for libraries
33930         * modules/mkdir (Depends-on): Drop xalloc.
33931         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
33932         exit.
33933
33934         tests: avoid some compiler warnings
33935         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
33936         literals.
33937         * tests/test-memchr.c (main): Avoid type mismatch.
33938         * tests/test-arpa_inet.c (main): Avoid unused parameters.
33939         * tests/test-base64.c (main): Likewise.
33940         * tests/test-getdelim.c (main): Likewise.
33941         * tests/test-gethostname.c (main): Likewise.
33942         * tests/test-getline.c (main): Likewise.
33943         * tests/test-netinet_in.c (main): Likewise.
33944         * tests/test-select.c (open_server_socket, main): Likewise.
33945         * tests/test-select-stdin.c (main): Likewise.
33946         * tests/test-sockets.c (main): Likewise.
33947         * tests/test-strsignal.c (main): Likewise.
33948         * tests/test-sys_select.c (main): Likewise.
33949         * tests/test-sys_socket.c (main): Likewise.
33950         * tests/test-u64.c (main): Likewise.
33951         * tests/test-xfprintf-posix.c (main): Likewise.
33952         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
33953
33954         sockets: avoid compiler warning
33955         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
33956
33957         maint: detect usage(1) and other suspicious exits
33958         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
33959
33960 2009-10-29  Jim Meyering  <meyering@redhat.com>
33961
33962         timespec: long-to-int truncation could make timespec_cmp malfunction
33963         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
33964         a multiple of 2^32 nanoseconds as no difference.
33965
33966 2009-10-28  Jim Meyering  <meyering@redhat.com>
33967
33968         fprintftime: wrap macro code argument in "do {...} while(0)"
33969         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
33970         cpy macro must be a statement that can be followed by a semicolon.
33971         Now that the else clause contains a comment and is hence longer
33972         than one line, I require curly braces.  That in turn requires
33973         that we wrap this code block in the standard do...while(0).
33974
33975         fprintftime: remove stray semicolon from previous change
33976         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
33977
33978         fprintftime: avoid a warning about ignored fwrite return value
33979         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
33980         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
33981         that is unsafe.
33982         * modules/fprintftime (Depends-on): Add ignore-value.
33983
33984         exclude: avoid an unwarranted warning
33985         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
33986
33987 2009-10-27  Eric Blake  <ebb9@byu.net>
33988
33989         fseek: avoid compilation failure when fflush is replaced
33990         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
33991         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
33992         module is in use.
33993         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
33994         module is not in use; since REPLACE_FSEEK worked otherwise.
33995         (GNULIB_FTELLO): Likewise for ftell.
33996         Reported by Ian Beckwith and others.
33997
33998 2009-10-27  Bruno Haible  <bruno@clisp.org>
33999
34000         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34001         Reported by Jim Meyering.
34002
34003 2009-10-27  Jim Meyering  <jim@meyering.net>
34004             Bruno Haible  <bruno@clisp.org>
34005
34006         Avoid warning despite dropping the return value of fwrite.
34007         * lib/unicodeio.c: Include ignore-value.h.
34008         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34009         * modules/unicodeio (Depends-on): Add ignore-value.
34010
34011 2009-10-26  Eric Blake  <ebb9@byu.net>
34012
34013         areadlinkat: fix fallback path
34014         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34015         pointer and zero.
34016
34017 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34018
34019         Use a better IO block size for modern systems
34020         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34021         * lib/md2.c: Likewise.
34022         * lib/md4.c: Likewise.
34023         * lib/md5.c: Likewise.
34024         * lib/sha1.c: Likewise.
34025         * lib/sha256.c: Likewise.
34026         * lib/sha512.c: Likewise.
34027
34028 2009-10-22  Eric Blake  <ebb9@byu.net>
34029
34030         tests: avoid several compiler warnings
34031         * tests/test-getcwd.c (main): Avoid buffer underflow.
34032         * tests/test-getdate.c (main): String literals are not safe with
34033         putenv, so use setenv.  Declare unused argument.
34034         * modules/getdate-tests (Depends-on): Add setenv.
34035         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34036         problems with string literals in char *.
34037         * tests/test-hash.c (main): Avoid shadowing declaration.
34038         (insert_new): Treat string literals as char const *.
34039         * tests/test-getopt.h (test_getopt): Likewise.
34040         (getopt_loop): Alter types to minimize casting elsewhere.
34041         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34042         (test_getopt_long_posix): Likewise.
34043         (do_getopt_long): Add wrapper to minimize casting.
34044         * tests/test-atexit.c (clear_temp_file): Use void.
34045         * tests/test-areadlink-with-size.c (main): Declare unused
34046         arguments.
34047         * tests/test-areadlink.c (main): Likewise.
34048         * tests/test-areadlinkat-with-size.c (main): Likewise.
34049         * tests/test-areadlinkat.c (main): Likewise.
34050         * tests/test-canonicalize-lgpl.c (main): Likewise.
34051         * tests/test-canonicalize.c (main): Likewise.
34052         * tests/test-dirent-safer.c (main): Likewise.
34053         * tests/test-dirname.c (main): Likewise.
34054         * tests/test-dup2.c (main): Likewise.
34055         * tests/test-fchdir.c (main): Likewise.
34056         * tests/test-fcntl-h.c (main): Likewise.
34057         * tests/test-fcntl-safer.c (main): Likewise.
34058         * tests/test-fdopendir.c (main): Likewise.
34059         * tests/test-fdutimensat.c (main): Likewise.
34060         * tests/test-fflush.c (main): Likewise.
34061         * tests/test-filenamecat.c (main): Likewise.
34062         * tests/test-filevercmp.c (main): Likewise.
34063         * tests/test-fopen-safer.c (main): Likewise.
34064         * tests/test-fopen.c (main): Likewise.
34065         * tests/test-fpending.c (main): Likewise.
34066         * tests/test-fpurge.c (main): Likewise.
34067         * tests/test-freading.c (main): Likewise.
34068         * tests/test-fstatat.c (main): Likewise.
34069         * tests/test-fsync.c (main): Likewise.
34070         * tests/test-futimens.c (main): Likewise.
34071         * tests/test-getndelim2.c (main): Likewise.
34072         * tests/test-gettimeofday.c (main): Likewise.
34073         * tests/test-getopt.c (main): Likewise.
34074         * tests/test-i-ring.c (main): Likewise.
34075         * tests/test-inttypes.c (main): Likewise.
34076         * tests/test-link.c (main): Likewise.
34077         * tests/test-lstat.c (main): Likewise.
34078         * tests/test-math.c (main): Likewise.
34079         * tests/test-md5.c (main): Likewise.
34080         * tests/test-memchr2.c (main): Likewise.
34081         * tests/test-memrchr.c (main): Likewise.
34082         * tests/test-mkdir.c (main): Likewise.
34083         * tests/test-mkdirat.c (main): Likewise.
34084         * tests/test-mkfifoat.c (main): Likewise.
34085         * tests/test-open.c (main): Likewise.
34086         * tests/test-openat-safer.c (main): Likewise.
34087         * tests/test-openat.c (main): Likewise.
34088         * tests/test-quotearg.c (main): Likewise.
34089         * tests/test-rawmemchr.c (main): Likewise.
34090         * tests/test-readlink.c (main): Likewise.
34091         * tests/test-remove.c (main): Likewise.
34092         * tests/test-rename.c (main): Likewise.
34093         * tests/test-renameat.c (main): Likewise.
34094         * tests/test-rmdir.c (main): Likewise.
34095         * tests/test-sha1.c (main): Likewise.
34096         * tests/test-signal.c (main): Likewise.
34097         * tests/test-sigaction.c (main): Likewise.
34098         * tests/test-stat.c (main): Likewise.
34099         * tests/test-stat-time.c (main): Likewise.
34100         * tests/test-stddef.c (main): Likewise.
34101         * tests/test-stdint.c (main): Likewise.
34102         * tests/test-stdio.c (main): Likewise.
34103         * tests/test-stdlib.c (main): Likewise.
34104         * tests/test-strchrnul.c (main): Likewise.
34105         * tests/test-strerror.c (main): Likewise.
34106         * tests/test-string.c (main): Likewise.
34107         * tests/test-strtod.c (main): Likewise.
34108         * tests/test-strverscmp.c (main): Likewise.
34109         * tests/test-symlink.c (main): Likewise.
34110         * tests/test-symlinkat.c (main): Likewise.
34111         * tests/test-sys_stat.c (main): Likewise.
34112         * tests/test-sys_time.c (main): Likewise.
34113         * tests/test-time.c (main): Likewise.
34114         * tests/test-unistd.c (main): Likewise.
34115         * tests/test-unlink.c (main): Likewise.
34116         * tests/test-unlinkat.c (main): Likewise.
34117         * tests/test-utimens.c (main): Likewise.
34118         * tests/test-utimensat.c (main): Likewise.
34119         * tests/test-version-etc.c (main): Likewise.
34120         * tests/test-wchar.c (main): Likewise.
34121         * tests/test-wctype.c (main): Likewise.
34122         * tests/test-xprintf-posix.c (main): Likewise.
34123         * tests/test-posixtm.c (main): Likewise.
34124         (STREQ): Delete unused macro.
34125         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34126         shadowed variables.
34127         * tests/test-memchr.c (main): Likewise.
34128
34129 2009-10-21  Eric Blake  <ebb9@byu.net>
34130
34131         areadlinkat: avoid failure on older glibc
34132         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34133         rather than mis-comparing 0 against FUNC_RESULT of char*.
34134
34135 2009-10-21  Bruno Haible  <bruno@clisp.org>
34136
34137         * modules/stpncpy (License): Relicense under LGPLv2+.
34138         Reported by David Lutterkort <lutter@redhat.com>.
34139
34140 2009-10-20  Eric Blake  <ebb9@byu.net>
34141
34142         utimensat: work around Solaris 9 bug
34143         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34144         has trailing slash bugs.
34145         * tests/test-lutimens.h (test_lutimens): Enhance test.
34146         * tests/test-utimens.h (test_utimens): Likewise.
34147         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34148         * doc/posix-functions/utimes.texi (utimes): Likewise.
34149         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34150         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34151         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34152         * doc/posix-functions/futimens.texi (futimens): Likewise.
34153
34154         fdutimensat: new module
34155         * modules/fdutimensat: New file.
34156         * lib/fdutimensat.c (fdutimensat): Likewise.
34157         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34158         * MODULES.html.sh (File system functions): Mention module.
34159         * modules/fdutimensat-tests: New test.
34160         * tests/test-fdutimensat.c: Likewise.
34161
34162         doc: regenerate INSTALL
34163         * doc/INSTALL: Reflect recent autoconf update.
34164         * doc/INSTALL.ISO: Likewise.
34165         * doc/INSTALL.UTF-8: Likewise.
34166
34167 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34168
34169         acl: warn if ACL support is not detected
34170         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34171
34172 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34173
34174         * lib/nproc.h: Add extern "C" block for C++.
34175
34176 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34177             Bruno Haible  <bruno@clisp.org>
34178
34179         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34180         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34181         * doc/posix-functions/isalpha.texi: Likewise.
34182         * doc/posix-functions/isblank.texi: Likewise.
34183         * doc/posix-functions/iscntrl.texi: Likewise.
34184         * doc/posix-functions/isdigit.texi: Likewise.
34185         * doc/posix-functions/isgraph.texi: Likewise.
34186         * doc/posix-functions/islower.texi: Likewise.
34187         * doc/posix-functions/isprint.texi: Likewise.
34188         * doc/posix-functions/ispunct.texi: Likewise.
34189         * doc/posix-functions/isspace.texi: Likewise.
34190         * doc/posix-functions/isupper.texi: Likewise.
34191         * doc/posix-functions/isxdigit.texi: Likewise.
34192
34193 2009-10-18  Bruno Haible  <bruno@clisp.org>
34194
34195         Tests for module 'isblank'.
34196         * modules/isblank-tests: New file.
34197         * tests/test-isblank.c: New file.
34198
34199         New module 'isblank'.
34200         * lib/isblank.c: New file.
34201         * m4/isblank.m4: New file.
34202         * modules/isblank: New file.
34203         * doc/posix-functions/isblank.texi: Mention the new module.
34204
34205 2009-10-18  Bruno Haible  <bruno@clisp.org>
34206
34207         New module 'ctype'.
34208         * lib/ctype.in.h: New file.
34209         * m4/ctype.m4: New file.
34210         * modules/ctype: New file.
34211         * doc/posix-headers/ctype.texi: Mention the new module.
34212
34213 2009-10-18  Jim Meyering  <meyering@redhat.com>
34214
34215         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34216         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34217         right after its initialization, rather than farther down.
34218         Keeping these in close proximity makes it easier to ensure
34219         that each such variable is initialized.  E.g.,
34220
34221             LIB_CLOCK_GETTIME=
34222             AC_SUBST([LIB_CLOCK_GETTIME])
34223
34224         This change also increments these serial numbers.
34225         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34226         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34227         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34228
34229 2009-10-18  Bruno Haible  <bruno@clisp.org>
34230
34231         Don't let environment variables perturb build.
34232         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34233         (gl_PREREQ_GETHRXTIME): ... not here.
34234
34235 2009-10-18  Bruno Haible  <bruno@clisp.org>
34236
34237         Avoid symlink attack in localcharset module.
34238         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34239         (O_NOFOLLOW): Define fallback.
34240         (get_charset_aliases): Don't open the file if it is a symbolic link.
34241         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34242         gl_FCNTL_H.
34243         (gl_FCNTL_H): Require it.
34244         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34245         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34246         Reported by Fergal Glynn <fglynn@veracode.com>.
34247
34248 2009-10-18  Bruno Haible  <bruno@clisp.org>
34249
34250         Implement nproc for mingw.
34251         * lib/nproc.c: Include <windows.h>
34252         (num_processors): On native Windows platforms, try GetSystemInfo.
34253
34254 2009-10-18  Bruno Haible  <bruno@clisp.org>
34255
34256         Implement nproc for IRIX.
34257         * lib/nproc.c: Include <sys/sysmp.h>.
34258         (num_processors): On IRIX systems, try sysmp.
34259         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34260
34261 2009-10-18  Bruno Haible  <bruno@clisp.org>
34262
34263         Implement nproc for HP-UX.
34264         * lib/nproc.c: Include <sys/pstat.h>
34265         (num_processors): On HP-UX systems, try pstat_getdynamic.
34266         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34267         pstat_getdynamic.
34268
34269 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34270             Bruno Haible  <bruno@clisp.org>
34271
34272         Implement nproc for NetBSD, OpenBSD.
34273         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34274         (ARRAY_SIZE): New macro.
34275         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34276         * m4/nproc.m4: New file.
34277         * modules/nproc (Files): Add m4/nproc.m4.
34278         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34279         (Makefile.am): Instead, augment lib_SOURCES.
34280
34281 2009-10-18  Bruno Haible  <bruno@clisp.org>
34282
34283         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34284         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34285         sys/param.h.
34286
34287 2009-10-16  Eric Blake  <ebb9@byu.net>
34288
34289         utimensat: new module
34290         * modules/utimensat: New file.
34291         * lib/utimensat.c (utimensat): Likewise.
34292         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34293         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34294         so we can work around Linux bugs.
34295         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34296         * modules/sys_stat (Makefile.am): Substitute them.
34297         * lib/sys_stat.in.h (utimensat): Declare it.
34298         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34299         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34300         * modules/utimensat-tests: New test.
34301         * tests/test-utimensat.c: Likewise.
34302
34303         utimens: let lutimens work on non-symlinks
34304         * lib/utimens.c (lutimens): Fall back to utimens rather than
34305         failing with ENOSYS, when file is not a symlink.
34306         (utimens): Reduce redirection.
34307         * tests/test-lutimens.h (test_lutimens): Update test to cover
34308         non-symlinks.
34309         * tests/test-utimens.h (test_utimens): Update test to cover
34310         symlinks.
34311         * tests/test-utimens.c (main): Update caller.
34312
34313         utimens: cache whether utimensat syscall works
34314         * lib/utimens.c (utimensat_works_really): New cache variable.
34315         (fdutimens, lutimens): Use it to avoid failing syscall.
34316
34317         test-stat-time, test-utimens: improve portability
34318         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34319         ext4 on alpha, and for cygwin.
34320         * tests/test-utimens-common.h: New file.
34321         (nap): Factor delays into single function.
34322         * tests/test-lutimens.h (test_lutimens): Use new header.
34323         * tests/test-futimens.h (test_futimens): Likewise.
34324         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34325         timestamps to occur from same machine, as was done previously for
34326         test_utimens.
34327         * modules/utimens-tests (Files): Ship new file.
34328         * modules/futimens-tests (Files): Likewise.
34329         Reported in part by Jim Meyering.
34330
34331         sys_stat: sort replacement declarations
34332         * lib/sys_stat.in.h: Sort declarations.
34333         * lib/futimens.c (futimens): Fix typo.
34334
34335 2009-10-15  Jim Meyering  <meyering@redhat.com>
34336
34337         don't let environment settings perturb build
34338         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34339         could cause a configure-time and/or build-time malfunction.
34340         Typically, a configure-time function-in-library test is performed
34341         via code like this:
34342
34343           LIB_VAR=
34344           AC_SUBST([LIB_VAR])
34345           prefix_saved_LIBS=$LIBS
34346             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34347                        [test "$ac_cv_search_FUNC" = "none required" ||
34348                         LIB_VAR=$ac_cv_search_FUNC])
34349           LIBS=$prefix_saved_LIBS
34350
34351         However, in each of the files affected by this change, the LIB_VAR=
34352         initialization was omitted.  Thus, when set in the environment, its
34353         value would propagate into generated Makefiles when FUNC is not found
34354         in LIB_NAME.
34355         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34356         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34357         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34358
34359 2009-10-14  Eric Blake  <ebb9@byu.net>
34360
34361         fchdir: avoid infinite recursion in mingw
34362         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34363         recursing.
34364
34365         test-stat-time: port to mingw
34366         * tests/test-stat-time.c (force_unlink): Return a value.
34367         (test_ctime) [W32]: Fix compilation error.
34368         (nap): Don't call usleep with too large an argument.  Use
34369         force_unlink.
34370         * doc/pastposix-functions/usleep.texi (usleep): Document the
34371         portability issue.
34372
34373 2009-10-13  Jim Meyering  <meyering@redhat.com>
34374
34375         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34376         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34377         * modules/pipe-filter-ii: Likewise.
34378         * modules/sys_socket-tests: Likewise.
34379         * modules/tsearch-tests: Likewise.
34380         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34381         (check): Depend on it.
34382
34383 2009-10-12  Eric Blake  <ebb9@byu.net>
34384
34385         utimens-tests: port to NFS file systems
34386         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34387         comparisons to avoid spurious failures from timestamp drift
34388         between NFS machines.
34389
34390 2009-10-12  Eric Blake  <ebb9@byu.net>
34391
34392         stat-time-tests: minor cleanups
34393         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34394         * tests/test-stat-time.c (nap): Separate assignment from call.
34395         Suggested by Paolo Bonzini and Bruno Haible.
34396
34397         sys_stat: guarantee struct timespec
34398         * lib/sys_stat.in.h (includes): Always include <time.h>
34399         * modules/sys_stat (Depends-on): Add time.
34400         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34401         mode_t permission values.
34402         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34403         get at subsecond timestamps.
34404
34405 2009-10-10  Eric Blake  <ebb9@byu.net>
34406
34407         futimens: new module
34408         * modules/futimens: New file.
34409         * lib/futimens.c (futimens): Likewise.
34410         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34411         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34412         we can work around Linux bugs.
34413         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34414         * modules/sys_stat (Makefile.am): Substitute them.
34415         * lib/sys_stat.in.h (futimens): Declare it.
34416         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34417         * doc/posix-functions/futimens.texi (futimens): Likewise.
34418         * modules/futimens-tests: New test.
34419         * tests/test-futimens.c: Likewise.
34420
34421         utimens: introduce fdutimens
34422         * lib/utimens.h (fdutimens): New prototype.
34423         * lib/utimens.c (gl_futimens): Move guts...
34424         (fdutimens): ...to new interface.
34425         * tests/test-utimens.c (do_fdutimens): Use it.
34426
34427         utimens: add UTIME_NOW and UTIME_OMIT support
34428         * lib/utimens.c (validate_timespec, update_timespec): New helper
34429         functions.
34430         (gl_futimens, lutimens): Use them.
34431         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34432         stdbool, sys_stat.
34433         (Link): Mention resulting library dependency.
34434         * modules/utimecmp (Link): Likewise.
34435         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34436         (Makefile.am): Pick up library dependency.
34437         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34438         definition.
34439         * tests/test-sys_stat.c: Test the definitions.
34440         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34441         * NEWS: Document library dependency.
34442
34443         utimecmp: support symlink timestamps
34444         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34445         hashing when possible.  Use pathconf when available.
34446         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34447         * modules/utimecmp (Depends-on): Add lstat.
34448
34449         utimens: add lutimens interface
34450         * lib/utimens.c (lutimens): New function.
34451         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34452         * lib/utimens.h (lutimens): Declare new interface.
34453         * tests/test-utimens.c (main): Enhance test.
34454         * tests/test-lutimens.h (test_lutimens): New file.
34455         * modules/utimens-tests (Files): Distribute it.
34456         (Depends-on): Add symlink.
34457         (configure.ac): Check for usleep.
34458
34459         utimens: validate futimens usage
34460         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34461         fewer syscalls on failure later on.  Avoid compiler warning on
34462         mingw.
34463         * modules/utimens (Depends-on): Add dup2.
34464
34465         utimens: add test
34466         * modules/utimens-tests: New test.
34467         * tests/test-utimens.h: New file.
34468         * tests/test-futimens.h: Likewise.
34469         * tests/test-utimens.c: Likewise.
34470
34471         doc: mention timestamp portability issues
34472         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34473         instead.
34474         * doc/posix-functions/utime.texi (utime): Likewise.
34475         * doc/posix-functions/utimes.texi (utimes): Likewise.
34476         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34477         instead.
34478         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34479         module.
34480         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34481         Mention weakness with symlink timestamps.
34482         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34483         to utimensat/futimens instead.
34484         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34485
34486         test-dup2: enhance test
34487         * tests/test-dup2.c (main): Also check AT_FDCWD.
34488
34489         test-stat-time: avoid more spurious failures
34490         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34491         xfs; and avoid race if the two timestamps cross quantization edge.
34492
34493         relocatable: prefer 'file system' over 'filesystem'
34494         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34495         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34496         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34497         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34498         * lib/relocatable.c (compute_curr_prefix): Likewise.
34499
34500 2009-10-10  Jim Meyering  <meyering@redhat.com>
34501
34502         stat-time-tests: check for the usleep function
34503         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34504
34505 2009-10-10  Bruno Haible  <bruno@clisp.org>
34506
34507         * modules/xnanosleep: Put the Link section after the Include section.
34508
34509 2009-10-09  Eric Blake  <ebb9@byu.net>
34510
34511         dup2: work around FreeBSD 6.1 bug
34512         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34513         * doc/posix-functions/dup2.texi (dup2): Document it.
34514         Reported by Nelson H. F. Beebe and Jim Meyering.
34515
34516         test-stat-time: port to buggy NFS clients
34517         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34518         (test_ctime): Also skip test if mtime and ctime are skewed.
34519
34520         maint: prefer 'file system' over 'filesystem'
34521         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34522         * doc/posix-functions/lstat.texi (lstat): Likewise.
34523         * lib/file-has-acl.c (file_has_acl): Likewise.
34524         * lib/fwriteerror.c [TEST]: Likewise.
34525         * tests/test-areadlink.h (test_areadlink): Likewise.
34526         * tests/test-areadlinkat-with-size.c (main): Likewise.
34527         * tests/test-areadlinkat.c (main): Likewise.
34528         * tests/test-canonicalize-lgpl.c (main): Likewise.
34529         * tests/test-canonicalize.c (main): Likewise.
34530         * tests/test-fstatat.c (main): Likewise.
34531         * tests/test-linkat.c (main): Likewise.
34532         * tests/test-lstat.h (test_lstat_func): Likewise.
34533         * tests/test-mkdir.h (test_mkdir): Likewise.
34534         * tests/test-readlink.h (test_readlink): Likewise.
34535         * tests/test-remove.c (main): Likewise.
34536         * tests/test-rename.h (test_rename): Likewise.
34537         * tests/test-renameat.c (main): Likewise.
34538         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34539         * tests/test-symlink.h (test_symlink): Likewise.
34540         * tests/test-symlinkat.c (main): Likewise.
34541         * tests/test-unlink.h (test_unlink_func): Likewise.
34542         * tests/test-unlinkat.c (main): Likewise.
34543
34544         maint: make realtime library usage explicit
34545         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34546         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34547         * modules/settime (Link): Likewise.
34548         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34549
34550         test-stat-time: speed up execution
34551         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34552         warning on mingw.
34553         (nap): New helper function.
34554         (prepare_test): Use it to reduce sleep time.
34555         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34556         execution.
34557         * modules/stat-time-tests (configure.ac): Check for usleep.
34558
34559 2009-10-09  Jim Meyering  <meyering@redhat.com>
34560
34561         selinux-h: always use getfilecon wrappers
34562         * lib/getfilecon.c: New file.
34563         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34564         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34565         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34566         (fgetfilecon): Provide a stub.
34567         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34568         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34569         file unconditionally.
34570         When <selinux/selinux.h> is found, arrange to use wrappers.
34571         * modules/selinux-h (Files): Add getfilecon.c.
34572         (Makefile.am): Substitute include-next-related bits
34573         into the now-always-generated selinux/selinux.h file.
34574         * doc/glibc-functions/lgetfilecon.texi: New file.
34575         * doc/glibc-functions/fgetfilecon.texi: New file.
34576         * doc/glibc-functions/getfilecon.texi: New file.
34577         * doc/glibc-functions/getfilecon-desc.texi: New file.
34578         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34579         which to pull in the new files.
34580         * MODULES.html.sh (Misc): Add selinux-h.
34581
34582 2009-10-08  Jim Meyering  <meyering@redhat.com>
34583
34584         unistd: fix comment typo
34585         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34586
34587 2009-10-08  Eric Blake  <ebb9@byu.net>
34588
34589         areadlink: use SIZE_MAX consistently
34590         * modules/areadlink (Depends-on): Add stdint.
34591         * modules/areadlink-with-size (Depends-on): Likewise.
34592         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34593         gives NULL; drop sys/types, since unistd gives size_t; and add
34594         stdint for SIZE_MAX.
34595         (SIZE_MAX): Rely on headers.
34596         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34597         and add stdint.
34598         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34599         (SIZE_MAX): Likewise.
34600         (INITIAL_BUF_SIZE): Turn into enum.
34601         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34602
34603 2009-10-08  Jim Meyering  <meyering@redhat.com>
34604
34605         areadlinkat: avoid compilation failure
34606         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34607         Fix typo in comment.
34608
34609 2009-10-07  Eric Blake  <ebb9@byu.net>
34610
34611         areadlinkat-with-size: new module
34612         * modules/areadlinkat-with-size: New module.
34613         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34614         * lib/areadlink.h (areadlinkat): Declare it.
34615         * MODULES.html.sh (File system functions): Mention it.
34616         * modules/areadlinkat-with-size-tests: New test.
34617         * tests/test-areadlinkat-with-size.c: New file.
34618
34619         xreadlinkat: new module
34620         * modules/xreadlinkat: New module.
34621         * lib/xreadlinkat.c (xreadlinkat): New file.
34622         * lib/xreadlink.h (xreadlinkat): Declare it.
34623         * MODULES.html.sh (File system functions): Mention it.
34624
34625         areadlinkat: new module
34626         * lib/at-func.c (FUNC_FAIL): New define.
34627         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34628         * modules/areadlinkat: New module.
34629         * lib/linkat.c (areadlinkat): Move...
34630         * lib/areadlinkat.c (areadlinkat): ...to new file.
34631         * lib/areadlink.h (areadlinkat): Declare it.
34632         * modules/linkat (Depends-on): Add areadlinkat.
34633         * MODULES.html.sh (File system functions): Mention it.
34634         * modules/areadlinkat-tests: New test.
34635         * tests/test-areadlinkat.c: New file.
34636
34637         areadlink, areadlink-with-size: add tests
34638         * modules/areadlink-tests: New test.
34639         * modules/areadlink-with-size-tests: Likewise.
34640         * tests/test-areadlink.h: New file.
34641         * tests/test-areadlink.c: Likewise.
34642         * tests/test-areadlink-with-size.c: Likewise.
34643
34644         maint: minor cleanups
34645         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34646         _UNUSED_PARAMETER_ instead.
34647         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34648         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34649         * modules/linkat-tests (Files): Distribute test-link.h.
34650
34651         openat, utimens: whitespace cleanup
34652         * lib/openat.c: Prefer space throughout, rather than mix of 8
34653         spaces vs. tabs.
34654         * lib/at-func.c: Likewise.
34655         * lib/utimens.c: Likewise.
34656
34657         openat: avoid using wrong fd
34658         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34659         working directory chooses same fd.
34660         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34661
34662         mkdir, mkdirat: fix cygwin 1.5.x bug
34663         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34664         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34665         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34666         bug.
34667         (gl_PREREQ_MKDIR): Delete unused macro.
34668         * modules/mkdir (Files): Track file rename.
34669         (configure.ac): Update macro name.
34670         * modules/openat (Depends-on): Add mkdir.
34671         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34672
34673         mkdir, mkdirat: add tests
34674         * modules/mkdir-tests: New test.
34675         * tests/test-mkdir.h: New file.
34676         * tests/test-mkdir.c: Likewise.
34677         * tests/test-mkdirat.c: Likewise.
34678         * modules/openat-tests (Files): Add new files.
34679         (Makefile.am): Run new test.
34680
34681 2009-10-06  Eric Blake  <ebb9@byu.net>
34682
34683         doc: tweak *at function documentation
34684         * doc/posix-functions/faccessat.texi (faccessat): Mention
34685         known issue with replacement.
34686         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34687         * doc/posix-functions/linkat.texi (linkat): Likewise.
34688         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34689         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34690         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34691         * doc/posix-functions/renameat.texi (renameat): Likewise.
34692         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34693
34694         openat: fix GNU/Hurd bug in unlinkat
34695         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34696         broken.
34697         * doc/posix-functions/unlink.texi (unlink): Document this.
34698         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34699
34700         fdopendir: fix GNU/Hurd bug
34701         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34702         allowing non-directory fds.
34703         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34704         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34705         * modules/dirent (Makefile.am): Substitute it.
34706         * lib/dirent.in.h (fdopendir): Declare replacement.
34707         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34708         * tests/test-fdopendir.c (main): Test something other than
34709         /dev/null, since on Hurd that behaves like a directory.
34710
34711         test-symlink: port to GNU/Hurd
34712         * tests/test-symlink.h (test_symlink): Relax expected errno.
34713
34714         doc: tweak more cygwin information
34715         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34716         now compatible with glibc.
34717         * doc/posix-functions/getopt.texi (getopt): Likewise.
34718
34719         getopt-gnu: add another test
34720         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34721         guarantee behavior relied on by m4.
34722         * tests/test-getopt.c (main): Use it.
34723         * modules/getopt-posix-tests (Depends-on): Add setenv.
34724         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34725
34726         getopt: fix compilation on darwin
34727         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34728         include.
34729         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34730         Reported by Ludovic Courtès.
34731
34732 2009-10-06  Bruno Haible  <bruno@clisp.org>
34733
34734         * modules/size_max (Description): Discourage its use.
34735         Reported by Simon Josefsson.
34736
34737 2009-10-06  Jim Meyering  <meyering@redhat.com>
34738
34739         linkat: avoid compilation failure
34740         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34741
34742 2009-10-05  Eric Blake  <ebb9@byu.net>
34743
34744         linkat: support Linux 2.6.17
34745         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34746         linkat on Linux, but allow cache variable override.
34747         * lib/linkat.c (rpl_linkat): Define override.
34748         * modules/linkat (Depends-on): Add symlinkat.
34749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34750         * modules/unistd (Makefile.am): Substitute it.
34751         * lib/unistd.in.h (linkat): Declare replacement.
34752         Reported by Pádraig Brady.
34753
34754         quotearg: port test to systems with C.UTF-8 locale
34755         * tests/test-quotearg.c (struct result_strings): Add another
34756         member, differentiating between C.ASCII and C.UTF-8 handling.
34757         (compare_strings): Add parameter.
34758         (main): Adjust all callers.
34759
34760         getopt: avoid clash with FreeBSD _getopt_internal
34761         * lib/getopt.in.h (_getopt_internal): Override the name.
34762         * lib/getopt_int.h (includes): Pick up any overrides.
34763         Reported by Reuben Thomas.
34764
34765         hash: allow C89 compilation
34766         * lib/hash.c (check_tuning): Move declaration before statement.
34767         Reported by Reuben Thomas.
34768
34769 2009-10-05  Karl Berry  <karl@gnu.org>
34770
34771         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34772
34773 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34774             Bruno Haible  <bruno@clisp.org>
34775
34776         * lib/uname.c (uname): Use a table-driven algorithm to compute
34777         Windows NT versions.
34778
34779 2009-10-04  Bruno Haible  <bruno@clisp.org>
34780
34781         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34782         program_invocation_short_name.
34783         * modules/progname (configure.ac): Test for presence of
34784         program_invocation_short_name.
34785         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34786
34787 2009-10-04  Bruno Haible  <bruno@clisp.org>
34788
34789         * lib/progname.c (set_program_name): Fix comment.
34790         Reported by Jim Meyering.
34791
34792 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34793             Bruno Haible  <bruno@clisp.org>
34794
34795         * lib/uname.c: Include <string.h>.
34796         (uname): Do only one call to GetVersionEx in the common case.
34797
34798 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34799             Bruno Haible  <bruno@clisp.org>
34800
34801         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34802         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34803         (uname): Add support for Windows CE and various non-x86 CPU types.
34804
34805 2009-10-03  Bruno Haible  <bruno@clisp.org>
34806
34807         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34808         invocation to tests/configure.ac.
34809         Reported by Ian Beckwith <ianb@erislabs.net>.
34810
34811 2009-10-02  Eric Blake  <ebb9@byu.net>
34812
34813         fchdir: avoid compiler warning
34814         * lib/fchdir.c (canonicalize_file_name)
34815         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34816
34817         test-open: support mingw errno values
34818         * tests/test-open.h (test_open): Relax test.
34819         * tests/test-fopen.h (test_fopen): Likewise.
34820         * tests/test-openat-safer.c (main): Likewise.
34821
34822         open: fix opening directory on mingw
34823         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34824
34825         test-open: on GNU/Hurd, /dev/null is a directory
34826         * tests/test-fopen.h (main): Rename...
34827         (test_fopen): ...to this.  Use a guaranteed non-directory when
34828         confirming open behavior on trailing slash.
34829         * tests/test-openat-safer.c (main): Likewise.
34830         * tests/test-open.h (main): Likewise....
34831         (test_open): ...to this.
34832         * tests/test-fopen.c (main): Adjust caller.
34833         * tests/test-fopen-safer.c (main): Likewise.
34834         * tests/test-open.c (main): Likewise.
34835         * tests/test-fcntl-safer.c (main): Likewise.
34836         Reported by Samuel Thibault.
34837
34838         rename, fchdir: don't ignore chdir failure
34839         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34840         * lib/rename.c (rpl_rename) [W32]: Likewise.
34841         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34842         an empty destination directory if source cannot be renamed,
34843         although there is still possibility for failure.
34844         * doc/posix-functions/rename.texi (rename): Document the race.
34845         Reported by Jim Meyering.
34846
34847         maint: cleanup whitespace in recent commits
34848         * lib/rename.c (rpl_rename): Remove tabs.
34849         * tests/test-link.h (test_link): Likewise.
34850         * lib/fchdir.c (get_name): Likewise.
34851         Reported by Jim Meyering.
34852
34853 2009-10-02  Ben Pfaff  <blp@gnu.org>
34854
34855         relocatable-prog-wrapper: Add missing dependency on
34856         double-slash-root.
34857         * modules/relocatable-prog-wrapper: Add dependency.
34858         Reported by Ian Beckwith <ianb@erislabs.net>.
34859
34860 2009-10-02  Eric Blake  <ebb9@byu.net>
34861
34862         renameat: fix Solaris bugs
34863         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34864         needed fixing.
34865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34866         * modules/stdio (Makefile.am): Substitute it.
34867         * lib/stdio.in.h (renameat): Declare replacement.
34868         * lib/renameat.c (rpl_renameat): Implement fix.
34869
34870         renameat: new module
34871         * modules/renameat: New file.
34872         * lib/renameat.c (renameat): Likewise.
34873         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34875         * modules/stdio (Makefile.am): Substitute them.
34876         * lib/stdio.in.h (renameat): Declare it.
34877         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34878         * doc/posix-functions/renameat.texi (renameat): Likewise.
34879         * modules/renameat-tests: New test.
34880         * tests/test-renameat.c: Likewise.
34881
34882         rename: fix mingw bugs
34883         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34884         directory overwrite bugs.
34885
34886         rename: fix another cygwin 1.5 bug
34887         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34888         checks.
34889         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34890         unnecessary cygwin workarounds.  Also work around bug with moving
34891         full directory onto an empty one.
34892         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34893
34894         rename-dest-slash: merge into rename module
34895         * modules/rename-dest-slash (Status): Mark obsolete.
34896         (Depends-on): Add rename.
34897         (Files): Let rename do it all.
34898         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34899         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34900         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34901         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34902         * lib/rename.c (rpl_rename): Update comments.
34903
34904         rename: fix cygwin 1.5.x bugs
34905         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34906         * lib/rename.c (rpl_rename): Work around them.
34907         * modules/rename (Depends-on): Add same-inode.
34908
34909         rename: fix Solaris 10 bug
34910         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34911         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34912         was the only bug.
34913
34914         rename: fix Solaris 9 bug
34915         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34916         on non-directory.  Avoid calling exit.
34917         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34918         strdup.
34919         * modules/rename-tests (Depends-on): Drop lstat.
34920         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34921         (gl_PREREQ_RENAME): Delete unused macro.
34922
34923         rename-dest-slash: fix NetBSD bug
34924         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34925         links.
34926         * modules/rename-dest-slash (Depends-on): Add same-inode.
34927
34928         rename-tests: new test, exposes several platform bugs
34929         * modules/rename-tests: New file.
34930         * tests/test-rename.h: Likewise.
34931         * tests/test-rename.c: Likewise.
34932         * doc/posix-functions/rename.texi (rename): Improve documentation,
34933         including bugs that will eventually be fixed in gnulib.
34934
34935 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
34936
34937         * lib/uname.c: Include <stdlib.h>
34938         (uname): Assume version info is available.
34939
34940 2009-10-02  Jim Meyering  <meyering@redhat.com>
34941
34942         gnu-web-doc-update: correct --help output
34943         * build-aux/gnu-web-doc-update: Make --help output relevant.
34944
34945         gnu-web-doc-update: add standard options
34946         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
34947
34948         gnu-web-doc-update: New module.
34949         Use this script to automatically update the on-line web documentation
34950         for your GNU project at http://www.gnu.org/software/$pkg/manual/
34951         * modules/gnu-web-doc-update: New file, from coreutils.
34952         * build-aux/gnu-web-doc-update: New script.
34953
34954 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
34955
34956         link: LoadLibrary is not needed.
34957         * lib/link.c: Use GetModuleHandle.
34958
34959 2009-10-01  Eric Blake  <ebb9@byu.net>
34960
34961         getopt: bump serial number
34962         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
34963         change.
34964
34965         tests: tighten link, rmdir, and remove tests
34966         * tests/test-link.h (includes): No need to use <config.h> here.
34967         Clean up if directory hard link was created, otherwise test for
34968         trailing '.'.
34969         * tests/test-linkat.c (main): Simplify.
34970         * tests/test-remove.c (main): Enhance test for trailing '.'.
34971         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34972
34973 2009-10-01  Jim Meyering  <meyering@redhat.com>
34974
34975         maint.mk: requiring "make major" was annoying, for a "minor" release.
34976         What is intended is "stable", to contrast with alpha and beta,
34977         so require "make stable", not "make major".
34978         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
34979         (get_tool_versions): Likewise.
34980         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
34981
34982 2009-09-30  Ben Pfaff  <blp@gnu.org>
34983
34984         Fix broken build of replacement for Windows tmpfile().
34985         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
34986         flags argument added along with the 'mkostemp' module.
34987
34988 2009-09-28  Bruno Haible  <bruno@clisp.org>
34989
34990         Avoid identifier clash with POSIX function 'remove' defined as a macro.
34991         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
34992         to 'remove_elt'.
34993         (gl_list_remove): Update.
34994         * lib/gl_list.c (gl_list_remove): Update.
34995         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
34996         to 'remove_elt'.
34997         (gl_oset_remove): Update.
34998         * lib/gl_list.c (gl_oset_remove): Update.
34999         Reported by Eric Blake.
35000
35001 2009-09-28  Eric Blake  <ebb9@byu.net>
35002
35003         doc: mention yet more cygwin 1.7 status
35004         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35005         cygwin.
35006         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35007         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35008
35009         argp: fix test failure
35010         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35011         that are not upper-case.  Pass correct range to tolower.
35012
35013 2009-09-27  Jim Meyering  <meyering@redhat.com>
35014
35015         test-yesno: work around sparc-dash here-document infelicity
35016         Without this change, the literal \177 byte in a here document
35017         would make dash 0.5.5.1-3 access uninitialized memory.
35018         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35019         Instead, use a marker, "@", and filter through tr to create the desired
35020         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35021
35022 2009-09-27  Bruno Haible  <bruno@clisp.org>
35023
35024         Disable untested support for new flavours of ACLs on AIX.
35025         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35026         progress.
35027         * lib/set-mode-acl.c (qset_acl): Likewise.
35028
35029 2008-12-07  Bruno Haible  <bruno@clisp.org>
35030
35031         Add support for new flavours of ACLs on AIX. (Untested.)
35032         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35033         (file_has_acl): Add support for newer AIX.
35034         * lib/set-mode-acl.c (qset_acl): Likewise.
35035         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35036         Rainer Tammer <tammer@tammer.net>.
35037
35038 2009-09-26  Eric Blake  <ebb9@byu.net>
35039
35040         argp: fix compilation of getopt
35041         * lib/getopt.in.h (includes): Use different guard than glibc.
35042         Reported by Sergey Poznyakoff.
35043
35044         doc: mention more cygwin 1.7 status
35045         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35046         bug.
35047         * doc/posix-functions/execl.texi (execl): Likewise.
35048         * doc/posix-functions/execle.texi (execle): Likewise.
35049         * doc/posix-functions/execlp.texi (execlp): Likewise.
35050         * doc/posix-functions/execv.texi (execv): Likewise.
35051         * doc/posix-functions/execve.texi (execve): Likewise.
35052         * doc/posix-functions/execvp.texi (execvp): Likewise.
35053         * doc/glibc-functions/canonicalize_file_name.texi
35054         (canonicalize_file_name): Cygwin 1.7 now provides this.
35055         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35056         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35057         on AT_SYMLINK_NOFOLLOW.
35058
35059 2009-09-24  Eric Blake  <ebb9@byu.net>
35060
35061         test-linkat: make test more robust
35062         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35063
35064         getopt: fix inclusion guards for cygwin
35065         * modules/getopt-posix (Depends-on): Add include-next.
35066         (Makefile.am): Substitute more items in replacement header.
35067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35068         <getopt.h>.
35069         * lib/getopt.in.h (includes): Use split inclusion guard, and
35070         prefer <getopt.h> over include <unistd.h> when one is present.
35071         (option): Also override name of 'struct option'.
35072
35073         same-inode: revert prior change; it is not yet ready
35074         * NEWS: Undo mention of this change.
35075         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35076         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35077         * lib/cycle-check.c (cycle_check): Likewise.
35078         * lib/same.c (same_name): Likewise.
35079         * lib/at-func2.c (at_func2): Likewise.
35080
35081 2009-09-23  Eric Blake  <ebb9@byu.net>
35082
35083         linkat: new module
35084         * modules/linkat: New file.
35085         * lib/at-func2.c (at_func2): Likewise.
35086         * lib/linkat.c (linkat): Likewise.
35087         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35088         * lib/openat-priv.h (at_func2): Add declaration.
35089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35090         * modules/unistd (Makefile.am): Substitute them.
35091         * lib/unistd.in.h (linkat): Declare it.
35092         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35093         * doc/posix-functions/linkat.texi (linkat): Likewise.
35094         * doc/posix-functions/link.texi (link): Tweak wording.
35095         * tests/test-link.c (main): Move guts...
35096         * tests/test-link.h (test_link): ...into new file.
35097         * modules/linkat-tests: New test.
35098         * tests/test-linkat.c: Likewise.
35099         * modules/link-tests (Files): Ship new file.
35100         (Depends-on): Add stdbool.
35101
35102         dirname: add library-safe mdir_name
35103         * lib/dirname.h (mdir_name): New prototype.
35104         * lib/dirname.c (dir_name): Move guts...
35105         (mdir_name): ...to new function that avoids xalloc_die.
35106
35107         fchdir: another mingw fix
35108         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35109         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35110         on mingw (where it has not yet been ported), and make it optional
35111         elsewhere.
35112         (_gl_register_fd): Use it.
35113
35114         same-inode: make SAME_INODE tri-state, to port to mingw
35115         * NEWS: Mention this change.
35116         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35117         st_ino always being 0.
35118         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35119         * lib/cycle-check.c (cycle_check): Likewise.
35120         * lib/same.c (same_name): Likewise.
35121
35122         lstat: avoid mingw compilation error
35123         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35124         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35125         lstat ourselves.
35126         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35127         was adequate.
35128         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35129         the checks for lstat.
35130         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35131
35132         link: fix test failure on Solaris 9
35133         * lib/link.c (rpl_link): Don't assume link will catch bogus
35134         trailing slash on source.
35135
35136         test-symlinkat: enhance test
35137         * tests/test-readlink.c (main): Move guts...
35138         * tests/test-readlink.h (test_readlink): ...into new file.
35139         * tests/test-symlink.c (main): Move guts...
35140         * tests/test-symlink.h (test_symlink): ...into new file.
35141         * tests/test-symlinkat.c (main): Use new files for further
35142         coverage.
35143         (do_symlink, do_readlink): New helper functions.
35144         * modules/symlink-tests (Files): Ship new file.
35145         (Depends-on): Add stdbool.
35146         * modules/readlink-tests (Files): Ship new file.
35147         (Depends-on): Add stdbool.
35148         * modules/symlinkat-tests (Files): Use new files.
35149
35150 2009-09-23  Eric Blake  <ebb9@byu.net>
35151
35152         readlink: document portability issue with symlink length
35153         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35154         systems have bogus st_size on symlinks, and mention the
35155         areadlink-with-size module.
35156         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35157         * doc/posix-functions/readlink.texi (readlink): Mention the
35158         areadlink module, and ERANGE failure.
35159         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35160         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35161
35162         readlink: fix Solaris 9 bug with trailing slash
35163         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35164         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35165         * doc/posix-functions/readlink.texi (readlink): Document this.
35166         * modules/readlink-tests: New test.
35167         * tests/test-readlink.c: Likewise.
35168
35169         readlink: fix cygwin 1.5.x bug with return type
35170         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35171         * lib/unistd.in.h (readlink): Use ssize_t.
35172         * lib/readlink.c (readlink): Likewise.
35173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35174         * modules/unistd (Makefile.am): Substitute it.
35175         * lib/unistd.in.h (readlink): Declare replacement.
35176         * doc/posix-functions/readlink.texi (readlink): Document this.
35177
35178         symlink: use throughout gnulib
35179         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35180         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35181         symlink is not used.
35182         * modules/symlinkat (Depends-on): Add symlink.
35183         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35184         * modules/canonicalize-tests (Depends-on): Likewise.
35185         * modules/lstat-tests (Depends-on): Likewise.
35186         * modules/openat-tests (Depends-on): Likewise.
35187         * modules/remove-tests (Depends-on): Likewise.
35188         * modules/rmdir-tests (Depends-on): Likewise.
35189         * modules/unlink-tests (Depends-on): Likewise.
35190         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35191         * tests/test-canonicalize.c (symlink): Likewise.
35192         * tests/test-fstatat.c (symlink): Likewise.
35193         * tests/test-lstat.c (symlink): Likewise.
35194         * tests/test-remove.c (symlink): Likewise.
35195         * tests/test-rmdir.c (symlink): Likewise.
35196         * tests/test-unlink.c (symlink): Likewise.
35197         * tests/test-unlinkat.c (symlink): Likewise.
35198
35199         symlink: new module, for Solaris 9 bug
35200         * modules/symlink: New file.
35201         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35202         * lib/symlink.c: Likewise.
35203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35204         * modules/unistd (Makefile.am): Substitute them.
35205         * lib/unistd.in.h (symlink): Declare replacement.
35206         * MODULES.html.sh (File system functions): Mention it.
35207         * doc/posix-functions/symlink.texi (symlink): Likewise.
35208         * modules/symlink-tests: New test.
35209         * tests/test-symlink.c: Likewise.
35210
35211 2009-09-23  Bruno Haible  <bruno@clisp.org>
35212
35213         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35214         when needed.
35215         Test case: gnulib-tool --import --with-tests atexit inttypes.
35216         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35217
35218 2009-09-23  Bruno Haible  <bruno@clisp.org>
35219
35220         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35221         subcommand, not in a subshell.
35222
35223 2009-09-22  Eric Blake  <ebb9@byu.net>
35224
35225         unistd: sort replacement declarations
35226         * lib/unistd.in.h: Sort declarations.
35227
35228         open, openat: minor optimization
35229         * lib/open.c (open): If open succeeded, len is non-zero.
35230         * lib/openat.c (rpl_openat): Likewise.
35231
35232         link-follow: ensure correct result
35233         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35234         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35235         distinguish between possible failures.
35236
35237 2009-09-21  Eric Blake  <ebb9@byu.net>
35238
35239         fts: avoid compiler warning
35240         * lib/fts.c (dirent_inode_sort_may_be_useful)
35241         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35242
35243 2009-09-19  Bruno Haible  <bruno@clisp.org>
35244
35245         * lib/progreloc.c (canonicalize_file_name): New declaration.
35246
35247 2009-09-19  Eric Blake  <ebb9@byu.net>
35248
35249         link: fix quoting
35250         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35251
35252         openat: fix openat bugs on Solaris 9
35253         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35254         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35255         * modules/openat (Depends-on): Add open.
35256         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35257         * modules/fcntl-h (Makefile.am): Substitute it.
35258         * lib/fcntl.in.h (openat): Declare replacement.
35259         * doc/posix-functions/openat.texi (openat): Document this.
35260
35261         openat: move fstatat and unlinkat into correct files
35262         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35263         compiled.
35264         * lib/openat.c (fstatat, unlinkat): Move...
35265         * lib/fstatat.c (fstatat): ...into correct files.
35266         * lib/unlinkat.c (unlinkat): Likewise.
35267
35268         openat: fix unlinkat bugs on Solaris 9
35269         * lib/unlinkat.c (unlinkat): New file.
35270         * modules/openat (Depends-on): Add unlink.
35271         (Files): Distribute it.
35272         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35273         trailing slash behavior is broken.
35274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35275         * modules/unistd (Makefile.am): Substitute it.
35276         * lib/unistd.in.h (unlinkat): Declare replacement.
35277         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35278
35279         openat: fix fstatat bugs on Solaris 9
35280         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35281         stat.
35282         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35283
35284         test-unlinkat: enhance test, to expose Solaris 9 bug
35285         * tests/test-unlink.c (main): Factor guts...
35286         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35287         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35288         * tests/test-rmdir.c (main): Adjust caller.
35289         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35290         (unlinker): New helper function.
35291         (rmdirat): Enhance check.
35292         * modules/rmdir-tests (Depends-on): Add stdbool.
35293         * modules/unlink-tests (Depends-on): Likewise.
35294         (Files): Add test-unlink.h.
35295         * modules/openat-tests (Files): Likewise.
35296         (Depends-on): Add unlinkdir.
35297
35298         test-fstatat: new test, to expose Solaris 9 bugs
35299         * tests/test-stat.c (main): Factor guts...
35300         * tests/test-stat.h (test_stat_func): ...into new file.
35301         * tests/test-lstat.c (main): Factor guts...
35302         * tests/test-lstat.h (test_lstat_func): ...into new file.
35303         * tests/test-fstatat.c: New file.
35304         * modules/stat-tests (Files): Add test-stat.h.
35305         * modules/lstat-tests (Files): Add test-lstat.h.
35306         (Depends-on): Add stdbool.
35307         * modules/openat-tests (Depends-on): Add pathmax.
35308         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35309         (Makefile.am): Run new test.
35310
35311         remove: new module, for mingw and Solaris 9 bugs
35312         * modules/remove: New file.
35313         * lib/remove.c: Likewise.
35314         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35316         * modules/stdio (Makefile.am): Use them.
35317         * lib/stdio.in.h (remove): Declare replacement.
35318         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35319         * doc/posix-functions/remove.texi (remove): Likewise.
35320         * modules/remove-tests: New test.
35321         * tests/test-remove.c: Likewise.
35322
35323         unlink: new module, for Solaris 9 bug
35324         * modules/unlink: New file.
35325         * lib/unlink.c: Likewise.
35326         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35328         * modules/unistd (Makefile.am): Use them.
35329         * lib/unistd.in.h (stat): Declare replacement.
35330         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35331         * doc/posix-functions/unlink.texi (unlink): Likewise.
35332         * modules/unlink-tests: New test.
35333         * tests/test-unlink.c: Likewise.
35334
35335         lstat: fix Solaris 9 bug
35336         * lib/lstat.c (lstat): Also check for trailing slash on
35337         non-symlink, non-directories.  Use stat module to simplify logic.
35338         * doc/posix-functions/lstat.texi (lstat): Document it.
35339         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35340         (configure.ac): Check for symlink.
35341         * tests/test-lstat.c (main): Add more tests.
35342
35343         stat: add as dependency to other modules
35344         * modules/chown (Depends-on): Add stat.
35345         * modules/euidaccess (Depends-on): Likewise.
35346         * modules/fchdir (Depends-on): Likewise.
35347         * modules/isdir (Depends-on): Likewise.
35348         * modules/link (Depends-on): Likewise.
35349         * modules/lstat (Depends-on): Likewise.
35350         * modules/mkdir-p (Depends-on): Likewise.
35351         * modules/modechange (Depends-on): Likewise.
35352         * modules/open (Depends-on): Likewise.
35353         * modules/readlink (Depends-on): Likewise.
35354         * modules/same (Depends-on): Likewise.
35355
35356         stat: fix Solaris 9 bug
35357         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35358         slash.
35359         * lib/stat.c (rpl_stat): Work around it.
35360         * doc/posix-functions/stat.texi (stat): Update documentation.
35361
35362         stat: new module, for mingw bug
35363         * modules/stat: New file.
35364         * lib/stat.c: Likewise.
35365         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35366         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35367         * modules/sys_stat (Makefile.am): Use them.
35368         * lib/sys_stat.in.h (stat): Declare replacement.
35369         * lib/openat.c (fstatat): Deal with lstat and stat being function
35370         macros.
35371         * modules/openat (Depends-on): Add inline.
35372         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35373         * doc/posix-functions/stat.texi (stat): Likewise.
35374         * modules/stat-tests: New test.
35375         * tests/test-stat.c: Likewise.
35376
35377 2009-09-19  Jim Meyering  <meyering@redhat.com>
35378
35379         syntax-check: detect unnecessary inclusion of canonicalize.h
35380         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35381
35382 2009-09-19  Eric Blake  <ebb9@byu.net>
35383
35384         canonicalize-lgpl: adjust clients to use correct header
35385         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35386         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35387         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35388         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35389         * lib/progreloc.c (includes): Likewise.
35390
35391 2009-09-19  Jim Meyering  <meyering@redhat.com>
35392
35393         test-posixtm.c: correct a comment
35394         * tests/test-posixtm.c: Correct first-line comment.
35395         Spotted by Eric Blake.
35396
35397 2009-09-16  Jim Meyering  <meyering@redhat.com>
35398
35399         posixtm-tests: make T const-correct; add a test case
35400         * tests/test-posixtm.c (T): Declare const.
35401         Add a test for -(2^31+1).
35402         Remove useless can-succeed-only-in-2002 test.
35403
35404         posixtm-tests: adjust the sole failing test
35405         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35406         expected output matches what mktime now produces.  Cross-checked via
35407         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35408
35409         posixtm: move #ifdef'd tests into a new module
35410         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35411         * tests/test-posixtm.c: ... this new file.
35412         * modules/posixtm-tests: New module.
35413
35414 2009-09-19  Eric Blake  <ebb9@byu.net>
35415
35416         openat: simplify use of at-func.c
35417         * lib/at-func.c (includes): Include prerequisites here, to
35418         simplify requirements on client files.
35419         * lib/openat-priv.h: Add double-inclusion guard.
35420         * lib/faccessat.c (includes): Simplify.
35421         * lib/fchmodat.c (includes): Likewise.
35422         * lib/fchownat.c (includes): Likewise.
35423         * lib/mkdirat.c (includes): Likewise.
35424         * lib/mkfifoat.c (includes): Likewise.
35425         * lib/symlinkat.c (includes): Likewise.
35426
35427         openat: allow return of fd 0
35428         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35429         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35430         unistd-safer.
35431         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35432         <fcntl.h>; this module does not leak fds.
35433         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35434         must be allowed to return 0, leaving openat_safer to add the
35435         safety.
35436         (openat_permissive): Avoid writing to just-opened fd 2 if
35437         restoring the current directory fails.
35438         * lib/openat-die.c (openat_restore_fail): Add comment.
35439         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35440         (save_cwd): Guarantee safe fd, but without use of open_safer.
35441         * tests/test-openat.c: New test.
35442         * modules/openat-tests (Files, Makefile.am): Distribute and build
35443         new file.
35444
35445         relocatable-prog-wrapper: fix build
35446         * modules/relocatable-prog-wrapper (Files): Update name of
35447         canonicalize m4 file, broken on 2009-09-17.
35448         Reported by emad hajjar <aleppos@hotmail.com>.
35449
35450 2009-09-19  Bruno Haible  <bruno@clisp.org>
35451
35452         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35453         * lib/safe-alloc.c: Likewise.
35454         Reported by Ian Beckwith <ianb@erislabs.net>.
35455
35456 2009-09-18  Bruno Haible  <bruno@clisp.org>
35457
35458         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35459         Reported by <erobles@sensacd.com.mx>.
35460
35461 2009-09-17  Eric Blake  <ebb9@byu.net>
35462
35463         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35464         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35465         slashes when checking if last component is missing.
35466         * tests/test-canonicalize.c (main): Test this.
35467
35468         canonicalize, canonicalize-lgpl: honor // if distinct from /
35469         * modules/canonicalize (Files): Add double-slash-root.m4.
35470         * modules/canonicalize-lgpl (Files): Likewise.
35471         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35472         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35473         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35474         fallback definition.
35475         (canonicalize_filename_mode): Use it to protect //.
35476         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35477         (__realpath): Likewise.
35478         * tests/test-canonicalize.c (main): Test this.
35479         * tests/test-canonicalize-lgpl.c (main): Likewise.
35480         * modules/canonicalize-tests (Depends-on): Add same-inode.
35481         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35482
35483         canonicalize-lgpl: fix glibc bug with trailing slash
35484         * m4/canonicalize-lgpl.m4: Move contents...
35485         * m4/canonicalize.m4: ...here.
35486         (gl_CANONICALIZE_LGPL): Factor realpath check...
35487         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35488         glibc 2.3.5 bug, fixed 2005-04-27.
35489         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35490         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35491         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35492         * modules/canonicalize-lgpl (Files): Manage file rename.
35493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35494         * modules/stdlib (Makefile.am): Substitute witness.
35495         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35496         is needed.
35497         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35498         replacement is required.
35499         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35500         * doc/glibc-functions/canonicalize_file_name.texi
35501         (canonicalize_file_name): Document this.
35502         * doc/posix-functions/realpath.texi (realpath): Likewise.
35503
35504         canonicalize-lgpl: reject non-directory with trailing slash
35505         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35506         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35507         catches failures in glibc 2.3.5.
35508         * tests/test-canonicalize.c (main): Likewise.
35509
35510         canonicalize-lgpl: use native realpath if it works
35511         * lib/canonicalize-lgpl.c (realpath): Guard with
35512         FUNC_REALPATH_WORKS.
35513         * lib/stdlib.in.h (realpath): Make declaration optional based on
35514         HAVE_REALPATH.
35515         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35516         native realpath works.
35517         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35518         * modules/stdlib (Makefile.am): Substitute witness.
35519
35520         canonicalize, canonicalize-lgpl: use <stdlib.h>
35521         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35522         (Include): Mention <stdlib.h>.
35523         (configure.ac): Mention functions we provide.
35524         * modules/canonicalize (configure.ac): Likewise.
35525         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35526         realpath if canonicalize_file_name is missing.
35527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35528         * modules/stdlib (Makefile.am): Substitute witnesses.
35529         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35530         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35531         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35532         * NEWS: Document this.
35533         * doc/glibc-functions/canonicalize_file_name.texi
35534         (canonicalize_file_name): Likewise.
35535         * doc/posix-functions/realpath.texi (realpath): Likewise.
35536         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35537
35538         test-canonicalize: consolidate into single C program
35539         * tests/test-canonicalize.sh: Delete; move setup into...
35540         * tests/test-canonicalize.c (main): ...the program, making it
35541         easier to run in debugger.  Add some tests.
35542         * modules/canonicalize-tests (Files): Remove unused file.
35543         (Depends-on): Add progname.
35544         (configure.ac, Makefile.am): Simplify.
35545
35546         test-canonicalize-lgpl: consolidate into single C program
35547         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35548         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35549         easier to run in debugger.  Add some tests.
35550         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35551         (configure.ac, Makefile.am): Simplify.
35552
35553         canonicalize: avoid resolvepath
35554         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35555         unnecessary checks.
35556         * lib/canonicalize.c (includes): Simplify.
35557         (canonicalize_file_name): Drop resolvepath implementation.
35558         * modules/canonicalize (Depends-on): Drop filenamecat.
35559
35560         canonicalize: don't lose errno
35561         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35562         over calls to free.
35563
35564         canonicalize: simplify errno handling
35565         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35566         assignment.
35567
35568         canonicalize, canonicalize-lgpl: update module dependencies
35569         * modules/canonicalize (Depends-on): Add extensions, lstat,
35570         pathmax, stdlib.
35571         (Files): Drop pathmax.h.
35572         (configure.ac): Adjust macro name.
35573         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35574         lstat, stdlib, sys_stat.
35575         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35576         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35577         extensions.
35578         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35579         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35580         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35581         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35582         declaration, if available.
35583         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35584         we can rely on the readlink module.
35585         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35586         (includes): Use <unistd.h> unconditionally.
35587
35588 2009-09-17  Eric Blake  <ebb9@byu.net>
35589
35590         maint: make Include sections of modules consistent
35591         * modules/alloca: Use only header name; no need to list #include.
35592         * modules/alloca-opt: Likewise.
35593         * modules/arpa_inet: Likewise.
35594         * modules/canon-host: Likewise.
35595         * modules/configmake: Likewise.
35596         * modules/dirent: Likewise.
35597         * modules/eealloc: Likewise.
35598         * modules/environ: Likewise.
35599         * modules/fchdir: Likewise.
35600         * modules/fcntl: Likewise.
35601         * modules/fcntl-h: Likewise.
35602         * modules/gethrxtime: Likewise.
35603         * modules/gettime: Likewise.
35604         * modules/ignore-value: Likewise.
35605         * modules/inet_ntop: Likewise.
35606         * modules/inet_pton: Likewise.
35607         * modules/inttypes: Likewise.
35608         * modules/isnand-nolibm: Likewise.
35609         * modules/isnanf-nolibm: Likewise.
35610         * modules/mbchar: Likewise.
35611         * modules/mbfile: Likewise.
35612         * modules/mbiter: Likewise.
35613         * modules/mbuiter: Likewise.
35614         * modules/netdb: Likewise.
35615         * modules/netinet_in: Likewise.
35616         * modules/nproc: Likewise.
35617         * modules/pagealign_alloc: Likewise.
35618         * modules/poll: Likewise.
35619         * modules/printf-frexp: Likewise.
35620         * modules/pthread: Likewise.
35621         * modules/putenv: Likewise.
35622         * modules/random_r: Likewise.
35623         * modules/relocatable-prog: Likewise.
35624         * modules/search: Likewise.
35625         * modules/select: Likewise.
35626         * modules/selinux-h: Likewise.
35627         * modules/settime: Likewise.
35628         * modules/signal: Likewise.
35629         * modules/size_max: Likewise.
35630         * modules/socklen: Likewise.
35631         * modules/ssize_t: Likewise.
35632         * modules/stdarg: Likewise.
35633         * modules/stdbool: Likewise.
35634         * modules/stddef: Likewise.
35635         * modules/stdint: Likewise.
35636         * modules/stdio: Likewise.
35637         * modules/stdlib: Likewise.
35638         * modules/string: Likewise.
35639         * modules/strings: Likewise.
35640         * modules/sys_file: Likewise.
35641         * modules/sys_ioctl: Likewise.
35642         * modules/sys_select: Likewise.
35643         * modules/sys_socket: Likewise.
35644         * modules/sys_stat: Likewise.
35645         * modules/sys_time: Likewise.
35646         * modules/sys_times: Likewise.
35647         * modules/sys_utsname: Likewise.
35648         * modules/sys_wait: Likewise.
35649         * modules/sysexits: Likewise.
35650         * modules/time: Likewise.
35651         * modules/times: Likewise.
35652         * modules/tmpfile: Likewise.
35653         * modules/trim: Likewise.
35654         * modules/unistd: Likewise.
35655         * modules/wchar: Likewise.
35656         * modules/wctype: Likewise.
35657
35658 2009-09-17  Bruno Haible  <bruno@clisp.org>
35659
35660         Make getdate.y compile on QNX and NetBSD 5 / i386.
35661         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35662         TIME_T_FITS_IN_LONG_INT.
35663         * lib/getdate.y (long_time_t): New type.
35664         (relative_time): Change type of 'seconds' field to long_time_t.
35665         (get_date): Update types of local variables. Check against overflow
35666         during conversion from long_time_t to time_t.
35667         Reported by Matt Kraai <kraai@ftbfs.org>
35668         and Hasso Tepper <hasso@netbsd.org>.
35669
35670 2009-09-17  Bruno Haible  <bruno@clisp.org>
35671
35672         * modules/COPYING: Update copyright years.
35673         * modules/README: Likeiwse.
35674         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35675         Reported by Ian Beckwith <ianb@erislabs.net>.
35676
35677 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35678
35679         * users.txt: Update references for gnuit package.
35680
35681 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35682
35683         * m4/getdelim.m4: Fix typo in copyright line.
35684
35685 2009-09-17  Bruno Haible  <bruno@clisp.org>
35686
35687         * lib/atoll.c: Use the standard header with GPL copyright.
35688         * lib/argz.in.h: Likewise.
35689         * lib/glob.c: Likewise.
35690         * lib/glob-libc.h: Likewise.
35691         * lib/random_r.c: Likewise.
35692         * lib/siglist.h: Likewise.
35693         * lib/strsignal.c: Likewise.
35694         Reported by Ian Beckwith <ianb@erislabs.net>.
35695
35696 2009-09-17  Eric Blake  <ebb9@byu.net>
35697
35698         rmdir: ensure correct dependency order
35699         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35700
35701 2009-09-17  Bruno Haible  <bruno@clisp.org>
35702
35703         Disable assertion that fails on NetBSD 5 / i386.
35704         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35705         Reported by Sam Steingold <sds@gnu.org>
35706         and Hasso Tepper <hasso@netbsd.org>.
35707
35708 2009-09-16  Eric Blake  <ebb9@byu.net>
35709
35710         unlinkdir: port to mingw
35711         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35712         on which no one can unlink a directory.
35713
35714         stdlib: sort witness names
35715         * modules/stdlib (Makefile.am): Sort replacements.
35716         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35717         * lib/stdlib.in.h: Likewise.
35718
35719         parse-duration-tests: avoid link failure
35720         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35721         LIBINTL.
35722         Reported by Tom G. Christensen.
35723
35724         openat-tests: ensure unlinkat behaves like rmdir
35725         * tests/test-rmdir.c (main): Factor guts...
35726         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35727         * modules/rmdir-tests (Files): Ship new file.
35728         * modules/openat-tests: New test.
35729         * tests/test-unlinkat.c: Likewise.
35730
35731         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35732         * modules/rmdir-errno (Status, Notice): Now obsolete.
35733
35734         rmdir: work around cygwin 1.5.x and mingw bugs
35735         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35736         * lib/rmdir.c (rmdir): Work around it.
35737         * modules/rmdir (Status, Notice): No longer obsolete.
35738         (Files): Add dos.m4.
35739         (Depends-on): Add unistd.
35740         (configure.ac): Set witnesses.
35741         (License): Relax to LGPLv2+.
35742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35743         * modules/unistd (Makefile.am): Substitute witnesses.
35744         * lib/unistd.in.h (rmdir): Declare replacement.
35745         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35746         * modules/rmdir-tests: New tests.
35747         * tests/test-rmdir.c: Likewise.
35748
35749 2009-09-15  Eric Blake  <ebb9@byu.net>
35750
35751         fchdir: improve use of replacement functions
35752         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35753         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35754         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35755         REPLACE_CLOSEDIR.
35756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35757         * modules/sys_stat (Makefile.am): Substitute correct witness.
35758         * modules/dirent (Makefile.am): Likewise.
35759         * modules/unistd (Makefile.am): Likewise.
35760         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35761         * lib/unistd.in.h (dup): Likewise.
35762         * lib/sys_stat.in.h (fstat): Likewise.
35763
35764         maint: ignore gnulib-tool temp files
35765         * .gitignore: Ignore files created during gnulib-tool --test.
35766
35767 2009-09-13  Jim Meyering  <meyering@redhat.com>
35768
35769         posixtm: don't reject a time that specify "60" as the number of seconds
35770         * lib/posixtm.c (posixtime): The code to reject invalid dates
35771         would also reject a time specified with the .60 suffix.
35772         But POSIX allows that, in order to accommodate leap seconds.
35773         So don't reject it.
35774         (main): Adjust tests accordingly.
35775         * modules/posixtm (Depends-on): Add stpcpy.
35776
35777 2009-09-11  Jim Meyering  <meyering@redhat.com>
35778
35779         announce-gen: include [$release_type] in emitted Subject:
35780         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35781         e.g., [stable] in the emitted Subject: line.
35782
35783 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35784
35785         Remove obsolete macros from several modules.
35786         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35787         obsolete Autoconf macros with their modern counterparts.
35788         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35789         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35790         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35791         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35792         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35793         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35794         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35795         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35796         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35797         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35798         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35799         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35800         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35801         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35802         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35803         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35804         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35805         * m4/time_r.m4 (gl_TIME_R): Likewise.
35806         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35807         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35808         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35809
35810         Fix copyright header in build-aux scripts.
35811         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35812         recommendation.
35813         * build-aux/ncftpput-ftp: Likewise.
35814         * build-aux/update-copyright: Likewise.
35815
35816 2009-09-09  Eric Blake  <ebb9@byu.net>
35817
35818         test-link: allow Linux choice of errno
35819         * tests/test-link.c (main): Relax test for alternate error.
35820
35821         strndup: fix improper m4 caching
35822         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35823         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35824         (gl_PREREQ_STRNDUP): Delete.
35825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35826         * modules/string (Makefile.am): Substitute it.
35827         * lib/string.in.h (strndup): Modernize prototype.
35828
35829         getcwd: port to mingw
35830         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35831         different from the POSIX assumptions made throughout the getcwd
35832         module; fortunately, the mingw getcwd does not need replacement.
35833         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35834         * modules/getcwd-tests: New test.
35835         * tests/test-getcwd.c: Likewise.
35836
35837         link: fix platform bugs
35838         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35839         * lib/link.c (link): Work around them.  Fix related mingw bug.
35840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35841         * modules/unistd (Makefile.am): Substitute it.
35842         * lib/unistd.in.h (link): Declare replacement.
35843         * doc/posix-functions/link.texi (link): Document this.
35844         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35845
35846         test-link: consolidate into single C program, test more cases
35847         * tests/test-link.sh: Delete.
35848         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35849         at least Cygwin and Solaris.
35850         * modules/link-tests (Files): Remove unused file.
35851         (Depends-on): Add errno, sys_stat.
35852         (Makefile.am): Simplify.
35853
35854 2009-09-08  Bruno Haible  <bruno@clisp.org>
35855
35856         Work around towlower, towupper bug on mingw.
35857         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35858         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35859         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35860         * doc/posix-functions/towupper.texi: Likewise.
35861         Reported by Eric Blake.
35862
35863 2009-09-08  Jim Meyering  <meyering@redhat.com>
35864
35865         build: don't try to run autoheader if we don't use it
35866         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35867         is not used in configure.ac.
35868
35869 2009-09-08  Eric Blake  <ebb9@byu.net>
35870
35871         euidaccess: fix compilation error
35872         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35873
35874         rawmemchr: relax license
35875         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35876         okay.
35877         Reported by Jim Meyering.
35878
35879         mkfifoat: new module
35880         * modules/mkfifoat: New file.
35881         * lib/mkfifoat.c: Likewise.
35882         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35884         * modules/sys_stat (Makefile.am): Use them.
35885         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35886         * MODULES.html.sh (File system functions): Mention module.
35887         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35888         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35889         * modules/mkfifoat-tests: New test.
35890         * tests/test-mkfifoat.c: Likewise.
35891
35892         strchrnul: relax license
35893         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35894         okay.
35895         Reported by Jim Meyering.
35896
35897 2009-09-08  Eric Blake  <ebb9@byu.net>
35898
35899         fstatat: fix compilation on Solaris
35900         * lib/fstatat.c (includes): Add fcntl.h.
35901         Reported by Pádraig Brady.
35902
35903 2009-09-07  Eric Blake  <ebb9@byu.net>
35904
35905         rename: modernize replacement
35906         * modules/rename (Depends-on): Add stdio.
35907         (configure.ac): Declare witness.
35908         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35909         stdio take care of replacement.
35910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35911         * modules/stdio (Makefile.am): Substitute them.
35912         * lib/stdio.in.h (rename): Declare replacement.
35913         * lib/rename.c (includes): Allow cross-compilation to non-windows
35914         machines.
35915         * doc/posix-functions/rename.texi (rename): Improve
35916         documentation.
35917
35918         stdio: sort witness names
35919         * modules/stdio (Makefile.am): Sort replacements.
35920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35921         * lib/stdio.in.h: Likewise.
35922
35923         getcwd: minor cleanups
35924         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35925         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35926
35927         openat: provide more convenience names
35928         * modules/faccessat (configure.ac): Add C witness.
35929         * lib/unistd.in.h (readlinkat): Fix typo.
35930         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
35931         convenience wrappers.
35932         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
35933         wrappers in syntax checks.
35934
35935 2009-09-06  Eric Blake  <ebb9@byu.net>
35936
35937         doc: fix comments in recent patches
35938         * lib/faccessat.c: Mention correct function.
35939         * lib/fchmodat.c: Likewise.
35940         * lib/fchownat.c: Likewise.
35941         * lib/symlinkat.c: Likewise.
35942         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
35943         constants.
35944
35945         faccessat, symlinkat: continue cleanup of previous patch
35946         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
35947         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
35948         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
35949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
35950         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
35951         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
35952         set.
35953
35954 2009-09-06  Bruno Haible  <bruno@clisp.org>
35955
35956         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
35957         (fstatat): Declare if GNULIB_FSTATAT is set.
35958         (mkdirat): Declare if GNULIB_MKDIRAT is set.
35959         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
35960         (unlinkat): Declare if GNULIB_UNLINKAT is set.
35961         * modules/fcntl-h (Files): Remove m4/openat.m4.
35962         * modules/sys_stat (Files): Remove m4/openat.m4.
35963         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
35964         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
35965         * modules/unistd (Files): Remove m4/openat.m4.
35966         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
35967         GNULIB_OPENAT.
35968         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
35969         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
35970         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
35971         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
35972         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
35973         gl_OPENAT_DEFAULTS.
35974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
35975         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
35976         Don't require gl_OPENAT_DEFAULTS.
35977         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
35978         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
35979         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
35980         (gl_OPENAT_DEFAULTS): Remove macro.
35981
35982 2009-09-06  Bruno Haible  <bruno@clisp.org>
35983
35984         * modules/openat (configure.ac): Remove unneeded witness.
35985
35986 2009-09-06  Bruno Haible  <bruno@clisp.org>
35987
35988         Set errno to ENOSYS when a function is entirely unsupported.
35989         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
35990         EOPNOTSUPP.
35991         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
35992         * modules/chown (Depends-on): Remove errno.
35993
35994 2009-09-06  Bruno Haible  <bruno@clisp.org>
35995
35996         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
35997
35998 2009-09-06  Bruno Haible  <bruno@clisp.org>
35999
36000         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36001
36002 2009-09-06  Ben Pfaff  <blp@gnu.org>
36003             Bruno Haible  <bruno@clisp.org>
36004
36005         Work around a glibc bug in strtok_r.
36006         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36007         Undefine if UNDEFINE_STRTOK_R is set.
36008         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36010         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36011         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36012         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36013         UNDEFINE_STRTOK_R.
36014         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36015
36016 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36017
36018         exclude: minor fix
36019         * lib/exclude.c: Include wctype.h
36020
36021 2009-09-06  Akim Demaille  <demaille@gostai.com>
36022
36023         bootstrap: improve error message
36024         * build-aux/bootstrap (find_tool): Upon failure, report the list
36025         of candidates.
36026         Honor the initial value of the envvar.
36027
36028 2009-09-05  Eric Blake  <ebb9@byu.net>
36029
36030         symlinkat: new module
36031         * modules/symlinkat: New file.
36032         * lib/symlinkat.c: Likewise.
36033         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36035         * modules/unistd (Makefile.am): Use them.
36036         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36037         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36038         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36039         * MODULES.html.sh (File system functions): Mention module.
36040         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36041         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36042         * modules/symlinkat-tests: New test.
36043         * tests/test-symlinkat.c: Likewise.
36044
36045         test-openat-safer: add more checks
36046         * tests/test-openat-safer.c (main): Check more code paths.
36047
36048 2009-09-05  Jim Meyering  <meyering@redhat.com>
36049
36050         syntax-check: detect unnecessary inclusion of openat.h
36051         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36052
36053 2009-09-05  Bruno Haible  <bruno@clisp.org>
36054
36055         Support towlower, towupper.
36056         * doc/posix-functions/towlower.texi: Mention module wctype.
36057         * doc/posix-functions/towupper.texi: Likewise.
36058         * lib/wctype.in.h (towlower, towupper): New functions.
36059         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36060         (ASSERT): New macro.
36061         (e): New variable.
36062         (main): Test also towlower, towupper. Test WEOF argument.
36063         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36064
36065 2009-09-05  Bruno Haible  <bruno@clisp.org>
36066
36067         Fix conversion behaviour when the input is invalid.
36068         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36069         mark occurring in first pass of indirect conversion.
36070         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36071         input.
36072         Found by clang's static analyzer.
36073
36074 2009-09-05  Bruno Haible  <bruno@clisp.org>
36075
36076         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36077         where direct conversion is possible.
36078
36079 2009-09-04  Eric Blake  <ebb9@byu.net>
36080
36081         openat: fail with ENOENT on empty name
36082         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36083         buffer.
36084
36085         link-follow: fix logic bug in prior patch
36086         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36087         reversed sense of yes and no in prior patch.  Avoid confusing
36088         compilation failure with desired semantics.
36089
36090         link-follow: accomodate mingw and cross-compilation
36091         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36092         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36093         cross-compilation results to -1, to make linkat easier to
36094         implement when cross-compiling.  Trivially support mingw.
36095         * modules/link-follow (configure.ac): Call new name.
36096         * NEWS: Mention this.
36097
36098 2009-09-03  Eric Blake  <ebb9@byu.net>
36099
36100         faccessat: compile replacement
36101         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36102         needed.
36103
36104         fts: fix compilation error
36105         * lib/fts.c (includes): Re-add "openat.h", for
36106         openat_needs_fchdir.
36107
36108         faccessat: new module
36109         * modules/faccessat: New file.
36110         * lib/faccessat.c: Likewise.
36111         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36113         * modules/unistd (Makefile.am): Use it.
36114         * lib/unistd.in.h (faccessat): Declare it.
36115         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36116         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36117         * MODULES.html.sh (File system functions): Mention it.
36118         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36119         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36120
36121         euidaccess: prefer POSIX over non-standard implementation
36122         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36123         * lib/euidaccess.c (euidaccess): Use it if available.
36124
36125         openat: make template easier to use
36126         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36127         AT_FUNC_F2 to be undefined.
36128         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36129         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36130         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36131         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36132         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36133         Likewise.
36134         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36135         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36136         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36137         Likewise.
36138
36139         openat: declare in POSIX headers
36140         * NEWS: Mention this.
36141         * modules/openat (configure.ac): Declare witnesses.
36142         (Depends-on): Add fcntl-h, sys_stat, unistd.
36143         (Include): Mention correct headers.
36144         * modules/fcntl-h (Depends-on): Add link-warning.
36145         (Files): Add openat.m4.
36146         (Makefile.am): Substitute witnesses.
36147         * modules/sys_stat (Files, Makefile.am): Likewise.
36148         * modules/unistd (Files, Makefile.am): Likewise.
36149         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36150         (gl_OPENAT_DEFAULTS): New macro.
36151         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36153         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36154         (SYS_STAT_H): Remove unused variable.
36155         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36156         * lib/fcntl--.h (includes): Remove unneeded header.
36157         * lib/openat-safer.c (includes): Likewise.
36158         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36159         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36160         appropriate headers.
36161         (__OPENAT_PREFIX): Delete.
36162         * lib/fcntl.in.h (openat): Provide declaration.
36163         (AT_FDCWD): Fix Solaris bug.
36164         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36165         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36166         * lib/fchmodat.c (includes):  Adjust to find declaration.
36167         * lib/fchownat.c (includes): Likewise.
36168         * lib/mkdirat.c (includes): Likewise.
36169         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36170         still visible.
36171
36172 2009-09-02  Eric Blake  <ebb9@byu.net>
36173
36174         errno: use consistently
36175         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36176         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36177         * lib/canonicalize.c (ELOOP): Likewise.
36178         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36179         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36180         * lib/lchown.c (EOPNOTSUPP): Likewise.
36181         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36182         * lib/savewd.c (ESTALE): Likewise.
36183         * lib/settime.c (ENOSYS): Likewise.
36184         * lib/utimens.c (ENOSYS): Likewise.
36185         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36186         * lib/chdir-safer.c (ELOOP): Likewise.
36187         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36188         * modules/c-stack (Depends-on): Add errno.
36189         * modules/canonicalize (Depends-on): Likewise.
36190         * modules/chdir-safer (Depends-on): Likewise.
36191         * modules/fdopendir (Depends-on): Likewise.
36192         * modules/inet_ntop (Depends-on): Likewise.
36193         * modules/inet_pton (Depends-on): Likewise.
36194         * modules/lchown (Depends-on): Likewise.
36195         * modules/openat (Depends-on): Likewise.
36196         * modules/savewd (Depends-on): Likewise.
36197         * modules/settime (Depends-on): Likewise.
36198         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36199
36200         fts: avoid leaking fds
36201         * modules/fts (Depends-on): Add cloexec.
36202         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36203         flag.
36204
36205         fts: make directory fds more robust
36206         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36207         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36208
36209         backupfile, chdir-long, fts, savedir: make safer
36210         * lib/backupfile.c (includes): Use "dirent--.h", since
36211         numbered_backup can write to stderr during readdir.
36212         * lib/savedir.c (includes): Likewise.
36213         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36214         emulation can write to stderr on failure.
36215         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36216         * lib/getcwd.c: Document why opendir_safer is unused.
36217         * lib/glob.c: Likewise.
36218         * lib/scandir.c: Likewise.
36219         * lib/openat-proc.c: Likewise, for open_safer.
36220         * modules/backupfile (Depends-on): Add dirent-safer.
36221         * modules/savedir (Depends-on): Likewise.
36222         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36223         * modules/chdir-long (Depends-on): Add openat-safer.
36224
36225         openat-safer: new module
36226         * modules/openat-safer: New file.
36227         * lib/openat-safer.c: Likewise.
36228         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36229         * lib/fcntl-safer.h (openat_safer): Declare.
36230         * lib/fcntl--.h (openat): Override.
36231         * MODULES.html.sh (File descriptor based I/O): Mention it.
36232         * lib/openat.h: Add double-inclusion guards.
36233         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36234         "fcntl--.h", so we can implement openat.
36235         * modules/openat-safer-tests: New test.
36236         * tests/test-openat-safer.c: New file.
36237
36238         dirent-safer: new module
36239         * modules/dirent-safer: New file.
36240         * lib/dirent--.h: Likewise.
36241         * lib/dirent-safer.h: Likewise.
36242         * lib/opendir-safer.c: Likewise.
36243         * m4/dirent-safer.m4: Likewise.
36244         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36245         * modules/dirent-safer-tests: New test.
36246         * tests/test-dirent-safer.c: New file.
36247         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36248
36249         fdopendir: optimize on mingw
36250         * lib/unistd.in.h (_gl_directory_name): New prototype.
36251         * lib/fchdir.c (_gl_directory_name): Implement it.
36252         (fchdir): Use it to simplify implementation.
36253         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36254         fchdir, when available, to avoid calling [f]chdir().
36255
36256         fdopendir: split into its own module
36257         * lib/openat.c (fdopendir): Move...
36258         * lib/fdopendir.c: ...into new file.
36259         * modules/fdopendir: New module.
36260         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36261         * modules/openat (Depends-on): Add fdopendir.
36262         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36263         fdopendir here.
36264         * modules/savedir (Depends-on): Only need fdopendir, not full
36265         openat.
36266         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36267         * lib/openat.h (fdopendir): Drop prototype.
36268         * lib/dirent.in.h (fdopendir): Provide prototype.
36269         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36270         * modules/dirent (Makefile.am): Substitute them.
36271         * MODULES.html.sh (File system functions): Mention it.
36272         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36273         * modules/fdopendir-tests: New file.
36274         * tests/test-fdopendir.c: Likewise.
36275
36276         fchdir: use more consistent macro convention
36277         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36278         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36279         REPLACE_FCHDIR, rather than relying on config.h macros.
36280         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36281         inside a single make-time REPLACE_FCHDIR block, rather than using
36282         the config.h FCHDIR_REPLACEMENT.
36283         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36284         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36285         Manage fstat replacement.
36286         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36287         REPLACE_FCHDIR.
36288         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36289         (Makefile.am): Substitute REPLACE_FCHDIR.
36290         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36291         FCHDIR_REPLACEMENT.
36292         * lib/dup-safer.c (dup_safer): Likewise.
36293         * lib/dup2.c (rpl_dup2): Likewise.
36294         * lib/dup3.c (rpl_dup3): Likewise.
36295         * lib/open.c (rpl_open): Likewise.
36296
36297         fchdir: simplify error handling, and support dup3
36298         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36299         stdbool, malloc-posix, realloc-posix.
36300         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36301         (ensure_dirs_slot): Return false on allocation failure.
36302         (rpl_dup2): Delete.
36303         (_gl_register_dup): New function.
36304         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36305         (_gl_register_fd): Close fd on allocation failure.
36306         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36307         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36308         prototype.
36309         (rpl_dup2_fchdir): Delete prototype.
36310         * lib/open.c (open): Update caller.
36311         * lib/dup2.c (dup2): Track fchdir metadata.
36312         * lib/dup3.c (dup3): Likewise.
36313         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36315
36316 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36317
36318         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36319         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36320         don't pass arguments to AC_OUTPUT.
36321
36322 2009-09-02  Bruno Haible  <bruno@clisp.org>
36323
36324         * modules/mkdtemp (License): Relicense under LGPLv2+.
36325         Reported by Paolo Bonzini.
36326
36327 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36328
36329         Replace uses of obsolete autoconf macros in Jim's modules.
36330         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36331         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36332         can evoke a warning from autoconf when run with -Wobsolete
36333         enabled.  They were declared obsolete for good reasons (see
36334         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36335         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36336         should not continue using the deprecated macros.
36337         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36338         obsolete Autoconf macros with modern counterparts.
36339         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36340         * m4/dos.m4 (gl_AC_DOS): Likewise.
36341         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36343         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36344         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36345         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36346         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36347         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36348         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36349         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36350         Likewise.
36351         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36352         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36353         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36354         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36355         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36356         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36357
36358 2009-09-01  Eric Blake  <ebb9@byu.net>
36359
36360         fchdir: fix off-by-one bug in previous patch
36361         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36362         (_gl_unregister_fd): Delete useless if.
36363
36364 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36365
36366         maint.mk: sort the list of syntax-check rules
36367         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36368         easier to get a sense of progress when the rules are run sequentially
36369         and take a long time.
36370
36371 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36372
36373         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36374         * modules/netinet_in: Likewise.
36375         * modules/sys_file: Likewise.
36376         * modules/sys_ioctl: Likewise.
36377         * modules/sys_select: Likewise.
36378         * modules/sys_socket: Likewise.
36379         * modules/sys_stat: Likewise.
36380         * modules/sys_time: Likewise.
36381         * modules/sys_times: Likewise.
36382         * modules/sys_utsname: Likewise.
36383         * modules/sys_wait: Likewise.
36384
36385 2009-09-01  Jim Meyering  <meyering@redhat.com>
36386
36387         fts: help ensure that return values are not ignored
36388         * lib/fts_.h (__GNUC_PREREQ): Define.
36389         (__attribute_warn_unused_result__): Define.
36390         (fts_children, fts_close, fts_open, fts_read): Declare with
36391         __attribute_warn_unused_result__.
36392
36393         fts: fts_close now fails also when closing a dir file descriptor fails
36394         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36395         and propagate to caller, along with errno.
36396
36397         announce-gen: correct formatting in --help output
36398         * build-aux/announce-gen (usage): Move the one-line description in
36399         --help output "up", to where it belongs, just after Usage:.
36400
36401 2009-08-31  Eric Blake  <ebb9@byu.net>
36402
36403         fchdir: port to mingw
36404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36405         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36406         opened, then use a substitute.
36407         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36408         replacement.
36409         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36410         (_gl_register_fd): No need to check stat if open already filters
36411         all directories.
36412         (fchdir): Fix error condition to match POSIX.
36413         * modules/fchdir (Depends-on): Add sys_stat.
36414         * doc/posix-functions/open.texi (open): Document the limitation.
36415         * modules/fchdir-tests: New file.
36416         * tests/test-fchdir.c: Likewise.
36417
36418         canonicalize: allow cross-testing from cygwin to mingw
36419         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36420         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36421         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36422         Likewise.
36423         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36424         target does not support symlinks.
36425         * tests/test-canonicalize-lgpl.sh: Likewise.
36426
36427         chown: avoid compilation warning on mingw
36428         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36429         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36430         mingw.
36431         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36432         * modules/chown (Depends-on): Add errno.
36433
36434 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36435
36436         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36437         command.
36438
36439 2009-08-31  Jim Meyering  <meyering@redhat.com>
36440
36441         canonicalize: remove useless initialization
36442         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36443         initialization of local, "end".
36444
36445 2009-08-30  Bruno Haible  <bruno@clisp.org>
36446
36447         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36448         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36449         ENOSYS.
36450
36451 2009-08-30  Bruno Haible  <bruno@clisp.org>
36452
36453         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36454         /usr/xpg4/bin/tr when it exists.
36455         * tests/test-pipe-filter-gi1.sh: Likewise.
36456
36457 2009-08-30  Bruno Haible  <bruno@clisp.org>
36458
36459         Work around deficient /usr/bin/id program on Solaris.
36460         * tests/test-file-has-acl.sh (ID): New variable.
36461         * tests/test-set-mode-acl.sh (ID): Likewise.
36462         * tests/test-copy-acl.sh (ID): Likewise.
36463         * tests/test-copy-file.sh (ID): Likewise.
36464
36465 2009-08-30  Bruno Haible  <bruno@clisp.org>
36466
36467         New module 'xstriconveh'.
36468         * lib/xstriconveh.h: New file.
36469         * lib/xstriconveh.c: New file.
36470         * modules/xstriconveh: New file.
36471
36472 2009-08-30  Bruno Haible  <bruno@clisp.org>
36473
36474         Make it easier to use mem_cd_iconveh.
36475         * lib/striconveh.h (iconveh_t): New type.
36476         (iconveh_open, iconveh_close): New declarations.
36477         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36478         with a single 'const iconveh_t *' argument.
36479         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36480         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36481         with a single 'const iconveh_t *' argument.
36482         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36483         * tests/test-striconveh.c (main): Update.
36484         * NEWS: Mention the change.
36485
36486 2009-08-30  Bruno Haible  <bruno@clisp.org>
36487
36488         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36489         problem.
36490
36491 2009-08-30  Bruno Haible  <bruno@clisp.org>
36492
36493         Work around iconv_open problem on Solaris.
36494         * lib/iconv_open-solaris.gperf: New file.
36495         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36496         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36497         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36498         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36499         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36500         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36501
36502 2009-08-29  Jim Meyering  <meyering@redhat.com>
36503
36504         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36505         * top/maint.mk (cvs-check): Remove target; it was just an alias
36506         to the better-named vc-diff-check.
36507         (maintainer-distcheck): Remove rule.  It was used only from
36508         the (alpha/beta/major) target, and all of its commands but one
36509         were coreutils-specific.
36510         (vc-dist): Remove rule.
36511         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36512         Run vc-diff-check, not vc-dist.
36513         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36514
36515 2009-08-27  Bruno Haible  <bruno@clisp.org>
36516
36517         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36518         of 0.
36519
36520 2009-08-27  Bruno Haible  <bruno@clisp.org>
36521
36522         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36523         compilers.
36524         * doc/func.texi: Document the SunPRO C bug.
36525
36526 2009-08-27  Bruno Haible  <bruno@clisp.org>
36527
36528         Fix link error on Solaris.
36529         * tests/test-parse-duration.c (xstrdup): Remove function.
36530
36531 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36532
36533         ignore-value: handle pointer types, too
36534         * lib/ignore-value.h (__attribute__): Remove definition.
36535         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36536         of a more concise and more-often effective "(void) i" statement.
36537         (ignore_ptr): New function to suppress warnings from functions that
36538         return pointers, and to make it explicit that one function doesn't
36539         handle all cases.
36540
36541 2009-08-25  Bruno Haible  <bruno@clisp.org>
36542
36543         dup2: work around a Linux bug.
36544         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36545         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36546         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36547         Reported by Simon Josefsson.
36548
36549 2009-08-25  Jim Meyering  <meyering@redhat.com>
36550
36551         libguestfs uses gnulib
36552         * users.txt: Add libguestfs.
36553
36554 2009-08-24  Eric Blake  <ebb9@byu.net>
36555
36556         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36557         * lib/pipe2.c (includes): Add binary-io.h.
36558         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36559
36560 2009-08-24  Bruno Haible  <bruno@clisp.org>
36561
36562         Tolerate declared but missing accept4 syscall.
36563         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36564         available.
36565         * lib/sys_socket.in.h (accept4): If the function is already present,
36566         override it.
36567         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36568         * modules/accept4 (Makefile.am): Compile accept4.c always.
36569         Reported by Paolo Bonzini and Eric Blake.
36570
36571 2009-08-23  Bruno Haible  <bruno@clisp.org>
36572
36573         New module 'accept4'.
36574         * lib/sys_socket.in.h (accept4): New declaration.
36575         * lib/accept4.c: New file.
36576         * m4/accept4.m4: New file.
36577         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36578         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36579         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36580         HAVE_ACCEPT4.
36581         * modules/accept4: New file.
36582         * doc/glibc-functions/accept4.texi: Mention the new module.
36583
36584 2009-08-24  Jim Meyering  <meyering@redhat.com>
36585
36586         progname: also set global program_invocation_name, when possible
36587         Before this change, a libtool-enabled program that calls glibc's
36588         error function would report the program name as
36589         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36590         * modules/progname (configure.ac): Check for a declaration of
36591         program_invocation_name.
36592         * lib/progname.c:  Include <errno.h>.
36593         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36594         Set program_invocation_name.
36595
36596 2009-08-23  Bruno Haible  <bruno@clisp.org>
36597
36598         * lib/dup3.c: Include <string.h>.
36599
36600 2009-08-23  Bruno Haible  <bruno@clisp.org>
36601
36602         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36603         * lib/pipe2.c (pipe2): Likewise.
36604         Suggested by Eric Blake.
36605
36606 2009-08-23  Bruno Haible  <bruno@clisp.org>
36607
36608         Tolerate declared but missing dup3 syscall.
36609         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36610         * lib/unistd.in.h (dup3): If the function is already present,
36611         override it.
36612         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36613         * modules/dup3 (Makefile.am): Compile dup3.c always.
36614         Reported by Paolo Bonzini.
36615
36616 2009-08-23  Bruno Haible  <bruno@clisp.org>
36617
36618         Tolerate declared but missing pipe2 syscall.
36619         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36620         available.
36621         * lib/unistd.in.h (pipe2): If the function is already present,
36622         override it.
36623         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36624         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36625         Reported by Paolo Bonzini.
36626
36627 2009-08-23  Bruno Haible  <bruno@clisp.org>
36628
36629         * lib/pipe2.c (pipe2): Move #ifs inside function.
36630
36631 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36632
36633         quotearg: document limitations of quote_these_too
36634         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36635         those limitations are created.
36636         * lib/quotearg.h (set_char_quoting): Document that digits and
36637         letters that are special after backslash are not permitted.
36638         (quotearg_char): Cross-reference set_char_quoting documentation.
36639
36640 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36641
36642         quotearg: implement custom_quoting_style
36643         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36644         right_quote fields.
36645         (set_custom_quoting): New public function.
36646         (quotearg_buffer_restyled): Add left_quote and right_quote
36647         arguments, handle them very much like locale quoting, and update
36648         all uses.
36649         (quotearg_n_custom): New public function.
36650         (quotearg_n_custom_mem): New public function.
36651         (quotearg_custom): New public function.
36652         (quotearg_custom_mem): New public function.
36653         * lib/quotearg.h: Prototype and document new public functions.
36654         (enum quoting_style): For escape_quoting_style and
36655         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36656         ignored even though they're otherwise like c_quoting_style.
36657         Add custom_quoting_style member and document with comparison to
36658         clocale_quoting_style.
36659         * tests/test-quotearg.c (custom_quotes): New array.
36660         (custom_results): New array.
36661         (main): Extend to test custom quoting.
36662
36663 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36664
36665         quotearg: fix right quote escaping when it's in quote_these_too
36666         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36667         quote, be sure to prepend only one backslash.
36668         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36669         (main): Test it.
36670
36671 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36672
36673         quotearg-tests: test escaping of embedded locale quotes
36674         * tests/test-quotearg.c (struct result_strings): Add member for
36675         new input.
36676         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36677         (inputs): Add new input.
36678         (results_g): Add expected results.
36679         (flag_results): Likewise.
36680         (locale_results): Likewise.
36681         (compare_strings): Check those.
36682
36683 2009-08-23  Bruno Haible  <bruno@clisp.org>
36684
36685         Tests for module 'dup3'.
36686         * modules/dup3-tests: New file.
36687         * tests/test-dup3.c: New file.
36688
36689         New module 'dup3'.
36690         * lib/unistd.in.h (dup3): New declaration.
36691         * lib/dup3.c: New file.
36692         * m4/dup3.m4: New file.
36693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36694         HAVE_DUP3.
36695         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36696         * modules/dup3: New file.
36697         * doc/glibc-functions/dup3.texi: Mention the new module.
36698
36699 2009-08-23  Bruno Haible  <bruno@clisp.org>
36700
36701         Tweak the dup2 test.
36702         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36703         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36704         the test file is still empty. Fix argument order of lseek.
36705
36706 2009-08-23  Bruno Haible  <bruno@clisp.org>
36707
36708         Avoid test link errors when the modules getopt-gnu, gettext are used.
36709         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36710         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36711
36712 2009-08-23  Bruno Haible  <bruno@clisp.org>
36713
36714         Fix getdtablesize() on mingw.
36715         * lib/getdtablesize.c (getdtablesize): Implement differently.
36716         * lib/unistd.in.h (getdtablesize): Improve comment.
36717
36718 2009-08-23  Bruno Haible  <bruno@clisp.org>
36719
36720         New module 'mkostemp'.
36721         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36722         * lib/stdlib.in.h (mksotemp): New declaration.
36723         * lib/mkostemp.c: New file, from glibc with modifications.
36724         * lib/tempname.h (GT_FILE): Remove outdated comment.
36725         (gen_tempname): Add flags argument.
36726         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36727         (__GT_FILE): Map to 1.
36728         (small_open, large_open): Remove macros.
36729         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36730         * lib/mkstemp.c (mkstemp): Update.
36731         * lib/mkdtemp.c (mkdtemp): Likewise.
36732         * m4/mkostemp.m4: New file.
36733         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36734         HAVE_MKOSTEMP.
36735         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36736         HAVE_MKOSTEMP.
36737         * modules/mkostemp: New file, based on modules/mkstemp.
36738         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36739         * NEWS: Mention the change.
36740
36741 2009-08-23  Bruno Haible  <bruno@clisp.org>
36742
36743         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36744         Reported by Eric Blake.
36745
36746 2009-08-23  Bruno Haible  <bruno@clisp.org>
36747
36748         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36749         Reported by Eric Blake.
36750
36751 2009-08-23  Bruno Haible  <bruno@clisp.org>
36752
36753         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36754         * modules/pipe2 (Depends-on): Likewise.
36755
36756 2009-08-23  Eric Blake  <ebb9@byu.net>
36757
36758         fcntl-h: add O_TTY_INIT support
36759         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36760         * tests/test-fcntl-h.c (o): Test it.
36761         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36762
36763         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36764         * modules/fcntl: Move <fcntl.h> header replacement...
36765         * modules/fcntl-h: ...to new name, so as not to collide with
36766         like-named function.
36767         * tests/test-fcntl.c: Rename...
36768         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36769         * modules/fcntl-tests: Rename...
36770         * modules/fcntl-h-tests: ...to this.  Update test file name.
36771         * modules/chdir-long (Depends-on): Update clients.
36772         * modules/chdir-safer (Depends-on): Likewise.
36773         * modules/fcntl-safer (Depends-on): Likewise.
36774         * modules/fts (Depends-on): Likewise.
36775         * modules/mkancesdirs (Depends-on): Likewise.
36776         * modules/mkdir-p (Depends-on): Likewise.
36777         * modules/open (Depends-on): Likewise.
36778         * modules/savewd (Depends-on): Likewise.
36779         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36780         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36781
36782 2009-08-22  Bruno Haible  <bruno@clisp.org>
36783
36784         * modules/binary-io (License): Relicense under LGPL.
36785         * modules/pipe2 (License): Likewise.
36786
36787 2009-08-22  Bruno Haible  <bruno@clisp.org>
36788
36789         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36790         return value.
36791         * lib/pipe-filter-gi.c (filter_init): Likewise.
36792         Reported by Eric Blake.
36793
36794 2009-08-22  Bruno Haible  <bruno@clisp.org>
36795
36796         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36797         * modules/pipe (Depends-on): Add pipe2.
36798
36799 2009-08-22  Bruno Haible  <bruno@clisp.org>
36800
36801         Tests for module 'pipe2'.
36802         * modules/pipe2-tests: New file.
36803         * tests/test-pipe2.c: New file.
36804
36805         New module 'pipe2'.
36806         * lib/unistd.in.h (pipe2): New declaration.
36807         * lib/pipe2.c: New file.
36808         * m4/pipe2.m4: New file.
36809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36810         HAVE_PIPE2.
36811         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36812         * modules/pipe2: New file.
36813         * doc/glibc-functions/pipe2.texi: Mention the new module.
36814
36815 2009-08-22  Bruno Haible  <bruno@clisp.org>
36816
36817         Reference some new glibc functions.
36818         * doc/glibc-functions/accept4.texi: New file.
36819         * doc/glibc-functions/dup3.texi: New file.
36820         * doc/glibc-functions/mkostemp.texi: New file.
36821         * doc/glibc-functions/pipe2.texi: New file.
36822         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36823         (Glibc sys/socket.h): Refer to accept4.
36824         (Glibc unistd.h): Refer to dup3, pipe2.
36825         Reported by Eric Blake.
36826
36827 2009-08-22  Jim Meyering  <meyering@redhat.com>
36828             Bruno Haible  <bruno@clisp.org>
36829
36830         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36831         This makes it so packages using automake-1.11's silent-rules option
36832         can print e.g., a single "GEN    configmake.h" line, rather than
36833         the 30+ statements that perform the job.  If you want to see the
36834         actual commands, you can still run "make V=1".
36835         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36836         so that make output is abbreviated when those variables are defined
36837         appropriately.
36838         * modules/argz: Likewise.
36839         * modules/arpa_inet: Likewise.
36840         * modules/byteswap: Likewise.
36841         * modules/configmake: Likewise.
36842         * modules/dirent: Likewise.
36843         * modules/errno: Likewise.
36844         * modules/fcntl: Likewise.
36845         * modules/float: Likewise.
36846         * modules/fnmatch: Likewise.
36847         * modules/getopt-posix: Likewise.
36848         * modules/glob: Likewise.
36849         * modules/iconv_open: Likewise.
36850         * modules/inttypes: Likewise.
36851         * modules/localcharset: Likewise.
36852         * modules/locale: Likewise.
36853         * modules/math: Likewise.
36854         * modules/netdb: Likewise.
36855         * modules/netinet_in: Likewise.
36856         * modules/poll: Likewise.
36857         * modules/posix_spawnp-tests: Likewise.
36858         * modules/sched: Likewise.
36859         * modules/search: Likewise.
36860         * modules/selinux-h: Likewise.
36861         * modules/signal: Likewise.
36862         * modules/spawn: Likewise.
36863         * modules/stdarg: Likewise.
36864         * modules/stdbool: Likewise.
36865         * modules/stddef: Likewise.
36866         * modules/stdint: Likewise.
36867         * modules/stdio: Likewise.
36868         * modules/stdlib: Likewise.
36869         * modules/string: Likewise.
36870         * modules/strings: Likewise.
36871         * modules/sys_file: Likewise.
36872         * modules/sys_ioctl: Likewise.
36873         * modules/sys_select: Likewise.
36874         * modules/sys_socket: Likewise.
36875         * modules/sys_stat: Likewise.
36876         * modules/sys_time: Likewise.
36877         * modules/sys_times: Likewise.
36878         * modules/sys_utsname: Likewise.
36879         * modules/sys_wait: Likewise.
36880         * modules/sysexits: Likewise.
36881         * modules/time: Likewise.
36882         * modules/unistd: Likewise.
36883         * modules/wchar: Likewise.
36884         * modules/wctype: Likewise.
36885
36886 2009-08-22  Jim Meyering  <meyering@redhat.com>
36887
36888         announce-gen: detect write failure
36889         * build-aux/announce-gen: Add Coda at end.
36890         Remove equivalent-but-more-verbose block at top.
36891
36892 2009-08-19  Akim Demaille  <demaille@gostai.com>
36893
36894         bootstrap: --help to stdout.
36895         * bootstrap (usage): Don't send --help to stderr.
36896         Use a here doc instead of a long string.
36897
36898 2009-08-21  Eric Blake  <ebb9@byu.net>
36899
36900         test-popen-safer: split from test-popen
36901         * tests/test-popen.c (main): Move...
36902         * tests/test-popen.h: ...into new file.
36903         * tests/test-popen-safer2.c: New file.
36904         * modules/popen-tests (Files): Add test-popen.h.
36905         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36906         Suggested by Bruno Haible.
36907
36908         test-fcntl-safer: split from test-open
36909         * tests/test-open.c (main): Move...
36910         * tests/test-open.h: ...into new file.
36911         * tests/test-fcntl-safer.c: New file.
36912         * modules/open-tests (Files): Add test-open.h.
36913         * modules/fcntl-safer-tests: New file.
36914         Suggested by Bruno Haible.
36915
36916         test-fopen-safer: split from test-fopen
36917         * tests/test-fopen.c (main): Move...
36918         * tests/test-fopen.h: ...into new file.
36919         * tests/test-fopen-safer.c: New file.
36920         * modules/fopen-tests (Files): Add test-fopen.h.
36921         * modules/fopen-safer-tests: New file.
36922         Suggested by Bruno Haible.
36923
36924 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36925
36926         popen-safer: test O_CLOEXEC at run-time.
36927         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36928
36929 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36930
36931         fcntl: move more flags to the header
36932         * lib/cloexec.c: Do not define FD_CLOEXEC here.
36933         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
36934         * lib/fcntl.in.h: Do both things here.
36935
36936 2009-08-21  Jim Meyering  <meyering@redhat.com>
36937
36938         consistently remove $@-t before redirecting to it
36939         * modules/argz: Remove $@-t and $@ before redirecting to the former.
36940         * modules/alloca-opt: Likewise.
36941         * modules/byteswap: Likewise.
36942         * modules/fnmatch: Likewise.
36943         * modules/getopt-posix: Likewise.
36944         * modules/glob: Likewise.
36945         * modules/poll: Likewise.
36946         * modules/posix_spawnp-tests: Likewise.
36947         * modules/sys_socket: Likewise.
36948         * modules/sysexits: Likewise.
36949
36950 2009-08-21  Eric Blake  <ebb9@byu.net>
36951
36952         popen: simplify access to original popen
36953         * lib/popen.c (rpl_popen): No need to worry about popen being a
36954         macro.
36955         Reported by Bruno Haible.
36956
36957 2009-08-20  Eric Blake  <ebb9@byu.net>
36958
36959         build: avoid some compiler warnings
36960         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
36961         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
36962         type.
36963         (new_exclude_segment, excluded_file_pattern_p)
36964         (excluded_file_name_p): Reduce scope.
36965         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
36966         old-style declaration.
36967
36968 2009-08-20  Simon Josefsson  <simon@josefsson.org>
36969
36970         * tests/test-exclude1.sh: Handle Windows EOL.
36971         * tests/test-exclude2.sh: Likewise.
36972         * tests/test-exclude3.sh: Likewise.
36973         * tests/test-exclude4.sh: Likewise.
36974         * tests/test-exclude5.sh: Likewise.
36975         * tests/test-exclude6.sh: Likewise.
36976         * tests/test-exclude7.sh: Likewise.
36977
36978 2009-08-19  Akim Demaille  <demaille@gostai.com>
36979
36980         bootstrap: find sha1sum when named gsha1sum.
36981         * bootstrap (find_tool): New.
36982         ($SHA1SUM): New.
36983         Use it.
36984
36985 2009-08-20  Jim Meyering  <meyering@redhat.com>
36986
36987         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
36988         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
36989         expression that converts "." in a file name to "\." in the resulting
36990         regexp.  Start with a dummy statement, so that prior shell variable
36991         definitions are expanded portably.  Reported by Simon Josefsson.
36992
36993 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
36994
36995         Fix polling for writeability of a screen buffer.
36996         * lib/poll.c: Distinguish input and screen buffers for the
36997         Win32 implementation.
36998         * lib/select.c: Likewise.
36999
37000 2009-08-19  Eric Blake  <ebb9@byu.net>
37001
37002         popen-safer: prevent popen from clobbering std descriptors
37003         * modules/popen-safer: New file.
37004         * lib/popen-safer.c: Likewise.
37005         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37006         * lib/stdio--.h (popen): Provide override.
37007         * lib/stdio-safer.h (popen_safer): Provide declaration.
37008         * tests/test-popen.c (includes): Partially test this.
37009         * modules/popen-safer-tests: New file, for more tests.
37010         * tests/test-popen-safer.c: Likewise.
37011         * MODULES.html.sh (file stream based Input/Output): Mention it.
37012
37013         tests: test some of the *-safer modules
37014         * modules/fopen-safer (Depends-on): Add fopen.
37015         * modules/fcntl-safer (Depends-on): Add fcntl.
37016         * modules/stdlib-safer (Depends-on): Add stdlib.
37017         (configure.ac): Set indicator.
37018         * modules/unistd-safer (configure.ac): Likewise.
37019         * modules/tmpfile-safer (configure.ac): Likewise.
37020         (Depends-on): Add tmpfile.
37021         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37022         active.
37023         * tests/test-fopen.c (includes): Test safer versions when they are
37024         in use.
37025         * tests/test-open.c (includes): Likewise.
37026
37027         popen: fix cygwin 1.5 bug when stdin closed
37028         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37029         * modules/popen: New file.
37030         * modules/popen-tests: Likewise.
37031         * tests/test-popen.c: Likewise.
37032         * m4/popen.m4: Likewise.
37033         * lib/popen.c: Likewise.
37034         * lib/stdio.in.h (popen): New declaration.
37035         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37036         * modules/stdio (Makefile.am): Likewise.
37037         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37038
37039 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37040
37041         maint.mk: give full control over update-copyright exclusions
37042         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37043         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37044         (update-copyright): Don't force inclusion of top-level
37045         ChangeLog.  Don't force exclusion of all COPYING files, but make
37046         them the default exclusion instead.
37047
37048 2009-08-16  Bruno Haible  <bruno@clisp.org>
37049
37050         Fix test failures on Solaris 10.
37051         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37052         tests when Solaris iconv() is used.
37053         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37054         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37055         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37056         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37057         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37058
37059 2009-08-16  Bruno Haible  <bruno@clisp.org>
37060
37061         Fix test failures on Solaris 10.
37062         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37063         'tr' program and pass it as first argument.
37064         * tests/test-pipe-filter-gi1.sh: Likewise.
37065         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37066         program as first argument.
37067         * tests/test-pipe-filter-gi1.c (main): Likewise.
37068
37069 2009-08-16  Eric Blake  <ebb9@byu.net>
37070
37071         fpurge: fix previous commits
37072         * modules/fpurge (Makefile.am): Make replacement conditional,
37073         partially reverting 2007-04-29 change; missed in previous
37074         attempt.
37075         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37076         is missing.
37077
37078 2009-08-16  Bruno Haible  <bruno@clisp.org>
37079
37080         Clarify fpurge's effect on the file position.
37081         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37082         * tests/test-fpurge.c (main): Make a second pass for checking the file
37083         position.
37084
37085 2009-08-16  Bruno Haible  <bruno@clisp.org>
37086
37087         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37088         declaration of fpurge is missing.
37089         * tests/test-fpurge.c (main): Check that the file has not more contents
37090         than expected. Close the file before removing it.
37091
37092 2009-08-15  Eric Blake  <ebb9@byu.net>
37093
37094         fpurge: don't wrap working cygwin implementation
37095         * lib/fpurge.c (fpurge): Fix comment typo.
37096         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37097         1.7 to avoid replacement.
37098         * tests/test-fpurge.c (main): Enhance test.
37099
37100 2009-08-15  Eric Blake  <ebb9@byu.net>
37101         and Jim Meyering  <meyering@redhat.com>
37102
37103         test-update-copyright: skip if perl is insufficient
37104         * tests/test-update-copyright.sh: Failure to run maintainer tool
37105         should not cause testsuite failure on cygwin 1.5.
37106
37107 2009-08-14  Eric Blake  <ebb9@byu.net>
37108
37109         doc: mention more functions added in cygwin 1.7.0
37110         * doc/posix-headers/limits.texi (limits.h): Update for recent
37111         cygwin additions.
37112         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37113         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37114         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37115         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37116         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37117
37118 2009-08-14  Eric Blake  <ebb9@byu.net>
37119
37120         maint.mk: simplify update-copyright rule
37121         * top/maint.mk (update-copyright-local): Delete, and document how
37122         to do it in cfg.mk instead.
37123         (update-copyright-exclude-regexp): Delete, and document how to do
37124         it in .x-update-copyright instead.
37125         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37126         exclude ChangeLog.
37127
37128 2009-08-14  Bruno Haible  <bruno@clisp.org>
37129
37130         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37131
37132 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37133
37134         maint.mk: support update-copyright-env
37135         * top/maint.mk (update-copyright-env): Define place-holder.
37136         (update-copyright): Expand $(update-copyright-env) before
37137         invoking update-copyright.
37138
37139 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37140
37141         update-copyright: implement forced reformatting
37142         * build-aux/update-copyright: Implement and document
37143         UPDATE_COPYRIGHT_FORCE.
37144         * tests/test-update-copyright.sh: Test it.
37145
37146 2009-08-14  Eric Blake  <ebb9@byu.net>
37147         and Bruno Haible  <bruno@clisp.org>
37148
37149         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37150         * tests/test-locale.c: Revert previous patch related to NULL.
37151         * tests/test-stdio.c: Likewise.
37152         * tests/test-stdlib.c: Likewise.
37153         * tests/test-string.c: Likewise.
37154         * tests/test-unistd.c: Likewise.
37155         * modules/time-tests (Depends-on): Add verify.
37156         * modules/wchar-tests (Depends-on): Likewise.
37157         * tests/test-time.c: Test for NULL compliance.
37158         * tests/test-wchar.c: Likewise.
37159         * modules/locale (Depends-on): Add stddef.
37160         * modules/stdio (Depends-on): Likewise.
37161         * modules/stdlib (Depends-on): Likewise.
37162         * modules/string (Depends-on): Likewise.
37163         * modules/time (Depends-on): Likewise.
37164         * modules/unistd (Depends-on): Likewise.
37165         * modules/wchar (Depends-on): Likewise.
37166         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37167         * lib/stdlib.in.h (includes): Likewise.
37168         * lib/string.in.h (includes): Likewise.
37169         * lib/time.in.h (includes): Likewise.
37170         * lib/unistd.in.h (includes): Likewise.
37171         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37172         replaced.
37173         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37174         * m4/stddef_h.m4: New file.
37175         * modules/stddef: Likewise.
37176         * lib/stddef.in.h: Likewise.
37177         * modules/stddef-tests: Likewise.
37178         * tests/test-stddef.c: Likewise.
37179         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37180         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37181         * doc/posix-headers/locale.texi (locale.h): Likewise.
37182         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37183         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37184         * doc/posix-headers/string.texi (string.h): Likewise.
37185         * doc/posix-headers/time.texi (time.h): Likewise.
37186         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37187         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37188
37189 2009-08-14  Eric Blake  <ebb9@byu.net>
37190
37191         doc: improve git diff of texinfo files
37192         * .gitattributes: Add rule for *.texi files, with hint on how to
37193         use it.
37194         Copied from m4, and based on a report by Bruno Haible.
37195
37196 2009-08-14  Bruno Haible  <bruno@clisp.org>
37197
37198         Disable multithread support by default on Cygwin 1.5.x for real.
37199         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37200
37201 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37202
37203         update-copyright: much ado about intervals
37204         * build-aux/update-copyright: Implement and document
37205         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37206         of copyright year intervals.
37207         Also, document UPDATE_COPYRIGHT_YEAR.
37208         * tests/test-update-copyright.sh: Test it.
37209
37210         update-copyright: convert 2-digit to 4-digit years
37211         * build-aux/update-copyright: Implement and document.
37212         * tests/test-update-copyright.sh: Update.
37213
37214 2009-08-14  Jim Meyering  <meyering@redhat.com>
37215
37216         test-exclude: avoid coreutils "make check" failure
37217         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37218         just as in test-argmatch.c.
37219
37220 2009-08-13  Eric Blake  <ebb9@byu.net>
37221
37222         test-dup2: fix bad assumption
37223         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37224         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37225
37226         test-version-etc: fix CRLF portability issue
37227         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37228         recognize \r.
37229         * tests/test-argp-version-etc-1.sh: Likewise.
37230
37231         getopt: update client modules
37232         * modules/argp (Depends-on): Use getopt-gnu.
37233         * modules/git-merge-changelog (Depends-on): Likewise.
37234         * modules/long-options (Depends-on): Likewise.
37235         * modules/xstrtol (Depends-on): Likewise.
37236
37237 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37238
37239         * tests/test-version-etc.sh: Don't fail on different
37240         project/version.  Don't fail on CRLF differences.  Rewrite to use
37241         multiple -e instead of multiple sed forks, suggested by Eric Blake
37242         <ebb9@byu.net>.
37243         * tests/test-argp-version-etc-1.sh: Likewise.
37244
37245 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37246
37247         * tests/test-version-etc.sh: Don't fail on different
37248         project/version.
37249
37250 2009-08-12  Bruno Haible  <bruno@clisp.org>
37251
37252         Tests for modules 'getopt-posix', 'getopt-gnu'.
37253         * modules/getopt-posix-tests: New file.
37254         * tests/test-getopt.c: New file.
37255         * tests/test-getopt.h: New file.
37256         * tests/test-getopt_long.h: New file.
37257
37258         New modules 'getopt-posix', 'getopt-gnu'.
37259         * modules/getopt-gnu: New file, renamed from modules/getopt.
37260         * modules/getopt-posix: New file.
37261         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37262         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37263         (gl_GETOPT): Remove macro.
37264         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37265         Disable the test against BSD systems that declare optreset. Test
37266         against mingw bug. Test against lack of support of optional arguments
37267         on many platforms.
37268         * doc/glibc-headers/getopt.texi: Update module name and list of
37269         relevant platforms.
37270         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37271         'getopt-gnu' and more portability problems.
37272         * NEWS: Mention the changes.
37273
37274 2009-08-12  Bruno Haible  <bruno@clisp.org>
37275
37276         Ensure that optarg etc. get declared by <unistd.h>.
37277         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37278         AC_USE_SYSTEM_EXTENSIONS.
37279         * modules/getopt (Depends-on): Add 'extensions'.
37280
37281 2009-08-12  Bruno Haible  <bruno@clisp.org>
37282
37283         Avoid test link errors.
37284         * modules/pipe-filter-ii-tests (Makefile.am): Define
37285         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37286         * modules/pipe-filter-gi-tests (Makefile.am): Define
37287         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37288         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37289
37290 2009-08-12  Bruno Haible  <bruno@clisp.org>
37291
37292         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37293         gl_GETOPT_SUBSTITUTE before.
37294         (gl_GETOPT): Use it.
37295         * m4/argp.m4 (gl_ARGP): Update.
37296         Reported by Sergey Poznyakoff.
37297
37298         * m4/getopt.m4: Reorder macros.
37299         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37300         (gl_GETOPT_SUBSTITUTE): Remove macro.
37301
37302 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37303
37304         Minor improvement in gitlog-to-changelog
37305
37306         * build-aux/gitlog-to-changelog: New option `--format' makes
37307         output format string configurable.
37308
37309 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37310
37311         Optimize exclude: use hash tables for non-wildcard patterns.
37312
37313         * lib/exclude.c: Include hash.h and mbuiter.h
37314         (struct exclude_pattern, exclude_segment): New data types.
37315         (struct exclude): Rewrite.
37316         (fnmatch_pattern_has_wildcards): New function.
37317         (new_exclude_segment, free_exclude_segment): New functions.
37318         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37319         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37320         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37321         * modules/exclude: Depend on hash and mbuiter.
37322
37323         * modules/exclude-tests: New file.
37324         * tests/test-exclude.c: New file.
37325         * tests/test-exclude1.sh: New file.
37326         * tests/test-exclude2.sh: New file.
37327         * tests/test-exclude3.sh: New file.
37328         * tests/test-exclude4.sh: New file.
37329         * tests/test-exclude5.sh: New file.
37330         * tests/test-exclude6.sh: New file.
37331         * tests/test-exclude7.sh: New file.
37332
37333 2009-08-12  Bruno Haible  <bruno@clisp.org>
37334
37335         Ensure that getopt() gets declared by <unistd.h>.
37336         * lib/unistd.in.h: Conditionally include getopt.h.
37337         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37338         Set GNULIB_UNISTD_H_GETOPT.
37339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37340         GNULIB_UNISTD_H_GETOPT.
37341         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37342
37343 2009-08-12  Bruno Haible  <bruno@clisp.org>
37344
37345         Clarify logic.
37346         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37347         gl_replace_getopt instead of GETOPT_H.
37348
37349 2009-08-12  Bruno Haible  <bruno@clisp.org>
37350
37351         * m4/getopt.m4: Add comments.
37352
37353 2009-08-12  Bruno Haible  <bruno@clisp.org>
37354
37355         Disable multithread support by default on Cygwin 1.5.x.
37356         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37357         set gl_use_threads=no if not specified otherwise.
37358
37359 2009-08-11  Bruno Haible  <bruno@clisp.org>
37360
37361         Avoid compilation error on NetBSD 5.0.
37362         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37363         * tests/test-stdio.c: Likewise.
37364         * tests/test-stdlib.c: Likewise.
37365         * tests/test-string.c: Likewise.
37366         * tests/test-unistd.c: Likewise.
37367         Reported by Greg Troxel <gdt@ir.bbn.com>
37368         at <https://savannah.gnu.org/support/?106973>.
37369
37370 2009-08-11  Bruno Haible  <bruno@clisp.org>
37371
37372         * modules/dup2-tests (Depends-on): Remove close.
37373
37374         Undo 2009-07-19 commit.
37375         * modules/acl-tests (Depends-on): Remove close.
37376         * modules/binary-io-tests (Depends-on): Likewise.
37377         * modules/closein-tests (Depends-on): Likewise.
37378         * modules/flock-tests (Depends-on): Likewise.
37379         * modules/fsync-tests (Depends-on): Likewise.
37380         * modules/lseek-tests (Depends-on): Likewise.
37381         * modules/pipe-tests (Depends-on): Likewise.
37382         * modules/posix_spawn-tests (Depends-on): Likewise.
37383         * modules/posix_spawnp-tests (Depends-on): Likewise.
37384         * modules/stat-time-tests (Depends-on): Likewise.
37385         * modules/yesno-tests (Depends-on): Likewise.
37386
37387 2009-08-10  Bruno Haible  <bruno@clisp.org>
37388
37389         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37390
37391 2009-08-10  Bruno Haible  <bruno@clisp.org>
37392
37393         Fix a gcc warning.
37394         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37395
37396 2009-08-10  Bruno Haible  <bruno@clisp.org>
37397
37398         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37399         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37400         not only the first time.
37401         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37402         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37403         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37404         is 1, not only the the first time.
37405
37406 2009-08-10  Bruno Haible  <bruno@clisp.org>
37407
37408         Make it possible to use module 'gethostname' without module 'close'.
37409         * lib/unistd.in.h (close): Evoke a link error only if
37410         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37412         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37413         * modules/unistd (Makefile.am): Substitute
37414         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37415         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37416         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37417         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37418         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37419         * modules/sys_ioctl (Makefile.am): Substitute
37420         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37421         * modules/socket (configure.ac): On native Windows, set
37422         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37423         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37424         Reported by Sam Steingold <sds@gnu.org>.
37425
37426 2009-08-10  Bruno Haible  <bruno@clisp.org>
37427
37428         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37429         * modules/ioctl (configure.ac): Likewise.
37430
37431 2009-08-10  Bruno Haible  <bruno@clisp.org>
37432
37433         Avoid collision between gnulib wrapper and libintl wrapper.
37434         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37435         already defined in intl/printf.c.
37436         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37437         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37438
37439 2009-08-09  Bruno Haible  <bruno@clisp.org>
37440
37441         Make <sys/select.h> really self-contained, also on Solaris 10.
37442         * lib/sys_select.in.h: Include <string.h>.
37443         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37444         Solaris 10 problem.
37445         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37446         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37447         Reported by Jim Meyering.
37448
37449 2009-08-09  Bruno Haible  <bruno@clisp.org>
37450
37451         Avoid warnings from 'aclocal' that are due to a use of macro name
37452         AM_XGETTEXT_OPTION that is not defined in automake.
37453         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37454         automake.
37455         * modules/error (configure.ac): Likewise.
37456         * modules/propername (configure.ac): Likewise.
37457         * modules/vasprintf (configure.ac): Likewise.
37458         * modules/verror (configure.ac): Likewise.
37459         * modules/xprintf (configure.ac): Likewise.
37460         * modules/xvasprintf (configure.ac): Likewise.
37461
37462 2009-08-08  Bruno Haible  <bruno@clisp.org>
37463
37464         Avoid compilation error in C++ mode.
37465         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37466         Reported by Sam Steingold <sds@gnu.org>.
37467
37468 2009-08-08  Bruno Haible  <bruno@clisp.org>
37469
37470         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37471         for the various Unix platforms.
37472         * doc/posix-headers/limits.texi: Update platforms list regarding
37473         HOST_NAME_MAX.
37474         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37475
37476 2009-08-07  Jim Meyering  <meyering@redhat.com>
37477
37478         selinux-at: fix typo in a comment
37479         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37480         Spotted by Paolo Bonzini.
37481
37482         selinux-at: remove redundant m4 code, add documentation
37483         * modules/selinux-at (configure.ac): Remove redundant code.
37484         LIB_SELINUX is already set via the dependent module, selinux-h.
37485         (Include): Add quotes around selinux-at.h.
37486         * lib/selinux-at.h: Add documentation.
37487         Reported by Bruno Haible in
37488         http://marc.info/?l=gnulib-bug&m=124958988300749
37489
37490 2009-08-07  Bruno Haible  <bruno@clisp.org>
37491
37492         Avoid link error on MacOS X 10.3 and 10.4.
37493         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37494         on non-ELF systems.
37495         * lib/argp-pv.c (argp_program_version): Likewise.
37496         Reported by Simon Josefsson.
37497
37498 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37499
37500         * tests/test-version-etc.sh: Use $EXEEXT.
37501
37502 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37503
37504         update-copyright: update documentation to point to maint.mk
37505         * build-aux/update-copyright: Here.
37506
37507 2009-08-06  Jim Meyering  <meyering@redhat.com>
37508
37509         maint.mk: support update-copyright-local
37510         * top/maint.mk (update-copyright-local): Define place-holder.
37511         (update-copyright): Depend on $(update-copyright-local).
37512
37513 2009-08-06  Jim Meyering  <meyering@redhat.com>
37514
37515         selinux-at: new module
37516         Initially written for coreutils, this module will soon be
37517         used by findutils, too.
37518         * MODULES.html.sh [Misc]: Add selinux-at.
37519         * lib/selinux-at.h: New file, from coreutils.
37520         * lib/selinux-at.c: Likewise.
37521         * modules/selinux-at: Likewise.
37522         (License): Change from LGPL to GPL, since it depends
37523         on the GPL'd openat module.
37524
37525         doc: update README
37526         * README: Remove references to cogito.
37527         Remove cvs-repo-updating instructions from 2007.
37528         Don't imply that CVS is better if you have limited disk space.
37529
37530 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37531
37532         update-copyright: support C-style comments
37533         * build-aux/update-copyright: Implement and document.
37534         * tests/test-update-copyright.sh: Test.
37535
37536 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37537
37538         update-copyright: support omitted "(C)"
37539         * build-aux/update-copyright: Implement and document.  Also,
37540         allow variable whitespace before "(C)".
37541         * tests/test-update-copyright.sh: Test.
37542
37543 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37544
37545         update-copyright: don't trip on non-FSF copyright statements
37546         * build-aux/update-copyright: Fix so that the first correctly
37547         formatted FSF copyright statement is recognized no matter what
37548         appears before it.  Update documentation.
37549         * tests/test-update-copyright.sh: Test that.
37550
37551 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37552
37553         update-copyright: clean up code a little
37554         * build-aux/update-copyright: Append "_re" to the name of any
37555         variable holding a regular expression.
37556         Replace "old" and "new" with "stmt" in variable names.
37557         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37558         handled correctly.
37559         Format code more consistently.
37560
37561 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37562
37563         update-copyright-tests: improve portability
37564         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37565         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37566
37567 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37568
37569         update-copyright: support @copyright{} and &copy;
37570         * build-aux/update-copyright: Implement and document.
37571         * tests/test-update-copyright.sh: Test.
37572
37573 2009-08-04  Jim Meyering  <meyering@redhat.com>
37574
37575         update-copyright-tests: correctly test EOL=\r\n handling
37576         * tests/test-update-copyright.sh: Put \r at the end of some lines
37577         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37578
37579         maint.mk: make update-copyright exclusion list more configurable
37580         * top/maint.mk (update-copyright): Default to excluding COPYING,
37581         but allow an override, in case someone does want to update that file.
37582
37583         maint.mk: don't update copyright date in COPYING
37584         * top/maint.mk (update-copyright): Exclude COPYING.
37585
37586         maint.mk: add a copyright-updating rule
37587         * top/maint.mk (update-copyright): New rule.
37588         Derived from coreutils/Makefile.am.
37589
37590         update-copyright: rename some variables
37591         * build-aux/update-copyright: Rename a few variables for clarity.
37592         Tweak syntax.  List Joel E. Denny as coauthor.
37593
37594 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37595
37596         update-copyright: fix bug for 2-digit last year and add tests
37597         * build-aux/update-copyright: Fix bug.
37598         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37599         specified.
37600         * modules/update-copyright-tests: New
37601         * tests/test-update-copyright.sh: New.
37602
37603 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37604
37605         update-copyright: handle leading tabs in line prefix
37606         * build-aux/update-copyright: Count leading tabs as 8 spaces
37607         when computing margin.  This helps with the formatting of
37608         ChangeLogs, for example.
37609         Fix documentation a little.
37610
37611 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37612
37613         update-copyright: support EOL=\r\n
37614         * build-aux/update-copyright: Implement that.
37615
37616 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37617
37618         update-copyright: automatically format copyright statements
37619         * build-aux/update-copyright: Implement that.
37620         Also, be a little more predictable and safer by always failing
37621         when the full copyright format is not perfectly recognized as an
37622         unbroken whole.  Discussed at
37623         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37624         Rewrite documentation.
37625
37626 2009-08-03  Bruno Haible  <bruno@clisp.org>
37627
37628         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37629
37630 2009-08-02  Bruno Haible  <bruno@clisp.org>
37631
37632         Tests for module 'uname'.
37633         * modules/uname-tests: New file.
37634         * tests/test-uname.c: New file.
37635
37636         New module 'uname'.
37637         * lib/uname.c: New file.
37638         * m4/uname.m4: New file.
37639         * modules/uname: New file.
37640         * doc/posix-functions/uname.texi: Mention the new module.
37641
37642 2009-08-02  Bruno Haible  <bruno@clisp.org>
37643
37644         Tests for module 'sys_utsname'.
37645         * modules/sys_utsname-tests: New file.
37646         * tests/test-sys_utsname.c: New file.
37647
37648         New module 'sys_utsname'.
37649         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37650         * m4/sys_utsname_h.m4: New file.
37651         * modules/sys_utsname: New file.
37652         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37653
37654 2009-08-02  Bruno Haible  <bruno@clisp.org>
37655
37656         Implicitly initialize the sockets library.
37657         * lib/gethostname.c: Include sockets.h.
37658         (rpl_gethostname): Invoke gl_sockets_startup.
37659         * lib/socket.c: Include sockets.h.
37660         (rpl_socket): Invoke gl_sockets_startup.
37661         * modules/gethostname (Depends-on): Add sockets.
37662         * modules/socket (Depends-on): Likewise.
37663         * tests/test-poll.c: Don't include sockets.h.
37664         (main): Don't invoke gl_sockets_startup.
37665         * tests/test-select.c: Don't include sockets.h.
37666         (main): Don't invoke gl_sockets_startup.
37667
37668 2009-08-02  Bruno Haible  <bruno@clisp.org>
37669
37670         Allow multiple calls to gl_sockets_startup.
37671         * lib/sockets.c (initialized_sockets_version): New variable.
37672         (gl_sockets_startup): Do nothing if already called for this or a higher
37673         version.
37674         (gl_sockets_cleanup): Reset initialized_sockets_version.
37675
37676 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37677
37678         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37679         different project/version.
37680
37681 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37682             Bruno Haible  <bruno@clisp.org>
37683
37684         Tests for module 'pipe-filter-gi'.
37685         * modules/pipe-filter-gi-tests: New file.
37686         * tests/test-pipe-filter-gi1.sh: New file.
37687         * tests/test-pipe-filter-gi1.c: New file.
37688         * tests/test-pipe-filter-gi2.sh: New file.
37689         * tests/test-pipe-filter-gi2-main.c: New file.
37690         * tests/test-pipe-filter-gi2-child.c: New file.
37691
37692         New module 'pipe-filter-gi'.
37693         * lib/pipe-filter-gi.c: New file.
37694         * modules/pipe-filter-gi: New file.
37695
37696 2009-08-02  Bruno Haible  <bruno@clisp.org>
37697             Paolo Bonzini  <bonzini@gnu.org>
37698
37699         Tests for module 'pipe-filter-ii'.
37700         * modules/pipe-filter-ii-tests: New file.
37701         * tests/test-pipe-filter-ii1.sh: New file.
37702         * tests/test-pipe-filter-ii1.c: New file.
37703         * tests/test-pipe-filter-ii2.sh: New file.
37704         * tests/test-pipe-filter-ii2-main.c: New file.
37705         * tests/test-pipe-filter-ii2-child.c: New file.
37706
37707         New module 'pipe-filter-ii'.
37708         * lib/pipe-filter.h: New file.
37709         * lib/pipe-filter-ii.c: New file.
37710         * lib/pipe-filter-aux.h: New file.
37711         * modules/pipe-filter-ii: New file.
37712
37713 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37714
37715         * lib/gc-libgcrypt.c: Change copyright to FSF.
37716         * lib/gc-gnulib.c: Likewise.
37717
37718 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37719
37720         * lib/gethostname.c: Include limits.h.
37721
37722 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37723             Bruno Haible  <bruno@clisp.org>
37724
37725         Ensure HOST_NAME_MAX as part of the gethostname module.
37726         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37727         define also HOST_NAME_MAX.
37728         * tests/test-gethostname.c: Include <limits.h>.
37729         (main): Check also HOST_NAME_MAX.
37730         * doc/posix-headers/limits.texi: Document the mingw problem.
37731
37732 2009-08-02  Bruno Haible  <bruno@clisp.org>
37733
37734         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37735         Add comments.
37736
37737 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37738
37739         * lib/gethostname.c: Add Windows wrapper.
37740         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37741         * modules/gethostname: Depend on sys_socket & errno, for also
37742         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37743         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37744
37745 2009-07-31  Jim Meyering  <meyering@redhat.com>
37746
37747         getloadavg: fix symbol name in comment
37748         * lib/getloadavg.c: Correct a typo I introduced when adding
37749         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37750         Matt Kraai spotted the problem.
37751
37752 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37753
37754         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37755         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37756         code also if ! defined N_NAME_POINTER.
37757         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37758         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37759         but the n_name member is a 12-byte array.
37760
37761 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37762
37763         update-copyright: generalize comment handling
37764         * build-aux/update-copyright: Handle copyright statements
37765         within more comment styles.
37766         Document usage.
37767         Report any file with an external copyright holder or parse failure.
37768
37769 2009-07-29  Jim Meyering  <meyering@redhat.com>
37770
37771         mktime: correct setting of REPLACE_MKTIME
37772         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37773
37774         update-copyright: new module
37775         * modules/update-copyright: New file.
37776         * build-aux/update-copyright: New file.
37777         * MODULES.html.sh (maint+release support): Add update-copyright.
37778
37779 2009-07-27  Bruno Haible  <bruno@clisp.org>
37780
37781         Fix compilation error when <ctime> is used and mktime is replaced.
37782         * lib/time.in.h (mktime): New declaration.
37783         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37784         REPLACE_MKTIME instead of defining mktime in config.h.
37785         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37786         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37787         Reported by Ross McFarland <rwmcfa1@neces.com>.
37788
37789 2009-07-27  Bruno Haible  <bruno@clisp.org>
37790
37791         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37792         Reported by Matt Kraai <mkraai@beckman.com>.
37793
37794 2009-07-25  Jim Meyering  <meyering@redhat.com>
37795
37796         maint.mk: avoid warnings about missing files
37797         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37798         diagnostic when .prev-version does not exist.
37799         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37800         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37801         nonexistent cfg.mk.
37802         Suggestions from Simon Josefsson.
37803
37804 2009-07-25  Bruno Haible  <bruno@clisp.org>
37805
37806         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37807         defined as macros. Needed on QNX 6.4.1.
37808         Reported by Matt Kraai <mkraai@beckman.com>.
37809
37810 2009-07-23  Jim Meyering  <meyering@redhat.com>
37811
37812         maint.mk: invoke "make dist" with a working value of XZ_OPT
37813         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37814
37815 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37816
37817         Make fseeko.c compile on QNX.
37818         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37819
37820 2009-07-22  Peter Simons  <simons@cryp.to>
37821
37822         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37823         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37824         * lib/md4.h: Likewise.
37825         * lib/md5.h: Likewise.
37826         * lib/sha1.h: Likewise.
37827         * lib/sha256.h: Likewise.
37828         * lib/sha512.h: Likewise.
37829
37830         tests-sha1: don't assign literal string to 'char *' variable
37831         * tests/test-sha1.c (main): Declare locals with "const" to match
37832         attributes of the right hand side.
37833
37834 2009-07-21  Eric Blake  <ebb9@byu.net>
37835
37836         dup2: fix more mingw problems
37837         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37838         fd to itself.
37839         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37840         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37841         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37842         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37843         care of mingw bugs.
37844
37845 2009-07-21  Jim Meyering  <meyering@redhat.com>
37846
37847         vc-list-files: avoid failure when /bin/sh is dash
37848         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37849         On some Debian based systems, /bin/sh is a symlink to dash, and running
37850         this command would omit the "/" following each 'tests' prefix:
37851           dash -x build-aux/vc-list-files -C . tests
37852         That is because bash and dash work differently:
37853           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37854           bash ok
37855           dash odd
37856
37857 2009-07-21  Eric Blake  <ebb9@byu.net>
37858
37859         dup2-tests: test previous patch
37860         * modules/dup2-tests: New file.
37861         * tests/test-dup2.c: Likewise.
37862         * tests/test-open.c (main): Avoid unspecified behavior.
37863         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37864         test.
37865
37866         dup2: work around mingw and cygwin 1.5 bug
37867         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37869         * modules/unistd (Makefile.am): Substitute it.
37870         * lib/unistd.in.h (dup2): Declare the replacement.
37871         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37872         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37873         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37874         * modules/execute (Depends-on): Add dup2.
37875         * modules/fseterr (Depends-on): Likewise.
37876         * modules/pipe (Depends-on): Likewise.
37877         * modules/posix_spawn-internal (Depends-on): Likewise.
37878
37879 2009-07-21  Bruno Haible  <bruno@clisp.org>
37880
37881         * modules/.gitattributes: New file.
37882
37883 2009-07-20  Bruno Haible  <bruno@clisp.org>
37884
37885         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37886         (main): Use it.
37887
37888 2009-07-20  Eric Blake  <ebb9@byu.net>
37889
37890         test-pipe: make a bit more robust.
37891         * tests/test-pipe.c (myerr): Allow error messages regardless of
37892         what we do to stderr.
37893         (test_pipe): Rearrange to avoid deadlock.
37894         (child_main): Try a larger read, to ensure we avoided deadlock.
37895         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37896         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37897         if misused.
37898
37899 2009-07-19  Jim Meyering  <meyering@redhat.com>
37900
37901         fts: avoid false-positive cycle-detection
37902         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37903         for each new command line argument.
37904
37905 2009-07-19  Bruno Haible  <bruno@clisp.org>
37906
37907         Fix build error on mingw with the modules sys_select and unistd.
37908         * modules/acl-tests (Depends-on): Add close.
37909         * modules/binary-io-tests (Depends-on): Likewise.
37910         * modules/closein-tests (Depends-on): Likewise.
37911         * modules/flock-tests (Depends-on): Likewise.
37912         * modules/fsync-tests (Depends-on): Likewise.
37913         * modules/lseek-tests (Depends-on): Likewise.
37914         * modules/pipe-tests (Depends-on): Likewise.
37915         * modules/posix_spawn-tests (Depends-on): Likewise.
37916         * modules/posix_spawnp-tests (Depends-on): Likewise.
37917         * modules/stat-time-tests (Depends-on): Likewise.
37918         * modules/yesno-tests (Depends-on): Likewise.
37919
37920 2009-07-19  Bruno Haible  <bruno@clisp.org>
37921
37922         Unify conditionals.
37923         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37924         macros, not at the compiler macros.
37925         * lib/pipe.c: Likewise.
37926         * lib/execute.c: Likewise.
37927         * lib/spawni.c: Likewise.
37928
37929 2009-07-19  Bruno Haible  <bruno@clisp.org>
37930
37931         Fix handling of closed stdin/stdout/stderr on mingw.
37932         * lib/w32spawn.h: Include unistd.h.
37933         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
37934         file descriptor with O_NOINHERIT flag.
37935         (fd_safer_noinherit): New function, based on fd-safer.c.
37936         (dup_safer_noinherit): New function, based on dup-safer.c.
37937         (undup_safer_noinherit): New function.
37938         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
37939         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
37940         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
37941         instead of fd_safer.
37942         * tests/test-pipe.c: Include <windows.h>.
37943         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
37944         result.
37945
37946         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
37947         from main.
37948         (test_pipe): Pass an extra argument for disambiguation.
37949         (main): Invoke parent_main or child_main.
37950
37951         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
37952         consistently.
37953
37954 2009-07-18  Eric Blake  <ebb9@byu.net>
37955
37956         test-pipe: fix mingw build
37957         * tests/test-pipe.c (main): Avoid fcntl on mingw.
37958
37959 2009-07-18  Bruno Haible  <bruno@clisp.org>
37960
37961         * modules/pipe-tests (Makefile.am): Fix typo.
37962
37963 2009-07-18  Eric Blake  <ebb9@byu.net>
37964
37965         error: fix mingw build
37966         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
37967         Reported by Bruno Haible.
37968
37969         error: avoid undefined use of stdout
37970         * lib/error.c (error, error_at_line): Check that fd 1 is open
37971         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
37972         is handling faults and the close_stdout module wants to report the
37973         detection of closed stdout as an error.
37974
37975 2009-07-17  Eric Blake  <ebb9@byu.net>
37976
37977         pipe: be robust in face of closed fds
37978         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
37979         should cause child to misbehave.
37980         * modules/pipe-tests: New module.
37981         * tests/test-pipe.c: New file.
37982         * tests/test-pipe.sh: New file.
37983         Reported by Akim Demaille.
37984
37985 2009-07-14  Bruno Haible  <bruno@clisp.org>
37986
37987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
37988         Reported by anonymous kc.
37989
37990 2009-07-07  Jim Meyering  <meyering@redhat.com>
37991
37992         maint.mk: don't look for translatable strings in *.m4 or *.mk
37993         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
37994         when searching for translatable strings.
37995
37996 2009-07-05  Jim Meyering  <meyering@redhat.com>
37997
37998         remove superfluous parentheses in STREQ definition
37999         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38000         * lib/getugroups.c (STREQ): Likewise.
38001         * lib/fnmatch.c (STREQ): Likewise.
38002         Spotted by Bruno Haible.
38003
38004 2009-07-04  Jim Meyering  <meyering@redhat.com>
38005
38006         argv-iter: new module
38007         * MODULES.html.sh: Add argv-iter.
38008         * lib/argv-iter.c, lib/argv-iter.h: New files.
38009         * modules/argv-iter: New file.
38010         * modules/argv-iter-tests: New file.
38011         * tests/test-argv-iter.c: Test it.
38012
38013 2009-07-04  Bruno Haible  <bruno@clisp.org>
38014
38015         Fix assertion.
38016         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38017         contains more exact copies of a given entry than file2, leave the extra
38018         copies unpaired rather than aborting.
38019         Reported by Eric Blake.
38020
38021 2009-07-02  Bruno Haible  <bruno@clisp.org>
38022
38023         Speedup git-merge-changelog for git cherry-pick.
38024         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38025         (entries_mapping_get): New function, extracted from compute_mapping.
38026         (entries_mapping_reverse_get): New function.
38027         (compute_mapping): Add a 'full' argument. Return the result in a
38028         'struct entries_mapping'.
38029         (main): Update. Access the mappings through entries_mapping_get.
38030         Reported by Eric Blake.
38031
38032 2009-07-02  Bruno Haible  <bruno@clisp.org>
38033
38034         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38035         best_i.
38036
38037 2009-07-02  Bruno Haible  <bruno@clisp.org>
38038
38039         Speed up approximate search for matching ChangeLog entries.
38040         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38041         argument. Call fstrcmp_bounded instead of fstrcmp.
38042         (compute_mapping, try_split_merged_entry, main): Update callers.
38043
38044 2009-07-02  Bruno Haible  <bruno@clisp.org>
38045
38046         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38047
38048 2009-06-30  Bruno Haible  <bruno@clisp.org>
38049
38050         Reduce the number of uc_is_cased calls.
38051         * lib/unicase.h (casing_suffix_context_t): Add
38052         'first_char_except_ignorable' field.
38053         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38054         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38055         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38056         Update initializer.
38057         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38058         case-ignorable characters.
38059         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38060         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38061         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38062         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38063         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38064
38065 2009-06-30  Bruno Haible  <bruno@clisp.org>
38066
38067         Tests for module 'unicase/ignorable'.
38068         * modules/unicase/ignorable-tests: New file.
38069         * tests/unicase/test-ignorable.c: New file, generated by
38070         gen-uni-tables.
38071
38072         Tests for module 'unicase/cased'.
38073         * modules/unicase/cased-tests: New file.
38074         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38075         * tests/unicase/test-predicate-part1.h: New file, derived from
38076         tests/unictype/test-predicate-part1.h.
38077         * tests/unicase/test-predicate-part2.h: New file, same as
38078         tests/unictype/test-predicate-part2.h.
38079
38080         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38081         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38082         (output_casing_properties): New function.
38083         (main): Call it.
38084         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38085         * lib/unicase/cased.c: Include unictype/bitmap.h.
38086         (uc_is_cased): Define through a bitmap lookup.
38087         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38088         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38089         (uc_is_case_ignorable): Define through a bitmap lookup.
38090         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38091         lib/unictype/bitmap.h.
38092         (Depends-on): Add inline. Clean up.
38093         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38094         lib/unictype/bitmap.h.
38095         (Depends-on): Add inline. Clean up.
38096         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38097         recognition.
38098         * tests/unicase/test-u16-tolower.c (main): Likewise.
38099         * tests/unicase/test-u32-tolower.c (main): Likewise.
38100
38101 2009-06-30  Bruno Haible  <bruno@clisp.org>
38102
38103         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38104         * lib/unicase/u16-casemap.c: Likewise.
38105         * lib/unicase/u32-casemap.c: Likewise.
38106
38107 2009-06-29  Bruno Haible  <bruno@clisp.org>
38108
38109         Define u32_casefold as a wrapper around u32_ct_casefold.
38110         * lib/unicase/u32-casefold.c: Update.
38111         * modules/unicase/u32-casefold (Depends-on): Add
38112         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38113         unicase/empty-suffix-context. Clean up.
38114
38115         Define u16_casefold as a wrapper around u16_ct_casefold.
38116         * lib/unicase/u16-casefold.c: Update.
38117         * modules/unicase/u16-casefold (Depends-on): Add
38118         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38119         unicase/empty-suffix-context. Clean up.
38120
38121         Define u8_casefold as a wrapper around u8_ct_casefold.
38122         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38123         * lib/unicase/u8-casefold.c: Update.
38124         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38125         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38126
38127         Define u32_totitle as a wrapper around u32_ct_totitle.
38128         * lib/unicase/u32-totitle.c: Update.
38129         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38130         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38131
38132         Define u16_totitle as a wrapper around u16_ct_totitle.
38133         * lib/unicase/u16-totitle.c: Update.
38134         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38135         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38136
38137         Define u8_totitle as a wrapper around u8_ct_totitle.
38138         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38139         functions.
38140         (FUNC): Delegate to U_CT_TOTITLE.
38141         * lib/unicase/u8-totitle.c: Update.
38142         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38143         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38144
38145         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38146         invocation.
38147         * modules/unicase/u32-tolower (Depends-on): Add
38148         unicase/empty-prefix-context, unicase/empty-suffix-context.
38149
38150         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38151         invocation.
38152         * modules/unicase/u16-tolower (Depends-on): Add
38153         unicase/empty-prefix-context, unicase/empty-suffix-context.
38154
38155         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38156         * modules/unicase/u8-tolower (Depends-on): Add
38157         unicase/empty-prefix-context, unicase/empty-suffix-context.
38158
38159         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38160         invocation.
38161         * modules/unicase/u32-toupper (Depends-on): Add
38162         unicase/empty-prefix-context, unicase/empty-suffix-context.
38163
38164         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38165         invocation.
38166         * modules/unicase/u16-toupper (Depends-on): Add
38167         unicase/empty-prefix-context, unicase/empty-suffix-context.
38168
38169         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38170         * modules/unicase/u8-toupper (Depends-on): Add
38171         unicase/empty-prefix-context, unicase/empty-suffix-context.
38172
38173         New module 'unicase/u32-ct-casefold'.
38174         * lib/unicase/u32-ct-casefold.c: New file.
38175         * modules/unicase/u32-ct-casefold: New file.
38176
38177         New module 'unicase/u16-ct-casefold'.
38178         * lib/unicase/u16-ct-casefold.c: New file.
38179         * modules/unicase/u16-ct-casefold: New file.
38180
38181         New module 'unicase/u8-ct-casefold'.
38182         * lib/unicase/u8-ct-casefold.c: New file.
38183         * lib/unicase/u-ct-casefold.h: New file, derived from
38184         lib/unicase/u-casefold.h.
38185         * modules/unicase/u8-ct-casefold: New file.
38186
38187         New module 'unicase/u32-ct-totitle'.
38188         * lib/unicase/u32-ct-totitle.c: New file.
38189         * modules/unicase/u32-ct-totitle: New file.
38190
38191         New module 'unicase/u16-ct-totitle'.
38192         * lib/unicase/u16-ct-totitle.c: New file.
38193         * modules/unicase/u16-ct-totitle: New file.
38194
38195         New module 'unicase/u8-ct-totitle'.
38196         * lib/unicase/u8-ct-totitle.c: New file.
38197         * lib/unicase/u-ct-totitle.h: New file, derived from
38198         lib/unicase/u-totitle.h.
38199         * modules/unicase/u8-ct-totitle: New file.
38200
38201         New module 'unicase/u32-ct-tolower'.
38202         * lib/unicase/u32-ct-tolower.c: New file.
38203         * modules/unicase/u32-ct-tolower: New file.
38204
38205         New module 'unicase/u16-ct-tolower'.
38206         * lib/unicase/u16-ct-tolower.c: New file.
38207         * modules/unicase/u16-ct-tolower: New file.
38208
38209         New module 'unicase/u8-ct-tolower'.
38210         * lib/unicase/u8-ct-tolower.c: New file.
38211         * modules/unicase/u8-ct-tolower: New file.
38212
38213         New module 'unicase/u32-ct-toupper'.
38214         * lib/unicase/u32-ct-toupper.c: New file.
38215         * modules/unicase/u32-ct-toupper: New file.
38216
38217         New module 'unicase/u16-ct-toupper'.
38218         * lib/unicase/u16-ct-toupper.c: New file.
38219         * modules/unicase/u16-ct-toupper: New file.
38220
38221         New module 'unicase/u8-ct-toupper'.
38222         * lib/unicase/u8-ct-toupper.c: New file.
38223         * modules/unicase/u8-ct-toupper: New file.
38224
38225         Add context arguments to u*_casemap functions.
38226         * lib/unicase/unicasemap.h: Include unicase.h.
38227         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38228         suffix_context arguments.
38229         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38230         functions.
38231         (FUNC): Add prefix_context and suffix_context arguments. Use
38232         uc_is_cased and uc_is_case_ignorable.
38233         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38234         * lib/unicase/u16-casemap.c: Likewise.
38235         * lib/unicase/u32-casemap.c: Likewise.
38236         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38237         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38238         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38239         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38240         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38241         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38242
38243         New module 'unicase/u32-suffix-context'.
38244         * lib/unicase/u32-suffix-context.c: New file.
38245         * modules/unicase/u32-suffix-context: New file.
38246
38247         New module 'unicase/u16-suffix-context'.
38248         * lib/unicase/u16-suffix-context.c: New file.
38249         * modules/unicase/u16-suffix-context: New file.
38250
38251         New module 'unicase/u8-suffix-context'.
38252         * lib/unicase/u8-suffix-context.c: New file.
38253         * lib/unicase/u-suffix-context.h: New file.
38254         * modules/unicase/u8-suffix-context: New file.
38255
38256         New module 'unicase/empty-suffix-context'.
38257         * lib/unicase/empty-suffix-context.c: New file.
38258         * modules/unicase/empty-suffix-context: New file.
38259
38260         New module 'unicase/u32-prefix-context'.
38261         * lib/unicase/u32-prefix-context.c: New file.
38262         * modules/unicase/u32-prefix-context: New file.
38263
38264         New module 'unicase/u16-prefix-context'.
38265         * lib/unicase/u16-prefix-context.c: New file.
38266         * modules/unicase/u16-prefix-context: New file.
38267
38268         New module 'unicase/u8-prefix-context'.
38269         * lib/unicase/u8-prefix-context.c: New file.
38270         * lib/unicase/u-prefix-context.h: New file.
38271         * lib/unicase/context.h: New file.
38272         * modules/unicase/u8-prefix-context: New file.
38273
38274         New module 'unicase/empty-prefix-context'.
38275         * lib/unicase/empty-prefix-context.c: New file.
38276         * modules/unicase/empty-prefix-context: New file.
38277
38278         New module 'unicase/ignorable'.
38279         * lib/unicase/ignorable.c: New file.
38280         * modules/unicase/ignorable: New file.
38281
38282         New module 'unicase/cased'.
38283         * lib/unicase/caseprop.h: New file.
38284         * lib/unicase/cased.c: New file.
38285         * modules/unicase/cased: New file.
38286
38287         New functions for case mapping of substrings.
38288         * lib/unicase.h (casing_prefix_context_t): New type.
38289         (unicase_empty_prefix_context): New variable.
38290         (u8_casing_prefix_context, u16_casing_prefix_context,
38291         u32_casing_prefix_context, u8_casing_prefixes_context,
38292         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38293         declarations.
38294         (casing_suffix_context_t): New type.
38295         (unicase_empty_suffix_context): New variable.
38296         (u8_casing_suffix_context, u16_casing_suffix_context,
38297         u32_casing_suffix_context, u8_casing_suffixes_context,
38298         u16_casing_suffixes_context, u32_casing_suffixes_context,
38299         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38300         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38301         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38302         declarations.
38303
38304 2009-06-28  Jim Meyering  <meyering@redhat.com>
38305
38306         boostrap: indent only with spaces
38307         * build-aux/bootstrap: Indent only with spaces, never TABs.
38308
38309         bootstrap: split long lines
38310         * build-aux/bootstrap: Keep line length < 80.
38311
38312         bootstrap: sync from coreutils
38313         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38314         just as autoreconf does.  Verify a list of prerequisite
38315         package-name,version-number pairs if defined in bootstrap.conf.
38316         Refer to README-prereq, if prerequisites are not satisfied.
38317
38318 2009-06-27  Eric Blake  <ebb9@byu.net>
38319
38320         tests: add test for bogus NULL definition
38321         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38322         * tests/test-stdlib.c: Likewise.
38323         * tests/test-string.c: Likewise.
38324         * tests/test-locale.c: Likewise.
38325         * tests/test-unistd.c: Likewise.
38326         * modules/stdio-tests (Depends-on): Add verify.
38327         * modules/stdlib-tests (Depends-on): Likewise.
38328         * modules/string-tests (Depends-on): Likewise.
38329         * modules/locale-tests (Depends-on): Likewise.
38330         * modules/unistd-tests (Depends-on): Likewise.
38331
38332 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38333
38334         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38335         self-explaining comment.
38336         * m4/selinux-selinux-h: Update serial.
38337         (gl_LIBSELINUX): New macro, adding a warning for missing development
38338         packages to code extracted from...
38339         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38340         Add warning for missing development packages here, too.
38341
38342 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38343
38344         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38345
38346 2009-06-25  Eric Blake  <ebb9@byu.net>
38347
38348         version-etc: fix regression
38349         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38350         gcc.
38351         (version_etc): Use it, to catch bugs with trailing NULL.
38352         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38353         (version_etc_va): Fix logic bug.
38354         * modules/version-etc-tests: Add test.
38355         * tests/test-version-etc.c: New file.
38356         * tests/test-version-etc.sh: Likewise.
38357
38358 2009-06-25  Sam Steingold  <sds@gnu.org>
38359
38360         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38361         mbtowc declaration.
38362
38363 2009-06-25  Eric Blake  <ebb9@byu.net>
38364
38365         fpurge: migrate into <stdio.h>
38366         * lib/fpurge.h: Delete...
38367         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38368         * lib/fpurge.c (fpurge): Change declaring header.
38369         * modules/fpurge (Files): Drop deleted file.
38370         (Depends-on): Add stdio.
38371         (configure.ac): Set witness.
38372         * modules/stdio (Makefile.am): Support fpurge macros.
38373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38374         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38375         * lib/fflush.c: Update client.
38376         * tests/test-fpurge.c: Likewise.
38377         * NEWS: Mention the change.
38378
38379 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38380
38381         * lib/argp-version-etc.c (program_authors): Add const
38382         qualifier.
38383         * lib/version-etc.c: Fix typos in the comments.
38384         * modules/argp-version-etc: Depends on version-etc.
38385
38386 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38387
38388         argp-version-etc: new module.
38389
38390         * lib/argp-version-etc.c: New file.
38391         * lib/argp-version-etc.h: New file.
38392         * modules/argp-version-etc: New file.
38393         * modules/argp-version-etc-tests: New file.
38394         * tests/test-argp-version-etc.c: New test.
38395         * tests/test-argp-version-etc-1.sh: New test.
38396
38397 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38398
38399         Provide additional interfaces and documentation for version-etc
38400         module.
38401
38402         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38403         interfaces.
38404         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38405         prototypes.
38406
38407 2009-06-24  Bruno Haible  <bruno@clisp.org>
38408
38409         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38410         HAVE_LIB${NAME} macro.
38411         Reported by Sam Steingold <sds@gnu.org>.
38412
38413 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38414
38415         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38416         needed.
38417
38418 2009-06-21  Bruno Haible  <bruno@clisp.org>
38419
38420         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38421         work.
38422         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38423         together with LIB${NAME}, LTLIB${NAME}.
38424         Reported by Sam Steingold <sds@gnu.org>.
38425
38426 2009-06-20  Jim Meyering  <meyering@redhat.com>
38427
38428         tests: make sc_require_test_exit_idiom more generic
38429         * top/maint.mk (Exit_witness_file): New overridable variable.
38430         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38431         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38432
38433 2009-06-19  Jim Meyering  <meyering@redhat.com>
38434
38435         hash: reverse order of src/dst parameters in an internal interface
38436         * lib/hash.c (transfer_entries): Reverse order of parameters to
38437         put DST before SRC.  Adjust callers.
38438
38439         tests: test-hash: avoid wholesale duplication
38440         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38441         Instead, use a loop and add a single conditional.
38442
38443         tests: test-hash: allow seed selection via a command line argument
38444         * tests/test-hash.c (get_seed): New function.
38445         (main): Use it.
38446
38447 2009-06-19  Eric Blake  <ebb9@byu.net>
38448
38449         hash: avoid memory leak on allocation failure
38450         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38451         failure.  Factor repeated algorithm...
38452         (transfer_entries): ...into new helper routine.
38453         (hash_delete): React to hash_rehash return value.
38454
38455         hash: reduce memory pressure in hash_rehash no-op case
38456         * lib/hash.c (next_prime): Avoid overflow.
38457         (hash_initialize): Factor bucket size computation...
38458         (compute_bucket_size): ...into new helper function.
38459         (hash_rehash): Use new function and open coding to reduce memory
38460         pressure, and avoid a memory leak in USE_OBSTACK code.
38461         Reported by Jim Meyering.
38462
38463 2009-06-18  Eric Blake  <ebb9@byu.net>
38464
38465         hash: make rotation more obvious
38466         * modules/hash (Depends-on): Add bitrotate and stdint.
38467         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38468         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38469         (SIZE_MAX): Rely on headers for definition.
38470         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38471         (raw_hasher): Use rotr_sz.
38472         Suggested by Jim Meyering.
38473
38474         hash: fix memory leak in last patch
38475         * lib/hash.c (hash_rehash): Avoid memory leak.
38476
38477         hash: avoid no-op rehashing
38478         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38479
38480         hash: provide default callback functions
38481         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38482         (hash_initialize): Use them as defaults.
38483         * tests/test-hash.c (main): Test this.
38484
38485         hash: minor optimization
38486         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38487         when possible.
38488         (hash_initialize): Document this promise.
38489         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38490         * tests/test-hash.c (hash_compare_strings): Test this.
38491
38492 2009-06-18  Bruno Haible  <bruno@clisp.org>
38493
38494         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38495         going to be replaced anyway.
38496
38497 2009-06-18  Bruno Haible  <bruno@clisp.org>
38498
38499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38500         in one place.
38501         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38502         be replaced anyway.
38503
38504 2009-06-18  Eric Blake  <ebb9@byu.net>
38505
38506         hash: check for resize before insertion
38507         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38508         threshold before insertion, so that a pathological hash_rehash
38509         that fills every bucket can still trigger another rehash.
38510
38511 2009-06-18  Jim Meyering  <meyering@redhat.com>
38512
38513         hash-tests: add a loop around the small tests
38514         * tests/test-hash.c (main): Repeat small tests with selected
38515         small initial table sizes.
38516
38517 2009-06-17  Eric Blake  <ebb9@byu.net>
38518
38519         hash: minor cleanups
38520         * lib/hash.h (hash_entry): Make opaque, by moving...
38521         * lib/hash.c (hash_entry): ...here.
38522         (hash_insert): Clarify restrictions on what can be inserted.
38523         (hash_get_next): Clarify when it is safe to remove an element
38524         during traversal.
38525         (check_tuning): Skip verification when tuning is known safe.
38526         (hash_initialize): Clarify restrictions on tuning.
38527
38528 2009-06-17  Jim Meyering  <jim@meyering.net>
38529         and Eric Blake  <ebb9@byu.net>
38530
38531         hash-tests: new module
38532         * modules/hash-tests: New file.
38533         * tests/test-hash.c: New file.
38534
38535 2009-06-17  Eric Blake  <ebb9@byu.net>
38536
38537         strstr-simple: document new module
38538         * MODULES.html.sh: Document new module.
38539
38540         strstr, strcasestr: replace on platforms with broken memchr
38541         * modules/strstr: Split into...
38542         * modules/strstr-simple: ...new module that does not care about
38543         performance, but does care about glibc bug.
38544         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38545         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38546         if platform memchr is broken, per Debian bug 521737.
38547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38548         memchr.
38549         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38550         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38551         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38552         * modules/mountlist (Depends-on): Add strstr-simple.
38553         * modules/gen-uni-tables (Depends-on): Likewise.
38554         * modules/argz (Depends-on): Add strstr.
38555
38556 2009-06-17  Bruno Haible  <bruno@clisp.org>
38557
38558         * modules/posix_spawn-internal (Depends-on): Add errno.
38559
38560 2009-06-17  Bruno Haible  <bruno@clisp.org>
38561
38562         Define missing ESTALE on Interix 3.5.
38563         * lib/errno.in.h (ESTALE): Assign a value if missing.
38564         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38565         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38566         missing.
38567         * doc/posix-headers/errno.texi: Mention the Interix bug.
38568         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38569
38570 2009-06-15  Eric Blake  <ebb9@byu.net>
38571
38572         memchr, memchr2: add valgrind exception
38573         * lib/memchr.valgrind: New file.
38574         * lib/memchr2.valgrind: New file.
38575         * modules/memchr (Files): Distribute valgrind file.
38576         * modules/memchr2 (Files): Likewise.
38577
38578         docs: memchr is no longer obsolete
38579         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38580         * lib/string.in.h (memchr): Simplify logic.
38581
38582 2009-06-14  Jim Meyering  <meyering@redhat.com>
38583
38584         link-follow: fix the "checking..." message to not mention trailing slash
38585         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38586         never considered trailing slashes.
38587
38588 2009-06-14  Bruno Haible  <bruno@clisp.org>
38589
38590         * m4/memchr.m4: Mention also the bug on IA-64.
38591         * doc/posix-functions/memchr.texi: Likewise.
38592
38593 2009-06-12  Eric Blake  <ebb9@byu.net>
38594
38595         memchr: detect broken x86_64 and alpha implementations
38596         * modules/memchr-tests (Depends-on): Move mmap detection...
38597         * modules/memchr (Depends-on): ...here.
38598         (configure.ac): Set indicator.
38599         * lib/string.in.h (memchr): Declare replacement.
38600         * modules/string (Makefile.am): Trigger replacement.
38601         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38602         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38603         bugs.
38604         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38605         * modules/getpagesize (License): Relax license.
38606
38607 2009-06-11  Bruno Haible  <bruno@clisp.org>
38608
38609         * lib/idpriv.h: Add more references.
38610
38611 2009-06-08  Bruno Haible  <bruno@clisp.org>
38612
38613         Tests for module 'idpriv-droptemp'.
38614         * modules/idpriv-droptemp-tests: New file.
38615         * tests/test-idpriv-droptemp.sh: New file.
38616         * tests/test-idpriv-droptemp.su.sh: New file.
38617         * tests/test-idpriv-droptemp.c: New file.
38618
38619         New module 'idpriv-droptemp'.
38620         * lib/idpriv-droptemp.c: New file.
38621         * modules/idpriv-droptemp: New file.
38622
38623 2009-06-08  Bruno Haible  <bruno@clisp.org>
38624
38625         Tests for module 'idpriv-drop'.
38626         * modules/idpriv-drop-tests: New file.
38627         * tests/test-idpriv-drop.sh: New file.
38628         * tests/test-idpriv-drop.su.sh: New file.
38629         * tests/test-idpriv-drop.c: New file.
38630
38631         New module 'idpriv-drop'.
38632         * lib/idpriv.h: New file.
38633         * lib-idpriv-drop.c: New file.
38634         * m4/idpriv.m4: New file.
38635         * modules/idpriv-drop: New file.
38636
38637 2009-06-08  Bruno Haible  <bruno@clisp.org>
38638
38639         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38640         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38641         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38642         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38643         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38644         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38645         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38646
38647 2009-06-08  Eric Blake  <ebb9@byu.net>
38648
38649         test-strstr: use memory fence, when possible
38650         * tests/test-strstr.c (main): Use memory fence, in order to be
38651         more likely to trigger Debian bug 521737.
38652         * modules/strstr-tests (Files): Pull in additional files.
38653
38654         memchr: no longer obsolete, for wider field testing
38655         * modules/memchr (Status, Notice): Delete, this module is no
38656         longer obsolete.
38657         * modules/vasnprintf (Depends-on): Add memchr.
38658
38659 2009-06-07  Jim Meyering  <meyering@redhat.com>
38660
38661         hash: declare some functions with the warn_unused_result attribute
38662         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38663
38664 2009-06-07  Bruno Haible  <bruno@clisp.org>
38665
38666         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38667         Reported by Eric Blake.
38668
38669 2009-06-06  Eric Blake  <ebb9@byu.net>
38670
38671         test-alignof: fix typo with long double
38672         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38673         compiler error.
38674
38675 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38676
38677         Escape non-texinfo { and }s.
38678         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38679         markup error.
38680
38681 2009-06-04  Jim Meyering  <meyering@redhat.com>
38682
38683         gitlog-to-changelog: don't infloop on an empty commit log
38684         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38685         Reported by Boris Petersen <transacid@centerim.org>.
38686
38687 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38688
38689         version-etc: extend for packagers
38690         Add three new configure options, intended for packagers:
38691           --with-packager="packager name"
38692           --with-packager-version="packager-specific version"
38693           --with-packager-bug-reports="packager bug reporting"
38694         An example with coreutils:
38695           $ ./configure \
38696             --with-packager=Gentoo \
38697             --with-packager-bug-report=http://bugs.gentoo.org/ \
38698             --with-packager-version="patchset 1.6"
38699           $ ./src/ls --version | head -n2
38700           ls (GNU coreutils) 7.1-dirty
38701           Packaged by Gentoo (patchset 1.6)
38702         Note that the bug reporting info via --help doesn't show up because
38703         coreutils uses its own custom emit_bug_reporting_address() implementation
38704         in src/system.h.  If it didn't, it'd look like:
38705           $ ./src/ls --help | tail -n4
38706           Report bugs to <bug-coreutils@gnu.org>.
38707           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38708           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38709           General help using GNU software: <http://www.gnu.org/gethelp/>.
38710         * lib/version-etc.c: Print new information, if provided.
38711         * m4/version-etc.m4: New file.
38712         * modules/version-etc (Files): Add m4/version-etc.m4.
38713         (configure.ac): Add gl_VERSION_ETC.
38714
38715 2009-05-31  Bruno Haible  <bruno@clisp.org>
38716
38717         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38718         and 'int64_t'.
38719         * modules/alignof-tests (Dependencies): Add stdint.
38720         Reported by Eric Blake.
38721
38722 2009-05-31  Bruno Haible  <bruno@clisp.org>
38723
38724         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38725         restriction due to compiler bugs.
38726         Reported by Eric Blake.
38727
38728 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38729             Bruno Haible  <bruno@clisp.org>
38730
38731         Fix test-alignof failure.
38732         * lib/alignof.h (alignof_slot): New macro.
38733         (alignof_type): New macro, with the same semantics as the previous
38734         'alignof'.
38735         (alignof): Alias to alignof_slot.
38736         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38737         check that the results are usable as constant expressions.
38738
38739 2009-05-31  Bruno Haible  <bruno@clisp.org>
38740
38741         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38742         * tests/test-memchr.c (main): Check that memchr does not read past the
38743         first occurrence of the byte.
38744         * tests/test-strstr.c (main): Update comment.
38745         Suggested by Eric Blake.
38746
38747 2009-05-30  Bruno Haible  <bruno@clisp.org>
38748
38749         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38750         detail how to use dumpbin.
38751         Reported by David Byron <dbyron@dbyron.com>.
38752
38753 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38754
38755         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38756
38757 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38758
38759         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38760
38761 2009-05-28  Bruno Haible  <bruno@clisp.org>
38762
38763         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38764         build-aux/ files.
38765
38766 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38767
38768         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38769
38770 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38771
38772         * gnulib-tool (sed_transform_main_lib_file)
38773         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38774         regexps.
38775
38776 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38777
38778         * tests/test-strstr.c: Add another self-test.
38779         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38780         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38781
38782 2009-05-23  Bruno Haible  <bruno@clisp.org>
38783
38784         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38785         change.
38786
38787 2009-05-21  Bruno Haible  <bruno@clisp.org>
38788
38789         Simplify use of mode_t varargs.
38790         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38791         uses 'mode_t' or 'int'.
38792         * lib/openat.c (openat): Likewise.
38793         * lib/open-safer.c (open_safer): Likewise.
38794         * m4/mode_t.m4: New file.
38795         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38796         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38797         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38798         * modules/open (Files): Add m4/mode_t.m4.
38799         * modules/openat (Files): Likewise.
38800         * modules/fcntl-safer (Files): Likewise.
38801         Suggested by Eric Blake.
38802
38803 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38804
38805         * doc/glibc-functions/fallocate.texi: New file.
38806         * doc/gnulib.texi: Include it.
38807
38808 2009-05-21  Eric Blake  <ebb9@byu.net>
38809             Bruno Haible  <bruno@clisp.org>
38810
38811         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38812         invocations.
38813         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38814
38815 2009-05-21  Eric Blake  <ebb9@byu.net>
38816             Bruno Haible  <bruno@clisp.org>
38817
38818         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38819         include_next. Fix of 2008-11-20 commit.
38820         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38821         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38822         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38823         NEXT_MATH_H.
38824         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38825         instead of NEXT_MATH_H.
38826
38827 2009-05-21  Bruno Haible  <bruno@clisp.org>
38828
38829         Avoid redefinition warnings for SIZE_MAX.
38830         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38831         Reported by Simon Josefsson.
38832
38833 2009-05-21  Bruno Haible  <bruno@clisp.org>
38834
38835         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38836         AC_CACHE_VAL.
38837
38838 2009-05-20  Bruno Haible  <bruno@clisp.org>
38839
38840         Make zeroptr.h work on mingw.
38841         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38842         mprotect.
38843         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38844         * modules/memchr2-tests (configure.ac): Likewise.
38845         * modules/memcmp-tests (configure.ac): Likewise.
38846         * modules/memmem-tests (configure.ac): Likewise.
38847         * modules/memrchr-tests (configure.ac): Likewise.
38848         Reported by Simon Josefsson.
38849
38850 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38851
38852         * tests/test-glob.c: Include string.h for strcmp prototype.
38853
38854 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38855
38856         * modules/getdelim (Depends-on): Add explicit stdint, although it
38857         was implicitly already pulled in via realloc-posix.
38858         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38859
38860 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38861
38862         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38863         G. Christensen" <tgc@jupiterrise.com>.
38864         * m4/sys_socket_h.m4: Check for sa_family_t.
38865         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38866         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38867         * tests/test-sys_socket.c: Check that sa_family_t works.
38868
38869 2009-05-18  Eric Blake  <ebb9@byu.net>
38870
38871         maint.mk: allow gnulib_dir in VPATH build
38872         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38873
38874 2009-05-15  Jim Meyering  <meyering@redhat.com>
38875
38876         maint.mk: Give gnulib_dir a default definition.
38877         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38878         Thus, most packages no longer need to specify this variable in cfg.mk
38879
38880 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38881
38882         rename.m4: fix typos that would make non-mingw cross-configure fail
38883         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38884
38885 2009-05-13  Eric Blake  <ebb9@byu.net>
38886
38887         mmap-anon: avoid out-of-order autoconf expansion
38888         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38889         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38890         * modules/memchr-tests (Depends-on): Add extensions.
38891         * modules/memchr2-tests (Depends-on): Add extensions.
38892         * modules/memcmp-tests (Depends-on): Add extensions.
38893         * modules/memmem-tests (Depends-on): Add extensions.
38894         * modules/memrchr-tests (Depends-on): Add extensions.
38895
38896 2009-05-13  Bruno Haible  <bruno@clisp.org>
38897
38898         Make some tests ISO C 99 compliant.
38899         * tests/zerosize-ptr.h: New file.
38900         * tests/test-memchr.c: Include zerosize-ptr.h.
38901         (main): Use a zero-size object pointer instead of NULL.
38902         * tests/test-memchr2.c: Include zerosize-ptr.h.
38903         (main): Use a zero-size object pointer instead of NULL.
38904         * tests/test-memcmp.c: Include zerosize-ptr.h.
38905         (main): Use a zero-size object pointer instead of NULL.
38906         * tests/test-memmem.c: Include zerosize-ptr.h.
38907         (main): Use a zero-size object pointer instead of NULL.
38908         * tests/test-memrchr.c: Include zerosize-ptr.h.
38909         (main): Use a zero-size object pointer instead of NULL.
38910         * modules/memchr-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/memchr2-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         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38919         m4/mmap-anon.m4.
38920         (Depends-on): Add getpagesize.
38921         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38922         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38923         m4/mmap-anon.m4.
38924         (Depends-on): Add getpagesize.
38925         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38926         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38927         m4/mmap-anon.m4.
38928         (Depends-on): Add getpagesize.
38929         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38930
38931 2009-05-12  Bruno Haible  <bruno@clisp.org>
38932
38933         Tests for module 'alignof'.
38934         * modules/alignof-tests: New file.
38935         * tests/test-alignof.c: New file.
38936
38937 2009-05-12  Bruno Haible  <bruno@clisp.org>
38938
38939         Fix alignof macro.
38940         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
38941         vendor compilers that are always correct.
38942
38943 2009-05-12  Bruno Haible  <bruno@clisp.org>
38944
38945         Make the MAP_ANONYMOUS detection work on HP-UX 11.
38946         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
38947         not whether its fully works.
38948
38949 2009-05-12  Bruno Haible  <bruno@clisp.org>
38950
38951         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
38952
38953 2009-05-12  Jim Meyering  <meyering@redhat.com>
38954
38955         * top/maint.mk: Adjust backslash alignment.
38956
38957 2009-05-11  Simon Josefsson  <simon@josefsson.org>
38958
38959         * top/maint.mk: Make $(srcdir)/build-aux configurable.
38960
38961 2009-05-11  Eric Blake  <ebb9@byu.net>
38962
38963         argp: avoid undefined behavior
38964         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
38965         macros.
38966
38967 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38968
38969         * tests/test-vc-list-files-git.sh: Do git config of user.email and
38970         user.name to prevent git commit from complaining.
38971
38972 2009-05-10  Bruno Haible  <bruno@clisp.org>
38973
38974         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
38975         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
38976         it rewrites every file name only once.
38977         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
38978
38979 2009-05-08  Bruno Haible  <bruno@clisp.org>
38980
38981         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
38982         instead of 'max'.
38983
38984 2009-05-08  Simon Josefsson  <simon@josefsson.org>
38985
38986         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
38987         sockaddr_storage test.
38988
38989 2009-05-07  Simon Josefsson  <simon@josefsson.org>
38990
38991         * modules/sys_socket (Makefile.am): Substitute
38992         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
38993         * m4/sys_socket_h.m4: Check for sockaddr_storage.
38994         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
38995         * tests/test-sys_socket.c: Check sockaddr_storage.
38996
38997 2009-05-08  Bruno Haible  <bruno@clisp.org>
38998
38999         New module 'alignof'.
39000         * lib/alignof.h: New file.
39001         * modules/alignof: New file.
39002
39003 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39004             Bruno Haible  <bruno@clisp.org>
39005
39006         Fix test-file-has-acl on FreeBSD.
39007         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39008         mask is implicitly added.
39009         * tests/test-file-has-acl.c: Include <signal.h>.
39010         (main): Terminate the test after 5 seconds.
39011         * modules/acl-tests (configure.ac): Check for alarm function.
39012
39013 2009-05-04  Bruno Haible  <bruno@clisp.org>
39014
39015         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39016         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39017         * modules/errno (configure.ac): Drop AC_REQUIRE.
39018         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39019         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39020
39021 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39022
39023         * modules/glob-tests: New module.
39024         * tests/test-glob.c: Add.
39025
39026 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39027
39028         * modules/fnmatch-tests: New module.
39029         * tests/test-fnmatch.c: Add.
39030
39031 2009-05-04  Eric Blake  <ebb9@byu.net>
39032
39033         maint: make the new no-submodule-changes rule VPATH-safe
39034         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39035
39036 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39037             Bruno Haible  <bruno@clisp.org>
39038
39039         acl: Fix infinite loop on FreeBSD.
39040         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39041         of return value from acl_get_entry.
39042         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39043         Likewise.
39044
39045 2009-05-03  Bruno Haible  <bruno@clisp.org>
39046
39047         * lib/acl-internal.h (acl_entries): Clarify return value.
39048         * lib/acl_entries.c (acl_entries): Likewise.
39049
39050 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39051
39052         Bug fix in acl module.
39053         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39054
39055 2009-05-03  Bruno Haible  <bruno@clisp.org>
39056
39057         Create gperf-generated file in the source dir, not in the build dir.
39058         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39059         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39060         * modules/unicase/locale-language (unicase/locale-languages.h):
39061         Likewise.
39062         * modules/unicase/special-casing (unicase/special-casing-table.h):
39063         Likewise.
39064         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39065         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39066         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39067         Reported by Ralf Wildenhues.
39068
39069 2009-05-03  Bruno Haible  <bruno@clisp.org>
39070
39071         * modules/fnmatch (Description, configure.ac): Taken from
39072         fnmatch-posix.
39073         * modules/fnmatch-posix: Turn into a symbolic reference to the
39074         'fnmatch' module, and deprecate.
39075         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39076
39077 2009-05-03  Bruno Haible  <bruno@clisp.org>
39078
39079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39080         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39081         Reported by Ralf Wildenhues.
39082
39083 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39084
39085         * m4/fnmatch.m4: Fix fnmatch re-define.
39086
39087 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39088
39089         priv-set: new module and tests; adapt write-any-file
39090         * lib/priv-set.c: New file.
39091         * lib/priv-set.h: New file.
39092         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39093         * lib/write-any-file.c: Simplify by using priv-set module.
39094         * m4/priv-set.m4: New file.
39095         * modules/priv-set: New file.
39096         * modules/unlinkdir: Add dependency on priv-set module.
39097         * modules/write-any-file: Likewise.
39098
39099         Tests for module 'priv-set'.
39100         * modules/priv-set-tests: New file.
39101         * tests/test-priv-set.c: New file.
39102
39103 2009-05-03  Jim Meyering  <meyering@redhat.com>
39104             Bruno Haible  <bruno@clisp.org>
39105
39106         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39107         use the converted UTF-8 variant of the name instead.
39108
39109 2009-05-03  Jim Meyering  <meyering@redhat.com>
39110
39111         tests: tighten some getdate tests
39112         * tests/test-getdate.c (main): Tighten tests: require equality,
39113         not just greater than.  Set TZ envvar to UTC0.
39114
39115 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39116
39117         getdate: correctly interpret "next monday" when run on a Monday
39118         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39119         that e.g., "next tues" (when run on a tuesday) results in a date
39120         that is one week in the future, and not today's date.
39121         I.e., add a week when the wday is the same as the current one.
39122         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39123         and earlier by Martin Bernreuther and Jan Minář.
39124         * tests/test-getdate.c (main): Check that "next DAY" is always in
39125         the future and that "last DAY" is always in the past.
39126
39127 2009-05-02  Jim Meyering  <meyering@redhat.com>
39128
39129         build: ensure that a release build fails when a submodule is unclean
39130         * top/maint.mk (no-submodule-changes): New rule.
39131         (alpha beta major): Depend on it.
39132
39133 2009-05-02  Bruno Haible  <bruno@clisp.org>
39134
39135         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39136         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39137         shell variable gl_fnmatch_required to detect which variant is
39138         requested.
39139         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39140         gl_FUNC_FNMATCH_POSIX.
39141         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39142         exclude fnmatch-posix.
39143
39144 2009-05-02  Bruno Haible  <bruno@clisp.org>
39145
39146         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39147         * modules/mbsrtowcs (License): Change to LGPLv2+.
39148         * modules/strnlen1 (License): Likewise.
39149         Reported by Simon Josefsson.
39150
39151 2009-05-02  Bruno Haible  <bruno@clisp.org>
39152
39153         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39154         "cross".
39155         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39156         gnulib-tool was called with option --source-base=lib.
39157
39158 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39159
39160         Use automake *-local hooks without commands, for extensibility.
39161         * modules/localcharset (Makefile.am): Rename install-exec-local
39162         rule to install-exec-localcharset, and make it a prerequisite of
39163         install-exec-local.  Likewise, rename the uninstall-local rule to
39164         uninstall-localcharset, and make it a prerequisite of the former.
39165
39166 2009-05-01  Bruno Haible  <bruno@clisp.org>
39167
39168         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39169         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39170         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39171         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39172         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39173         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39174         m4/locale-zh.m4, m4/codeset.m4.
39175
39176         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39177         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39178         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39179         m4/locale-zh.m4.
39180
39181         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39182         REPLACE_WCRTOMB if mbstate_t must be replaced.
39183         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39184         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39185
39186 2009-05-01  Bruno Haible  <bruno@clisp.org>
39187
39188         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39189         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39190         dngettext, dcngettext, textdomain, bindtextdomain,
39191         bind_textdomain_codeset): Undefine before redefining.
39192
39193 2009-04-30  Bruno Haible  <bruno@clisp.org>
39194
39195         Fix bug introduced on 2009-04-25.
39196         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39197         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39198         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39199         is defined.
39200         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39201         is defined.
39202         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39203         is defined.
39204         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39205
39206 2009-04-28  Bruno Haible  <bruno@clisp.org>
39207
39208         Comment tweaks.
39209         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39210         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39211         * lib/unicase.h (u*_casexfrm): Likewise.
39212         Reported by Paolo Bonzini.
39213
39214 2009-04-28  Bruno Haible  <bruno@clisp.org>
39215
39216         Fix a compilation error.
39217         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39218         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39219         Reported by Jim Meyering.
39220
39221 2009-04-27  Bruno Haible  <bruno@clisp.org>
39222
39223         New module 'libunistring'.
39224         * modules/libunistring: New file.
39225         * m4/libunistring.m4: New file.
39226         * MODULES.html.sh (Unicode string functions): Add it.
39227
39228 2009-04-27  Eric Blake  <ebb9@byu.net>
39229
39230         maint.mk: allow package-specific header to provide <config.h>
39231         * top/maint.mk (sc_require_config_h): New variable.
39232         (sc_require_config_h, sc_require_config_h_first): Use it.
39233
39234 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39235
39236         * top/maint.mk (sc_avoid_if_before_free): Except
39237         useless-if-before-free script.
39238
39239 2009-04-27  Eric Blake  <ebb9@byu.net>
39240
39241         maintainer-makefile: depend on all required helper scripts
39242         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39243         useless-if-before-free.
39244         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39245         version, rather than assuming gnulib checkout is available.
39246         Reported by Simen Josefsson.
39247
39248 2009-04-26  Bruno Haible  <bruno@clisp.org>
39249
39250         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39251         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39252         "../" or "..".
39253
39254 2009-04-26  Bruno Haible  <bruno@clisp.org>
39255
39256         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39257         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39258         AC_LIB_HAVE_LINKFLAGS.
39259
39260 2009-04-26  Bruno Haible  <bruno@clisp.org>
39261
39262         Simplify calling convention of u*_conv_from_encoding.
39263         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39264         u32_conv_from_encoding): Expect a resultbuf argument and return the
39265         result directly as a pointer.
39266         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39267         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39268         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39269         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39270         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39271         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39272         Update.
39273         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39274         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39275         * lib/vasnprintf.c (VASNPRINTF): Update.
39276         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39277         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39278         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39279         * NEWS: Mention the change.
39280
39281 2009-04-26  Bruno Haible  <bruno@clisp.org>
39282
39283         Simplify calling convention of u*_conv_to_encoding.
39284         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39285         u32_conv_to_encoding): Expect a resultbuf argument and return the
39286         result directly as a pointer.
39287         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39288         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39289         freeing scaled_offsets if mem_iconveha failed.
39290         * lib/unicase/u-casexfrm.h (FUNC): Update.
39291         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39292         * lib/vasnprintf.c (VASNPRINTF): Update.
39293         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39294         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39295         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39296         * NEWS: Mention the change.
39297
39298 2009-04-26  Bruno Haible  <bruno@clisp.org>
39299
39300         Avoid test failures on AIX and OSF/1.
39301         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39302         malloc(0).
39303         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39304         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39305         Likewise.
39306         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39307         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39308         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39309         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39310         * doc/posix-functions/malloc.texi: Document the portability problem
39311         related to malloc(0).
39312
39313 2009-04-26  Bruno Haible  <bruno@clisp.org>
39314
39315         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39316         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39317         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39318
39319 2009-04-25  Bruno Haible  <bruno@clisp.org>
39320
39321         Avoid link error when creating a namespace clean library.
39322         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39323         as macro with arguments if already defined as an alias.
39324         * lib/signbitf.c (gl_signbitf): Don't undefine.
39325         * lib/signbitd.c (gl_signbitd): Don't undefine.
39326         * lib/signbitl.c (gl_signbitl): Don't undefine.
39327
39328 2009-04-25  Jim Meyering  <meyering@redhat.com>
39329
39330         vc-list-files: fix another quoting bug
39331         * build-aux/vc-list-files: Avoid sed backslash expansion
39332         of pathological directory names.
39333
39334 2009-04-25  Eric Blake  <ebb9@byu.net>
39335
39336         vc-list-files: fix shell quoting error
39337         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39338         timestamp.
39339
39340 2009-04-25  Jim Meyering  <meyering@redhat.com>
39341
39342         vc-list-files: restore lost functionality with subdir argument
39343         * build-aux/vc-list-files: When given a non-"." sub-directory
39344         argument, substitute the $dir/ prefix back onto each resulting name.
39345         Otherwise, coreutils' root_tests check would fail.
39346
39347 2009-04-24  Eric Blake  <ebb9@byu.net>
39348
39349         vc-list-files: ignore git symlinks
39350         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39351         than ls-files, to ignore git symlinks.
39352
39353         maint.mk: import improvements from m4
39354         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39355         (move_if_change): Delete unused macro.
39356         (news-date-check, vc-diff-check): Support VPATH builds.
39357         (announcement): Likewise.  Split --bootstrap-tools list...
39358         (boostrap-tools): ...into separate list, which can be overridden
39359         in cfg.mk.
39360         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39361         requiring dependency on useless-if-before-free module.
39362         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39363         Support VPATH builds.
39364
39365 2009-04-24  Jim Meyering  <meyering@redhat.com>
39366
39367         maint.mk: remove coreutils-specific rules and variables
39368         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39369         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39370         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39371
39372         maint.mk: remove obsolete rule
39373         * top/maint.mk (rel-check): Remove rule.
39374         (WGET, WGETFLAGS): Remove now-unused variables.
39375
39376 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39377
39378         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39379         consistency.
39380
39381         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39382         '$(PATH_SEPARATOR)' instead of ':'.
39383
39384 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39385
39386         * lib/getopt1.c (main): Use 'const' for static array.
39387
39388 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39389
39390         * top/maint.mk: Sync with coreutils.
39391         * NEWS: Explain incompatibilities.
39392
39393 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39394             Bruno Haible  <bruno@clisp.org>
39395
39396         Fix cross-compilation results.
39397         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39398         statement, as third argument of AC_TRY_RUN.
39399         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39400         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39401         Likewise.
39402         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39403         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39404         Likewise.
39405         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39406         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39407         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39408
39409 2009-04-20  Bruno Haible  <bruno@clisp.org>
39410
39411         Avoid test failure on mingw.
39412         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39413
39414 2009-04-20  Bruno Haible  <bruno@clisp.org>
39415
39416         Avoid compilation error on mingw.
39417         * modules/localename-tests (Depends-on): Add locale.
39418
39419 2009-04-19  Bruno Haible  <bruno@clisp.org>
39420
39421         Support for building a shared library on Windows platforms.
39422         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39423         (main): Test the presence of UNINORM_NFC here.
39424         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39425         (main): Test the presence of UNINORM_NFD here.
39426         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39427         (main): Test the presence of UNINORM_NFKC here.
39428         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39429         (main): Test the presence of UNINORM_NFKD here.
39430
39431 2009-04-19  Bruno Haible  <bruno@clisp.org>
39432
39433         Avoid a compiler warning.
39434         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39435         Change type of variable 'sequence'.
39436
39437 2009-04-19  Bruno Haible  <bruno@clisp.org>
39438
39439         * modules/configmake (Makefile.am): When the contents of configmake.h
39440         does not change, arrange to preserve its modification time.
39441
39442 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39443
39444         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39445         gettext domain.
39446
39447 2009-04-16  Jim Meyering  <meyering@redhat.com>
39448
39449         useless-if-before-free: improve conversion code
39450         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39451         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39452
39453 2009-04-14  Bruno Haible  <bruno@clisp.org>
39454
39455         * modules/fcntl (Depends-on): Add extensions.
39456         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39457
39458 2009-04-12  Ben Pfaff  <blp@gnu.org>
39459
39460         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39461         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39462
39463 2009-03-20  Ben Pfaff  <blp@gnu.org>
39464
39465         Make rename replace existing destinations on Windows.
39466         * m4/rename.m4: Add test for Mingw.
39467         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39468         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39469         * doc/posix-functions/rename.texi: Document.
39470
39471 2009-04-10  Bruno Haible  <bruno@clisp.org>
39472
39473         New include file "iconveh.h".
39474         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39475         * lib/striconveh.h: Include it.
39476         (enum iconv_ilseq_handler): Remove definition.
39477         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39478         striconveh.h.
39479         * lib/striconveha.c: Include striconveh.h.
39480         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39481         * modules/striconveh (Files): Add lib/iconveh.h.
39482         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39483         lib/striconveh.h.
39484
39485 2009-04-10  Bruno Haible  <bruno@clisp.org>
39486
39487         * lib/uniconv.h: Update comment.
39488
39489 2009-04-10  Bruno Haible  <bruno@clisp.org>
39490
39491         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39492         always.
39493         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39494         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39495         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39496         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39497         "unistring-notinline.h", so that the function gets defined always.
39498         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39499         * lib/unistr/u8-uctomb.c: Likewise.
39500         * lib/unistr/u16-mbtouc.c: Likewise.
39501         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39502         * lib/unistr/u16-uctomb.c: Likewise.
39503         * lib/unistr/u32-mbtouc.c: Likewise.
39504         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39505         * lib/unistr/u32-uctomb.c: Likewise.
39506
39507 2009-04-10  Bruno Haible  <bruno@clisp.org>
39508
39509         Mark 'utime' obsolete.
39510         * modules/utime (Status, Notice): New sections.
39511         Suggested by Jim Meyering.
39512
39513         Fix cross-compile guess for utime test.
39514         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39515         autoconf.
39516         * doc/posix-functions/utime.texi: Give more precisions.
39517         Reported by Jan <ipif@ymail.com>.
39518
39519 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39520
39521         filevercmp: correct today's change
39522         * lib/filevercmp.c: Also handle coreutils' test inputs.
39523         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39524
39525         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39526         for reporting it.
39527         * lib/filevercmp.c: Special handle for "", "." and "..".
39528         * tests/test-filevercmp.c: Enlarge the set suite.
39529
39530 2009-04-07  Jim Meyering  <meyering@redhat.com>
39531
39532         useless-if-before-free: show how to remove braced useless free, too
39533         * build-aux/useless-if-before-free: still only in a comment, though.
39534
39535 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39536
39537         maint.mk: import changes to syntax-check macros from coreutils
39538         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39539         Use them in the relevant macros.
39540
39541 2009-04-06  Bruno Haible  <bruno@clisp.org>
39542
39543         Fix unportable use of bit-fields.
39544         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39545         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39546         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39547
39548 2009-04-06  Bruno Haible  <bruno@clisp.org>
39549
39550         Avoid test failures on AIX and OSF/1.
39551         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39552         that malloc(0) = NULL.
39553         * tests/unicase/test-u8-tolower.c (check): Likewise.
39554         * tests/unicase/test-u8-totitle.c (check): Likewise.
39555         * tests/unicase/test-u8-toupper.c (check): Likewise.
39556         * tests/unicase/test-u16-casefold.c (check): Likewise.
39557         * tests/unicase/test-u16-tolower.c (check): Likewise.
39558         * tests/unicase/test-u16-totitle.c (check): Likewise.
39559         * tests/unicase/test-u16-toupper.c (check): Likewise.
39560         * tests/unicase/test-u32-casefold.c (check): Likewise.
39561         * tests/unicase/test-u32-tolower.c (check): Likewise.
39562         * tests/unicase/test-u32-totitle.c (check): Likewise.
39563         * tests/unicase/test-u32-toupper.c (check): Likewise.
39564         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39565         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39566         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39567         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39568         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39569         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39570         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39571         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39572         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39573         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39574         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39575         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39576
39577 2009-04-05  Bruno Haible  <bruno@clisp.org>
39578
39579         Work around an autoconf limitation.
39580         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39581         comment line if it would be longer than 3 KB.
39582
39583 2009-04-05  Bruno Haible  <bruno@clisp.org>
39584
39585         Avoid test failure with libiconv-1.13.
39586         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39587         of the expected test results.
39588
39589 2009-04-05  Bruno Haible  <bruno@clisp.org>
39590
39591         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39592         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39593         that it should be installed.
39594
39595 2009-04-05  Bruno Haible  <bruno@clisp.org>
39596
39597         * gnulib-tool: New option --copy-file.
39598         (func_usage): Document it.
39599         (func_dest_tmpfilename): Moved out of func_import.
39600         (func_add_file, func_update_file): New functions, extracted from
39601         func_import.
39602         (func_import): Update.
39603
39604 2009-04-05  Karl Berry  <karl@gnu.org>
39605
39606         * README: prominently mention gnulib-tool.
39607         Rearrange sections so getting the code is near the top.
39608
39609 2009-04-05  Bruno Haible  <bruno@clisp.org>
39610
39611         * lib/unicase.h: Mention u*_cmp2.
39612         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39613         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39614         * lib/unicase/ulc-casecmp.c: Likewise.
39615         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39616         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39617         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39618         unistr/u8-cmp.
39619         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39620         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39621         unistr/u16-cmp.
39622         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39623         unistr/u32-cmp.
39624
39625         * lib/uninorm.h: Mention u*_cmp2.
39626         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39627         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39628         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39629         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39630         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39631         unistr/u8-cmp.
39632         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39633         unistr/u16-cmp.
39634         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39635         unistr/u32-cmp.
39636
39637         New module 'unistr/u32-cmp2'.
39638         * lib/unistr/u32-cmp2.c: New file.
39639         * modules/unistr/u32-cmp2: New file.
39640
39641         New module 'unistr/u16-cmp2'.
39642         * lib/unistr/u16-cmp2.c: New file.
39643         * modules/unistr/u16-cmp2: New file.
39644
39645         New module 'unistr/u8-cmp2'.
39646         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39647         * lib/unistr/u8-cmp2.c: New file.
39648         * lib/unistr/u-cmp2.h: New file.
39649         * modules/unistr/u8-cmp2: New file.
39650
39651 2009-04-05  Bruno Haible  <bruno@clisp.org>
39652
39653         * lib/unictype.h (uc_property_is_valid): New macro.
39654         * tests/unictype/test-pr_byname.c (main): Use it.
39655
39656         * lib/unistr.h: Doc fixes.
39657         * lib/uniconv.h: Doc fixes.
39658         * lib/unictype.h: Doc fixes.
39659
39660 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39661
39662         Port coreutils 7.2 to Solaris 8.
39663
39664         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39665         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39666         for Solaris 8.  This is a bit of a hack, as it means it's the
39667         caller's responsibility to add -lnsl if needed, but most likely it
39668         won't be needed since only getaddrinfo uses this and getaddrinfo
39669         isn't needed on Solaris 8.
39670
39671         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39672         problem to Solaris 8 encountered with coreutils 7.2, which
39673         resulted in a message "fnmatch.c:292: warning: passing argument 4
39674         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39675         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39676
39677 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39678
39679         * m4/ld-version-script.m4: Add FIXME comment.
39680
39681 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39682
39683         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39684         SOVERSION variable.
39685
39686 2009-04-02  Bruno Haible  <bruno@clisp.org>
39687
39688         * Makefile (info, html, dvi, pdf): Combine the rules.
39689         Suggested by Jim Meyering.
39690
39691 2009-04-01  Bruno Haible  <bruno@clisp.org>
39692
39693         * Makefile (info, html, dvi, pdf): New targets.
39694         Reported by Reuben Thomas <rrt@sc3d.org>.
39695
39696 2009-04-01  Bruno Haible  <bruno@clisp.org>
39697
39698         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39699         can be put into PATH.
39700         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39701
39702 2009-04-01  Bruno Haible  <bruno@clisp.org>
39703
39704         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39705
39706 2009-04-01  Bruno Haible  <bruno@clisp.org>
39707
39708         Rename module 'visibility'.
39709         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39710         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39711         * doc/gnulib.texi: Update.
39712         * MODULES.html.sh (Misc): Update.
39713         * NEWS: Mention the change.
39714
39715 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39716
39717         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39718         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39719         Eric Blake <ebb9@byu.net> for review.
39720         * MODULES.html.sh: Add lib-msvc-compat.
39721         * doc/gnulib.texi: Link to new section.
39722         * m4/ld-output-def.m4: New file.
39723         * doc/ld-output-def.texi: New file.
39724
39725 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39726
39727         Rename ld-version-script to lib-symbol-versions.  Suggested by
39728         Bruno Haible <bruno@clisp.org>.
39729         * modules/ld-version-script: Renamed to lib-symbol-versions.
39730         * doc/ld-version-script.texi: Fix module name.
39731         * MODULES.html.sh: Add lib-symbol-versions.
39732
39733 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39734
39735         * modules/u64-tests: New file.
39736         * tests/test-u64.c: New file.
39737
39738 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39739
39740         * MODULES.html.sh: Mention u64.
39741         * modules/u64: New module.
39742         * modules/crypto/sha512: Depend on u64 module instead of providing
39743         u64.h.
39744
39745 2009-03-27  Eric Blake  <ebb9@byu.net>
39746
39747         test-strerror: make debugging EAI_SYSTEM easier
39748         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39749         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39750         failure was EAI_SYSTEM.
39751
39752 2009-03-25  Bruno Haible  <bruno@clisp.org>
39753
39754         Fix a problem with --enable-relocatable on Solaris 7.
39755         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39756         since 2008-02-24.
39757
39758 2009-03-25  Eric Blake  <ebb9@byu.net>
39759
39760         test-sockets: avoid gcc warning
39761         * tests/test-sockets.c (main): Silence compiler warning.
39762
39763 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39764
39765         New modules nproc, pthread, contributed by Glen Lenker.
39766
39767         * MODULES.html.sh: Add pthread, nproc.
39768         * lib/nproc.c: New file.
39769         * lib/nproc.h: New file.
39770         * lib/pthread.in.h: New file.
39771         * m4/pthread.m4: New file.
39772         * modules/nproc: New file.
39773         * modules/pthread: New file.
39774
39775 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39776
39777         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39778         New variable.
39779
39780 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39781
39782         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39783         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39784         * tests/test-filevercmp.c: Add tests for backup suffixes.
39785
39786 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39787
39788         * modules/stdlib (Depends-on): Add stdint, needed when defining
39789         struct random_data on, for example, HP-UX 10.20.  Reported by
39790         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39791
39792 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39793
39794         * lib/readline.c (readline): Call fflush on stdout after printing
39795         prompt.
39796
39797 2009-03-20  Bruno Haible  <bruno@clisp.org>
39798
39799         Remove dependency from 'close' module to -lws2_32 on native Windows.
39800         * lib/close-hook.h: New file.
39801         * lib/close-hook.c: New file.
39802         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39803         w32sock.h.
39804         (_gl_close_fd_maybe_socket): Remove function.
39805         (rpl_close): Invoke execute_all_close_hooks instead of
39806         _gl_close_fd_maybe_socket.
39807         * lib/sockets.c: Include close-hook.h, w32sock.h.
39808         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39809         (close_sockets_hook): New variable.
39810         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39811         (gl_sockets_cleanup): Unregister it.
39812         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39813         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39814         * modules/close-hook: New file.
39815         * modules/close (Files): Remove lib/w32sock.h.
39816         (Depends-on): Add close-hook.
39817         (Link): Remove section.
39818         * modules/sockets (Files): Add lib/w32sock.h.
39819         (Depends-on): Add close-hook.
39820         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39821         invocation.
39822         * NEWS: Mention that LIB_CLOSE is gone.
39823
39824 2009-03-23  Eric Blake  <ebb9@byu.net>
39825
39826         signal-tests: test previous patch
39827         * tests/test-signal.c: New file.
39828         * modules/signal-tests: Likewise.
39829
39830         signal.h: always support 'volatile sig_atomic_t'
39831         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39832         (gl_SIGNAL_H_DEFAULTS): Add a default.
39833         * modules/signal (Makefile.am): Substitute if needed.
39834         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39835         users can blindly add volatile.
39836         * doc/posix-headers/signal.texi (signal.h): Document it.
39837         Reported by Matthew Woehlke.
39838
39839 2009-03-23  Jim Meyering  <meyering@redhat.com>
39840
39841         pathmax: PATH_MAX: use pathconf only when available
39842         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39843         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39844         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39845         This avoids a link failure in a PSP cross-compilation environment
39846         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39847
39848         * lib/vasnprintf.c (divide): Fix typo in comment.
39849
39850 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39851
39852         * gnulib-tool (func_filter_filelist): Fix comment.
39853
39854 2009-03-20  Bruno Haible  <bruno@clisp.org>
39855
39856         Make sockets.h self-contained.
39857         * lib/sockets.c: Include sockets.h first.
39858         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39859
39860 2009-03-19  Eric Blake  <ebb9@byu.net>
39861
39862         doc: mention more functions added in cygwin 1.7.0
39863         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39864         addition.
39865         * doc/posix-functions/log2f.texi: Likewise.
39866
39867 2009-03-19  Jim Meyering  <meyering@redhat.com>
39868
39869         fsusage: avoid syntax error due to statement-before-declaration
39870         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39871         after all declarations.  Reported by Matthew Woehlke in
39872         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39873
39874 2009-03-18  Eric Blake  <ebb9@byu.net>
39875
39876         build-aux/compile: sync from automake
39877         * build-aux/compile: New file, from automake.
39878         * config/srclist.txt: Mention build-aux/compile.
39879
39880 2009-03-17  Bruno Haible  <bruno@clisp.org>
39881
39882         * lib/git-merge-changelog.c: Fix typo in comment.
39883         Reported by Reuben Thomas <rrt@sc3d.org>.
39884
39885 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39886
39887         * m4/regex.m4: update and improve help for
39888         --without-included-regex.
39889
39890 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39891
39892         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39893         failure on missing include files.
39894
39895 2009-03-17  Eric Blake  <ebb9@byu.net>
39896
39897         doc: mention more functions added in cygwin 1.7.0
39898         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39899         addition.
39900         * doc/posix-functions/fwscanf.texi: Likewise.
39901         * doc/posix-functions/swprintf.texi: Likewise.
39902         * doc/posix-functions/swscanf.texi: Likewise.
39903         * doc/posix-functions/vfwprintf.texi: Likewise.
39904         * doc/posix-functions/vfwscanf.texi: Likewise.
39905         * doc/posix-functions/vswprintf.texi: Likewise.
39906         * doc/posix-functions/vswscanf.texi: Likewise.
39907         * doc/posix-functions/vwprintf.texi: Likewise.
39908         * doc/posix-functions/vwscanf.texi: Likewise.
39909         * doc/posix-functions/wcscasecmp.texi: Likewise.
39910         * doc/posix-functions/wcsdup.texi: Likewise.
39911         * doc/posix-functions/wcsftime.texi: Likewise.
39912         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39913         * doc/posix-functions/wprintf.texi: Likewise.
39914         * doc/posix-functions/wscanf.texi: Likewise.
39915         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39916
39917 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39918
39919         maint.mk: really add $(AM_MAKEFLAGS)
39920         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39921         was inadvertently omitted in the last commit.
39922         Spotted by Bruno Haible.
39923
39924         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39925         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39926         $(AM_MAKEFLAGS)' rather than plain `make'.
39927
39928         gnulib-tool: execute $MAKE not make
39929         * gnulib-tool: Default $MAKE to 'make'.
39930         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
39931         than make.  Initialize $MAKE in the do-autobuild script.
39932
39933         gnulib-tool: use $MAKE not make in generated files
39934         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
39935         make, in generated files.  Initialize $MAKE in the do-autobuild
39936         script.
39937
39938         * top/GNUmakefile (_have-git-version-gen): Fix typo.
39939
39940         GNUmakefile: disable parallelism only for multiple, recursive targets
39941         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
39942         additions in the Makefile.
39943         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
39944         by Automake.
39945         (.NOTPARALLEL): Only disable parallel builds if multiple targets
39946         are listed on the command line and at least one of them is
39947         listed in $(ALL_RECURSIVE_TARGETS).
39948
39949 2009-03-14  Bruno Haible  <bruno@clisp.org>
39950
39951         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
39952         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
39953         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
39954         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
39955         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
39956         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
39957         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
39958         unistr/u8-uctomb.
39959         * modules/unistr/u8-strchr (Depends-on): Likewise.
39960         * modules/unistr/u8-strrchr (Depends-on): Likewise.
39961         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
39962         unistr/u16-uctomb.
39963         * modules/unistr/u16-strchr (Depends-on): Likewise.
39964         * modules/unistr/u16-strrchr (Depends-on): Likewise.
39965
39966 2009-03-12  Bruno Haible  <bruno@clisp.org>
39967
39968         Work around select() bug on Interix 3.5.
39969         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
39970         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
39971         * m4/select.m4: New file.
39972         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
39973         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
39974         * modules/select (Files): Add m4/select.m4.
39975         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
39976         * modules/nanosleep (Depends-on): Add select.
39977         * modules/poll (Depends-on): Likewise.
39978         * doc/posix-functions/select.texi: Mention the Interix bug.
39979         Reported by Markus Duft <mduft@gentoo.org>.
39980
39981         * lib/select.c: Renamed from lib/winsock-select.c.
39982         * modules/select (Files): Add lib/select.c, remove
39983         lib/winsock-select.c.
39984         (configure.ac): Update.
39985
39986 2009-03-12  Jim Meyering  <meyering@redhat.com>
39987
39988         avoid gcc warnings about unused macro definitions
39989         * lib/readtokens.c (STREQ): Remove unused definition.
39990         * lib/xmalloc.c (SIZE_MAX): Likewise.
39991         * lib/openat-die.c (N_): Likewise.
39992         * lib/mountlist.c (SIZE_MAX): Remove definition.
39993         Instead, include <stdint.h>.
39994         * lib/readutmp.c: Likewise.
39995         * modules/readutmp (Depends-on): Add stdint.
39996         * modules/mountlist (Depends-on): Add stdint.
39997         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
39998
39999 2009-03-10  Bruno Haible  <bruno@clisp.org>
40000
40001         Tests for module 'mbmemcasecoll'.
40002         * modules/mbmemcasecoll-tests: New file.
40003         * tests/test-mbmemcasecoll1.sh: New file.
40004         * tests/test-mbmemcasecoll2.sh: New file.
40005         * tests/test-mbmemcasecoll3.sh: New file.
40006         * tests/test-mbmemcasecoll.c: New file.
40007
40008         New module 'mbmemcasecoll'.
40009         * lib/mbmemcasecoll.h: New file.
40010         * lib/mbmemcasecoll.c: New file.
40011         * modules/mbmemcasecoll: New file.
40012
40013         * tests/test-mbmemcasecmp.h: New file, extracted from
40014         tests/test-mbmemcasecmp.c.
40015         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40016         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40017         (main): Update.
40018         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40019
40020 2009-03-09  Bruno Haible  <bruno@clisp.org>
40021
40022         Tests for module 'mbmemcasecmp'.
40023         * modules/mbmemcasecmp-tests: New file.
40024         * tests/test-mbmemcasecmp1.sh: New file.
40025         * tests/test-mbmemcasecmp2.sh: New file.
40026         * tests/test-mbmemcasecmp3.sh: New file.
40027         * tests/test-mbmemcasecmp.c: New file.
40028
40029         New module 'mbmemcasecmp'.
40030         * lib/mbmemcasecmp.h: New file.
40031         * lib/mbmemcasecmp.c: New file.
40032         * modules/mbmemcasecmp: New file.
40033
40034 2009-03-09  Bruno Haible  <bruno@clisp.org>
40035
40036         Tests for module 'unicase/ulc-casecoll'.
40037         * modules/unicase/ulc-casecoll-tests: New file.
40038         * tests/unicase/test-ulc-casecoll1.sh: New file.
40039         * tests/unicase/test-ulc-casecoll2.sh: New file.
40040         * tests/unicase/test-ulc-casecoll.c: New file.
40041
40042         New module 'unicase/ulc-casecoll'.
40043         * lib/unicase.h (ulc_casecoll): New declaration.
40044         * lib/unicase/ulc-casecoll.c: New file.
40045         * modules/unicase/ulc-casecoll: New file.
40046
40047         New module 'unicase/ulc-casexfrm'.
40048         * lib/unicase.h (ulc_casexfrm): New declaration.
40049         * lib/unicase/ulc-casexfrm.c: New file.
40050         * modules/unicase/ulc-casexfrm: New file.
40051
40052 2009-03-09  Bruno Haible  <bruno@clisp.org>
40053
40054         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40055         invocations.
40056
40057         * m4/mbscasecmp.m4: Remove file.
40058         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40059         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40060
40061         * m4/mbscasestr.m4: Remove file.
40062         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40063         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40064
40065         * m4/mbschr.m4: Remove file.
40066         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40067         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40068
40069         * m4/mbscspn.m4: Remove file.
40070         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40071         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40072
40073         * m4/mbslen.m4: Remove file.
40074         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40075         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40076
40077         * m4/mbsncasecmp.m4: Remove file.
40078         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40079         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40080
40081         * m4/mbsnlen.m4: Remove file.
40082         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40083         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40084
40085         * m4/mbspbrk.m4: Remove file.
40086         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40087         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40088
40089         * m4/mbspcasecmp.m4: Remove file.
40090         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40091         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40092
40093         * m4/mbsrchr.m4: Remove file.
40094         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40095         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40096
40097         * m4/mbssep.m4: Remove file.
40098         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40099         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40100
40101         * m4/mbsspn.m4: Remove file.
40102         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40103         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40104
40105         * m4/mbsstr.m4: Remove file.
40106         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40107         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40108
40109         * m4/mbstok_r.m4: Remove file.
40110         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40111         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40112
40113         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40114
40115         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40116         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40117
40118         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40119
40120 2009-03-08  Bruno Haible  <bruno@clisp.org>
40121
40122         Tests for module 'unicase/ulc-casecmp'.
40123         * modules/unicase/ulc-casecmp-tests: New file.
40124         * tests/unicase/test-ulc-casecmp1.sh: New file.
40125         * tests/unicase/test-ulc-casecmp2.sh: New file.
40126         * tests/unicase/test-ulc-casecmp.c: New file.
40127
40128         New module 'unicase/ulc-casecmp'.
40129         * lib/unicase.h (ulc_casecmp): New declaration.
40130         * lib/unicase/ulc-casecmp.c: New file.
40131         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40132         'const SRC_UNIT *'.
40133         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40134         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40135         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40136         * modules/unicase/ulc-casecmp: New file.
40137
40138         Tests for module 'unicase/u32-is-cased'.
40139         * modules/unicase/u32-is-cased-tests: New file.
40140         * tests/unicase/test-u32-is-cased.c: New file.
40141
40142         Tests for module 'unicase/u16-is-cased'.
40143         * modules/unicase/u16-is-cased-tests: New file.
40144         * tests/unicase/test-u16-is-cased.c: New file.
40145
40146         Tests for module 'unicase/u8-is-cased'.
40147         * modules/unicase/u8-is-cased-tests: New file.
40148         * tests/unicase/test-u8-is-cased.c: New file.
40149         * tests/unicase/test-is-cased.h: New file.
40150
40151         New module 'unicase/u32-is-cased'.
40152         * lib/unicase/u32-is-cased.c: New file.
40153         * modules/unicase/u32-is-cased: New file.
40154
40155         New module 'unicase/u16-is-cased'.
40156         * lib/unicase/u16-is-cased.c: New file.
40157         * modules/unicase/u16-is-cased: New file.
40158
40159         New module 'unicase/u8-is-cased'.
40160         * lib/unicase/u8-is-cased.c: New file.
40161         * lib/unicase/u-is-cased.h: New file.
40162         * modules/unicase/u8-is-cased: New file.
40163
40164         Tests for module 'unicase/u32-is-casefolded'.
40165         * modules/unicase/u32-is-casefolded-tests: New file.
40166         * tests/unicase/test-u32-is-casefolded.c: New file.
40167
40168         Tests for module 'unicase/u16-is-casefolded'.
40169         * modules/unicase/u16-is-casefolded-tests: New file.
40170         * tests/unicase/test-u16-is-casefolded.c: New file.
40171
40172         Tests for module 'unicase/u8-is-casefolded'.
40173         * modules/unicase/u8-is-casefolded-tests: New file.
40174         * tests/unicase/test-u8-is-casefolded.c: New file.
40175         * tests/unicase/test-is-casefolded.h: New file.
40176
40177         New module 'unicase/u32-is-casefolded'.
40178         * lib/unicase/u32-is-casefolded.c: New file.
40179         * modules/unicase/u32-is-casefolded: New file.
40180
40181         New module 'unicase/u16-is-casefolded'.
40182         * lib/unicase/u16-is-casefolded.c: New file.
40183         * modules/unicase/u16-is-casefolded: New file.
40184
40185         New module 'unicase/u8-is-casefolded'.
40186         * lib/unicase/u8-is-casefolded.c: New file.
40187         * modules/unicase/u8-is-casefolded: New file.
40188
40189         Tests for module 'unicase/u32-is-titlecase'.
40190         * modules/unicase/u32-is-titlecase-tests: New file.
40191         * tests/unicase/test-u32-is-titlecase.c: New file.
40192
40193         Tests for module 'unicase/u16-is-titlecase'.
40194         * modules/unicase/u16-is-titlecase-tests: New file.
40195         * tests/unicase/test-u16-is-titlecase.c: New file.
40196
40197         Tests for module 'unicase/u8-is-titlecase'.
40198         * modules/unicase/u8-is-titlecase-tests: New file.
40199         * tests/unicase/test-u8-is-titlecase.c: New file.
40200         * tests/unicase/test-is-titlecase.h: New file.
40201
40202         New module 'unicase/u32-is-titlecase'.
40203         * lib/unicase/u32-is-titlecase.c: New file.
40204         * modules/unicase/u32-is-titlecase: New file.
40205
40206         New module 'unicase/u16-is-titlecase'.
40207         * lib/unicase/u16-is-titlecase.c: New file.
40208         * modules/unicase/u16-is-titlecase: New file.
40209
40210         New module 'unicase/u8-is-titlecase'.
40211         * lib/unicase/u8-is-titlecase.c: New file.
40212         * modules/unicase/u8-is-titlecase: New file.
40213
40214         Tests for module 'unicase/u32-is-lowercase'.
40215         * modules/unicase/u32-is-lowercase-tests: New file.
40216         * tests/unicase/test-u32-is-lowercase.c: New file.
40217
40218         Tests for module 'unicase/u16-is-lowercase'.
40219         * modules/unicase/u16-is-lowercase-tests: New file.
40220         * tests/unicase/test-u16-is-lowercase.c: New file.
40221
40222         Tests for module 'unicase/u8-is-lowercase'.
40223         * modules/unicase/u8-is-lowercase-tests: New file.
40224         * tests/unicase/test-u8-is-lowercase.c: New file.
40225         * tests/unicase/test-is-lowercase.h: New file.
40226
40227         New module 'unicase/u32-is-lowercase'.
40228         * lib/unicase/u32-is-lowercase.c: New file.
40229         * modules/unicase/u32-is-lowercase: New file.
40230
40231         New module 'unicase/u16-is-lowercase'.
40232         * lib/unicase/u16-is-lowercase.c: New file.
40233         * modules/unicase/u16-is-lowercase: New file.
40234
40235         New module 'unicase/u8-is-lowercase'.
40236         * lib/unicase/u8-is-lowercase.c: New file.
40237         * modules/unicase/u8-is-lowercase: New file.
40238
40239         Tests for module 'unicase/u32-is-uppercase'.
40240         * modules/unicase/u32-is-uppercase-tests: New file.
40241         * tests/unicase/test-u32-is-uppercase.c: New file.
40242
40243         Tests for module 'unicase/u16-is-uppercase'.
40244         * modules/unicase/u16-is-uppercase-tests: New file.
40245         * tests/unicase/test-u16-is-uppercase.c: New file.
40246
40247         Tests for module 'unicase/u8-is-uppercase'.
40248         * modules/unicase/u8-is-uppercase-tests: New file.
40249         * tests/unicase/test-u8-is-uppercase.c: New file.
40250         * tests/unicase/test-is-uppercase.h: New file.
40251
40252         New module 'unicase/u32-is-uppercase'.
40253         * lib/unicase/u32-is-uppercase.c: New file.
40254         * modules/unicase/u32-is-uppercase: New file.
40255
40256         New module 'unicase/u16-is-uppercase'.
40257         * lib/unicase/u16-is-uppercase.c: New file.
40258         * modules/unicase/u16-is-uppercase: New file.
40259
40260         New module 'unicase/u8-is-uppercase'.
40261         * lib/unicase/u8-is-uppercase.c: New file.
40262         * modules/unicase/u8-is-uppercase: New file.
40263
40264         New module 'unicase/u32-is-invariant'.
40265         * lib/unicase/u32-is-invariant.c: New file.
40266         * modules/unicase/u32-is-invariant: New file.
40267
40268         New module 'unicase/u16-is-invariant'.
40269         * lib/unicase/u16-is-invariant.c: New file.
40270         * modules/unicase/u16-is-invariant: New file.
40271
40272         New module 'unicase/u8-is-invariant'.
40273         * lib/unicase/u8-is-invariant.c: New file.
40274         * lib/unicase/invariant.h: New file.
40275         * lib/unicase/u-is-invariant.h: New file.
40276         * modules/unicase/u8-is-invariant: New file.
40277
40278         Tests for module 'unicase/u32-casecoll'.
40279         * modules/unicase/u32-casecoll-tests: New file.
40280         * tests/unicase/test-u32-casecoll.c: New file.
40281
40282         Tests for module 'unicase/u16-casecoll'.
40283         * modules/unicase/u16-casecoll-tests: New file.
40284         * tests/unicase/test-u16-casecoll.c: New file.
40285
40286         Tests for module 'unicase/u8-casecoll'.
40287         * modules/unicase/u8-casecoll-tests: New file.
40288         * tests/unicase/test-u8-casecoll.c: New file.
40289
40290         New module 'unicase/u32-casecoll'.
40291         * lib/unicase/u32-casecoll.c: New file.
40292         * modules/unicase/u32-casecoll: New file.
40293
40294         New module 'unicase/u16-casecoll'.
40295         * lib/unicase/u16-casecoll.c: New file.
40296         * modules/unicase/u16-casecoll: New file.
40297
40298         New module 'unicase/u8-casecoll'.
40299         * lib/unicase/u8-casecoll.c: New file.
40300         * lib/unicase/u-casecoll.h: New file.
40301         * modules/unicase/u8-casecoll: New file.
40302
40303         New module 'unicase/u32-casexfrm'.
40304         * lib/unicase/u32-casexfrm.c: New file.
40305         * modules/unicase/u32-casexfrm: New file.
40306
40307         New module 'unicase/u16-casexfrm'.
40308         * lib/unicase/u16-casexfrm.c: New file.
40309         * modules/unicase/u16-casexfrm: New file.
40310
40311         New module 'unicase/u8-casexfrm'.
40312         * lib/unicase/u8-casexfrm.c: New file.
40313         * lib/unicase/u-casexfrm.h: New file.
40314         * modules/unicase/u8-casexfrm: New file.
40315
40316         Tests for module 'unicase/u32-casecmp'.
40317         * modules/unicase/u32-casecmp-tests: New file.
40318         * tests/unicase/test-u32-casecmp.c: New file.
40319
40320         Tests for module 'unicase/u16-casecmp'.
40321         * modules/unicase/u16-casecmp-tests: New file.
40322         * tests/unicase/test-u16-casecmp.c: New file.
40323
40324         Tests for module 'unicase/u8-casecmp'.
40325         * modules/unicase/u8-casecmp-tests: New file.
40326         * tests/unicase/test-u8-casecmp.c: New file.
40327         * tests/unicase/test-casecmp.h: New file.
40328
40329         New module 'unicase/u32-casecmp'.
40330         * lib/unicase/u32-casecmp.c: New file.
40331         * modules/unicase/u32-casecmp: New file.
40332
40333         New module 'unicase/u16-casecmp'.
40334         * lib/unicase/u16-casecmp.c: New file.
40335         * modules/unicase/u16-casecmp: New file.
40336
40337         New module 'unicase/u8-casecmp'.
40338         * lib/unicase/u8-casecmp.c: New file.
40339         * lib/unicase/u-casecmp.h: New file.
40340         * modules/unicase/u8-casecmp: New file.
40341
40342         Tests for module 'unicase/u32-casefold'.
40343         * modules/unicase/u32-casefold-tests: New file.
40344         * tests/unicase/test-u32-casefold.c: New file.
40345
40346         Tests for module 'unicase/u16-casefold'.
40347         * modules/unicase/u16-casefold-tests: New file.
40348         * tests/unicase/test-u16-casefold.c: New file.
40349
40350         Tests for module 'unicase/u8-casefold'.
40351         * modules/unicase/u8-casefold-tests: New file.
40352         * tests/unicase/test-u8-casefold.c: New file.
40353
40354         New module 'unicase/u32-casefold'.
40355         * lib/unicase/u32-casefold.c: New file.
40356         * modules/unicase/u32-casefold: New file.
40357
40358         New module 'unicase/u16-casefold'.
40359         * lib/unicase/u16-casefold.c: New file.
40360         * modules/unicase/u16-casefold: New file.
40361
40362         New module 'unicase/u8-casefold'.
40363         * lib/unicase/u8-casefold.c: New file.
40364         * lib/unicase/u-casefold.h: New file.
40365         * modules/unicase/u8-casefold: New file.
40366
40367         New module 'unicase/tocasefold'.
40368         * lib/unicase/casefold.h: New file.
40369         * lib/unicase/tocasefold.c: New file.
40370         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40371         * modules/unicase/tocasefold: New file.
40372
40373         Tests for module 'unicase/u32-totitle'.
40374         * modules/unicase/u32-totitle-tests: New file.
40375         * tests/unicase/test-u32-totitle.c: New file.
40376
40377         Tests for module 'unicase/u16-totitle'.
40378         * modules/unicase/u16-totitle-tests: New file.
40379         * tests/unicase/test-u16-totitle.c: New file.
40380
40381         Tests for module 'unicase/u8-totitle'.
40382         * modules/unicase/u8-totitle-tests: New file.
40383         * tests/unicase/test-u8-totitle.c: New file.
40384
40385         New module 'unicase/u32-totitle'.
40386         * lib/unicase/u32-totitle.c: New file.
40387         * modules/unicase/u32-totitle: New file.
40388
40389         New module 'unicase/u16-totitle'.
40390         * lib/unicase/u16-totitle.c: New file.
40391         * modules/unicase/u16-totitle: New file.
40392
40393         New module 'unicase/u8-totitle'.
40394         * lib/unicase/u8-totitle.c: New file.
40395         * lib/unicase/u-totitle.h: New file.
40396         * modules/unicase/u8-totitle: New file.
40397
40398         Tests for module 'unicase/u32-tolower'.
40399         * modules/unicase/u32-tolower-tests: New file.
40400         * tests/unicase/test-u32-tolower.c: New file.
40401
40402         Tests for module 'unicase/u16-tolower'.
40403         * modules/unicase/u16-tolower-tests: New file.
40404         * tests/unicase/test-u16-tolower.c: New file.
40405
40406         Tests for module 'unicase/u8-tolower'.
40407         * modules/unicase/u8-tolower-tests: New file.
40408         * tests/unicase/test-u8-tolower.c: New file.
40409
40410         New module 'unicase/u32-tolower'.
40411         * lib/unicase/u32-tolower.c: New file.
40412         * modules/unicase/u32-tolower: New file.
40413
40414         New module 'unicase/u16-tolower'.
40415         * lib/unicase/u16-tolower.c: New file.
40416         * modules/unicase/u16-tolower: New file.
40417
40418         New module 'unicase/u8-tolower'.
40419         * lib/unicase/u8-tolower.c: New file.
40420         * modules/unicase/u8-tolower: New file.
40421
40422         Tests for module 'unicase/u32-toupper'.
40423         * modules/unicase/u32-toupper-tests: New file.
40424         * tests/unicase/test-u32-toupper.c: New file.
40425
40426         Tests for module 'unicase/u16-toupper'.
40427         * modules/unicase/u16-toupper-tests: New file.
40428         * tests/unicase/test-u16-toupper.c: New file.
40429
40430         Tests for module 'unicase/u8-toupper'.
40431         * modules/unicase/u8-toupper-tests: New file.
40432         * tests/unicase/test-u8-toupper.c: New file.
40433
40434         New module 'unicase/u32-toupper'.
40435         * lib/unicase/u32-toupper.c: New file.
40436         * modules/unicase/u32-toupper: New file.
40437
40438         New module 'unicase/u16-toupper'.
40439         * lib/unicase/u16-toupper.c: New file.
40440         * modules/unicase/u16-toupper: New file.
40441
40442         New module 'unicase/u8-toupper'.
40443         * lib/unicase/u8-toupper.c: New file.
40444         * modules/unicase/u8-toupper: New file.
40445
40446         New module 'unicase/u32-casemap'.
40447         * lib/unicase/u32-casemap.c: New file.
40448         * modules/unicase/u32-casemap: New file.
40449
40450         New module 'unicase/u16-casemap'.
40451         * lib/unicase/u16-casemap.c: New file.
40452         * modules/unicase/u16-casemap: New file.
40453
40454         New module 'unicase/u8-casemap'.
40455         * lib/unicase/unicasemap.h: New file.
40456         * lib/unicase/u8-casemap.c: New file.
40457         * lib/unicase/u-casemap.h: New file.
40458         * modules/unicase/u8-casemap: New file.
40459
40460         New module 'unicase/special-casing'.
40461         * lib/unicase/special-casing.h: New file.
40462         * lib/unicase/special-casing.c: New file.
40463         * lib/unicase/special-casing-table.gperf: New file, generated by
40464         gen-uni-tables.c.
40465         * modules/unicase/special-casing: New file.
40466
40467         Tests for module 'unicase/locale-language'.
40468         * modules/unicase/locale-language-tests: New file.
40469         * tests/unicase/test-locale-language.sh: New file.
40470         * tests/unicase/test-locale-language.c: New file.
40471
40472         New module 'unicase/locale-language'.
40473         * lib/unicase/locale-language.c: New file.
40474         * lib/unicase/locale-languages.gperf: New file.
40475         * modules/unicase/locale-language: New file.
40476
40477         Generate more tables for case conversion and case folding.
40478         * lib/gen-uni-tables.c (SCC_*): New enum items.
40479         (struct special_casing_rule): New type.
40480         (casing_rules, num_casing_rules, allocated_casing_rules): New
40481         variables.
40482         (add_casing_rule, fill_casing_rules): New functions.
40483         (struct casefold_rule): New type.
40484         (casefolding_rules, num_casefolding_rules,
40485         allocated_casefolding_rules): New variables.
40486         (fill_casefolding_rules): New function.
40487         (unicode_casefold): New variable.
40488         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40489         sort_casing_rules, output_casing_rules): New functions.
40490         (main): Accept to more arguments: SpecialCasing.txt and
40491         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40492         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40493         Output mapping for casefolding.
40494
40495         * lib/unicase.h: Include stdbool.h, uninorm.h.
40496         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40497         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40498         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40499         arguments.
40500         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40501         resultp arguments.
40502         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40503         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40504         resultp arguments.
40505         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40506         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40507         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40508         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40509         declarations.
40510         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40511
40512 2009-03-08  Bruno Haible  <bruno@clisp.org>
40513
40514         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40515         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40516         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40517         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40518
40519 2009-03-07  Bruno Haible  <bruno@clisp.org>
40520
40521         Adjust u*_normcmp, u*_normcoll API.
40522         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40523         u16_normcoll, u32_normcoll): Change failure conventions.
40524         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40525         errno and return -1.
40526         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40527
40528 2009-03-07  Bruno Haible  <bruno@clisp.org>
40529
40530         Tests for module 'uninorm/u32-normcoll'.
40531         * modules/uninorm/u32-normcoll-tests: New file.
40532         * tests/uninorm/test-u32-normcoll.c: New file.
40533
40534         Tests for module 'uninorm/u16-normcoll'.
40535         * modules/uninorm/u16-normcoll-tests: New file.
40536         * tests/uninorm/test-u16-normcoll.c: New file.
40537
40538         Tests for module 'uninorm/u8-normcoll'.
40539         * modules/uninorm/u8-normcoll-tests: New file.
40540         * tests/uninorm/test-u8-normcoll.c: New file.
40541
40542 2009-03-07  Bruno Haible  <bruno@clisp.org>
40543
40544         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40545         tests/uninorm/test-u32-normcmp.c.
40546         * tests/uninorm/test-u32-normcmp.c: Include it.
40547         (test_nonascii): New function, extracted from main. Add some more
40548         tests.
40549         (main): Invoke test_ascii and test_nonascii.
40550         * modules/uninorm/u32-normcmp-tests (Files): Add
40551         tests/uninorm/test-u32-normcmp.h.
40552         (Depends-on): Remove uninorm/u32-normcmp.
40553
40554         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40555         tests/uninorm/test-u16-normcmp.c.
40556         * tests/uninorm/test-u16-normcmp.c: Include it.
40557         (test_nonascii): New function, extracted from main. Add some more
40558         tests.
40559         (main): Invoke test_ascii and test_nonascii.
40560         * modules/uninorm/u16-normcmp-tests (Files): Add
40561         tests/uninorm/test-u16-normcmp.h.
40562         (Depends-on): Remove uninorm/u16-normcmp.
40563
40564         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40565         tests/uninorm/test-u8-normcmp.c.
40566         * tests/uninorm/test-u8-normcmp.c: Include it.
40567         (test_nonascii): New function, extracted from main. Add some more
40568         tests.
40569         (main): Invoke test_ascii and test_nonascii.
40570         * modules/uninorm/u8-normcmp-tests (Files): Add
40571         tests/uninorm/test-u8-normcmp.h.
40572         (Depends-on): Remove uninorm/u8-normcmp.
40573
40574 2009-03-07  Bruno Haible  <bruno@clisp.org>
40575
40576         New module 'uninorm/u32-normcoll'.
40577         * lib/uninorm/u32-normcoll.c: New file.
40578         * modules/uninorm/u32-normcoll: New file.
40579
40580         New module 'uninorm/u16-normcoll'.
40581         * lib/uninorm/u16-normcoll.c: New file.
40582         * modules/uninorm/u16-normcoll: New file.
40583
40584         New module 'uninorm/u8-normcoll'.
40585         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40586         declarations.
40587         * lib/uninorm/u8-normcoll.c: New file.
40588         * lib/uninorm/u-normcoll.h: New file.
40589         * modules/uninorm/u8-normcoll: New file.
40590
40591         New module 'uninorm/u32-normxfrm'.
40592         * lib/uninorm/u32-normxfrm.c: New file.
40593         * modules/uninorm/u32-normxfrm: New file.
40594
40595         New module 'uninorm/u16-normxfrm'.
40596         * lib/uninorm/u16-normxfrm.c: New file.
40597         * modules/uninorm/u16-normxfrm: New file.
40598
40599         New module 'uninorm/u8-normxfrm'.
40600         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40601         declarations.
40602         * lib/uninorm/u8-normxfrm.c: New file.
40603         * lib/uninorm/u-normxfrm.h: New file.
40604         * modules/uninorm/u8-normxfrm: New file.
40605
40606 2009-03-07  Bruno Haible  <bruno@clisp.org>
40607
40608         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40609         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40610         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40611
40612 2009-03-07  Bruno Haible  <bruno@clisp.org>
40613
40614         New module 'memxfrm'.
40615         * lib/memxfrm.h: New file.
40616         * lib/memxfrm.c: New file.
40617         * modules/memxfrm: New file.
40618
40619 2009-03-07  Bruno Haible  <bruno@clisp.org>
40620
40621         New module 'memcmp2'.
40622         * lib/memcmp2.h: New file.
40623         * lib/memcmp2.c: New file.
40624         * modules/memcmp2: New file.
40625
40626 2009-03-07  Bruno Haible  <bruno@clisp.org>
40627
40628         Tests for module 'uninorm/decomposing-form'.
40629         * modules/uninorm/decomposing-form-tests: New file.
40630         * tests/uninorm/test-decomposing-form.c: New file.
40631
40632         New module 'uninorm/decomposing-form'.
40633         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40634         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40635         Add 'decomposing_variant' field.
40636         * lib/uninorm/decomposing-form.c: New file.
40637         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40638         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40639         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40640         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40641         * modules/uninorm/decomposing-form: New file.
40642         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40643         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40644
40645 2009-03-07  Bruno Haible  <bruno@clisp.org>
40646
40647         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40648         strings.
40649
40650 2009-03-06  Bruno Haible  <bruno@clisp.org>
40651
40652         Tests for module 'uninorm/u32-normcmp'.
40653         * tests/uninorm/test-u32-normcmp.c: New file.
40654         * modules/uninorm/u32-normcmp-tests: New file.
40655
40656         Tests for module 'uninorm/u16-normcmp'.
40657         * tests/uninorm/test-u16-normcmp.c: New file.
40658         * modules/uninorm/u16-normcmp-tests: New file.
40659
40660         Tests for module 'uninorm/u8-normcmp'.
40661         * tests/uninorm/test-u8-normcmp.c: New file.
40662         * modules/uninorm/u8-normcmp-tests: New file.
40663
40664         New module 'uninorm/u32-normcmp'.
40665         * lib/uninorm/u32-normcmp.c: New file.
40666         * modules/uninorm/u32-normcmp: New file.
40667
40668         New module 'uninorm/u16-normcmp'.
40669         * lib/uninorm/u16-normcmp.c: New file.
40670         * modules/uninorm/u16-normcmp: New file.
40671
40672         New module 'uninorm/u8-normcmp'.
40673         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40674         declarations.
40675         * lib/uninorm/u8-normcmp.c: New file.
40676         * lib/uninorm/u-normcmp.h: New file.
40677         * modules/uninorm/u8-normcmp: New file.
40678
40679 2009-03-06  Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40682         Reported by Eric Blake.
40683
40684 2009-03-06  Eric Blake  <ebb9@byu.net>
40685             Bruno Haible  <bruno@clisp.org>
40686
40687         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40688         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40689         condition.
40690         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40691         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40692         condition.
40693         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40694
40695 2009-03-06  Eric Blake  <ebb9@byu.net>
40696
40697         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40698         to avoid compiler warnings.
40699         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40700
40701 2009-03-05  Bruno Haible  <bruno@clisp.org>
40702
40703         * tests/test-ftell.c (main): Disable test beyond end of file on
40704         FreeMiNT.
40705         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40706
40707 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40708
40709         * lib/filevercmp.c: Move hidden files up in ordering.
40710         * tests/test-filevercmp.c: Add tests for hidden files.
40711
40712 2009-03-04  Bruno Haible  <bruno@clisp.org>
40713
40714         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40715         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40716         AM_CFLAGS.
40717         Reported by Simon Josefsson.
40718
40719 2009-03-03  Bruno Haible  <bruno@clisp.org>
40720
40721         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40722         Reported by Simon Josefsson.
40723
40724         * doc/ld-version-script.texi: Update node reference.
40725
40726 2009-03-03  Bruno Haible  <bruno@clisp.org>
40727
40728         * modules/visibility (License): Change to 'unlimited'.
40729         Suggested by Simon Josefsson.
40730
40731 2009-03-03  Jim Meyering  <meyering@redhat.com>
40732
40733         unlinkdir: cannot_unlink_dir may modify process state
40734         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40735         it's neither thread-safe nor appropriate for use in a library.
40736
40737 2009-03-03  Eric Blake  <ebb9@byu.net>
40738
40739         test-closein: silence test under Darwin
40740         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40741         care if it dies from EPIPE or EBADF.
40742
40743 2009-03-03  Bruno Haible  <bruno@clisp.org>
40744
40745         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40746         earlier.
40747         * doc/visibility.texi: Fix @node and @section.
40748
40749 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40750
40751         * doc/gnulib.texi: Link to sections for ld version script and
40752         visibility.
40753         * doc/visibility.texi: Add @node and @section.
40754         * modules/ld-version-script: New module.
40755         * m4/ld-version-script.m4: New file.
40756         * doc/ld-version-script.texi: New file.
40757
40758 2009-03-02  David Lutterkort  <lutter@redhat.com>
40759
40760         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40762
40763 2009-03-02  Bruno Haible  <bruno@clisp.org>
40764
40765         * doc/visibility.texi: Mention libtool's -export-symbols option.
40766
40767 2009-03-02  Jim Meyering  <meyering@redhat.com>
40768
40769         announce-gen: new option: --no-print-checksums
40770         * build-aux/announce-gen (usage): Describe it.
40771         (print_checksums): Print a newline here, not in the [*] footnote.
40772         (main): Honor it.
40773
40774 2009-03-01  Bruno Haible  <bruno@clisp.org>
40775
40776         Use socklen_t in the native Windows replacements prototypes.
40777         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40778         instead of 'int'.
40779         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40780         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40781         * modules/getsockopt (Depends-on): Add socklen.
40782         * modules/setsockopt (Depends-on): Add socklen.
40783
40784 2009-03-01  Bruno Haible  <bruno@clisp.org>
40785
40786         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40787         least 4.2.
40788
40789 2009-03-01  Eric Blake  <ebb9@byu.net>
40790             Bruno Haible  <bruno@clisp.org>
40791
40792         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40793         error messages.
40794         * lib/wait-process.c (wait_subprocess): Omit error message about
40795         deadly signal sent to the child of termsigp != NULL.
40796
40797 2009-03-01  Eric Blake  <ebb9@byu.net>
40798
40799         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40800
40801 2009-03-01  Bruno Haible  <bruno@clisp.org>
40802
40803         Avoid a gcc warning.
40804         * tests/test-sched.c (b): Make global.
40805         Reported by Eric Blake.
40806
40807 2009-01-19  Martin Lambers  <marlam@marlam.de>
40808
40809         Provide POSIX semantics for socket timeout options on W32.
40810         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40811         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40812         * modules/setsockopt: Depend on sys_time module for struct timeval.
40813         * modules/getsockopt: Depend on sys_time module for struct timeval.
40814
40815 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40816
40817         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40818         __USE_GNU, for consistency with netdb.in.h.
40819         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40820
40821 2009-03-01  Bruno Haible  <bruno@clisp.org>
40822
40823         More support for FreeMiNT.
40824         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40825         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40826
40827 2009-03-01  Bruno Haible  <bruno@clisp.org>
40828
40829         More support for FreeMiNT.
40830         * lib/fpurge.c (fpurge): Correct last commit.
40831         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40832
40833 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40834
40835         Fix unportable awk script in vc-list-files.
40836         * build-aux/vc-list-files: In the replacement awk script, use
40837         substr with a second argument of 1, not zero.
40838         Report by Simon Josefsson.
40839
40840 2009-02-28  Bruno Haible  <bruno@clisp.org>
40841
40842         More support for FreeMiNT.
40843         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40844         to FreeMiNT today.
40845         * lib/fwriting.c (fwriting): Likewise.
40846         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40847
40848 2009-02-28  Bruno Haible  <bruno@clisp.org>
40849
40850         * tests/test-freadseek.c (main): Disable test beyond end of file on
40851         FreeMiNT.
40852         * tests/test-ftello.c (main): Likewise.
40853         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40854
40855 2009-02-28  Bruno Haible  <bruno@clisp.org>
40856
40857         Add tentative support for FreeMiNT.
40858         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40859         * lib/fpurge.c (fpurge): Likewise.
40860         * lib/freadable.c (freadable): Likewise.
40861         * lib/freading.c (freading): Likewise.
40862         * lib/freadptr.c (freadptr): Likewise.
40863         * lib/freadseek.c (freadptrinc): Likewise.
40864         * lib/fseeko.c (rpl_fseeko): Likewise.
40865         * lib/fseterr.c (fseterr): Likewise.
40866         * lib/fwritable.c (fwritable): Likewise.
40867         * lib/fwriting.c (fwriting): Likewise.
40868         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40869         Hourihane.
40870         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40871
40872 2009-02-28  Bruno Haible  <bruno@clisp.org>
40873
40874         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40875         SIGCHLD.
40876         Reported by Jim Meyering.
40877
40878 2009-02-28  Bruno Haible  <bruno@clisp.org>
40879
40880         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40881         Mention the results of these tests on various platforms.
40882         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40883         order.
40884         * doc/posix-functions/printf.texi: Likewise.
40885         * doc/posix-functions/snprintf.texi: Likewise.
40886         * doc/posix-functions/sprintf.texi: Likewise.
40887         * doc/posix-functions/vfprintf.texi: Likewise.
40888         * doc/posix-functions/vprintf.texi: Likewise.
40889         * doc/posix-functions/vsnprintf.texi: Likewise.
40890         * doc/posix-functions/vsprintf.texi: Likewise.
40891         * doc/glibc-functions/obstack_printf.texi: Likewise.
40892         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40893
40894 2009-02-28  Bruno Haible  <bruno@clisp.org>
40895
40896         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40897         Reported by Loïc Minier <lool@dooz.org>.
40898
40899 2009-02-27  Bruno Haible  <bruno@clisp.org>
40900
40901         * gnulib-tool (func_import): Make the sed expression used to create the
40902         sed script for updating the .gitignore file POSIX compliant.
40903         Reported by Eric Blake.
40904
40905 2009-02-27  Bruno Haible  <bruno@clisp.org>
40906
40907         * gnulib-tool (sed): Don't alias as "sed --posix".
40908         Reported by Eric Blake.
40909
40910 2009-02-27  Bruno Haible  <bruno@clisp.org>
40911
40912         Avoid test link errors.
40913         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40914         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40915         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40916         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40918
40919 2009-02-27  Bruno Haible  <bruno@clisp.org>
40920
40921         Avoid spurious "(cached)" in configure output.
40922         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40923         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40924         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40925         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40926         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40927         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40928         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
40929         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
40930         Reported by Eric Blake.
40931
40932 2009-02-27  Eric Blake  <ebb9@byu.net>
40933
40934         printf: fix regression in previous patch
40935         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
40936
40937 2009-02-27  Bruno Haible  <bruno@clisp.org>
40938
40939         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
40940         value.
40941         * lib/stdint.in.h: Likewise.
40942         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
40943
40944 2009-02-27  Eric Blake  <ebb9@byu.net>
40945
40946         doc: mention more functions added in cygwin 1.7.0
40947         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
40948         addition.
40949         * doc/posix-functions/open_wmemstream.texi: Likewise.
40950         * doc/posix-functions/wcsnlen.texi: Likewise.
40951         * doc/posix-functions/wcsnrtombs.texi: Likewise.
40952         * doc/posix-functions/wcstod.texi: Likewise.
40953         * doc/posix-functions/wcstof.texi: Likewise.
40954         * doc/posix-functions/wcstoimax.texi: Likewise.
40955         * doc/posix-functions/wcstok.texi: Likewise.
40956         * doc/posix-functions/wcstoumax.texi: Likewise.
40957
40958         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
40959         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
40960         * doc/posix-functions/fprintf.texi: Update.
40961         * doc/posix-functions/printf.texi: Update.
40962         * doc/posix-functions/snprintf.texi: Update.
40963         * doc/posix-functions/sprintf.texi: Update.
40964         * doc/posix-functions/vfprintf.texi: Update.
40965         * doc/posix-functions/vprintf.texi: Update.
40966         * doc/posix-functions/vsnprintf.texi: Update.
40967         * doc/posix-functions/vsprintf.texi: Update.
40968         * doc/glibc-functions/obstack_printf.texi: Update.
40969         * doc/glibc-functions/obstack_vprintf.texi: Update.
40970
40971 2009-02-26  Eric Blake  <ebb9@byu.net>
40972
40973         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
40974         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
40975         compilation bug by using runtime conversion.
40976         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
40977         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
40978         * modules/ceill-tests (Files): Use nan.h.
40979         * modules/floorl-tests (Files): Likewise.
40980         * modules/frexpl-tests (Files): Likewise.
40981         * modules/isnanl-tests (Files): Likewise.
40982         * modules/ldexpl-tests (Files): Likewise.
40983         * modules/roundl-tests (Files): Likewise.
40984         * modules/truncl-tests (Files): Likewise.
40985         * tests/test-ceill.c (main): Use a working NaN.
40986         * tests/test-floorl.c (main): Likewise.
40987         * tests/test-frexpl.c (main): Likewise.
40988         * tests/test-isnan.c (test_long_double): Likewise.
40989         * tests/test-isnanl.h (main): Likewise.
40990         * tests/test-ldexpl.h (main): Likewise.
40991         * tests/test-roundl.h (main): Likewise.
40992         * tests/test-truncl.h (main): Likewise.
40993         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
40994
40995 2009-02-26  Eric Blake  <ebb9@byu.net>
40996             Bruno Haible  <bruno@clisp.org>
40997
40998         Work around a *printf bug with %ls on Solaris.
40999         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41000         precision is specified, sprintf stops converting the wide string
41001         argument when the number of bytes that have been produced by this
41002         conversion equals or exceeds the precision.
41003         * doc/posix-functions/fprintf.texi: Update.
41004         * doc/posix-functions/printf.texi: Update.
41005         * doc/posix-functions/snprintf.texi: Update.
41006         * doc/posix-functions/sprintf.texi: Update.
41007         * doc/posix-functions/vfprintf.texi: Update.
41008         * doc/posix-functions/vprintf.texi: Update.
41009         * doc/posix-functions/vsnprintf.texi: Update.
41010         * doc/posix-functions/vsprintf.texi: Update.
41011         * doc/glibc-functions/obstack_printf.texi: Update.
41012         * doc/glibc-functions/obstack_vprintf.texi: Update.
41013
41014 2009-02-26  Eric Blake  <ebb9@byu.net>
41015
41016         stdlib: favor compiler check of random.h
41017         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41018         to avoid an ObjC random.h installed by Swarm.
41019
41020 2009-02-26  Bruno Haible  <bruno@clisp.org>
41021
41022         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41023         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41024         Reported by Gary V. Vaughan <gary@gnu.org>.
41025
41026 2009-02-26  Bruno Haible  <bruno@clisp.org>
41027
41028         Fix *printf behaviour regarding the %ls directive.
41029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41030         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41031         NEED_PRINTF_DIRECTIVE_LS.
41032         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41033         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41034         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41035         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41036         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41037         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41038         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41039         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41040         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41041         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41042         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41043         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41047         * doc/posix-functions/fprintf.texi: Update.
41048         * doc/posix-functions/printf.texi: Update.
41049         * doc/posix-functions/snprintf.texi: Update.
41050         * doc/posix-functions/sprintf.texi: Update.
41051         * doc/posix-functions/vfprintf.texi: Update.
41052         * doc/posix-functions/vprintf.texi: Update.
41053         * doc/posix-functions/vsnprintf.texi: Update.
41054         * doc/posix-functions/vsprintf.texi: Update.
41055         * doc/glibc-functions/obstack_printf.texi: Update.
41056         * doc/glibc-functions/obstack_vprintf.texi: Update.
41057         Reported by Eric Blake.
41058
41059 2009-02-25  Bruno Haible  <bruno@clisp.org>
41060
41061         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41062         with known value.
41063         Reported by Gary V. Vaughan <gary@gnu.org>.
41064
41065 2009-02-25  Bruno Haible  <bruno@clisp.org>
41066
41067         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41068         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41069         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41070         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41071         Reported by Gary V. Vaughan <gary@gnu.org>.
41072
41073 2009-02-25  Bruno Haible  <bruno@clisp.org>
41074
41075         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41076         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41077         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41078         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41079         Reported by Gary V. Vaughan <gary@gnu.org>.
41080
41081 2009-02-25  Eric Blake  <ebb9@byu.net>
41082
41083         tests: skip fseek/ftell tests if ungetc is broken
41084         * m4/ungetc.m4: New file.
41085         * modules/fseek-tests: Split test, so ungetc dependency is
41086         separate from rest of test.
41087         * modules/fseeko-tests: Likewise.
41088         * modules/ftell-tests: Likewise.
41089         * modules/ftello-tests: Likewise.
41090         * tests/test-fseek.c (main): Isolate ungetc dependency.
41091         * tests/test-fseeko.c (main): Likewise.
41092         * tests/test-ftell.c (main): Likewise.
41093         * tests/test-ftello.c (main): Likewise.
41094         * tests/test-fseek2.sh: New file.
41095         * tests/test-fseeko2.sh: Likewise.
41096         * tests/test-ftell2.sh: Likewise.
41097         * tests/test-ftello2.sh: Likewise.
41098
41099 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
41100
41101         test-getaddrinfo: fix usage of skip return code 77
41102         * tests/test-gettaddrinfo.c: Return skip code 77 only
41103         for first occurance of skip (4x77 is not 77)
41104
41105 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41106
41107         strtod: avoid C99 decl-after-statement
41108         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41109
41110 2009-02-24  Eric Blake  <ebb9@byu.net>
41111
41112         strtod: detect HP-UX 11.31 bug
41113         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41114         Reported by Gary V. Vaughan.
41115
41116 2009-02-23  Bruno Haible  <bruno@clisp.org>
41117
41118         Fix invalid read past end of memory block.
41119         * lib/vasnprintf.c (DCHAR_SET): Define.
41120         (local_wcslen): Define only when needed.
41121         (local_strnlen, local_wcsnlen): New functions.
41122         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41123         directives that involve a conversion ourselves.
41124         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41125         wcsnlen, mbrtowc, wcrtomb.
41126         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41127         * tests/test-vasprintf-posix.c (test_function): Likewise.
41128         * tests/test-snprintf-posix.h (test_function): Likewise.
41129         * tests/test-sprintf-posix.h (test_function): Likewise.
41130         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41131
41132 2009-02-22  Bruno Haible  <bruno@clisp.org>
41133
41134         Implement new clarified decomposition of Hangul syllables.
41135         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41136         of type LTV, return only a pairwise decomposition.
41137         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41138         Likewise.
41139         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41140         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41141         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41142
41143 2009-02-22  Bruno Haible  <bruno@clisp.org>
41144
41145         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41146         zero-length results and shrink excess allocated memory.
41147         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41148         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41149         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41150         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41151         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41152         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41153         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41154         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41155         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41156         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41157         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41158         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41159
41160 2009-02-21  Bruno Haible  <bruno@clisp.org>
41161
41162         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41163         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41164         spaces after a period. Put a space between a macro name and its
41165         argument list. Trivial rewordings.
41166         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41167         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41168         (main): Return 0 explicitly.
41169
41170 2009-02-21  Bruno Haible  <bruno@clisp.org>
41171
41172         Tests for module 'uninorm/filter'.
41173         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41174         * modules/uninorm/filter-tests: New file.
41175
41176         New module 'uninorm/filter'.
41177         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41178         uninorm_filter_flush, uninorm_filter_free): New declarations.
41179         * lib/uninorm/uninorm-filter.c: New file.
41180         * modules/uninorm/filter: New file.
41181
41182 2009-02-21  Bruno Haible  <bruno@clisp.org>
41183
41184         Tests for module 'uninorm/nfkc'.
41185         * tests/uninorm/test-nfkc.c: New file.
41186         * tests/uninorm/test-u8-nfkc.c: New file.
41187         * tests/uninorm/test-u16-nfkc.c: New file.
41188         * tests/uninorm/test-u32-nfkc.c: New file.
41189         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41190         * tests/uninorm/test-u32-nfkc-big.c: New file.
41191         * modules/uninorm/nfkc-tests: New file.
41192
41193         New module 'uninorm/nfkc'.
41194         * lib/uninorm/nfkc.c: New file.
41195         * modules/uninorm/nfkc: New file.
41196
41197         Tests for module 'uninorm/nfkd'.
41198         * tests/uninorm/test-nfkd.c: New file.
41199         * tests/uninorm/test-u8-nfkd.c: New file.
41200         * tests/uninorm/test-u16-nfkd.c: New file.
41201         * tests/uninorm/test-u32-nfkd.c: New file.
41202         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41203         * tests/uninorm/test-u32-nfkd-big.c: New file.
41204         * modules/uninorm/nfkd-tests: New file.
41205
41206         New module 'uninorm/nfkd'.
41207         * lib/uninorm/nfkd.c: New file.
41208         * modules/uninorm/nfkd: New file.
41209
41210         Tests for module 'uninorm/nfc'.
41211         * tests/uninorm/test-nfc.c: New file.
41212         * tests/uninorm/test-u8-nfc.c: New file.
41213         * tests/uninorm/test-u16-nfc.c: New file.
41214         * tests/uninorm/test-u32-nfc.c: New file.
41215         * tests/uninorm/test-u32-nfc-big.sh: New file.
41216         * tests/uninorm/test-u32-nfc-big.c: New file.
41217         * modules/uninorm/nfc-tests: New file.
41218
41219         New module 'uninorm/nfc'.
41220         * lib/uninorm/nfc.c: New file.
41221         * modules/uninorm/nfc: New file.
41222
41223         Tests for module 'uninorm/nfd'.
41224         * tests/uninorm/test-nfd.c: New file.
41225         * tests/uninorm/test-u8-nfd.c: New file.
41226         * tests/uninorm/test-u16-nfd.c: New file.
41227         * tests/uninorm/test-u32-nfd.c: New file.
41228         * tests/uninorm/test-u32-nfd-big.sh: New file.
41229         * tests/uninorm/test-u32-nfd-big.c: New file.
41230         * tests/uninorm/test-u32-normalize-big.h: New file.
41231         * tests/uninorm/test-u32-normalize-big.c: New file.
41232         * tests/uninorm/NormalizationTest.txt: New file, created from
41233         Unicode 5.1.0 NormalizationTest.txt.
41234         * modules/uninorm/nfd-tests: New file.
41235
41236         New module 'uninorm/nfd'.
41237         * lib/uninorm/nfd.c: New file.
41238         * modules/uninorm/nfd: New file.
41239
41240         New module 'uninorm/u32-normalize'.
41241         * lib/uninorm/u32-normalize.c: New file.
41242         * modules/uninorm/u32-normalize: New file.
41243
41244         New module 'uninorm/u16-normalize'.
41245         * lib/uninorm/u16-normalize.c: New file.
41246         * modules/uninorm/u16-normalize: New file.
41247
41248         New module 'uninorm/u8-normalize'.
41249         * lib/uninorm/u8-normalize.c: New file.
41250         * lib/uninorm/normalize-internal.h: New file.
41251         * lib/uninorm/u-normalize-internal.h: New file.
41252         * modules/uninorm/u8-normalize: New file.
41253
41254         New module 'uninorm/decompose-internal'.
41255         * lib/uninorm/decompose-internal.c: New file.
41256         * modules/uninorm/decompose-internal: New file.
41257
41258         Tests for module 'uninorm/composition'.
41259         * tests/uninorm/test-composition.c: New file.
41260         * modules/uninorm/composition-tests: New file.
41261
41262         New module 'uninorm/composition'.
41263         * lib/uninorm/composition.c: New file.
41264         * lib/uninorm/composition-table.gperf: New file, generated by
41265         gen-uni-tables.
41266         * modules/uninorm/composition: New file.
41267
41268         Tests for module 'uninorm/compat-decomposition'.
41269         * tests/uninorm/test-compat-decomposition.c: New file.
41270         * modules/uninorm/compat-decomposition-tests: New file.
41271
41272         New module 'uninorm/compat-decomposition'.
41273         * lib/uninorm/decompose-internal.h: New file.
41274         * lib/uninorm/compat-decomposition.c: New file.
41275         * modules/uninorm/compat-decomposition: New file.
41276
41277         Tests for module 'uninorm/canonical-decomposition'.
41278         * tests/uninorm/test-canonical-decomposition.c: New file.
41279         * modules/uninorm/canonical-decomposition-tests: New file.
41280
41281         New module 'uninorm/canonical-decomposition'.
41282         * lib/uninorm/canonical-decomposition.c: New file.
41283         * modules/uninorm/canonical-decomposition: New file.
41284
41285         Tests for module 'uninorm/decomposition'.
41286         * tests/uninorm/test-decomposition.c: New file.
41287         * modules/uninorm/decomposition-tests: New file.
41288
41289         New module 'uninorm/decomposition'.
41290         * lib/uninorm/decomposition.c: New file.
41291         * modules/uninorm/decomposition: New file.
41292
41293         New module 'uninorm/decomposition-table'.
41294         * lib/uninorm/decomposition-table.h: New file.
41295         * lib/uninorm/decomposition-table.c: New file.
41296         * lib/uninorm/decomposition-table1.h: New file, generated by
41297         gen-uni-tables.
41298         * lib/uninorm/decomposition-table2.h: New file, generated by
41299         gen-uni-tables.
41300         * modules/uninorm/decomposition-table: New file.
41301
41302         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41303         (UC_DECOMP_*): New enumeration items.
41304         (get_decomposition): New function.
41305         (struct decomp_table): New type.
41306         (output_decomposition, output_decomposition_tables): New functions.
41307         (unicode_composition_exclusions): New variable.
41308         (fill_composition_exclusions, debug_output_composition_tables): New
41309         functions.
41310         (main): Accept one more argument. Invoke fill_composition_exclusions.
41311         Output decomposition and composition tables.
41312
41313         New module 'uninorm/base'.
41314         * lib/uninorm.h: New file.
41315         * lib/unictype.h: Update comment.
41316         * modules/uninorm/base: New file.
41317
41318 2009-02-21  David Lutterkort  <lutter@redhat.com>
41319
41320         Tests for module 'safe-alloc'.
41321         * tests/test-safe-alloc.c: New file.
41322         * modules/safe-alloc-tests: New file.
41323
41324         New module 'safe-alloc'.
41325         * lib/safe-alloc.h: New file.
41326         * lib/safe-alloc.c: New file.
41327         * m4/safe-alloc.m4: New file.
41328         * modules/safe-alloc: New file.
41329         * doc/safe-alloc.texi: New file.
41330         * doc/gnulib.texi: Include it.
41331         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41332         safe-alloc.
41333
41334 2009-02-18  Bruno Haible  <bruno@clisp.org>
41335
41336         Fix link error on non-glibc systems.
41337         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41338         variable.
41339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41340
41341 2009-02-18  Jim Meyering  <meyering@redhat.com>
41342
41343         fts: avoid used-uninitialized error due to recent change
41344         * lib/fts.c (fts_read): Guard uses of the new member,
41345         parent->fts_n_dirs_remaining, since it's not relevant for
41346         the parent of a directory specified on the command-line.
41347
41348 2009-02-17  James Youngman  <jay@gnu.org>
41349             Bruno Haible  <bruno@clisp.org>
41350
41351         * m4/include_next.m4: Reformulate comment.
41352
41353 2009-02-16  Jim Meyering  <meyering@redhat.com>
41354
41355         fts: add #if guards so that the fts_lgpl module still builds
41356         * lib/fts.c: Guard just-added hash-table-using parts with
41357         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41358         Reported by Simon Josefsson.
41359
41360 2009-02-15  Bruno Haible  <bruno@clisp.org>
41361
41362         * modules/array-mergesort-tests: New file.
41363         * tests/test-array-mergesort.c: New file.
41364
41365         New module 'array-mergesort'.
41366         * modules/array-mergesort: New file.
41367         * lib/array-mergesort.h: New file.
41368
41369 2009-02-15  Bruno Haible  <bruno@clisp.org>
41370
41371         Fix 2009-02-07 commit.
41372         * lib/gen-uni-tables.c (output_predicate, output_category,
41373         output_combclass, output_bidi_category, output_decimal_digit,
41374         output_digit, output_numeric, output_mirror, output_scripts,
41375         output_ident_category, output_simple_mapping): Fix format directives.
41376         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41377
41378 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41379
41380         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41381         fixes are available from IBM.
41382
41383 2009-02-13  Jim Meyering  <meyering@redhat.com>
41384
41385         fts: arrange not to stat non-directories in more cases
41386         This makes GNU find (when it doesn't need to stat each file)
41387         *much* more efficient at traversing reiserfs file systems.
41388         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41389         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41390         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41391         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41392         (leaf_optimization_applies): New function.
41393         (LCO_hash, LCO_compare): New helper functions.
41394         (link_count_optimize_ok): New function.
41395         (fts_stat): Initialize new member (if dir).
41396         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41397         we've just stat'ed a directory.  Skip the stat call when possible.
41398         ---
41399         Note this AFS-related exchange:
41400         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41401         and note find's pioctl call in find/fstype.c.
41402         But that is necessary only if you want to enable the
41403         optimization for AFS, and for now, I don't.
41404
41405         fts: move a function definition "up" (no semantic change)
41406         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41407         "up" to precede upcoming use of a related function.
41408
41409 2009-02-11  Jim Meyering  <meyering@redhat.com>
41410
41411         fts: correct internal computation of nlinks (optimization-related)
41412         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41413         whether the current entry is a directory, so don't test it.
41414
41415 2009-02-10  Bruno Haible  <bruno@clisp.org>
41416
41417         Tests for module 'uniwbrk/ulc-wordbreaks'.
41418         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41419         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41420         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41421
41422         Tests for module 'uniwbrk/u32-wordbreaks'.
41423         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41424         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41425
41426         Tests for module 'uniwbrk/u16-wordbreaks'.
41427         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41428         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41429
41430         Tests for module 'uniwbrk/u8-wordbreaks'.
41431         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41432         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41433
41434 2009-02-10  Bruno Haible  <bruno@clisp.org>
41435
41436         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41437         property.
41438         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41439         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41440         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41441
41442 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41443
41444         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41445         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41446
41447 2009-02-10  Bruno Haible  <bruno@clisp.org>
41448
41449         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41450         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41451         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41452         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41453         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41454         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41455
41456 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41457
41458         * lib/sockets.h (gl_fd_to_handle): New function.
41459
41460         * tests/test-sockets.c: Call gl_fd_to_handle.
41461
41462 2009-02-09  Bruno Haible  <bruno@clisp.org>
41463
41464         * doc/havelib.texi: Document the conventions on bi-arch systems.
41465
41466 2009-02-08  Bruno Haible  <bruno@clisp.org>
41467
41468         Document the AC_LIB_LINKFLAGS macro.
41469         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41470         * doc/gnulib.texi: Include it.
41471
41472 2009-02-08  Bruno Haible  <bruno@clisp.org>
41473
41474         Fix wrong order of sections, compared to TOC.
41475         * doc/gnulib.texi: Include relocatable-maint.texi after the
41476         "Regular expressions" node, not before.
41477
41478 2009-02-08  Bruno Haible  <bruno@clisp.org>
41479
41480         Tests for module 'unicase/totitle'.
41481         * modules/unicase/totitle-tests: New file.
41482
41483         Tests for module 'unicase/tolower'.
41484         * modules/unicase/tolower-tests: New file.
41485
41486         Tests for module 'unicase/toupper'.
41487         * modules/unicase/toupper-tests: New file.
41488         * tests/unicase/test-mapping-part1.h: New file.
41489         * tests/unicase/test-mapping-part2.h: New file.
41490
41491         New module 'unicase/totitle'.
41492         * modules/unicase/totitle: New file.
41493         * lib/unicase/totitle.c: New file.
41494
41495         New module 'unicase/tolower'.
41496         * modules/unicase/tolower: New file.
41497         * lib/unicase/tolower.c: New file.
41498
41499         New module 'unicase/toupper'.
41500         * modules/unicase/toupper: New file.
41501         * lib/unicase/toupper.c: New file.
41502         * lib/unicase/simple-mapping.h: New file.
41503
41504         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41505         (mapping_table): New structure.
41506         (output_simple_mapping): New function.
41507         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41508         * modules/gen-uni-tables (Description): Update.
41509         * lib/unicase/toupper.h: New file, automatically generated by
41510         gen-uni-tables.
41511         * lib/unicase/tolower.h: New file, automatically generated by
41512         gen-uni-tables.
41513         * lib/unicase/totitle.h: New file, automatically generated by
41514         gen-uni-tables.
41515         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41516         gen-uni-tables.
41517         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41518         gen-uni-tables.
41519         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41520         gen-uni-tables.
41521
41522         New module 'unicase/base'.
41523         * modules/unicase/base: New file.
41524         * lib/unicase.h: New file.
41525
41526 2009-02-08  Bruno Haible  <bruno@clisp.org>
41527
41528         New module 'uniwbrk/ulc-wordbreaks'.
41529         * modules/uniwbrk/ulc-wordbreaks: New file.
41530         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41531
41532         New module 'uniwbrk/u32-wordbreaks'.
41533         * modules/uniwbrk/u32-wordbreaks: New file.
41534         * lib/uniwbrk/u32-wordbreaks.c: New file.
41535
41536         New module 'uniwbrk/u16-wordbreaks'.
41537         * modules/uniwbrk/u16-wordbreaks: New file.
41538         * lib/uniwbrk/u16-wordbreaks.c: New file.
41539
41540         New module 'uniwbrk/u8-wordbreaks'.
41541         * modules/uniwbrk/u8-wordbreaks: New file.
41542         * lib/uniwbrk/u8-wordbreaks.c: New file.
41543         * lib/uniwbrk/u-wordbreaks.h: New file.
41544
41545         New module 'uniwbrk/table'.
41546         * modules/uniwbrk/table: New file.
41547         * lib/uniwbrk/wbrktable.h: New file.
41548         * lib/uniwbrk/wbrktable.c: New file.
41549
41550         New module 'uniwbrk/wordbreak-property'.
41551         * modules/uniwbrk/wordbreak-property: New file.
41552         * lib/uniwbrk/wordbreak-property.c: New file.
41553
41554         * lib/gen-uni-tables.c (WBP_*): New enum items.
41555         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41556         (unicode_org_wbp): New variable.
41557         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41558         New functions.
41559         (wbp_table): New structure.
41560         (output_wbp, output_wbrk_tables): New functions.
41561         (main): Accept additional argument. Invoke fill_org_wbp,
41562         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41563         output_wbrk_tables.
41564         * modules/gen-uni-tables (Description): Update.
41565         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41566         gen-uni-tables.
41567
41568         New module 'uniwbrk/base'.
41569         * modules/uniwbrk/base: New file.
41570         * lib/uniwbrk.h: New file.
41571
41572 2009-02-08  Bruno Haible  <bruno@clisp.org>
41573
41574         Update to Unicode 5.1.0.
41575         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41576         U+2185..U+2188.
41577         (is_property_default_ignorable_code_point): Don't include characters
41578         of category Cc or Cs and not-a-characters.
41579         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41580         U+0D79, U+109E, U+109F, U+A60C.
41581         * lib/unictype/bidi_of.h: Regenerated.
41582         * lib/unictype/blocks.h: Regenerated.
41583         * lib/unictype/categ_C.h: Regenerated.
41584         * lib/unictype/categ_Cf.h: Regenerated.
41585         * lib/unictype/categ_Cn.h: Regenerated.
41586         * lib/unictype/categ_L.h: Regenerated.
41587         * lib/unictype/categ_Ll.h: Regenerated.
41588         * lib/unictype/categ_Lm.h: Regenerated.
41589         * lib/unictype/categ_Lo.h: Regenerated.
41590         * lib/unictype/categ_Lu.h: Regenerated.
41591         * lib/unictype/categ_M.h: Regenerated.
41592         * lib/unictype/categ_Mc.h: Regenerated.
41593         * lib/unictype/categ_Me.h: Regenerated.
41594         * lib/unictype/categ_Mn.h: Regenerated.
41595         * lib/unictype/categ_N.h: Regenerated.
41596         * lib/unictype/categ_Nd.h: Regenerated.
41597         * lib/unictype/categ_Nl.h: Regenerated.
41598         * lib/unictype/categ_No.h: Regenerated.
41599         * lib/unictype/categ_P.h: Regenerated.
41600         * lib/unictype/categ_Pd.h: Regenerated.
41601         * lib/unictype/categ_Pe.h: Regenerated.
41602         * lib/unictype/categ_Pf.h: Regenerated.
41603         * lib/unictype/categ_Pi.h: Regenerated.
41604         * lib/unictype/categ_Po.h: Regenerated.
41605         * lib/unictype/categ_Ps.h: Regenerated.
41606         * lib/unictype/categ_S.h: Regenerated.
41607         * lib/unictype/categ_Sk.h: Regenerated.
41608         * lib/unictype/categ_Sm.h: Regenerated.
41609         * lib/unictype/categ_So.h: Regenerated.
41610         * lib/unictype/categ_of.h: Regenerated.
41611         * lib/unictype/combining.h: Regenerated.
41612         * lib/unictype/ctype_alnum.h: Regenerated.
41613         * lib/unictype/ctype_alpha.h: Regenerated.
41614         * lib/unictype/ctype_graph.h: Regenerated.
41615         * lib/unictype/ctype_lower.h: Regenerated.
41616         * lib/unictype/ctype_print.h: Regenerated.
41617         * lib/unictype/ctype_punct.h: Regenerated.
41618         * lib/unictype/ctype_upper.h: Regenerated.
41619         * lib/unictype/decdigit.h: Regenerated.
41620         * lib/unictype/digit.h: Regenerated.
41621         * lib/unictype/mirror.h: Regenerated.
41622         * lib/unictype/numeric.h: Regenerated.
41623         * lib/unictype/pr_alphabetic.h: Regenerated.
41624         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41625         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41626         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41627         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41628         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41629         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41630         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41631         * lib/unictype/pr_combining.h: Regenerated.
41632         * lib/unictype/pr_dash.h: Regenerated.
41633         * lib/unictype/pr_decimal_digit.h: Regenerated.
41634         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41635         * lib/unictype/pr_deprecated.h: Regenerated.
41636         * lib/unictype/pr_diacritic.h: Regenerated.
41637         * lib/unictype/pr_extender.h: Regenerated.
41638         * lib/unictype/pr_format_control.h: Regenerated.
41639         * lib/unictype/pr_grapheme_base.h: Regenerated.
41640         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41641         * lib/unictype/pr_grapheme_link.h: Regenerated.
41642         * lib/unictype/pr_id_continue.h: Regenerated.
41643         * lib/unictype/pr_id_start.h: Regenerated.
41644         * lib/unictype/pr_ideographic.h: Regenerated.
41645         * lib/unictype/pr_ignorable_control.h: Regenerated.
41646         * lib/unictype/pr_lowercase.h: Regenerated.
41647         * lib/unictype/pr_math.h: Regenerated.
41648         * lib/unictype/pr_numeric.h: Regenerated.
41649         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41650         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41651         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41652         * lib/unictype/pr_other_id_continue.h: Regenerated.
41653         * lib/unictype/pr_other_lowercase.h: Regenerated.
41654         * lib/unictype/pr_other_math.h: Regenerated.
41655         * lib/unictype/pr_punctuation.h: Regenerated.
41656         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41657         * lib/unictype/pr_soft_dotted.h: Regenerated.
41658         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41659         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41660         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41661         * lib/unictype/pr_uppercase.h: Regenerated.
41662         * lib/unictype/pr_xid_continue.h: Regenerated.
41663         * lib/unictype/pr_xid_start.h: Regenerated.
41664         * lib/unictype/pr_zero_width.h: Regenerated.
41665         * lib/unictype/scripts.h: Regenerated.
41666         * lib/unictype/scripts_byname.gperf: Regenerated.
41667         * lib/unictype/sy_java_ident.h: Regenerated.
41668         * lib/unilbrk/lbrkprop1.h: Regenerated.
41669         * lib/unilbrk/lbrkprop2.h: Regenerated.
41670         * tests/unictype/test-categ_C.c: Regenerated.
41671         * tests/unictype/test-categ_Cf.c: Regenerated.
41672         * tests/unictype/test-categ_Cn.c: Regenerated.
41673         * tests/unictype/test-categ_L.c: Regenerated.
41674         * tests/unictype/test-categ_Ll.c: Regenerated.
41675         * tests/unictype/test-categ_Lm.c: Regenerated.
41676         * tests/unictype/test-categ_Lo.c: Regenerated.
41677         * tests/unictype/test-categ_Lu.c: Regenerated.
41678         * tests/unictype/test-categ_M.c: Regenerated.
41679         * tests/unictype/test-categ_Mc.c: Regenerated.
41680         * tests/unictype/test-categ_Me.c: Regenerated.
41681         * tests/unictype/test-categ_Mn.c: Regenerated.
41682         * tests/unictype/test-categ_N.c: Regenerated.
41683         * tests/unictype/test-categ_Nd.c: Regenerated.
41684         * tests/unictype/test-categ_Nl.c: Regenerated.
41685         * tests/unictype/test-categ_No.c: Regenerated.
41686         * tests/unictype/test-categ_P.c: Regenerated.
41687         * tests/unictype/test-categ_Pd.c: Regenerated.
41688         * tests/unictype/test-categ_Pe.c: Regenerated.
41689         * tests/unictype/test-categ_Pf.c: Regenerated.
41690         * tests/unictype/test-categ_Pi.c: Regenerated.
41691         * tests/unictype/test-categ_Po.c: Regenerated.
41692         * tests/unictype/test-categ_Ps.c: Regenerated.
41693         * tests/unictype/test-categ_S.c: Regenerated.
41694         * tests/unictype/test-categ_Sk.c: Regenerated.
41695         * tests/unictype/test-categ_Sm.c: Regenerated.
41696         * tests/unictype/test-categ_So.c: Regenerated.
41697         * tests/unictype/test-ctype_alnum.c: Regenerated.
41698         * tests/unictype/test-ctype_alpha.c: Regenerated.
41699         * tests/unictype/test-ctype_graph.c: Regenerated.
41700         * tests/unictype/test-ctype_lower.c: Regenerated.
41701         * tests/unictype/test-ctype_print.c: Regenerated.
41702         * tests/unictype/test-ctype_punct.c: Regenerated.
41703         * tests/unictype/test-ctype_upper.c: Regenerated.
41704         * tests/unictype/test-decdigit.h: Regenerated.
41705         * tests/unictype/test-digit.h: Regenerated.
41706         * tests/unictype/test-numeric.h: Regenerated.
41707         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41708         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41709         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41710         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41711         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41712         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41713         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41714         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41715         * tests/unictype/test-pr_combining.c: Regenerated.
41716         * tests/unictype/test-pr_dash.c: Regenerated.
41717         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41718         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41719         * tests/unictype/test-pr_deprecated.c: Regenerated.
41720         * tests/unictype/test-pr_diacritic.c: Regenerated.
41721         * tests/unictype/test-pr_extender.c: Regenerated.
41722         * tests/unictype/test-pr_format_control.c: Regenerated.
41723         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41724         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41725         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41726         * tests/unictype/test-pr_id_continue.c: Regenerated.
41727         * tests/unictype/test-pr_id_start.c: Regenerated.
41728         * tests/unictype/test-pr_ideographic.c: Regenerated.
41729         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41730         * tests/unictype/test-pr_lowercase.c: Regenerated.
41731         * tests/unictype/test-pr_math.c: Regenerated.
41732         * tests/unictype/test-pr_numeric.c: Regenerated.
41733         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41734         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41735         Regenerated.
41736         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41737         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41738         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41739         * tests/unictype/test-pr_other_math.c: Regenerated.
41740         * tests/unictype/test-pr_punctuation.c: Regenerated.
41741         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41742         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41743         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41744         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41745         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41746         * tests/unictype/test-pr_uppercase.c: Regenerated.
41747         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41748         * tests/unictype/test-pr_xid_start.c: Regenerated.
41749         * tests/unictype/test-pr_zero_width.c: Regenerated.
41750
41751         Update to Unicode 5.1.0.
41752         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41753         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41754         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41755         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41756         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41757         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41758         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41759         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41760         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41761         (nonspacing_table_ind): Update.
41762         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41763
41764         Update to Unicode 5.1.0.
41765         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41766         code transform.
41767         * lib/uniname/uniname.c (unicode_character_name,
41768         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41769         * lib/uniname/uninames.h: Regenerated.
41770         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41771
41772 2009-02-07  Bruno Haible  <bruno@clisp.org>
41773
41774         Merge gen-ctype and gen-lbrk into a single program.
41775         * lib/gen-uni-tables.c: New file, incorporating
41776         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41777         Add directory prefixes to the names of the generated files.
41778         * lib/unictype/gen-ctype.c: Remove file.
41779         * lib/unilbrk/gen-lbrk.c: Remove file.
41780         * modules/gen-uni-tables: New file.
41781         * modules/unictype/gen-ctype: Remove file.
41782         * modules/unilbrk/gen-lbrk: Remove file.
41783
41784 2009-02-07  Bruno Haible  <bruno@clisp.org>
41785
41786         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41787
41788         New module 'unistr/u32-strcoll'.
41789         * modules/unistr/u32-strcoll: New file.
41790         * lib/unistr/u32-strcoll.c: New file.
41791
41792         New module 'unistr/u16-strcoll'.
41793         * modules/unistr/u16-strcoll: New file.
41794         * lib/unistr/u16-strcoll.c: New file.
41795
41796         New module 'unistr/u8-strcoll'.
41797         * modules/unistr/u8-strcoll: New file.
41798         * lib/unistr/u8-strcoll.c: New file.
41799         * lib/unistr/u-strcoll.h: New file.
41800
41801 2009-02-07  Bruno Haible  <bruno@clisp.org>
41802
41803         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41804         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41805         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41806         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41807         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41808         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41809
41810 2009-02-07  Bruno Haible  <bruno@clisp.org>
41811
41812         Make 64-bit clean.
41813         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41814         output_combclass, output_bidi_category, output_decimal_digit,
41815         output_digit, output_numeric, output_mirror, output_scripts,
41816         output_ident_category): Use proper width specifier in format strings.
41817
41818 2009-02-07  Bruno Haible  <bruno@clisp.org>
41819
41820         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41821         failure behaviour.
41822
41823 2009-02-07  Jim Meyering  <meyering@redhat.com>
41824
41825         regex: avoid compilation failure with upcoming gcc-4.4
41826         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41827         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41828         "... error: integer overflow in preprocessor expression".
41829
41830 2009-02-05  Ben Pfaff  <blp@gnu.org>
41831
41832         Fix link errors on Windows when close module is used.
41833         * modules/close: Add $(LIB_CLOSE) to Link section.
41834         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41835         $(LIB_CLOSE) on Windows.
41836
41837 2009-02-05  Jim Meyering  <meyering@redhat.com>
41838
41839         still avoid unused-parameter warnings, but do it cleanly
41840         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41841         (get_fs_usage): Cast to void instead.
41842         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41843         (dev_from_mount_options, read_file_system_list): Cast to void.
41844         Prompted by Bruno Haible.
41845
41846 2009-02-04  Jim Meyering  <meyering@redhat.com>
41847
41848         fsusage.c: correct copyright year
41849         * lib/fsusage.c: Reflect year in which the change is pushed into
41850
41851         avoid misc. warnings
41852         * lib/fsusage.c (UNUSED_PARAM): Define.
41853         (get_fs_usage): Mark parameter "disk" as unused.
41854         * lib/getugroups.c (getgrent): Use "void" in prototype.
41855         * lib/mountlist.c: Mark unused parameters.
41856         (read_file_system_list): Declare a local with "const".
41857         * lib/nanosleep.c (getnow): Declare static.
41858         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41859
41860         dirfd: set errno upon failure
41861         * lib/dirfd.c: Include <errno.h>.
41862         Set errno to ENOTSUP when returning -1.
41863         * modules/dirfd (Depends-on): Add errno.
41864         Suggested by John Kodis <kodis@comcast.net>.
41865
41866 2009-02-01  Bruno Haible  <bruno@clisp.org>
41867
41868         Don't assume sizeof (long) >= sizeof (void *).
41869         * lib/memcmp.c: Include stdint.h.
41870         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41871         srcp2 to 'const byte *'.
41872         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41873         types to uintptr_t.
41874         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41875         * modules/memcmp (Depends-on): Add stdint.
41876         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41877
41878 2009-01-30  Eric Blake  <ebb9@byu.net>
41879
41880         fix more require-before-expand issues
41881         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41882         expand, AC_PROG_AWK.
41883         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41884
41885 2009-01-28  Eric Blake  <ebb9@byu.net>
41886
41887         version-etc: use consistent URL formatting
41888         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41889         Improve formatting.  Use fputs for string without %.
41890
41891 2009-01-28  Jim Meyering  <meyering@redhat.com>
41892
41893         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41894         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41895         "underquoted definition of NAME" from autoconf-2.59.
41896
41897 2009-01-28  Bruno Haible  <bruno@clisp.org>
41898
41899         * doc/gnulib.texi: Add "Obsolete modules" to index.
41900
41901 2009-01-28  Jim Meyering  <meyering@redhat.com>
41902
41903         useless-if-before-free: recognize more variants
41904         * build-aux/useless-if-before-free: Also recognize e.g.,
41905         if (NULL != p) free (p);
41906
41907 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41908
41909         test-getaddrinfo: skip (don't fail) this test when there's no network
41910         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41911         on the presumption that it means you lack network access.
41912
41913 2009-01-26  Jim Meyering  <meyering@redhat.com>
41914
41915         fflush: avoid warnings on modern systems
41916         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41917         pos and result, into scopes where they're used.
41918
41919 2009-01-26  Eric Blake  <ebb9@byu.net>
41920
41921         Silence warning reintroduced by recent extensions patch.
41922         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41923         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41924         autoconf.
41925
41926         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41927         * m4/00gnulib.m4: New file.
41928         * gnulib-tool (func_get_filelist): Always use it.
41929         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
41930         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
41931
41932 2009-01-25  Bruno Haible  <bruno@clisp.org>
41933
41934         Make test-quotearg work on MacOS X and AIX.
41935         * tests/test-quotearg.sh: New file.
41936         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
41937         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
41938         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
41939         include <libintl.h>.
41940         (fake_locale): Remove variable.
41941         (gettext, dgettext, dcgettext): Remove functions.
41942         (main): Instead of setting a fake locale, set a real locale. Call
41943         textdomain and bindtextdomain.
41944         * modules/quotearg-tests (Files): Add the new files.
41945         (Depends-on): Add gettext, setenv, unsetenv.
41946         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
41947         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
41948         Augment TESTS_ENVIRONMENT.
41949
41950 2009-01-25  Bruno Haible  <bruno@clisp.org>
41951
41952         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
41953         fr_FR.ISO8859-1 locale on MacOS X.
41954         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
41955         ja_JP.eucJP locale on MacOS X.
41956         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
41957         zh_CN.GB18030 locale on MacOS X.
41958
41959 2009-01-25  Bruno Haible  <bruno@clisp.org>
41960
41961         Avoid link errors on MacOS X 10.3.
41962         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
41963         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41964
41965 2009-01-25  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41968         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
41969         * modules/pipe (Files): Remove m4/posix_spawn.m4.
41970         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41971         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
41972         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41973         posix_spawnattr_init, posix_spawnattr_setsigmask,
41974         posix_spawnattr_setflags, posix_spawnattr_destroy.
41975
41976         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
41977         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
41978         * modules/execute (Files): Remove m4/posix_spawn.m4.
41979         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
41980         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
41981         posix_spawnattr_init, posix_spawnattr_setsigmask,
41982         posix_spawnattr_setflags, posix_spawnattr_destroy.
41983
41984 2009-01-25  Bruno Haible  <bruno@clisp.org>
41985
41986         * lib/glthread/threadlib.c: Include <stdlib.h>.
41987
41988 2009-01-25  Bruno Haible  <bruno@clisp.org>
41989
41990         * lib/glthread/threadlib.c (dummy): New declaration.
41991
41992 2009-01-25  Bruno Haible  <bruno@clisp.org>
41993
41994         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
41995         multibyte characters also for the GB18030 encoding. Don't crash when
41996         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
41997
41998 2009-01-25  Bruno Haible  <bruno@clisp.org>
41999
42000         Avoid redefining 'struct random_data' on OSF/1 5.1.
42001         * lib/stdlib.in.h: Include <random.h> if it exists.
42002         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42003         HAVE_RANDOM_H. Include <random.h> when testing whether
42004         'struct random_data' exists.
42005         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42006
42007 2009-01-25  Bruno Haible  <bruno@clisp.org>
42008
42009         Don't install charset.alias on MacOS X >= 10.3.
42010         * lib/localcharset.c (DARWIN7): New macro.
42011         (get_charset_aliases): Hardcode the result for Darwin7.
42012         * modules/localcharset (install-exec-local): Don't install
42013         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42014
42015 2009-01-25  Bruno Haible  <bruno@clisp.org>
42016
42017         Don't install charset.alias on mingw and Cygwin.
42018         * modules/localcharset (install-exec-local): Don't install
42019         charset.alias on mingw and Cygwin, if the file does not yet exist.
42020         The result for these platforms is hardcoded in localcharset.c.
42021
42022 2009-01-25  Bruno Haible  <bruno@clisp.org>
42023
42024         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42025         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42026         before requiring AC_USE_SYSTEM_EXTENSIONS.
42027
42028 2009-01-25  Jim Meyering  <meyering@redhat.com>
42029
42030         c-strtod: avoid warnings
42031         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42032         "assignment discards qualifiers from pointer target type" warnings.
42033
42034 2009-01-24  Bruno Haible  <bruno@clisp.org>
42035
42036         Add support for non-UTF-8 locales on MacOS X.
42037         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42038         canonical encodings. For Darwin 7 and newer, don't map traditional
42039         encodings to UTF-8.
42040         Reported by Vincent Lefevre <vincent@vinc17.org>
42041         at <http://savannah.gnu.org/bugs/?25235>.
42042
42043 2009-01-24  Bruno Haible  <bruno@clisp.org>
42044
42045         * doc/gnulib.texi (Obsolete modules): New section.
42046         Reported by Mike Frysinger <vapier@gentoo.org>.
42047
42048 2009-01-24  Bruno Haible  <bruno@clisp.org>
42049
42050         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42051         (%.dvi): New rule.
42052
42053 2009-01-24  Bruno Haible  <bruno@clisp.org>
42054
42055         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42056         Reported by Eric Blake.
42057
42058 2009-01-24  Bruno Haible  <bruno@clisp.org>
42059
42060         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42061         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42062         Reported by Gary V. Vaughan <gary@gnu.org>.
42063
42064 2009-01-24  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42067
42068 2009-01-23  Bruno Haible  <bruno@clisp.org>
42069
42070         Make c-strtod, c-strtold usable in libraries.
42071         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42072         (C_STRTOD): Call strdup instead of xstrdup.
42073         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42074         * modules/c-strtold (Depends-on): Likewise.
42075         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42076         * NEWS: Mention the change.
42077         Reported by Michael Gold <mgold@ncf.ca>.
42078
42079 2009-01-23  Jim Meyering  <meyering@redhat.com>
42080
42081         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42082         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42083         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42084
42085 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42086
42087         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42088         GNU CoreUtils.
42089         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42090         * modules/version-etc (Description): Update.
42091
42092 2009-01-22  Bruno Haible  <bruno@clisp.org>
42093
42094         Cache the C locale object.
42095         * lib/c-strtod.c (c_locale_cache): New variable.
42096         (c_locale): New function.
42097         (C_STRTOD): Use it, and don't call freelocale.
42098         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42099         Suggested by Paolo Bonzini.
42100
42101 2009-01-21  Bruno Haible  <bruno@clisp.org>
42102
42103         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42104         conditions other than overflow.
42105
42106 2009-01-21  Bruno Haible  <bruno@clisp.org>
42107
42108         * lib/c-strtod.c: Include errno.h.
42109         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42110         value from STRTOD_L and STRTOD.
42111
42112 2009-01-21  Bruno Haible  <bruno@clisp.org>
42113         and Jim Meyering  <meyering@redhat.com>
42114
42115         nanosleep: skip configure test (fail it) for apple universal builds
42116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42117         universal builds, assume that nanosleep does not work.
42118         * modules/nanosleep (Depends-on): Add multiarch.
42119
42120         mktime: skip configure test (fail it) for apple universal builds
42121         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42122         universal builds, assume that mktime does not work.
42123         * modules/mktime (Depends-on): Add multiarch.
42124
42125 2009-01-21  Eric Blake  <ebb9@byu.net>
42126
42127         multiarch: avoid expand-before-require warning
42128         * modules/multiarch (configure.ac): Require, rather than expand,
42129         gl_MULTIARCH.
42130         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42131         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42132         enforce that all clients require it.  Partial reversion of
42133         2008-12-29 patch.
42134
42135         error: avoid expand-before-require warning
42136         * modules/errno (configure.ac): Require, rather than expand,
42137         gl_HEADER_ERRNO_H.
42138         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42139         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42140         enforce that all clients require it.
42141
42142         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42143         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42144         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42145         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42146
42147 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42148
42149         Revert:
42150         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42151
42152         regex: do not depend on obsolete modules.
42153         * modules/regex: Remove memcmp and memmove.
42154
42155 2009-01-20  Bruno Haible  <bruno@clisp.org>
42156
42157         Make the 'link' module link on Windows NT 4.
42158         * lib/link.c (_WIN32_WINNT): Don't define.
42159         (CreateHardLinkFuncType): New type.
42160         (CreateHardLinkFunc, initialized): New variables.
42161         (initialize): New function.
42162         (link): Invoke CreateHardLink indirectly through the function pointer.
42163
42164 2009-01-20  Bruno Haible  <bruno@clisp.org>
42165
42166         Fix compilation failure on mingw.
42167         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42168
42169 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42170
42171         * doc/c-strtod.texi: Mention a couple of restrictions.
42172
42173 2009-01-20  Jim Meyering  <meyering@redhat.com>
42174
42175         gettimeofday: move more declarations out of functions
42176         * lib/gettimeofday.c: Move extern declarations of tzset and
42177         gmtime out of containing functions.  Prompted by Bruno Haible.
42178
42179 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42180
42181         regex: do not depend on obsolete modules.
42182         * modules/regex: Remove memcmp and memmove.
42183
42184 2009-01-19  Bruno Haible  <bruno@clisp.org>
42185
42186         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42187         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42188         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42189         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42190         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42191
42192 2009-01-19  Bruno Haible  <bruno@clisp.org>
42193
42194         * tests/test-link.c: Include <errno.h>.
42195         (main): Exit with code 77 when a hard link cannot be created due to
42196         the file system.
42197         * tests/test-link.sh: Skip test when a hard link cannot be created due
42198         to the file system.
42199         Suggested by Eric Blake.
42200
42201 2009-01-19  Martin Lambers  <marlam@marlam.de>
42202
42203         * modules/link-tests: New file.
42204         * tests/test-link.sh: New file.
42205         * tests/test-link.c: New file.
42206
42207 2009-01-19  Eric Blake  <ebb9@byu.net>
42208
42209         doc: mention another function added in cygwin 1.7.0
42210         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42211         Another new function in cygwin 1.7.
42212
42213 2009-01-19  Bruno Haible  <bruno@clisp.org>
42214
42215         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42216         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42217         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42218         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42219         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42220         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42221         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42222         * m4/md4.m4 (gl_MD4): Likewise.
42223         * m4/md5.m4 (gl_MD5): Likewise.
42224         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42225         * m4/sha1.m4 (gl_SHA1): Likewise.
42226         * m4/sha256.m4 (gl_SHA256): Likewise.
42227         * m4/sha512.m4 (gl_SHA512): Likewise.
42228
42229 2009-01-19  Bruno Haible  <bruno@clisp.org>
42230
42231         * modules/uniname/uniname-tests (Depends-on): Add progname.
42232         * tests/uniname/test-uninames.c: Include progname.h.
42233         (main): Call set_program_name.
42234
42235         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42236         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42237         (main): Call set_program_name.
42238
42239         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42240         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42241         (main): Call set_program_name.
42242
42243         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42244         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42245         (main): Call set_program_name.
42246
42247         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42248         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42249         (main): Call set_program_name.
42250
42251         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42252         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42253         (main): Call set_program_name.
42254
42255         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42256         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42257         (main): Call set_program_name.
42258
42259         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42260         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42261         (main): Call set_program_name.
42262
42263         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42264         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42265         (main): Call set_program_name.
42266
42267 2009-01-19  Eric Blake  <ebb9@byu.net>
42268
42269         test-unistd: test previous patch
42270         * tests/test-unistd.c: Test *_FILENO macros.
42271
42272         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42273         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42274         Guarantee a definition.
42275         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42276         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42277         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42278         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42279         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42280         Likewise.
42281         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42282         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42283         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42284         Likewise.
42285         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42286         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42287         (STDERR_FILENO): Likewise.
42288         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42289         (STDERR_FILENO): Likewise.
42290         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42291         (STDERR_FILENO): Likewise.
42292         Reported by Elbert Pol.
42293
42294 2009-01-19  Eric Blake  <ebb9@byu.net>
42295
42296         doc: mention more functions added in cygwin 1.7.0
42297         * doc/posix-functions/abort.texi (abort): Update wording related
42298         to cygwin.
42299         * doc/posix-functions/daylight.texi (daylight): Likewise.
42300         * doc/posix-functions/optarg.texi (optarg): Likewise.
42301         * doc/posix-functions/optarg.texi (opterr): Likewise.
42302         * doc/posix-functions/optarg.texi (optind): Likewise.
42303         * doc/posix-functions/optarg.texi (optopt): Likewise.
42304         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42305         worked in 1.5.x, and was withdrawn in 1.7.
42306         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42307         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42308         cygwin versions.
42309         * doc/posix-functions/perror.texi (perror): Likewise.
42310         * doc/posix-functions/printf.texi (printf): Likewise.
42311         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42312         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42313         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42314         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42315         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42316         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42317         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42318         Likewise.
42319         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42320         Likewise.
42321         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42322         this function.
42323         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42324         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42325         Likewise.
42326         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42327         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42328         * doc/posix-functions/confstr.texi (confstr): Likewise.
42329         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42330         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42331         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42332         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42333         * doc/posix-functions/fputws.texi (fputws): Likewise.
42334         * doc/posix-functions/fwide.texi (fwide): Likewise.
42335         * doc/posix-functions/getwc.texi (getwc): Likewise.
42336         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42337         * doc/posix-functions/putwc.texi (putwc): Likewise.
42338         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42339         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42340         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42341         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42342         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42343         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42344         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42345         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42346         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42347         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42348         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42349
42350 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42351
42352         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42353         * lib/ioctl.c: Include <sys/ioctl.h>.
42354
42355 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42356
42357         * modules/getdate-tests (Depends-on): Add progname.
42358         * tests/test-getdate.c: Use progname module, to avoid link errors
42359         on non-glibc systems.
42360
42361 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42362
42363         * modules/filenamecat-tests (Depends-on): Add progname.
42364         * modules/fstrcmp-tests (Depends-on): Likewise.
42365
42366         * tests/test-filenamecat.c: Use progname module, to avoid link
42367         errors on non-glibc systems.
42368         * tests/test-fstrcmp.c: Likewise.
42369
42370 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42371
42372         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42373         * lib/gettimeofday.c: Move extern declaration out of function.
42374
42375 2009-01-18  Bruno Haible  <bruno@clisp.org>
42376
42377         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42378         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42379         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42380
42381 2009-01-18  Bruno Haible  <bruno@clisp.org>
42382
42383         * lib/strftime.c (MEMPCPY): Remove unused macro.
42384         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42385
42386 2009-01-18  Martin Lambers  <marlam@marlam.de>
42387
42388         New module 'link'.
42389         * lib/unistd.in.h (link): New declaration.
42390         * lib/link.c: New file.
42391         * m4/link.m4: New file.
42392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42393         HAVE_LINK.
42394         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42395         * modules/link: New file.
42396         * doc/posix-functions/link.texi: Mention the new module.
42397
42398 2009-01-18  Bruno Haible  <bruno@clisp.org>
42399
42400         * tests/test-avltree_list.c (main): Call set_program_name.
42401         * tests/test-avltree_oset.c (main): Likewise.
42402         * tests/test-obstack-printf.c: Include progname.h.
42403         (main): Call set_program_name.
42404         * tests/test-quotearg.c: Include progname.h.
42405         (main): Call set_program_name.
42406         * tests/test-xmemdup0.c: Include progname.h.
42407         (main): Call set_program_name.
42408
42409 2009-01-18  Bruno Haible  <bruno@clisp.org>
42410
42411         New module 'alphasort'.
42412         * lib/dirent.in.h (alphasort): New declaration.
42413         * lib/alphasort.c: New file, from glibc with modifications.
42414         * m4/alphasort.m4: New file.
42415         * modules/alphasort: New file.
42416         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42417         HAVE_ALPHASORT.
42418         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42419         HAVE_ALPHASORT.
42420         * doc/posix-functions/alphasort.texi: Mention the new module and the
42421         portability problems.
42422
42423 2009-01-18  Bruno Haible  <bruno@clisp.org>
42424
42425         New module 'scandir'.
42426         * lib/dirent.in.h (scandir): New declaration.
42427         * lib/scandir.c: New file, from glibc with modifications.
42428         * m4/scandir.m4: New file.
42429         * modules/scandir: New file.
42430         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42431         HAVE_SCANDIR.
42432         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42433         HAVE_SCANDIR.
42434         * doc/posix-functions/scandir.texi: Mention the new module and the
42435         portability problems.
42436
42437 2009-01-17  Bruno Haible  <bruno@clisp.org>
42438
42439         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42440         Update documentation.
42441         (func_remove_suffix): Escape all dots in the suffix. Update
42442         documentation.
42443         (func_filter_filelist): Update documentation.
42444         Reported by Ralf Wildenhues.
42445
42446 2009-01-17  Bruno Haible  <bruno@clisp.org>
42447
42448         * modules/dprintf-posix-tests: New file.
42449         * tests/test-dprintf-posix.sh: New file.
42450         * tests/test-dprintf-posix.c: New file.
42451
42452         New modules 'dprintf', 'dprintf-posix'.
42453         * lib/stdio.in.h (dprintf): New declaration.
42454         * lib/dprintf.c: New file.
42455         * m4/dprintf.m4: New file.
42456         * m4/dprintf-posix.m4: New file.
42457         * modules/dprintf: New file.
42458         * modules/dprintf-posix: New file.
42459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42460         HAVE_DPRINTF, REPLACE_DPRINTF.
42461         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42462         HAVE_DPRINTF, REPLACE_DPRINTF.
42463         * doc/posix-functions/dprintf.texi: Mention the new modules.
42464
42465 2009-01-17  Bruno Haible  <bruno@clisp.org>
42466
42467         * modules/vdprintf-posix-tests: New file.
42468         * tests/test-vdprintf-posix.sh: New file.
42469         * tests/test-vdprintf-posix.c: New file.
42470
42471         New modules 'vdprintf', 'vdprintf-posix'.
42472         * lib/stdio.in.h (vdprintf): New declaration.
42473         * lib/vdprintf.c: New file.
42474         * m4/vdprintf.m4: New file.
42475         * m4/vdprintf-posix.m4: New file.
42476         * modules/vdprintf: New file.
42477         * modules/vdprintf-posix: New file.
42478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42479         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42480         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42481         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42482         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42483
42484 2009-01-17  Bruno Haible  <bruno@clisp.org>
42485
42486         Fix replacement of fopen on mingw.
42487         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42488         mingw.
42489
42490 2009-01-17  Bruno Haible  <bruno@clisp.org>
42491
42492         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42493         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42494
42495 2009-01-17  Bruno Haible  <bruno@clisp.org>
42496
42497         Avoid test-fflush2.sh failure on mingw.
42498         * tests/test-fflush2.c: Include binary-io.h.
42499         (main): Put standard input into binary mode.
42500         * modules/fflush-tests (Depends-on): Add binary-io.
42501
42502 2009-01-17  Bruno Haible  <bruno@clisp.org>
42503
42504         * lib/wchar.in.h: In another particular situation, include only the
42505         system's <wchar.h> file.
42506         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42507         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42508         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42509
42510 2009-01-17  Bruno Haible  <bruno@clisp.org>
42511
42512         Support for stripping executables in --enable-relocatable.
42513         * build-aux/install-reloc: Expect one more argument, or an environment
42514         variable RELOC_STRIP_PROG. If set, strip the destination program and
42515         its wrapper.
42516         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42517         RELOC_STRIP_PROG.
42518         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42519         to set RELOCATABLE_STRIP.
42520         * NEWS: Mention the new Makefile requirement.
42521
42522 2009-01-17  Bruno Haible  <bruno@clisp.org>
42523
42524         * build-aux/install-reloc: Remove debugging information left over by
42525         C compiler on MacOS X.
42526
42527 2009-01-17  Bruno Haible  <bruno@clisp.org>
42528
42529         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42530         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42531         _NSGetExecutablePath.
42532
42533 2009-01-16  Jim Meyering  <meyering@redhat.com>
42534
42535         strerror: avoid warnings about discarding "const"
42536         * lib/strerror.c (rpl_strerror): Instead of returning a const
42537         string from each and every "case", use a variable, and add a single
42538         cast after the switch.
42539
42540 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42541
42542         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42543
42544 2009-01-16  Bruno Haible  <bruno@clisp.org>
42545
42546         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42547         array initializer syntax that also works in C++ mode.
42548         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42549
42550 2009-01-16  Jim Meyering  <meyering@redhat.com>
42551
42552         poll: suppress a warning
42553         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42554         to ignore "...unsigned expression < 0 is always false" warnings.
42555
42556 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42557
42558         poll: remove declarations of unused variables
42559         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42560         sockbuf and optlen.
42561
42562 2009-01-15  Bruno Haible  <bruno@clisp.org>
42563
42564         Make fflush-after-ungetc POSIX compliant on BSD systems.
42565         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42566         (clear_ungetc_buffer): Implement also for other systems.
42567         (rpl_fflush): On glibc systems, invoke
42568         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42569         clear_ungetc_buffer after fetching the stream's position, not before.
42570
42571 2009-01-15  Bruno Haible  <bruno@clisp.org>
42572
42573         Make fflush-after-ungetc POSIX compliant on glibc systems.
42574         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42575         after ungetc.
42576         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42577         (rpl_fflush): On glibc systems, simply call the system's fflush
42578         function after clearing the ungetc buffer.
42579         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42580         Instead, lseek only to the end of file, then use the system's fseeko
42581         for the rest. On glibc systems, reset the EOF indicator bit.
42582
42583 2009-01-15  Jim Meyering  <meyering@redhat.com>
42584
42585         openmp.m4: revert quote-adding change, for portability to older autoconf
42586         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42587         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42588         Simon Josefsson noticed the problem when using autoconf-2.61.
42589
42590 2009-01-15  Bruno Haible  <bruno@clisp.org>
42591
42592         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42593         * tests/test-fflush2.c (ASSERT): Always fail.
42594         (main): Add two tests for fflush() after ungetc(), taking into account
42595         the Austin Group's clarification.
42596         Suggested by Eric Blake.
42597
42598 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42599
42600         mktime.m4: remove K&R-style function prototypes
42601         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42602         for the Sun C++ compiler.
42603
42604 2009-01-14  Bruno Haible  <bruno@clisp.org>
42605
42606         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42607         while including <wchar.h>.
42608         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42609         the system's <wchar.h> file.
42610         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42611
42612 2009-01-14  Bruno Haible  <bruno@clisp.org>
42613
42614         * m4/csharp.m4: Don't mention gettext on the serial number line.
42615         * m4/csharpexec.m4: Likewise.
42616         * m4/eaccess.m4: Likewise.
42617         * m4/javaexec.m4: Likewise.
42618         * m4/sig_atomic_t.m4: Likewise.
42619         * m4/tmpdir.m4: Likewise.
42620         * m4/intldir.m4: Bump gettext version.
42621         * m4/lib-ld.m4: Likewise.
42622
42623 2009-01-14  Bruno Haible  <bruno@clisp.org>
42624
42625         * lib/progname.c (set_program_name): Add more comments.
42626         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42627
42628 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42629
42630         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42631         were sys/stat.h does not define it.
42632
42633 2009-01-14  Jim Meyering  <meyering@redhat.com>
42634
42635         many *.m4 files: improve m4 quoting
42636         99% of this change was performed by running the following commands:
42637         git ls-files | grep '\.m4$' | xargs perl -pi \
42638           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42639           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42640           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42641           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42642         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42643         The remainder were to add Copyright dates, increment serial numbers,
42644         undo some changes in comments, exclude m4/intl.m4, and add quotes
42645         around the "1" in ",1" where the unusual spacing prohibited the
42646         above regexps from doing the job.  For more details, see
42647         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42648         * m4/acl.m4: Modified.
42649         * m4/afs.m4: Likewise.
42650         * m4/alloca.m4: Likewise.
42651         * m4/argp.m4: Likewise.
42652         * m4/argz.m4: Likewise.
42653         * m4/atexit.m4: Likewise.
42654         * m4/bison-i18n.m4: Likewise.
42655         * m4/bison.m4: Likewise.
42656         * m4/byteswap.m4: Likewise.
42657         * m4/c-stack.m4: Likewise.
42658         * m4/c-strtod.m4: Likewise.
42659         * m4/calloc.m4: Likewise.
42660         * m4/canonicalize-lgpl.m4: Likewise.
42661         * m4/chown.m4: Likewise.
42662         * m4/clock_time.m4: Likewise.
42663         * m4/codeset.m4: Likewise.
42664         * m4/copy-file.m4: Likewise.
42665         * m4/csharp.m4: Likewise.
42666         * m4/csharpcomp.m4: Likewise.
42667         * m4/csharpexec.m4: Likewise.
42668         * m4/d-ino.m4: Likewise.
42669         * m4/d-type.m4: Likewise.
42670         * m4/dirfd.m4: Likewise.
42671         * m4/double-slash-root.m4: Likewise.
42672         * m4/eaccess.m4: Likewise.
42673         * m4/eealloc.m4: Likewise.
42674         * m4/environ.m4: Likewise.
42675         * m4/errno_h.m4: Likewise.
42676         * m4/euidaccess.m4: Likewise.
42677         * m4/execute.m4: Likewise.
42678         * m4/fatal-signal.m4: Likewise.
42679         * m4/fchdir.m4: Likewise.
42680         * m4/fcntl_h.m4: Likewise.
42681         * m4/fileblocks.m4: Likewise.
42682         * m4/filenamecat.m4: Likewise.
42683         * m4/findprog.m4: Likewise.
42684         * m4/flexmember.m4: Likewise.
42685         * m4/fnmatch.m4: Likewise.
42686         * m4/fopen.m4: Likewise.
42687         * m4/fpending.m4: Likewise.
42688         * m4/fprintf-posix.m4: Likewise.
42689         * m4/free.m4: Likewise.
42690         * m4/frexp.m4: Likewise.
42691         * m4/frexpl.m4: Likewise.
42692         * m4/fsusage.m4: Likewise.
42693         * m4/ftruncate.m4: Likewise.
42694         * m4/gc-camellia.m4: Likewise.
42695         * m4/gc-random.m4: Likewise.
42696         * m4/gc.m4: Likewise.
42697         * m4/getaddrinfo.m4: Likewise.
42698         * m4/getcwd-abort-bug.m4: Likewise.
42699         * m4/getcwd-path-max.m4: Likewise.
42700         * m4/getdate.m4: Likewise.
42701         * m4/getdomainname.m4: Likewise.
42702         * m4/getgroups.m4: Likewise.
42703         * m4/gethostname.m4: Likewise.
42704         * m4/gethrxtime.m4: Likewise.
42705         * m4/getline.m4: Likewise.
42706         * m4/getloadavg.m4: Likewise.
42707         * m4/getndelim2.m4: Likewise.
42708         * m4/getpass.m4: Likewise.
42709         * m4/gettext.m4: Likewise.
42710         * m4/gettime.m4: Likewise.
42711         * m4/gettimeofday.m4: Likewise.
42712         * m4/gnulib-common.m4: Likewise.
42713         * m4/group-member.m4: Likewise.
42714         * m4/host-os.m4: Likewise.
42715         * m4/iconv.m4: Likewise.
42716         * m4/iconv_open.m4: Likewise.
42717         * m4/inet_ntop.m4: Likewise.
42718         * m4/inet_pton.m4: Likewise.
42719         * m4/inline.m4: Likewise.
42720         * m4/intldir.m4: Likewise.
42721         * m4/intlmacosx.m4: Likewise.
42722         * m4/intmax.m4: Likewise.
42723         * m4/intmax_t.m4: Likewise.
42724         * m4/inttypes.m4: Likewise.
42725         * m4/inttypes_h.m4: Likewise.
42726         * m4/inttypes-pri.m4: Likewise.
42727         * m4/isapipe.m4: Likewise.
42728         * m4/isnand.m4: Likewise.
42729         * m4/isnanf.m4: Likewise.
42730         * m4/isnanl.m4: Likewise.
42731         * m4/javacomp.m4: Likewise.
42732         * m4/javaexec.m4: Likewise.
42733         * m4/jm-winsz1.m4: Likewise.
42734         * m4/jm-winsz2.m4: Likewise.
42735         * m4/lchown.m4: Likewise.
42736         * m4/lcmessage.m4: Likewise.
42737         * m4/ldexpl.m4: Likewise.
42738         * m4/lib-ld.m4: Likewise.
42739         * m4/lib-link.m4: Likewise.
42740         * m4/libsigsegv.m4: Likewise.
42741         * m4/link-follow.m4: Likewise.
42742         * m4/localcharset.m4: Likewise.
42743         * m4/locale-fr.m4: Likewise.
42744         * m4/locale-ja.m4: Likewise.
42745         * m4/locale-tr.m4: Likewise.
42746         * m4/locale-zh.m4: Likewise.
42747         * m4/lock.m4: Likewise.
42748         * m4/longlong.m4: Likewise.
42749         * m4/ls-mntd-fs.m4: Likewise.
42750         * m4/lstat.m4: Likewise.
42751         * m4/malloc.m4: Likewise.
42752         * m4/mathl.m4: Likewise.
42753         * m4/mbrtowc.m4: Likewise.
42754         * m4/mbstate_t.m4: Likewise.
42755         * m4/mbswidth.m4: Likewise.
42756         * m4/memchr.m4: Likewise.
42757         * m4/memcmp.m4: Likewise.
42758         * m4/memcpy.m4: Likewise.
42759         * m4/memmem.m4: Likewise.
42760         * m4/memmove.m4: Likewise.
42761         * m4/mempcpy.m4: Likewise.
42762         * m4/memrchr.m4: Likewise.
42763         * m4/memset.m4: Likewise.
42764         * m4/minmax.m4: Likewise.
42765         * m4/mkdir-slash.m4: Likewise.
42766         * m4/mkdtemp.m4: Likewise.
42767         * m4/mktime.m4: Likewise.
42768         * m4/mmap-anon.m4: Likewise.
42769         * m4/mountlist.m4: Likewise.
42770         * m4/nanosleep.m4: Likewise.
42771         * m4/nls.m4: Likewise.
42772         * m4/nocrash.m4: Likewise.
42773         * m4/open.m4: Likewise.
42774         * m4/openat.m4: Likewise.
42775         * m4/openmp.m4: Likewise.
42776         * m4/pathmax.m4: Likewise.
42777         * m4/perl.m4: Likewise.
42778         * m4/physmem.m4: Likewise.
42779         * m4/pipe.m4: Likewise.
42780         * m4/po.m4: Likewise.
42781         * m4/poll.m4: Likewise.
42782         * m4/posixtm.m4: Likewise.
42783         * m4/posixver.m4: Likewise.
42784         * m4/printf-frexp.m4: Likewise.
42785         * m4/printf-frexpl.m4: Likewise.
42786         * m4/printf-posix.m4: Likewise.
42787         * m4/printf-posix-rpl.m4: Likewise.
42788         * m4/printf.m4: Likewise.
42789         * m4/progtest.m4: Likewise.
42790         * m4/putenv.m4: Likewise.
42791         * m4/readline.m4: Likewise.
42792         * m4/readlink.m4: Likewise.
42793         * m4/readutmp.m4: Likewise.
42794         * m4/realloc.m4: Likewise.
42795         * m4/regex.m4: Likewise.
42796         * m4/relocatable.m4: Likewise.
42797         * m4/relocatable-lib.m4: Likewise.
42798         * m4/rename-dest-slash.m4: Likewise.
42799         * m4/rename.m4: Likewise.
42800         * m4/rmdir-errno.m4: Likewise.
42801         * m4/rmdir.m4: Likewise.
42802         * m4/roundf.m4: Likewise.
42803         * m4/roundl.m4: Likewise.
42804         * m4/rpmatch.m4: Likewise.
42805         * m4/save-cwd.m4: Likewise.
42806         * m4/selinux-selinux-h.m4: Likewise.
42807         * m4/setenv.m4: Likewise.
42808         * m4/settime.m4: Likewise.
42809         * m4/sig2str.m4: Likewise.
42810         * m4/sig_atomic_t.m4: Likewise.
42811         * m4/signalblocking.m4: Likewise.
42812         * m4/signbit.m4: Likewise.
42813         * m4/sigpipe.m4: Likewise.
42814         * m4/sockets.m4: Likewise.
42815         * m4/sockpfaf.m4: Likewise.
42816         * m4/st_dm_mode.m4: Likewise.
42817         * m4/stat-time.m4: Likewise.
42818         * m4/stdbool.m4: Likewise.
42819         * m4/stdint.m4: Likewise.
42820         * m4/stdint_h.m4: Likewise.
42821         * m4/stpcpy.m4: Likewise.
42822         * m4/stpncpy.m4: Likewise.
42823         * m4/strcase.m4: Likewise.
42824         * m4/strchrnul.m4: Likewise.
42825         * m4/strcspn.m4: Likewise.
42826         * m4/strdup.m4: Likewise.
42827         * m4/strftime.m4: Likewise.
42828         * m4/strndup.m4: Likewise.
42829         * m4/strnlen.m4: Likewise.
42830         * m4/strpbrk.m4: Likewise.
42831         * m4/strptime.m4: Likewise.
42832         * m4/strsep.m4: Likewise.
42833         * m4/strtod.m4: Likewise.
42834         * m4/strtoimax.m4: Likewise.
42835         * m4/strtok_r.m4: Likewise.
42836         * m4/strtol.m4: Likewise.
42837         * m4/strtoll.m4: Likewise.
42838         * m4/strtoul.m4: Likewise.
42839         * m4/strtoull.m4: Likewise.
42840         * m4/strtoumax.m4: Likewise.
42841         * m4/strverscmp.m4: Likewise.
42842         * m4/threadlib.m4: Likewise.
42843         * m4/timegm.m4: Likewise.
42844         * m4/tm_gmtoff.m4: Likewise.
42845         * m4/tmpdir.m4: Likewise.
42846         * m4/tmpfile.m4: Likewise.
42847         * m4/tzset.m4: Likewise.
42848         * m4/uintmax_t.m4: Likewise.
42849         * m4/unlinkdir.m4: Likewise.
42850         * m4/unlocked-io.m4: Likewise.
42851         * m4/uptime.m4: Likewise.
42852         * m4/userspec.m4: Likewise.
42853         * m4/utimbuf.m4: Likewise.
42854         * m4/utime.m4: Likewise.
42855         * m4/utimes-null.m4: Likewise.
42856         * m4/utimes.m4: Likewise.
42857         * m4/vararrays.m4: Likewise.
42858         * m4/vasnprintf.m4: Likewise.
42859         * m4/vfprintf-posix.m4: Likewise.
42860         * m4/vprintf-posix.m4: Likewise.
42861         * m4/wait-process.m4: Likewise.
42862         * m4/wchar_t.m4: Likewise.
42863         * m4/wint_t.m4: Likewise.
42864         * m4/write-any-file.m4: Likewise.
42865         * m4/yield.m4: Likewise.
42866
42867 2009-01-13  Bruno Haible  <bruno@clisp.org>
42868
42869         Avoid test-copy-file.sh failures when ACL support insufficient.
42870         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42871         TESTS_ENVIRONMENT.
42872         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42873         Reported by Jim Meyering.
42874
42875 2009-01-13  Bruno Haible  <bruno@clisp.org>
42876
42877         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42878         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42879         * modules/unistdio/u8-printf-parse (Files): Likewise.
42880         * modules/unistdio/u32-printf-parse (Files): Likewise.
42881         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42882
42883 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42884
42885         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42886         and m4/inttypes_h.m4 too.
42887
42888 2009-01-12  Eric Blake  <ebb9@byu.net>
42889
42890         tests: IRIX 6.2 cc can't compile -0.0 into .data
42891         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42892         rather than at compile-time.
42893         * tests/test-floorl.c (minus_zero): Likewise.
42894         * tests/test-frexpl.c (minus_zero): Likewise.
42895         * tests/test-isnan.c (minus_zerol): Likewise.
42896         * tests/test-isnanl.h (minus_zero): Likewise.
42897         * tests/test-ldexpl.c (minus_zero): Likewise.
42898         * tests/test-roundl.c (minus_zero): Likewise.
42899         * tests/test-signbit.c (minus_zerol): Likewise.
42900         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42901         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42902         * tests/test-truncl.c (minus_zero): Likewise.
42903         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42904         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42905         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42906
42907 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42908
42909         regex: fix glibc bug 9697
42910         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42911         handling.
42912
42913 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42914
42915         regex: fix glibc bug 697
42916         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42917         being NULL also if there are no backreferences.
42918
42919 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42920
42921         regex: merge glibc changes
42922         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42923         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42924         re_string_skip_chars, re_string_reconstruct): Likewise.
42925         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42926
42927 2009-01-07  Jim Meyering  <meyering@redhat.com>
42928
42929         poll: filter through cppi
42930         * lib/poll.c: Indent cpp directives to reflect nesting.
42931
42932 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
42933
42934         poll: don't return uninitialized
42935         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
42936
42937 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
42938
42939         avoid compile failure on AIX 6.1
42940         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
42941         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
42942
42943 2009-01-04  Jim Meyering  <meyering@redhat.com>
42944
42945         remove duplicate inclusion of <stdio.h>
42946         * tests/test-fprintf-posix.c: Likewise.
42947         * tests/test-printf-posix.c: Likewise.
42948         * tests/test-snprintf-posix.c: Likewise.
42949         * tests/test-sprintf-posix.c: Likewise.
42950         * tests/test-vasprintf-posix.c: Likewise.
42951         * tests/test-vfprintf-posix.c: Likewise.
42952         * tests/test-vprintf-posix.c: Likewise.
42953         * tests/test-vsnprintf-posix.c: Likewise.
42954         * tests/test-vsprintf-posix.c: Likewise.
42955
42956 2009-01-03  Jim Meyering  <meyering@redhat.com>
42957
42958         gnulib-tool: fix sed-based filtering
42959         * gnulib-tool (func_filter_filelist): Remove extra backslash
42960         in sed_fff_filter definition.
42961
42962 2009-01-02  Jim Meyering  <meyering@redhat.com>
42963
42964         strftime: avoid compilation failure on Solaris 2.6
42965         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
42966         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
42967         Don't #define mbrlen or mbsinit, since now they're guaranteed to
42968         be available.  Reported by Tom G. Christensen.  Details in
42969         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
42970
42971 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42972             Bruno Haible  <bruno@clisp.org>
42973
42974         Speed up gnulib-tool by doing more string processing through shell
42975         built-ins.
42976         * gnulib-tool (fast_func_append): New variable.
42977         (func_remove_prefix, func_remove_suffix): New functions.
42978         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
42979         (func_filter_filelist): New function.
42980         (func_get_dependencies): Use func_remove_suffix instead of sed.
42981         (func_get_automake_snippet): Use func_filter_filelist instead of a
42982         subshell and sed invocation.
42983
42984 2009-01-01  Bruno Haible  <bruno@clisp.org>
42985
42986         Fix a security bug.
42987         * gnulib-tool (func_import, import, update): Don't allow the characters
42988         '"', '$', '`', '\' in macro arguments that become part of commands that
42989         are evaluated.
42990
42991 2009-01-01  Bruno Haible  <bruno@clisp.org>
42992
42993         * gnulib-tool (func_reset_sigpipe): Add more comments.
42994
42995 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42996
42997         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
42998         func_emit_tests_Makefile_am, func_import): Abort loops early if we
42999         already know the answer.
43000
43001 2009-01-01  Jim Meyering  <meyering@redhat.com>
43002
43003         * lib/version-etc.c (version_etc_va): Update copyright year.
43004
43005 2008-12-30  Bruno Haible  <bruno@clisp.org>
43006
43007         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43008         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43009         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43010
43011 2008-12-29  Eric Blake  <ebb9@byu.net>
43012
43013         multiarch: avoid autoconf AC_REQUIRE bug
43014         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43015         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43016         2.63 and older.
43017         Reported by Bruno Haible, and analyzed in
43018         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43019
43020 2008-12-29  Bruno Haible  <bruno@clisp.org>
43021
43022         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43023         files in subdirectories correctly.
43024         Reported by Ralf Wildenhues.
43025
43026 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43027
43028         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43029         rather than 'join FILE -', for Solaris join.
43030
43031 2008-12-29  Bruno Haible  <bruno@clisp.org>
43032
43033         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43034         quoting.
43035         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43036         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43037         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43038         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43039         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43040         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43041         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43042         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43043         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43044         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43045         * m4/nls.m4 (AM_NLS): Likewise.
43046         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43047         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43048         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43049         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43050         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43051         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43052         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43053         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43054         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43055         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43056         * m4/xsize.m4 (gl_XSIZE): Likewise.
43057         Suggested by Jim Meyering.
43058
43059 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43060
43061         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43062         * lib/parse-duration.c: use a switch instead of cascading if's.
43063
43064 2008-12-29  Eric Blake  <ebb9@byu.net>
43065
43066         wchar.h: supply WEOF on Irix 5.3
43067         * lib/wchar.in.h (wint_t): Also supply WEOF.
43068         * lib/wctype.in.h (wint_t): Likewise.
43069         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43070         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43071         Reported by Tom G. Christensen.
43072
43073 2008-12-26  Bruno Haible  <bruno@clisp.org>
43074
43075         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43076         i486, i586, i686.
43077
43078 2008-12-26  Bruno Haible  <bruno@clisp.org>
43079
43080         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43081
43082 2008-12-26  Bruno Haible  <bruno@clisp.org>
43083
43084         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43085         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43086         not __STDC_CONSTANT_MACROS.
43087         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43088
43089 2008-12-25  Bruno Haible  <bruno@clisp.org>
43090
43091         Add support for universal builds to vasnprintf.
43092         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43093         universal builds, guess no.
43094         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43095         * modules/vasprintf-posix (Depends-on): Likewise.
43096         * modules/fprintf-posix (Depends-on): Likewise.
43097         * modules/vfprintf-posix (Depends-on): Likewise.
43098         * modules/snprintf-posix (Depends-on): Likewise.
43099         * modules/vsnprintf-posix (Depends-on): Likewise.
43100         * modules/sprintf-posix (Depends-on): Likewise.
43101         * modules/vsprintf-posix (Depends-on): Likewise.
43102         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43103         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43104         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43105         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43106         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43107         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43108         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43109
43110         Add support for universal builds to <inttypes.h>.
43111         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43112         _SCNu64_PREFIX): In Apple
43113         universal builds, define directly, using _LP64.
43114         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43115         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43116         * modules/inttypes (Depends-on): Add multiarch.
43117         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43118
43119         Add support for universal builds to <stdint.h>.
43120         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43121         universal builds, define directly, using _LP64.
43122         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43123         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43124         and size_t.
43125         * modules/stdint (Depends-on): Add multiarch.
43126         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43127
43128         New module 'multiarch'.
43129         * modules/multiarch: New file.
43130         * m4/multiarch.m4: New file.
43131
43132 2008-12-25  Bruno Haible  <bruno@clisp.org>
43133
43134         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43135
43136 2008-12-25  Bruno Haible  <bruno@clisp.org>
43137
43138         * modules/btowc (License): Relicense under LGPLv2+.
43139         * modules/mbsinit (License): Likewise.
43140         * modules/mbrtowc (License): Likewise.
43141         * modules/wcrtomb (License): Likewise.
43142         * modules/streq (License): Likewise.
43143         Reported by David Lutterkort <lutter@redhat.com>.
43144
43145 2008-12-23  Bruno Haible  <bruno@clisp.org>
43146
43147         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43148
43149 2008-12-23  Bruno Haible  <bruno@clisp.org>
43150
43151         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43152         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43153         GETADDRINFO_LIB, not in LIBS.
43154         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43155         * modules/canon-host (Link): Likewise.
43156         * NEWS: Mention the change.
43157         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43158         GETADDRINFO_LIB.
43159
43160 2008-12-22  Bruno Haible  <bruno@clisp.org>
43161
43162         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43163         * doc/posix-functions/iswalpha_l.texi: Likewise.
43164         * doc/posix-functions/iswblank_l.texi: Likewise.
43165         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43166         * doc/posix-functions/iswctype_l.texi: Likewise.
43167         * doc/posix-functions/iswdigit_l.texi: Likewise.
43168         * doc/posix-functions/iswgraph_l.texi: Likewise.
43169         * doc/posix-functions/iswlower_l.texi: Likewise.
43170         * doc/posix-functions/iswprint_l.texi: Likewise.
43171         * doc/posix-functions/iswpunct_l.texi: Likewise.
43172         * doc/posix-functions/iswspace_l.texi: Likewise.
43173         * doc/posix-functions/iswupper_l.texi: Likewise.
43174         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43175         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43176         * doc/posix-functions/open_wmemstream.texi: Likewise.
43177         * doc/posix-functions/swscanf.texi: Likewise.
43178         * doc/posix-functions/towctrans_l.texi: Likewise.
43179         * doc/posix-functions/towlower.texi: Likewise.
43180         * doc/posix-functions/towlower_l.texi: Likewise.
43181         * doc/posix-functions/towupper.texi: Likewise.
43182         * doc/posix-functions/towupper_l.texi: Likewise.
43183         * doc/posix-functions/vfwprintf.texi: Likewise.
43184         * doc/posix-functions/vfwscanf.texi: Likewise.
43185         * doc/posix-functions/vswscanf.texi: Likewise.
43186         * doc/posix-functions/vwprintf.texi: Likewise.
43187         * doc/posix-functions/vwscanf.texi: Likewise.
43188         * doc/posix-functions/wcpcpy.texi: Likewise.
43189         * doc/posix-functions/wcpncpy.texi: Likewise.
43190         * doc/posix-functions/wcscasecmp.texi: Likewise.
43191         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43192         * doc/posix-functions/wcscoll_l.texi: Likewise.
43193         * doc/posix-functions/wcsdup.texi: Likewise.
43194         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43195         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43196         * doc/posix-functions/wcsnlen.texi: Likewise.
43197         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43198         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43199         * doc/posix-functions/wctrans_l.texi: Likewise.
43200         * doc/posix-functions/wctype_l.texi: Likewise.
43201         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43202         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43203         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43204         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43205         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43206         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43207         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43208         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43209         * doc/glibc-functions/wcschrnul.texi: Likewise.
43210         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43211         * doc/glibc-functions/wcstod_l.texi: Likewise.
43212         * doc/glibc-functions/wcstof_l.texi: Likewise.
43213         * doc/glibc-functions/wcstol_l.texi: Likewise.
43214         * doc/glibc-functions/wcstold_l.texi: Likewise.
43215         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43216         * doc/glibc-functions/wcstoq.texi: Likewise.
43217         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43218         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43219         * doc/glibc-functions/wcstouq.texi: Likewise.
43220         * doc/glibc-functions/wmempcpy.texi: Likewise.
43221
43222 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43223             Eric Blake  <ebb9@byu.net>
43224             Paolo Bonzini  <bonzini@gnu.org>
43225             Bruno Haible  <bruno@clisp.org>
43226
43227         Make c-stack work on Haiku.
43228         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43229         (c_stack_action): Use SA_ONSTACK flag.
43230
43231 2008-12-22  Bruno Haible  <bruno@clisp.org>
43232
43233         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43234
43235 2008-12-22  Bruno Haible  <bruno@clisp.org>
43236
43237         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43238         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43239         being overridden.
43240         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43241         New macros.
43242         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43243         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43244         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43245         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43246
43247 2008-12-22  Bruno Haible  <bruno@clisp.org>
43248
43249         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43250         from test code.
43251
43252 2008-12-22  Eric Blake  <ebb9@byu.net>
43253
43254         Avoid gcc warnings on cygwin.
43255         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43256         Avoid unused variable.
43257         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43258         Likewise.
43259
43260 2008-12-22  Bruno Haible  <bruno@clisp.org>
43261
43262         Remove HAVE_MBRTOWC conditionals.
43263         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43264         (mbscasecmp): Assume mbrtowc function.
43265         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43266         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43267         * lib/mbschr.c: Include mbuiter.h unconditionally.
43268         (mbschr): Assume mbrtowc function.
43269         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43270         (mbscspn): Assume mbrtowc function.
43271         * lib/mbslen.c: Include mbuiter.h unconditionally.
43272         (mbslen): Assume mbrtowc function.
43273         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43274         (mbsncasecmp): Assume mbrtowc function.
43275         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43276         (mbsnlen): Assume mbrtowc function.
43277         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43278         (mbspbrk): Assume mbrtowc function.
43279         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43280         (mbspcasecmp): Assume mbrtowc function.
43281         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43282         (mbsrchr): Assume mbrtowc function.
43283         * lib/mbssep.c: Include mbuiter.h unconditionally.
43284         (mbssep): Assume mbrtowc function.
43285         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43286         (mbsspn): Assume mbrtowc function.
43287         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43288         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43289         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43290         (mbstok_r): Assume mbrtowc function.
43291         * lib/propername.c: Include mbuiter.h unconditionally.
43292         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43293         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43294         (trim2): Assume mbrtowc function.
43295         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43296         (mbsnwidth): Assume mbrtowc function.
43297         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43298         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43299         fallback definitions.
43300         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43301
43302 2008-12-22  Bruno Haible  <bruno@clisp.org>
43303
43304         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43305
43306 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43307
43308         * modules/regex: Request emulations for the mb*/wc* functions we need.
43309         * m4/regex.m4: Don't look for those functions here.
43310         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43311
43312 2008-12-22  Bruno Haible  <bruno@clisp.org>
43313
43314         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43315
43316 2008-12-21  Bruno Haible  <bruno@clisp.org>
43317
43318         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43319         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43320         (Include): Remove conditionalization.
43321         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43322         (Include): Remove conditionalization.
43323         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43324         (Include): Remove conditionalization.
43325         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43326         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43327         * NEWS: Mention the change.
43328         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43329         via Sergey Poznyakoff <gray@gnu.org.ua>.
43330
43331 2008-12-21  Bruno Haible  <bruno@clisp.org>
43332
43333         * MODULES.html.sh (Extended multibyte and wide character utilities
43334         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43335         wcrtomb, wcsrtombs.
43336         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43337         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43338         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43339         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43340
43341 2008-12-21  Bruno Haible  <bruno@clisp.org>
43342
43343         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43344
43345 2008-12-21  Bruno Haible  <bruno@clisp.org>
43346
43347         * modules/wcsnrtombs-tests: New file.
43348         * tests/test-wcsnrtombs1.sh: New file.
43349         * tests/test-wcsnrtombs2.sh: New file.
43350         * tests/test-wcsnrtombs3.sh: New file.
43351         * tests/test-wcsnrtombs4.sh: New file.
43352         * tests/test-wcsnrtombs.c: New file.
43353
43354         New module 'wcsnrtombs'.
43355         * lib/wchar.in.h (wcsnrtombs): New declaration.
43356         * lib/wcsnrtombs.c: New file.
43357         * lib/wcsrtombs-state.c: New file.
43358         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43359         (internal_state): Remove variable.
43360         * m4/wcsnrtombs.m4: New file.
43361         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43362         compilation units.
43363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43364         HAVE_WCSNRTOMBS.
43365         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43366         HAVE_WCSNRTOMBS.
43367         * modules/wcsnrtombs: New file.
43368         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43369         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43370
43371 2008-12-21  Bruno Haible  <bruno@clisp.org>
43372
43373         * modules/wcsrtombs-tests: New file.
43374         * tests/test-wcsrtombs1.sh: New file.
43375         * tests/test-wcsrtombs2.sh: New file.
43376         * tests/test-wcsrtombs3.sh: New file.
43377         * tests/test-wcsrtombs4.sh: New file.
43378         * tests/test-wcsrtombs.c: New file.
43379
43380         New module 'wcsrtombs'.
43381         * lib/wchar.in.h (wcsrtombs): New declaration.
43382         * lib/wcsrtombs.c: New file.
43383         * m4/wcsrtombs.m4: New file.
43384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43385         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43387         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43388         * modules/wcsrtombs: New file.
43389         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43390         bugs.
43391
43392 2008-12-21  Bruno Haible  <bruno@clisp.org>
43393
43394         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43395         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43396         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43397         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43398         if not correct.
43399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43400         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43401         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43402         m4/locale-zh.m4, m4/codeset.m4.
43403         * doc/posix-functions/wcrtomb.texi: Document the bug.
43404
43405 2008-12-21  Bruno Haible  <bruno@clisp.org>
43406
43407         Work around a btowc() bug on IRIX 6.5.
43408         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43409         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43410         REPLACE_WTOBC if not.
43411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43412         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43413         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43414
43415 2008-12-21  Bruno Haible  <bruno@clisp.org>
43416
43417         * modules/wcrtomb-tests: New file.
43418         * tests/test-wcrtomb.sh: New file.
43419         * tests/test-wcrtomb.c: New file.
43420
43421         New module 'wcrtomb'.
43422         * lib/wchar.in.h (wcrtomb): New declaration.
43423         * lib/wcrtomb.c: New file.
43424         * m4/wcrtomb.m4: New file.
43425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43426         HAVE_WCRTOMB.
43427         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43428         HAVE_WCRTOMB.
43429         * modules/wcrtomb: New file.
43430         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43431
43432 2008-12-21  Bruno Haible  <bruno@clisp.org>
43433
43434         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43435         * modules/mbsrtowcs (Files): Likewise.
43436         * modules/wctob (Files): Likewise.
43437         * modules/c-strcase-tests (Files): Likewise.
43438         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43439         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43440         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43441         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43442         * modules/vasnprintf-posix-tests (Files): Likewise.
43443
43444 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43445
43446         gitlog-to-changelog: pass all command-line arguments to git-log
43447         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43448         it is sometimes convenient to filter the commits in various ways.
43449         gitlog-to-changelog only allows --since to specify a start date,
43450         but git-log itself supports many other filtering mechanisms.
43451         At the moment, I want to filter by branch name.  Rather than
43452         adding a --branch option to gitlog-to-changelog, it seems more
43453         flexible to simply pass all options directly to git-log and let
43454         git do the work.  Notice that this effectively makes --since a
43455         redundant option for gitlog-to-changelog, but removing it would
43456         require current usage to change since calls would then require
43457         an additional '--'.
43458
43459 2008-12-21  Bruno Haible  <bruno@clisp.org>
43460
43461         * modules/mbsnrtowcs-tests: New file.
43462         * tests/test-mbsnrtowcs1.sh: New file.
43463         * tests/test-mbsnrtowcs2.sh: New file.
43464         * tests/test-mbsnrtowcs3.sh: New file.
43465         * tests/test-mbsnrtowcs4.sh: New file.
43466         * tests/test-mbsnrtowcs.c: New file.
43467
43468         New module 'mbsnrtowcs'.
43469         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43470         * lib/mbsnrtowcs.c: New file.
43471         * lib/mbsrtowcs-state.c: New file.
43472         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43473         (internal_state): Remove variable.
43474         * m4/mbsnrtowcs.m4: New file.
43475         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43476         compilation units.
43477         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43478         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43479         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43480         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43481         * modules/mbsnrtowcs: New file.
43482         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43483         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43484         portability problem.
43485
43486 2008-12-21  Bruno Haible  <bruno@clisp.org>
43487
43488         Work around mbsrtowcs bug.
43489         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43490         (gl_FUNC_MBSRTOWCS): Invoke it.
43491         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43492         m4/locale-zh.m4.
43493         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43494
43495 2008-12-21  Bruno Haible  <bruno@clisp.org>
43496
43497         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43498
43499 2008-12-21  Bruno Haible  <bruno@clisp.org>
43500
43501         Update doc for AIX.
43502         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43503         16-bit wchar_t type.
43504         * doc/posix-functions/btowc.texi: Likewise.
43505         * doc/posix-functions/fgetwc.texi: Likewise.
43506         * doc/posix-functions/fgetws.texi: Likewise.
43507         * doc/posix-functions/fputwc.texi: Likewise.
43508         * doc/posix-functions/fputws.texi: Likewise.
43509         * doc/posix-functions/fwide.texi: Likewise.
43510         * doc/posix-functions/fwprintf.texi: Likewise.
43511         * doc/posix-functions/fwscanf.texi: Likewise.
43512         * doc/posix-functions/getwchar.texi: Likewise.
43513         * doc/posix-functions/getwc.texi: Likewise.
43514         * doc/posix-functions/iswalnum.texi: Likewise.
43515         * doc/posix-functions/iswalpha.texi: Likewise.
43516         * doc/posix-functions/iswblank.texi: Likewise.
43517         * doc/posix-functions/iswcntrl.texi: Likewise.
43518         * doc/posix-functions/iswctype.texi: Likewise.
43519         * doc/posix-functions/iswdigit.texi: Likewise.
43520         * doc/posix-functions/iswgraph.texi: Likewise.
43521         * doc/posix-functions/iswlower.texi: Likewise.
43522         * doc/posix-functions/iswprint.texi: Likewise.
43523         * doc/posix-functions/iswpunct.texi: Likewise.
43524         * doc/posix-functions/iswspace.texi: Likewise.
43525         * doc/posix-functions/iswupper.texi: Likewise.
43526         * doc/posix-functions/iswxdigit.texi: Likewise.
43527         * doc/posix-functions/mbrtowc.texi: Likewise.
43528         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43529         * doc/posix-functions/mbstowcs.texi: Likewise.
43530         * doc/posix-functions/mbtowc.texi: Likewise.
43531         * doc/posix-functions/putwchar.texi: Likewise.
43532         * doc/posix-functions/putwc.texi: Likewise.
43533         * doc/posix-functions/swprintf.texi: Likewise.
43534         * doc/posix-functions/tolower.texi: Likewise.
43535         * doc/posix-functions/toupper.texi: Likewise.
43536         * doc/posix-functions/towctrans.texi: Likewise.
43537         * doc/posix-functions/ungetwc.texi: Likewise.
43538         * doc/posix-functions/vswprintf.texi: Likewise.
43539         * doc/posix-functions/wcrtomb.texi: Likewise.
43540         * doc/posix-functions/wcscat.texi: Likewise.
43541         * doc/posix-functions/wcschr.texi: Likewise.
43542         * doc/posix-functions/wcscmp.texi: Likewise.
43543         * doc/posix-functions/wcscoll.texi: Likewise.
43544         * doc/posix-functions/wcscpy.texi: Likewise.
43545         * doc/posix-functions/wcscspn.texi: Likewise.
43546         * doc/posix-functions/wcsftime.texi: Likewise.
43547         * doc/posix-functions/wcslen.texi: Likewise.
43548         * doc/posix-functions/wcsncat.texi: Likewise.
43549         * doc/posix-functions/wcsncmp.texi: Likewise.
43550         * doc/posix-functions/wcsncpy.texi: Likewise.
43551         * doc/posix-functions/wcspbrk.texi: Likewise.
43552         * doc/posix-functions/wcsrchr.texi: Likewise.
43553         * doc/posix-functions/wcsrtombs.texi: Likewise.
43554         * doc/posix-functions/wcsspn.texi: Likewise.
43555         * doc/posix-functions/wcsstr.texi: Likewise.
43556         * doc/posix-functions/wcstod.texi: Likewise.
43557         * doc/posix-functions/wcstof.texi: Likewise.
43558         * doc/posix-functions/wcstoimax.texi: Likewise.
43559         * doc/posix-functions/wcstok.texi: Likewise.
43560         * doc/posix-functions/wcstold.texi: Likewise.
43561         * doc/posix-functions/wcstoll.texi: Likewise.
43562         * doc/posix-functions/wcstol.texi: Likewise.
43563         * doc/posix-functions/wcstombs.texi: Likewise.
43564         * doc/posix-functions/wcstoull.texi: Likewise.
43565         * doc/posix-functions/wcstoul.texi: Likewise.
43566         * doc/posix-functions/wcstoumax.texi: Likewise.
43567         * doc/posix-functions/wcswidth.texi: Likewise.
43568         * doc/posix-functions/wcsxfrm.texi: Likewise.
43569         * doc/posix-functions/wctob.texi: Likewise.
43570         * doc/posix-functions/wctomb.texi: Likewise.
43571         * doc/posix-functions/wctrans.texi: Likewise.
43572         * doc/posix-functions/wctype.texi: Likewise.
43573         * doc/posix-functions/wcwidth.texi: Likewise.
43574         * doc/posix-functions/wmemchr.texi: Likewise.
43575         * doc/posix-functions/wmemcmp.texi: Likewise.
43576         * doc/posix-functions/wmemcpy.texi: Likewise.
43577         * doc/posix-functions/wmemmove.texi: Likewise.
43578         * doc/posix-functions/wmemset.texi: Likewise.
43579         * doc/posix-functions/wprintf.texi: Likewise.
43580         * doc/posix-functions/wscanf.texi: Likewise.
43581
43582 2008-12-21  Bruno Haible  <bruno@clisp.org>
43583
43584         Update doc for HP-UX 11.11.
43585         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43586         in HP-UX version 11.00, not in all versions of HP-UX 11.
43587         * doc/posix-functions/fwide.texi: Likewise.
43588         * doc/posix-functions/fwprintf.texi: Likewise.
43589         * doc/posix-functions/fwscanf.texi: Likewise.
43590         * doc/posix-functions/inet_ntop.texi: Likewise.
43591         * doc/posix-functions/inet_pton.texi: Likewise.
43592         * doc/posix-functions/mbrlen.texi: Likewise.
43593         * doc/posix-functions/mbrtowc.texi: Likewise.
43594         * doc/posix-functions/mbsinit.texi: Likewise.
43595         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43596         * doc/posix-functions/swprintf.texi: Likewise.
43597         * doc/posix-functions/swscanf.texi: Likewise.
43598         * doc/posix-functions/towctrans.texi: Likewise.
43599         * doc/posix-functions/vfwprintf.texi: Likewise.
43600         * doc/posix-functions/vswprintf.texi: Likewise.
43601         * doc/posix-functions/vwprintf.texi: Likewise.
43602         * doc/posix-functions/wcrtomb.texi: Likewise.
43603         * doc/posix-functions/wcsrtombs.texi: Likewise.
43604         * doc/posix-functions/wcsstr.texi: Likewise.
43605         * doc/posix-functions/wctob.texi: Likewise.
43606         * doc/posix-functions/wctrans.texi: Likewise.
43607         * doc/posix-functions/wmemchr.texi: Likewise.
43608         * doc/posix-functions/wmemcmp.texi: Likewise.
43609         * doc/posix-functions/wmemcpy.texi: Likewise.
43610         * doc/posix-functions/wmemmove.texi: Likewise.
43611         * doc/posix-functions/wmemset.texi: Likewise.
43612         * doc/posix-functions/wprintf.texi: Likewise.
43613         * doc/posix-functions/wscanf.texi: Likewise.
43614
43615 2008-12-21  Bruno Haible  <bruno@clisp.org>
43616
43617         Work around a portability problem.
43618         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43619         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43620
43621 2008-12-20  Bruno Haible  <bruno@clisp.org>
43622
43623         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43624         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43625         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43626         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43627         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43628
43629         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43630         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43631         set.
43632         (GNULIB_defined_mbstate_t): New macro.
43633         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43634         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43635         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43636         reuses the system's mbrtowc function but works around the bugs.
43637         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43638         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43639         macros.
43640         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43641         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43642         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43643         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43644         REPLACE_MBSINIT if mbsinit needs to be overridden.
43645         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43646         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43647         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43648         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43649         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43650         m4/locale-zh.m4.
43651         (Depends): Add mbsinit.
43652         * modules/mbsinit (Depends): Add mbrtowc.
43653         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43654
43655 2008-12-20  Bruno Haible  <bruno@clisp.org>
43656
43657         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43658         so that there are no conversion errors on AIX.
43659         * tests/test-mbsrtowcs.c (main): LIkewise.
43660
43661 2008-12-20  Bruno Haible  <bruno@clisp.org>
43662
43663         Work around wctob bug on Solaris <= 9.
43664         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43665         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43667         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43668         * modules/wctob (Files): Add m4/locale-fr.m4.
43669         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43670
43671 2008-12-20  Bruno Haible  <bruno@clisp.org>
43672
43673         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43674         /dev/null.
43675         * tests/test-select-in.sh: Likewise.
43676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43677
43678 2008-12-20  Bruno Haible  <bruno@clisp.org>
43679
43680         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43681         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43682         Cygwin 1.5.x.
43683
43684 2008-12-20  Bruno Haible  <bruno@clisp.org>
43685
43686         Ensure mbstate_t is defined on HP-UX 11.11.
43687         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43688         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43689         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43690         AC_USE_SYSTEM_EXTENSIONS.
43691         * modules/fnmatch (Depends-on): Add extensions.
43692         * modules/mbrlen (Depends-on): Likewise.
43693         * modules/mbrtowc (Depends-on): Likewise.
43694         * modules/mbsinit (Depends-on): Likewise.
43695         * modules/mbsrtowcs (Depends-on): Likewise.
43696         * modules/mbswidth (Depends-on): Likewise.
43697         * modules/quotearg (Depends-on): Likewise.
43698         * modules/strftime (Depends-on): Likewise.
43699
43700 2008-12-20  Bruno Haible  <bruno@clisp.org>
43701
43702         Ensure wctob is declared on IRIX 6.5.
43703         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43704         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43705         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43706         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43707         of HAVE_WCTOB.
43708         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43709         HAVE_WCTOB.
43710         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43711
43712 2008-12-19  Bruno Haible  <bruno@clisp.org>
43713
43714         * modules/mbsrtowcs-tests: New file.
43715         * tests/test-mbsrtowcs1.sh: New file.
43716         * tests/test-mbsrtowcs2.sh: New file.
43717         * tests/test-mbsrtowcs3.sh: New file.
43718         * tests/test-mbsrtowcs4.sh: New file.
43719         * tests/test-mbsrtowcs.c: New file.
43720
43721         New module 'mbsrtowcs'.
43722         * lib/wchar.in.h (mbsrtowcs): New declaration.
43723         * lib/mbsrtowcs.c: New file.
43724         * m4/mbsrtowcs.m4: New file.
43725         * modules/mbsrtowcs: New file.
43726         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43727         HAVE_MBSRTOWCS.
43728         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43729         HAVE_MBSRTOWCS.
43730         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43731
43732 2008-12-19  Bruno Haible  <bruno@clisp.org>
43733
43734         New module 'mbrlen'.
43735         * lib/wchar.in.h (mbrlen): New declaration.
43736         * lib/mbrlen.c: New file.
43737         * m4/mbrlen.m4: New file.
43738         * modules/mbrlen: New file.
43739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43740         HAVE_MBRLEN.
43741         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43742         HAVE_MBRLEN.
43743         * doc/posix-functions/mbrlen.texi: Document the new module.
43744
43745 2008-12-19  Bruno Haible  <bruno@clisp.org>
43746
43747         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43748         * modules/mbrtowc (Depends-on): Add verify.
43749         Suggested by Paul Eggert.
43750
43751 2008-12-18  Bruno Haible  <bruno@clisp.org>
43752
43753         * modules/mbsinit-tests: New file.
43754         * tests/test-mbsinit.sh: New file.
43755         * tests/test-mbsinit.c: New file.
43756
43757 2008-12-18  Bruno Haible  <bruno@clisp.org>
43758
43759         * modules/mbrtowc-tests: New file.
43760         * tests/test-mbrtowc1.sh: New file.
43761         * tests/test-mbrtowc2.sh: New file.
43762         * tests/test-mbrtowc3.sh: New file.
43763         * tests/test-mbrtowc4.sh: New file.
43764         * tests/test-mbrtowc.c: New file.
43765
43766         New module 'mbrtowc'.
43767         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43768         mbsinit and mbrtowc.
43769         (mbrtowc): New declaration.
43770         * lib/mbrtowc.c: New file.
43771         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43772         * modules/mbrtowc: New file.
43773         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43774         HAVE_MBRTOWC.
43775         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43776         HAVE_MBRTOWC.
43777         * doc/posix-functions/mbrtowc.texi: Document the new module.
43778
43779 2008-12-18  Bruno Haible  <bruno@clisp.org>
43780
43781         New module 'wctob'.
43782         * lib/wchar.in.h (wctob): New declaration.
43783         * lib/wctob.c: New file.
43784         * m4/wctob.m4: New file.
43785         * modules/wctob: New file.
43786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43787         HAVE_WCTOB.
43788         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43789         * doc/posix-functions/wctob.texi: Document the new module.
43790
43791 2008-12-18  Bruno Haible  <bruno@clisp.org>
43792
43793         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43794         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43795
43796 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43797
43798         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43799         G. Christensen" <tgc@jupiterrise.com>.
43800
43801         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43802         G. Christensen" <tgc@jupiterrise.com>.
43803
43804         * lib/flock.c: Need to include string.h.  Reported by "Tom
43805         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43806         <ebb9@byu.net>.
43807
43808 2008-12-18  Bruno Haible  <bruno@clisp.org>
43809
43810         * m4/locale-ja.m4: New file, from GNU gettext.
43811
43812 2008-12-17  Bruno Haible  <bruno@clisp.org>
43813
43814         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43815         Suggested by Eric Blake.
43816
43817 2008-12-17  Bruno Haible  <bruno@clisp.org>
43818
43819         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43820
43821 2008-12-17  Bruno Haible  <bruno@clisp.org>
43822
43823         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43824         * modules/mbsinit (Depends-on): Add verify.
43825         Suggested by Paul Eggert.
43826
43827 2008-12-17  Bruno Haible  <bruno@clisp.org>
43828
43829         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43830         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43831         gl_FUNC_MBRTOWC.
43832         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43833         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43834         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43835         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43836         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43837         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43838         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43839         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43840         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43841         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43842         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43843         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43844         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43845         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43846         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43847         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43848         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43849         * modules/trim (configure.ac): Likewise.
43850
43851 2008-12-17  Bruno Haible  <bruno@clisp.org>
43852
43853         * modules/btowc-tests: New file.
43854         * tests/test-btowc1.sh: New file.
43855         * tests/test-btowc2.sh: New file.
43856         * tests/test-btowc.c: New file.
43857
43858         New module 'btowc'.
43859         * lib/wchar.in.h (btowc): New declaration.
43860         * lib/btowc.c: New file.
43861         * m4/btowc.m4: New file.
43862         * modules/btowc: New file.
43863         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43864         HAVE_BTOWC.
43865         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43866         * doc/posix-functions/btowc.texi: Document the new module.
43867
43868 2008-12-17  Bruno Haible  <bruno@clisp.org>
43869
43870         New module 'mbsinit'.
43871         * lib/wchar.in.h (mbsinit): New declaration.
43872         * lib/mbsinit.c: New file.
43873         * m4/mbsinit.m4: New file.
43874         * modules/mbsinit: New file.
43875         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43876         HAVE_MBSINIT.
43877         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43878         HAVE_MBSINIT.
43879         * doc/posix-functions/mbsinit.texi: Document the new module.
43880
43881 2008-12-16  Bruno Haible  <bruno@clisp.org>
43882
43883         * lib/unistd.in.h: Add comment.
43884         * tests/test-environ.c: Don't include <stdlib.h>.
43885
43886 2008-12-16  Bruno Haible  <bruno@clisp.org>
43887
43888         * lib/parse-duration.h (parse_duration): Document return value
43889         convention.
43890         * lib/parse-duration.c: Include specification header first. Add
43891         comments.
43892         (_): Remove macro.
43893         (parse_year_month_day, parse_hour_minute_second): Move side effects
43894         outside of strchr call.
43895         (parse_non_iso8601): Move side effects outside of isspace call.
43896         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43897         call.
43898
43899 2008-12-16  Bruno Haible  <bruno@clisp.org>
43900
43901         * tests/test-parse-duration.sh: Produce no output when the test
43902         succeeds.
43903
43904 2008-12-16  Bruno Haible  <bruno@clisp.org>
43905
43906         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43907         expressions.
43908
43909 2008-12-15  Bruno Haible  <bruno@clisp.org>
43910
43911         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43912         * doc/glibc-functions/flistxattr.texi: Likewise.
43913         * doc/glibc-functions/fopencookie.texi: Likewise.
43914         * doc/glibc-functions/fremovexattr.texi: Likewise.
43915         * doc/glibc-functions/fsetxattr.texi: Likewise.
43916         * doc/glibc-functions/getxattr.texi: Likewise.
43917         * doc/glibc-functions/lgetxattr.texi: Likewise.
43918         * doc/glibc-functions/listxattr.texi: Likewise.
43919         * doc/glibc-functions/llistxattr.texi: Likewise.
43920         * doc/glibc-functions/lremovexattr.texi: Likewise.
43921         * doc/glibc-functions/lsetxattr.texi: Likewise.
43922         * doc/glibc-functions/removexattr.texi: Likewise.
43923         * doc/glibc-functions/setxattr.texi: Likewise.
43924         * doc/posix-functions/open_memstream.texi: Likewise.
43925
43926 2008-12-15  Eric Blake  <ebb9@byu.net>
43927
43928         Update doc for cygwin 1.7.
43929         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
43930         functions.
43931         * doc/posix-functions/fchmodat.texi: Likewise.
43932         * doc/posix-functions/fchownat.texi: Likewise.
43933         * doc/posix-functions/fdopendir.texi: Likewise.
43934         * doc/posix-functions/fmemopen.texi: Likewise.
43935         * doc/posix-functions/freeaddrinfo.texi: Likewise.
43936         * doc/posix-functions/fstatat.texi: Likewise.
43937         * doc/posix-functions/futimens.texi: Likewise.
43938         * doc/posix-functions/gai_strerror.texi: Likewise.
43939         * doc/posix-functions/getaddrinfo.texi: Likewise.
43940         * doc/posix-functions/getnameinfo.texi: Likewise.
43941         * doc/posix-functions/if_freenameindex.texi: Likewise.
43942         * doc/posix-functions/if_indextoname.texi: Likewise.
43943         * doc/posix-functions/if_nameindex.texi: Likewise.
43944         * doc/posix-functions/if_nametoindex.texi: Likewise.
43945         * doc/posix-functions/insque.texi: Likewise.
43946         * doc/posix-functions/linkat.texi: Likewise.
43947         * doc/posix-functions/llrint.texi: Likewise.
43948         * doc/posix-functions/llrintf.texi: Likewise.
43949         * doc/posix-functions/llrintl.texi: Likewise.
43950         * doc/posix-functions/lockf.texi: Likewise.
43951         * doc/posix-functions/lrintl.texi: Likewise.
43952         * doc/posix-functions/mkdirat.texi: Likewise.
43953         * doc/posix-functions/mkfifoat.texi: Likewise.
43954         * doc/posix-functions/mknodat.texi: Likewise.
43955         * doc/posix-functions/mq_close.texi: Likewise.
43956         * doc/posix-functions/mq_getattr.texi: Likewise.
43957         * doc/posix-functions/mq_notify.texi: Likewise.
43958         * doc/posix-functions/mq_open.texi: Likewise.
43959         * doc/posix-functions/mq_receive.texi: Likewise.
43960         * doc/posix-functions/mq_send.texi: Likewise.
43961         * doc/posix-functions/mq_setattr.texi: Likewise.
43962         * doc/posix-functions/mq_timedreceive.texi: Likewise.
43963         * doc/posix-functions/mq_timedsend.texi: Likewise.
43964         * doc/posix-functions/mq_unlink.texi: Likewise.
43965         * doc/posix-functions/open_memstream.texi: Likewise.
43966         * doc/posix-functions/openat.texi: Likewise.
43967         * doc/posix-functions/posix_fadvise.texi: Likewise.
43968         * doc/posix-functions/posix_fallocate.texi: Likewise.
43969         * doc/posix-functions/posix_madvise.texi: Likewise.
43970         * doc/posix-functions/posix_memalign.texi: Likewise.
43971         * doc/posix-functions/posix_openpt.texi: Likewise.
43972         * doc/posix-functions/readlinkat.texi: Likewise.
43973         * doc/posix-functions/remque.texi: Likewise.
43974         * doc/posix-functions/renameat.texi: Likewise.
43975         * doc/posix-functions/rintl.texi: Likewise.
43976         * doc/posix-functions/sem_unlink.texi: Likewise.
43977         * doc/posix-functions/shm_open.texi: Likewise.
43978         * doc/posix-functions/shm_unlink.texi: Likewise.
43979         * doc/posix-functions/signgam.texi: Likewise.
43980         * doc/posix-functions/sigset.texi: Likewise.
43981         * doc/posix-functions/stpcpy.texi: Likewise.
43982         * doc/posix-functions/stpncpy.texi: Likewise.
43983         * doc/posix-functions/strerror.texi: Likewise.
43984         * doc/posix-functions/strtod.texi: Likewise.
43985         * doc/posix-functions/symlinkat.texi: Likewise.
43986         * doc/posix-functions/unlinkat.texi: Likewise.
43987         * doc/posix-functions/utimensat.texi: Likewise.
43988         * doc/glibc-functions/bindresvport.texi: Likewise.
43989         * doc/glibc-functions/dn_expand.texi: Likewise.
43990         * doc/glibc-functions/exp10.texi: Likewise.
43991         * doc/glibc-functions/exp10f.texi: Likewise.
43992         * doc/glibc-functions/fgetxattr.texi: Likewise.
43993         * doc/glibc-functions/flistxattr.texi: Likewise.
43994         * doc/glibc-functions/fopencookie.texi: Likewise.
43995         * doc/glibc-functions/freeifaddrs.texi: Likewise.
43996         * doc/glibc-functions/fremovexattr.texi: Likewise.
43997         * doc/glibc-functions/fsetxattr.texi: Likewise.
43998         * doc/glibc-functions/getifaddrs.texi: Likewise.
43999         * doc/glibc-functions/getxattr.texi: Likewise.
44000         * doc/glibc-functions/lgetxattr.texi: Likewise.
44001         * doc/glibc-functions/listxattr.texi: Likewise.
44002         * doc/glibc-functions/llistxattr.texi: Likewise.
44003         * doc/glibc-functions/lremovexattr.texi: Likewise.
44004         * doc/glibc-functions/lsetxattr.texi: Likewise.
44005         * doc/glibc-functions/pow10.texi: Likewise.
44006         * doc/glibc-functions/pow10f.texi: Likewise.
44007         * doc/glibc-functions/rcmd_af.texi: Likewise.
44008         * doc/glibc-functions/removexattr.texi: Likewise.
44009         * doc/glibc-functions/res_init.texi: Likewise.
44010         * doc/glibc-functions/res_mkquery.texi: Likewise.
44011         * doc/glibc-functions/res_query.texi: Likewise.
44012         * doc/glibc-functions/res_querydomain.texi: Likewise.
44013         * doc/glibc-functions/res_send.texi: Likewise.
44014         * doc/glibc-functions/rresvport_af.texi: Likewise.
44015         * doc/glibc-functions/setxattr.texi: Likewise.
44016         * doc/glibc-functions/strcasestr.texi: Likewise.
44017
44018 2008-12-15  Bruno Haible  <bruno@clisp.org>
44019
44020         Fix compilation error on OSF/1 4.0.
44021         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44022         <sys/time.h>, simply delegate to the system header.
44023         Reported by Daniel Richard G. <oss@teragram.com>.
44024
44025 2008-12-15  Bruno Haible  <bruno@clisp.org>
44026
44027         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44028         * doc/posix-functions/fchmodat.texi: Likewise.
44029         * doc/posix-functions/fchownat.texi: Likewise.
44030         * doc/posix-functions/fdopendir.texi: Likewise.
44031         * doc/posix-functions/fstatat.texi: Likewise.
44032         * doc/posix-functions/mkdirat.texi: Likewise.
44033         * doc/posix-functions/unlinkat.texi: Likewise.
44034
44035 2008-12-14  Bruno Haible  <bruno@clisp.org>
44036
44037         Update doc for POSIX:2008.
44038         * doc/posix-functions/faccessat.texi: New file.
44039         * doc/posix-functions/fchmodat.texi: New file.
44040         * doc/posix-functions/fchownat.texi: New file.
44041         * doc/posix-functions/fdopendir.texi: New file.
44042         * doc/posix-functions/fstatat.texi: New file.
44043         * doc/posix-functions/futimens.texi: New file.
44044         * doc/posix-functions/linkat.texi: New file.
44045         * doc/posix-functions/mkdirat.texi: New file.
44046         * doc/posix-functions/mkfifoat.texi: New file.
44047         * doc/posix-functions/mknodat.texi: New file.
44048         * doc/posix-functions/open_wmemstream.texi: New file.
44049         * doc/posix-functions/openat.texi: New file.
44050         * doc/posix-functions/psiginfo.texi: New file.
44051         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44052         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44053         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44054         * doc/posix-functions/readlinkat.texi: New file.
44055         * doc/posix-functions/renameat.texi: New file.
44056         * doc/posix-functions/strerror_l.texi: New file.
44057         * doc/posix-functions/symlinkat.texi: New file.
44058         * doc/posix-functions/unlinkat.texi: New file.
44059         * doc/posix-functions/utimensat.texi: New file.
44060         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44061
44062 2008-12-14  Bruno Haible  <bruno@clisp.org>
44063
44064         Update doc for POSIX:2008.
44065         * doc/posix-functions/alphasort.texi: Renamed from
44066         doc/glibc-functions/alphasort.texi.
44067         * doc/posix-functions/dirfd.texi: Renamed from
44068         doc/glibc-functions/dirfd.texi.
44069         * doc/posix-functions/dprintf.texi: Renamed from
44070         doc/glibc-functions/dprintf.texi.
44071         * doc/posix-functions/duplocale.texi: Renamed from
44072         doc/glibc-functions/duplocale.texi.
44073         * doc/posix-functions/fexecve.texi: Renamed from
44074         doc/glibc-functions/fexecve.texi.
44075         * doc/posix-functions/fmemopen.texi: Renamed from
44076         doc/glibc-functions/fmemopen.texi.
44077         * doc/posix-functions/freelocale.texi: Renamed from
44078         doc/glibc-functions/freelocale.texi.
44079         * doc/posix-functions/getdate_err.texi: Renamed from
44080         doc/glibc-functions/getdate_err.texi.
44081         * doc/posix-functions/isalnum_l.texi: Renamed from
44082         doc/glibc-functions/isalnum_l.texi.
44083         * doc/posix-functions/isalpha_l.texi: Renamed from
44084         doc/glibc-functions/isalpha_l.texi.
44085         * doc/posix-functions/isblank_l.texi: Renamed from
44086         doc/glibc-functions/isblank_l.texi.
44087         * doc/posix-functions/iscntrl_l.texi: Renamed from
44088         doc/glibc-functions/iscntrl_l.texi.
44089         * doc/posix-functions/isdigit_l.texi: Renamed from
44090         doc/glibc-functions/isdigit_l.texi.
44091         * doc/posix-functions/isgraph_l.texi: Renamed from
44092         doc/glibc-functions/isgraph_l.texi.
44093         * doc/posix-functions/islower_l.texi: Renamed from
44094         doc/glibc-functions/islower_l.texi.
44095         * doc/posix-functions/isprint_l.texi: Renamed from
44096         doc/glibc-functions/isprint_l.texi.
44097         * doc/posix-functions/ispunct_l.texi: Renamed from
44098         doc/glibc-functions/ispunct_l.texi.
44099         * doc/posix-functions/isspace_l.texi: Renamed from
44100         doc/glibc-functions/isspace_l.texi.
44101         * doc/posix-functions/isupper_l.texi: Renamed from
44102         doc/glibc-functions/isupper_l.texi.
44103         * doc/posix-functions/iswalnum_l.texi: Renamed from
44104         doc/glibc-functions/iswalnum_l.texi.
44105         * doc/posix-functions/iswalpha_l.texi: Renamed from
44106         doc/glibc-functions/iswalpha_l.texi.
44107         * doc/posix-functions/iswblank_l.texi: Renamed from
44108         doc/glibc-functions/iswblank_l.texi.
44109         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44110         doc/glibc-functions/iswcntrl_l.texi.
44111         * doc/posix-functions/iswctype_l.texi: Renamed from
44112         doc/glibc-functions/iswctype_l.texi.
44113         * doc/posix-functions/iswdigit_l.texi: Renamed from
44114         doc/glibc-functions/iswdigit_l.texi.
44115         * doc/posix-functions/iswgraph_l.texi: Renamed from
44116         doc/glibc-functions/iswgraph_l.texi.
44117         * doc/posix-functions/iswlower_l.texi: Renamed from
44118         doc/glibc-functions/iswlower_l.texi.
44119         * doc/posix-functions/iswprint_l.texi: Renamed from
44120         doc/glibc-functions/iswprint_l.texi.
44121         * doc/posix-functions/iswpunct_l.texi: Renamed from
44122         doc/glibc-functions/iswpunct_l.texi.
44123         * doc/posix-functions/iswspace_l.texi: Renamed from
44124         doc/glibc-functions/iswspace_l.texi.
44125         * doc/posix-functions/iswupper_l.texi: Renamed from
44126         doc/glibc-functions/iswupper_l.texi.
44127         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44128         doc/glibc-functions/iswxdigit_l.texi.
44129         * doc/posix-functions/isxdigit_l.texi: Renamed from
44130         doc/glibc-functions/isxdigit_l.texi.
44131         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44132         doc/glibc-functions/mbsnrtowcs.texi.
44133         * doc/posix-functions/mkdtemp.texi: Renamed from
44134         doc/glibc-functions/mkdtemp.texi.
44135         * doc/posix-functions/newlocale.texi: Renamed from
44136         doc/glibc-functions/newlocale.texi.
44137         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44138         doc/glibc-functions/nl_langinfo_l.texi.
44139         * doc/posix-functions/open_memstream.texi: Renamed from
44140         doc/glibc-functions/open_memstream.texi.
44141         * doc/posix-functions/opterr.texi: Renamed from
44142         doc/glibc-functions/opterr.texi.
44143         * doc/posix-functions/optind.texi: Renamed from
44144         doc/glibc-functions/optind.texi.
44145         * doc/posix-functions/optopt.texi: Renamed from
44146         doc/glibc-functions/optopt.texi.
44147         * doc/posix-functions/psignal.texi: Renamed from
44148         doc/glibc-functions/psignal.texi.
44149         * doc/posix-functions/scandir.texi: Renamed from
44150         doc/glibc-functions/scandir.texi.
44151         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44152         doc/glibc-functions/sched_get_priority_min.texi.
44153         * doc/posix-functions/signgam.texi: Renamed from
44154         doc/glibc-functions/signgam.texi.
44155         * doc/posix-functions/stpcpy.texi: Renamed from
44156         doc/glibc-functions/stpcpy.texi.
44157         * doc/posix-functions/stpncpy.texi: Renamed from
44158         doc/glibc-functions/stpncpy.texi.
44159         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44160         doc/glibc-functions/strcasecmp_l.texi.
44161         * doc/posix-functions/strcoll_l.texi: Renamed from
44162         doc/glibc-functions/strcoll_l.texi.
44163         * doc/posix-functions/strfmon_l.texi: Renamed from
44164         doc/glibc-functions/strfmon_l.texi.
44165         * doc/posix-functions/strftime_l.texi: Renamed from
44166         doc/glibc-functions/strftime_l.texi.
44167         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44168         doc/glibc-functions/strncasecmp_l.texi.
44169         * doc/posix-functions/strndup.texi: Renamed from
44170         doc/glibc-functions/strndup.texi.
44171         * doc/posix-functions/strnlen.texi: Renamed from
44172         doc/glibc-functions/strnlen.texi.
44173         * doc/posix-functions/strsignal.texi: Renamed from
44174         doc/glibc-functions/strsignal.texi.
44175         * doc/posix-functions/strxfrm_l.texi: Renamed from
44176         doc/glibc-functions/strxfrm_l.texi.
44177         * doc/posix-functions/timer_gettime.texi: Renamed from
44178         doc/glibc-functions/timer_gettime.texi.
44179         * doc/posix-functions/tolower_l.texi: Renamed from
44180         doc/glibc-functions/tolower_l.texi.
44181         * doc/posix-functions/toupper_l.texi: Renamed from
44182         doc/glibc-functions/toupper_l.texi.
44183         * doc/posix-functions/towctrans_l.texi: Renamed from
44184         doc/glibc-functions/towctrans_l.texi.
44185         * doc/posix-functions/towlower_l.texi: Renamed from
44186         doc/glibc-functions/towlower_l.texi.
44187         * doc/posix-functions/towupper_l.texi: Renamed from
44188         doc/glibc-functions/towupper_l.texi.
44189         * doc/posix-functions/uselocale.texi: Renamed from
44190         doc/glibc-functions/uselocale.texi.
44191         * doc/posix-functions/vdprintf.texi: Renamed from
44192         doc/glibc-functions/vdprintf.texi.
44193         * doc/posix-functions/wcpcpy.texi:
44194         Renamed from doc/glibc-functions/wcpcpy.texi.
44195         * doc/posix-functions/wcpncpy.texi: Renamed from
44196         doc/glibc-functions/wcpncpy.texi.
44197         * doc/posix-functions/wcscasecmp.texi: Renamed from
44198         doc/glibc-functions/wcscasecmp.texi.
44199         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44200         doc/glibc-functions/wcscasecmp_l.texi.
44201         * doc/posix-functions/wcscoll_l.texi: Renamed from
44202         doc/glibc-functions/wcscoll_l.texi.
44203         * doc/posix-functions/wcsdup.texi: Renamed from
44204         doc/glibc-functions/wcsdup.texi.
44205         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44206         doc/glibc-functions/wcsncasecmp.texi.
44207         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44208         doc/glibc-functions/wcsncasecmp_l.texi.
44209         * doc/posix-functions/wcsnlen.texi: Renamed from
44210         doc/glibc-functions/wcsnlen.texi.
44211         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44212         doc/glibc-functions/wcsnrtombs.texi.
44213         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44214         doc/glibc-functions/wcsxfrm_l.texi.
44215         * doc/posix-functions/wctrans_l.texi: Renamed from
44216         doc/glibc-functions/wctrans_l.texi.
44217         * doc/posix-functions/wctype_l.texi: Renamed from
44218         doc/glibc-functions/wctype_l.texi.
44219         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44220         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44221         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44222         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44223         these subsections.
44224         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44225         Remove sections.
44226
44227 2008-12-14  Bruno Haible  <bruno@clisp.org>
44228
44229         Update doc for POSIX:2008.
44230         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44231
44232 2008-12-14  Bruno Haible  <bruno@clisp.org>
44233
44234         Update doc for POSIX:2008.
44235         * doc/pastposix-functions/bcmp.texi: Renamed from
44236         doc/posix-functions/bcmp.texi.
44237         * doc/pastposix-functions/bcopy.texi: Renamed from
44238         doc/posix-functions/bcopy.texi.
44239         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44240         doc/posix-functions/bsd_signal.texi.
44241         * doc/pastposix-functions/bzero.texi: Renamed from
44242         doc/posix-functions/bzero.texi.
44243         * doc/pastposix-functions/ecvt.texi: Renamed from
44244         doc/posix-functions/ecvt.texi.
44245         * doc/pastposix-functions/fcvt.texi: Renamed from
44246         doc/posix-functions/fcvt.texi.
44247         * doc/pastposix-functions/ftime.texi: Renamed from
44248         doc/posix-functions/ftime.texi.
44249         * doc/pastposix-functions/gcvt.texi: Renamed from
44250         doc/posix-functions/gcvt.texi.
44251         * doc/pastposix-functions/getcontext.texi: Renamed from
44252         doc/posix-functions/getcontext.texi.
44253         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44254         doc/posix-functions/gethostbyaddr.texi.
44255         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44256         doc/posix-functions/gethostbyname.texi.
44257         * doc/pastposix-functions/getwd.texi: Renamed from
44258         doc/posix-functions/getwd.texi.
44259         * doc/pastposix-functions/h_errno.texi: Renamed from
44260         doc/posix-functions/h_errno.texi.
44261         * doc/pastposix-functions/index.texi: Renamed from
44262         doc/posix-functions/index.texi.
44263         * doc/pastposix-functions/makecontext.texi: Renamed from
44264         doc/posix-functions/makecontext.texi.
44265         * doc/pastposix-functions/mktemp.texi: Renamed from
44266         doc/posix-functions/mktemp.texi.
44267         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44268         doc/posix-functions/pthread_attr_getstackaddr.texi.
44269         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44270         doc/posix-functions/pthread_attr_setstackaddr.texi.
44271         * doc/pastposix-functions/rindex.texi: Renamed from
44272         doc/posix-functions/rindex.texi.
44273         * doc/pastposix-functions/scalb.texi: Renamed from
44274         doc/posix-functions/scalb.texi.
44275         * doc/pastposix-functions/setcontext.texi: Renamed from
44276         doc/posix-functions/setcontext.texi.
44277         * doc/pastposix-functions/swapcontext.texi: Renamed from
44278         doc/posix-functions/swapcontext.texi.
44279         * doc/pastposix-functions/ualarm.texi: Renamed from
44280         doc/posix-functions/ualarm.texi.
44281         * doc/pastposix-functions/usleep.texi: Renamed from
44282         doc/posix-functions/usleep.texi.
44283         * doc/pastposix-functions/vfork.texi: Renamed from
44284         doc/posix-functions/vfork.texi.
44285         * doc/pastposix-functions/wcswcs.texi: Renamed from
44286         doc/posix-functions/wcswcs.texi.
44287         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44288         (Function Substitutes): Update.
44289
44290 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44291
44292         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44293         m4/strerror.m4.
44294
44295 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44296             Bruno Haible  <bruno@clisp.org>
44297
44298         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44299
44300 2008-12-13  Bruno Haible  <bruno@clisp.org>
44301
44302         * modules/strtoull (Depends-on): Remove unistd.
44303
44304 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44305
44306         * modules/strtoull (Depends-on): Add stdlib.
44307
44308 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44309
44310         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44311
44312 2008-12-10  Jim Meyering  <meyering@redhat.com>
44313
44314         gl_ASSERT: don't say assertions are disabled when they're not
44315         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44316         "checking whether to enable assertions... no", when they are in
44317         fact enabled.  This is solely a bug in the output of configure.
44318         In spite of saying "no", NDEBUG was not defined in that case.
44319         Also, as noted by Eric Blake, leave assertions enabled upon
44320         --enable-assert=INVALID.
44321
44322 2008-12-10  Bruno Haible  <bruno@clisp.org>
44323
44324         Change MODULES.html to refer to POSIX:2008 where possible.
44325         * MODULES.html.sh (POSIX2008_URL): New variable.
44326         (posix_headers): Remove sys/timeb, ucontext.
44327         (posix2001_headers): New variable.
44328         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44329         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44330         index, makecontext, mktemp, pthread_attr_getstackaddr,
44331         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44332         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44333         (posix2001_functions): New variable.
44334         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44335         otherwise.
44336
44337 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44338
44339         add missing include to parse-duration.c
44340         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44341         * modules/parse-duration (Depends-on): Add xalloc.
44342
44343         fix sed script reading maint.mk
44344         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44345         (syntax-check-rules): Use it.
44346
44347 2008-12-09  Bruno Haible  <bruno@clisp.org>
44348
44349         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44350         MacOS X 10.4/PowerPC.
44351         Reported by Simon Josefsson.
44352
44353 2008-12-08  Jim Meyering  <meyering@redhat.com>
44354
44355         work around mingw's lack of some S_IF definitions
44356         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44357         Reported by Simon Josefsson.
44358
44359 2008-12-08  Bruno Haible  <bruno@clisp.org>
44360
44361         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44362         applied to variables. Needed on MacOS X 10.4/PowerPC.
44363         Reported by Simon Josefsson.
44364
44365 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44366         and Eric Blake  <ebb9@byu.net>
44367
44368         assert: honor --enable-assert
44369         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44370         order to honor --enable-assert, rather than treating it as a
44371         synonym for --disable-assert.
44372
44373 2008-12-08  Jim Meyering  <meyering@redhat.com>
44374
44375         * lib/posixtm.c: Remove now-useless declaration of mktime.
44376
44377         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44378
44379 2008-12-07  Bruno Haible  <bruno@clisp.org>
44380
44381         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44382         test_once): Mark functions as static.
44383         * tests/test-tls.c (test_tls): Likewise.
44384
44385 2008-12-07  Bruno Haible  <bruno@clisp.org>
44386
44387         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44388         iconv_register_autodetect.
44389
44390 2008-12-07  Jim Meyering  <meyering@redhat.com>
44391
44392         posixtm.c: avoid a warning
44393         * lib/posixtm.c (posixtime): Don't initialize tm0.
44394         It's no longer needed to placate gcc4's -Wuninitialized,
44395         and the attempt to placate would elicit a new warning.
44396
44397         unicodeio.c: mark unused parameters
44398         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44399         (fallback_failure_callback): Likewise.
44400
44401 2008-12-07  Bruno Haible  <bruno@clisp.org>
44402
44403         * gnulib-tool (func_create_testdir): When building the tests
44404         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44405         Reported by Simon Josefsson.
44406
44407 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44408
44409         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44410
44411 2008-12-06  Bruno Haible  <bruno@clisp.org>
44412
44413         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44414         Suggested by Eric Blake.
44415
44416 2008-12-06  Bruno Haible  <bruno@clisp.org>
44417
44418         Fix a c-stack test failure on MacOS X.
44419         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44420         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44421         handler for SIGBUS as well.
44422         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44423         install a signal handler for SIGBUS as well.
44424         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44425
44426 2008-12-06  Bruno Haible  <bruno@clisp.org>
44427
44428         Advocacy documentation.
44429         * doc/gnulib-intro.texi (Benefits): New section.
44430         * doc/gnulib.texi: Update.
44431
44432 2008-12-06  Bruno Haible  <bruno@clisp.org>
44433
44434         Document the 'manywarnings' module.
44435         * doc/manywarnings.texi: New file.
44436         * doc/gnulib.texi: Include it.
44437
44438 2008-12-05  Eric Blake  <ebb9@byu.net>
44439
44440         tests: silence some gcc warnings
44441         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44442         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44443         type mismatches.
44444
44445 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44446             Bruno Haible  <bruno@clisp.org>
44447
44448         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44449
44450 2008-11-29  Jim Meyering  <meyering@redhat.com>
44451
44452         unicodeio.c: mark unused parameters
44453         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44454         (fallback_failure_callback): Likewise.
44455
44456         fts: fix a thinko
44457         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44458         (set_stat_type): Return S_IF*-valued "type" directly.
44459         Prompted by James Youngman's spotting a related bug.
44460         Confirmed by further testing through find.
44461
44462         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44463         * lib/fts.c (D_TYPE): Define.
44464         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44465         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44466         (s_ifmt_shift_bits): New function.
44467         (set_stat_type): New function.
44468         (fts_build): When not calling fts_stat, call set_stat_type
44469         to propagate dirent.d_type info to fts_read caller.
44470         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44471         fts_statp->st_mode type information may be valid.
44472
44473 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44474
44475         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44476         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44477         <sds@gnu.org>.
44478
44479 2008-11-20  Bruno Haible  <bruno@clisp.org>
44480
44481         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44482         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44483         INCLUDE_NEXT.
44484         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44485         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44486         * modules/math (Makefile.am): Substitute
44487         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44488         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44489
44490 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44491             Bruno Haible  <bruno@clisp.org>
44492
44493         * lib/stdint.in.h: Define all type macros so that their expansion is
44494         a single typedef'ed token. Fixes a compilation failure in Boost which
44495         does "using ::int8_t;".
44496
44497 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44498
44499         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44500         gl_MANYWARN_ALL_GCC.
44501         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44502         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44503         * modules/manywarnings: New file.
44504         * MODULES.html.sh: Mention manywarnings module.
44505
44506 2008-11-18  Bruno Haible  <bruno@clisp.org>
44507
44508         * doc/gnulib-tool.texi (Unit tests): New section.
44509
44510 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44511
44512         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44513         paths like 'lib/po/foo.po'.
44514
44515 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44516
44517         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44518         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44519
44520 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44521
44522         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44523         parameter works.
44524
44525 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44526
44527         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44528
44529 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44530
44531         * modules/parse-duration-tests: New file.
44532         * tests/test-parse-duration.sh: New file.
44533         * tests/test-parse-duration.c: New file.
44534
44535         New module 'parse-duration'.
44536         * lib/parse-duration.h: New file.
44537         * lib/parse-duration.c: New file.
44538         * modules/parse-duration: New file.
44539
44540 2008-11-17  Bruno Haible  <bruno@clisp.org>
44541
44542         * tests/test-select-out.sh: Comment out the first pipe test.
44543         Reported by Simon Josefsson.
44544
44545 2008-11-17  Bruno Haible  <bruno@clisp.org>
44546
44547         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44548         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44549         gl_HOSTENT.
44550
44551 2008-11-17  Bruno Haible  <bruno@clisp.org>
44552
44553         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44554         -lnetwork and -lnet. Needed for Haiku and BeOS.
44555
44556 2008-11-16  Bruno Haible  <bruno@clisp.org>
44557
44558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44559
44560 2008-11-16  Bruno Haible  <bruno@clisp.org>
44561
44562         Avoid test failure on Haiku.
44563         * tests/test-fsync.c: Include <errno.h>.
44564         (main): Don't require that fsync (0) fails.
44565
44566 2008-11-15  Bruno Haible  <bruno@clisp.org>
44567
44568         New module 'hostent'.
44569         * modules/hostent: New file.
44570         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44571
44572 2008-11-15  Bruno Haible  <bruno@clisp.org>
44573
44574         New module 'servent'.
44575         * modules/servent: New file.
44576         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44577
44578 2008-11-15  Bruno Haible  <bruno@clisp.org>
44579
44580         Avoid generating same test program with two different rules.
44581         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44582         test-frexp to test-frexp-nolibm.
44583         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44584         test-frexpl to test-frexpl-nolibm.
44585
44586 2008-11-15  Bruno Haible  <bruno@clisp.org>
44587
44588         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44589         $(FREXPL_LIBM).
44590
44591 2008-11-15  Bruno Haible  <bruno@clisp.org>
44592
44593         * lib/netdb.in.h: Activate the definitions also when the system's
44594         <netdb.h> has 'struct addrinfo'.
44595         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44596         EAI_OVERFLOW or AI_NUMERICSERV.
44597         * doc/posix-headers/netdb.texi: Document the problem.
44598
44599 2008-11-15  Bruno Haible  <bruno@clisp.org>
44600
44601         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44602
44603         Make the 'sched' module work on platforms where <sched.h> exists but
44604         is incomplete (such as Haiku).
44605         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44606         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44607         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44608         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44609         HAVE_STRUCT_SCHED_PARAM.
44610         * modules/sched (Depends-on): Add include_next.
44611         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44612         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44613         * doc/posix-headers/sched.texi: Document the issue.
44614
44615 2008-11-13  Jim Meyering  <meyering@redhat.com>
44616
44617         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44618         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44619         test would fail due to the difference in the Report bugs to ...
44620         line.  The expected address is empty, "<>", while the actual
44621         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44622
44623 2008-11-12  Bruno Haible  <bruno@clisp.org>
44624
44625         lstat: don't compile lstat.c on systems lacking lstat
44626         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44627         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44628         Reported by Daniel P. Berrange via Jim Meyering.
44629
44630 2008-11-12  Jim Meyering  <meyering@redhat.com>
44631
44632         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44633
44634 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44635
44636         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44637         instead.
44638
44639 2008-11-12  Bruno Haible  <bruno@clisp.org>
44640
44641         * lib/unicodeio.c: Include unistr.h.
44642         (utf8_wctomb): Remove function.
44643         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44644
44645 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44646
44647         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44648         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44649         <bruno@clisp.org>.
44650         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44651
44652 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44653
44654         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44655         * doc/gnulib.texi: Add section for warnings.
44656
44657 2008-11-11  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/sockets.h: Add a comment.
44660
44661 2008-11-11  Karl Berry  <karl@gnu.org>
44662
44663         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44664
44665 2008-11-11  Eric Blake  <ebb9@byu.net>
44666
44667         fdl.texi: avoid git symlinks
44668         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44669
44670 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44671
44672         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44673
44674 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44675
44676         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44677         (gl_WARN_ADD): Substitute $2 if literal.
44678
44679 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44680
44681         * m4/warning.m4: Remove.
44682
44683 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44684
44685         * m4/warnings.m4: Almost complete rewrite. :-)
44686
44687 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44688
44689         * modules/warnings: New module.
44690         * m4/warnings.m4: New file.
44691         * MODULES.html.sh: Mention warnings module.
44692         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44693         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44694
44695 2008-11-10  Eric Blake  <ebb9@byu.net>
44696
44697         fdl.texi: make a symlink to the latest version
44698         * doc/standards.texi: Revert today's earlier change.
44699         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44700         * doc/fdl.texi: ...and replace this with a symlink to the newer
44701         fdl-1.3.texi.
44702
44703 2008-11-10  Bruno Haible  <bruno@clisp.org>
44704
44705         * tests/test-select-fd.c (main): Accept the result file name as fourth
44706         argument.
44707         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44708         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44709
44710 2008-11-10  Bruno Haible  <bruno@clisp.org>
44711
44712         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44713         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44714         as autoconf-substituted macros.
44715         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44716         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44717         gl_NETDB_H_DEFAULTS. Set these variables.
44718         * modules/netdb (Makefile.am): Substitute these variables.
44719
44720 2008-11-10  Eric Blake  <ebb9@byu.net>
44721
44722         standards.texi: include correct file for FDL 1.3
44723         * doc/standards.texi (GNU Free Documentation License): Change
44724         include file to pull in FDL 1.3, not 1.2.
44725
44726         fdl.texi: revert accidental change to license
44727         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44728
44729 2008-11-10  Bruno Haible  <bruno@clisp.org>
44730
44731         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44732         cross-compiling guesses also when the native compile gives no result.
44733
44734 2008-11-10  Bruno Haible  <bruno@clisp.org>
44735
44736         * lib/spawni.c (__spawni): Force variable into the stack.
44737
44738 2008-11-10  Bruno Haible  <bruno@clisp.org>
44739
44740         Add support for Haiku.
44741         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44742         glibc and BeOS, but also on Haiku.
44743         * lib/fpurge.c (fpurge): Likewise.
44744         * lib/freadable.c (freadable): Likewise.
44745         * lib/freadahead.c (freadahead): Likewise.
44746         * lib/freading.c (freading): Likewise.
44747         * lib/freadptr.c (freadptr): Likewise.
44748         * lib/freadseek.c (freadptrinc): Likewise.
44749         * lib/fseeko.c (rpl_fseeko): Likewise.
44750         * lib/fseterr.c (fseterr): Likewise.
44751         * lib/fwritable.c (fwritable): Likewise.
44752         * lib/fwriting.c (fwriting): Likewise.
44753         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44754
44755 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44756
44757         * lib/config.charset: Treat Haiku like BeOS.
44758
44759 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44760
44761         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44762         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44763
44764 2008-11-08  Bruno Haible  <bruno@clisp.org>
44765
44766         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44767         AC_CACHE_CHECK.
44768
44769 2008-11-08  Bruno Haible  <bruno@clisp.org>
44770
44771         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44772
44773 2008-11-08  Bruno Haible  <bruno@clisp.org>
44774
44775         * tests/test-select-fd.c: New file.
44776         * tests/test-select-in.sh: New file.
44777         * tests/test-select-out.sh: New file.
44778         * tests/test-select-stdin.c: New file.
44779         * modules/select-tests (Files): Add the new files.
44780         (Depends-on): Add gettimeofday.
44781         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44782         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44783         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44784
44785 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44786             Bruno Haible  <bruno@clisp.org>
44787
44788         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44789
44790 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44791
44792         * build-aux/pmccabe2html: Added support for C++ source files.
44793
44794 2008-11-05  Ben Pfaff  <blp@gnu.org>
44795
44796         Fix lib/close.c build on Windows.
44797         * modules/close (Files): Add lib/w32sock.h.
44798
44799 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44800
44801         Accept Bison's NEWS format.
44802         * build-aux/announce-gen (print_news_deltas): Tweak
44803         $re_prefix.
44804
44805 2008-11-04  Bruno Haible  <bruno@clisp.org>
44806
44807         * modules/random_r (Maintainer): Add glibc.
44808
44809 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44810
44811         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44812         by karl@freefriends.org (Karl Berry).
44813         * doc/alloca.texi: Likewise.
44814         * doc/c-ctype.texi: Likewise.
44815         * doc/c-strcase.texi: Likewise.
44816         * doc/c-strcaseeq.texi: Likewise.
44817         * doc/c-strcasestr.texi: Likewise.
44818         * doc/c-strstr.texi: Likewise.
44819         * doc/c-strtod.texi: Likewise.
44820         * doc/c-strtold.texi: Likewise.
44821         * doc/ctime.texi: Likewise.
44822         * doc/error.texi: Likewise.
44823         * doc/fdl.texi: Likewise.
44824         * doc/gcd.texi: Likewise.
44825         * doc/getdate.texi: Likewise.
44826         * doc/gnulib-intro.texi: Likewise.
44827         * doc/gnulib-tool.texi: Likewise.
44828         * doc/gnulib.texi: Likewise.
44829         * doc/inet_ntoa.texi: Likewise.
44830         * doc/maintain.texi: Likewise.
44831         * doc/make-stds.texi: Likewise.
44832         * doc/quote.texi: Likewise.
44833         * doc/regexprops-generic.texi: Likewise.
44834         * doc/standards.texi: Likewise.
44835         * doc/verify.texi: Likewise.
44836         * doc/visibility.texi: Likewise.
44837         * doc/gnulib.texi (GNU Free Documentation License): Include
44838         fdl-1.3.texi instead of fdl.texi.
44839
44840 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44841
44842         * doc/fdl-1.3.texi: New file, from
44843         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44844         * modules/fdl-1.3: Add.
44845         * MODULES.html.sh: Add fdl-1.3.
44846
44847 2008-11-03  Bruno Haible  <bruno@clisp.org>
44848
44849         Make determination of absolute name of header file work with AIX xlc.
44850         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44851         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44852         preprocessing.
44853         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44854         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44855
44856 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44857
44858         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44859         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44860         <ludo@gnu.org>.
44861
44862 2008-11-02  Bruno Haible  <bruno@clisp.org>
44863
44864         Mark 'strpbrk' obsolete.
44865         * modules/strpbrk (Status, Notice): New sections.
44866         * modules/strtok_r (Depends-on): Add strpbrk.
44867
44868 2008-11-02  Bruno Haible  <bruno@clisp.org>
44869
44870         Mark 'strdup' obsolete.
44871         * modules/strdup (Status, Notice): New sections.
44872         * modules/findprog (Depends-on): Add strdup.
44873         * modules/getaddrinfo (Depends-on): Likewise.
44874         * modules/localename (Depends-on): Likewise.
44875         * modules/relocatable-lib (Depends-on): Likewise.
44876         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44877         * modules/relocatable-prog (Depends-on): Likewise.
44878         * modules/trim (Depends-on): Likewise.
44879         * modules/unictype/gen-ctype (Depends-on): Likewise.
44880         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44881
44882 2008-11-02  Bruno Haible  <bruno@clisp.org>
44883
44884         Mark 'strcspn' obsolete.
44885         * modules/strcspn (Status, Notice): New sections.
44886
44887 2008-11-02  Bruno Haible  <bruno@clisp.org>
44888
44889         Mark 'rmdir' obsolete.
44890         * modules/rmdir (Status, Notice): New sections.
44891         * modules/clean-temp (Depends-on): Add rmdir.
44892         * modules/openat (Depends-on): Likewise.
44893
44894 2008-11-02  Bruno Haible  <bruno@clisp.org>
44895
44896         Mark 'raise' obsolete.
44897         * modules/raise (Status, Notice): New sections.
44898         (Include): Specify <signal.h>.
44899         * modules/stdio (Depends-on): Add raise.
44900         * modules/write (Depends-on): Likewise.
44901
44902 2008-11-02  Bruno Haible  <bruno@clisp.org>
44903
44904         Mark 'memset' obsolete.
44905         * modules/memset (Status, Notice): New sections.
44906
44907 2008-11-02  Bruno Haible  <bruno@clisp.org>
44908
44909         Mark 'memmove' obsolete.
44910         * modules/memmove (Status, Notice): New sections.
44911         * modules/argp (Depends-on): Add memmove.
44912         * modules/argz (Depends-on): Likewise.
44913         * modules/canonicalize (Depends-on): Likewise.
44914         * modules/canonicalize-lgpl (Depends-on): Likewise.
44915         * modules/fts (Depends-on): Likewise.
44916         * modules/getcwd (Depends-on): Likewise.
44917         * modules/human (Depends-on): Likewise.
44918         * modules/regex (Depends-on): Likewise.
44919         * modules/striconveh (Depends-on): Likewise.
44920         * modules/trim (Depends-on): Likewise.
44921         * modules/unistr/u8-move (Depends-on): Likewise.
44922         * modules/unistr/u16-move (Depends-on): Likewise.
44923         * modules/unistr/u32-move (Depends-on): Likewise.
44924
44925 2008-11-02  Bruno Haible  <bruno@clisp.org>
44926
44927         Mark 'memcpy' obsolete.
44928         * modules/memcpy (Status, Notice): New sections.
44929
44930 2008-11-02  Bruno Haible  <bruno@clisp.org>
44931
44932         Mark 'memcmp' obsolete.
44933         * modules/memcmp (Status, Notice): New sections.
44934         * modules/argmatch (Depends-on): Add memchr.
44935         * modules/backupfile (Depends-on): Likewise.
44936         * modules/c-strcasestr (Depends-on): Likewise.
44937         * modules/crypto/des (Depends-on): Likewise.
44938         * modules/csharpcomp (Depends-on): Likewise.
44939         * modules/fnmatch (Depends-on): Likewise.
44940         * modules/git-merge-changelog (Depends-on): Likewise.
44941         * modules/isnand (Depends-on): Likewise.
44942         * modules/isnand-nolibm (Depends-on): Likewise.
44943         * modules/isnanf (Depends-on): Likewise.
44944         * modules/isnanf-nolibm (Depends-on): Likewise.
44945         * modules/isnanl (Depends-on): Likewise.
44946         * modules/isnanl-nolibm (Depends-on): Likewise.
44947         * modules/mbchar (Depends-on): Likewise.
44948         * modules/memcoll (Depends-on): Likewise.
44949         * modules/quotearg (Depends-on): Likewise.
44950         * modules/regex (Depends-on): Likewise.
44951         * modules/relocatable-prog (Depends-on): Likewise.
44952         * modules/same (Depends-on): Likewise.
44953         * modules/signbit (Depends-on): Likewise.
44954         * modules/strcasestr-simple (Depends-on): Likewise.
44955         * modules/unictype/gen-ctype (Depends-on): Likewise.
44956         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44957         * modules/uniname/uniname (Depends-on): Likewise.
44958         * modules/unistr/u8-cmp (Depends-on): Likewise.
44959
44960 2008-11-02  Bruno Haible  <bruno@clisp.org>
44961
44962         Mark 'memchr' obsolete.
44963         * modules/memchr (Status, Notice): New sections.
44964         * modules/argp (Depends-on): Add memchr.
44965         * modules/base64 (Depends-on): Likewise.
44966         * modules/c-strcasestr (Depends-on): Likewise.
44967         * modules/chdir-long (Depends-on): Likewise.
44968         * modules/fnmatch (Depends-on): Likewise.
44969         * modules/getsubopt (Depends-on): Likewise.
44970         * modules/git-merge-changelog (Depends-on): Likewise.
44971         * modules/glob (Depends-on): Likewise.
44972         * modules/strcasestr-simple (Depends-on): Likewise.
44973         * modules/strnlen (Depends-on): Likewise.
44974
44975 2008-11-02  Bruno Haible  <bruno@clisp.org>
44976
44977         Mark 'atexit' obsolete.
44978         * modules/atexit (Status, Notice): New sections.
44979         * modules/chdir-long (Depends-on): Add atexit.
44980         * modules/wait-process (Depends-on): Likewise.
44981
44982 2008-11-02  Bruno Haible  <bruno@clisp.org>
44983
44984         * gnulib-tool: New option --with-obsolete.
44985         (func_usage): Document it.
44986         (func_modules_transitive_closure): Drop obsolete dependencies if
44987         incobsolete is not true.
44988         (func_import): Read and save the incobsolete variable to the cache.
44989
44990 2008-11-02  Bruno Haible  <bruno@clisp.org>
44991
44992         * modules/TEMPLATE-EXTENDED: New field 'Status'.
44993         * gnulib-tool: New option --extract-status.
44994         (func_usage): Document it.
44995         (sed_extract_prog): Recognize it.
44996         (func_get_status): New function.
44997
44998 2008-10-30  Simon Josefsson  <simon@josefsson.org>
44999
45000         * modules/sockets (License): Change from LGPL to LGPLv2+.
45001
45002 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45003
45004         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45005
45006 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45007
45008         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45009         Mention times and sys_times.
45010         * modules/sys_times, modules/sys_times-tests: New modules.
45011         * modules/times, modules/times-tests: Likewise
45012         * m4/sys_times_h.m4: New file.
45013         * lib/sys_times.in.h: Likewise
45014         * lib/times.c: Likewise.
45015         * tests/test-sys_times.c: Likewise.
45016         * tests/test-times.c: Likewise.
45017         * doc/posix-headers/sys_times.texi: Update.
45018         * doc/posix-functions/times.texi: Update.
45019
45020 2008-10-28  Jim Meyering  <meyering@redhat.com>
45021
45022         * modules/tempname (Depends-on): Add lstat.
45023
45024         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45025
45026 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45027
45028         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45029         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45030         using idiom used elsewhere in gnulib.
45031
45032 2008-10-27  Jim Meyering  <meyering@redhat.com>
45033
45034         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45035
45036 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45037
45038         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45039         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45040         programs.
45041         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45042
45043 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45044
45045         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45046
45047 2008-10-27  Bruno Haible  <bruno@clisp.org>
45048
45049         * tests/test-lstat.c: Include <stdio.h>.
45050
45051 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45052
45053         * modules/lstat-tests: New module.
45054         * tests/test-lstat.c: New file.
45055
45056 2008-10-26  Jim Meyering  <meyering@redhat.com>
45057
45058         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45059
45060 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45061             Bruno Haible  <bruno@clisp.org>
45062
45063         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45064         * modules/configmake (Include): Add a note that the include must come
45065         after all system headers.
45066         * lib/javaversion.c: Include configmake.h after all other includes.
45067
45068 2008-10-26  Bruno Haible  <bruno@clisp.org>
45069
45070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45071         HAVE_STRUCT_RANDOM_DATA to 1.
45072         (gl_STDLIB_H): Simplify.
45073
45074 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45075
45076         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45077         substitute HAVE_STRUCT_RANDOM_DATA.
45078         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45079         random_data.
45080         * modules/stdlib (Makefile.am): Substitute
45081         HAVE_STRUCT_RANDOM_DATA.
45082
45083 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45084
45085         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45086         * doc/gnulib-intro.texi (Copyright): Likewise.
45087
45088 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45089
45090         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45091         findings.
45092
45093 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45094             Bruno Haible  <bruno@clisp.org>
45095
45096         * lib/unistd.in.h: Include <winsock2.h>.
45097         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45098         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45099         Provide dummy declarations.
45100         (gethostname): Override.
45101         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45102         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45103         gl_PREREQ_SYS_H_WINSOCK2.
45104         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45105         * doc/posix-functions/gethostname.texi: More details.
45106
45107 2008-10-25  Bruno Haible  <bruno@clisp.org>
45108
45109         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45110         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45111         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45112
45113         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45114         here ...
45115         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45116         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45117         gl_UNISTD_H_DEFAULTS.
45118
45119 2008-10-25  Eric Blake  <ebb9@byu.net>
45120
45121         signbit: avoid spurious compiler failure
45122         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45123         declarations inside function.
45124
45125 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45126             Bruno Haible  <bruno@clisp.org>
45127
45128         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45129         * modules/random_r (Depends-on): Add stdint.
45130
45131 2008-10-24  Bruno Haible  <bruno@clisp.org>
45132
45133         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45134         Eggert.
45135         * modules/strerror (License): Likewise.
45136
45137 2008-10-24  Jim Meyering  <meyering@redhat.com>
45138
45139         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45140         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45141
45142 2008-10-24  Eric Blake  <ebb9@byu.net>
45143
45144         getgroups: fix compilation when getgroups is available
45145         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45146         but with <config.h> override of getgroups disabled.
45147
45148 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45149
45150         * doc/gnulib.texi (Header files): Add note about C++ problems.
45151         Explained by Bruno Haible <bruno@clisp.org>.
45152
45153 2008-10-23  Bruno Haible  <bruno@clisp.org>
45154
45155         Define a dummy SA_NODEFER macro on Interix.
45156         * lib/signal.in.h (SA_NODEFER): Define fallback.
45157         Reported by Aleksey Cheusov <cheusov@tut.by> via
45158         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45159
45160 2008-10-23  Bruno Haible  <bruno@clisp.org>
45161
45162         * modules/freadahead (License): Change to LGPLv2+.
45163         Suggested by Simon Josefsson.
45164
45165 2008-10-23  Jim Meyering  <meyering@redhat.com>
45166
45167         random_r: new module
45168         * modules/random_r: New file.
45169         * m4/random_r.m4: New file.
45170         * lib/random_r.c: New file, from glibc.
45171         * modules/random_r-tests: New file.
45172         * tests/test-random_r.c: New file.
45173         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45174          Declare.
45175         (RAND_MAX): Define.
45176         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45177         * modules/stdlib: Substitute them, too.
45178         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45179         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45180         * doc/glibc-functions/random_r.texi: Likewise.
45181         * doc/glibc-functions/setstate_r.texi: Likewise.
45182         * doc/glibc-functions/srandom_r.texi: Likewise.
45183         * config/srclist.txt: Mention it.
45184
45185 2008-10-23  David Lutterkort  <lutter@redhat.com>
45186
45187         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45188         link requirement
45189
45190 2008-10-23  Jim Meyering  <meyering@redhat.com>
45191
45192         selinux-h: mark parameters of stub functions as intentionally unused
45193         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45194         * lib/se-context.in.h: Likewise.
45195
45196 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45197
45198         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45199
45200 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45201
45202         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45203
45204 2008-10-22  Eric Blake  <ebb9@byu.net>
45205
45206         glthread/thread: avoid compiler warning
45207         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45208         Add unreachable abort to silence compiler.
45209
45210 2008-10-22  Eric Blake  <ebb9@byu.net>
45211
45212         netdb: also supply struct addrinfo for cygwin 1.5.x
45213         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45214         older cygwin.
45215         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45216         cygwin.
45217         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45218
45219 2008-10-22  Bruno Haible  <bruno@clisp.org>
45220
45221         * users.txt: Update entry about pspp.
45222
45223 2008-10-21  Bruno Haible  <bruno@clisp.org>
45224
45225         Simplification.
45226         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45227         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45228
45229         Simplification.
45230         * lib/ioctl.c (ioctl): Don't undefine.
45231         * lib/socket.c (socket): Don't undefine.
45232
45233         Remove unused module indicator macros.
45234         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45235         GNULIB_$1 as a C macro.
45236
45237         * doc/posix-functions/close.texi: Undo last change.
45238         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45239         Windows platforms.
45240
45241 2008-10-21  Bruno Haible  <bruno@clisp.org>
45242
45243         Add gethostname() declaration to <unistd.h>.
45244         * lib/unistd.in.h (gethostname): New declaration.
45245         * lib/gethostname.c: Include <unistd.h>.
45246         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45247         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45249         and HAVE_GETHOSTNAME.
45250         * modules/gethostname (Depends-on): Add unistd.
45251         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45252         (Include): Specify <unistd.h>.
45253         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45254         HAVE_GETHOSTNAME.
45255         * tests/test-gethostname.c: Include <unistd.h> first.
45256
45257 2008-10-21  Bruno Haible  <bruno@clisp.org>
45258
45259         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45260         * modules/select-tests (Depends-on): Likewise.
45261         Reported by Simon Josefsson.
45262
45263 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45264
45265         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45266         * lib/accept.c: New file, based on winsock.c.
45267         * lib/bind.c: New file, based on winsock.c.
45268         * lib/connect.c: New file, based on winsock.c.
45269         * lib/getpeername.c: New file, based on winsock.c.
45270         * lib/getsockname.c: New file, based on winsock.c.
45271         * lib/getsockopt.c: New file, based on winsock.c.
45272         * lib/ioctl.c: New file, based on winsock.c.
45273         * lib/listen.c: New file, based on winsock.c.
45274         * lib/recv.c: New file, based on winsock.c.
45275         * lib/recvfrom.c: New file, based on winsock.c.
45276         * lib/send.c: New file, based on winsock.c.
45277         * lib/sendto.c: New file, based on winsock.c.
45278         * lib/setsockopt.c: New file, based on winsock.c.
45279         * lib/shutdown.c: New file, based on winsock.c.
45280         * lib/socket.c: New file, based on winsock.c.
45281         * lib/w32sock.h: New file, based on winsock.c.
45282         * lib/winsock.c: Remove file.
45283         * modules/accept: Likewise.
45284         * modules/bind: Likewise.
45285         * modules/connect: Likewise.
45286         * modules/getpeername: Likewise.
45287         * modules/getsockname: Likewise.
45288         * modules/getsockopt: Likewise.
45289         * modules/ioctl: Likewise.
45290         * modules/listen: Likewise.
45291         * modules/recv: Likewise.
45292         * modules/recvfrom: Likewise.
45293         * modules/send: Likewise.
45294         * modules/sendto: Likewise.
45295         * modules/setsockopt: Likewise.
45296         * modules/shutdown: Likewise.
45297         * modules/socket: Use socket.c instead of winsock.c.
45298         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45299         * doc/posix-functions/accept.texi: Doc fix.
45300         * doc/posix-functions/bind.texi: Doc fix.
45301         * doc/posix-functions/close.texi: Doc fix.
45302         * doc/posix-functions/connect.texi: Doc fix.
45303         * doc/posix-functions/getpeername.texi: Doc fix.
45304         * doc/posix-functions/getsockname.texi: Doc fix.
45305         * doc/posix-functions/getsockopt.texi: Doc fix.
45306         * doc/posix-functions/ioctl.texi: Doc fix.
45307         * doc/posix-functions/listen.texi: Doc fix.
45308         * doc/posix-functions/recv.texi: Doc fix.
45309         * doc/posix-functions/recvfrom.texi: Doc fix.
45310         * doc/posix-functions/send.texi: Doc fix.
45311         * doc/posix-functions/sendto.texi: Doc fix.
45312         * doc/posix-functions/setsockopt.texi: Doc fix.
45313         * doc/posix-functions/shutdown.texi: Doc fix.
45314         * doc/posix-functions/socket.texi: Doc fix.
45315
45316 2008-10-20  Bruno Haible  <bruno@clisp.org>
45317
45318         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45319         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45320         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45321         as an alias for SIGABRT.
45322         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45323         (sigaction): Map it to SIGABRT.
45324         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45325
45326 2008-10-20  Bruno Haible  <bruno@clisp.org>
45327
45328         * lib/fts.c: Don't include lstat.h.
45329         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45330
45331         Move the lstat() declaration to <sys/stat.h>.
45332         * lib/lstat.h: Remove file.
45333         * lib/sys_stat.in.h: Add special invocation convention.
45334         (lstat): New declaration.
45335         * lib/lstat.c (orig_lstat): New function.
45336         (rpl_lstat): Use orig_lstat instead of lstat.
45337         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45338         AC_C_INLINE. Set REPLACE_LSTAT.
45339         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45340         and REPLACE_LSTAT.
45341         * modules/lstat (Files): Remove lib/lstat.h.
45342         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45343         (Include): Specify <sys/stat.h> instead of lstat.h.
45344         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45345         REPLACE_LSTAT.
45346         * NEWS: Mention the change.
45347
45348 2008-10-20  Bruno Haible  <bruno@clisp.org>
45349
45350         * modules/posix_spawn-tests: New file.
45351         * tests/test-posix_spawn3.c: New file.
45352
45353 2008-10-20  Bruno Haible  <bruno@clisp.org>
45354
45355         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45356         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45357         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45358         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45359         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45360
45361 2008-10-20  Bruno Haible  <bruno@clisp.org>
45362
45363         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45364         of posix_spawn on AIX 5.3.
45365
45366 2008-10-20  Bruno Haible  <bruno@clisp.org>
45367
45368         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45369
45370 2008-10-20  Bruno Haible  <bruno@clisp.org>
45371
45372         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45373         of AC_LANG_PROGRAM.
45374
45375 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45376
45377         * lib/netdb.in.h: Don't define GNU specific constants until they
45378         are supported or needed.  Reported by Bruno Haible
45379         <bruno@clisp.org>.
45380
45381 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45382
45383         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45384
45385 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45386
45387         * lib/getaddrinfo.h: Remove file.
45388         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45389         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45390         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45391         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45392         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45393         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45394         * tests/test-getaddrinfo.c: Likewise.
45395         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45396         * NEWS: Mention change.
45397
45398 2008-10-19  Bruno Haible  <bruno@clisp.org>
45399
45400         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45401
45402 2008-10-19  Bruno Haible  <bruno@clisp.org>
45403
45404         * lib/wait-process.c: Include simply <sys/wait.h>.
45405         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45406         WIFSTOPPED): Remove fallback definitions.
45407         * modules/wait-process (Depends-on): Add sys_wait.
45408
45409         New module 'sys_wait'.
45410         * modules/sys_wait: New file.
45411         * lib/sys_wait.in.h: New file, partially copied from
45412         lib/wait-process.c.
45413         * m4/sys_wait_h.m4: New file.
45414         * doc/posix-headers/sys_wait.texi: Mention the new module.
45415
45416 2008-10-19  Bruno Haible  <bruno@clisp.org>
45417
45418         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45419
45420 2008-10-19  Bruno Haible  <bruno@clisp.org>
45421
45422         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45423         * lib/wait-process.c (WAIT_T): Remove type.
45424         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45425         (wait_subprocess): Update.
45426
45427 2008-10-19  Bruno Haible  <bruno@clisp.org>
45428
45429         New module 'atoll'.
45430         * modules/atoll: New file.
45431         * lib/stdlib.in.h (atoll): New declaration.
45432         * lib/atoll.c: New file, from glibc with modifications.
45433         * m4/atoll.m4: New file.
45434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45435         HAVE_ATOLL.
45436         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45437         * doc/posix-functions/atoll.texi: Mention the new module.
45438
45439 2008-10-19  Bruno Haible  <bruno@clisp.org>
45440
45441         Add strtoull() declaration to <stdlib.h>.
45442         * lib/stdlib.in.h (strtoull): New declaration.
45443         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45444         Set HAVE_STRTOULL.
45445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45446         HAVE_STRTOULL.
45447         * modules/strtoull (Depends-on): Add stdlib.
45448         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45449         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45450         HAVE_STRTOULL.
45451
45452 2008-10-19  Bruno Haible  <bruno@clisp.org>
45453
45454         Add strtoll() declaration to <stdlib.h>.
45455         * lib/stdlib.in.h (strtoll): New declaration.
45456         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45457         Set HAVE_STRTOLL.
45458         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45459         HAVE_STRTOLL.
45460         * modules/strtoll (Depends-on): Add stdlib.
45461         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45462         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45463
45464 2008-10-19  Bruno Haible  <bruno@clisp.org>
45465
45466         * modules/bcopy (Depends-on): Add strings.
45467         (Include): Specify <strings.h>.
45468
45469 2008-10-19  Bruno Haible  <bruno@clisp.org>
45470
45471         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45472
45473 2008-10-19  Bruno Haible  <bruno@clisp.org>
45474
45475         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45476         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45477         mingw.
45478
45479 2008-10-19  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/atanl.c: Don't include isnanl.h.
45482         * lib/cosl.c: Likewise.
45483         * lib/ldexpl.c: Likewise.
45484         * lib/logl.c: Likewise.
45485         * lib/sinl.c: Likewise.
45486         * lib/sqrtl.c: Likewise.
45487         * lib/tanl.c: Likewise.
45488
45489         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45490         * lib/isnanf.h: Remove file.
45491         * lib/isnand.h: Remove file.
45492         * lib/isnanl.h: Remove file.
45493         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45494         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45495         macros.
45496         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45497         HAVE_ISNANF, don't define it as a C macro.
45498         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45499         HAVE_ISNAND, don't define it as a C macro.
45500         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45501         HAVE_ISNANL, don't define it as a C macro.
45502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45503         HAVE_ISNAN[FDL].
45504         * modules/isnanf (Files): Remove lib/isnanf.h.
45505         (Depends-on): Add math.
45506         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45507         (Include): Specify <math.h> instead of isnanf.h.
45508         * modules/isnand (Files): Remove lib/isnand.h.
45509         (Depends-on): Add math.
45510         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45511         (Include): Specify <math.h> instead of isnand.h.
45512         * modules/isnanl (Files): Remove lib/isnanl.h.
45513         (Depends-on): Add math.
45514         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45515         (Include): Specify <math.h> instead of isnanl.h.
45516         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45517         HAVE_ISNAN[FDL].
45518         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45519         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45520         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45521         * NEWS: Mention the change.
45522
45523 2008-10-18  Bruno Haible  <bruno@clisp.org>
45524
45525         Add getusershell(), setusershell(), endusershell() declarations to
45526         <unistd.h>.
45527         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45528         declarations.
45529         * lib/getusershell.c: Include unistd.h.
45530         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45531         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45532         HAVE_GETUSERSHELL.
45533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45534         and HAVE_GETUSERSHELL.
45535         * modules/getusershell (Depends-on): Add unistd, extensions.
45536         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45537         (Include): Specify <unistd.h>.
45538         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45539         HAVE_GETUSERSHELL.
45540
45541 2008-10-18  Bruno Haible  <bruno@clisp.org>
45542
45543         Add a getloadavg() declaration to <stdlib.h>.
45544         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45545         getloadavg declaration.
45546         (getloadavg): New declaration.
45547         * lib/getloadavg.c: Include <stdlib.h> first.
45548         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45549         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45550         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45552         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45553         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45554         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45555         (Include): Specify <stdlib.h>.
45556         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45557         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45558
45559 2008-10-18  Bruno Haible  <bruno@clisp.org>
45560
45561         * lib/dirchownmod.c: Don't include lchmod.h.
45562
45563         Move the lchmod() declaration to <sys/stat.h>.
45564         * lib/lchmod.h: Remove file.
45565         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45566         (lchmod): New declaration, moved here from lib/lchown.h.
45567         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45568         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45569         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45570         and HAVE_LCHMOD.
45571         * modules/lchmod (Files): Remove lib/lchmod.h.
45572         (Depends-on): Add sys_stat, extensions.
45573         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45574         (Include): Specify <sys/stat.h> instead of lchmod.h.
45575         * modules/sys_stat (Depends-on): Add link-warning.
45576         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45577         definition of GL_LINK_WARNING.
45578         * NEWS: Mention the change.
45579
45580 2008-10-18  Bruno Haible  <bruno@clisp.org>
45581
45582         * lib/fchdir.c: Don't include dirfd.h.
45583         * lib/fts.c: Likewise.
45584         * lib/getcwd.c: Likewise.
45585         * lib/glob.c: Likewise.
45586
45587         Move the dirfd() declaration to <dirent.h>.
45588         * lib/dirfd.h: Remove file.
45589         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45590         (dirfd): New declaration.
45591         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45592         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45593         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45594         HAVE_DECL_DIRFD.
45595         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45596         HAVE_DECL_DIRFD.
45597         * modules/dirfd (Files): Remove lib/dirfd.h.
45598         (Depends-on): Add dirent, extensions.
45599         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45600         (Include): Specify <dirent.h> instead of dirfd.h.
45601         * modules/dirent (Depends-on): Add link-warning.
45602         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45603         definition of GL_LINK_WARNING.
45604         * NEWS: Mention the change.
45605
45606 2008-10-18  Bruno Haible  <bruno@clisp.org>
45607
45608         Move the euidaccess() declaration to <unistd.h>.
45609         * lib/euidaccess.h: Remove file.
45610         * lib/unistd.in.h (euidaccess): New declaration.
45611         * lib/euidaccess.c: Don't include euidaccess.h.
45612         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45613         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45615         and HAVE_EUIDACCESS.
45616         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45617         (Depends-on): Add unistd.
45618         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45619         (Include): Specify <unistd.h> instead of euidaccess.h.
45620         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45621         HAVE_EUIDACCESS.
45622         * NEWS: Mention the change.
45623
45624 2008-10-18  Bruno Haible  <bruno@clisp.org>
45625
45626         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45627
45628         Move the getdomainname() declaration to <unistd.h>.
45629         * lib/getdomainname.h: Remove file.
45630         * lib/unistd.in.h (getdomainname): New declaration.
45631         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45632         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45633         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45634         HAVE_GETDOMAINNAME.
45635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45636         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45637         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45638         (Depends-on): Add unistd, extensions.
45639         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45640         (Includes): Specify <unistd.h> instead of getdomainname.h.
45641         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45642         HAVE_GETDOMAINNAME.
45643         * NEWS: Mention the change.
45644
45645 2008-10-18  Bruno Haible  <bruno@clisp.org>
45646
45647         * modules/dirent: New file.
45648         * m4/dirent_h.m4: New file.
45649         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45650         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45651         * modules/fchdir (Files): Remove lib/dirent.in.h.
45652         (Depends-on): Add dirent.
45653         (Makefile.am): Move rules to modules/dirent.
45654         * doc/posix-headers/dirent.texi: Mention the new module.
45655
45656 2008-10-18  Bruno Haible  <bruno@clisp.org>
45657
45658         Avoid -Wunused-parameter warnings in public gnulib header files.
45659         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45660         macro.
45661         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45662
45663 2008-10-18  Bruno Haible  <bruno@clisp.org>
45664
45665         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45666         * doc/glibc-functions/error.texi: Mention the module 'error'.
45667         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45668         * doc/glibc-functions/getdomainname.texi: Mention the module
45669         'getdomainname'.
45670         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45671         * doc/glibc-functions/getpagesize.texi: Mention the module
45672         'getpagesize'.
45673         * doc/glibc-functions/getusershell.texi: Mention the module
45674         'getusershell'.
45675         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45676         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45677         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45678         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45679         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45680         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45681         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45682         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45683         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45684         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45685         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45686         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45687         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45688         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45689
45690 2008-10-17  Bruno Haible  <bruno@clisp.org>
45691
45692         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45693         HP-UX and IRIX, use -0.0L.
45694         * tests/test-ceill.c (minus_zero): Likewise.
45695         * tests/test-floorl.c (minus_zero): Likewise.
45696         * tests/test-frexpl.c (minus_zero): Likewise.
45697         * tests/test-isnan.c (minus_zerol): Likewise.
45698         * tests/test-isnanl.h (minus_zero): Likewise.
45699         * tests/test-ldexpl.c (minus_zero): Likewise.
45700         * tests/test-roundl.c (minus_zero): Likewise.
45701         * tests/test-signbit.c (minus_zerol): Likewise.
45702         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45703         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45704         * tests/test-truncl.c (minus_zero): Likewise.
45705         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45706         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45707         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45708         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45709
45710 2008-10-17  Bruno Haible  <bruno@clisp.org>
45711
45712         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45713         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45714         that it gets activated only for gcc >= 3.0.
45715         * lib/dirent.in.h: Likewise.
45716         * lib/errno.in.h: Likewise.
45717         * lib/fcntl.in.h: Likewise.
45718         * lib/float.in.h: Likewise.
45719         * lib/iconv.in.h: Likewise.
45720         * lib/inttypes.in.h: Likewise.
45721         * lib/locale.in.h: Likewise.
45722         * lib/math.in.h: Likewise.
45723         * lib/netdb.in.h: Likewise.
45724         * lib/netinet_in.in.h: Likewise.
45725         * lib/search.in.h: Likewise.
45726         * lib/signal.in.h: Likewise.
45727         * lib/spawn.in.h: Likewise.
45728         * lib/stdarg.in.h: Likewise.
45729         * lib/stdint.in.h: Likewise.
45730         * lib/stdio.in.h: Likewise.
45731         * lib/stdlib.in.h: Likewise.
45732         * lib/string.in.h: Likewise.
45733         * lib/strings.in.h: Likewise.
45734         * lib/sys_file.in.h: Likewise.
45735         * lib/sys_ioctl.in.h: Likewise.
45736         * lib/sys_select.in.h: Likewise.
45737         * lib/sys_socket.in.h: Likewise.
45738         * lib/sys_stat.in.h: Likewise.
45739         * lib/sys_time.in.h: Likewise.
45740         * lib/sysexits.in.h: Likewise.
45741         * lib/time.in.h: Likewise.
45742         * lib/unistd.in.h: Likewise.
45743         * lib/wchar.in.h: Likewise.
45744         * lib/wctype.in.h: Likewise.
45745         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45746
45747 2008-10-17  Jim Meyering  <meyering@redhat.com>
45748
45749         ignore-value: don't depend on inline module
45750         * modules/ignore-value (Depends-on): Remove 'inline'.
45751         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45752         Suggestion from Bruno Haible.
45753
45754 2008-10-17  Bruno Haible  <bruno@clisp.org>
45755
45756         New implementation of condition variables for Win32.
45757         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45758         (gl_linked_waitqueue_t): New type.
45759         (gl_cond_t): Use it.
45760         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45761         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45762         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45763         (glthread_cond_init_func, glthread_cond_wait_func,
45764         glthread_cond_timedwait_func, glthread_cond_signal_func,
45765         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45766         Reimplemented on the basis of gl_linked_waitqueue_t.
45767         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45768         gl_waitqueue_t.
45769         (gl_rwlock_t): Update.
45770         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45771
45772 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45773
45774         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45775         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45776
45777 2008-10-17  Jim Meyering  <meyering@redhat.com>
45778
45779         ignore-value: new module
45780         * modules/ignore-value: New file.
45781         * lib/ignore-value.h: New file.
45782         * MODULES.html.sh (Compiler warning management): New section,
45783         just for this module.  More to come.
45784
45785 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45786
45787         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45788         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45789         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45790
45791 2008-10-16  Jim Meyering  <meyering@redhat.com>
45792
45793         openat-die.c: avoid 'no previous prototype' warning
45794         * lib/openat-die.c: Include "openat.h".
45795         Reported by Reuben Thomas <rrt@sc3d.org>.
45796
45797 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45798
45799         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45800         * lib/netdb.in.h: Fix typo.
45801         Reported by Bruno Haible  <bruno@clisp.org>
45802
45803         * lib/netdb.in.h: Include sys/socket.h for platforms without
45804         netdb.h, to get structures like hostent on MinGW.
45805         * modules/netdb (Depends-on): Add sys_socket.
45806
45807 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45808
45809         * modules/netdb, modules/netdb-tests: New file.
45810         * m4/netdb_h.m4: New file.
45811         * lib/netdb.in.h: Add, currently just an empty file pending
45812         definitions.
45813         * tests/test-netdb.c: New file.
45814         * doc/posix-headers/netdb.texi: Mention that we replace it if
45815         needed.
45816         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45817         netdb.
45818
45819 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45820
45821         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45822         with code.
45823
45824 2008-10-13  Bruno Haible  <bruno@clisp.org>
45825
45826         * lib/glthread/cond.c (glthread_cond_wait_func,
45827         glthread_cond_timedwait_func): Add a comment.
45828
45829 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45830
45831         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45832         * tests/test-select.c: Likewise,
45833
45834 2008-10-13  Bruno Haible  <bruno@clisp.org>
45835
45836         * lib/glthread/cond.c (glthread_cond_wait_func,
45837         glthread_cond_timedwait_func): Fix variable name.
45838         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45839
45840 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45841
45842         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45843         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45844         struct sockaddr.sa_len.
45845         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45846
45847 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45848
45849         * build-aux/pmccabe2html: Add css and css_url parameters.
45850
45851 2008-10-12  Bruno Haible  <bruno@clisp.org>
45852
45853         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45854         calling aclx_get.
45855         Reported by Rainer Tammer <tammer@tammer.net>.
45856
45857 2008-10-12  Bruno Haible  <bruno@clisp.org>
45858
45859         Use msvcrt aware primitives for creation/termination of Win32 threads.
45860         * lib/glthread/thread.c: Include <process.h>.
45861         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45862         (wrapper_func): Update signature.
45863         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45864
45865 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45866             Bruno Haible  <bruno@clisp.org>
45867
45868         Provide a Win32 implementation of the 'cond' module.
45869         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45870         * lib/glthread/cond.c (glthread_cond_init_func,
45871         glthread_cond_wait_func, glthread_cond_timedwait_func,
45872         glthread_cond_signal_func, glthread_cond_broadcast_func,
45873         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45874         * modules/cond (Dependencies): Add gettimeofday.
45875
45876 2008-10-11  Bruno Haible  <bruno@clisp.org>
45877
45878         Make sleep work on older versions of mingw.
45879         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45880         only whether it exists.
45881         * doc/posix-functions/sleep.texi: Mention the problem with older
45882         versions of mingw.
45883
45884 2008-10-11  Bruno Haible  <bruno@clisp.org>
45885
45886         New module 'shutdown'.
45887         * modules/shutdown: New file.
45888         * lib/sys_socket.in.h (shutdown): New declaration.
45889         * lib/winsock.c (shutdown): New function.
45890         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45891         GNULIB_SHUTDOWN.
45892         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45893         * doc/posix-functions/shutdown.texi: Document the new module.
45894
45895 2008-10-11  Jim Meyering  <meyering@redhat.com>
45896
45897         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45898
45899 2008-10-11  Bruno Haible  <bruno@clisp.org>
45900
45901         New module 'fclose'.
45902         * modules/fclose: New file.
45903         * lib/stdio.in.h (fclose): New declaration.
45904         * lib/fclose.c: New file.
45905         * m4/fclose.m4: New file.
45906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45907         REPLACE_FCLOSE.
45908         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45909         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45910         REPLACE_FCLOSE.
45911         * modules/close (Depends-on): fclose.
45912         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45913
45914 2008-10-11  Bruno Haible  <bruno@clisp.org>
45915
45916         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45917         set errno and don't call _close.
45918
45919 2008-10-10  Bruno Haible  <bruno@clisp.org>
45920
45921         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45922         ACL, not afterwards. Fixes test failure on Cygwin.
45923
45924 2008-10-09  Ben Pfaff  <blp@gnu.org>
45925
45926         * build-aux/announce-gen: Fix gnulib version related part of usage
45927         message.  Die with a useful error message if no tarballs are
45928         found.
45929
45930 2008-10-10  Jim Meyering  <meyering@redhat.com>
45931
45932         bootstrap: use git's --depth=N option only if it's supported
45933         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
45934         recognize the --depth option.  Reported by Pádraig Brady.
45935
45936 2008-10-09  Bruno Haible  <bruno@clisp.org>
45937
45938         New module 'ioctl'.
45939         * modules/ioctl: New file.
45940         * lib/sys_socket.in.h (ioctl): Remove declaration.
45941         * lib/winsock.c: Include <sys/ioctl.h>.
45942         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
45943         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45944         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
45945         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
45946         * doc/posix-functions/ioctl.texi: Mention the new module.
45947
45948 2008-10-09  Bruno Haible  <bruno@clisp.org>
45949
45950         New module 'sys_ioctl'.
45951         * lib/sys_ioctl.in.h: New file.
45952         * m4/sys_ioctl_h.m4: New file.
45953         * modules/sys_ioctl: New file.
45954         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
45955
45956 2008-10-09  Bruno Haible  <bruno@clisp.org>
45957
45958         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
45959         * lib/winsock.c: Include <stdarg.h>.
45960         (rpl_ioctl): Change to second argument 'int' and then varargs.
45961
45962 2008-10-09  Bruno Haible  <bruno@clisp.org>
45963
45964         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
45965         when the sys_socket module is present and the system has <winsock2.h>.
45966
45967 2008-10-09  Bruno Haible  <bruno@clisp.org>
45968
45969         * doc/posix-functions/close.texi: Mention module 'close' instead of
45970         module 'sys_socket'.
45971
45972 2008-10-09  Bruno Haible  <bruno@clisp.org>
45973
45974         * doc/glibc-headers/sys_ioctl.texi: New file.
45975         * doc/gnulib.texi: Include it.
45976
45977 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
45978             Bruno Haible  <bruno@clisp.org>
45979
45980         Combine the two replacements of 'close'.
45981         * lib/sys_socket.in.h (close): Define to a reminder to include
45982         <unistd.h>.
45983         (_gl_close_fd_maybe_socket): New declaration.
45984         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
45985         * lib/winsock.c (close): Remove undefinition.
45986         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
45987         needed for the gnulib module 'close'.
45988         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
45989         define to an error symbol or to a warning, if suitable.
45990         * lib/close.c: Include <sys/socket.h>.
45991         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
45992         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
45993         UNISTD_H_HAVE_WINSOCK2_H.
45994         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
45995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45996         UNISTD_H_HAVE_WINSOCK2_H.
45997         * modules/sys_socket (Files): Add m4/unistd_h.m4.
45998         (configure.ac): Set a module indicator.
45999         (Makefile.am): Substitute GNULIB_CLOSE.
46000         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46001         * modules/poll-tests (Depends-on): Add close.
46002         * modules/select-tests (Depends-on): Likewise.
46003
46004 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46005             Bruno Haible  <bruno@clisp.org>
46006
46007         New module 'close'.
46008         * modules/close: New file.
46009         * lib/unistd.in.h (close): Move declaration out of the
46010         FCHDIR_REPLACEMENT scope.
46011         (_gl_unregister_fd): New declaration.
46012         * lib/close.c: New file.
46013         * lib/fchdir.c (rpl_close): Remove function.
46014         * m4/close.m4: New file.
46015         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46016         close.
46017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46018         REPLACE_CLOSE.
46019         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46020         REPLACE_CLOSE.
46021         * modules/fchdir (Depends-on): Add close.
46022
46023 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46024             Bruno Haible  <bruno@clisp.org>
46025
46026         * lib/fcntl.in.h (open): Simplify conditionals.
46027         (_gl_register_fd): New declaration.
46028         * lib/fchdir.c (rpl_open): Remove function.
46029         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46030         also.
46031         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46032         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46033         open.
46034
46035 2008-10-09  Jim Meyering  <meyering@redhat.com>
46036
46037         GNUmakefile: use the more name-space-friendly "_version"
46038         * top/GNUmakefile (_dummy): Update.
46039         (_version): Rename from "version".
46040
46041 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46042             Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46045         rpl_close.
46046         (_gl_register_fd): New function, extracted from rpl_open.
46047         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46048         (rpl_open, rpl_opendir): Use _gl_register_fd.
46049
46050 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46051
46052         Fix organization of 'open' replacement.
46053         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46054         (gl_FUNC_OPEN): Use it.
46055         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46056
46057 2008-10-08  Bruno Haible  <bruno@clisp.org>
46058
46059         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46060
46061 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46062
46063         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46064         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46065         listen).
46066
46067 2008-10-08  Eric Blake  <ebb9@byu.net>
46068
46069         GNUmakefile: add 'make version' target
46070         * top/GNUmakefile (_curr-ver): Split version update rules...
46071         (version): ...into a target.
46072
46073 2008-10-07  Bruno Haible  <bruno@clisp.org>
46074
46075         Use a more portable replacement expression for -0.0L.
46076         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46077         instead of -0.0L. Fix m4 quotation.
46078
46079         * tests/test-signbit.c: Include <float.h>.
46080         (minus_zero): New variable.
46081         (test_signbitl): Use minus_zero instead of -zero.
46082         * modules/signbit-tests (Depends-on): Add float.
46083
46084         * tests/test-ceill.c: Include <float.h>.
46085         (zero): Remove variable.
46086         (minus_zero): New variable.
46087         (main): Use minus_zero instead of -zero.
46088         * modules/ceill-tests (Depends-on): Add float.
46089
46090         * tests/test-floorl.c: Include <float.h>.
46091         (zero): Remove variable.
46092         (minus_zero): New variable.
46093         (main): Use minus_zero instead of -zero.
46094         * modules/floorl-tests (Depends-on): Add float.
46095
46096         * tests/test-roundl.c: Include <float.h>.
46097         (zero): Remove variable.
46098         (minus_zero): New variable.
46099         (main): Use minus_zero instead of -zero.
46100         * modules/roundl-tests (Depends-on): Add float.
46101
46102         * tests/test-truncl.c: Include <float.h>.
46103         (zero): Remove variable.
46104         (minus_zero): New variable.
46105         (main): Use minus_zero instead of -zero.
46106         * modules/truncl-tests (Depends-on): Add float.
46107
46108         * tests/test-frexpl.c (zero): Remove variable.
46109         (minus_zero): New variable.
46110         (main): Use minus_zero instead of -zero.
46111         * modules/frexpl-tests (Depends-on): Add float.
46112
46113         * tests/test-isnan.c (zerol): Remove variable.
46114         (minus_zerol): New variable.
46115         (test_long_double): Use minus_zerol instead of -zerol.
46116         * modules/isnan-tests (Depends-on): Add float.
46117
46118         * tests/test-isnanl.h (zero): Remove variable.
46119         (minus_zero): New variable.
46120         (main): Use minus_zero instead of -zero.
46121         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46122         * modules/isnanl-tests (Depends-on): Add float.
46123
46124         * tests/test-ldexpl.c (zero): Remove variable.
46125         (minus_zero): New variable.
46126         (main): Use minus_zero instead of -zero.
46127         * modules/ldexpl-tests (Depends-on): Add float.
46128
46129         * tests/test-snprintf-posix.h (zerol): Remove variable.
46130         (minus_zerol): New variable.
46131         (test_function): Use minus_zerol instead of -zerol.
46132         * modules/snprintf-posix-tests (Depends-on): Add float.
46133         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46134
46135         * tests/test-sprintf-posix.h (zerol): Remove variable.
46136         (minus_zerol): New variable.
46137         (test_function): Use minus_zerol instead of -zerol.
46138         * modules/sprintf-posix-tests (Depends-on): Add float.
46139         * modules/vsprintf-posix-tests (Depends-on): Add float.
46140
46141         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46142         (minus_zerol): New variable.
46143         (test_function): Use minus_zerol instead of -zerol.
46144         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46145
46146         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46147         (minus_zerol): New variable.
46148         (test_function): Use minus_zerol instead of -zerol.
46149         * modules/vasprintf-posix-tests (Depends-on): Add float.
46150
46151 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46152
46153         * MODULES.html.sh (Support for building documentation): Mention
46154         pmccabe2html.  Sort entries.
46155
46156         Add pmccabe2html module, from gnupdf.
46157         * build-aux/pmccabe.css: New file.
46158         * build-aux/pmccabe2html: New file.
46159         * m4/pmccabe2html.m4: New file.
46160         * modules/pmccabe2html: New file.
46161
46162 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46163
46164         flock: new module
46165         * MODULES.html.sh: Add to list of modules.
46166         * lib/flock.c: flock implementation for Windows and Unix systems
46167         which have fcntl.
46168         * doc/glibc-functions/flock.texi: Update documentation.
46169         * lib/sys_file.in.h: <sys/file.h> header file.
46170         * m4/flock.m4: M4 macros.
46171         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46172         * modules/flock: flock module.
46173         * modules/flock-tests: flock tests module.
46174         * modules/sys_file: sys/file.h module.
46175         * tests/test-flock.c: test suite for flock.
46176
46177 2008-10-06  Jim Meyering  <meyering@redhat.com>
46178
46179         bootstrap: check for LT_INIT more portably still ;-)
46180         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46181         Spotted by Bruno Haible.
46182
46183 2008-10-06  Eric Blake  <ebb9@byu.net>
46184
46185         test-signbit: avoid tripping Irix cc bug on -0.0L
46186         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46187         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46188         entire testsuite consistent and avoids an Irix 6.2 bug.
46189
46190 2008-10-05  Bruno Haible  <bruno@clisp.org>
46191             Jim Meyering  <jim@meyering.net>
46192
46193         Add an option for ignoring EPIPE during close_stdout.
46194         * lib/closeout.h: Include <stdbool.h>.
46195         (close_stdout_set_ignore_EPIPE): New declaration.
46196         * lib/closeout.c: Include <stdbool.h>.
46197         (ignore_EPIPE): New variable.
46198         (close_stdout_set_ignore_EPIPE): New function.
46199         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46200         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46201         failure.
46202         * modules/closeout (Depends-on): Add stdbool.
46203
46204 2008-10-05  Bruno Haible  <bruno@clisp.org>
46205
46206         * modules/accept: New file.
46207         * modules/bind: New file.
46208         * modules/connect: New file.
46209         * modules/getpeername: New file.
46210         * modules/getsockname: New file.
46211         * modules/getsockopt: New file.
46212         * modules/listen: New file.
46213         * modules/recv: New file.
46214         * modules/recvfrom: New file.
46215         * modules/send: New file.
46216         * modules/sendto: New file.
46217         * modules/setsockopt: New file.
46218         * modules/socket: New file.
46219         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46220         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46221         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46222         the particular module is requested. Add a link warning when the
46223         particular module is not requested.
46224         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46225         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46226         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46227         the particular module is requested.
46228         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46229         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46230         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46231         * modules/sys_socket (Depends-on): Add link-warning.
46232         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46233         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46234         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46235         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46236         GL_LINK_WARNING.
46237         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46238         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46239         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46240         * doc/posix-functions/getpeername.texi: Mention the new module
46241         'getpeername'.
46242         * doc/posix-functions/getsockname.texi: Mention the new module
46243         'getsockname'.
46244         * doc/posix-functions/getsockopt.texi: Mention the new module
46245         'getsockopt'.
46246         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46247         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46248         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46249         * doc/posix-functions/send.texi: Mention the new module 'send'.
46250         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46251         * doc/posix-functions/setsockopt.texi: Mention the new module
46252         'setsockopt'.
46253         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46254         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46255         listen, connect, accept.
46256         * modules/select-tests (Depends-on): Likewise.
46257
46258 2008-10-05  Bruno Haible  <bruno@clisp.org>
46259
46260         * lib/winsock.c (strerror): Remove unused #undef.
46261         (rpl_close): Remove unused local variable.
46262
46263         * modules/sys_socket (Depends-on); Add errno.
46264
46265 2008-10-05  Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46268         (select): Add a link warning when the 'select' module is not used.
46269         * modules/sys_select (Depends-on): Add link-warning.
46270         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46271         Suggested by Paolo Bonzini.
46272
46273 2008-10-05  Jim Meyering  <meyering@redhat.com>
46274
46275         bootstrap: check for LT_INIT more portably
46276         * build-aux/bootstrap: Avoid using grep -E, since it's not
46277         portable enough.  Suggestion from Bruno Haible.
46278
46279 2008-10-05  Bruno Haible  <bruno@clisp.org>
46280
46281         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46282         as being fixed by gnulib.
46283
46284 2008-10-05  Bruno Haible  <bruno@clisp.org>
46285
46286         * modules/select-tests: New file, mostly copied from
46287         modules/sys_select-tests.
46288         * tests/test-select.c: New file, mostly copied from
46289         tests/test-sys_select.c.
46290         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46291         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46292         (Makefile.am): Remove test_sys_select_LDADD.
46293
46294         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46295         to an undefined symbol, for an error message.
46296         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46297         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46298         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46299         winsock-select.c here.
46300         * modules/sys_select (Files): Remove lib/winsock-select.c.
46301         (Depends-on): Remove alloca.
46302         (Makefile.am): Substitute GNULIB_SELECT.
46303         * modules/select: New file.
46304         * doc/posix-functions/select.texi: Update.
46305
46306 2008-10-05  Bruno Haible  <bruno@clisp.org>
46307
46308         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46309         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46310         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46311         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46312         getdtablesize.
46313         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46314         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46315
46316 2008-10-05  Bruno Haible  <bruno@clisp.org>
46317
46318         * modules/getdtablesize-tests: New file.
46319         * tests/test-getdtablesize.c: New file.
46320
46321         New module 'getdtablesize'.
46322         * lib/unistd.in.h (getdtablesize): New declaration.
46323         * lib/getdtablesize.c: New file.
46324         * m4/getdtablesize.m4: New file.
46325         * modules/getdtablesize: New file.
46326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46327         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46328         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46329         HAVE_GETDTABLESIZE.
46330         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46331
46332 2008-10-05  Bruno Haible  <bruno@clisp.org>
46333
46334         * modules/sched (Makefile.am): Fix typo.
46335         Reported by Simon Josefsson.
46336
46337 2008-10-05  Jim Meyering  <meyering@redhat.com>
46338
46339         bootstrap: check for LT_INIT, too
46340         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46341         are deprecated.  Suggestion from Ralf Wildenhues.
46342
46343 2008-10-05  Bruno Haible  <bruno@clisp.org>
46344
46345         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46346         overriding them by ours.
46347         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46348
46349 2008-10-05  Jim Meyering  <meyering@redhat.com>
46350
46351         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46352         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46353         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46354
46355 2008-10-04  Bruno Haible  <bruno@clisp.org>
46356
46357         * modules/dup2 (License): Change to LGPLv2+.
46358         * modules/sleep (License): Likewise.
46359         * modules/perror (License): Likewise.
46360         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46361         Blake.
46362         * modules/signal (License): Likewise.
46363         * modules/sigprocmask (License): Likewise.
46364         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46365         Meyering.
46366
46367 2008-10-04  Bruno Haible  <bruno@clisp.org>
46368
46369         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46370         Reported by Rainer Tammer <tammer@tammer.net>.
46371
46372 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46373             Bruno Haible  <bruno@clisp.org>
46374
46375         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46376         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46377         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46378
46379 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46380
46381         filevercmp: new module
46382         * lib/filevercmp.h: New function filevercmp comparing version strings.
46383         * lib/filevercmp.c: Implementation of filevercmp function.
46384         * modules/filevercmp: Module metadata.
46385         * tests/test-filevercmp.c: Unit test for new module.
46386         * modules/filevercmp-tests: Unit test metadata.
46387         * MODULES.html.sh: Add filevercmp module.
46388
46389 2008-10-03  Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/c-ctype.h: Add comment.
46392         Reported by Jim Meyering.
46393
46394 2008-10-02  Bruno Haible  <bruno@clisp.org>
46395
46396         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46397
46398 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46399
46400         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46401         name of bootstrap.conf accordingly.
46402
46403 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46404
46405         * build-aux/bootstrap: Install git-merge-changelog configuration
46406         items into .gitconfig if needed.
46407
46408 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46409
46410         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46411         git repository, and initialize/update it accordingly.
46412
46413 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46414
46415         * modules/fsync-tests: New file.
46416         * tests/test-fsync.c: New file.
46417
46418         New module 'fsync'.
46419         * lib/fsync.c: New file.
46420         * m4/fsync.m4: New file.
46421         * modules/fsync: New file.
46422         * lib/unistd.in.h (fsync): New declaration.
46423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46424         GNULIB_FSYNC and HAVE_FSYNC.
46425         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46426         * MODULES.html.sh (posix_functions): Add fsync.
46427         * doc/posix-functions/fsync.texi: Mention the new module.
46428
46429 2008-10-02  Jim Meyering  <meyering@redhat.com>
46430
46431         fts.c: sync with similar code from coreutils' remove.c
46432         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46433         Guard also with "#if defined __linux__", since for now at least,
46434         this code is Linux-kernel-specific.
46435
46436 2008-10-02  Jim Meyering  <meyering@redhat.com>
46437
46438         fts: bug fixes
46439         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46440         Include <sys/vfs.h>, not <sys/statfs.h>.
46441
46442         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46443         Include <sys/vfs.h>, not <sys/statfs.h>.
46444
46445 2008-10-01  Bruno Haible  <bruno@clisp.org>
46446
46447         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46448         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46449         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46450         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46451         * doc/posix-functions/posix_spawnp.texi: Likewise.
46452         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46453         whether posix_spawn actually works.
46454         * m4/pipe.m4 (gl_PIPE): Likewise.
46455         * modules/execute (Files): Add m4/posix_spawn.m4.
46456         * modules/pipe (Files): Add m4/posix_spawn.m4.
46457         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46458
46459 2008-10-01  Jim Meyering  <meyering@redhat.com>
46460
46461         remove trailing spaces
46462         * NEWS: Likewise.
46463         * lib/poll.c (poll): Likewise.
46464         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46465         * lib/winsock.c (rpl_close): Likewise.
46466         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46467         * modules/yield: Likewise.
46468         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46469         * tests/test-sys_select.c (connect_to_socket): Likewise.
46470
46471         fts.c: adjust a new interface to be more generally useful
46472         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46473         (fts_build): Adjust caller.
46474
46475 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46476
46477         * modules/cond-tests: New file.
46478         * tests/test-cond.c: New file.
46479
46480 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46481             Bruno Haible  <bruno@clisp.org>
46482
46483         * modules/cond (Dependencies): Add errno, time.
46484         * lib/glthread/cond.h: Include <time.h>.
46485         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46486         across platforms.
46487
46488 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46489             Bruno Haible  <bruno@clisp.org>
46490
46491         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46492
46493 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46494             Bruno Haible  <bruno@clisp.org>
46495
46496         * modules/tls-tests (Depends-on): Add thread, yield.
46497         (configure.ac): Remove all checks.
46498         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46499         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46500         gl_thread_self): Remove definitions. Include glthread/thread.h and
46501         glthread/yield.h instead.
46502         (test_tls): Pass an additional NULL argument to gl_thread_join.
46503
46504 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46505             Bruno Haible  <bruno@clisp.org>
46506
46507         * modules/lock-tests (Depends-on): Add thread, yield.
46508         (configure.ac): Remove all checks.
46509         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46510         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46511         gl_thread_self): Remove definitions. Include glthread/thread.h and
46512         glthread/yield.h instead.
46513         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46514         additional NULL argument to gl_thread_join.
46515
46516 2008-09-30  Bruno Haible  <bruno@clisp.org>
46517
46518         Fix the Win32 implementation of the 'thread' module.
46519         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46520         pointer type.
46521         (gl_thread_self): Invoke gl_thread_self_func.
46522         (gl_thread_self_func): New declaration.
46523         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46524         (do_init_self_key, init_self_key): New functions.
46525         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46526         Remove some fields.
46527         (running_threads, running_lock): Remove variables.
46528         (get_current_thread_handle): New function.
46529         (gl_thread_self_func, wrapper_func, glthread_create_func,
46530         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46531         simplified.
46532
46533 2008-09-30  Bruno Haible  <bruno@clisp.org>
46534
46535         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46536         files.
46537
46538 2008-09-30  Jim Meyering  <meyering@redhat.com>
46539
46540         fts.m4: correct the test for statfs.f_type
46541         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46542         when checking for statfs.f_type.
46543
46544 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46545
46546         tests: avoid some compiler warnings
46547         * tests/test-memchr.c (main): Pass NULL indirectly.
46548         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46549
46550 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
46551
46552         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46553         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46554         exactly specified dayshifts.
46555         (dayshift): New rule.
46556         (rel): Add dayshift.
46557         (relative_time_table) [tomorrow, yesterday, today, now]:
46558         Use tDAY_SHIFT in place of tDAY_UNIT.
46559         * tests/test-getdate.c: Add tests for now-disallowed countable
46560         dayshifts, e.g., "4 yesterday ago".
46561
46562 2008-09-29  Bruno Haible  <bruno@clisp.org>
46563
46564         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46565         * tests/test-posix_spawn1.in.sh: Renamed from
46566         tests/test-posix_spawn.in.sh.
46567         * tests/test-posix_spawn2.c: New file.
46568         * tests/test-posix_spawn2.in.sh: New file.
46569         * modules/posix_spawnp-tests (Files): Update.
46570         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46571
46572 2008-09-29  Bruno Haible  <bruno@clisp.org>
46573
46574         Propagate effects of putenv/setenv/unsetenv to child processes.
46575         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46576         * lib/pipe.c (create_pipe): Likewise.
46577
46578 2008-09-29  Bruno Haible  <bruno@clisp.org>
46579
46580         Enable use of shell scripts as executables in mingw.
46581         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46582         run the program as a shell script.
46583         * lib/pipe.c (create_pipe): Likewise.
46584         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46585         resulting array.
46586
46587 2008-09-29  Eric Blake  <ebb9@byu.net>
46588
46589         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46590
46591 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46592
46593         * doc/posix-functions/accept.texi: Update mingw problems.
46594         * doc/posix-functions/bind.texi: Update mingw problems.
46595         * doc/posix-functions/close.texi: Update mingw problems.
46596         * doc/posix-functions/connect.texi: Update mingw problems.
46597         * doc/posix-functions/getpeername.texi: Update mingw problems.
46598         * doc/posix-functions/getsockname.texi: Update mingw problems.
46599         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46600         * doc/posix-functions/ioctl.texi: Update mingw problems.
46601         * doc/posix-functions/listen.texi: Update mingw problems.
46602         * doc/posix-functions/recv.texi: Update mingw problems.
46603         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46604         * doc/posix-functions/select.texi: Update mingw problems.
46605         * doc/posix-functions/send.texi: Update mingw problems.
46606         * doc/posix-functions/sendto.texi: Update mingw problems.
46607         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46608         * doc/posix-functions/socket.texi: Update mingw problems.
46609
46610 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46611             Bruno Haible  <bruno@clisp.org>
46612
46613         * lib/sys_select.in.h: Include sys/time.h.
46614         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46615         * modules/sys_select: Depend on sys_time.
46616         * tests/test-sys_select.c: Test that sys/select.h defines struct
46617         timeval fully.
46618
46619 2008-09-29  Bruno Haible  <bruno@clisp.org>
46620
46621         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46622         * lib/sys_select.in.h: Likewise.
46623
46624 2008-09-29  Bruno Haible  <bruno@clisp.org>
46625
46626         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46627
46628 2008-09-29  Bruno Haible  <bruno@clisp.org>
46629
46630         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46631         Set LIBSOCKET instead of augmenting LIBS.
46632         * modules/sockets (Link): New section.
46633         * modules/sockets-tests (test_sockets_LDADD): New variable.
46634         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46635         * modules/poll-tests (test_poll_LDADD): New variable.
46636         * NEWS: Document the change.
46637
46638 2008-09-29  Bruno Haible  <bruno@clisp.org>
46639
46640         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46641         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46642         ARPA_INET_H directly.
46643         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46644
46645 2008-09-28  Bruno Haible  <bruno@clisp.org>
46646
46647         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46648         from gl_HEADER_SYS_SOCKET.
46649         (gl_HEADER_SYS_SOCKET): Invoke it.
46650         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46651
46652 2008-09-28  Bruno Haible  <bruno@clisp.org>
46653
46654         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46655         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46656         Needed on OSF/1 4.0.
46657
46658 2008-09-28  Bruno Haible  <bruno@clisp.org>
46659
46660         Override open more carefully.
46661         * lib/open.c (orig_open): New function.
46662         (rpl_open): Use orig_open instead of open.
46663         * lib/fcntl.in.h: Add special invocation convention.
46664         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46665         (gl_FUNC_OPEN): Invoke it.
46666
46667         Override freopen more carefully.
46668         * lib/freopen.c (orig_freopen): New function.
46669         (rpl_freopen): Use orig_freopen instead of freopen.
46670         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46671         (gl_FUNC_FREOPEN): Invoke it.
46672
46673         Override fopen more carefully.
46674         * lib/fopen.c (orig_fopen): New function.
46675         (rpl_fopen): Use orig_fopen instead of fopen.
46676         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46677         (gl_FUNC_FOPEN): Invoke it.
46678         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46679
46680 2008-09-28  Bruno Haible  <bruno@clisp.org>
46681
46682         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46683         SIGPIPE.
46684
46685 2008-09-28  Bruno Haible  <bruno@clisp.org>
46686
46687         * tests/test-sigaction.c (handler, main): Disable the check whether
46688         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46689         glibc systems with LinuxThreads.
46690
46691 2008-09-28  Bruno Haible  <bruno@clisp.org>
46692
46693         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46694
46695         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46696         with AIX xlc.
46697         * lib/fcntl.in.h (open): Likewise.
46698         Reported by Rainer Tammer <tammer@tammer.net>.
46699
46700 2008-09-28  Bruno Haible  <bruno@clisp.org>
46701
46702         * modules/posix_spawnp-tests: New file.
46703         * tests/test-posix_spawn.c: New file.
46704         * tests/test-posix_spawn.in.sh: New file.
46705
46706         New module 'posix_spawnp'.
46707         * modules/posix_spawnp: New file.
46708         * lib/spawnp.c: New file, from GNU libc with modifications.
46709         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46710
46711         New module 'posix_spawn'.
46712         * modules/posix_spawn: New file.
46713         * lib/spawn.c: New file, from GNU libc with modifications.
46714         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46715
46716         New module 'posix_spawnattr_destroy'.
46717         * modules/posix_spawnattr_destroy: New file.
46718         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46719         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46720         module.
46721
46722         New module 'posix_spawnattr_setsigmask'.
46723         * modules/posix_spawnattr_setsigmask: New file.
46724         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46725         modifications.
46726         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46727         new module.
46728
46729         New module 'posix_spawnattr_getsigmask'.
46730         * modules/posix_spawnattr_getsigmask: New file.
46731         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46732         modifications.
46733         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46734         new module.
46735
46736         New module 'posix_spawnattr_setsigdefault'.
46737         * modules/posix_spawnattr_setsigdefault: New file.
46738         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46739         modifications.
46740         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46741         new module.
46742
46743         New module 'posix_spawnattr_getsigdefault'.
46744         * modules/posix_spawnattr_getsigdefault: New file.
46745         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46746         modifications.
46747         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46748         new module.
46749
46750         New module 'posix_spawnattr_setschedpolicy'.
46751         * modules/posix_spawnattr_setschedpolicy: New file.
46752         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46753         modifications.
46754         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46755         new module.
46756
46757         New module 'posix_spawnattr_getschedpolicy'.
46758         * modules/posix_spawnattr_getschedpolicy: New file.
46759         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46760         modifications.
46761         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46762         new module.
46763
46764         New module 'posix_spawnattr_setschedparam'.
46765         * modules/posix_spawnattr_setschedparam: New file.
46766         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46767         modifications.
46768         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46769         new module.
46770
46771         New module 'posix_spawnattr_getschedparam'.
46772         * modules/posix_spawnattr_getschedparam: New file.
46773         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46774         modifications.
46775         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46776         new module.
46777
46778         New module 'posix_spawnattr_setpgroup'.
46779         * modules/posix_spawnattr_setpgroup: New file.
46780         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46781         modifications.
46782         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46783         module.
46784
46785         New module 'posix_spawnattr_getpgroup'.
46786         * modules/posix_spawnattr_getpgroup: New file.
46787         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46788         modifications.
46789         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46790         module.
46791
46792         New module 'posix_spawnattr_setflags'.
46793         * modules/posix_spawnattr_setflags: New file.
46794         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46795         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46796         module.
46797
46798         New module 'posix_spawnattr_getflags'.
46799         * modules/posix_spawnattr_getflags: New file.
46800         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46801         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46802         module.
46803
46804         New module 'posix_spawnattr_init'.
46805         * modules/posix_spawnattr_init: New file.
46806         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46807         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46808         module.
46809
46810         New module 'posix_spawn_file_actions_destroy'.
46811         * modules/posix_spawn_file_actions_destroy: New file.
46812         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46813         modifications.
46814         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46815         the new module.
46816
46817         New module 'posix_spawn_file_actions_addopen'.
46818         * modules/posix_spawn_file_actions_addopen: New file.
46819         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46820         modifications.
46821         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46822         the new module.
46823
46824         New module 'posix_spawn_file_actions_adddup2'.
46825         * modules/posix_spawn_file_actions_adddup2: New file.
46826         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46827         modifications.
46828         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46829         the new module.
46830
46831         New module 'posix_spawn_file_actions_addclose'.
46832         * modules/posix_spawn_file_actions_addclose: New file.
46833         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46834         modifications.
46835         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46836         the new module.
46837
46838         New module 'posix_spawn_file_actions_init'.
46839         * modules/posix_spawn_file_actions_init: New file.
46840         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46841         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46842         new module.
46843
46844         New module 'posix_spawn-internal'.
46845         * modules/posix_spawn-internal: New file.
46846         * lib/spawn_int.h: New file, from GNU libc with modifications.
46847         * lib/spawni.c: New file, from GNU libc with modifications.
46848         * m4/posix_spawn.m4: New file.
46849
46850         New module 'spawn'.
46851         * modules/spawn: New file.
46852         * lib/spawn.in.h: New file, from GNU libc with modifications.
46853         * m4/spawn_h.m4: New file.
46854         * doc/posix-headers/spawn.texi: Mention the new module.
46855
46856 2008-09-28  Bruno Haible  <bruno@clisp.org>
46857
46858         * modules/sched-tests: New file.
46859         * tests/test-sched.c: New file.
46860
46861         New module 'sched'.
46862         * modules/sched: New file.
46863         * lib/sched.in.h: New file.
46864         * m4/sched_h.m4: New file.
46865         * doc/posix-headers/sched.texi: Mention the new module.
46866
46867 2008-09-27  Eric Blake  <ebb9@byu.net>
46868
46869         Fix previous patch, and tweak references to $0.
46870         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46871         (func_version, func_gnulib_dir): Don't call this program
46872         gnulib-tool.
46873         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46874         with using $0 in function.
46875         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46876         (func_fatal_error): Reuse the name the user invoked us with.
46877
46878 2008-09-27  Bruno Haible  <bruno@clisp.org>
46879
46880         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46881         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46882         (gl_ICONV_H): Not here.
46883         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46884         instead of assigning ICONV_H directly.
46885
46886         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46888         WCHAR_H directly.
46889
46890 2008-09-27  Bruno Haible  <bruno@clisp.org>
46891
46892         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46893         * modules/arpa_inet (Depends-on): Add link-warning.
46894         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46895         * modules/unistd (Makefile.am): Likewise.
46896
46897 2008-09-26  Bruno Haible  <bruno@clisp.org>
46898
46899         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46900         variables.
46901         (func_version): Essentially copied from gnulib-tool.
46902         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46903         func_readlink): Copied from gnulib-tool.
46904
46905 2008-09-26  Bruno Haible  <bruno@clisp.org>
46906
46907         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46908         invoking git-version-gen.
46909
46910 2008-09-26  Bruno Haible  <bruno@clisp.org>
46911
46912         * posix-modules: Update to directory names changed on 2008-01-19.
46913         Remove commas in output before splitting into words. No more need to
46914         avoid 'ftruncate' since 2007-02-19.
46915
46916 2008-09-26  Bruno Haible  <bruno@clisp.org>
46917
46918         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46919
46920 2008-09-26  Bruno Haible  <bruno@clisp.org>
46921
46922         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46923         * modules/fwriteerror (Depends-on): Add errno.
46924
46925 2008-09-26  Bruno Haible  <bruno@clisp.org>
46926
46927         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46928         * tests/test-vc-list-files-cvs.sh: Likewise.
46929
46930 2008-09-26  Bruno Haible  <bruno@clisp.org>
46931
46932         * doc/posix-headers/sys_resource.texi: Reorder items.
46933
46934 2008-09-26  Jim Meyering  <meyering@redhat.com>
46935
46936         fts: tweak inode comparison function
46937         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
46938         inode numbers, as documented.
46939
46940         fts: sort dirent entries on inode number before traversing
46941         This avoids a quadratic, seek-related performance penalty when
46942         operating on a directory containing many entries (measurable at 10k;
46943         3.5 hours at 2 million entries with a cold cache) on certain types
46944         of file systems, including ext3 and ext4, but not tmpfs.
46945         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
46946         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
46947         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
46948         (fs_handles_readdir_ordered_dirents_efficiently): New function.
46949         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
46950         (fts_build): Set the stat.st_ino member from D_INO.
46951         If it is likely to be useful, sort dirent entries on inode number.
46952
46953         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
46954         and the struct statfs.f_type member.
46955         * modules/fts (Depends-on): Add d-ino.
46956
46957 2008-09-26  Bruno Haible  <bruno@clisp.org>
46958
46959         * modules/sigpipe-die (Depends-on): Add sigpipe.
46960
46961         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
46962         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
46963         and GNULIB_STDIO_H_SIGPIPE are set.
46964         * lib/stdio-write.c: New file.
46965         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
46966         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46967         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46968         REPLACE_STDIO_WRITE_FUNCS.
46969         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
46970         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46971         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46972         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46973         * modules/stdio (Files): Add lib/stdio-write.c.
46974         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
46975         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
46976         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
46977         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
46978         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
46979         REPLACE_FPRINTF_POSIX.
46980         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
46981         REPLACE_PRINTF_POSIX.
46982         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
46983         REPLACE_VFPRINTF_POSIX.
46984         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
46985         REPLACE_VPRINTF_POSIX.
46986         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
46987         SIGPIPE issue.
46988         * doc/posix-functions/fputc.texi: Likewise.
46989         * doc/posix-functions/fputs.texi: Likewise.
46990         * doc/posix-functions/fwrite.texi: Likewise.
46991         * doc/posix-functions/printf.texi: Likewise.
46992         * doc/posix-functions/putc.texi: Likewise.
46993         * doc/posix-functions/putchar.texi: Likewise.
46994         * doc/posix-functions/puts.texi: Likewise.
46995         * doc/posix-functions/vfprintf.texi: Likewise.
46996         * doc/posix-functions/vprintf.texi: Likewise.
46997
46998         * modules/safe-write (Depends-on): Add write.
46999
47000         * modules/sigpipe-tests: New file.
47001         * tests/test-sigpipe.c: New file.
47002         * tests/test-sigpipe.sh: New file.
47003
47004         * modules/write: New file.
47005         * lib/unistd.in.h: Include <sys/types.h>.
47006         (write): New declaration.
47007         * lib/write.c: New file.
47008         * m4/write.m4: New file.
47009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47010         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47011         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47012         GNULIB_WRITE, REPLACE_WRITE.
47013         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47014         and the SIGPIPE issue.
47015
47016         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47017         (raise): New declaration.
47018         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47019         (ext_signal): New function.
47020         (rpl_raise): New function.
47021         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47022         GNULIB_SIGNAL_H_SIGPIPE.
47023         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47024         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47025
47026         * modules/sigpipe: New file.
47027         * m4/sigpipe.m4: New file.
47028
47029 2008-09-25  Derek Price  <derek@ximbiot.com>
47030             Bruno Haible  <bruno@clisp.org>
47031
47032         * gnulib-tool (func_import): Report all license incompatibilities, not
47033         just the first one.
47034
47035 2008-09-25  Bruno Haible  <bruno@clisp.org>
47036
47037         * gnulib-tool (func_import): When computing the edits, consider not
47038         only the Makefile.ams that exist but also those that will be generated.
47039
47040 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47041
47042         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47043         fixes gnulib-tool --test warning about duplicate dependency.
47044
47045 2008-09-25  Bruno Haible  <bruno@clisp.org>
47046
47047         * gnulib-tool: Don't ask the user to perform edits in the generated
47048         Makefile.ams.
47049         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47050         apply to the Makefile.am being generated.
47051         (func_emit_tests_Makefile_am): Execute edits that apply to the
47052         Makefile.am being generated.
47053         (func_import): Setup list of Makefile.am edits before emitting the
47054         Makefile.ams, not at the end.
47055         (func_create_testdir): Update.
47056         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47057
47058 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47059
47060         * gnulib-tool (func_import): Store the --tests-base option in the
47061         comment in gnulib-cache.m4.
47062
47063 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47064
47065         * NEWS: Document increased portability that sys_select now provides.
47066
47067         * lib/sys_select.in.h: Install select wrapper.
47068         * lib/sys_socket.in.h: Use more descriptive name when there is no
47069         select wrapper.
47070         * lib/winsock-select.c: New.
47071         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47072         Require gl_HEADER_SYS_SOCKET.
47073         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47074         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47075         * tests/test-sys_select.c: Add functional tests.
47076
47077 2008-09-24  Eric Blake  <ebb9@byu.net>
47078
47079         open, fopen: close fd leak in last patch
47080         * lib/open.c (rpl_open): Close fd before returning error.
47081         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47082         * doc/posix-functions/open.texi (open): Document that Irix also
47083         has the bug.
47084         * doc/posix-functions/fopen.texi (fopen): Likewise.
47085         Reported by Paolo Bonzini.
47086
47087 2008-09-24  Bruno Haible  <bruno@clisp.org>
47088
47089         Ensure that a filename ending in a slash cannot be used to access a
47090         non-directory.
47091         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47092         to check whether it's really a directory.
47093         * lib/fopen.c: Include fcntl.h, unistd.h.
47094         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47095         and fdopen().
47096         * modules/fopen (Depends-on): Add unistd.
47097         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47098         * tests/test-fopen.c (main): Likewise.
47099         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47100         * doc/posix-functions/fopen.texi: Likewise.
47101         Reported by Eric Blake.
47102
47103 2008-09-23  Eric Blake  <ebb9@byu.net>
47104
47105         c-stack: avoid compiler optimizations when provoking overflow
47106         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47107         recursion harder to optimize, to ensure a stack overflow occurs.
47108         * tests/test-c-stack.c (recurse): Likewise.
47109         Borrowed from libsigsegv.
47110
47111         c-stack: work around Irix sigaltstack bug
47112         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47113         whether sigaltstack uses wrong end of stack_t (copied in part from
47114         libsigsegv).
47115         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47116         Irix bug, without requiring an over-allocation.
47117         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47118         bug.
47119
47120         fopen: document mingw bug on directories
47121         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47122         not allowing a stream visiting a directory, even though reading
47123         from such a stream is not portable.
47124
47125 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47126
47127         * lib/poll.c: Rewrite.
47128         * modules/poll: Depend on alloca.
47129
47130 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47131
47132         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47133         instead define prototypes for a full set of wrappers.  Ensure
47134         that Cygwin does not use the compatibility code, which is only
47135         for MinGW.
47136         * lib/winsock.c: New.
47137         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47138         * modules/sys_socket: Add lib/winsock.c.
47139
47140         * modules/poll-tests: Add errno and perror.
47141         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47142
47143 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47144
47145         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47146
47147 2008-09-23  Bruno Haible  <bruno@clisp.org>
47148
47149         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47150         * doc/glibc-functions/*: Likewise.
47151
47152 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47153
47154         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47155         success.
47156
47157 2008-09-22  Eric Blake  <ebb9@byu.net>
47158             Bruno Haible  <bruno@clisp.org>
47159
47160         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47161         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47162         supply %A but mishandle pseudo-NaN.
47163         Reported by Simon Josefsson.
47164
47165 2008-09-21  Bruno Haible  <bruno@clisp.org>
47166
47167         * tests/test-lock.c (main): Tweak skip message.
47168         * tests/test-tls.c (main): Likewise.
47169
47170 2008-09-21  Bruno Haible  <bruno@clisp.org>
47171
47172         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47173         whether 'struct sigaction' has sa_sigaction here...
47174         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47175         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47176
47177 2008-09-21  Bruno Haible  <bruno@clisp.org>
47178
47179         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47180         section.
47181         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47182         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47183         the new section.
47184         (Support for obsolete systems lacking POSIX:2001): New section.
47185         (String handling <string.h>): Move strdup to the new section.
47186         Suggested by Simon Josefsson and Paolo Bonzini.
47187
47188 2008-09-21  Bruno Haible  <bruno@clisp.org>
47189
47190         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47191         exponents in %e and %g results on 'long double'. Needed for mingw's
47192         improved *printf functions.
47193         * tests/test-vasprintf-posix.c (test_function): Likewise.
47194         * tests/test-snprintf-posix.h (test_function): Likewise.
47195         * tests/test-sprintf-posix.h (test_function): Likewise.
47196         Reported by Eric Blake.
47197
47198 2008-09-21  Bruno Haible  <bruno@clisp.org>
47199
47200         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47201         * tests/test-sprintf-posix.h (test_function): Likewise.
47202
47203 2008-09-21  Bruno Haible  <bruno@clisp.org>
47204
47205         * modules/getpass (Depends-on): Add strdup-posix.
47206
47207         New module 'strdup-posix'.
47208         * modules/strdup-posix: New file.
47209         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47210         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47212         REPLACE_STRDUP.
47213         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47214         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47215         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47216         strdup-posix.
47217
47218         * modules/strdup (Depends-on): Remove malloc-posix.
47219
47220 2008-09-20  Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47223         Wildenhues.
47224
47225 2008-09-20  Bruno Haible  <bruno@clisp.org>
47226
47227         Ensure that wint_t gets defined on IRIX 5.3.
47228         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47229         * lib/wctype.in.h (wint_t): Likewise.
47230         (__wctype_wint_t): Remove type.
47231         (isw*): Use wint_t instead of __wctype_wint_t.
47232         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47233         * modules/wchar (Files): Add m4/wint_t.m4.
47234         (Makefile.am): Substitute HAVE_WINT_T.
47235         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47236         * tests/test-wctype.c: Check that wint_t is defined.
47237         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47238         * doc/posix-headers/wctype.texi: Likewise.
47239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47240
47241 2008-09-18  Bruno Haible  <bruno@clisp.org>
47242
47243         * gnulib-tool (func_exit): Update comment.
47244
47245 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47246
47247         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47248         assumes strdup exists and does not depend on strdup to return
47249         ENOMEM on out of memory conditions.
47250
47251 2008-09-18  Bruno Haible  <bruno@clisp.org>
47252
47253         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
47254         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47255         digits for the exponent.
47256
47257 2008-09-18  Jim Meyering  <meyering@redhat.com>
47258             Bruno Haible  <bruno@clisp.org>
47259
47260         * lib/vasnprintf.c (decimal_point_char): Define also if
47261         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47262
47263 2008-09-16  Bruno Haible  <bruno@clisp.org>
47264         and Eric Blake  <ebb9@byu.net>
47265
47266         vasnprintf: support Irix 5.3
47267         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47268         that mishandle long double infinity.
47269         Reported by Tom G. Christensen.
47270
47271 2008-09-16  Bruno Haible  <bruno@clisp.org>
47272
47273         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47274         Solaris 9.
47275         * doc/glibc-functions/alphasort.texi: Likewise.
47276         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47277
47278 2008-09-16  Jim Meyering  <meyering@redhat.com>
47279
47280         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47281         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47282         a umask modification leak out of a subshell.  Otherwise, the
47283         opensolaris /bin/sh would be accepted and thus cause unwarranted
47284         failures in the coreutils test suite.
47285
47286 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47287
47288         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47289         to succeed.
47290
47291 2008-09-16  Jim Meyering  <meyering@redhat.com>
47292
47293         avoid spurious test failure when library is built without ACL support
47294         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47295         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47296         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47297         * tests/test-copy-acl.sh: Likewise.
47298
47299 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47300
47301         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47302         based on character occurrence counts.
47303
47304 2008-09-15  Eric Blake  <ebb9@byu.net>
47305
47306         tests: avoid some compiler warnings
47307         * tests/test-memchr.c (main): Pass NULL indirectly.
47308         * tests/test-closein.c (main): Avoid unused variable.
47309
47310 2008-09-15  Bruno Haible  <bruno@clisp.org>
47311
47312         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47313         are missing on OpenBSD 4.0 individually.
47314         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47315
47316 2008-09-15  Bruno Haible  <bruno@clisp.org>
47317
47318         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47319         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47320         * doc/posix-functions/perror.texi: Likewise.
47321         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47322         is missing.
47323         Reported by Eric Blake.
47324
47325         * lib/errno.in.h: Use replacement values >= 2000.
47326         Reported by Eric Blake.
47327
47328 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47329
47330         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47331         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47332         limit.
47333         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47334         compareseq was aborted.
47335
47336 2008-09-14  Bruno Haible  <bruno@clisp.org>
47337
47338         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47339         yvec_edit_count.
47340         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47341         (fstrcmp_bounded): Simplify result computation accordingly.
47342
47343 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47344
47345         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47346         (fstrcmp): Define in terms of fstrcmp_bounded.
47347         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47348         lower_bound argument.
47349         Return quickly if the result is certainly < lower_bound.
47350         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47351
47352 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47353
47354         * lib/diffseq.h (EARLY_ABORT): New macro.
47355         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47356         evaluates to true.
47357
47358 2008-09-14  Bruno Haible  <bruno@clisp.org>
47359
47360         * modules/perror-tests: New file.
47361         * tests/test-perror.sh: New file.
47362         * tests/test-perror.c: New file.
47363
47364         New module 'perror'.
47365         * lib/stdio.in.h (perror): New declaration.
47366         * lib/perror.c: New file.
47367         * m4/perror.m4: New file.
47368         * modules/perror: New file.
47369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47370         * doc/posix-functions/perror.texi: Mention the perror module.
47371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47372         REPLACE_PERROR.
47373         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47374         REPLACE_PERROR.
47375
47376 2008-09-14  Bruno Haible  <bruno@clisp.org>
47377
47378         * modules/stdio (Makefile.am): Reorder to match the order in
47379         lib/stdio.in.h.
47380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47381
47382 2008-09-13  Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47385
47386 2008-09-13  Bruno Haible  <bruno@clisp.org>
47387
47388         Extend strerror to cover the added errno values.
47389         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47390         (rpl_strerror): Provide error messages for the added errno values and
47391         for the WSA* values.
47392         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47393         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47394         strerror.
47395         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47396         * modules/strerror (Depends-on): Add errno.
47397         * doc/posix-functions/strerror.texi: Document the change.
47398         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47399         and EOVERFLOW.
47400
47401 2008-09-13  Bruno Haible  <bruno@clisp.org>
47402
47403         * modules/EOVERFLOW: Remove file.
47404         * m4/eoverflow.m4: Remove file.
47405         * modules/EOVERFLOW-tests: Remove file.
47406         * tests/test-EOVERFLOW.c: Remove file.
47407         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47408         * modules/ftell (Depends-on): Likewise.
47409         * modules/getdelim (Depends-on): Likewise.
47410         * modules/getugroups (Depends-on): Likewise.
47411         * modules/poll (Depends-on): Likewise.
47412         * modules/snprintf (Depends-on): Likewise.
47413         * modules/sprintf-posix (Depends-on): Likewise.
47414         * modules/vasnprintf (Depends-on): Likewise.
47415         * modules/vasprintf (Depends-on): Likewise.
47416         * modules/vfprintf-posix (Depends-on): Likewise.
47417         * modules/vsnprintf (Depends-on): Likewise.
47418         * modules/vsprintf-posix (Depends-on): Likewise.
47419         * modules/xvasprintf (Depends-on): Likewise.
47420         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47421         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47422         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47423         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47424         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47425         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47426         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47427         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47428         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47429         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47430         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47431         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47432         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47433         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47434         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47435         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47436         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47437         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47438         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47439         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47440         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47441         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47442         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47443         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47444         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47445         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47446         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47447         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47448         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47449         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47450         * MODULES.html.sh: Remove EOVERFLOW.
47451         * NEWS: Mention the change.
47452
47453 2008-09-13  Bruno Haible  <bruno@clisp.org>
47454
47455         * modules/errno-tests: New file.
47456         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47457
47458         * lib/errno.in.h: New file.
47459         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47460         * modules/errno: New file.
47461         * doc/posix-headers/errno.texi: Update documentation.
47462         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47463
47464 2008-09-13  Bruno Haible  <bruno@clisp.org>
47465
47466         * tests/test-poll.c: Use #if for native Windows, rather than testing
47467         __MSVCRT__.
47468
47469 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47470             Bruno Haible  <bruno@clisp.org>
47471
47472         * lib/glob.c: Don't include <pwd.h> on native Windows.
47473         (WINDOWS32): New macro.
47474         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47475
47476 2008-09-13  Bruno Haible  <bruno@clisp.org>
47477
47478         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47479         (ETIMEDOUT): Remove macro.
47480         (glthread_cond_timedwait_multithreaded): New declaration.
47481         (glthread_cond_timedwait): Use it.
47482         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47483         (glthread_cond_timedwait_multithreaded): New function.
47484
47485 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47486
47487         * modules/poll-tests: Do not check for io.h.
47488         * tests/test-poll.c: Check for __MSVCRT__ instead.
47489
47490 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47491
47492         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47493         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47494         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47495
47496 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47497
47498         * modules/poll-tests: New.
47499         * tests/test-poll.c: New.
47500
47501 2008-09-12  Eric Blake  <ebb9@byu.net>
47502
47503         frexp: test for NetBSD failure on -0.0
47504         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47505         not all, bugs from NetBSD 3.0 have been fixed.
47506         * doc/posix-functions/frexp.texi (frexp): Document bug.
47507         Reported by Thomas Klausner.
47508
47509         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47510         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47511         literal -0.0.
47512         Reported by Jonathan C. Patschke <jp@centtech.com>.
47513
47514 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47515
47516         * lib/glthread/cond.h: Use dummy implementation also if
47517         USE_WIN32_THREADS.
47518
47519 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47520
47521         * modules/fnmatch-posix (License): Change to LGPLv2+.
47522         * modules/fnmatch-gnu (License): Likewise.
47523
47524 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47525
47526         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47527
47528 2008-09-11  Jim Meyering  <meyering@redhat.com>
47529
47530         * users.txt: Add gtk-vnc.
47531
47532 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47533
47534         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47535         rotate amounts.
47536
47537         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47538         required for 16-bit and 8-bit rotates.
47539         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47540         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47541         UINT8_MAX instead of hard-coded constants.
47542         Suggested by Paul Eggert.
47543
47544 2008-09-07  Bruno Haible  <bruno@clisp.org>
47545
47546         * tests/test-striconveh.c (main): Check behaviour when converting from
47547         UTF-7.
47548
47549         Make striconveh work better with stateful encodings.
47550         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47551         that iconv does not increment the inptr when returning -1/EINVAL.
47552
47553 2008-09-07  Bruno Haible  <bruno@clisp.org>
47554
47555         * build-aux/config.rpath: Update according to libtool-2.2.6.
47556         * build-aux/config.libpath: Likewise.
47557
47558 2008-09-06  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47561         * lib/freadptr.c (freadptr): Likewise.
47562         * lib/freadseek.c (freadptrinc): Likewise.
47563         Reported by Simon Josefsson.
47564
47565 2008-09-06  Bruno Haible  <bruno@clisp.org>
47566
47567         * modules/freadptr (License): Change to LGPLv2+.
47568         * modules/freadseek (License): Likewise.
47569         Suggested by Eric Blake.
47570
47571         * modules/memchr2 (License): Change to LGPLv2+.
47572         Approved by Eric Blake.
47573
47574 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47575             Bruno Haible  <bruno@clisp.org>
47576
47577         Make gnulib-tool work with native 'sed' on AIX.
47578         * gnulib-tool (sed_noop): New variable.
47579         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47580         func_add_or_update, func_create_testdir): Use it to initialize sed
47581         script variables.
47582         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47583
47584 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47585             Bruno Haible  <bruno@clisp.org>
47586
47587         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47588         also works after #include directives.
47589
47590 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
47591
47592         getdate.y: reject an out-of-range timezone value
47593         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47594         the range [-24...+24].  When specified with only one or two digits,
47595         * tests/test-getdate.c: Tests for the fix.
47596         * doc/getdate.texi: Document this change.
47597
47598 2008-09-03  Bruno Haible  <bruno@clisp.org>
47599
47600         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47601
47602 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47603
47604         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47605         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47606         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47607         Blake <ebb9@byu.net>.
47608
47609         * tests/test-bitrotate.c: Add more test vectors.
47610
47611 2008-09-02  Eric Blake  <ebb9@byu.net>
47612
47613         vasnprintf-posix: handle large precision via %.*d
47614         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47615         when handling it ourselves.
47616         * tests/test-vasnprintf-posix.c (test_function): Add test.
47617         * tests/test-snprintf-posix.h (test_function): Likewise.
47618         * tests/test-sprintf-posix.h (test_function): Likewise.
47619         * tests/test-vasprintf-posix.c (test_function): Likewise.
47620         Reported by Alain Guibert.
47621
47622 2008-09-01  Eric Blake  <ebb9@byu.net>
47623
47624         c-stack: make configure-time check more robust
47625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47626         successful sigaction call.
47627         Reported by Tom G. Christensen.
47628
47629 2008-09-01  Bruno Haible  <bruno@clisp.org>
47630
47631         New module 'findprog-lgpl'.
47632         * modules/findprog-lgpl: New file.
47633         * lib/findprog-lgpl.c: New file.
47634         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47635         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47636         to decide whether to use strdup or xstrdup, concatenated_filename or
47637         xconcatenated_filename.
47638
47639 2008-09-01  Bruno Haible  <bruno@clisp.org>
47640
47641         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47642         'xconcat-filename' (GPL).
47643         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47644         (License): Change to LGPLv2+.
47645         * modules/xconcat-filename: New file.
47646         * lib/concat-filename.h (concatenated_filename): Change specification.
47647         (xconcatenated_filename): New declaration.
47648         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47649         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47650         memory situations.
47651         * lib/xconcat-filename.c: New file.
47652         * NEWS: Mention the change.
47653         * lib/findprog.c: Include concat-filename.h, not filename.h.
47654         (find_in_path): Use xconcatenated_filename instead of
47655         concatenated_filename.
47656         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47657         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47658         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47659         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47660         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47661         instead of concatenated_filename.
47662         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47663         (execute_java_class): Use xconcatenated_filename instead of
47664         concatenated_filename.
47665         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47666         * modules/javacomp (Depends-on): Likewise.
47667         * modules/javaexec (Depends-on): Likewise.
47668
47669 2008-09-01  Bruno Haible  <bruno@clisp.org>
47670
47671         Split module 'filename' into 'filename' and 'concat-filename'.
47672         * modules/filename: Keep only lib/filename.h.
47673         (License): Change to LGPLv2+.
47674         * modules/concat-filename: New file, extracted from modules/filename.
47675         * lib/filename.h (concatenated_filename): Remove declaration.
47676         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47677         * lib/concat-filename.c: Include concat-filename.h.
47678         * NEWS: Mention the change.
47679
47680 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47681
47682         * lib/bitrotate.h (rotl8, rotr8): Add.
47683
47684         * modules/bitrotate (configure.ac): Need
47685         AC_REQUIRE([AC_C_INLINE]).
47686         (Description): Mention stdint.h.  Reported by Bruno Haible
47687         <bruno@clisp.org>.
47688
47689         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47690         Paolo Bonzini <bonzini@gnu.org>.
47691
47692 2008-08-31  Bruno Haible  <bruno@clisp.org>
47693
47694         Assume Solaris specific bi-arch conventions on Solaris systems.
47695         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47696         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47697         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47698         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47699         like acl_libdirstem.
47700         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47701         acl_libdirstem.
47702         * NEWS: Mention the change.
47703         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47704
47705 2008-08-31  Jim Meyering  <meyering@redhat.com>
47706
47707         * lib/strftime.h: Add comments describing the two added arguments.
47708
47709         remove duplicate #include directives
47710         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47711         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47712
47713 2008-08-31  Bruno Haible  <bruno@clisp.org>
47714
47715         New module 'sigpipe-die'.
47716         * modules/sigpipe-die: New file.
47717         * lib/sigpipe-die.h: New file.
47718         * lib/sigpipe-die.c: New file.
47719         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47720
47721 2008-08-31  Bruno Haible  <bruno@clisp.org>
47722
47723         Don't override previously installed signal handlers.
47724         * lib/fatal-signal.c (saved_sigactions): New variable.
47725         (uninstall_handlers): Reset the signal to the saved handler, not
47726         to SIG_DFL (except when ignored).
47727         (install_handlers): Save the previous handlers.
47728
47729 2008-08-30  Bruno Haible  <bruno@clisp.org>
47730
47731         * gnulib-tool (func_reset_sigpipe): New function.
47732         (func_get_automake_snippet, func_modules_transitive_closure,
47733         func_import): Invoke it before a join command that reads from stdin,
47734         to avoid "echo: write error: Broken pipe" error messages on stderr.
47735         Reported by Sam Steingold <sds@gnu.org>.
47736
47737 2008-08-30  Bruno Haible  <bruno@clisp.org>
47738
47739         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47740         Code copied from m4/open.m4.
47741         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47742         access and the filename ends in a slash. Code copied from lib/open.c.
47743         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47744         * tests/test-fopen.c (main): Check against bug with trailing slash.
47745
47746 2008-08-29  Bruno Haible  <bruno@clisp.org>
47747
47748         Avoid some "gcc -pedantic" warnings.
47749         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47750         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47751         * lib/dirent.in.h: Likewise.
47752         * lib/fcntl.in.h: Likewise.
47753         * lib/float.in.h: Likewise.
47754         * lib/iconv.in.h: Likewise.
47755         * lib/inttypes.in.h: Likewise.
47756         * lib/locale.in.h: Likewise.
47757         * lib/math.in.h: Likewise.
47758         * lib/netinet_in.in.h: Likewise.
47759         * lib/search.in.h: Likewise.
47760         * lib/signal.in.h: Likewise.
47761         * lib/stdarg.in.h: Likewise.
47762         * lib/stdint.in.h: Likewise.
47763         * lib/stdio.in.h: Likewise.
47764         * lib/stdlib.in.h: Likewise.
47765         * lib/string.in.h: Likewise.
47766         * lib/strings.in.h: Likewise.
47767         * lib/sys_select.in.h: Likewise.
47768         * lib/sys_socket.in.h: Likewise.
47769         * lib/sys_stat.in.h: Likewise.
47770         * lib/sys_time.in.h: Likewise.
47771         * lib/sysexits.in.h: Likewise.
47772         * lib/time.in.h: Likewise.
47773         * lib/unistd.in.h: Likewise.
47774         * lib/wchar.in.h: Likewise.
47775         * lib/wctype.in.h: Likewise.
47776         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47777         * modules/fchdir (Makefile.am): Likewise.
47778         * modules/fcntl (Makefile.am): Likewise.
47779         * modules/float (Makefile.am): Likewise.
47780         * modules/iconv_open (Makefile.am): Likewise.
47781         * modules/inttypes (Makefile.am): Likewise.
47782         * modules/locale (Makefile.am): Likewise.
47783         * modules/math (Makefile.am): Likewise.
47784         * modules/netinet_in (Makefile.am): Likewise.
47785         * modules/search (Makefile.am): Likewise.
47786         * modules/signal (Makefile.am): Likewise.
47787         * modules/stdarg (Makefile.am): Likewise.
47788         * modules/stdint (Makefile.am): Likewise.
47789         * modules/stdio (Makefile.am): Likewise.
47790         * modules/stdlib (Makefile.am): Likewise.
47791         * modules/string (Makefile.am): Likewise.
47792         * modules/strings (Makefile.am): Likewise.
47793         * modules/sys_select (Makefile.am): Likewise.
47794         * modules/sys_socket (Makefile.am): Likewise.
47795         * modules/sys_stat (Makefile.am): Likewise.
47796         * modules/sys_time (Makefile.am): Likewise.
47797         * modules/sysexits (Makefile.am): Likewise.
47798         * modules/time (Makefile.am): Likewise.
47799         * modules/unistd (Makefile.am): Likewise.
47800         * modules/wchar (Makefile.am): Likewise.
47801         * modules/wctype (Makefile.am): Likewise.
47802         Reported by Reuben Thomas <rrt@sc3d.org>.
47803
47804 2008-08-29  Bruno Haible  <bruno@clisp.org>
47805
47806         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47807         any more.
47808
47809 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47810
47811         * MODULES.html.sh (Misc): Add bitrotate.
47812
47813         * modules/bitrotate: New file.
47814
47815         * lib/bitrotate.h: New file.
47816
47817         * modules/bitrotate-tests: New file.
47818
47819         * tests/test-bitrotate.c: New file.
47820
47821         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47822         on the bitrotate module.
47823
47824         * lib/arctwo.c: Use new bitrotate module.
47825
47826 2008-08-29  Jim Meyering  <meyering@redhat.com>
47827
47828         bootstrap: merge changes from coreutils
47829         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47830         of copied files.  Remove a kludge, now that this is fixed.
47831         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47832         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47833         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47834
47835 2008-08-29  Bruno Haible  <bruno@clisp.org>
47836
47837         * MODULES.html.sh: Remove --cvs-urls option.
47838
47839 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47840
47841         maint.mk: adjust to file name change
47842         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47843
47844 2008-08-28  Jim Meyering  <meyering@redhat.com>
47845
47846         * modules/getndelim2 (License): Relicense to LGPLv2+.
47847         Approved by Richard Stallman for the version of 1995, and by
47848         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47849
47850 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47851
47852         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47853         dummy if one is not available.  Do not touch them if
47854         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47855         (getc_maybe_unlocked): New.
47856         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47857
47858 2008-08-26  Eric Blake  <ebb9@byu.net>
47859
47860         doc/INSTALL: resync from autoconf
47861         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47862         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47863         moving...
47864         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47865         * INSTALL: Regenerate.
47866         * INSTALL.ISO: New file.
47867         * INSTALL.UTF-8: Likewise.
47868
47869 2008-08-26  Jim Meyering  <meyering@redhat.com>
47870
47871         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47872         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47873         these definitions conditional, so that they may be overridden, too.
47874
47875 2008-08-26  Bruno Haible  <bruno@clisp.org>
47876
47877         Generate INSTALL file variants with prettier quotes.
47878         * doc/Makefile (INSTALL_PRELUDE): New macro.
47879         (INSTALL): Use it.
47880         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47881
47882 2008-08-26  Bruno Haible  <bruno@clisp.org>
47883
47884         Run makeinfo in an English locale.
47885         * doc/Makefile (MAKEINFO): New variable.
47886
47887 2008-08-26  Bruno Haible  <bruno@clisp.org>
47888
47889         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47890         Suggested by Eric Blake.
47891
47892 2008-08-25  Bruno Haible  <bruno@clisp.org>
47893
47894         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47895
47896 2008-08-25  Eric Blake  <ebb9@byu.net>
47897
47898         c-stack: test that stack overflow can be caught
47899         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47900         that platform allows handling stack overflow; at least OS/2 EMX
47901         has sigaltstack, but crashes before transferring control to
47902         handler on stack overflow.
47903         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47904         check for HAVE_STACK_OVERFLOW_HANDLING.
47905         Reported by Elbert Pol.
47906
47907 2008-08-25  Bruno Haible  <bruno@clisp.org>
47908
47909         * doc/posix-functions/strftime.texi: Fix description of strftime
47910         module.
47911
47912 2008-08-24  Bruno Haible  <bruno@clisp.org>
47913
47914         * tests/uniwidth/test-uc_width2.c: New file.
47915         * tests/uniwidth/test-uc_width2.sh: New file.
47916         * modules/uniwidth/width-tests (Files): Add the new files.
47917         (TESTS): Add uniwidth/test-uc_width2.sh.
47918         (TESTS_ENVIRONMENT): New variable.
47919         (check_PROGRAMS): Add test-uc_width2.
47920         (test_uc_width2_SOURCES): New variable.
47921
47922         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47923         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47924         not 0x00AB.
47925         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47926
47927 2008-08-22  Eric Blake  <ebb9@byu.net>
47928
47929         test-lock, test-tls: mention why a test is skipped
47930         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
47931         skipped.
47932         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
47933
47934         count-one-bits: relax license
47935         * modules/count-one-bits (License): Relicense to LGPLv2+.
47936         Suggested by Ludovic Courtès, approved by Ben Pfaff.
47937
47938 2008-08-22  Andreas Schwab  <schwab@suse.de>
47939
47940         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
47941         Remove spurious space in assignment.
47942
47943 2008-08-21  Simon Josefsson  <simon@josefsson.org>
47944
47945         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
47946         Paul Eggert <eggert@CS.UCLA.EDU>.
47947
47948 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
47949
47950         * modules/gettext: Add m4/threadlib.m4.
47951
47952 2008-08-19  Eric Blake  <ebb9@byu.net>
47953
47954         test-c-stack: fix compilation failure on FreeBSD 5.0
47955         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
47956         headers before <sys/resource.h>.
47957         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
47958         the bug.
47959         Reported by Nelson H. F. Beebe.
47960
47961         strverscmp: migrate from "strverscmp.h" to <string.h>
47962         * modules/string (Makefile.am): Add new hooks.
47963         * modules/strverscmp (Files): Remove strverscmp.h.
47964         (Depends-on): Add string.
47965         (configure.ac): Add indicator.
47966         (Include): Mention new header.
47967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
47968         defaults.
47969         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
47970         results.
47971         * lib/strverscmp.h: Delete.
47972         * lib/string.in.h (strverscmp): Provide declaration, when needed.
47973         * tests/test-strverscmp.c (includes): Adjust client.
47974         * lib/check-version.c (includes): Likewise.
47975         * NEWS: Document the change.
47976
47977         strverscmp: add unit test
47978         * modules/strverscmp-tests: New file.
47979         * tests/test-strverscmp.c: Likewise.
47980
47981 2008-08-19  Simon Josefsson  <simon@josefsson.org>
47982
47983         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
47984         regarding Windows crypto stuff, from Mono.
47985
47986 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
47987
47988         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
47989         if present, for intel RND.  Return error on failures.
47990
47991 2008-08-18  Ben Pfaff  <blp@gnu.org>
47992
47993         gitlog-to-changelog: give better diagnostic for failed pipe-open
47994         * build-aux/gitlog-to-changelog: Improve error message: suggest
47995         that the version of Git may be too old.
47996
47997 2008-08-18  Simon Josefsson  <simon@josefsson.org>
47998
47999         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48000         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48001
48002 2008-08-18  Bruno Haible  <bruno@clisp.org>
48003
48004         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48005         pthread_in_use().
48006
48007 2008-08-18  Bruno Haible  <bruno@clisp.org>
48008
48009         * lib/glthread/threadlib.c: Include <pthread.h>.
48010
48011 2008-08-18  Bruno Haible  <bruno@clisp.org>
48012
48013         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48014         glthread_recursive_lock_* macros.
48015         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48016         Fix syntax error.
48017
48018 2008-08-18  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/glthread/thread.c: Avoid forcing a context switch right after
48021         thread creation.
48022
48023 2008-08-17  Bruno Haible  <bruno@clisp.org>
48024
48025         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48026         * lib/glthread/thread.h: Provide Win32 specific implementation.
48027         * modules/thread (Files): Add lib/glthread/thread.c.
48028         (Depends-on): Add lock.
48029         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48030
48031 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48032
48033         New module 'yield'.
48034         * modules/yield: New file.
48035         * lib/glthread/yield.h: New file.
48036         * m4/yield.m4: New file.
48037         * MODULES.html.sh (Multithreading): Add yield.
48038
48039 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48040
48041         New module 'thread'.
48042         * modules/thread: New file.
48043         * lib/glthread/thread.h: New file.
48044         * m4/thread.m4: New file.
48045         * MODULES.html.sh (Multithreading): Add thread.
48046
48047 2008-08-17  Bruno Haible  <bruno@clisp.org>
48048
48049         * lib/glthread/lock.h: Include <stdlib.h> always.
48050         * lib/glthread/tls.h: Likewise.
48051         * lib/glthread/cond.h: Likewise.
48052
48053 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48054
48055         New module 'cond'.
48056         * modules/cond: New file.
48057         * lib/glthread/cond.h: New file.
48058         * lib/glthread/cond.c: New file.
48059         * m4/cond.m4: New file.
48060         * MODULES.html.sh (Multithreading): Add cond.
48061
48062 2008-08-16  Eric Blake  <ebb9@byu.net>
48063
48064         c-stack: fix regression on Irix 5.3 from 2008-06-21
48065         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48066         sa_sigaction...
48067         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48068         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48069         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48070         * modules/signal (Makefile.am): Use the value.
48071         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48072         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48073         * doc/posix-headers/signal.texi (signal.h): Document this
48074         portability issue.
48075         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48076         Reported by Tom G. Christensen.
48077
48078 2008-08-17  Bruno Haible  <bruno@clisp.org>
48079
48080         New module 'threadlib'.
48081         * modules/threadlib: New file.
48082         * lib/glthread/threadlib.c: New file, extracted from
48083         lib/glthread/lock.c.
48084         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48085         functions.
48086         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48087         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48088         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48089         macros.
48090         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48091         (gl_DISABLE_THREADS): Remove macro.
48092         * modules/lock (Files): Remove build-aux/config.rpath.
48093         (Depends-on): Remove havelib. Add threadlib.
48094         (configure.ac-early): Remove section.
48095         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48096         * modules/tls (Depends-on): Remove lock. Add threadlib.
48097         (Link): New section, copied from threadlib.
48098         * MODULES.html.sh (Multithreading): Add threadlib.
48099
48100 2008-08-14  Bruno Haible  <bruno@clisp.org>
48101
48102         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48103         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48104         glthread_rwlock_unlock, glthread_rwlock_destroy,
48105         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48106         glthread_recursive_lock_destroy): Define as macros always.
48107         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48108         glthread_lock_lock.
48109         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48110         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48111         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48112         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48113         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48114         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48115         (glthread_recursive_lock_lock_func): Renamed from
48116         glthread_recursive_lock_lock.
48117         (glthread_recursive_lock_unlock_func): Renamed from
48118         glthread_recursive_lock_unlock.
48119         (glthread_recursive_lock_destroy_func): Renamed from
48120         glthread_recursive_lock_destroy.
48121
48122 2008-08-14  Bruno Haible  <bruno@clisp.org>
48123
48124         * lib/glthread/lock.h: Renamed from lib/lock.h.
48125         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48126         * lib/glthread/tls.h: Renamed from lib/tls.h.
48127         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48128         * lib/fstrcmp.c: Update includes.
48129         * lib/strsignal.c: Update includes.
48130         * modules/lock (Files, Makefile.am): Update.
48131         (Include): Change to "glthread/lock.h".
48132         * modules/tls (Files, Makefile.am): Update.
48133         (Include): Change to "glthread/tls.h".
48134         * tests/test-lock.c: Update includes.
48135         * tests/test-tls.c: Update includes.
48136         * NEWS: Mention the renamed header files.
48137
48138 2008-08-11  Jim Meyering  <meyering@redhat.com>
48139
48140         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48141
48142 2008-08-11  Eric Blake  <ebb9@byu.net>
48143
48144         test-c-stack: avoid C99-ism
48145         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48146         before statement.
48147         Reported by Alain Guibert.
48148
48149 2008-08-10  Jim Meyering  <meyering@redhat.com>
48150
48151         ensure that return value of uinttostr et al are not ignored
48152         * lib/inttostr.h (__GNUC_PREREQ): Define.
48153         (__attribute_warn_unused_result__): Define.
48154         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48155
48156 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48157
48158         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48159         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48160
48161 2008-08-07  Jim Meyering  <meyering@redhat.com>
48162
48163         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48164
48165         * modules/mkstemp (License): Relicense under LGPLv2+.
48166         * modules/tempname (License): Likewise.
48167
48168 2008-08-06  Bruno Haible  <bruno@clisp.org>
48169
48170         * lib/poll.c (poll): Further micro-optimization.
48171
48172 2008-08-06  Jim Meyering  <meyering@redhat.com>
48173
48174         inet_pton.c: use locale-independent tolower
48175         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48176         (inet_pton6): Use c_tolower rather than tolower.
48177         * modules/inet_pton (Depends-on): Add c-ctype.
48178
48179 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48180
48181         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48182         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48183
48184 2008-08-06  Jim Meyering  <meyering@redhat.com>
48185
48186         * modules/inet_pton (License): Relicense under LGPLv2+.
48187
48188 2008-08-03  Bruno Haible  <bruno@clisp.org>
48189
48190         Additional non-aborting API for lock and tls.
48191         * lib/lock.h: Include <errno.h>.
48192         (glthread_lock_init): New macro/function.
48193         (gl_lock_init): Define as wrapper around glthread_lock_init.
48194         (glthread_lock_lock): New macro/function.
48195         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48196         (glthread_lock_unlock): New macro/function.
48197         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48198         (glthread_lock_destroy): New macro/function.
48199         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48200         (glthread_rwlock_init): New macro/function.
48201         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48202         (glthread_rwlock_rdlock): New macro/function.
48203         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48204         (glthread_rwlock_wrlock): New macro/function.
48205         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48206         (glthread_rwlock_unlock): New macro/function.
48207         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48208         (glthread_rwlock_destroy): New macro/function.
48209         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48210         (glthread_recursive_lock_init): New macro/function.
48211         (gl_recursive_lock_init): Define as wrapper around
48212         glthread_recursive_lock_init.
48213         (glthread_recursive_lock_lock): New macro/function.
48214         (gl_recursive_lock_lock): Define as wrapper around
48215         glthread_recursive_lock_lock.
48216         (glthread_recursive_lock_unlock): New macro/function.
48217         (gl_recursive_lock_unlock): Define as wrapper around
48218         glthread_recursive_lock_unlock.
48219         (glthread_recursive_lock_destroy): New macro/function.
48220         (gl_recursive_lock_destroy): Define as wrapper around
48221         glthread_recursive_lock_destroy.
48222         (glthread_once): New macro/function.
48223         (gl_once): Define as wrapper around glthread_once.
48224         Update function declarations.
48225         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48226         glthread_rwlock_init. Return error code.
48227         (glthread_rwlock_rdlock_multithreaded): Renamed from
48228         glthread_rwlock_rdlock. Return error code.
48229         (glthread_rwlock_wrlock_multithreaded): Renamed from
48230         glthread_rwlock_wrlock. Return error code.
48231         (glthread_rwlock_unlock_multithreaded): Renamed from
48232         glthread_rwlock_unlock. Return error code.
48233         (glthread_rwlock_destroy_multithreaded): Renamed from
48234         glthread_rwlock_destroy. Return error code.
48235         (glthread_recursive_lock_init_multithreaded): Renamed from
48236         glthread_recursive_lock_init. Return error code.
48237         (glthread_recursive_lock_lock_multithreaded): Renamed from
48238         glthread_recursive_lock_lock. Return error code.
48239         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48240         glthread_recursive_lock_unlock. Return error code.
48241         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48242         glthread_recursive_lock_destroy. Return error code.
48243         (glthread_once_call): Make static.
48244         (glthread_once_multithreaded): Renamed from glthread_once.
48245         * lib/tls.h: Include <errno.h>.
48246         (glthread_tls_key_init): New macro/function.
48247         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48248         (glthread_tls_set): New macro/function.
48249         (gl_tls_set): Define as wrapper around glthread_tls_set.
48250         (glthread_tls_key_destroy): New macro/function.
48251         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48252         Update function declarations.
48253         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48254         glthread_tls_get.
48255         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48256
48257 2008-08-04  Eric Blake  <ebb9@byu.net>
48258
48259         gnumakefile: use space, not TAB, outside of targets
48260         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48261
48262 2008-08-02  Jim Meyering  <meyering@redhat.com>
48263
48264         getdate.y: avoid locale-dependent date parsing failure
48265         In Turkish locales, getdate would fail to recognize keywords
48266         containing a lowercase "i".  The solution is not to rely on
48267         locale-sensitive case-conversion.
48268         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48269         (lookup_word): Use c_toupper in place of toupper.
48270         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48271         Reported by Vefa Bicakci <bicave@superonline.com> in
48272         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48273         * modules/getdate (Depends-on): Add c-ctype.
48274
48275 2008-08-02  Bruno Haible  <bruno@clisp.org>
48276
48277         * gnulib-tool (func_import): When updating or creating a .gitignore
48278         file, prepend each added line with a slash, and ignore leading slashes
48279         from the existing lines.
48280         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48281
48282 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48283
48284         Portability fix for GNU make 3.79.1.
48285         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48286         versions do not understand.
48287
48288 2008-08-01  Bruno Haible  <bruno@clisp.org>
48289
48290         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48291         * tests/test-isnanf.h (zero): New variable.
48292         (main): Avoid literal -0.0f.
48293         * tests/test-isnand.h (zero): New variable.
48294         (main): Avoid literal -0.0.
48295         * tests/test-isnanl.h (zero): New variable.
48296         (main): Avoid literal -0.0L.
48297         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48298         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48299         -0.0, -0.0L.
48300         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48301         (test_signbitd): Avoid literal -0.0.
48302         (test_signbitl): Avoid literal -0.0L.
48303         * tests/test-ceilf1.c (zero): New variable.
48304         (main): Avoid literal -0.0f.
48305         * tests/test-ceill.c (zero): New variable.
48306         (main): Avoid literal -0.0L.
48307         * tests/test-floorf1.c (zero): New variable.
48308         (main): Avoid literal -0.0f.
48309         * tests/test-floorl.c (zero): New variable.
48310         (main): Avoid literal -0.0L.
48311         * tests/test-roundf1.c (zero): New variable.
48312         (main): Avoid literal -0.0f.
48313         * tests/test-round1.c (zero): New variable.
48314         (main): Avoid literal -0.0.
48315         * tests/test-roundl.c (zero): New variable.
48316         (main): Avoid literal -0.0L.
48317         * tests/test-truncf1.c (zero): New variable.
48318         (main): Avoid literal -0.0f.
48319         * tests/test-trunc1.c (zero): New variable.
48320         (main): Avoid literal -0.0.
48321         * tests/test-truncl.c (zero): New variable.
48322         (main): Avoid literal -0.0L.
48323         * tests/test-frexp.c (zero): New variable.
48324         (main): Avoid literal -0.0.
48325         * tests/test-frexpl.c (zero): New variable.
48326         (main): Avoid literal -0.0L.
48327         * tests/test-ldexpl.c (zero): New variable.
48328         (main): Avoid literal -0.0L.
48329         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48330         (zerod, zerol): New variables.
48331         (test_function): Avoid literals -0.0, -0.0L.
48332         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48333         (zerod, zerol): New variables.
48334         (test_function): Avoid literals -0.0, -0.0L.
48335         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48336         (zerod, zerol): New variables.
48337         (test_function): Avoid literals -0.0, -0.0L.
48338         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48339         (zerod, zerol): New variables.
48340         (test_function): Avoid literals -0.0, -0.0L.
48341         * tests/test-strtod.c (zero): New variable.
48342         (main): Avoid literal -0.0.
48343         Reported by Jonathan C. Patschke <jp@centtech.com>.
48344
48345 2008-07-31  Jim Meyering  <meyering@redhat.com>
48346
48347         sha256.h: correct definition of SHA224_DIGEST_SIZE
48348         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48349         Reported by Paulie Pena IV <paulie4@gmail.com>.
48350         Define as 224 / 8, rather than as a literal.
48351         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48352         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48353         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48354
48355 2008-07-31  Bruno Haible  <bruno@clisp.org>
48356
48357         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48358         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48359         Reported by Jonathan Patschke <jp@centtech.com>.
48360
48361 2008-07-31  Bruno Haible  <bruno@clisp.org>
48362
48363         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48364         Reported by Paolo Bonzini <bonzini@gnu.org>.
48365
48366 2008-07-30  Eric Blake  <ebb9@byu.net>
48367
48368         test-strtod: allow compilation without -lm
48369         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48370         Reported by Dennis Clarke <blastwave@gmail.com>.
48371
48372 2008-07-28  Jim Meyering  <meyering@redhat.com>
48373
48374         bootstrap: work also when there are no .po files in po/
48375         * build-aux/bootstrap (update_po_files): Complete the change
48376         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48377
48378 2008-07-27  Jim Meyering  <meyering@redhat.com>
48379
48380         * users.txt: Add zile.
48381
48382 2008-07-26  Ben Pfaff  <blp@gnu.org>
48383
48384         Add missing dependencies on new m4/exponent[fdl].m4 files.
48385         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48386         * modules/isnand-nolibm: Add m4/exponentd.m4.
48387         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48388         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48389         m4/isnan[fdl].m4, because the macros actually used moved.
48390         Reported by Jim Meyering.
48391
48392 2008-07-14  Ben Pfaff  <blp@gnu.org>
48393
48394         Add isinf module.
48395         * lib/isinf.c: New file.
48396         * lib/math.in.h: Define isinf macro if we have decided to replace
48397         it.
48398         * m4/isinf.m4: New file.
48399         * m4/math_h.m4: Initialize and substitute variables for isinf
48400         module.
48401         * modules/isinf: New file.
48402         * modules/isinf-tests: New file.
48403         * modules/math: Add substitutions for new module.
48404         * tests/test-isinf.c: New file.
48405         * doc/posix-functions/isinf.texi: Mention new module.
48406         * MODULES.html.sh: Mention new module.
48407
48408 2008-07-14  Ben Pfaff  <blp@gnu.org>
48409
48410         Factor out some macros for use by additional modules.
48411         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48412         exponentf.m4.
48413         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48414         exponentd.m4.
48415         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48416         file exponentl.m4.
48417         * m4/exponentf.m4: New file.
48418         * m4/exponentd.m4: New file.
48419         * m4/exponentl.m4: New file.
48420         * modules/isnanf: Use new file m4/exponentf.m4.
48421         * modules/isnand: Use new file m4/exponentd.m4.
48422         * modules/isnanl: Use new file m4/exponentl.m4.
48423
48424 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48425
48426         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48427         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48428         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48429         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48430
48431         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48432         readlink on platforms without PATH_MAX.
48433
48434 2008-07-21  Eric Blake  <ebb9@byu.net>
48435
48436         Warn, not fail, on stale version.
48437         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48438
48439         Don't allow installation with stale devel version number.
48440         * top/GNUmakefile (_is-install-target): New macro.
48441         (_curr-ver): Forbid installation with stale version number.
48442
48443 2008-07-20  Bruno Haible  <bruno@clisp.org>
48444
48445         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48446         TESTS_ENVIRONMENT.
48447         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48448
48449 2008-07-20  Bruno Haible  <bruno@clisp.org>
48450
48451         * lib/c-stack.h (c_stack_action): Add documentation.
48452         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48453
48454 2008-07-20  Bruno Haible  <bruno@clisp.org>
48455
48456         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48457         * modules/readlink (License): Likewise.
48458
48459 2008-07-17  Eric Blake  <ebb9@byu.net>
48460
48461         * modules/c-stack (Link): Fix typo.
48462
48463         Make c-stack use libsigsegv, when available.
48464         * modules/c-stack (Depends-on): Add libsigsegv.
48465         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48466         needed.
48467         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48468         (segv_handler, overflow_handler, c_stack_action)
48469         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48470         implementation when libsigsegv is available, but only when using
48471         the library is necessary.
48472         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48473         comment, explaining why XSI check fails on Linux.
48474         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48475         * tests/test-c-stack2.sh: Tweak skip message.
48476         * NEWS: Document new link-time requirements.
48477
48478 2008-07-16  Eric Blake  <ebb9@byu.net>
48479
48480         c-stack: Expose false positives when not using libsigsegv.
48481         * modules/c-stack-tests (Files): Expand test.
48482         * tests/test-c-stack.c (main): Add means to conditionally trigger
48483         non-overflow SIGSEGV.
48484         * tests/test-c-stack2.sh: New file.
48485
48486 2008-07-14  Bruno Haible  <bruno@clisp.org>
48487
48488         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48489         Reported by Eric Blake.
48490
48491 2008-07-14  Sam Steingold  <sds@gnu.org>
48492             Bruno Haible  <bruno@clisp.org>
48493
48494         New module libsigsegv.
48495         * modules/libsigsegv: New file.
48496         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48497         modifications.
48498         * MODULES.html.sh (Signal handling): New section.
48499
48500 2008-07-14  Bruno Haible  <bruno@clisp.org>
48501
48502         * modules/unictype/ctype-* (Description): Add the word "function".
48503         Improves the resulting doc in MODULES.html.
48504
48505 2008-07-12  Ben Pfaff  <blp@gnu.org>
48506
48507         Add longlong module.
48508         * modules/longlong: New file.
48509
48510 2008-07-12  Bruno Haible  <bruno@clisp.org>
48511
48512         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48513         to empty.
48514
48515 2008-07-10  Ben Pfaff  <blp@gnu.org>
48516
48517         Add isnan module.
48518         * doc/posix-functions/isnan.texi: Mention new module.
48519         * lib/math.in.h: Define isnan macro if we have decided to replace
48520         it.
48521         * m4/isnan.m4: New file.
48522         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48523         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48524         also.
48525         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48526         redundancy.
48527         * m4/math_h.m4: Initialize and substitute variables for isnan
48528         module.
48529         * modules/isnan: New file.
48530         * modules/isnan-tests: New file.
48531         * modules/math: Add substitutions for new module.
48532         * tests/test-isnan.c: New file.
48533         * MODULES.html.sh: Mention new module.
48534
48535 2008-07-10  Ben Pfaff  <blp@gnu.org>
48536
48537         Add isnanf module.
48538         * lib/isnanf.m4: New file.
48539         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48540         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48541         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48542         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48543         * modules/isnanf: New file.
48544         * modules/isnanf-tests: New file.
48545         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48546         files.
48547         * tests/test-isnanf-nolibm.c: factored most of its contents into
48548         new file tests/test-isnanf.h.
48549         * tests/test-isnanf.h: New file.
48550         * tests/test-isnanf.c: New file.
48551         * MODULES.html.sh: Mention new module.
48552         * doc/glibc-functions/isnanf.texi: Mention new module.
48553
48554 2008-07-10  Ben Pfaff  <blp@gnu.org>
48555
48556         Add isnand module.
48557         * lib/isnand.h: New file.
48558         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48559         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48560         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48561         functionality also.
48562         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48563         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48564         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48565         * modules/isnand: New file.
48566         * modules/isnand-tests: New file.
48567         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48568         files.
48569         * tests/test-isnand-nolibm.c: factored most of its contents into
48570         new file tests/test-isnand.h.
48571         * tests/test-isnand.h: New file.
48572         * tests/test-isnand.c: New file.
48573         * MODULES.html.sh: Mention new module.
48574
48575 2008-07-10  Ben Pfaff  <blp@gnu.org>
48576
48577         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48578         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48579         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48580         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48581         * modules/isnanf-nolibm: Update references to renamed files.
48582         * modules/isnand-nolibm: Likewise.
48583         * modules/isnanf-nolibm-tests: Likewise.
48584         * modules/isnand-nolibm-tests: Likewise.
48585         * lib/frexp.c: Likewise.
48586         * lib/isfinite.c: Likewise.
48587         * lib/signbitd.c: Likewise.
48588         * lib/signbitf.c: Likewise.
48589         * lib/vasnprintf.c: Likewise.
48590         * tests/test-ceilf1.c: Likewise.
48591         * tests/test-ceilf2.c: Likewise.
48592         * tests/test-floorf1.c: Likewise.
48593         * tests/test-floorf2.c: Likewise.
48594         * tests/test-frexp.c: Likewise.
48595         * tests/test-round1.c: Likewise.
48596         * tests/test-round2.c: Likewise.
48597         * tests/test-roundf1.c: Likewise.
48598         * tests/test-strtod.c: Likewise.
48599         * tests/test-trunc1.c: Likewise.
48600         * tests/test-trunc2.c: Likewise.
48601         * tests/test-truncf1.c: Likewise.
48602         * tests/test-truncf2.c: Likewise.
48603         * NEWS: Mention the renamed header files.
48604
48605 2008-07-11  Jim Meyering  <meyering@redhat.com>
48606
48607         vc-list-files: make the last-resort awk code more portable
48608         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48609         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48610         does not support it.
48611
48612 2008-07-10  Eric Blake  <ebb9@byu.net>
48613
48614         Work with tar's bootstrap.
48615         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48616         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48617         an m4 comment.
48618
48619 2008-07-09  Jim Meyering  <meyering@redhat.com>
48620
48621         posix-shell.m4: fix typo that made this test malfunction
48622         * m4/posix-shell.m4: Remove capitalization in variable name.
48623
48624 2008-07-08  Bruno Haible  <bruno@clisp.org>
48625
48626         * m4/onceonly.m4: Update comments.
48627         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48628
48629 2008-07-04  Jim Meyering  <meyering@redhat.com>
48630
48631         * users.txt: Add vc-dwim.
48632         (bison, coreutils): Use the gitweb URL.
48633
48634 2008-07-03  Jim Meyering  <meyering@redhat.com>
48635
48636         * users.txt: Add libffcall.  From Sam Steingold.
48637
48638 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
48639
48640         getdate.y: do not ignore TZ with relative day, month or year offset
48641         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48642         relative-date-handling, since otherwise, the latter would clobber the
48643         sole output (an updated Start value) of the tz-handling block.
48644         * tests/test-getdate.c: Tests for the fix
48645
48646 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48647
48648         Recognize 'foo_LIBRARIES += libgnu.a'.
48649         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48650         makefile snippet has already specified an installation location,
48651         also using '+='.
48652
48653 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
48654
48655         getdate.y: factor out common actions
48656         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48657         Use them in place of open-coded actions.
48658
48659 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48660
48661         Add self-test for getdate module.
48662         * modules/getdate-tests: New file.
48663         * tests/test-getdate.c: New file.
48664
48665 2008-06-29  Bruno Haible  <bruno@clisp.org>
48666
48667         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48668         .gitignore.
48669         Reported by Sylvain Beucler <beuc@beuc.net>.
48670
48671 2008-06-29  Bruno Haible  <bruno@clisp.org>
48672
48673         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48674         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48675
48676 2008-06-29  Bruno Haible  <bruno@clisp.org>
48677
48678         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48679         EXTRA_DIST.
48680         Reported by Sylvain Beucler <beuc@beuc.net>.
48681
48682 2008-06-26  Jim Meyering  <meyering@redhat.com>
48683
48684         make several modules depend on the "open" module
48685         This provides slightly increased consistency when opening-for-write
48686         the name of a non-directory spelled with a trailing slash.
48687         * modules/chdir-safer: Likewise.
48688         * modules/chown: Likewise.
48689         * modules/clean-temp: Likewise.
48690         * modules/copy-file: Likewise.
48691         * modules/fchdir: Likewise.
48692         * modules/fcntl-safer: Likewise.
48693         * modules/pipe: Likewise.
48694         * modules/utime: Likewise.
48695         Prompted by Eric Blake and Bruno Haible.
48696
48697 2008-06-24  Andreas Schwab  <schwab@suse.de>
48698
48699         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48700         literals can be used as initializers for global variables.
48701
48702 2008-06-23  Eric Blake  <ebb9@byu.net>
48703
48704         Make gnulib-cache.m4 easier to diff.
48705         * gnulib-tool (func_import): Allow newlines when reading cached
48706         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48707
48708 2008-06-23  Bruno Haible  <bruno@clisp.org>
48709
48710         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48711         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48712         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48713         m4/signalblocking.m4.
48714         (gl_PREREQ_SIGACTION): Don't invoke it.
48715         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48716         gl_PREREQ_SIG_HANDLER_H.
48717         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48718         Don't check for sigaction here.
48719
48720 2008-06-23  Bruno Haible  <bruno@clisp.org>
48721
48722         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48723         (install_handlers): Don't set the SA_RESETHAND flag.
48724
48725 2008-06-23  Bruno Haible  <bruno@clisp.org>
48726
48727         * m4/sigaction.m4: Comment fixes.
48728         * lib/signal.in.h: Likewise.
48729
48730 2008-06-23  Eric Blake  <ebb9@byu.net>
48731
48732         Fix typo.
48733         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48734
48735         Avoid SA_ namespace.
48736         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48737         Reported by Ralf Wildenhues.
48738
48739         Avoid test failure due to SA_RESTORER.
48740         * tests/test-sigaction.c (SA_MASK): New macro.
48741         (main): Avoid failing due to extension flags being set.
48742         Reported by Jim Meyering.
48743
48744         Revert use of sig-handler.h in sigprocmask.c.
48745         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48746         it requires the existence of struct sigaction.
48747         * lib/sigprocmask.c (handler_t): Restore typedef.
48748         (rpl_signal, old_handlers): Use local type.
48749
48750 2008-06-22  Bruno Haible  <bruno@clisp.org>
48751
48752         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48753         conditionally.
48754         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48755
48756 2008-06-22  Bruno Haible  <bruno@clisp.org>
48757
48758         * doc/posix-functions/siginterrupt.texi: Move note.
48759
48760         * lib/signal.in.h (SA_RESTART): New macro.
48761         * lib/sigaction.c: Update comment.
48762
48763         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48764
48765         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48766         (gl_PREREQ_SIGPROCMASK): Invoke it.
48767         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48768
48769         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48770
48771         * lib/sigprocmask.c: Update a comment.
48772
48773 2008-06-21  Eric Blake  <ebb9@byu.net>
48774
48775         Use sigaction module rather than signal().
48776         * modules/c-stack (Depends-on): Add sigaction.
48777         * modules/fatal-signal (Depends-on): Likewise.
48778         * modules/nanosleep (Depends-on): Likewise.
48779         * modules/sigprocmask (Files): Add sig-handler.h.
48780         * modules/sigaction (Files): Likewise.
48781         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48782         Eggert.
48783         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48784         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48785         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48786         (init_fatal_signals): Likewise.
48787         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48788         (siginterrupt): Delete fallback.
48789         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48790         instead.
48791         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48792         siginterrupt.
48793
48794         New module sigaction, for mingw.
48795         * modules/sigaction: New module...
48796         * modules/sigaction-tests: ...and its test.
48797         * m4/sigaction.m4: New file.
48798         * lib/sigaction.c: Likewise.
48799         * tests/test-sigaction.c: Likewise.
48800         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48801         * modules/signal (Makefile.am): Likewise.
48802         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48803         needed.
48804         * doc/posix-headers/signal.texi (signal.h): Mention provided
48805         types.
48806         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48807         that sigaction is preferable.
48808         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48809         module.
48810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48811         sigaction.
48812
48813         Improve robustness of sigprocmask by overriding signal.
48814         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48815         is in use.
48816         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48817         (SIGKILL, SIGSTOP): Provide fallbacks.
48818         (rpl_signal): Implement.
48819         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48820         signal can be called inside handlers.
48821
48822         Fix nanosleep module on mingw.
48823         * modules/nanosleep (Depends-on): Add sys_select.
48824         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48825
48826         Fix licensing of sigprocmask.
48827         * modules/raise (License): Relicense as LGPL.
48828
48829 2008-06-21  Bruno Haible  <bruno@clisp.org>
48830
48831         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48832         result if it contains question marks.
48833         Reported by Michael Geng <linux@michaelgeng.de>.
48834
48835 2008-06-19  Bruno Haible  <bruno@clisp.org>
48836
48837         Fix CVS-ism.
48838         * doc/gnulib.texi: Include updated-stamp.texi.
48839         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48840         (updated-stamp.texi): New rule.
48841         (gnulib.info): Depend on it.
48842         * doc/.gitignore: Add updated-stamp.texi.
48843         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48844
48845 2008-06-19  Bruno Haible  <bruno@clisp.org>
48846
48847         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48848         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48849
48850 2008-06-19  Eric Blake  <ebb9@byu.net>
48851
48852         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48853         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48854         Reported by Stepan Kasal.
48855
48856 2008-06-18  Bruno Haible  <bruno@clisp.org>
48857
48858         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48859         Reported by Eric Blake.
48860
48861 2008-06-18  Eric Blake  <ebb9@byu.net>
48862
48863         Work around cygwin 1.5.25 strsignal bug.
48864         * tests/test-strsignal.c: Allow for const char *.
48865         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48866
48867 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48868
48869         * users.txt: Update URL to article and add author/date
48870         information.
48871
48872 2008-06-17  Bruno Haible  <bruno@clisp.org>
48873
48874         New macro gl_DISABLE_THREADS.
48875         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48876         if the user did not pass --enable-threads or --disable-threads option.
48877         (gl_DISABLE_THREADS): New macro.
48878         Reported by Eric Blake <ebb9@byu.net>.
48879
48880 2008-06-17  Bruno Haible  <bruno@clisp.org>
48881
48882         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48883         when the macro ignores it.
48884         Based on a patch by Eric Blake <ebb9@byu.net>.
48885
48886 2008-06-17  Bruno Haible  <bruno@clisp.org>
48887
48888         * modules/tls (License): Change to LGPLv2+.
48889         Reported by Eric Blake.
48890
48891 2008-06-17  Eric Blake  <ebb9@byu.net>
48892
48893         Simplify c-stack prerequisites.
48894         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48895         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48896         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48897         check.
48898         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48899         <sys/resource.h>.
48900
48901         Move c-stack test into testsuite.
48902         * modules/c-stack-tests: New file.
48903         * lib/c-stack.c [DEBUG]: Move test program...
48904         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48905         fail test if sigaltstack is lacking.
48906         * tests/test-c-stack.sh: New driver file.
48907
48908 2008-06-16  Eric Blake  <ebb9@byu.net>
48909
48910         Use raise module consistently.
48911         * modules/fatal-signal (Depends-on): Add raise.
48912         * modules/sigprocmask (Depends-on): Likewise.
48913         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48914         * lib/sigprocmask.c (sigprocmask): Likewise.
48915         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48916         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48917
48918         Fix compliance bug in sigpending.
48919         * lib/sigprocmask.c (sigpending): Return pending array via
48920         parameter, not return value.
48921
48922 2008-06-14  Eric Blake  <ebb9@byu.net>
48923
48924         Improve obstack-printf test code.
48925         * tests/test-obstack-printf.c (test_function): Fix comment, and
48926         simplify usage of obstack_* in macros.  Add a test for coverage.
48927         Reported by Bruno Haible.
48928
48929 2008-06-14  Bruno Haible  <bruno@clisp.org>
48930
48931         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
48932         array size as a constant, not as a const variable.
48933         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
48934         AC_USE_SYSTEM_EXTENSIONS.
48935         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48936         Test whether the obstack_printf function actually exists.
48937         * modules/obstack-printf (Depends-on): Add extensions.
48938         (Include): Remove obstack.h.
48939         * modules/obstack-printf-posix (Depends-on): Add extensions.
48940         (Include): Remove obstack.h.
48941
48942 2008-06-13  Eric Blake  <ebb9@byu.net>
48943
48944         Add obstack-printf and obstack-printf-posix modules.
48945         * modules/obstack-printf: New file.
48946         * modules/obstack-printf-posix: Likewise.
48947         * MODULES.html.sh (Misc): Mention them.
48948         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48949         Likewise.
48950         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48951         Likewise.
48952         * modules/stdio (Makefile.am): Accomodate new modules.
48953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48954         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
48955         Declare.
48956         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
48957         functions.
48958         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
48959         (gl_REPLACE_OBSTACK_PRINTF): New macros
48960         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
48961         * tests/test-obstack-printf.c: New file.
48962         * modules/obstack-printf-tests: Likewise.
48963         * modules/obstack-printf-posix-tests: Likewise.
48964
48965 2008-06-11  Bruno Haible  <bruno@clisp.org>
48966
48967         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
48968         * lib/open.c: Include errno.h.
48969         (open): Fail when attempting to write to a file that has a trailing
48970         slash.
48971         * tests/test-open.c (main): Test against trailing slash bug.
48972         * doc/posix-functions/open.texi: Mention the trailing slash bug.
48973
48974 2008-06-10  Bruno Haible  <bruno@clisp.org>
48975
48976         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
48977         for $? to work inside the trap command, with various /bin/sh-s.
48978         * tests/test-vc-list-files-cvs.sh: Likewise.
48979
48980 2008-06-10  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/acl-internal.h: Don't include gettext.h here.
48983         * lib/set-mode-acl.c: Include gettext.h here.
48984         * lib/copy-acl.c: Likewise.
48985
48986 2008-06-10  Bruno Haible  <bruno@clisp.org>
48987
48988         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
48989         * lib/wait-process.c (wait_subprocess): Likewise.
48990         * lib/execute.h (execute): Add termsigp argument.
48991         * lib/execute.c (execute): Likewise.
48992         * lib/csharpcomp.c (compile_csharp_using_pnet,
48993         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
48994         * lib/csharpexec.c (execute_csharp_using_pnet,
48995         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
48996         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
48997         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
48998         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
48999         is_jikes_present): Update.
49000         * lib/javaexec.c (execute_java_class): Update.
49001         * lib/javaversion.c (execute_and_read_line): Update.
49002         * NEWS: Document the changes.
49003         Reported by Eric Blake.
49004
49005 2008-06-10  Eric Blake  <ebb9@byu.net>
49006
49007         Add missing include.
49008         * tests/test-strstr.c (includes): Add <signal.h>.
49009         * tests/test-strcasestr.c (includes): Likewise.
49010         * tests/test-memmem.c (includes): Likewise.
49011
49012 2008-06-10  Bruno Haible  <bruno@clisp.org>
49013
49014         * lib/wait-process.c (wait_subprocess): Add an assertion.
49015
49016 2008-06-10  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49019
49020 2008-06-10  Bruno Haible  <bruno@clisp.org>
49021
49022         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49023         using alarm().
49024         * tests/test-strcasestr.c (main): Likewise.
49025         * tests/test-strstr.c (main): Likewise.
49026
49027 2008-06-09  Bruno Haible  <bruno@clisp.org>
49028
49029         Work around the Solaris 10 ACE ACLs ABI change.
49030         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49031         declare if ACL_NO_TRIVIAL is present.
49032         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49033         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49034         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49035         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49036         define if ACL_NO_TRIVIAL is present.
49037         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49038         and use the current ABI.
49039         (file_has_acl): Use same #if condition as elsewhere.
49040         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49041         in use, and use the current ABI.
49042         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49043         Reported by Jim Meyering.
49044
49045 2008-06-09  Eric Blake  <ebb9@byu.net>
49046
49047         Work around environments that (stupidly) ignore SIGALRM.
49048         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49049         before using alarm().
49050         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49051         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49052         Reported by Ian Beckwith <ianb@erislabs.net>.
49053
49054         Produce autobuild blurb earlier in log.
49055         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49056
49057 2008-06-09  Jim Meyering  <meyering@redhat.com>
49058         and OndÅ™ej Vašík  <ovasik@redhat.com>
49059
49060         utimens.c: correct kernel bug work-around
49061         OndÅ™ej Vašík found that the invalid return value of 280 indicates
49062         failure, not success, and the kernel bug we're trying to work
49063         around affects not just the utimensat call, but also the fallback
49064         futimens call.
49065         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49066         not success.
49067         [HAVE_FUTIMENS]: Use the same work-around, here.
49068
49069 2008-06-09  Jim Meyering  <meyering@redhat.com>
49070
49071         add more guards around definition of ACE_-related code
49072         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49073         ALLOW and ACE_OWNER are also defined.
49074
49075 2008-06-08  Bruno Haible  <bruno@clisp.org>
49076
49077         * lib/acl-internal.h: Add me as co-author.
49078         * lib/file-has-acl.c: Likewise.
49079         * lib/set-mode-acl.c: Likewise.
49080         * lib/copy-acl.c: Likewise.
49081
49082 2008-06-08  Bruno Haible  <bruno@clisp.org>
49083
49084         Add support for AIX ACLs.
49085         * lib/acl-internal.h (acl_nontrivial): New declaration.
49086         * lib/file-has-acl.c (acl_nontrivial): New function.
49087         (file_has_acl): Add implementation using AIX 4 ACL API.
49088         * lib/set-mode-acl.c (qset_acl): Likewise.
49089         * lib/copy-acl.c (qcopy_acl): Likewise.
49090
49091 2008-06-08  Bruno Haible  <bruno@clisp.org>
49092
49093         Add support for HP-UX ACLs.
49094         * lib/acl-internal.h (acl_nontrivial): New declaration.
49095         * lib/file-has-acl.c (acl_nontrivial): New function.
49096         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49097         * lib/set-mode-acl.c (qset_acl): Likewise.
49098         * lib/copy-acl.c (qcopy_acl): Likewise.
49099
49100 2008-06-08  Bruno Haible  <bruno@clisp.org>
49101
49102         Add support for Cygwin ACLs.
49103         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49104         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49105         the chmod_or_fchmod call.
49106         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49107
49108 2008-06-08  Bruno Haible  <bruno@clisp.org>
49109
49110         Fix bug with setuid modes in Solaris 10+ code.
49111         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49112         succeeded, when the mode contains some special bits.
49113
49114 2008-06-08  Bruno Haible  <bruno@clisp.org>
49115
49116         Add support for Solaris 7..10 ACLs.
49117         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49118         declarations.
49119         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49120         functions.
49121         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49122         * lib/set-mode-acl.c (qset_acl): Likewise.
49123         * lib/copy-acl.c (qcopy_acl): Likewise.
49124
49125 2008-06-08  Bruno Haible  <bruno@clisp.org>
49126
49127         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49128         declaration.
49129         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49130         (acl_access_nontrivial): Remove MacOS X case.
49131         (file_has_acl): Use acl_extended_nontrivial.
49132         * lib/copy-acl.c (qcopy_acl): Likewise.
49133
49134 2008-06-08  Bruno Haible  <bruno@clisp.org>
49135
49136         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49137
49138 2008-06-08  Jim Meyering  <meyering@redhat.com>
49139
49140         * modules/acl (Maintainer): Add Bruno Haible.
49141
49142 2008-06-07  Bruno Haible  <bruno@clisp.org>
49143
49144         Improve support for Tru64 ACLs.
49145         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49146         ACL on OSF/1.
49147
49148 2008-06-07  Bruno Haible  <bruno@clisp.org>
49149
49150         Add support for MacOS X ACLs.
49151         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49152         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49153         * lib/set-mode-acl.c (qset_acl): Likewise.
49154         * lib/copy-acl.c (qcopy_acl): Likewise.
49155
49156 2008-06-07  Bruno Haible  <bruno@clisp.org>
49157
49158         Fix memory leak introduced on 2008-05-22.
49159         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49160         use.
49161
49162 2008-06-07  Bruno Haible  <bruno@clisp.org>
49163
49164         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49165         to construct an empty ACL.
49166
49167 2008-06-07  Bruno Haible  <bruno@clisp.org>
49168
49169         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49170         precisely.
49171         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49172
49173 2008-06-07  Bruno Haible  <bruno@clisp.org>
49174
49175         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49176         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49177
49178 2008-06-07  Bruno Haible  <bruno@clisp.org>
49179
49180         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49181         regardless of POSIX.
49182         * doc/posix-functions/_longjmp.texi: Likewise.
49183         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49184         SystemV platform in this case.
49185
49186 2008-06-06  Eric Blake  <ebb9@byu.net>
49187
49188         Document abort() bugs.
49189         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49190
49191         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49192         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49193         sigsetjmp.
49194         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49195         siglongjmp, but only as a macro.
49196         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49197         is obsolete.
49198         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49199
49200         Tweak documentation to cover cygwin argz bugs.
49201         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49202         argz bug fix; no code change needed since no cygwin releases
49203         occurred between the last fix and the bug being tested.
49204         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49205         module and recently fixed cygwin bugs.
49206         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49207         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49208         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49209         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49210         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49211         Likewise.
49212         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49213         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49214         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49215         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49216         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49217         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49218         Likewise.
49219
49220         Avoid gcc warning on cygwin.
49221         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49222         !ACL_NO_TRIVIAL]: Avoid unused variable.
49223
49224 2008-06-05  Eric Blake  <ebb9@byu.net>
49225
49226         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49227         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49228         git-version-gen fails to come up with a version.
49229         Reported by Simon Josefsson.
49230
49231 2008-06-05  Jim Meyering  <meyering@redhat.com>
49232             Paul Eggert  <eggert@cs.ucla.edu>
49233
49234         utimens.c: work around a probable Linux kernel bug
49235         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49236         appears to be a kernel bug that causes utimensat to return 280
49237         instead of 0, indicating success.
49238
49239 2008-06-04  Bruno Haible  <bruno@clisp.org>
49240
49241         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49242         2008-06-01 commit.
49243
49244 2008-06-04  Bruno Haible  <bruno@clisp.org>
49245
49246         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49247         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49248         (file_has_acl): Use it. Save errno afterwards.
49249         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49250
49251 2008-06-03  Bruno Haible  <bruno@clisp.org>
49252
49253         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49254         draft code. Simplify #ifs.
49255         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49256         Put Solaris code after POSIX-draft code. Fix comments regarding
49257         Solaris 10, HP-UX. Mention Cygwin.
49258         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49259
49260 2008-06-03  Eric Blake  <ebb9@byu.net>
49261
49262         Provide fallback for older kernels.
49263         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49264         Provide runtime fallback if kernel lacks support.
49265         Reported by Mike Frysinger.
49266
49267 2008-06-02  Bruno Haible  <bruno@clisp.org>
49268
49269         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49270         it exists.
49271
49272 2008-06-02  Bruno Haible  <bruno@clisp.org>
49273
49274         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49275         * lib/copy-acl.c (qcopy_acl): Update comment.
49276
49277 2008-06-02  Bruno Haible  <bruno@clisp.org>
49278
49279         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49280         like ACL APIs.
49281
49282 2008-06-02  Bruno Haible  <bruno@clisp.org>
49283
49284         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49285         * tests/test-set-mode-acl.sh: Likewise.
49286         * tests/test-copy-acl.sh: Likewise.
49287         * tests/test-copy-file.sh: Likewise.
49288
49289 2008-06-02  Bruno Haible  <bruno@clisp.org>
49290
49291         * tests/test-file-has-acl.sh: Remove unused code.
49292
49293 2008-06-01  Bruno Haible  <bruno@clisp.org>
49294
49295         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49296         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49297         messages.
49298         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49299
49300 2008-06-01  Bruno Haible  <bruno@clisp.org>
49301
49302         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49303         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49304         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49305         APIs.
49306         * modules/acl-tests (configure.ac): Remove tests now contained in
49307         m4/acl.m4.
49308
49309 2008-06-02  Jim Meyering  <meyering@redhat.com>
49310
49311         announce-gen: use a better key-server host name
49312         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49313         it may be more consistently reliable.  Suggested by Werner Koch
49314         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49315
49316 2008-06-01  Bruno Haible  <bruno@clisp.org>
49317
49318         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49319         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49320
49321 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49322
49323         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49324
49325 2008-06-01  Bruno Haible  <bruno@clisp.org>
49326
49327         New ACL tests.
49328         * tests/test-file-has-acl.sh: New file.
49329         * tests/test-file-has-acl.c: New file.
49330         * tests/test-set-mode-acl.sh: New file.
49331         * tests/test-set-mode-acl.c: New file.
49332         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49333         * tests/test-copy-acl.c: New file.
49334         * modules/acl-tests: New file, based on modules/copy-file-tests.
49335         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49336         (Depends-on): Add acl-tests.
49337         (configure.ac): Remove checks.
49338         (Makefile.am): Don't create test-sameacls program here any more.
49339
49340 2008-06-01  Bruno Haible  <bruno@clisp.org>
49341
49342         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49343         * tests/test-sameacls.c: Include progname.h.
49344         (main): Invoke set_program_name. Portability fixes for MacOS X,
49345         Solaris, HP-UX.
49346
49347 2008-06-01  Bruno Haible  <bruno@clisp.org>
49348
49349         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49350         function.
49351         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49352
49353 2008-06-01  Bruno Haible  <bruno@clisp.org>
49354
49355         * modules/rpmatch (Depends-on): Add strdup.
49356
49357 2008-06-01  Bruno Haible  <bruno@clisp.org>
49358
49359         * lib/pipe.c: Include unistd-safer.h.
49360         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49361         * modules/pipe (Depends-on): Add unistd-safer.
49362
49363 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49364
49365         * modules/autobuild (configure.ac): Call AB_INIT.
49366
49367 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49368
49369         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49370         Suggested by Bruno Haible <bruno@clisp.org>.
49371
49372 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49373
49374         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49375         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49376         <bruno@clisp.org>.
49377
49378 2008-05-29  Eric Blake  <ebb9@byu.net>
49379
49380         Prefer new POSIX 200x interfaces over futimesat.
49381         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49382         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49383         when available.
49384         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49385
49386 2008-05-28  Bruno Haible  <bruno@clisp.org>
49387
49388         * modules/stpcpy (License): Change to LGPLv2+.
49389         Requested by David Lutterkort <dlutter@redhat.com>.
49390
49391 2008-05-27  Bruno Haible  <bruno@clisp.org>
49392
49393         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49394         current mingw.
49395         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49396
49397 2008-05-27  Bruno Haible  <bruno@clisp.org>
49398
49399         * modules/iconv_open (Link): New section, from module 'iconv'.
49400         * modules/striconv (Link): Likewise.
49401         * modules/striconveh (Link): Likewise.
49402         * modules/xstriconv (Link): Likewise.
49403         * modules/unicodeio (Link): Likewise.
49404         * modules/propername (Link): Likewise.
49405         Reported by Jim Meyering.
49406
49407 2008-05-26  Jim Meyering  <meyering@redhat.com>
49408
49409         sha256: do not artificially restrict buffer length to be < 2^32
49410         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49411         uint32_t to size_t.
49412         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49413         to match.
49414
49415         avoid unaligned access errors, e.g., on sparc
49416         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49417         direct access through a possibly-unaligned uint64* pointer.
49418         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49419         direct access through a possibly-unaligned uint32* pointer.
49420         Prompted by this patch from Tom "spot" Callaway:
49421         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49422
49423         sha512.c: fix typo in comment
49424         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49425
49426 2008-05-25  Bruno Haible  <bruno@clisp.org>
49427
49428         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49429         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49430         (Makefile.am): Update lib_SOURCES.
49431
49432 2008-05-25  Bruno Haible  <bruno@clisp.org>
49433
49434         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49435
49436 2008-05-25  Jim Meyering  <meyering@redhat.com>
49437
49438         useless-if-before-free: freed expr may have white-space differences
49439         * build-aux/useless-if-before-free: Recognize cases in which the
49440         freed expression differs from the tested one in embedded white
49441         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49442         $1 was used, so we can't make any regexp shy.  Improved tests now
49443         detect this.
49444
49445         useless-if-before-free: accept white space in the expression.
49446         * build-aux/useless-if-before-free: For now, any white space
49447         in the expression must be identical in the free argument.
49448
49449         useless-if-before-free: efficiency tweak
49450         * build-aux/useless-if-before-free: Make the expression-matching
49451         regexp "shy".
49452         Make the *outer* regexp shy, not the expr-matching one.
49453
49454         update code-in-comment to accept cast of free arg
49455         * build-aux/useless-if-before-free: Update regexp.
49456
49457 2008-05-25  Bruno Haible  <bruno@clisp.org>
49458
49459         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49460         * modules/copy-file-tests (Files, Makefile.am): Update.
49461         * tests/test-copy-file.c (func_test_copy): Update.
49462
49463 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49464
49465         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49466
49467 2008-05-23  Bruno Haible  <bruno@clisp.org>
49468
49469         Improve support for ACLs on OSF/1.
49470         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49471         Remove fallback for unknown flavors of ACLs.
49472
49473 2008-05-22  Bruno Haible  <bruno@clisp.org>
49474
49475         Add support for ACLs on OSF/1.
49476         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49477         replacements.
49478         (acl_free_text): New macro fallback.
49479         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49480         acl_free.
49481         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49482         acl_free_text function. Require AC_C_INLINE.
49483
49484 2008-05-22  Bruno Haible  <bruno@clisp.org>
49485
49486         Make copy_acl work on MacOS X 10.5.
49487         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49488         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49489         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49490         If MODE_INSIDE_ACL, don't assume that every system has the same text
49491         representation for ACLs as FreeBSD.
49492         * lib/copy-acl.c (copy_acl): Add support for platforms with
49493         !MODE_INSIDE_ACL.
49494         * lib/file-has-acl.c (file_has_acl): Likewise.
49495         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49496         FreeBSD, MacOS X, or IRIX, respectively.
49497
49498 2008-05-22  Bruno Haible  <bruno@clisp.org>
49499
49500         * lib/acl.h: Don't include <sys/acl.h>.
49501         (GETACLCNT): Move fallback to lib/acl-internal.h.
49502         * lib/acl-internal.h: Include <sys/acl.h> here.
49503         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49504
49505 2008-05-22  Bruno Haible  <bruno@clisp.org>
49506
49507         Split off copy_acl function to separate file.
49508         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49509         * lib/acl.c (copy_acl): Moved function to separate file.
49510         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49511         * modules/acl (Files): Add lib/copy-acl.c.
49512         (Makefiles.am): Augment lib_SOURCES.
49513
49514 2008-05-22  Bruno Haible  <bruno@clisp.org>
49515
49516         * modules/copy-file-tests: New file.
49517         * tests/test-copy-file.sh: New file.
49518         * tests/test-copy-file.c: New file.
49519         * tests/test-copy-file-sameacls.c: New file.
49520
49521 2008-05-22  Eric Blake  <ebb9@byu.net>
49522
49523         Avoid gcc warning.
49524         * tests/test-memcmp.c (main): Pass NULL indirectly.
49525
49526 2008-05-21  Bruno Haible  <bruno@clisp.org>
49527
49528         Add reference doc about ACLs.
49529         * doc/acl-resources.txt: New file.
49530         * doc/acl-cygwin.txt: New file.
49531
49532 2008-05-21  Bruno Haible  <bruno@clisp.org>
49533
49534         Avoid one more warning from gcc.
49535         * lib/vasnprintf.c (IF_LINT): Update comments.
49536         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49537
49538 2008-05-21  Jim Meyering  <meyering@redhat.com>
49539
49540         avoid a warning from gcc
49541         * lib/vasnprintf.c (IF_LINT): Define.
49542         (scale10_round_decimal_long_double):
49543         Use it to avoid a "may be used uninitialized" warning.
49544         (scale10_round_decimal_double): Likewise.
49545
49546 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49547
49548         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49549         declared.
49550
49551 2008-05-20  Bruno Haible  <bruno@clisp.org>
49552
49553         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49554         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49555
49556 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49557
49558         * modules/memcmp-tests: New file.
49559         * tests/test-memcmp.c: New file.
49560
49561 2008-05-19  Bruno Haible  <bruno@clisp.org>
49562
49563         * modules/propername (Notice, configure.ac): Put quoted "..." into
49564         --keyword option.
49565         * lib/propername.h: Update comments accordingly.
49566         Reported by Eric Blake.
49567
49568 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49569
49570         * modules/getpass-gnu (Depends-on): Add fseeko.
49571
49572 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49573
49574         * modules/base64-tests: New file.
49575
49576 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49577
49578         * lib/base64.c (base64_decode_ctx): If a decode context structure
49579         was passed in use it to ignore newlines.  If a context structure
49580         was _not_ passed in, continue to treat newlines as garbage (this
49581         is the historical behavior).  Formerly base64_decode.
49582         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49583         takes a decode context structure.
49584         * lib/base64.h (base64_decode): Macro for four-argument calls.
49585         (base64_decode_alloc): Likewise.
49586         * lib/base64.c (base64_decode_ctx): If a decode context structure
49587         was passed in use it to ignore newlines.  If a context structure
49588         was _not_ passed in, continue to treat newlines as garbage (this
49589         is the historical behavior).  Formerly base64_decode.
49590         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49591         takes a decode context structure.
49592         * lib/base64.h (base64_decode): Macro for four-argument calls.
49593         (base64_decode_alloc): Likewise.
49594
49595 2008-05-19  Jim Meyering  <meyering@redhat.com>
49596
49597         avoid a warning from gcc
49598         * lib/trim.c (IF_LINT): Define.
49599         (trim2): Use it to avoid a "may be used uninitialized" warning.
49600
49601         Fix doc typo.
49602         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49603
49604 2008-05-19  Bruno Haible  <bruno@clisp.org>
49605
49606         * doc/glibc-functions/getpass.texi: Document limits of other
49607         implementations.
49608
49609 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49610             Bruno Haible <bruno@clisp.org>
49611
49612         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49613
49614 2008-05-18  Bruno Haible  <bruno@clisp.org>
49615
49616         * modules/propername: New file, from GNU gettext.
49617         * lib/propername.h: New file, from GNU gettext.
49618         * lib/propername.c: New file, from GNU gettext.
49619         * MODULES.html.sh (Internationalization functions): Add propername.
49620
49621 2008-05-16  Jim Meyering  <meyering@redhat.com>
49622             Bruno Haible  <bruno@clisp.org>
49623
49624         Avoid some warnings from "gcc -Wshadow".
49625         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49626
49627 2008-05-15  Eric Blake  <ebb9@byu.net>
49628
49629         Extend previous patch to cygwin 1.7.0.
49630         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49631         fast implementation in cygwin >= 1.7.0.
49632         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49633         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49634
49635 2008-05-15  Bruno Haible  <bruno@clisp.org>
49636
49637         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49638         implementation in glibc >= 2.9.
49639         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49641
49642 2008-05-15  Bruno Haible  <bruno@clisp.org>
49643
49644         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49645         (Unicode string functions): Add unilbrk/*.
49646         Reported by Karl Berry.
49647
49648 2008-05-15  Eric Blake  <ebb9@byu.net>
49649
49650         Fix violation of <stdbool.h> replacement in regex.
49651         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49652         * lib/regexec.c (re_search_internal): Likewise.
49653         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49654
49655 2008-05-15  Jim Meyering  <meyering@redhat.com>
49656
49657         avoid distracting test output when git or cvs is not found
49658         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49659         * tests/test-vc-list-files-git.sh: Likewise.
49660
49661 2008-05-15  Eric Blake  <ebb9@byu.net>
49662
49663         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49664         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49665         glibc version.
49666         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49667         * doc/posix-functions/strstr.texi (strstr): Likewise.
49668         * lib/str-two-way.h (MAX): Sychronize with glibc.
49669
49670 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49671
49672         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49673         opr.ctx_type.
49674         (calc_first): Initialize constraint field.
49675         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49676         Fix grammar.
49677         (duplicate_node): Merge constraint field for all node types.
49678         (calc_eclosure_iter): Look at constraint field for all node types.
49679         * lib/regex_internal.c (create_cd_newstate): Don't look at
49680         opr.ctx_type.
49681
49682 2008-05-14  Bruno Haible  <bruno@clisp.org>
49683
49684         Help GCC to do better code generation.
49685         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49686         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49687         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49688         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49689         Declare with attribute 'malloc' if supported.
49690
49691 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49692
49693         use "echo STR|wc -c" rather than unportable "expr length STR"
49694         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49695         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49696
49697 2008-05-14  Jim Meyering  <meyering@redhat.com>
49698
49699         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49700         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49701         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49702         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49703         via Collin Lasse.
49704
49705 2008-05-14  Eric Blake  <ebb9@byu.net>
49706
49707         Avoid quadratic growth in gl_LIBSOURCES.
49708         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49709         Suggested by Bruno Haible.
49710
49711         Test xmemdup0.
49712         * modules/xmemdup0-tests: New file.
49713         * tests/test-xmemdup0.c: Likewise.
49714
49715 2008-05-13  Eric Blake  <ebb9@byu.net>
49716
49717         Split xmemdup0 into its own module.
49718         * modules/xmemdup0: New file.
49719         * lib/xmemdup0.h: Likewise.
49720         * lib/xmemdup0.c: Likewise.
49721         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49722         * lib/xalloc.h (xmemdup0): Remove.
49723         * lib/xmalloc.c (xmemdup0): Likewise.
49724
49725 2008-05-13  Eric Blake  <ebb9@byu.net>
49726             Bruno Haible  <bruno@clisp.org>
49727
49728         Reduce number of forks required during autoconf.
49729         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49730         and gl_LIBSOURCES_DIR.
49731         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49732         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49733         m4_syscmd per file.
49734         <m4_foreach_w>: Move...
49735         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49736
49737 2008-05-13  Eric Blake  <ebb9@byu.net>
49738
49739         * gnulib-tool: Fix various comment typos.
49740
49741 2008-05-12  Bruno Haible  <bruno@clisp.org>
49742
49743         Tailor the linebreaking algorithm.
49744         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49745
49746 2008-05-12  Bruno Haible  <bruno@clisp.org>
49747
49748         Update to Unicode 5.0.0.
49749         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49750         LBP_JV, LBP_JT. Redistribute values.
49751         (unilbrk_table): Change size.
49752         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49753         Unicode TR#14 rev. 22.
49754         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49755         LBP_JV, LBP_JT. Redistribute values.
49756         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49757         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49758         Update.
49759         * lib/unilbrk/lbrkprop1.h: Regenerated.
49760         * lib/unilbrk/lbrkprop2.h: Regenerated.
49761         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49762         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49763         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49764         Likewise.
49765         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49766         Likewise.
49767         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49768         result.
49769         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49770         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49771         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49772         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49773         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49774         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49775
49776 2008-05-11  Bruno Haible  <bruno@clisp.org>
49777
49778         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49779
49780 2008-05-11  Bruno Haible  <bruno@clisp.org>
49781
49782         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49783         * modules/unilbrk/gen-lbrk: New file.
49784
49785 2008-05-11  Bruno Haible  <bruno@clisp.org>
49786
49787         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49788         * m4/sha512.m4 (gl_SHA512): Likewise.
49789
49790 2008-05-11  Jim Meyering  <meyering@redhat.com>
49791
49792         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49793         * modules/crypto/sha256: New file.
49794         * modules/crypto/sha512: Likewise.
49795         * lib/sha256.c: Likewise.
49796         * lib/sha256.h: Likewise.
49797         * lib/sha512.c: Likewise.
49798         * lib/sha512.h: Likewise.
49799         * lib/u64.h: Likewise.
49800         * m4/sha256.m4: Likewise.
49801         * m4/sha512.m4: Likewise.
49802         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49803
49804 2008-05-10  Bruno Haible  <bruno@clisp.org>
49805
49806         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49807         (Input/Output <stdio.h>): Add xprintf.
49808         (Signal handling <signal.h>): Add strsignal.
49809         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49810         (Core language properties): Add func.
49811         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49812         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49813         strings.
49814         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49815         (Input/output): New section.
49816         (File system functions): Add openat-die, stat-macros.
49817         (Networking functions): Add sockets.
49818         (Unicode string functions): Add unictype/*.
49819         (Support for building libraries and executables): Add gperf.
49820         (Support for building documentation): Add agpl-3.0.
49821         (Misc): Add nocrash.
49822
49823 2008-05-10  Bruno Haible  <bruno@clisp.org>
49824
49825         * modules/unictype/gen-ctype: New file.
49826
49827 2008-05-10  Jim Meyering  <meyering@redhat.com>
49828
49829         Make chdir-safer.c more efficient on a system with no symlinks.
49830         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49831         also if ELOOP is zero.  Suggested by Bruno Haible.
49832
49833         Make chdir-safer.c slightly safer.
49834         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49835         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49836
49837         Avoid compile failure on systems without ELOOP (like mingw).
49838         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49839         Reported by Bruno Haible.
49840
49841 2008-05-10  Bruno Haible  <bruno@clisp.org>
49842
49843         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49844         (is_utf8_encoding): Use a case-insensitive comparison.
49845         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49846         streq.
49847
49848 2008-05-10  Bruno Haible  <bruno@clisp.org>
49849
49850         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49851         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49852         * lib/unilbrk/ulc-common.h (iconv_string_length,
49853         iconv_string_keeping_offsets): Remove declarations.
49854         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49855         Don't include <iconv.h>, streq.h, xsize.h.
49856         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49857         conversion.
49858         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49859         <iconv.h>, streq.h, xsize.h.
49860         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49861         conversion.
49862         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49863         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49864         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49865         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49866
49867 2008-05-10  Bruno Haible  <bruno@clisp.org>
49868
49869         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49870         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49871
49872         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49873         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49874
49875         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49876         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49877
49878         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49879         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49880
49881         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49882         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49883
49884         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49885         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49886
49887         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49888         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49889
49890         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49891         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49892
49893 2008-05-10  Bruno Haible  <bruno@clisp.org>
49894
49895         Split up 'linebreak' module.
49896         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49897         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49898         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49899         modifications.
49900         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49901         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49902         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49903         lib/linebreak.c.
49904         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49905         lib/linebreak.c.
49906         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49907         lib/linebreak.c.
49908         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49909         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49910         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49911         lib/linebreak.c.
49912         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49913         lib/linebreak.c.
49914         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49915         lib/linebreak.c.
49916         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49917         lib/linebreak.c.
49918         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49919         lib/linebreak.c.
49920         * modules/unilbrk/base: New file.
49921         * modules/unilbrk/tables: New file.
49922         * modules/unilbrk/u8-possible-linebreaks: New file.
49923         * modules/unilbrk/u16-possible-linebreaks: New file.
49924         * modules/unilbrk/u32-possible-linebreaks: New file.
49925         * modules/unilbrk/ulc-common: New file.
49926         * modules/unilbrk/ulc-possible-linebreaks: New file.
49927         * modules/unilbrk/u8-width-linebreaks: New file.
49928         * modules/unilbrk/u16-width-linebreaks: New file.
49929         * modules/unilbrk/u32-width-linebreaks: New file.
49930         * modules/unilbrk/ulc-width-linebreaks: New file.
49931         * lib/linebreak.h: Remove file.
49932         * lib/linebreak.c: Remove file.
49933         * m4/linebreak.m4: Remove file.
49934         * modules/linebreak: Remove file.
49935         * NEWS: Mention the changes.
49936
49937 2008-05-09  Eric Blake  <ebb9@byu.net>
49938
49939         Add xmemdup0.
49940         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
49941         implementation.
49942         * lib/xmalloc.c (xmemdup0): New C implementation.
49943
49944 2008-05-08  Bruno Haible  <bruno@clisp.org>
49945
49946         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
49947
49948 2008-05-07  Eric Blake  <ebb9@byu.net>
49949
49950         Support cross-compilation of <wctype.h>.
49951         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
49952         AC_CACHE_CHECK.
49953
49954 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
49955
49956         * build-aux/vc-list-files: Add support for bzr.
49957
49958 2008-05-03  Jim Meyering  <meyering@redhat.com>
49959
49960         avoid failed assertion with tight malloc
49961         * tests/test-getndelim2.c: Correct an off-by-one assertion.
49962
49963 2008-05-03  Simon Josefsson  <simon@josefsson.org>
49964
49965         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
49966         are needed from arpa/inet.h.
49967         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
49968         Reported by Bruno Haible.
49969
49970 2008-05-02  Jim Meyering  <meyering@redhat.com>
49971
49972         avoid compilation error on FreeBSD 6
49973         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
49974
49975 2008-05-01  Jim Meyering  <meyering@redhat.com>
49976
49977         useless-if-before-free: correct --help's exit status description
49978         * build-aux/useless-if-before-free (usage): Like grep, exit 0
49979         for one or more matches, etc.  Reported by Bruno Haible.
49980
49981         vc-list-files: make the stand-alone gnulib test work
49982         * modules/vc-list-files-tests (configure.ac):
49983         Define and AC_SUBST abs_aux_dir.
49984         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
49985         $(abs_top_srcdir) to each script and having each of them
49986         duplicate the work of setting PATH, set PATH here, using
49987         the new variable, abs_aux_dir instead.
49988         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
49989         * tests/test-vc-list-files-git.sh: Likewise.
49990         Reported by Bruno Haible.
49991
49992 2008-05-01  Bruno Haible  <bruno@clisp.org>
49993
49994         * lib/getndelim2.c (getndelim2): Fix newsize computation during
49995         reallocation. Rename 'done' to 'found_delimiter'.
49996
49997 2008-05-01  Jim Meyering  <meyering@redhat.com>
49998
49999         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50000         * build-aux/vc-list-files: Use `...`, not $(...).
50001
50002 2008-04-30  Jim Meyering  <meyering@redhat.com>
50003
50004         add tests for vc-list-files
50005         * modules/vc-list-files-tests: New module.
50006         * tests/test-vc-list-files-cvs.sh: New file.
50007         * tests/test-vc-list-files-git.sh: New file.
50008
50009         avoid a warning from gcc
50010         * lib/getndelim2.c (IF_LINT): Define.
50011         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50012
50013         vc-list-files: work properly with build-aux/cvsu, too
50014         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50015         to all cvs-based clauses.
50016
50017         vc-list-files: work properly in the CVS+awk case, too
50018         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50019
50020         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50021         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50022         take more than one file argument, so .  Add quotes, just in case $dir
50023         ever contains a shell meta-character.  Prompted by Soren Hansen in
50024         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50025
50026 2008-04-29  Eric Blake  <ebb9@byu.net>
50027
50028         Optimize getndelim2 to use block operations when possible.
50029         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50030         freadseek, and memchr2.
50031         * lib/getndelim2.c (getndelim2): Use them for block reads.
50032
50033 2008-04-29  Bruno Haible  <bruno@clisp.org>
50034
50035         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50036         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50037         * modules/inet_ntop (Depends-on): Add extensions.
50038         * modules/inet_pton (Depends-on): Likewise.
50039         Reported by Simon Josefsson.
50040
50041 2008-04-29  Jim Meyering  <meyering@redhat.com>
50042
50043         When the is more than one match in a block, match all of them.
50044         * build-aux/useless-if-before-free: Iterate through each block
50045         until there are no more matches.
50046
50047         Fix broken useless-if-before-free script.
50048         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50049         the expression to match cast of argument to free-like function.
50050
50051 2008-04-29  Eric Blake  <ebb9@byu.net>
50052
50053         Use new header.
50054         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50055
50056 2008-04-29  Jim Meyering  <meyering@redhat.com>
50057
50058         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50059         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50060         by gnulib to exist and to declare e.g., inet_ntop.
50061         Don't include "inet_ntop.h", now removed.
50062
50063         * m4/arpa_inet_h.m4: Remove trailing blanks.
50064
50065 2008-04-29  Eric Blake  <ebb9@byu.net>
50066
50067         Silence valgrind on safe reads beyond potential array bounds.
50068         * lib/rawmemchr.valgrind: New file.
50069         * lib/strchrnul.valgrind: Likewise.
50070         * modules/rawmemchr (Files): Distribute new file.
50071         * modules/strchrnul (Files): Likewise.
50072         Suggested by Bruno Haible.
50073
50074 2008-04-29  Bruno Haible  <bruno@clisp.org>
50075
50076         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50077         (inet_ntop, inet_pton): Change portability warning's wording.
50078         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50079         Invoke gl_CHECK_NEXT_HEADERS.
50080         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50081         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50082         set ARPA_INET_H.
50083         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50084         * modules/arpa_inet (Description): No longer only for systems that
50085         lack it.
50086         (Depends-on): Add include_next.
50087         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50088         HAVE_ARPA_INET_H.
50089
50090 2008-04-29  Jim Meyering  <meyering@redhat.com>
50091
50092         * modules/mkdir (License): Re-license as LGPLv2+.
50093
50094 2008-04-29  Bruno Haible  <bruno@clisp.org>
50095
50096         * modules/rawmemchr (Maintainer): Set to Eric.
50097         * modules/strchrnul (Maintainer): Likewise.
50098
50099 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50100
50101         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50102         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50103
50104         * modules/arpa_inet (arpa/inet.h): Use them.
50105
50106 2008-04-28  Eric Blake  <ebb9@byu.net>
50107
50108         Test getndelim2.
50109         * modules/getndelim2-tests: New file.
50110         * tests/test-getndelim2.c: Likewise.
50111         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50112         stream.
50113         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50114
50115         * MODULES.html.sh: Document new module.
50116
50117 2008-04-20  Bruno Haible  <bruno@clisp.org>
50118
50119         * lib/c-stack.c (die): Use raise.
50120         * modules/c-stack (Depends-on): Add raise.
50121
50122 2008-04-28  Bruno Haible  <bruno@clisp.org>
50123
50124         Expect rpmatch to be declared.
50125         * lib/yesno.c (rpmatch): Remove declaration.
50126
50127         Declare rpmatch.
50128         * lib/stdlib.in.h (rpmatch): New declaration.
50129         * lib/rpmatch.c: Include <stdlib.h> first.
50130         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50131         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50133         HAVE_RPMATCH.
50134         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50135         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50136         (Include): Set to <stdlib.h>.
50137         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50138         HAVE_RPMATCH.
50139         * NEWS: Document the change.
50140
50141 2008-04-28  Bruno Haible  <bruno@clisp.org>
50142
50143         Change rpmatch to use nl_langinfo when appropriate.
50144         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50145         (N_): New macro.
50146         (localized_pattern): New function/macro.
50147         (try): Remove match, nomatch arguments. Copy the pattern into safe
50148         memory before caching it.
50149         (rpmatch): Use localized_pattern. Add translator comments.
50150         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50151         Suggested by Eric Blake.
50152         * modules/rpmatch (Depends-on): Add stdbool.
50153
50154 2008-04-28  Eric Blake  <ebb9@byu.net>
50155
50156         Add rawmemchr module, matching glibc.
50157         * modules/string (Makefile.am): New indicator.
50158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50159         * lib/string.in.h (rawmemchr): Declare when appropriate.
50160         * modules/rawmemchr: New file.
50161         * m4/rawmemchr.m4: Likewise.
50162         * lib/rawmemchr.c: Likewise.
50163         * modules/rawmemchr-tests: Likewise.
50164         * tests/test-rawmemchr.c: Likewise.
50165         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50166         module.
50167         * modules/strchrnul (Depends-on): Add rawmemchr.
50168         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50169
50170         Whitespace cleanup.
50171         * tests/test-strchrnul.c: Reindent.
50172         * lib/strchrnul.c: Likewise.
50173
50174         Optimize and test strchrnul.
50175         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50176         * modules/strchrnul-tests: New file.
50177         * tests/test-strchrnul.c: Likewise.
50178
50179         Remove intprops dependency.
50180         * modules/memchr (Depends-on): Remove intprops.
50181         * modules/memrchr (Depends-on): Likewise.
50182         * modules/memchr2 (Depends-on): Likewise.
50183         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50184         * lib/memrchr.c (__memrchr): Likewise.
50185         * lib/memrchr2.c (memchr2): Likewise.
50186         Reported by Simon Josefsson.
50187
50188 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50189
50190         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50191         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50192
50193 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50194
50195         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50196
50197         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50198
50199         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50200
50201         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50202         declarations.
50203         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50204
50205         * m4/inet_pton.m4: Don't check for header files.
50206
50207         * m4/inet_ntop.m4: Don't check for header files.
50208
50209 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50210
50211         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50212         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50213         trigger for cygwin).
50214         Reported by Bruno Haible  <bruno@clisp.org>.
50215
50216 2008-04-28  Bruno Haible  <bruno@clisp.org>
50217
50218         * doc/posix-functions/strdup.texi: Mention mingw problem.
50219
50220 2008-04-27  Bruno Haible  <bruno@clisp.org>
50221
50222         * modules/stat-time-tests (Depends-on): Add sleep.
50223         * tests/test-stat-time.c (force_unlink): New function.
50224         (cleanup): Use it.
50225         (test_mtime): Remove the ctime related tests.
50226         (test_ctime): New function, containing the ctime related tests.
50227         (main): Call test_ctime, except on native Windows platforms.
50228
50229 2008-04-27  Bruno Haible  <bruno@clisp.org>
50230
50231         * lib/rpmatch.c (rpmatch): Add some comments.
50232         Reported by James Youngman <jay@gnu.org>.
50233
50234 2008-04-27  Bruno Haible  <bruno@clisp.org>
50235
50236         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50237         quiet NaNs.
50238
50239 2008-04-27  Bruno Haible  <bruno@clisp.org>
50240
50241         Make test-yesno.sh work on mingw.
50242         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50243         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50244         (main): Set stdin to binary mode.
50245         * modules/yesno-tests (Depends-on): Add binary-io.
50246
50247 2008-04-27  Bruno Haible  <bruno@clisp.org>
50248
50249         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50250         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50251         argument that lie outside the IEEE 854 domain.
50252         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50253         (gl_ISFINITE): Use it.
50254         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50255
50256 2008-04-27  Bruno Haible  <bruno@clisp.org>
50257
50258         Allow local renaming in config.h.
50259         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50260
50261 2008-04-27  Bruno Haible  <bruno@clisp.org>
50262
50263         * lib/memchr.c (__memchr): Change type of 'i'.
50264         * lib/memchr2.c (memchr2): Likewise.
50265
50266 2008-04-26  Eric Blake  <ebb9@byu.net>
50267         and Bruno Haible  <bruno@clisp.org>
50268
50269         Optimize and test memrchr.
50270         * modules/memrchr (Depends-on): Add intprops.
50271         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50272         * modules/memrchr-tests: New file.
50273         * tests/test-memrchr.c: New file.
50274
50275 2008-04-26  Bruno Haible  <bruno@clisp.org>
50276
50277         Add tentative support for DragonFly BSD.
50278         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50279         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50280         fp.
50281         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50282         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50283         * lib/fpurge.c (fpurge): Likewise.
50284         * lib/freadable.c (freaadable): Likewise.
50285         * lib/freadahead.c (freadahead): Likewise.
50286         * lib/freading.c (freading): Likewise.
50287         * lib/freadptr.c (freadptr): Likewise.
50288         * lib/freadseek.c (freadptrinc): Likewise.
50289         * lib/fseeko.c (fseeko): Likewise.
50290         * lib/fseterr.c (fseterr): Likewise.
50291         * lib/fwritable.c (fwritable): Likewise.
50292         * lib/fwriting.c (fwriting): Likewise.
50293
50294 2008-04-26  Bruno Haible  <bruno@clisp.org>
50295
50296         * lib/stdio-impl.h: New file.
50297         * lib/fbufmode.c: Include stdio-impl.h.
50298         (fbufmode): Use fp_, remove redundant #defines.
50299         * lib/fflush.c: Include stdio-impl.h.
50300         (clear_ungetc_buffer): Remove redundant #defines.
50301         * lib/fpurge.c: Include stdio-impl.h.
50302         (fpurge): Remove redundant #defines.
50303         * lib/freadable.c: Include stdio-impl.h.
50304         (freadable): Remove redundant #defines.
50305         * lib/freadahead.c: Include stdio-impl.h.
50306         (freadahead): Remove redundant #defines.
50307         * lib/freading.c: Include stdio-impl.h.
50308         (freading): Remove redundant #defines.
50309         * lib/freadptr.c: Include stdio-impl.h.
50310         (freadptr): Remove redundant #defines.
50311         * lib/freadseek.c: Include stdio-impl.h.
50312         (freadptrinc): Remove redundant #defines.
50313         * lib/fseeko.c: Include stdio-impl.h.
50314         (rpl_fseeko): Remove redundant #defines.
50315         * lib/fseterr.c: Include stdio-impl.h.
50316         (fseterr): Remove redundant #defines.
50317         * lib/fwritable.c: Include stdio-impl.h.
50318         (fwritable: Remove redundant #defines.
50319         * lib/fwriting.c: Include stdio-impl.h.
50320         (fwriting): Remove redundant #defines.
50321         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50322         * modules/fflush (Files): Likewise.
50323         * modules/fpurge (Files): Likewise.
50324         * modules/freadable (Files): Likewise.
50325         * modules/freadahead (Files): Likewise.
50326         * modules/freading (Files): Likewise.
50327         * modules/freadptr (Files): Likewise.
50328         * modules/freadseek (Files): Likewise.
50329         * modules/fseeko (Files): Likewise.
50330         * modules/fseterr (Files): Likewise.
50331         * modules/fwritable (Files): Likewise.
50332         * modules/fwriting (Files): Likewise.
50333
50334 2008-04-26  Bruno Haible  <bruno@clisp.org>
50335
50336         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50337         restore_seek_optimization, update_fpos_cache): New functions, extracted
50338         from rpl_fflush.
50339         (rpl_fflush): Use them.
50340         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50341         (gl_REPLACE_FFLUSH): Use it.
50342
50343 2008-04-26  Bruno Haible  <bruno@clisp.org>
50344
50345         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50346         on Solaris.
50347         * tests/test-xstrtoimax.sh: Likewise.
50348         * tests/test-xstrtoumax.sh: Likewise.
50349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50350
50351 2008-04-26  Bruno Haible  <bruno@clisp.org>
50352
50353         * modules/memchr-tests: New file.
50354         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50355
50356 2008-04-26  Eric Blake  <ebb9@byu.net>
50357             Bruno Haible  <bruno@clisp.org>
50358
50359         * lib/memchr.c: Include intprops.h.
50360         (__memchr): Optimize parallel detection of matching bytes. Rename local
50361         variables. Add explanatory comments.
50362
50363 2008-04-26  Bruno Haible  <bruno@clisp.org>
50364
50365         Fix module 'memchr', broken since 2000-10-28.
50366         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50367
50368 2008-04-26  Bruno Haible  <bruno@clisp.org>
50369
50370         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50371         comments.
50372
50373 2008-04-25  Eric Blake  <ebb9@byu.net>
50374
50375         Use native fstatat on cygwin 1.7.0.
50376         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50377         first.
50378
50379 2008-04-23  Eric Blake  <ebb9@byu.net>
50380
50381         Improve memchr2 performance.
50382         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50383         NUL bytes.
50384         * modules/memchr2 (Depends-on): Use intprops.h.
50385
50386 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50387
50388         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50389         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50390         <blp@cs.stanford.edu>.
50391
50392 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50393
50394         * lib/arpa_inet.in.h: New file.
50395
50396         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50397         (Makefile.am): Sed in substitute header file.
50398
50399         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50400         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50401
50402         * modules/inet_ntop (configure.ac): Use
50403         gl_ARPA_INET_MODULE_INDICATOR.
50404
50405         * modules/inet_pton (configure.ac): Use
50406         gl_ARPA_INET_MODULE_INDICATOR.
50407
50408 2008-04-22  Jim Meyering  <meyering@redhat.com>
50409
50410         * modules/verify (License): Re-license as LGPLv2+.
50411
50412 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50413
50414         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50415         parameter to void* as per POSIX standard (MinGW uses char*).
50416
50417 2008-04-21  Bruno Haible  <bruno@clisp.org>
50418
50419         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50420         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50421         Define to replacements if REPLACE_ISWCNTRL is 1.
50422         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50423         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50424         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50425         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50426         what it fixes.
50427         * doc/posix-functions/iswalpha.texi: Likewise.
50428         * doc/posix-functions/iswblank.texi: Likewise.
50429         * doc/posix-functions/iswcntrl.texi: Likewise.
50430         * doc/posix-functions/iswdigit.texi: Likewise.
50431         * doc/posix-functions/iswgraph.texi: Likewise.
50432         * doc/posix-functions/iswlower.texi: Likewise.
50433         * doc/posix-functions/iswprint.texi: Likewise.
50434         * doc/posix-functions/iswpunct.texi: Likewise.
50435         * doc/posix-functions/iswspace.texi: Likewise.
50436         * doc/posix-functions/iswupper.texi: Likewise.
50437         * doc/posix-functions/iswxdigit.texi: Likewise.
50438         Reported by Alain Guibert.
50439
50440 2008-04-21  Bruno Haible  <bruno@clisp.org>
50441
50442         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50443         Patch by Alain Guibert.
50444
50445 2008-04-21  Bruno Haible  <bruno@clisp.org>
50446
50447         Fix test failures on mingw.
50448         * tests/test-xstrtol.c (print_no_progname): New function.
50449         (main): Install it in error_print_progname hook.
50450         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50451         * tests/test-xstrtoimax.sh: Likewise.
50452         * tests/test-xstrtoumax.sh: Likewise.
50453
50454 2008-04-21  Bruno Haible  <bruno@clisp.org>
50455
50456         Fix test failure on mingw.
50457         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50458
50459 2008-04-21  Bruno Haible  <bruno@clisp.org>
50460
50461         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50462         Actually assign a value.
50463
50464 2008-04-20  Bruno Haible  <bruno@clisp.org>
50465
50466         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50467         take 2.
50468         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50469         'canonicalize-lgpl' module is also used.
50470         * lib/canonicalize-lgpl.c: Undo last change.
50471         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50472
50473 2008-04-20  Bruno Haible  <bruno@clisp.org>
50474
50475         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50476         config.h. Provide _mkdir based fallback for mingw.
50477         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50478         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50479         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50480         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50481         rather than defining mkdir in config.h.
50482         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50483         (gl_SYS_STAT_H_DEFAULTS): New macro.
50484         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50485         HAVE_IO_H any more.
50486         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50487         HAVE_DECL_MKDIR and HAVE_IO_H.
50488
50489 2008-04-20  Bruno Haible  <bruno@clisp.org>
50490
50491         * lib/isapipe.c: Port to native Windows platforms.
50492
50493 2008-04-20  Bruno Haible  <bruno@clisp.org>
50494
50495         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50496
50497 2008-04-21  Eric Blake  <ebb9@byu.net>
50498
50499         Work around preprocessors that don't handle UINTMAX_MAX.
50500         * lib/memchr2.c (memchr2): Avoid embedded #if.
50501         Reported by Alain Guibert, fix suggested by Bruno Haible.
50502
50503 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50504
50505         * doc/posix-functions/strftime.texi (strftime): Explain better
50506         Windows incompatibility.  Suggested by Micah Cowan
50507         <micah@cowan.name>.
50508
50509 2008-04-20  Bruno Haible  <bruno@clisp.org>
50510
50511         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50512         unistr/u8-mblen.
50513
50514 2008-04-20  Bruno Haible  <bruno@clisp.org>
50515
50516         Fix test failure on platforms with non-GNU iconv.
50517         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50518         (U_TO_U8): Use it, rather than u16_to_u8.
50519         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50520         units at the end of the input string.
50521         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50522
50523 2008-04-20  Bruno Haible  <bruno@clisp.org>
50524
50525         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50526         when the resulting length is 0.
50527         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50528
50529 2008-04-20  Bruno Haible  <bruno@clisp.org>
50530
50531         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50532         works.
50533         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50534
50535 2008-04-20  Bruno Haible  <bruno@clisp.org>
50536
50537         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50538         * modules/tsearch-tests (configure.ac): Test for initstate function.
50539
50540 2008-04-20  Bruno Haible  <bruno@clisp.org>
50541
50542         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50543         for nlink_t if missing.
50544         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50545
50546 2008-04-19  Bruno Haible  <bruno@clisp.org>
50547
50548         Work around snprintf bug on Linux libc5.
50549         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50550         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50551         gl_SNPRINTF_SIZE1.
50552         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50553         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50554         that test failed.
50555         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50556         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50557         * modules/snprintf (Files): Add m4/printf.m4.
50558         * modules/vsnprintf (Files): Likewise.
50559         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50560         * doc/posix-functions/vsnprintf.texi: Likewise.
50561
50562 2008-04-19  Bruno Haible  <bruno@clisp.org>
50563
50564         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50565         from 0.0058 to less than 10^-7.
50566
50567 2008-04-19  Bruno Haible  <bruno@clisp.org>
50568
50569         Fix rounding when a precision is given.
50570         * lib/vasnprintf.c (is_borderline): New function.
50571         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50572         9...9x.
50573         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50574         %e, %g.
50575         * tests/test-vasprintf-posix.c (test_function): Likewise.
50576         * tests/test-snprintf-posix.h (test_function): Likewise.
50577         * tests/test-sprintf-posix.h (test_function): Likewise.
50578         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50579         * tests/test-printf-posix.h (test_function): Likewise.
50580         * tests/test-printf-posix.output: Update.
50581         Reported by John Darrington <john@darrington.wattle.id.au> via
50582         Ben Pfaff <blp@cs.stanford.edu>.
50583
50584 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50585
50586         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50587         Suggested by Bruno Haible <bruno@clisp.org>.
50588
50589 2008-04-17  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50592         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50593         implementation.
50594         Patch by Bruce Merry <bmerry@gmail.com>.
50595
50596 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50597
50598         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50599         doesn't work under Windows.
50600
50601 2008-04-16  Bruno Haible  <bruno@clisp.org>
50602
50603         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50604         New macros.
50605         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50606         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50607         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50608         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50609         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50610         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50611         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50612         macros.
50613         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50614         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50615         Northern Sotho, Uighur.
50616
50617 2008-04-16  Bruno Haible  <bruno@clisp.org>
50618
50619         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50620         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50621         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50622         Reported by Daniel Bergström <daniel@octocode.com>.
50623
50624 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50625             Bruno Haible  <bruno@clisp.org>
50626
50627         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50628         function.
50629         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50630         New functions, mostly extracted from gl_locale_name_default.
50631         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50632
50633 2008-04-16  Eric Blake  <ebb9@byu.net>
50634
50635         Adjust strtod detection to catch glibc 2.7 bug.
50636         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50637         Reported by John Gatewood Ham.
50638
50639 2008-04-16  Bruno Haible  <bruno@clisp.org>
50640
50641         Add tentative support for Linux libc5.
50642         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50643         * lib/fpurge.c (fpurge): Likewise.
50644         * lib/freadable.c (freadable): Likewise.
50645         * lib/freadahead.c (freadahead): Likewise.
50646         * lib/freading.c (freading): Likewise.
50647         * lib/freadptr.c (freadptr): Likewise.
50648         * lib/freadseek.c (freadptrinc): Likewise.
50649         * lib/fseeko.c (rpl_fseeko): Likewise.
50650         * lib/fseterr.c (fseterr): Likewise.
50651         * lib/fwritable.c (fwritable): Likewise.
50652         * lib/fwriting.c (fwriting): Likewise.
50653         Reported by Alain Guibert <alguibert+bts@free.fr>.
50654
50655 2008-04-15  Bruno Haible  <bruno@clisp.org>
50656
50657         * modules/mathl (configure.ac): Define module indicator.
50658
50659 2008-04-15  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/logl.c (logl): Remove unused variables.
50662
50663 2008-04-15  Bruno Haible  <bruno@clisp.org>
50664
50665         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50666         fails.
50667
50668 2008-04-15  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/trim.c (trim2): Fix argument of isspace() macro.
50671
50672 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50673
50674         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50675         to 0.
50676         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50677
50678 2008-04-14  Bruno Haible  <bruno@clisp.org>
50679
50680         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50681         AC_LANG_PROGRAM argument.
50682         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50683         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50684         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50685         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50686         * m4/math_h.m4 (gl_MATH_H): Likewise.
50687         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50688         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50689         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50690         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50691         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50692         * m4/regex.m4 (gl_REGEX): Likewise.
50693         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50694         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50695         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50696         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50697         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50698         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50699         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50700         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50701
50702 2008-04-14  Jim Meyering  <meyering@redhat.com>
50703
50704         test-strtod: fix typos: s/abs/fabs/
50705         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50706
50707 2008-04-13  Bruno Haible  <bruno@clisp.org>
50708
50709         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50710         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50711         module is also used and while not building the reloc-wrapper.
50712
50713 2008-04-13  Bruno Haible  <bruno@clisp.org>
50714
50715         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50716
50717 2008-04-13  Bruno Haible  <bruno@clisp.org>
50718
50719         Fix AIX compilation failure introduced on 2008-04-02.
50720         * tests/test-frexp.c (exp): Undefine before redefining.
50721         * tests/test-frexpl.c (exp): Likewise.
50722
50723 2008-04-13  Bruno Haible  <bruno@clisp.org>
50724
50725         Work around a HP-UX stdio bug.
50726         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50727         * tests/test-ftello.c (main): Likewise.
50728         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50729         * doc/posix-functions/ftello.texi: Likewise.
50730
50731 2008-04-13  Bruno Haible  <bruno@clisp.org>
50732
50733         Make test-signbit pass on HP-UX/hppa.
50734         * tests/test-signbit.c (minus_zerol): New variable.
50735         (test_signbitl): Use it.
50736
50737 2008-04-13  Bruno Haible  <bruno@clisp.org>
50738
50739         Make truncl work on OSF/1 4.0.
50740         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50741         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50742         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50744         HAVE_DECL_TRUNCL.
50745         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50746         HAVE_DECL_TRUNCL.
50747         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50748
50749 2008-04-13  Bruno Haible  <bruno@clisp.org>
50750
50751         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50752
50753 2008-04-13  Bruno Haible  <bruno@clisp.org>
50754
50755         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50756         expression, so as to avoid HP-UX 11 cc compiler bug.
50757
50758 2008-04-13  Bruno Haible  <bruno@clisp.org>
50759
50760         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50761
50762 2008-04-13  Bruno Haible  <bruno@clisp.org>
50763
50764         * lib/git-merge-changelog.c: Remove empty declaration outside of
50765         functions.
50766
50767 2008-04-13  Bruno Haible  <bruno@clisp.org>
50768
50769         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50770
50771 2008-04-13  Bruno Haible  <bruno@clisp.org>
50772
50773         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50774         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50775         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50776         also if it exists but lacks definitions of the SHUT_* macros.
50777         * modules/sys_socket (Description): Update.
50778         Reported by Elbert Pol <e.pol@chello.nl>.
50779
50780 2008-04-13  Bruno Haible  <bruno@clisp.org>
50781
50782         * lib/localcharset.c (OS2): Don't redefine if already defined.
50783         Reported by Elbert Pol <e.pol@chello.nl>.
50784
50785 2008-04-13  Bruno Haible  <bruno@clisp.org>
50786
50787         * lib/binary-io.h [__EMX__]: Include <io.h>.
50788         Reported by Elbert Pol <e.pol@chello.nl>.
50789
50790 2008-04-12  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/fpucw.h: Enable the definitions also for x86_64.
50793         Needed for NetBSD/x86_64.
50794         Reported by Thomas Klausner <tk@giga.or.at>.
50795
50796 2008-04-12  Bruno Haible  <bruno@clisp.org>
50797
50798         * tests/test-strtod.c: Include isnand.h.
50799         (main): Use isnand instead of isnan.
50800         Reported by Jim Meyering.
50801
50802 2008-04-12  Bruno Haible  <bruno@clisp.org>
50803
50804         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50805         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50806
50807 2008-04-12  Jim Meyering  <meyering@redhat.com>
50808
50809         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50810
50811 2008-04-12  Bruno Haible  <bruno@clisp.org>
50812
50813         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50814         Reported by Elbert Pol <e.pol@chello.nl>.
50815
50816 2008-04-12  Eric Blake  <ebb9@byu.net>
50817
50818         Work around Solaris 10 math.h bug.
50819         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50820         (gl_MATH_H_DEFAULTS): Set up default.
50821         * modules/math (Makefile.am): Replace new indicators.
50822         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50823         * tests/test-math.c (main): Test this.
50824         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50825         * doc/posix-headers/math.texi (math.h): Mention bug.
50826         Reported by Nelson H. F. Beebe and Jim Meyering.
50827
50828 2008-04-11  Bruno Haible  <bruno@clisp.org>
50829
50830         Adapt to future versions of Apple GCC.
50831         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50832         Reported by Peter O'Gorman <peter@pogma.com>.
50833
50834 2008-04-11  Bruno Haible  <bruno@clisp.org>
50835
50836         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50837
50838 2008-04-11  Bruno Haible  <bruno@clisp.org>
50839
50840         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50841
50842         * modules/getaddrinfo-tests (Makefile.am): Define
50843         test_getaddrinfo_LDADD.
50844
50845 2008-04-11  Bruno Haible  <bruno@clisp.org>
50846
50847         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50848         (init): Fix syntax error.
50849         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50850         is declared.
50851
50852 2008-04-11  Bruno Haible  <bruno@clisp.org>
50853
50854         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50855         * modules/glob (Depends-on): Add stdbool.
50856
50857 2008-04-11  Bruno Haible  <bruno@clisp.org>
50858
50859         * lib/trim.c: Include <string.h>.
50860
50861 2008-04-11  Eric Blake  <ebb9@byu.net>
50862
50863         Avoid compile failure on OS/2.
50864         * lib/regex_internal.h (internal_function): Disable optimization
50865         on OS/2 (__EMX__), where it caused compiler error.
50866         Reported by Elbert Pol.
50867
50868 2008-04-11  Bruno Haible  <bruno@clisp.org>
50869
50870         Flush the standard error stream before aborting. Needed on mingw.
50871         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50872         * tests/test-array_list.c (ASSERT): Likewise.
50873         * tests/test-array_oset.c (ASSERT): Likewise.
50874         * tests/test-avltree_list.c (ASSERT): Likewise.
50875         * tests/test-avltree_oset.c (ASSERT): Likewise.
50876         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50877         * tests/test-binary-io.c (ASSERT): Likewise.
50878         * tests/test-byteswap.c (ASSERT): Likewise.
50879         * tests/test-c-ctype.c (ASSERT): Likewise.
50880         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50881         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50882         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50883         * tests/test-c-strstr.c (ASSERT): Likewise.
50884         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50885         * tests/test-canonicalize.c (ASSERT): Likewise.
50886         * tests/test-carray_list.c (ASSERT): Likewise.
50887         * tests/test-ceilf1.c (ASSERT): Likewise.
50888         * tests/test-ceilf2.c (ASSERT): Likewise.
50889         * tests/test-ceill.c (ASSERT): Likewise.
50890         * tests/test-count-one-bits.c (ASSERT): Likewise.
50891         * tests/test-fbufmode.c (ASSERT): Likewise.
50892         * tests/test-fflush2.c (ASSERT): Likewise.
50893         * tests/test-floorf1.c (ASSERT): Likewise.
50894         * tests/test-floorf2.c (ASSERT): Likewise.
50895         * tests/test-floorl.c (ASSERT): Likewise.
50896         * tests/test-fopen.c (ASSERT): Likewise.
50897         * tests/test-fpending.c (ASSERT): Likewise.
50898         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50899         * tests/test-fpurge.c (ASSERT): Likewise.
50900         * tests/test-freadable.c (ASSERT): Likewise.
50901         * tests/test-freadahead.c (ASSERT): Likewise.
50902         * tests/test-freading.c (ASSERT): Likewise.
50903         * tests/test-freadptr.c (ASSERT): Likewise.
50904         * tests/test-freadptr2.c (ASSERT): Likewise.
50905         * tests/test-freadseek.c (ASSERT): Likewise.
50906         * tests/test-freopen.c (ASSERT): Likewise.
50907         * tests/test-frexp.c (ASSERT): Likewise.
50908         * tests/test-frexpl.c (ASSERT): Likewise.
50909         * tests/test-fseek.c (ASSERT): Likewise.
50910         * tests/test-fseeko.c (ASSERT): Likewise.
50911         * tests/test-fstrcmp.c (ASSERT): Likewise.
50912         * tests/test-ftell.c (ASSERT): Likewise.
50913         * tests/test-ftello.c (ASSERT): Likewise.
50914         * tests/test-func.c (ASSERT): Likewise.
50915         * tests/test-fwritable.c (ASSERT): Likewise.
50916         * tests/test-fwriting.c (ASSERT): Likewise.
50917         * tests/test-getdelim.c (ASSERT): Likewise.
50918         * tests/test-getline.c (ASSERT): Likewise.
50919         * tests/test-i-ring.c (ASSERT): Likewise.
50920         * tests/test-iconv-utf.c (ASSERT): Likewise.
50921         * tests/test-iconv.c (ASSERT): Likewise.
50922         * tests/test-isfinite.c (ASSERT): Likewise.
50923         * tests/test-isnand.c (ASSERT): Likewise.
50924         * tests/test-isnanf.c (ASSERT): Likewise.
50925         * tests/test-isnanl.h (ASSERT): Likewise.
50926         * tests/test-ldexpl.c (ASSERT): Likewise.
50927         * tests/test-linked_list.c (ASSERT): Likewise.
50928         * tests/test-linkedhash_list.c (ASSERT): Likewise.
50929         * tests/test-localename.c (ASSERT): Likewise.
50930         * tests/test-lseek.c (ASSERT): Likewise.
50931         * tests/test-mbscasecmp.c (ASSERT): Likewise.
50932         * tests/test-mbscasestr1.c (ASSERT): Likewise.
50933         * tests/test-mbscasestr2.c (ASSERT): Likewise.
50934         * tests/test-mbscasestr3.c (ASSERT): Likewise.
50935         * tests/test-mbscasestr4.c (ASSERT): Likewise.
50936         * tests/test-mbschr.c (ASSERT): Likewise.
50937         * tests/test-mbscspn.c (ASSERT): Likewise.
50938         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
50939         * tests/test-mbspbrk.c (ASSERT): Likewise.
50940         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
50941         * tests/test-mbsrchr.c (ASSERT): Likewise.
50942         * tests/test-mbsspn.c (ASSERT): Likewise.
50943         * tests/test-mbsstr1.c (ASSERT): Likewise.
50944         * tests/test-mbsstr2.c (ASSERT): Likewise.
50945         * tests/test-mbsstr3.c (ASSERT): Likewise.
50946         * tests/test-memchr2.c (ASSERT): Likewise.
50947         * tests/test-memmem.c (ASSERT): Likewise.
50948         * tests/test-open.c (ASSERT): Likewise.
50949         * tests/test-printf-frexp.c (ASSERT): Likewise.
50950         * tests/test-printf-frexpl.c (ASSERT): Likewise.
50951         * tests/test-printf-posix.c (ASSERT): Likewise.
50952         * tests/test-quotearg.c (ASSERT): Likewise.
50953         * tests/test-rbtree_list.c (ASSERT): Likewise.
50954         * tests/test-rbtree_oset.c (ASSERT): Likewise.
50955         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
50956         * tests/test-round1.c (ASSERT): Likewise.
50957         * tests/test-roundf1.c (ASSERT): Likewise.
50958         * tests/test-roundl.c (ASSERT): Likewise.
50959         * tests/test-signbit.c (ASSERT): Likewise.
50960         * tests/test-sleep.c (ASSERT): Likewise.
50961         * tests/test-snprintf-posix.c (ASSERT): Likewise.
50962         * tests/test-snprintf.c (ASSERT): Likewise.
50963         * tests/test-sprintf-posix.c (ASSERT): Likewise.
50964         * tests/test-stat-time.c (ASSERT): Likewise.
50965         * tests/test-strcasestr.c (ASSERT): Likewise.
50966         * tests/test-strerror.c (ASSERT): Likewise.
50967         * tests/test-striconv.c (ASSERT): Likewise.
50968         * tests/test-striconveh.c (ASSERT): Likewise.
50969         * tests/test-striconveha.c (ASSERT): Likewise.
50970         * tests/test-strsignal.c (ASSERT): Likewise.
50971         * tests/test-strstr.c (ASSERT): Likewise.
50972         * tests/test-strtod.c (ASSERT): Likewise.
50973         * tests/test-trunc1.c (ASSERT): Likewise.
50974         * tests/test-trunc2.c (ASSERT): Likewise.
50975         * tests/test-truncf1.c (ASSERT): Likewise.
50976         * tests/test-truncf2.c (ASSERT): Likewise.
50977         * tests/test-truncl.c (ASSERT): Likewise.
50978         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
50979         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
50980         * tests/test-vasnprintf.c (ASSERT): Likewise.
50981         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
50982         * tests/test-vasprintf.c (ASSERT): Likewise.
50983         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
50984         * tests/test-vprintf-posix.c (ASSERT): Likewise.
50985         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
50986         * tests/test-vsnprintf.c (ASSERT): Likewise.
50987         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
50988         * tests/test-wcwidth.c (ASSERT): Likewise.
50989         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
50990         * tests/test-xprintf-posix.c (ASSERT): Likewise.
50991         * tests/test-xvasprintf.c (ASSERT): Likewise.
50992         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
50993         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
50994         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
50995         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
50996         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
50997         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
50998         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
50999         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51000         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51001         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51002         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51003         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51004         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51005         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51006         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51007         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51008         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51009         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51010         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51011         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51012         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51013         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51014         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51015         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51016         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51017         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51018         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51019         * tests/unictype/test-combining.c (ASSERT): Likewise.
51020         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51021         * tests/unictype/test-digit.c (ASSERT): Likewise.
51022         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51023         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51024         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51025         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51026         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51027         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51028         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51029         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51030         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51031         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51032         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51033         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51034         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51035         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51036         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51037         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51038         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51039         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51040         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51041         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51042         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51043         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51044         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51045         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51046         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51047         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51048         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51049         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51050         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51051         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51052         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51053         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51054         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51055         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51056         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51057         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51058         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51059         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51060         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51061         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51062         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51063         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51064         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51065         Reported by Eric Blake.
51066
51067 2008-04-11  Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/wchar.in.h: Tweak comment.
51070
51071 2008-04-11  Bruno Haible  <bruno@clisp.org>
51072
51073         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51074         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51075         gl_COMMON.
51076         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51077
51078 2008-04-11  Bruno Haible  <bruno@clisp.org>
51079
51080         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51081
51082 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51083
51084         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51085         of attempting to use non-existing /dev/*random.  Based on patch
51086         from Adam Strzelecki <ono@java.pl> in
51087         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51088
51089 2008-04-08  Bruno Haible  <bruno@clisp.org>
51090
51091         Add tentative support for emx+gcc.
51092         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51093         * lib/fpurge.c (fpurge): Likewise.
51094         * lib/freadable.c (freadable): Likewise.
51095         * lib/freadahead.c (freadahead): Likewise.
51096         * lib/freading.c (freading): Likewise.
51097         * lib/freadptr.c (freadptr): Likewise.
51098         * lib/freadseek.c (freadptrinc): Likewise.
51099         * lib/fseeko.c (rpl_fseeko): Likewise.
51100         * lib/fseterr.c (fseterr): Likewise.
51101         * lib/fwritable.c (fwritable): Likewise.
51102         * lib/fwriting.c (fwriting): Likewise.
51103         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51104
51105 2008-04-09  Eric Blake  <ebb9@byu.net>
51106
51107         Avoid some autoconf warnings.
51108         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51109         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51110         * m4/afs.m4 (gl_AFS): Likewise.
51111         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51112         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51113         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51114         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51115         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51116         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51117         (AC_CHECK_DECLS_ONCE): Likewise.
51118         Rename file...
51119         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51120         gnulib-tool requires autoconf 2.59 or better.
51121         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51122
51123 2008-04-08  Eric Blake  <ebb9@byu.net>
51124
51125         Use 'git describe --match' if present (added in git 1.5.5).
51126         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51127         if possible.
51128
51129 2008-04-08  Bruno Haible  <bruno@clisp.org>
51130
51131         Add tentative support for OpenServer.
51132         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51133         _ptr, _cnt.
51134         * lib/fpurge.c (fpurge): Likewise.
51135         * lib/freadable.c (freadable): Likewise.
51136         * lib/freadahead.c (freadahead): Likewise.
51137         * lib/freading.c (freading): Likewise.
51138         * lib/freadptr.c (freadptr): Likewise.
51139         * lib/freadseek.c (freadptrinc): Likewise.
51140         * lib/fseeko.c (rpl_fseeko): Likewise.
51141         * lib/fseterr.c (fseterr): Likewise.
51142         * lib/fwritable.c (fwritable): Likewise.
51143         * lib/fwriting.c (fwriting): Likewise.
51144         Reported by Roger Cornelius <rac@tenzing.org> and
51145         Brian K. White <brian@aljex.com>.
51146
51147 2008-04-06  Jim Meyering  <meyering@redhat.com>
51148
51149         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51150
51151 2008-04-06  Bruno Haible  <bruno@clisp.org>
51152
51153         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51154         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51155         * tests/test-printf-posix.sh: Likewise.
51156         * tests/test-vfprintf-posix.sh: Likewise.
51157         * tests/test-vprintf-posix.sh: Likewise.
51158         * tests/test-xprintf-posix.sh: Likewise.
51159
51160 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51161
51162         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51163         hide error from 'ls', needed on OS/2.
51164         Report by Elbert Pol <elbert.pol@gmail.com>.
51165
51166 2008-04-04  Eric Blake  <ebb9@byu.net>
51167
51168         Make test-fseeko.c failures meaningful.
51169         * tests/test-fseeko.c: Print line number on failure.
51170         * tests/test-fseek.c: Likewise.
51171         Reported by Nelson H. F. Beebe.
51172
51173         Improve strtod bug detection check.
51174         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51175         required for Solaris 10.
51176         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51177
51178 2008-04-04  Bruno Haible  <bruno@clisp.org>
51179
51180         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51181         by m4/setenv.m4.
51182
51183 2008-04-03  Eric Blake  <ebb9@byu.net>
51184
51185         Ensure sane .version contents.
51186         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51187         version string.
51188         * build-aux/git-version-gen: Improve documentation.
51189
51190         Make GNU make output nicer.
51191         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51192         MAKECMDGOALS to enforce message for all command line targets.  Set
51193         srcdir for use in maint.mk.
51194
51195         Another maintainer tweak.
51196         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51197         a target that regenerates version.
51198
51199 2008-04-03  Jim Meyering  <meyering@redhat.com>
51200
51201         vc-list-files: don't cause coreutils "make po-check" failure
51202         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51203
51204 2008-04-03  Eric Blake  <ebb9@byu.net>
51205
51206         Allow VPATH usage of vc-list-files.
51207         * build-aux/vc-list-files (scriptversion): Add timestamp.
51208         (options): Add --help, --version, -C.
51209         (CVS): Support installed cvsu.
51210
51211 2008-04-02  Bruno Haible  <bruno@clisp.org>
51212
51213         Avoid some "statement with no effect" warnings from gcc.
51214         * tests/test-wctype.c (main): Explicitly ignore unused values.
51215         Reported by Jim Meyering.
51216
51217 2008-04-02  Jim Meyering  <meyering@redhat.com>
51218
51219         Avoid some warnings from "gcc -Wshadow".
51220         * tests/test-frexp.c (exp): Define to a different identifier.
51221         * tests/test-frexpl.c (exp): Likewise.
51222
51223 2008-04-03  Jim Meyering  <meyering@redhat.com>
51224
51225         bootstrap: remove dangling *.[ch] symlinks from lib
51226         * build-aux/bootstrap [dangling symlink removal]: Move find's
51227         -depth option to precede all others, to avoid a warning.
51228         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51229
51230 2008-04-02  Bruno Haible  <bruno@clisp.org>
51231
51232         Avoid some warnings from "gcc -Wshadow".
51233         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51234         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51235         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51236         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51237         Reported by Jim Meyering.
51238
51239 2008-04-01  Bruno Haible  <bruno@clisp.org>
51240
51241         Fix test to work on IRIX 6.5 with cc.
51242         * tests/test-math.c (numeric_equal): New function.
51243         (main): Use it.
51244
51245 2008-04-01  Bruno Haible  <bruno@clisp.org>
51246
51247         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51248
51249 2008-04-01  Bruno Haible  <bruno@clisp.org>
51250
51251         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51252         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51253         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51254         (Depends-on): Remove math.
51255
51256         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51257         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51258         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51259         (Depends-on): Remove math.
51260
51261         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51262         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51263         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51264         (Depends-on): Remove math.
51265         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51266         (Depends-on): Remove math.
51267
51268         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51269         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51270         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51271         (Depends-on): Remove math.
51272         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51273         (Depends-on): Remove math.
51274
51275         * tests/test-round1.c: Include nan.h.
51276         (main): Use NaNd instead of NAN.
51277         * modules/round-tests (Files): Add tests/nan.h.
51278
51279         * tests/test-trunc1.c: Include nan.h.
51280         (main): Use NaNd instead of NAN.
51281         * modules/trunc-tests (Files): Add tests/nan.h.
51282
51283         * tests/test-roundf1.c: Include nan.h.
51284         (main): Use NaNf instead of NAN.
51285         * modules/roundf-tests (Files): Add tests/nan.h.
51286
51287         * tests/test-truncf1.c: Include nan.h.
51288         (main): Use NaNf instead of NAN.
51289         * modules/truncf-tests (Files): Add tests/nan.h.
51290
51291         * tests/test-ceilf1.c: Include nan.h.
51292         (main): Use NaNf instead of NAN.
51293         * modules/ceilf-tests (Files): Add tests/nan.h.
51294
51295         * tests/test-floorf1.c: Include nan.h.
51296         (main): Use NaNf instead of NAN.
51297         * modules/floorf-tests (Files): Add tests/nan.h.
51298
51299         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51300         (main): Use NaNf instead of NAN.
51301         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51302
51303         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51304         (main): Use NaNd instead of NAN.
51305         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51306
51307         * tests/test-frexp.c: Include nan.h.
51308         (main): Use NaNd instead of NAN.
51309         * modules/frexp-tests (Files): Add tests/nan.h.
51310
51311         * lib/isnan.c: Don't include <math.h>.
51312         (FUNC): Don't use NAN macro.
51313         * modules/isnand-nolibm (Depends-on): Remove math.
51314         * modules/isnanf-nolibm (Depends-on): Remove math.
51315         * modules/isnanl (Depends-on): Remove math.
51316         * modules/isnanl-nolibm (Depends-on): Remove math.
51317
51318         * tests/nan.h: New file.
51319
51320 2008-04-01  Eric Blake  <ebb9@byu.net>
51321
51322         Fix typos.
51323         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51324         values to be the right type.
51325
51326         For now, cater to gnulib strtod inaccuracies.
51327         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51328         fractional results.  While not as nice from a QoI perspective, it
51329         is a quicker patch than correctly implementing decimal to binary
51330         rounding.
51331
51332 2008-03-31  Eric Blake  <ebb9@byu.net>
51333
51334         Guarantee a definition of NAN.
51335         * lib/math.in.h (NAN): Define if missing.
51336         * tests/test-math.c (main): Test it.
51337         * doc/posix-headers/math.texi (math.h): Document this.
51338         * lib/isnan.c (rpl_isnand): Use it.
51339         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51340         * tests/test-floorf1.c (NaN): Likewise.
51341         * tests/test-frexp.c (NaN): Likewise.
51342         * tests/test-isnand.c (NaN): Likewise.
51343         * tests/test-isnanf.c (NaN): Likewise.
51344         * tests/test-round1.c (NaN): Likewise.
51345         * tests/test-roundf1.c (NaN): Likewise.
51346         * tests/test-snprintf-posix.h (NaN): Likewise.
51347         * tests/test-sprintf-posix.h (NaN): Likewise.
51348         * tests/test-trunc1.c (NaN): Likewise.
51349         * tests/test-truncf1.c (NaN): Likewise.
51350         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51351         * tests/test-vasprintf-posix.c (NaN): Likewise.
51352         * modules/isnand-nolibm (Depends-on): Add math.
51353         * modules/isnanf-nolibm (Depends-on): Likewise.
51354         * modules/isnanl (Depends-on): Likewise.
51355         * modules/isnanl-nolibm (Depends-on): Likewise.
51356         * modules/snprintf-posix-tests (Depends-on): Likewise.
51357         * modules/sprintf-posix-tests (Depends-on): Likewise.
51358         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51359         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51360         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51361         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51362
51363 2008-03-31  Bruno Haible  <bruno@clisp.org>
51364
51365         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51366         * doc/posix-functions/strtod.texi: Likewise.
51367
51368 2008-03-31  Bruno Haible  <bruno@clisp.org>
51369
51370         * tests/test-strtod.c (main): Don't use C99 syntax.
51371
51372 2008-03-31  Bruno Haible  <bruno@clisp.org>
51373
51374         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51375         Reported by Eric Blake.
51376
51377 2008-03-31  Jim Meyering  <meyering@redhat.com>
51378
51379         Don't compare actual signbit return values.
51380         * tests/test-strtod.c (main): Rather, compare only their
51381         zero/non-zero nature.
51382
51383 2008-03-31  Eric Blake  <ebb9@byu.net>
51384
51385         More strtod documentation.
51386         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51387         failures as distinct bugs.
51388
51389 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51390
51391         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51392         Problem reported by Erik Benada in
51393         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51394
51395 2008-03-30  Bruno Haible  <bruno@clisp.org>
51396
51397         * tests/test-strtod.c: Add comments about which assertion fails on which
51398         platform.
51399         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51400
51401 2008-03-30  Eric Blake  <ebb9@byu.net>
51402
51403         Test signbit behavior on zeros.
51404         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51405         (test_signbitd, test_signbitl): Likewise.
51406
51407         More strtod touchups.
51408         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51409         sign of negative underflow, for now.  Use .5, not .1.
51410         * doc/posix-functions/strtod.texi (strtod): Mention these
51411         limitations.
51412         Reported by Jim Meyering.
51413
51414 2008-03-30  Bruno Haible  <bruno@clisp.org>
51415
51416         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51417         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51418
51419 2008-03-30  Bruno Haible  <bruno@clisp.org>
51420
51421         Avoid failure when attempting to return empty iconv results on some
51422         platforms.
51423         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51424         allocation, don't report ENOMEM when the resulting string is empty.
51425
51426 2008-03-30  Bruno Haible  <bruno@clisp.org>
51427
51428         Fix buffer overrun.
51429         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51430         Don't consider the width for tmp_length. Check count against tmp_length
51431         before doing the padding. Ensure enough allocation during padding.
51432
51433 2008-03-30  Eric Blake  <ebb9@byu.net>
51434
51435         strtod touchups.
51436         * lib/strtod.c (strtod): Avoid compiler warnings.
51437         Reported by Jim Meyering.
51438
51439 2008-03-30  Bruno Haible  <bruno@clisp.org>
51440
51441         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51442         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51443         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51444         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51445         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51446         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51447         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51448         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51449
51450         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51451         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51452         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51453         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51454         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51455         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51456         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51457         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51458
51459         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51460         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51461         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51462         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51463         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51464         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51465         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51466         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51467
51468         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51469         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51470
51471         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51472         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51473
51474         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51475         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51476
51477         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51478         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51479         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51480
51481         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51482         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51483         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51484
51485         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51486         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51487         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51488
51489         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51491         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51492
51493         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51494         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51495         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51496         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51497         (Depends-on): Add EOVERFLOW.
51498         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51499         (Depends-on): Add EOVERFLOW.
51500         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51501         (Depends-on): Add EOVERFLOW.
51502         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51503         (Depends-on): Add EOVERFLOW.
51504         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51505         (Depends-on): Add EOVERFLOW.
51506         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51507         (Depends-on): Add EOVERFLOW.
51508         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51509         (Depends-on): Add EOVERFLOW.
51510         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51511         (Depends-on): Add EOVERFLOW.
51512
51513         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51515         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51516
51517         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51519         * modules/snprintf (Depends-on): Add EOVERFLOW.
51520
51521         * lib/poll.c (EOVERFLOW): Remove fallback.
51522         * modules/poll (Depends-on): Add EOVERFLOW.
51523
51524         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51525         * modules/getugroups (Depends-on): Add EOVERFLOW.
51526
51527         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51528         * modules/getdelim (Depends-on): Add EOVERFLOW.
51529
51530         * lib/ftell.c (EOVERFLOW): Remove fallback.
51531         * modules/ftell (Depends-on): Add EOVERFLOW.
51532
51533         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51534         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51535         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51536
51537         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51538
51539         * modules/EOVERFLOW-tests: New file.
51540         * tests/test-EOVERFLOW.c: New file.
51541
51542         * modules/EOVERFLOW: New file.
51543         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51544
51545 2008-03-30  Bruno Haible  <bruno@clisp.org>
51546
51547         Fix bug introduced on 2007-06-10.
51548         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51549         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51550
51551 2008-03-30  Bruno Haible  <bruno@clisp.org>
51552
51553         Improve freadseek's efficiency after ungetc.
51554         * lib/freadseek.c: Include freadahead.h.
51555         (freadptrinc): New function, extracted from freadseek.
51556         (freadseek): Use it in a loop. Use freadahead to determine the number
51557         of loop iterations.
51558         * modules/freadseek (Depends-on): Add freadahead.
51559         (configure.ac): Require AC_C_INLINE.
51560
51561 2008-03-30  Bruno Haible  <bruno@clisp.org>
51562
51563         * lib/freadseek.c (freadseek): Don't ignore the return value of
51564         freadptr.
51565
51566 2008-03-29  Eric Blake  <ebb9@byu.net>
51567
51568         Add hex float support.
51569         * modules/strtod (Depends-on): Add c-ctype.
51570         (Link): Mention POW_LIB.
51571         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51572         whitespace between 'e' and exponent.
51573         * tests/test-strtod.c (main): Enable hex float tests.
51574         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51575         now provides.
51576
51577         Document various strtod bugs, with some fixes.
51578         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51579         "-0x", "inf", "nan", and hex constants.
51580         * doc/posix-functions/atof.texi (atof): Likewise.
51581         * modules/stdlib (Makefile.am): Support strtod.
51582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51583         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51584         detect additional strtod bugs.
51585         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51586         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51587         bool where appropriate.  Parse 'inf' and 'nan'.
51588         * tests/test-strtod.c: New file.
51589         * modules/strtod (Depends-on): Add stdbool, stdlib.
51590         (configure.ac): Turn on module indicator.
51591         * modules/strtod-tests: New module.
51592
51593 2008-03-29  Eric Blake  <ebb9@byu.net>
51594
51595         Fix ftell on mingw.
51596         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51597         * modules/ftell-tests (Depends-on): Add binary-io.
51598         * modules/ftello-tests (Depends-on): Likewise.
51599         * tests/test-ftell.c (main): Enhance test to cover behavior after
51600         ungetc.  Enforce binary mode.
51601         * tests/test-ftello.c (main): Likewise.
51602
51603         Pass test-freadseek on cygwin.
51604         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51605         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51606         ungetc buffer.
51607
51608         * tests/test-fflush2.c (main): Fix typo.
51609
51610 2008-03-29  Bruno Haible  <bruno@clisp.org>
51611
51612         * tests/test-fflush2.c (main): Temporarily disable the contents of
51613         this test.
51614         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51615         Reported by Eric Blake.
51616
51617 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51618
51619         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51620         (GC_SHA224_DIGEST_SIZE): Add.
51621
51622         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51623         (gc_hash_digest_length): Likewise.
51624         (gc_hash_buffer): Likewise.
51625
51626 2008-03-25  Bruno Haible  <bruno@clisp.org>
51627
51628         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51629         detail which gettext release to use.
51630         Reported by Simon Josefsson.
51631
51632 2008-03-26  Jim Meyering  <meyering@redhat.com>
51633
51634         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51635         * modules/gnumakefile (clean-GNUmakefile): Also, use
51636         test ... && ... || : syntax rather than if-then ... fi.
51637
51638         gnumakefile: Don't double-quote-expand $(VPATH) value.
51639         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51640
51641 2008-03-24  Eric Blake  <ebb9@byu.net>
51642
51643         Alter GNUmakefile to install into top directory.
51644         * modules/maintainer-makefile: Split, and add dependency...
51645         * modules/gnumakefile: to this new module.
51646         * build-aux/GNUmakefile: Move...
51647         * top/GNUmakefile: ...here.
51648         * build-aux/maint.mk: Move...
51649         * top/maint.mk: ...here.
51650         * MODULES.html.sh (Support for maintaining...): Document new
51651         module.
51652
51653 2008-03-23  Bruno Haible  <bruno@clisp.org>
51654
51655         * gnulib-tool: New options --vc-files, --no-vc-files.
51656         (func_usage): Document them.
51657         (vc_files): New variable.
51658         (func_import): Consider vc_files.
51659         (func_create_testdir): Set vc_files to empty.
51660         Suggested by Jim Meyering and Karl Berry.
51661
51662 2008-03-23  Bruno Haible  <bruno@clisp.org>
51663
51664         Fix regex compilation error on HP-UX 11.
51665         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51666         * modules/regex (Files): Add m4/mbstate_t.m4.
51667         Reported by Ton Voon <ton.voon@altinity.com>.
51668
51669 2008-03-23  Bruno Haible  <bruno@clisp.org>
51670
51671         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51672
51673 2008-03-23  Eric Blake  <ebb9@byu.net>
51674             Bruno Haible  <bruno@clisp.org>
51675
51676         Install files from top/ in the destination directory.
51677         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51678         augmentation also for the files from top/.
51679         (func_import, func_create_testdir): Rewrite file names:
51680         top/filename -> filename.
51681
51682 2008-03-23  Bruno Haible  <bruno@clisp.org>
51683
51684         Tweak "gnulib --version" output.
51685         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51686
51687 2008-03-23  Bruno Haible  <bruno@clisp.org>
51688
51689         Tweak "gnulib --version" output.
51690         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51691         rather than contents of ChangeLog, when possible.
51692
51693 2008-03-21  Eric Blake  <ebb9@byu.net>
51694
51695         More --version tweaks.
51696         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51697         date of last ChangeLog entry.
51698
51699 2008-03-21  Jim Meyering  <meyering@redhat.com>
51700
51701         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51702
51703 2008-03-20  Eric Blake  <ebb9@byu.net>
51704
51705         VPATH fix.
51706         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51707
51708 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51709
51710         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51711         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51712
51713 2008-03-20  Eric Blake  <ebb9@byu.net>
51714
51715         Sync GNUmakefile with coreutils.
51716         * build-aux/GNUmakefile (have-Makefile): Rename...
51717         (_have-Makefile): ...to this, for namespace consideration.
51718         (GNUmakefile.cfg): Include, if present.
51719         (_autoreconf): Define a default.
51720         (_is-dist-target): New rule for rebuilds to pick up intra-release
51721         version.
51722         (maint-cfg.mk): Rename...
51723         (cfg.mk): ...to this.
51724
51725 2008-03-18  Jim Meyering  <meyering@redhat.com>
51726
51727         New script and module: mktempd
51728         * MODULES.html.sh (maint+release support): Add mktempd.
51729         * build-aux/mktempd: New file.
51730         * modules/mktempd: New file.
51731
51732 2008-03-15  Jim Meyering  <meyering@redhat.com>
51733
51734         Undo last change.
51735         * lib/sha1.c, lib/md5.c: 63 != ~63.
51736         Reported by Andreas Schwab.
51737
51738         sha1.c, md5.c: Hoist a redundant expression.
51739         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51740         "ctx->buflen" only once, before calling *_process_block.
51741         * lib/md5.c (md5_process_bytes): Likewise.
51742
51743 2008-03-14  Eric Blake  <ebb9@byu.net>
51744
51745         Bump copyright year in files generated by gnulib-tool.
51746         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51747         gnulib-tool, rather than hard-coding it.
51748
51749         Fix 'gnulib-tool --version' output to work with git.
51750         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51751         (startup): ...here.
51752         (func_version): Use it to invoke git-version-gen, rather than
51753         relying on CVS keyword expansion.  Modernize wording.
51754         (cvsdatestamp, last_checkin_date, version): Kill unused
51755         variables.
51756
51757 2008-03-12  Jim Meyering  <meyering@redhat.com>
51758
51759         Recognize optional cast of the argument to free.
51760         * build-aux/useless-if-before-free: Update regexps.
51761
51762         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51763
51764 2008-03-11  Bruno Haible  <bruno@clisp.org>
51765
51766         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51767         by a single package.
51768         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51769         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51770         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51771         Reported by Sam Steingold <sds@gnu.org>.
51772
51773 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51774
51775         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51776         repositories.
51777
51778 2008-03-11  Bruno Haible  <bruno@clisp.org>
51779
51780         Avoid conflicts between local macro definitions.
51781         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51782         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51783
51784 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51785             Bruno Haible  <bruno@clisp.org>
51786
51787         Make va_copy work with some version of xlc on AIX 5.1.
51788         * lib/stdarg.in.h: New file.
51789         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51790         On AIX, use a <stdarg.h> file substitute.
51791         * modules/stdarg (Files): Add lib/stdarg.in.h.
51792         (Depends-on): Add include_next.
51793         (Makefile.am): Build a stdarg.h substitute if requested.
51794         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51795
51796 2008-03-10  Bruno Haible  <bruno@clisp.org>
51797
51798         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51800         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51801
51802 2008-03-10  Bruno Haible  <bruno@clisp.org>
51803
51804         * modules/stdlib (Depends-on): Add include_next, remove
51805         absolute-header.
51806
51807 2008-03-09  Bruno Haible  <bruno@clisp.org>
51808
51809         * lib/freadahead.h (freadahead): Document more precisely.
51810         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51811         the sum of both buffer sizes.
51812         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51813         * NEWS: Document the change.
51814
51815 2008-03-09  Bruno Haible  <bruno@clisp.org>
51816
51817         Extend freadptr to return also the buffer size.
51818         * lib/freadptr.h (freadptr): Add sizep argument.
51819         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51820         (freadptr): Add sizep argument. Determine buffer size like freadahead
51821         does.
51822         * tests/test-freadptr.c: Don't include freadahead.h.
51823         (main): Adapt for new calling convention of freadptr.
51824         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51825         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51826         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51827         tests/test-freadptr2.sh.
51828         (Depends): Remove freadahead.
51829         (TESTS): Add test-freadptr2.sh.
51830         (check_PROGRAMS): Add test-freadptr2.
51831
51832 2008-03-09  Bruno Haible  <bruno@clisp.org>
51833
51834         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51835         Report and solution by Simon Josefsson.
51836
51837 2008-03-06  Bruno Haible  <bruno@clisp.org>
51838
51839         Make fflush after ungetc work on BSD platforms.
51840         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51841         * tests/test-fflush2.c: New file.
51842         * tests/test-fflush2.sh: New file.
51843         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51844         tests/test-fflush2.c.
51845         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51846         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51847
51848 2008-03-06  Eric Blake  <ebb9@byu.net>
51849
51850         Likewise for ftello.
51851         * modules/ftello (Dependencies): Add extensions.
51852         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51853
51854 2008-03-06  Bruno Haible  <bruno@clisp.org>
51855
51856         * modules/fseeko (Dependencies): Add extensions.
51857         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51858         Needed on glibc systems.
51859
51860 2008-03-06  Bruno Haible  <bruno@clisp.org>
51861
51862         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51863         email address.
51864         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51865
51866 2008-03-06  Bruno Haible  <bruno@clisp.org>
51867
51868         * users.txt: Add libgnupdf.
51869
51870 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51871
51872         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51873         (Header File Substitutes, Function Substitutes,
51874         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51875         (Build robot for gnulib): Fix typo.
51876
51877 2008-03-06  Bruno Haible  <bruno@clisp.org>
51878
51879         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51880         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51881
51882 2008-03-06  Bruno Haible  <bruno@clisp.org>
51883
51884         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51885         * doc/gnulib.texi: Include it.
51886
51887 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51888
51889         * modules/func (License): Change license to unlimited; there was
51890         no LGPL parts in the module anyway.
51891
51892 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51893
51894         * modules/__func__: Renamed to modules/func.
51895         * modules/__func__-tests: Renamed to modules/func-tests.
51896         * tests/test-__func__.c: Renamed to tests/test-func.c.
51897         * m4/__func__.m4: Renamed to m4/func.m4.
51898         * doc/gnulib.texi (__func__): Section renamed to func.
51899         Suggested by Eric Blake <ebb9@byu.net>.
51900
51901 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51902
51903         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51904         about __func__.  Make example self-contained.  Suggested by Eric
51905         Blake <ebb9@byu.net>.
51906
51907         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51908         Suggested by Eric Blake <ebb9@byu.net>.
51909
51910 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51911
51912         * modules/__func__: New file.
51913         * modules/__func__-tests: New file.
51914         * tests/test-__func__.c: New file.
51915         * m4/__func__.m4: New file.
51916         * doc/gnulib.texi (__func__): Document __func__ module.
51917
51918 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51919
51920         * modules/byteswap (License): Re-license as LGPLv2+.
51921
51922 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51923
51924         * doc/Makefile: Add pdf target.
51925
51926 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51927
51928         * modules/inline (License): Use 'unlimited', since there are only
51929         *.m4 files in this module.
51930
51931 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51932             Bruno Haible  <bruno@clisp.org>
51933
51934         Add support for HP C 7.1 on OpenVMS 8.3.
51935         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
51936
51937 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
51938
51939         Update VMS specifics.
51940         * lib/getopt.c [VMS]: Remove include of unixlib.h.
51941
51942 2008-03-02  Jim Meyering  <meyering@redhat.com>
51943
51944         Remove the last dependency on the "free" module.
51945         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
51946         Reported by Bob Proulx.
51947
51948         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
51949
51950         Remove useless "if" tests before free.  Deprecate "free" module.
51951         * doc/posix-functions/free.texi: Mention that this
51952         module is no longer useful.
51953         * modules/free (Notice): Say this module is obsolete.
51954         * modules/readutmp (Depends-on): Remove free.
51955         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
51956         * lib/putenv.c (putenv): Likewise.
51957         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
51958         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
51959         * tests/test-c-strcasestr.c (main): Likewise.
51960         * tests/test-c-strstr.c (main): Likewise.
51961         * tests/test-mbscasestr1.c (main): Likewise.
51962         * tests/test-mbscasestr2.c (main): Likewise.
51963         * tests/test-mbsstr1.c (main): Likewise.
51964         * tests/test-mbsstr2.c (main): Likewise.
51965         * tests/test-memmem.c (main): Likewise.
51966         * tests/test-strcasestr.c (main): Likewise.
51967         * tests/test-striconv.c (main): Likewise.
51968         * tests/test-striconveh.c (main): Likewise.
51969         * tests/test-striconveha.c (main): Likewise.
51970         * tests/test-strstr.c (main): Likewise.
51971
51972         * build-aux/git-version-gen: Adjust a comment and the Usage string.
51973
51974         bootstrap: sync from coreutils again
51975         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
51976
51977 2008-03-01  Jim Meyering  <meyering@redhat.com>
51978
51979         bootstrap: sync from coreutils
51980         * build-aux/bootstrap (update_po_files): Copy a .po file into place
51981         also when the target doesn't exist.
51982
51983 2008-03-01  Eric Blake  <ebb9@byu.net>
51984
51985         Fix bugs in last patch.
51986         * lib/memchr2.c (memchr2): Fix typo.
51987         * tests/test-memchr2.c: Test previous bug, and don't use GNU
51988         extension.
51989         Reported by Bruce Korb.
51990
51991         New module 'memchr2'.
51992         * modules/memchr2: New file.
51993         * modules/memchr2-tests: Likewise.
51994         * lib/memchr2.h: Likewise.
51995         * lib/memchr2.c: Likewise, based on memchr.c.
51996         * tests/test-memchr2.c: New test.
51997         * MODULES.html.sh (String handling): Add memchr2.
51998
51999 2008-02-29  Bruno Haible  <bruno@clisp.org>
52000
52001         * modules/freadseek-tests: New file.
52002         * tests/test-freadseek.sh: New file.
52003         * tests/test-freadseek.c: New file.
52004
52005         New module 'freadseek'.
52006         * modules/freadseek: New file.
52007         * lib/freadseek.h: New file.
52008         * lib/freadseek.c: New file.
52009         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52010
52011 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52012
52013         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52014         wydawca.
52015
52016         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52017         program_invocation_name and program_invocation_short_name are
52018         present.
52019
52020 2008-02-28  Bruno Haible  <bruno@clisp.org>
52021
52022         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52023         * tests/test-freadptr.sh: Also test non-seekable stdin.
52024
52025 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52026
52027         * build-aux/bootstrap (source_base, m4_base)
52028         (doc_base, tests_base): New variables.
52029         (gnulib_tool_options): Do not hardcode base directories, use
52030         the above variables instead.
52031
52032 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52033
52034         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52035
52036 2008-02-28  Bruno Haible  <bruno@clisp.org>
52037
52038         * modules/freadptr-tests: New file.
52039         * tests/test-freadptr.sh: New file.
52040         * tests/test-freadptr.c: New file.
52041
52042         New module 'freadptr'.
52043         * modules/freadptr: New file.
52044         * lib/freadptr.h: New file.
52045         * lib/freadptr.c: New file.
52046         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52047
52048 2008-02-26  Karl Berry  <karl@freefriends.org>
52049
52050         Sync from Libtool:
52051         * libltdl/argz.c (argz_add, argz_count): New functions.
52052         * libltdl/argz.in.h: Declare them.
52053         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52054
52055 2008-02-22  Bruno Haible  <bruno@clisp.org>
52056
52057         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52058         is a pointer type.  Needed for HP-UX 10.
52059         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52060         * doc/posix-functions/gmtime_r.texi: Likewise.
52061         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52062
52063 2008-02-24  Bruno Haible  <bruno@clisp.org>
52064
52065         * modules/environ-tests: New file.
52066         * tests/test-environ.c: New file.
52067
52068         New module 'environ'.
52069         * modules/environ: New file.
52070         * lib/unistd.in.h (environ): New declaration.
52071         * m4/environ.m4: New file.
52072         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52073         after use.
52074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52075         HAVE_DECL_ENVIRON.
52076         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52077         HAVE_DECL_ENVIRON.
52078         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52079         wrong claim that 'environ' is missing on some systems.
52080         * modules/execute (Depends-on): Add environ.
52081         * lib/execute.c (environ): Remove fallback declaration.
52082         * modules/pipe (Depends-on): Add environ.
52083         * lib/pipe.c (environ): Remove fallback declaration.
52084         * modules/setenv (Depends-on): Add environ.
52085         * lib/setenv.c (environ): Remove fallback declaration.
52086         * modules/unsetenv (Depends-on): Add environ.
52087         * lib/unsetenv.c (environ): Remove fallback declaration.
52088         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52089         m4/environ.m4.
52090         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52091         (gl_PREREQ_UNSETENV): Likewise.
52092
52093 2008-02-24  Bruno Haible  <bruno@clisp.org>
52094
52095         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52096
52097 2008-02-20  Bob Proulx  <bob@proulx.com>
52098
52099         Enable use of older two part flavor 'git describe'.
52100         * build-aux/git-version-gen: If using the older two part flavor of
52101         git version then recreate the third part now present in the
52102         newer three part flavor of git describe.
52103
52104 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52105
52106         * lib/fts.c (fts_build): Typo correction to comment.
52107
52108 2008-02-17  Bruno Haible  <bruno@clisp.org>
52109
52110         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52111         generating no-op conflicts.
52112
52113 2008-02-17  Bruno Haible  <bruno@clisp.org>
52114
52115         Speed up by 10%.
52116         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52117         result_entries, rather than an index-based loop.
52118
52119 2008-02-17  Bruno Haible  <bruno@clisp.org>
52120
52121         Speed up by 25%.
52122         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52123         'hashcode_cached'.
52124         (entry_create): New function.
52125         (entry_hashcode): Use the cached hashcode if possible.
52126         (read_changelog_file, try_split_merged_entry): Use entry_create.
52127
52128 2008-02-17  Bruno Haible  <bruno@clisp.org>
52129
52130         Speed up from O(n^2) to O(n) for long ChangeLog files.
52131         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52132         (read_changelog_file): Change implementation of entries_reversed list
52133         to rbtreehash.
52134         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52135
52136 2008-02-17  Bruno Haible  <bruno@clisp.org>
52137
52138         New option --split-merged-entry.
52139         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52140         (find_paragraph_end, try_split_merged_entry): New functions.
52141         (long_options): Add option --split-merged-entry.
52142         (usage): Document option --split-merged-entry.
52143         (main): Implement option --split-merged-entry.
52144         Reported by Eric Blake.
52145
52146 2008-02-17  Bruno Haible  <bruno@clisp.org>
52147
52148         * lib/git-merge-changelog.c: Include c-strstr.h.
52149         (main): Support the "git pull --rebase" situation.
52150         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52151         Reported by Eric Blake.
52152
52153 2008-02-16  Eric Blake  <ebb9@byu.net>
52154
52155         Avoid doubling \ in common case of "c-maybe" quoting style.
52156         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52157         eliding outer quotes.
52158         * lib/quotearg.h: Document this.
52159         * tests/test-quotearg.c (result_strings, inputs, results_g)
52160         (flag_results, locale_results): Test it by adding a new string to
52161         each test group.
52162         (compare_strings): Test new string.
52163
52164 2008-02-13  Eric Blake  <ebb9@byu.net>
52165
52166         Avoid trigraph quoting in default output.
52167         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52168         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52169         unless explicitly requested.
52170         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52171
52172 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52173
52174         Don't rely on signed integer overflowing to negative value.
52175         * lib/getugroups.c (getugroups): Include <limits.h>.
52176         Instead, compare against INT_MAX, and increment only if the test passes.
52177
52178 2008-02-13  Jim Meyering  <meyering@redhat.com>
52179         and Eric Blake  <ebb9@byu.net>
52180
52181         Avoid shadowing warning and compile errors on Linux.
52182         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52183         forwarding macros on Linux.
52184         (dcgettext): Define a stub, for Linux.
52185         (results_g, main): Avoid warnings.
52186
52187 2008-02-12  Eric Blake  <ebb9@byu.net>
52188
52189         Silence warning in last patch.
52190         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52191
52192         Quotearg part 4: add tests, fix c-maybe colon quoting.
52193         * lib/quotearg.h: Improve documentation.
52194         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52195         escapes when adding outer quotes.  When quoting trigraphs, use
52196         valid C notation.  When quoting NUL, omit extra characters if next
52197         character is not digit.  Alter prototype.
52198         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52199         callers.
52200         * modules/quotearg-tests: New module.
52201         * tests/test-quotearg.c: New test.
52202
52203 2008-02-07  Eric Blake  <ebb9@byu.net>
52204
52205         Quotearg part 3: add flag to control outer quote elision.
52206         * lib/quotearg.h (c_maybe_quoting_style): New style.
52207         (enum quoting_flags): Better documentation of flags.
52208         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52209         c-maybe style.
52210         (quotearg_buffer_restyled): Handle new flag to elide outer
52211         quotes.
52212
52213         Quotearg part 2: add flag that can control NUL elision.
52214         * lib/quotearg.h (set_quoting_flags): New prototype.
52215         * lib/quotearg.c (struct quoting_options): Add flag field.
52216         (set_quoting_flags): New function.
52217         (quotearg_buffer_restyled): Add flags parameter.
52218         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52219         (quotearg_n_options): Set the flag, since length cannot be
52220         returned.
52221         (quoting_options_from_style): Default flags correctly.
52222
52223         Quotearg part 1: more wrappers, restore quotearg_char state.
52224         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52225         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52226         (quotearg_colon_mem): New wrappers.
52227         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52228         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52229         functions.
52230         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52231         (quotearg_colon_mem): New functions.
52232
52233 2008-02-11  Bruno Haible  <bruno@clisp.org>
52234
52235         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52236         library in the current directory: it does not work with parallel make.
52237         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52238
52239 2008-02-11  Bruno Haible  <bruno@clisp.org>
52240
52241         * .gitattributes: New file.
52242
52243 2008-02-11  Jim Meyering  <meyering@redhat.com>
52244
52245         useless-if-before-free: Fix reversed exit values.
52246         * build-aux/useless-if-before-free: Use correct values
52247         for EXIT_MATCH and EXIT_NO_MATCH.
52248
52249         * build-aux/useless-if-before-free: Close stdout carefully.
52250
52251 2008-02-10  Bruno Haible  <bruno@clisp.org>
52252
52253         New module 'git-merge-changelog'.
52254         * modules/git-merge-changelog: New file.
52255         * lib/git-merge-changelog.c: New file.
52256
52257 2008-02-10  Jim Meyering  <meyering@redhat.com>
52258
52259         useless-if-before-free: New option: --list (-l).
52260
52261         useless-if-before-free: Don't exit immediately upon open failure.
52262         * build-aux/useless-if-before-free: Exit 2 for errors.
52263         Upon failure to open a file, don't exit immediately.
52264         Rather, just warn and continue with any remaining files.
52265
52266 2008-02-10  Bruno Haible  <bruno@clisp.org>
52267
52268         New abstract list operation 'node_set_value'.
52269         * lib/gl_list.h (gl_list_node_set_value): New function.
52270         (struct gl_list_implementation): New field node_set_value.
52271         * lib/gl_list.c (gl_list_node_set_value): New function.
52272         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52273         (gl_array_list_implementation): Update.
52274         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52275         (gl_carray_list_implementation): Update.
52276         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52277         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52278         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52279         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52280         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52281         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52282         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52283         Update.
52284         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52285         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52286         (gl_sublist_list_implementation): Update.
52287
52288 2008-02-10  Bruno Haible  <bruno@clisp.org>
52289
52290         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52291         Needed when ELEMENT is #defined to 'some_type *'.
52292
52293 2008-02-10  Jim Meyering  <meyering@redhat.com>
52294
52295         New script and module: useless-if-before-free
52296         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52297         * build-aux/useless-if-before-free: New file.
52298         * modules/useless-if-before-free: New file.
52299
52300         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52301
52302         xstrtol_error: Fix typo.
52303         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52304         s/exit_failure/exit_status/.
52305
52306 2008-02-09  Jim Meyering  <meyering@redhat.com>
52307
52308         New script and module: gitlog-to-changelog
52309         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52310         * modules/gitlog-to-changelog: New file.
52311         * build-aux/gitlog-to-changelog: New file.
52312
52313 2008-02-08  Jim Meyering  <meyering@redhat.com>
52314
52315         Avoid two "parameter unused" warnings.
52316         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52317         Mark "st" as used.
52318
52319         Use "git COMMAND", not "git-COMMAND".
52320         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52321         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52322         * build-aux/git-version-gen: Use "git status", not "git-status".
52323
52324 2008-02-07  Bruno Haible  <bruno@clisp.org>
52325
52326         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52327         Avoids a crash on Windows Vista.
52328         Reported by Adam Strzelecki <ono@java.pl> via
52329         Simon Josefsson <simon@josefsson.org>.
52330
52331 2008-02-06  Bruno Haible  <bruno@clisp.org>
52332
52333         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52334         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52335         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52337         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52338         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52339         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52340         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52341         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52342         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52343         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52344         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52345         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52346         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52347         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52348         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52349         left-adjust flag.
52350         * tests/test-snprintf-posix.h (test_function): Likewise.
52351         * tests/test-sprintf-posix.h (test_function): Likewise.
52352         * tests/test-vasprintf-posix.c (test_function): Likewise.
52353         * doc/posix-functions/fprintf.texi: Update.
52354         * doc/posix-functions/printf.texi: Update.
52355         * doc/posix-functions/snprintf.texi: Update.
52356         * doc/posix-functions/sprintf.texi: Update.
52357         * doc/posix-functions/vfprintf.texi: Update.
52358         * doc/posix-functions/vprintf.texi: Update.
52359         * doc/posix-functions/vsnprintf.texi: Update.
52360         * doc/posix-functions/vsprintf.texi: Update.
52361         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52362
52363 2008-02-06  Bruno Haible  <bruno@clisp.org>
52364
52365         Fix bug introduced on 2008-01-26.
52366         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52367
52368 2008-02-06  Bruno Haible  <bruno@clisp.org>
52369
52370         Fix bug introduced on 2007-06-10.
52371         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52372         !NEED_PRINTF_FLAG_ZERO.
52373
52374 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52375
52376         getloadavg: use libperfstat on AIX5
52377         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52378
52379 2008-02-03  Bruno Haible  <bruno@clisp.org>
52380
52381         * lib/diffseq.h: Add comments about required #includes.
52382         Reported by Michael Biggs <gnulib@doubleplum.net>.
52383
52384 2008-02-01  Bruno Haible  <bruno@clisp.org>
52385
52386         * users.txt: Add gnuit.
52387
52388 2008-01-31  Bruno Haible  <bruno@clisp.org>
52389
52390         * lib/md4.c (set_uint32): Mark as inline.
52391         * lib/md5.c (set_uint32): Likewise.
52392         * lib/sha1.c (set_uint32): Likewise.
52393         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52394         * m4/md5.m4 (gl_MD5): Likewise.
52395         * m4/sha1.m4 (gl_SHA1): Likewise.
52396
52397 2008-01-31  Jim Meyering  <meyering@redhat.com>
52398
52399         Use "sizeof VAR", rather than a literal "4".
52400         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52401         * lib/md4.c (md4_read_ctx): Likewise.
52402         * lib/sha1.c (sha1_read_ctx): Likewise.
52403
52404 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52405
52406         * tests/test-sha1.c: New file, based on test-md5.c.
52407
52408         * modules/crypto/sha1-tests: New file.
52409
52410 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52411
52412         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52413
52414 2008-01-31  Jim Meyering  <meyering@redhat.com>
52415
52416         Prefer "sizeof v" over the equivalent "4".
52417         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52418         * lib/md5.c (set_uint32): Likewise.
52419         * lib/sha1.c (set_uint32): Likewise.
52420
52421 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52422
52423         * lib/sha1.c (set_uint32): Mark function as static.
52424
52425 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52426
52427         md2: clarify comments to say that alignment is not required.
52428         * lib/md2.h: Remove warning about alignment in comment.
52429         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52430         never been required.
52431
52432 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52433
52434         md4: adapt alignment constraint fix from sha1.
52435         * lib/md4.c (set_uint32): New function, from sha1.c
52436         (md4_read_ctx): Use it.
52437         (md4_finish_ctx): Doc fix.
52438         * lib/md4.h: Doc fix.
52439
52440 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52441
52442         md5: adapt alignment constraint fix from sha1.
52443         * lib/md5.c (set_uint32): New function, from sha1.c
52444         (md5_read_ctx): Use it.
52445         (md5_finish_ctx): Doc fix.
52446         * lib/md5.h: Doc fix.
52447
52448 2008-01-30  Peter Palfrader  <weasel@debian.org>
52449
52450         sha1: remove the result buffer alignment constraint
52451         * lib/sha1.c (set_uint32): New function.
52452         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52453         constraint.
52454         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52455         * lib/sha1.h: Likewise.
52456
52457 2008-01-30  Andreas Schwab  <schwab@suse.de>
52458             Bruno Haible  <bruno@clisp.org>
52459
52460         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52461         correct definition of LDBL_MIN_EXP.
52462
52463 2008-01-30  Karl Berry  <karl@gnu.org>
52464
52465         * config/srclist-update: try to preserve x bit on updates.
52466         * config/srclistvars.sh: update for karl.
52467
52468 2008-01-29  Jim Meyering  <meyering@redhat.com>
52469
52470         vasnprintf.c: Avoid warning about unused label
52471         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52472         "overflow" label definition and associated code with the
52473         same cpp condition that guards the sole use of that label.
52474
52475 2008-01-26  Bruno Haible  <bruno@clisp.org>
52476
52477         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52478         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52479         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52480         * lib/isnanl-nolibm.h (isnanl): Likewise.
52481         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52482
52483 2008-01-26  Bruno Haible  <bruno@clisp.org>
52484
52485         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52486         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52487
52488 2008-01-26  Bruno Haible  <bruno@clisp.org>
52489
52490         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52491         GCC >= 4.0 built-in.
52492         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52493
52494 2008-01-26  Bruno Haible  <bruno@clisp.org>
52495
52496         Rename isnan, applicable to 'double' only, to isnand.
52497         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52498         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52499         (configure.ac): Update.
52500         (Include): Replace "isnan.h" with "isnand.h".
52501         * m4/isnand.m4: Renamed from m4/isnan.m4.
52502         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52503         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52504         instead of isnan.c.
52505         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52506         instead of HAVE_ISNAN_IN_LIBC.
52507         (isnand): Renamed from isnan.
52508         * lib/isnand.c: New file.
52509         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52510         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52511         (Makefile.am): Update.
52512         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52513         Include isnand.h instead of isnan.h.
52514         (main): Test isnand instead of isnan.
52515         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52516         isnan-nolibm.
52517         * modules/frexp (Depends-on): Likewise.
52518         * modules/frexp-tests (Depends-on): Likewise.
52519         * modules/frexp-nolibm (Depends-on): Likewise.
52520         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52521         * modules/isfinite (Depends-on): Likewise.
52522         * modules/round-tests (Depends-on): Likewise.
52523         * modules/signbit (Depends-on): Likewise.
52524         * modules/signbit-tests (Depends-on): Likewise.
52525         * modules/snprintf-posix (Depends-on): Likewise.
52526         * modules/sprintf-posix (Depends-on): Likewise.
52527         * modules/trunc-tests (Depends-on): Likewise.
52528         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52529         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52530         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52531         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52533         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52534         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52535         * modules/vasnprintf-posix (Depends-on): Likewise.
52536         * modules/vasprintf-posix (Depends-on): Likewise.
52537         * modules/vfprintf-posix (Depends-on): Likewise.
52538         * modules/vsnprintf-posix (Depends-on): Likewise.
52539         * modules/vsprintf-posix (Depends-on): Likewise.
52540         * lib/frexp.c: Include isnand.h instead of isnan.h.
52541         (ISNAN): Set to isnand instead of isnan.
52542         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52543         (gl_isfinited): Use isnand instead of isnan.
52544         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52545         (gl_signbitd): Use isnand instead of isnan.
52546         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52547         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52548         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52549         (main): Use isnand instead of isnan.
52550         * tests/test-round1.c: Include isnand.h.
52551         (main): Use isnand instead of isnan.
52552         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52553         (ISNAN): Set to isnand instead of isnan.
52554         * tests/test-trunc1.c: Include isnand.h.
52555         (main): Use isnand instead of isnan.
52556         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52557         (equal): Use isnand instead of isnan.
52558         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52559         isnand-nolibm.
52560         * NEWS: Mention the change.
52561
52562 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52563             Bruno Haible  <bruno@clisp.org>
52564
52565         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52566         the GCC builtins for signbits are present and set
52567         REPLACE_SIGNBIT_USING_GCC if so.
52568         * lib/math.in.h (signbit): Define using GCC builtins if
52569         REPLACE_SIGNBIT_USING_GCC is set.
52570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52571         REPLACE_SIGNBIT_USING_GCC.
52572         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52573
52574 2008-01-25  Jim Meyering  <meyering@redhat.com>
52575
52576         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52577         * lib/poll.c: Include <config.h>, not "config.h".
52578         * tests/test-getaddrinfo.c: Likewise.
52579
52580 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52581
52582         * modules/sockets-tests: New file.
52583
52584 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52585
52586         * modules/sockets: New module, can be used to call WSA_Startup and
52587         WSA_Cleanup when needed.
52588
52589         * lib/sockets.h, lib/sockets.c: New files.
52590
52591         * m4/sockets.m4: New file.
52592
52593         * tests/test-sockets.c: New file.
52594
52595 2008-01-19  Bruno Haible  <bruno@clisp.org>
52596
52597         * doc/posix-headers: Renamed from doc/headers.
52598         * doc/posix-functions: Renamed from doc/functions.
52599         * doc/gnulib.texi: Update.
52600
52601 2008-01-19  Bruno Haible  <bruno@clisp.org>
52602
52603         * doc/glibc-functions/strcasestr.texi: Include contents of
52604         doc/functions/strcasestr.texi, fixing the list of platforms.
52605         * doc/functions/strcasestr.texi: Remove file.
52606
52607 2008-01-19  Bruno Haible  <bruno@clisp.org>
52608
52609         * doc/glibc-functions/memmem.texi: Include contents of
52610         doc/functions/memmem.texi.
52611         * doc/functions/memmem.texi: Remove file.
52612
52613 2008-01-18  Bruno Haible  <bruno@clisp.org>
52614
52615         * doc/glibc-functions/*.texi: New files.
52616         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52617         to use the new files.
52618
52619 2008-01-17  Bruno Haible  <bruno@clisp.org>
52620
52621         * tests/test-gethostname.c (main): Fix printf statement.
52622
52623 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52624
52625         * modules/gethostname-tests: New file.
52626
52627         * tests/test-gethostname.c: New file.
52628
52629 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52630
52631         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52632         used by the UNAME case.  Reported by Bruno Haible
52633         <bruno@clisp.org>.
52634
52635 2008-01-17  Eric Blake  <ebb9@byu.net>
52636
52637         Convert c-strcasestr to be more efficient.
52638         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52639         (Depends-on): Add c-strcase, remove malloca, strnlen.
52640         * tests/test-c-strcasestr.c (main): Enhance test.
52641         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52642
52643 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52644
52645         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52646         Use it in creating po/Makevars.
52647
52648 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52649
52650         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52651         Applications that requires it should initialize libgcrypt
52652         manually.
52653
52654 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52655
52656         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52657
52658 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52659
52660         Fix problem with getdate on mingw32 reported by Simon Josefsson
52661         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52662         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52663         tzname", when deciding whether to declare tzname.
52664         * lib/strftime.c (tzname): Likewise.
52665
52666 2008-01-15  Bruno Haible  <bruno@clisp.org>
52667
52668         Work around a MacOS X 10.5 bug in frexpl().
52669         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52670         * doc/functions/frexpl.texi: Document the bug.
52671         Reported by Elias Pipping <pipping@gentoo.org>.
52672
52673 2008-01-14  Eric Blake  <ebb9@byu.net>
52674
52675         Touch up previous patch.
52676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52677         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52678
52679         Convert strcasestr module to use Two-Way algorithm.
52680         * modules/strcasestr-simple: New module, based on the old
52681         strcasestr, but with Two-Way rather than KMP.
52682         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52683         * lib/string.in.h (rpl_strcasestr): Declare.
52684         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52685         performance.
52686         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52687         * modules/string (Makefile.am): Support strcasestr.
52688         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52689         * modules/strcasestr-tests (Depends-on): Check for alarm.
52690         * tests/test-strcasestr.c: Augment test.
52691         * lib/str-two-way.h: Clean up stray macro.
52692         * NEWS: Document new module.
52693         * MODULES.html.sh (string handling): Likewise.
52694         * doc/functions/strcasestr.texi: New file.
52695         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52696         here, since it is not a POSIX function.
52697
52698 2008-01-14  Colin Watson  <cjwatson@debian.org>
52699             Bruno Haible  <bruno@clisp.org>
52700
52701         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52702         works fine; if not, set REPLACE_STRSIGNAL.
52703         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52705         REPLACE_STRSIGNAL.
52706         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52707         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52708         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52709
52710 2008-01-14  Bruno Haible  <bruno@clisp.org>
52711
52712         * modules/strsignal (Include): Change to <string.h>.
52713
52714 2008-01-14  Colin Watson  <cjwatson@debian.org>
52715
52716         * modules/argp (Notice): Add a notice recommending to change
52717         XGETTEXT_OPTIONS.
52718         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52719
52720 2008-01-13  Colin Watson  <cjwatson@debian.org>
52721
52722         * modules/strsignal-tests: New file.
52723         * tests/test-strsignal.c: New file.
52724
52725         * lib/strsignal.c: New file, from glibc with modifications.
52726         * lib/siglist.h: New file, from glibc with modifications.
52727         * lib/string.in.h (strsignal): New declaration.
52728         * m4/strsignal.m4: New file.
52729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52730         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52731         * modules/strsignal: New file.
52732         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52733         HAVE_DECL_STRSIGNAL.
52734
52735 2008-01-13  Bruno Haible  <bruno@clisp.org>
52736
52737         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52738         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52739         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52740         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52741
52742 2008-01-13  Bruno Haible  <bruno@clisp.org>
52743
52744         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52745         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52746         * lib/argp.h (__attribute__): Likewise.
52747         * lib/c-stack.c (__attribute__): Likewise.
52748         * lib/error.h (__attribute__): Likewise.
52749         * lib/fts.c (__attribute__): Likewise.
52750         * lib/openat.h (__attribute__): Likewise.
52751         * lib/stdio.in.h (__attribute__): Likewise.
52752         * lib/string.in.h (__attribute__): Likewise.
52753         * lib/utimens.c (__attribute__): Likewise.
52754         * lib/vasnprintf.h (__attribute__): Likewise.
52755         * lib/xalloc.h (__attribute__): Likewise.
52756         * lib/xprintf.h (__attribute__): Likewise.
52757         * lib/xstrtol.h (__attribute__): Likewise.
52758         * lib/xvasprintf.h (__attribute__): Likewise.
52759
52760 2008-01-12  Bruno Haible  <bruno@clisp.org>
52761
52762         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52763         * doc/glibc-headers/a.out.texi: New file.
52764         * doc/glibc-headers/aliases.texi: New file.
52765         * doc/glibc-headers/alloca.texi: New file.
52766         * doc/glibc-headers/ar.texi: New file.
52767         * doc/glibc-headers/argp.texi: New file.
52768         * doc/glibc-headers/argz.texi: New file.
52769         * doc/glibc-headers/byteswap.texi: New file.
52770         * doc/glibc-headers/crypt.texi: New file.
52771         * doc/glibc-headers/endian.texi: New file.
52772         * doc/glibc-headers/envz.texi: New file.
52773         * doc/glibc-headers/err.texi: New file.
52774         * doc/glibc-headers/error.texi: New file.
52775         * doc/glibc-headers/execinfo.texi: New file.
52776         * doc/glibc-headers/fpu_control.texi: New file.
52777         * doc/glibc-headers/fstab.texi: New file.
52778         * doc/glibc-headers/fts.texi: New file.
52779         * doc/glibc-headers/getopt.texi: New file.
52780         * doc/glibc-headers/ieee754.texi: New file.
52781         * doc/glibc-headers/ifaddrs.texi: New file.
52782         * doc/glibc-headers/libintl.texi: New file.
52783         * doc/glibc-headers/mcheck.texi: New file.
52784         * doc/glibc-headers/mntent.texi: New file.
52785         * doc/glibc-headers/obstack.texi: New file.
52786         * doc/glibc-headers/paths.texi: New file.
52787         * doc/glibc-headers/printf.texi: New file.
52788         * doc/glibc-headers/pty.texi: New file.
52789         * doc/glibc-headers/resolv.texi: New file.
52790         * doc/glibc-headers/shadow.texi: New file.
52791         * doc/glibc-headers/sysexits.texi: New file.
52792         * doc/glibc-headers/ttyent.texi: New file.
52793
52794 2008-01-12  Jim Meyering  <meyering@redhat.com>
52795
52796         announce-gen: emit Gnulib's git-based version string.
52797         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52798         New option --gnulib-version=V, where V is expected to be
52799         the output of running git describe in the gnulib directory.
52800         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52801         not useful, and plan to stop publishing an xdelta file with each
52802         coreutils release.
52803
52804         * build-aux/announce-gen: Also check for lzma-compressed files.
52805
52806 2008-01-11  Bruno Haible  <bruno@clisp.org>
52807
52808         * tests/test-memmem.c (main): Increase maximum allowed time.
52809         * tests/test-strstr.c (main): Likewise.
52810
52811 2008-01-11  Bruno Haible  <bruno@clisp.org>
52812
52813         * doc/functions/memmem.texi: Add more precisions about platforms.
52814         * doc/functions/strstr.texi: Likewise.
52815
52816 2008-01-10  Eric Blake  <ebb9@byu.net>
52817
52818         * m4/strstr.m4: Delete cruft from copy-n-paste.
52819         Reported by Bruno Haible.
52820
52821 2008-01-10  Bruno Haible  <bruno@clisp.org>
52822
52823         Make c-strstr rely on strstr.
52824         * lib/c-strstr.c: Don't include str-kmp.h.
52825         (c_strstr): Define in terms of strstr.
52826         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52827         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52828
52829 2008-01-10  Bruno Haible  <bruno@clisp.org>
52830
52831         * doc/gnulib.texi (String Functions in C Locale): New section.
52832         * doc/c-ctype.texi: New file.
52833         * doc/c-strcase.texi: New file.
52834         * doc/c-strcaseeq.texi: New file.
52835         * doc/c-strcasestr.texi: New file.
52836         * doc/c-strstr.texi: New file.
52837         * doc/c-strtod.texi: New file.
52838         * doc/c-strtold.texi: New file.
52839
52840 2008-01-10  Eric Blake  <ebb9@byu.net>
52841
52842         * lib/relocatable.h: Fix a comment.
52843
52844 2008-01-10  Eric Blake  <ebb9@byu.net>
52845
52846         Share two-way algorithm.
52847         * lib/str-two-way.h: New file, merged from...
52848         * lib/memmem.c: ...here...
52849         * lib/strstr.c: ...and here.
52850         * modules/memmem (Files): Use it.
52851         * modules/strstr (Files): Likewise.
52852
52853         Avoid quadratic strstr implementations.
52854         * lib/strstr.c: New file.
52855         * m4/strstr.m4: Likewise.
52856         * modules/strstr: Likewise.
52857         * modules/strstr-tests: Likewise.
52858         * tests/test-strstr.c: Likewise.
52859         * lib/string.in.h (rpl_strstr): Declare.
52860         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52861         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52862         * modules/string (Makefile.am): Likewise.
52863         * MODULES.html.sh (string handling): Mention new module.
52864         * doc/functions/strstr.texi (strstr): Document the bug.
52865
52866 2008-01-10  Bruno Haible  <bruno@clisp.org>
52867
52868         * lib/relocatable.h (relocate): State whether result is freshly
52869         allocated or not.
52870         * lib/relocatable.c (relocate): Return a freshly allocated string
52871         instead of a pointer to a privately held string.
52872         Reported by Sylvain Beucler <beuc@gnu.org>.
52873
52874 2008-01-10  Colin Watson  <cjwatson@debian.org>
52875
52876         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52877         s/S_ISNLK/S_ISLNK/.
52878
52879 2008-01-09  Bruno Haible  <bruno@clisp.org>
52880
52881         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52882         and other files.
52883         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52884         if it's only a guess.
52885         * modules/memmem: Simplify by depending on memmem-simple.
52886
52887 2008-01-09  Bruno Haible  <bruno@clisp.org>
52888
52889         Work around OpenBSD 4.0 tdelete() bug.
52890         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52891         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52892         macros and don't redefine the enum values.
52893         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52894         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52895         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52896
52897 2008-01-09  Bruno Haible  <bruno@clisp.org>
52898
52899         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52900         (main): Don't perform the tests if setlocale did not install a UTF-8
52901         locale. Needed on OpenBSD 4.0.
52902         * modules/wcwidth-tests (Depends-on): Add localcharset.
52903
52904 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52905
52906         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52907         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52908         * NEWS: announce this.
52909         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52910
52911 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52912         and Eric Blake  <ebb9@byu.net>
52913
52914         Add memmem-simple module.
52915         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52916         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52917         * modules/memmem-simple: New file.
52918         * modules/memmem (Description): Tweak.
52919         * MODULES.html.sh (string handling): Mention new module.
52920         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52921         addressed by memmem-simple.
52922         * NEWS: Document the difference.
52923
52924 2008-01-09  Eric Blake  <ebb9@byu.net>
52925
52926         Give gcc some memmem optimization hints.
52927         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52928         (strcasestr): Declare as pure.
52929         * modules/memmem (Maintainer): Claim my implementation.
52930
52931 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52932
52933         Support AIX 6.1 and higher.
52934         * build-aux/config.libpath: Likewise.
52935         * build-aux/config.rpath: Likewise.
52936
52937 2008-01-08  Jim Meyering  <meyering@redhat.com>
52938             Bruno Haible  <bruno@clisp.org>
52939
52940         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
52941         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
52942         Reported by Peter Fales in
52943         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
52944
52945 2008-01-08  Bruno Haible  <bruno@clisp.org>
52946
52947         * modules/unictype/category-of (Depends-on): Add
52948         unictype/category-none.
52949         * modules/unictype/category-and-tests (Depends-on): Add
52950         unictype/category-{L,N,Lu,Nd}.
52951         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
52952         * modules/unictype/category-or-tests (Depends-on): Add
52953         unictype/category-{L,N}.
52954         * modules/unictype/category-name-tests (Depends-on): Add
52955         unictype/category-{Z,Nl}.
52956         Reported by Simon Josefsson.
52957
52958 2008-01-08  Bruno Haible  <bruno@clisp.org>
52959
52960         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
52961         convention better.
52962         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
52963         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
52964         Reported by Peter Miller <millerp@canb.auug.org.au>.
52965
52966 2008-01-08  Eric Blake  <ebb9@byu.net>
52967
52968         Rewrite memmem to guarantee linear complexity without malloc.
52969         * lib/memmem.c (memmem): Use Two-Way rather than
52970         Knuth-Morris-Pratt, to allow O(1) space usage.
52971         (critical_factorization, two_way_short_needle)
52972         (two_way_long_needle): New functions.
52973         (knuth_morris_pratt): Delete.
52974         * modules/memmem (Depends-on): No longer need malloca or stdbool.
52975         Add stdint.
52976         * tests/test-memmem.c (main): Add tests for periodic needle and
52977         sublinear performance.
52978         * doc/functions/memmem.texi (memmem): Document other deficiencies
52979         in cygwin and older glibc.
52980
52981 2008-01-08  Bruno Haible  <bruno@clisp.org>
52982
52983         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
52984         augmentation.
52985
52986 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
52987
52988         Add a configure time option: --disable-acl.
52989         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
52990         AC_ARG_ENABLE(acl).
52991
52992 2008-01-06  Simon Josefsson  <simon@josefsson.org>
52993
52994         * tests/test-localename.c: Don't include obsolete "setenv.h".
52995
52996         * modules/localename-tests (Depends-on): Need unsetenv.
52997
52998 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52999
53000         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53001
53002 2008-01-06  Colin Watson  <cjwatson@debian.org>
53003
53004         * users.txt: Add man-db.
53005
53006 2008-01-07  Bruno Haible  <bruno@clisp.org>
53007
53008         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53009         previous section name.
53010
53011 2008-01-07  Bruno Haible  <bruno@clisp.org>
53012
53013         * lib/progname.c (set_program_name): Don't strip off a leading
53014         "lt-" prefix outside a .libs directory.
53015         Suggested by Paul Eggert.
53016
53017 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53018             Bruno Haible  <bruno@clisp.org>
53019
53020         Improve memory cleanup in 'relocatable' module.
53021         * lib/relocatable.h (compute_curr_prefix): Change return type to
53022         'char *'.
53023         * lib/relocatable.c (compute_curr_prefix): Change return type to
53024         'char *'. Free curr_installdir after use.
53025         (relocate): Free curr_prefix_better after use.
53026         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53027
53028 2008-01-01  Bruno Haible  <bruno@clisp.org>
53029
53030         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53031         failure on older glibc systems.
53032         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53033
53034 2008-01-05  Eric Blake  <ebb9@byu.net>
53035
53036         Avoid quadratic system memmem.
53037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53038         Reported by Ralf Wildenhues.
53039
53040         Fix memmem test for mingw.
53041         * modules/memmem-tests (configure.ac): Check for alarm.
53042         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53043         it.
53044         * doc/functions/memmem.texi: New file.
53045         * doc/gnulib.texi (Function Substitutes): Add memmem.
53046         Reported by Bruno Haible.
53047
53048 2008-01-04  Bruno Haible  <bruno@clisp.org>
53049
53050         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53051         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53052         gl_HEADER_STRING_H_DEFAULTS.
53053
53054 2008-01-04  Eric Blake  <ebb9@byu.net>
53055
53056         Shorten duration of memmem test.
53057         * tests/test-memmem.c (main): Use alarm to declare failure if test
53058         is taking too long.
53059         Reported by Ralf Wildenhues.
53060
53061 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53062
53063         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53064         string, needed by strerror.
53065
53066 2008-01-03  Colin Watson  <cjwatson@debian.org>
53067             Bruno Haible  <bruno@clisp.org>
53068
53069         * doc/gnulib-tool.texi (Localization): New section.
53070
53071 2008-01-02  Bruno Haible  <bruno@clisp.org>
53072
53073         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53074         variables to 'unsigned char *' type.
53075         Reported by Paul Eggert.
53076
53077 2008-01-02  Jim Meyering  <jim@meyering.net>
53078
53079         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53080
53081 2007-12-31  Jim Meyering  <jim@meyering.net>
53082
53083         Avoid use of private FTS type name.
53084         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53085
53086 2007-12-30  Karl Berry  <karl@gnu.org>
53087
53088         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53089         work around defect in Texinfo and/or the standalone Info browser.
53090
53091 2007-12-30  Bruno Haible  <bruno@clisp.org>
53092
53093         Unify 5 copies of the KMP code.
53094         * lib/str-kmp.h: New file.
53095         * lib/c-strcasestr.c: Include str-kmp.h.
53096         (knuth_morris_pratt): Remove function.
53097         (c_strcasestr): Update.
53098         * lib/c-strstr.c: Include str-kmp.h.
53099         (knuth_morris_pratt): Remove function.
53100         (c_strcasestr): Update.
53101         * lib/mbscasestr.c: Include str-kmp.h.
53102         (knuth_morris_pratt_unibyte): Remove function.
53103         * lib/mbsstr.c: Include str-kmp.h.
53104         (knuth_morris_pratt_unibyte): Remove function.
53105         * lib/strcasestr.c: Include str-kmp.h.
53106         (knuth_morris_pratt): Remove function.
53107         (strcasestr): Update.
53108         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53109         * modules/c-strstr (Files): Likewise.
53110         * modules/mbscasestr (Files): Likewise.
53111         * modules/mbsstr (Files): Likewise.
53112         * modules/strcasestr (Files): Likewise.
53113         Suggested by Paul Eggert.
53114
53115 2007-12-30  Bruno Haible  <bruno@clisp.org>
53116
53117         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53118         defined.
53119
53120 2007-12-30  Bruno Haible  <bruno@clisp.org>
53121
53122         * lib/xmalloca.h: Include xalloc.h.
53123         (xnmalloca): New macro.
53124
53125 2007-12-30  Bruno Haible  <bruno@clisp.org>
53126
53127         * lib/malloca.h (nmalloca): New macro.
53128         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53129         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53130         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53131         knuth_morris_pratt_multibyte): Likewise.
53132         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53133         knuth_morris_pratt_multibyte): Likewise.
53134         * lib/memmem.c (knuth_morris_pratt): Likewise.
53135         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53136
53137 2007-12-25  Bruno Haible  <bruno@clisp.org>
53138
53139         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53140         * lib/glob.c: Don't include openat.h.
53141         (link_exists2_p): Add back the code that deals with the
53142         !GLOB_ALTDIRFUNC case.
53143         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53144         let it do the filename concatenation.
53145         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53146         * modules/glob (Depends-on): Remove openat.
53147
53148 2007-12-31  Bruno Haible  <bruno@clisp.org>
53149
53150         * modules/dirfd (License): Change to LGPLv2+.
53151         Approved by Jim Meyering.
53152
53153 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53154
53155         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53156         when multiplying M by sizeof (size_t).
53157
53158 2007-12-10  Martin Lambers  <marlam@marlam.de>
53159
53160         Override getpagesize on mingw.
53161         * lib/getpagesize.c: New file.
53162         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53163         * modules/getpagesize (Files): Add lib/getpagesize.c.
53164         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53166         REPLACE_GETPAGESIZE.
53167         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53168
53169 2007-12-25  Bruno Haible  <bruno@clisp.org>
53170
53171         * modules/localcharset (Notice): New field.
53172         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53173         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53174
53175 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53176             Bruno Haible  <bruno@clisp.org>
53177
53178         Avoid using the syntax symbol() in formatted documentation.
53179         * MODULES.html.sh (func_module): When replacing symbol() with a
53180         hyperlink, remove the parentheses. Show an error if some remain.
53181         Recognize and render the '...' syntax.
53182         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53183         Rework. Add paragraph about GCC's inlining.
53184         * doc/alloca.texi: Likewise.
53185         * doc/error.texi: Remove parentheses from symbol reference.
53186         * doc/gnulib-intro.texi: Likewise.
53187         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53188         * modules/fnmatch (Description): Reword to say "the ... function".
53189         * modules/full-read (Description): Likewise.
53190         * modules/full-write (Description): Likewise.
53191         * modules/safe-read (Description): Likewise.
53192         * modules/safe-write (Description): Likewise.
53193         * modules/strchrnul (Description): Likewise.
53194         * modules/trim (Description): Likewise.
53195         * modules/error (Description): Remove parentheses from symbol
53196         references.
53197         * modules/verror (Description): Likewise.
53198         Reported by Karl Berry.
53199
53200 2007-12-25  Bruno Haible  <bruno@clisp.org>
53201
53202         Fixup after 2007-10-16 commit.
53203         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53204
53205 2007-12-24  Bruno Haible  <bruno@clisp.org>
53206
53207         Make --enable-relocatable work with DESTDIR.
53208         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53209         to compute installdir from destprog.
53210         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53211         also set the RELOC_DESTDIR variable.
53212         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53213
53214 2007-12-24  Bruno Haible  <bruno@clisp.org>
53215
53216         Fix link error due to xalloc_die().
53217         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53218         of xreadlink.
53219         * lib/relocwrapper.c: Update comments.
53220         * build-aux/install-reloc: Remove xreadlink.c from file list.
53221         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53222         xreadlink.c.
53223         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53224
53225 2007-12-24  Bruno Haible  <bruno@clisp.org>
53226
53227         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53228         * lib/setenv.h: Remove file.
53229         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53230         lib/setenv.h.
53231         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53232         (Depends-on): Add stdlib.
53233         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53234         gl_FUNC_UNSETENV.
53235         (Include): Replace setenv.h with <stdlib.h>.
53236         * modules/unsetenv: New file.
53237         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53238         * lib/unsetenv.c: Include <stdlib.h> first.
53239         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53240         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53241         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53242         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53243         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53244         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53246         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53247         * doc/functions/unsetenv.texi: Update.
53248         * modules/xsetenv (Depends-on): Add unsetenv.
53249         * modules/getdate (Depends-on): Likewise.
53250         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53251         * lib/xsetenv.c: Don't include setenv.h.
53252         * lib/getdate.y: Likewise.
53253         * lib/relocwrapper.c: Likewise.
53254         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53255         (Depends-on): Add stdlib.
53256         * NEWS: Mention the changes.
53257         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
53258
53259 2007-12-23  Bruno Haible  <bruno@clisp.org>
53260
53261         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53262         indentation.
53263
53264 2007-12-23  Bruno Haible  <bruno@clisp.org>
53265
53266         * lib/c-strcasestr.c: Add more comments.
53267         * lib/c-strstr.c: Likewise.
53268         * lib/mbscasestr.c: Likewise.
53269         * lib/mbsstr.c: Likewise.
53270         * lib/strcasestr.c: Likewise.
53271         * lib/memmem.c: Likewise.
53272
53273 2007-12-23  Bruno Haible  <bruno@clisp.org>
53274
53275         * tests/test-memmem.c: Include <string.h> first.
53276
53277 2007-12-22  Bruno Haible  <bruno@clisp.org>
53278
53279         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53280         the contents of $testsbase.
53281         Reported by Ralf Wildenhues.
53282
53283 2007-12-22  Bruno Haible  <bruno@clisp.org>
53284
53285         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53286         two variables local_ldadd_before, local_ldadd_last.
53287
53288 2007-12-20  Eric Blake  <ebb9@byu.net>
53289
53290         Work around circular library issue when cross-compiling.
53291         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53292         that progname.o does not need to pull in rpl_memcmp.
53293
53294 2007-12-19  Eric Blake  <ebb9@byu.net>
53295
53296         Fix memmem to avoid O(n^2) worst-case complexity.
53297         * lib/memmem.c (knuth_morris_pratt): New function.
53298         (memmem): Use it if first few naive iterations fail.
53299         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53300         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53301         * modules/memchr (License): Likewise.
53302         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53303         malloca.
53304         * tests/test-memmem.c: Rewrite, borrowing ideas from
53305         test-mbsstr1.c; the old version wouldn't even compile!
53306         * modules/memmem-tests: New file.
53307         * lib/string.in.h (rpl_memmem): Add declaration.
53308         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53310         REPLACE_MEMMEM.
53311
53312 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53313
53314         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53315         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53316         before any system include files, and undef after them all.  This
53317         should fix a problem on VMS reported by John E. Malmberg in
53318         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53319
53320 2007-12-17  Eric Blake  <ebb9@byu.net>
53321
53322         Revert addition of verify, for BSD/OS.
53323         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53324         can't handle large files, for the sake of obsolete platforms.
53325         * modules/fseeko (Depends-on): Remove verify.
53326         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53327         * doc/functions/ftello.texi (ftello): Likewise.
53328         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53329         Reported by Larry Jones.
53330
53331 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53332
53333         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53334         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53335
53336 2007-12-17  Jim Meyering  <meyering@redhat.com>
53337
53338         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53339         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53340         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53341         * modules/getcwd (Depends-on): Add openat.
53342         Reported by Petr Salinger.
53343
53344 2007-12-17  Bruno Haible  <bruno@clisp.org>
53345
53346         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53347         avoid a segmentation fault of the configure test on x86_64 systems.
53348
53349 2007-12-15  Jim Meyering  <meyering@redhat.com>
53350
53351         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53352
53353 2007-12-13  Eric Blake  <ebb9@byu.net>
53354
53355         Another fseek test.
53356         * tests/test-fseek.c (main): Also test ungetc handling.
53357         * tests/test-fseeko.c (main): Likewise.
53358         * modules/fseeko (Depends-on): Add verify.
53359         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53360         large.
53361         Reported by Larry Jones.
53362
53363         Fix fseeko on mingw.
53364         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53365         seek.
53366
53367         Beef up fseek tests.
53368         * tests/test-fseek.c (main): Also test eof handling.
53369         * tests/test-fseeko.c (main): Likewise.
53370         Reported by Larry Jones.
53371
53372 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53373
53374         Fix fseeko on BSD-based platforms.
53375         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53376         successful seek.
53377
53378 2007-12-12  Eric Blake  <ebb9@byu.net>
53379
53380         Allow circular dependency of separate libtests.a
53381         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53382         when use_libtests.
53383
53384 2007-12-11  Eric Blake  <ebb9@byu.net>
53385
53386         Fix bug with -0.0L in previous patch.
53387         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53388         * tests/test-isnan.c (main): Also test on zeroes.
53389         * tests/test-isnanf.c (main): Likewise.
53390         * tests/test-isnanl.h (main): Likewise.
53391
53392         Detect pseudo-denormals on x86 even when cross-compiling.
53393         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53394         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53395         invalid bit patterns that happen to satisfy ==.
53396
53397         Avoid link failures with separate libtests.a.
53398         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53399         last, to satisfy circular dependencies.
53400
53401 2007-12-11  Eric Blake  <ebb9@byu.net>
53402         and Bruno Haible  <bruno@clisp.org>
53403
53404         Fix OpenBSD 4.0 <float.h> handling of long double.
53405         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53406         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53407         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53408
53409 2007-12-11  Jim Meyering  <meyering@redhat.com>
53410
53411         * users.txt: Add libvirt.
53412
53413         Support versions of autoconf prior to 2.59c.
53414         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53415         if it is not already defined.
53416
53417 2007-12-09  Bruno Haible  <bruno@clisp.org>
53418
53419         Let 'gnulib-tool --import' collect sources needed for the tests in
53420         tests/ rather than in lib/.
53421         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53422         argument. If true, add rules to generate libtests.a, and put libtests.a
53423         into $(LDADD). Consider source files in subdirectories and set
53424         uses_subdirs.
53425         (func_emit_initmacro_start, func_emit_initmacro_end,
53426         func_emit_initmacro_done): Pass all arguments explicitly.
53427         (func_import): Determine two module lists main_modules,
53428         testsrelated_modules. Determine use_libtests. Determine two variables
53429         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53430         instead of just sed_transform_lib_file. Determine two variables
53431         main_files and testsrelated_files. Compute 'files' as the union of
53432         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53433         func_add_or_update. In the generated gnulib-comp.m4, collect the
53434         object files for tests/ in different variables than those for lib/.
53435         Substitute LIBTESTS_LIBDEPS.
53436         (func_create_testdir): Combine the uses_subdirs results from
53437         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53438
53439 2007-12-09  Bruno Haible  <bruno@clisp.org>
53440
53441         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53442         the build-aux directory.
53443
53444 2007-12-09  Bruno Haible  <bruno@clisp.org>
53445
53446         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53447         introduced on 2006-09-09.
53448
53449 2007-12-07  Jim Meyering  <meyering@redhat.com>
53450
53451         Let these macros work also with autoconf-2.59.
53452         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53453         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53454         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53455
53456 2007-12-06  Jim Meyering  <meyering@redhat.com>
53457
53458         Avoid a configure-time syntax error in gl_FUNC_ACL.
53459         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53460         function in each branch, before testing the cache variable.
53461
53462 2007-12-04  Eric Blake  <ebb9@byu.net>
53463
53464         Make scripts executable.
53465         * build-aux/config.guess: Add execute permissions.
53466         * build-aux/config.sub: Likewise.
53467         * build-aux/gendocs.sh: Likewise.
53468
53469         Fix frexp on mingw.
53470         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53471         cross-compiling.
53472         * doc/functions/frexp.texi (frexp): Document the bug.
53473
53474         Make cygwin fseeko check more reliable.
53475         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53476         version numbers, rather than unrelated feature check.
53477         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53478         * doc/functions/ftello.texi (ftello): Likewise.
53479         Reported by Bruno Haible.
53480
53481         * m4/strerror.m4: Bump version number.
53482
53483 2007-12-03  Bruno Haible  <bruno@clisp.org>
53484
53485         * doc/functions/mprotect.texi: Mention the mingw problem.
53486
53487 2007-12-03  Eric Blake  <ebb9@byu.net>
53488
53489         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53490         REPLACE_STRERROR is initialized before this macro.
53491
53492 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53493
53494         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53495         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53496         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53497         put -lsec in even for programs other than 'ls'.  This fixes a problem
53498         for gettext reported by Bruno Haible in
53499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53500         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53501         Add support for Solaris 10.  This isn't efficient, but should get the
53502         job done for now.
53503
53504 2007-12-03  James Youngman  <jay@gnu.org>
53505
53506         * doc/regexprops-generic.texi: change "an close-group" to "a
53507         close-group" and "illegal" to "not allowed".
53508
53509 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53510
53511         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53512         pr_byname.h. Needed for the rare case when the maintainer has done
53513         "make maintainer-clean" in the source directory and then attempts a
53514         build outside the source directory.
53515         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53516         scripts_byname.h.
53517
53518 2007-12-02  Martin Lambers <marlam@marlam.de>
53519             Bruno Haible  <bruno@clisp.org>
53520
53521         * lib/getpagesize.h: Remove file.
53522         * lib/unistd.in.h: Include declaration of getpagesize here.
53523         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53524         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53525         HAVE_SYS_PARAM_H.
53526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53527         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53528         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53529         (Depends-on): Add unistd.
53530         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53531         (Include): Use <unistd.h> instead of getpagesize.h.
53532         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53533         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53534         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53535         gl_GETPAGESIZE invocation, already handled by module dependency.
53536         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53537
53538 2007-12-02  Bruno Haible  <bruno@clisp.org>
53539
53540         * modules/strings-tests: New file.
53541         * tests/test-strings.c: New file.
53542
53543         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53544         * lib/strings.in.h: New file.
53545         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53546         * m4/strings_h.m4: New file.
53547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53548         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53549         * modules/strings: New file.
53550         * modules/string (Makefile.am): Update.
53551         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53552         Reported by Karl Berry.
53553
53554 2007-12-01  Eric Blake  <ebb9@byu.net>
53555
53556         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53557         accomodate fix in cygwin 1.5.25.
53558
53559 2007-12-01  Jim Meyering  <meyering@redhat.com>
53560
53561         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53562         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53563         that would inhibit utf8-optimization of a regexp containing line-
53564         or buffer-anchors, e.g., `^', `$'.
53565
53566 2007-11-30  Bruno Haible  <bruno@clisp.org>
53567
53568         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53569         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53570         glthread_recursive_lock_init.
53571         * lib/lock.c (glthread_recursive_lock_init)
53572         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53573         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53574
53575 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53576
53577         New function qset_acl, like set_acl but with syscall semantics.
53578         * lib/acl.h (qset_acl): New decl.
53579         * lib/acl.c (qset_acl): New function.
53580         (set_acl): Use new function.  Use more-consistent diagnostics.
53581
53582 2007-11-28  Jim Meyering  <meyering@redhat.com>
53583
53584         * modules/physmem (License): Change from GPL to LGPLv2+.
53585
53586 2007-11-26  Bruno Haible  <bruno@clisp.org>
53587
53588         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53589         'long double' type has excess precision.
53590         Reported by Jim Meyering in
53591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53592
53593 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53594
53595         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53596         Sync from <http://gnu.org/licenses>.
53597         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53598         with license text from same location.
53599         * doc/maintain.texi, doc/standards.texi:  Sync from
53600         <http://savannah.gnu.org/projects/gnustandards>.
53601
53602 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
53603         and Jim Meyering  <meyering@redhat.com>
53604
53605         Adjust getdate' grammar to accept a slightly more regular language.
53606         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53607         Before, the former was rejected.
53608         * lib/getdate.y (digits_to_date_time): New function, factored
53609         out of ...
53610         (number): ...here.  Just call digits_to_date_time.
53611         (hybrid): New non-terminal to handle an <unsigned number,
53612         signed relative offset> sequence consistently.
53613
53614 2007-11-18  Jim Meyering  <meyering@redhat.com>
53615
53616         Pull my changes from coreutils:
53617         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53618         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53619         use of $gnulib_tool_option_extras, so that it's separated from the
53620         preceding argument.
53621
53622         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53623         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53624         parent destination directories before copying a file into place.
53625
53626 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53627
53628         bootstrap: work also with 4-argument variant of AC_INIT
53629         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53630
53631 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53632
53633         Port test-getaddrinfo to Solaris.
53634         Problem reported by Bruno Haible in
53635         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53636         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53637         explanation of setting 'hints'.
53638         Don't reject an implementation merely because it returns EAI_SERVICE.
53639         (EAI_SERVICE): Define to 0 if not defined.
53640
53641 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53642
53643         The license of gnu-make and posix-shell is now "GPLed build tool".
53644         * modules/gnu-make (License): Likewise.
53645         * modules/posix-shell (License): Likewise.
53646
53647         New module posix-shell, for determining a POSIX shell
53648         or perhaps something that is close enough to a POSIX shell.
53649         * m4/posix-shell.m4: New file.
53650         * modules/posix-shell: New file.
53651
53652         * MODULES.html.sh: Mention new module.
53653
53654         New module gnu-make, for determining whether we're using GNU Make.
53655         * m4/gnu-make.m4: New file.
53656         * modules/gnu-make: New file.
53657         * MODULES.html.sh: Mention new module.
53658
53659 2007-11-14  Jim Meyering  <meyering@redhat.com>
53660
53661         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53662         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53663         use this macro to create a function _definition_.
53664         Remove useless "#undef ARGMATCH_DIE".
53665
53666 2007-11-14  Bruno Haible  <bruno@clisp.org>
53667
53668         * lib/config.charset: Update for OpenBSD 4.1.
53669         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53670
53671 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53672
53673         Document 64-bit #if problems in stdint.texi.
53674         * doc/headers/stdint.texi (stdint.h): Mention problems with
53675         64-bit-#if, and how to work around them.
53676
53677         Don't insist on 'long long int' support in the preprocessor.  It
53678         breaks too many things.  For example, PRIdMAX still uses a 'long
53679         long int' format with the latest Sun compiler, even though
53680         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53681         preprocessor problem.  This causes the latest coreutils to dump
53682         core on Solaris 10 sparc with the Sun C compiler.
53683         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53684         the troublesome expressions at configure-time, not at #if-time.
53685         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53686         preprocessor.
53687         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53688         compile-time C checks, done at 'configure'-time.
53689         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53690         * modules/inttypes (Makefile): Substitute the new symbols that
53691         gl_INTTYPES_H now generates.
53692         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53693
53694 2007-11-12  Bruno Haible  <bruno@clisp.org>
53695
53696         Tests for Unicode character classification functions.
53697
53698         * modules/unictype/bidicategory-byname-tests: New file.
53699         * modules/unictype/bidicategory-name-tests: New file.
53700         * modules/unictype/bidicategory-of-tests: New file.
53701         * modules/unictype/bidicategory-test-tests: New file.
53702         * modules/unictype/block-list-tests: New file.
53703         * modules/unictype/block-of-tests: New file.
53704         * modules/unictype/block-test-tests: New file.
53705         * modules/unictype/category-C-tests: New file.
53706         * modules/unictype/category-Cc-tests: New file.
53707         * modules/unictype/category-Cf-tests: New file.
53708         * modules/unictype/category-Cn-tests: New file.
53709         * modules/unictype/category-Co-tests: New file.
53710         * modules/unictype/category-Cs-tests: New file.
53711         * modules/unictype/category-L-tests: New file.
53712         * modules/unictype/category-Ll-tests: New file.
53713         * modules/unictype/category-Lm-tests: New file.
53714         * modules/unictype/category-Lo-tests: New file.
53715         * modules/unictype/category-Lt-tests: New file.
53716         * modules/unictype/category-Lu-tests: New file.
53717         * modules/unictype/category-M-tests: New file.
53718         * modules/unictype/category-Mc-tests: New file.
53719         * modules/unictype/category-Me-tests: New file.
53720         * modules/unictype/category-Mn-tests: New file.
53721         * modules/unictype/category-N-tests: New file.
53722         * modules/unictype/category-Nd-tests: New file.
53723         * modules/unictype/category-Nl-tests: New file.
53724         * modules/unictype/category-No-tests: New file.
53725         * modules/unictype/category-P-tests: New file.
53726         * modules/unictype/category-Pc-tests: New file.
53727         * modules/unictype/category-Pd-tests: New file.
53728         * modules/unictype/category-Pe-tests: New file.
53729         * modules/unictype/category-Pf-tests: New file.
53730         * modules/unictype/category-Pi-tests: New file.
53731         * modules/unictype/category-Po-tests: New file.
53732         * modules/unictype/category-Ps-tests: New file.
53733         * modules/unictype/category-S-tests: New file.
53734         * modules/unictype/category-Sc-tests: New file.
53735         * modules/unictype/category-Sk-tests: New file.
53736         * modules/unictype/category-Sm-tests: New file.
53737         * modules/unictype/category-So-tests: New file.
53738         * modules/unictype/category-Z-tests: New file.
53739         * modules/unictype/category-Zl-tests: New file.
53740         * modules/unictype/category-Zp-tests: New file.
53741         * modules/unictype/category-Zs-tests: New file.
53742         * modules/unictype/category-and-not-tests: New file.
53743         * modules/unictype/category-and-tests: New file.
53744         * modules/unictype/category-byname-tests: New file.
53745         * modules/unictype/category-name-tests: New file.
53746         * modules/unictype/category-none-tests: New file.
53747         * modules/unictype/category-of-tests: New file.
53748         * modules/unictype/category-or-tests: New file.
53749         * modules/unictype/category-test-withtable-tests: New file.
53750         * modules/unictype/combining-class-tests: New file.
53751         * modules/unictype/ctype-alnum-tests: New file.
53752         * modules/unictype/ctype-alpha-tests: New file.
53753         * modules/unictype/ctype-blank-tests: New file.
53754         * modules/unictype/ctype-cntrl-tests: New file.
53755         * modules/unictype/ctype-digit-tests: New file.
53756         * modules/unictype/ctype-graph-tests: New file.
53757         * modules/unictype/ctype-lower-tests: New file.
53758         * modules/unictype/ctype-print-tests: New file.
53759         * modules/unictype/ctype-punct-tests: New file.
53760         * modules/unictype/ctype-space-tests: New file.
53761         * modules/unictype/ctype-upper-tests: New file.
53762         * modules/unictype/ctype-xdigit-tests: New file.
53763         * modules/unictype/decimal-digit-tests: New file.
53764         * modules/unictype/digit-tests: New file.
53765         * modules/unictype/mirror-tests: New file.
53766         * modules/unictype/numeric-tests: New file.
53767         * modules/unictype/property-alphabetic-tests: New file.
53768         * modules/unictype/property-ascii-hex-digit-tests: New file.
53769         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53770         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53771         * modules/unictype/property-bidi-block-separator-tests: New file.
53772         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53773         * modules/unictype/property-bidi-common-separator-tests: New file.
53774         * modules/unictype/property-bidi-control-tests: New file.
53775         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53776         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53777         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53778         * modules/unictype/property-bidi-european-digit-tests: New file.
53779         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53780         * modules/unictype/property-bidi-left-to-right-tests: New file.
53781         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53782         * modules/unictype/property-bidi-other-neutral-tests: New file.
53783         * modules/unictype/property-bidi-pdf-tests: New file.
53784         * modules/unictype/property-bidi-segment-separator-tests: New file.
53785         * modules/unictype/property-bidi-whitespace-tests: New file.
53786         * modules/unictype/property-byname-tests: New file.
53787         * modules/unictype/property-combining-tests: New file.
53788         * modules/unictype/property-composite-tests: New file.
53789         * modules/unictype/property-currency-symbol-tests: New file.
53790         * modules/unictype/property-dash-tests: New file.
53791         * modules/unictype/property-decimal-digit-tests: New file.
53792         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53793         * modules/unictype/property-deprecated-tests: New file.
53794         * modules/unictype/property-diacritic-tests: New file.
53795         * modules/unictype/property-extender-tests: New file.
53796         * modules/unictype/property-format-control-tests: New file.
53797         * modules/unictype/property-grapheme-base-tests: New file.
53798         * modules/unictype/property-grapheme-extend-tests: New file.
53799         * modules/unictype/property-grapheme-link-tests: New file.
53800         * modules/unictype/property-hex-digit-tests: New file.
53801         * modules/unictype/property-hyphen-tests: New file.
53802         * modules/unictype/property-id-continue-tests: New file.
53803         * modules/unictype/property-id-start-tests: New file.
53804         * modules/unictype/property-ideographic-tests: New file.
53805         * modules/unictype/property-ids-binary-operator-tests: New file.
53806         * modules/unictype/property-ids-trinary-operator-tests: New file.
53807         * modules/unictype/property-ignorable-control-tests: New file.
53808         * modules/unictype/property-iso-control-tests: New file.
53809         * modules/unictype/property-join-control-tests: New file.
53810         * modules/unictype/property-left-of-pair-tests: New file.
53811         * modules/unictype/property-line-separator-tests: New file.
53812         * modules/unictype/property-logical-order-exception-tests: New file.
53813         * modules/unictype/property-lowercase-tests: New file.
53814         * modules/unictype/property-math-tests: New file.
53815         * modules/unictype/property-non-break-tests: New file.
53816         * modules/unictype/property-not-a-character-tests: New file.
53817         * modules/unictype/property-numeric-tests: New file.
53818         * modules/unictype/property-other-alphabetic-tests: New file.
53819         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53820         * modules/unictype/property-other-grapheme-extend-tests: New file.
53821         * modules/unictype/property-other-id-continue-tests: New file.
53822         * modules/unictype/property-other-id-start-tests: New file.
53823         * modules/unictype/property-other-lowercase-tests: New file.
53824         * modules/unictype/property-other-math-tests: New file.
53825         * modules/unictype/property-other-uppercase-tests: New file.
53826         * modules/unictype/property-paired-punctuation-tests: New file.
53827         * modules/unictype/property-paragraph-separator-tests: New file.
53828         * modules/unictype/property-pattern-syntax-tests: New file.
53829         * modules/unictype/property-pattern-white-space-tests: New file.
53830         * modules/unictype/property-private-use-tests: New file.
53831         * modules/unictype/property-punctuation-tests: New file.
53832         * modules/unictype/property-quotation-mark-tests: New file.
53833         * modules/unictype/property-radical-tests: New file.
53834         * modules/unictype/property-sentence-terminal-tests: New file.
53835         * modules/unictype/property-soft-dotted-tests: New file.
53836         * modules/unictype/property-space-tests: New file.
53837         * modules/unictype/property-terminal-punctuation-tests: New file.
53838         * modules/unictype/property-test-tests: New file.
53839         * modules/unictype/property-titlecase-tests: New file.
53840         * modules/unictype/property-unassigned-code-value-tests: New file.
53841         * modules/unictype/property-unified-ideograph-tests: New file.
53842         * modules/unictype/property-uppercase-tests: New file.
53843         * modules/unictype/property-variation-selector-tests: New file.
53844         * modules/unictype/property-white-space-tests: New file.
53845         * modules/unictype/property-xid-continue-tests: New file.
53846         * modules/unictype/property-xid-start-tests: New file.
53847         * modules/unictype/property-zero-width-tests: New file.
53848         * modules/unictype/scripts-tests: New file.
53849         * modules/unictype/syntax-c-ident-tests: New file.
53850         * modules/unictype/syntax-c-whitespace-tests: New file.
53851         * modules/unictype/syntax-java-ident-tests: New file.
53852         * modules/unictype/syntax-java-whitespace-tests: New file.
53853         * tests/unictype/test-bidi_byname.c: New file.
53854         * tests/unictype/test-bidi_name.c: New file.
53855         * tests/unictype/test-bidi_of.c: New file.
53856         * tests/unictype/test-bidi_test.c: New file.
53857         * tests/unictype/test-block_list.c: New file.
53858         * tests/unictype/test-block_of.c: New file.
53859         * tests/unictype/test-block_test.c: New file.
53860         * tests/unictype/test-categ_and.c: New file.
53861         * tests/unictype/test-categ_and_not.c: New file.
53862         * tests/unictype/test-categ_byname.c: New file.
53863         * tests/unictype/test-categ_name.c: New file.
53864         * tests/unictype/test-categ_none.c: New file.
53865         * tests/unictype/test-categ_of.c: New file.
53866         * tests/unictype/test-categ_or.c: New file.
53867         * tests/unictype/test-categ_test_withtable.c: New file.
53868         * tests/unictype/test-combining.c: New file.
53869         * tests/unictype/test-decdigit.c: New file.
53870         * tests/unictype/test-digit.c: New file.
53871         * tests/unictype/test-mirror.c: New file.
53872         * tests/unictype/test-numeric.c: New file.
53873         * tests/unictype/test-pr_byname.c: New file.
53874         * tests/unictype/test-pr_test.c: New file.
53875         * tests/unictype/test-predicate-part1.h: New file.
53876         * tests/unictype/test-predicate-part2.h: New file.
53877         * tests/unictype/test-scripts.c: New file.
53878         * tests/unictype/test-sy_c_ident.c: New file.
53879         * tests/unictype/test-sy_java_ident.c: New file.
53880
53881         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53882         for Unicode 5.0.0.
53883         * tests/unictype/test-categ_Cc.c: Likewise.
53884         * tests/unictype/test-categ_Cf.c: Likewise.
53885         * tests/unictype/test-categ_Cn.c: Likewise.
53886         * tests/unictype/test-categ_Co.c: Likewise.
53887         * tests/unictype/test-categ_Cs.c: Likewise.
53888         * tests/unictype/test-categ_L.c: Likewise.
53889         * tests/unictype/test-categ_Ll.c: Likewise.
53890         * tests/unictype/test-categ_Lm.c: Likewise.
53891         * tests/unictype/test-categ_Lo.c: Likewise.
53892         * tests/unictype/test-categ_Lt.c: Likewise.
53893         * tests/unictype/test-categ_Lu.c: Likewise.
53894         * tests/unictype/test-categ_M.c: Likewise.
53895         * tests/unictype/test-categ_Mc.c: Likewise.
53896         * tests/unictype/test-categ_Me.c: Likewise.
53897         * tests/unictype/test-categ_Mn.c: Likewise.
53898         * tests/unictype/test-categ_N.c: Likewise.
53899         * tests/unictype/test-categ_Nd.c: Likewise.
53900         * tests/unictype/test-categ_Nl.c: Likewise.
53901         * tests/unictype/test-categ_No.c: Likewise.
53902         * tests/unictype/test-categ_P.c: Likewise.
53903         * tests/unictype/test-categ_Pc.c: Likewise.
53904         * tests/unictype/test-categ_Pd.c: Likewise.
53905         * tests/unictype/test-categ_Pe.c: Likewise.
53906         * tests/unictype/test-categ_Pf.c: Likewise.
53907         * tests/unictype/test-categ_Pi.c: Likewise.
53908         * tests/unictype/test-categ_Po.c: Likewise.
53909         * tests/unictype/test-categ_Ps.c: Likewise.
53910         * tests/unictype/test-categ_S.c: Likewise.
53911         * tests/unictype/test-categ_Sc.c: Likewise.
53912         * tests/unictype/test-categ_Sk.c: Likewise.
53913         * tests/unictype/test-categ_Sm.c: Likewise.
53914         * tests/unictype/test-categ_So.c: Likewise.
53915         * tests/unictype/test-categ_Z.c: Likewise.
53916         * tests/unictype/test-categ_Zl.c: Likewise.
53917         * tests/unictype/test-categ_Zp.c: Likewise.
53918         * tests/unictype/test-categ_Zs.c: Likewise.
53919         * tests/unictype/test-ctype_alnum.c: Likewise.
53920         * tests/unictype/test-ctype_alpha.c: Likewise.
53921         * tests/unictype/test-ctype_blank.c: Likewise.
53922         * tests/unictype/test-ctype_cntrl.c: Likewise.
53923         * tests/unictype/test-ctype_digit.c: Likewise.
53924         * tests/unictype/test-ctype_graph.c: Likewise.
53925         * tests/unictype/test-ctype_lower.c: Likewise.
53926         * tests/unictype/test-ctype_print.c: Likewise.
53927         * tests/unictype/test-ctype_punct.c: Likewise.
53928         * tests/unictype/test-ctype_space.c: Likewise.
53929         * tests/unictype/test-ctype_upper.c: Likewise.
53930         * tests/unictype/test-ctype_xdigit.c: Likewise.
53931         * tests/unictype/test-decdigit.h: Likewise.
53932         * tests/unictype/test-digit.h: Likewise.
53933         * tests/unictype/test-numeric.h: Likewise.
53934         * tests/unictype/test-pr_alphabetic.c: Likewise.
53935         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
53936         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
53937         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
53938         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
53939         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
53940         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
53941         * tests/unictype/test-pr_bidi_control.c: Likewise.
53942         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
53943         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
53944         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
53945         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
53946         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
53947         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
53948         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
53949         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
53950         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
53951         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
53952         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
53953         * tests/unictype/test-pr_combining.c: Likewise.
53954         * tests/unictype/test-pr_composite.c: Likewise.
53955         * tests/unictype/test-pr_currency_symbol.c: Likewise.
53956         * tests/unictype/test-pr_dash.c: Likewise.
53957         * tests/unictype/test-pr_decimal_digit.c: Likewise.
53958         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
53959         * tests/unictype/test-pr_deprecated.c: Likewise.
53960         * tests/unictype/test-pr_diacritic.c: Likewise.
53961         * tests/unictype/test-pr_extender.c: Likewise.
53962         * tests/unictype/test-pr_format_control.c: Likewise.
53963         * tests/unictype/test-pr_grapheme_base.c: Likewise.
53964         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
53965         * tests/unictype/test-pr_grapheme_link.c: Likewise.
53966         * tests/unictype/test-pr_hex_digit.c: Likewise.
53967         * tests/unictype/test-pr_hyphen.c: Likewise.
53968         * tests/unictype/test-pr_id_continue.c: Likewise.
53969         * tests/unictype/test-pr_id_start.c: Likewise.
53970         * tests/unictype/test-pr_ideographic.c: Likewise.
53971         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
53972         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
53973         * tests/unictype/test-pr_ignorable_control.c: Likewise.
53974         * tests/unictype/test-pr_iso_control.c: Likewise.
53975         * tests/unictype/test-pr_join_control.c: Likewise.
53976         * tests/unictype/test-pr_left_of_pair.c: Likewise.
53977         * tests/unictype/test-pr_line_separator.c: Likewise.
53978         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
53979         * tests/unictype/test-pr_lowercase.c: Likewise.
53980         * tests/unictype/test-pr_math.c: Likewise.
53981         * tests/unictype/test-pr_non_break.c: Likewise.
53982         * tests/unictype/test-pr_not_a_character.c: Likewise.
53983         * tests/unictype/test-pr_numeric.c: Likewise.
53984         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
53985         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
53986         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
53987         * tests/unictype/test-pr_other_id_continue.c: Likewise.
53988         * tests/unictype/test-pr_other_id_start.c: Likewise.
53989         * tests/unictype/test-pr_other_lowercase.c: Likewise.
53990         * tests/unictype/test-pr_other_math.c: Likewise.
53991         * tests/unictype/test-pr_other_uppercase.c: Likewise.
53992         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
53993         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
53994         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
53995         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
53996         * tests/unictype/test-pr_private_use.c: Likewise.
53997         * tests/unictype/test-pr_punctuation.c: Likewise.
53998         * tests/unictype/test-pr_quotation_mark.c: Likewise.
53999         * tests/unictype/test-pr_radical.c: Likewise.
54000         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54001         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54002         * tests/unictype/test-pr_space.c: Likewise.
54003         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54004         * tests/unictype/test-pr_titlecase.c: Likewise.
54005         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54006         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54007         * tests/unictype/test-pr_uppercase.c: Likewise.
54008         * tests/unictype/test-pr_variation_selector.c: Likewise.
54009         * tests/unictype/test-pr_white_space.c: Likewise.
54010         * tests/unictype/test-pr_xid_continue.c: Likewise.
54011         * tests/unictype/test-pr_xid_start.c: Likewise.
54012         * tests/unictype/test-pr_zero_width.c: Likewise.
54013         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54014         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54015
54016 2007-11-12  Bruno Haible  <bruno@clisp.org>
54017
54018         Unicode character classification functions.
54019         * lib/unictype.h: New file.
54020         * modules/unictype/base: New file.
54021         * modules/unictype/category-L: New file.
54022         * modules/unictype/category-Lu: New file.
54023         * modules/unictype/category-Ll: New file.
54024         * modules/unictype/category-Lt: New file.
54025         * modules/unictype/category-Lm: New file.
54026         * modules/unictype/category-Lo: New file.
54027         * modules/unictype/category-M: New file.
54028         * modules/unictype/category-Mn: New file.
54029         * modules/unictype/category-Mc: New file.
54030         * modules/unictype/category-Me: New file.
54031         * modules/unictype/category-N: New file.
54032         * modules/unictype/category-Nd: New file.
54033         * modules/unictype/category-Nl: New file.
54034         * modules/unictype/category-No: New file.
54035         * modules/unictype/category-P: New file.
54036         * modules/unictype/category-Pc: New file.
54037         * modules/unictype/category-Pd: New file.
54038         * modules/unictype/category-Ps: New file.
54039         * modules/unictype/category-Pe: New file.
54040         * modules/unictype/category-Pi: New file.
54041         * modules/unictype/category-Pf: New file.
54042         * modules/unictype/category-Po: New file.
54043         * modules/unictype/category-S: New file.
54044         * modules/unictype/category-Sm: New file.
54045         * modules/unictype/category-Sc: New file.
54046         * modules/unictype/category-Sk: New file.
54047         * modules/unictype/category-So: New file.
54048         * modules/unictype/category-Z: New file.
54049         * modules/unictype/category-Zs: New file.
54050         * modules/unictype/category-Zl: New file.
54051         * modules/unictype/category-Zp: New file.
54052         * modules/unictype/category-C: New file.
54053         * modules/unictype/category-Cc: New file.
54054         * modules/unictype/category-Cf: New file.
54055         * modules/unictype/category-Cs: New file.
54056         * modules/unictype/category-Co: New file.
54057         * modules/unictype/category-Cn: New file.
54058         * modules/unictype/category-or: New file.
54059         * modules/unictype/category-of: New file.
54060         * modules/unictype/category-test: New file.
54061         * modules/unictype/category-test-withtable: New file.
54062         * modules/unictype/category-byname: New file.
54063         * modules/unictype/category-none: New file.
54064         * modules/unictype/category-and: New file.
54065         * modules/unictype/category-and-not: New file.
54066         * modules/unictype/category-name: New file.
54067         * modules/unictype/combining-class: New file.
54068         * modules/unictype/category-all: New file.
54069         * modules/unictype/bidicategory-all: New file.
54070         * modules/unictype/bidicategory-byname: New file.
54071         * modules/unictype/bidicategory-name: New file.
54072         * modules/unictype/bidicategory-of: New file.
54073         * modules/unictype/bidicategory-test: New file.
54074         * modules/unictype/decimal-digit: New file.
54075         * modules/unictype/digit: New file.
54076         * modules/unictype/numeric: New file.
54077         * modules/unictype/mirror: New file.
54078         * modules/unictype/property-white-space: New file.
54079         * modules/unictype/property-alphabetic: New file.
54080         * modules/unictype/property-other-alphabetic: New file.
54081         * modules/unictype/property-not-a-character: New file.
54082         * modules/unictype/property-default-ignorable-code-point: New file.
54083         * modules/unictype/property-other-default-ignorable-code-point: New
54084         file.
54085         * modules/unictype/property-deprecated: New file.
54086         * modules/unictype/property-logical-order-exception: New file.
54087         * modules/unictype/property-variation-selector: New file.
54088         * modules/unictype/property-private-use: New file.
54089         * modules/unictype/property-unassigned-code-value: New file.
54090         * modules/unictype/property-uppercase: New file.
54091         * modules/unictype/property-other-uppercase: New file.
54092         * modules/unictype/property-lowercase: New file.
54093         * modules/unictype/property-other-lowercase: New file.
54094         * modules/unictype/property-titlecase: New file.
54095         * modules/unictype/property-soft-dotted: New file.
54096         * modules/unictype/property-id-start: New file.
54097         * modules/unictype/property-other-id-start: New file.
54098         * modules/unictype/property-id-continue: New file.
54099         * modules/unictype/property-other-id-continue: New file.
54100         * modules/unictype/property-xid-start: New file.
54101         * modules/unictype/property-xid-continue: New file.
54102         * modules/unictype/property-pattern-white-space: New file.
54103         * modules/unictype/property-pattern-syntax: New file.
54104         * modules/unictype/property-join-control: New file.
54105         * modules/unictype/property-grapheme-base: New file.
54106         * modules/unictype/property-grapheme-extend: New file.
54107         * modules/unictype/property-other-grapheme-extend: New file.
54108         * modules/unictype/property-grapheme-link: New file.
54109         * modules/unictype/property-bidi-control: New file.
54110         * modules/unictype/property-bidi-left-to-right: New file.
54111         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54112         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54113         * modules/unictype/property-bidi-european-digit: New file.
54114         * modules/unictype/property-bidi-eur-num-separator: New file.
54115         * modules/unictype/property-bidi-eur-num-terminator: New file.
54116         * modules/unictype/property-bidi-arabic-digit: New file.
54117         * modules/unictype/property-bidi-common-separator: New file.
54118         * modules/unictype/property-bidi-block-separator: New file.
54119         * modules/unictype/property-bidi-segment-separator: New file.
54120         * modules/unictype/property-bidi-whitespace: New file.
54121         * modules/unictype/property-bidi-non-spacing-mark: New file.
54122         * modules/unictype/property-bidi-boundary-neutral: New file.
54123         * modules/unictype/property-bidi-pdf: New file.
54124         * modules/unictype/property-bidi-embedding-or-override: New file.
54125         * modules/unictype/property-bidi-other-neutral: New file.
54126         * modules/unictype/property-hex-digit: New file.
54127         * modules/unictype/property-ascii-hex-digit: New file.
54128         * modules/unictype/property-ideographic: New file.
54129         * modules/unictype/property-unified-ideograph: New file.
54130         * modules/unictype/property-radical: New file.
54131         * modules/unictype/property-ids-binary-operator: New file.
54132         * modules/unictype/property-ids-trinary-operator: New file.
54133         * modules/unictype/property-zero-width: New file.
54134         * modules/unictype/property-space: New file.
54135         * modules/unictype/property-non-break: New file.
54136         * modules/unictype/property-iso-control: New file.
54137         * modules/unictype/property-format-control: New file.
54138         * modules/unictype/property-dash: New file.
54139         * modules/unictype/property-hyphen: New file.
54140         * modules/unictype/property-punctuation: New file.
54141         * modules/unictype/property-line-separator: New file.
54142         * modules/unictype/property-paragraph-separator: New file.
54143         * modules/unictype/property-quotation-mark: New file.
54144         * modules/unictype/property-sentence-terminal: New file.
54145         * modules/unictype/property-terminal-punctuation: New file.
54146         * modules/unictype/property-currency-symbol: New file.
54147         * modules/unictype/property-math: New file.
54148         * modules/unictype/property-other-math: New file.
54149         * modules/unictype/property-paired-punctuation: New file.
54150         * modules/unictype/property-left-of-pair: New file.
54151         * modules/unictype/property-combining: New file.
54152         * modules/unictype/property-composite: New file.
54153         * modules/unictype/property-decimal-digit: New file.
54154         * modules/unictype/property-numeric: New file.
54155         * modules/unictype/property-diacritic: New file.
54156         * modules/unictype/property-extender: New file.
54157         * modules/unictype/property-ignorable-control: New file.
54158         * modules/unictype/property-test: New file.
54159         * modules/unictype/property-byname: New file.
54160         * modules/unictype/property-all: New file.
54161         * modules/unictype/scripts: New file.
54162         * modules/unictype/scripts-all: New file.
54163         * modules/unictype/block-of: New file.
54164         * modules/unictype/block-test: New file.
54165         * modules/unictype/block-list: New file.
54166         * modules/unictype/block-all: New file.
54167         * modules/unictype/syntax-c-whitespace: New file.
54168         * modules/unictype/syntax-java-whitespace: New file.
54169         * modules/unictype/syntax-c-ident: New file.
54170         * modules/unictype/syntax-java-ident: New file.
54171         * modules/unictype/ctype-alnum: New file.
54172         * modules/unictype/ctype-alpha: New file.
54173         * modules/unictype/ctype-cntrl: New file.
54174         * modules/unictype/ctype-digit: New file.
54175         * modules/unictype/ctype-graph: New file.
54176         * modules/unictype/ctype-lower: New file.
54177         * modules/unictype/ctype-print: New file.
54178         * modules/unictype/ctype-punct: New file.
54179         * modules/unictype/ctype-space: New file.
54180         * modules/unictype/ctype-upper: New file.
54181         * modules/unictype/ctype-xdigit: New file.
54182         * modules/unictype/ctype-blank: New file.
54183         * lib/unictype/bidi_byname.c: New file.
54184         * lib/unictype/bidi_name.c: New file.
54185         * lib/unictype/bidi_of.c: New file.
54186         * lib/unictype/bidi_test.c: New file.
54187         * lib/unictype/bitmap.h: New file.
54188         * lib/unictype/block_test.c: New file.
54189         * lib/unictype/blocks.c: New file.
54190         * lib/unictype/categ_C.c: New file.
54191         * lib/unictype/categ_Cc.c: New file.
54192         * lib/unictype/categ_Cf.c: New file.
54193         * lib/unictype/categ_Cn.c: New file.
54194         * lib/unictype/categ_Co.c: New file.
54195         * lib/unictype/categ_Cs.c: New file.
54196         * lib/unictype/categ_L.c: New file.
54197         * lib/unictype/categ_Ll.c: New file.
54198         * lib/unictype/categ_Lm.c: New file.
54199         * lib/unictype/categ_Lo.c: New file.
54200         * lib/unictype/categ_Lt.c: New file.
54201         * lib/unictype/categ_Lu.c: New file.
54202         * lib/unictype/categ_M.c: New file.
54203         * lib/unictype/categ_Mc.c: New file.
54204         * lib/unictype/categ_Me.c: New file.
54205         * lib/unictype/categ_Mn.c: New file.
54206         * lib/unictype/categ_N.c: New file.
54207         * lib/unictype/categ_Nd.c: New file.
54208         * lib/unictype/categ_Nl.c: New file.
54209         * lib/unictype/categ_No.c: New file.
54210         * lib/unictype/categ_P.c: New file.
54211         * lib/unictype/categ_Pc.c: New file.
54212         * lib/unictype/categ_Pd.c: New file.
54213         * lib/unictype/categ_Pe.c: New file.
54214         * lib/unictype/categ_Pf.c: New file.
54215         * lib/unictype/categ_Pi.c: New file.
54216         * lib/unictype/categ_Po.c: New file.
54217         * lib/unictype/categ_Ps.c: New file.
54218         * lib/unictype/categ_S.c: New file.
54219         * lib/unictype/categ_Sc.c: New file.
54220         * lib/unictype/categ_Sk.c: New file.
54221         * lib/unictype/categ_Sm.c: New file.
54222         * lib/unictype/categ_So.c: New file.
54223         * lib/unictype/categ_Z.c: New file.
54224         * lib/unictype/categ_Zl.c: New file.
54225         * lib/unictype/categ_Zp.c: New file.
54226         * lib/unictype/categ_Zs.c: New file.
54227         * lib/unictype/categ_and.c: New file.
54228         * lib/unictype/categ_and_not.c: New file.
54229         * lib/unictype/categ_byname.c: New file.
54230         * lib/unictype/categ_name.c: New file.
54231         * lib/unictype/categ_none.c: New file.
54232         * lib/unictype/categ_of.c: New file.
54233         * lib/unictype/categ_or.c: New file.
54234         * lib/unictype/categ_test.c: New file.
54235         * lib/unictype/combining.c: New file.
54236         * lib/unictype/ctype_alnum.c: New file.
54237         * lib/unictype/ctype_alpha.c: New file.
54238         * lib/unictype/ctype_blank.c: New file.
54239         * lib/unictype/ctype_cntrl.c: New file.
54240         * lib/unictype/ctype_digit.c: New file.
54241         * lib/unictype/ctype_graph.c: New file.
54242         * lib/unictype/ctype_lower.c: New file.
54243         * lib/unictype/ctype_print.c: New file.
54244         * lib/unictype/ctype_punct.c: New file.
54245         * lib/unictype/ctype_space.c: New file.
54246         * lib/unictype/ctype_upper.c: New file.
54247         * lib/unictype/ctype_xdigit.c: New file.
54248         * lib/unictype/decdigit.c: New file.
54249         * lib/unictype/digit.c: New file.
54250         * lib/unictype/identsyntaxmap.h: New file.
54251         * lib/unictype/mirror.c: New file.
54252         * lib/unictype/numeric.c: New file.
54253         * lib/unictype/pr_alphabetic.c: New file.
54254         * lib/unictype/pr_ascii_hex_digit.c: New file.
54255         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54256         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54257         * lib/unictype/pr_bidi_block_separator.c: New file.
54258         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54259         * lib/unictype/pr_bidi_common_separator.c: New file.
54260         * lib/unictype/pr_bidi_control.c: New file.
54261         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54262         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54263         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54264         * lib/unictype/pr_bidi_european_digit.c: New file.
54265         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54266         * lib/unictype/pr_bidi_left_to_right.c: New file.
54267         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54268         * lib/unictype/pr_bidi_other_neutral.c: New file.
54269         * lib/unictype/pr_bidi_pdf.c: New file.
54270         * lib/unictype/pr_bidi_segment_separator.c: New file.
54271         * lib/unictype/pr_bidi_whitespace.c: New file.
54272         * lib/unictype/pr_byname.c: New file.
54273         * lib/unictype/pr_byname.gperf: New file.
54274         * lib/unictype/pr_combining.c: New file.
54275         * lib/unictype/pr_composite.c: New file.
54276         * lib/unictype/pr_currency_symbol.c: New file.
54277         * lib/unictype/pr_dash.c: New file.
54278         * lib/unictype/pr_decimal_digit.c: New file.
54279         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54280         * lib/unictype/pr_deprecated.c: New file.
54281         * lib/unictype/pr_diacritic.c: New file.
54282         * lib/unictype/pr_extender.c: New file.
54283         * lib/unictype/pr_format_control.c: New file.
54284         * lib/unictype/pr_grapheme_base.c: New file.
54285         * lib/unictype/pr_grapheme_extend.c: New file.
54286         * lib/unictype/pr_grapheme_link.c: New file.
54287         * lib/unictype/pr_hex_digit.c: New file.
54288         * lib/unictype/pr_hyphen.c: New file.
54289         * lib/unictype/pr_id_continue.c: New file.
54290         * lib/unictype/pr_id_start.c: New file.
54291         * lib/unictype/pr_ideographic.c: New file.
54292         * lib/unictype/pr_ids_binary_operator.c: New file.
54293         * lib/unictype/pr_ids_trinary_operator.c: New file.
54294         * lib/unictype/pr_ignorable_control.c: New file.
54295         * lib/unictype/pr_iso_control.c: New file.
54296         * lib/unictype/pr_join_control.c: New file.
54297         * lib/unictype/pr_left_of_pair.c: New file.
54298         * lib/unictype/pr_line_separator.c: New file.
54299         * lib/unictype/pr_logical_order_exception.c: New file.
54300         * lib/unictype/pr_lowercase.c: New file.
54301         * lib/unictype/pr_math.c: New file.
54302         * lib/unictype/pr_non_break.c: New file.
54303         * lib/unictype/pr_not_a_character.c: New file.
54304         * lib/unictype/pr_numeric.c: New file.
54305         * lib/unictype/pr_other_alphabetic.c: New file.
54306         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54307         * lib/unictype/pr_other_grapheme_extend.c: New file.
54308         * lib/unictype/pr_other_id_continue.c: New file.
54309         * lib/unictype/pr_other_id_start.c: New file.
54310         * lib/unictype/pr_other_lowercase.c: New file.
54311         * lib/unictype/pr_other_math.c: New file.
54312         * lib/unictype/pr_other_uppercase.c: New file.
54313         * lib/unictype/pr_paired_punctuation.c: New file.
54314         * lib/unictype/pr_paragraph_separator.c: New file.
54315         * lib/unictype/pr_pattern_syntax.c: New file.
54316         * lib/unictype/pr_pattern_white_space.c: New file.
54317         * lib/unictype/pr_private_use.c: New file.
54318         * lib/unictype/pr_punctuation.c: New file.
54319         * lib/unictype/pr_quotation_mark.c: New file.
54320         * lib/unictype/pr_radical.c: New file.
54321         * lib/unictype/pr_sentence_terminal.c: New file.
54322         * lib/unictype/pr_soft_dotted.c: New file.
54323         * lib/unictype/pr_space.c: New file.
54324         * lib/unictype/pr_terminal_punctuation.c: New file.
54325         * lib/unictype/pr_test.c: New file.
54326         * lib/unictype/pr_titlecase.c: New file.
54327         * lib/unictype/pr_unassigned_code_value.c: New file.
54328         * lib/unictype/pr_unified_ideograph.c: New file.
54329         * lib/unictype/pr_uppercase.c: New file.
54330         * lib/unictype/pr_variation_selector.c: New file.
54331         * lib/unictype/pr_white_space.c: New file.
54332         * lib/unictype/pr_xid_continue.c: New file.
54333         * lib/unictype/pr_xid_start.c: New file.
54334         * lib/unictype/pr_zero_width.c: New file.
54335         * lib/unictype/scripts.c: New file.
54336         * lib/unictype/sy_c_ident.c: New file.
54337         * lib/unictype/sy_c_whitespace.c: New file.
54338         * lib/unictype/sy_java_ident.c: New file.
54339         * lib/unictype/sy_java_whitespace.c: New file.
54340
54341         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54342         Unicode 5.0.0.
54343         * lib/unictype/blocks.h: Likewise.
54344         * lib/unictype/categ_C.h: Likewise.
54345         * lib/unictype/categ_Cc.h: Likewise.
54346         * lib/unictype/categ_Cf.h: Likewise.
54347         * lib/unictype/categ_Cn.h: Likewise.
54348         * lib/unictype/categ_Co.h: Likewise.
54349         * lib/unictype/categ_Cs.h: Likewise.
54350         * lib/unictype/categ_L.h: Likewise.
54351         * lib/unictype/categ_Ll.h: Likewise.
54352         * lib/unictype/categ_Lm.h: Likewise.
54353         * lib/unictype/categ_Lo.h: Likewise.
54354         * lib/unictype/categ_Lt.h: Likewise.
54355         * lib/unictype/categ_Lu.h: Likewise.
54356         * lib/unictype/categ_M.h: Likewise.
54357         * lib/unictype/categ_Mc.h: Likewise.
54358         * lib/unictype/categ_Me.h: Likewise.
54359         * lib/unictype/categ_Mn.h: Likewise.
54360         * lib/unictype/categ_N.h: Likewise.
54361         * lib/unictype/categ_Nd.h: Likewise.
54362         * lib/unictype/categ_Nl.h: Likewise.
54363         * lib/unictype/categ_No.h: Likewise.
54364         * lib/unictype/categ_P.h: Likewise.
54365         * lib/unictype/categ_Pc.h: Likewise.
54366         * lib/unictype/categ_Pd.h: Likewise.
54367         * lib/unictype/categ_Pe.h: Likewise.
54368         * lib/unictype/categ_Pf.h: Likewise.
54369         * lib/unictype/categ_Pi.h: Likewise.
54370         * lib/unictype/categ_Po.h: Likewise.
54371         * lib/unictype/categ_Ps.h: Likewise.
54372         * lib/unictype/categ_S.h: Likewise.
54373         * lib/unictype/categ_Sc.h: Likewise.
54374         * lib/unictype/categ_Sk.h: Likewise.
54375         * lib/unictype/categ_Sm.h: Likewise.
54376         * lib/unictype/categ_So.h: Likewise.
54377         * lib/unictype/categ_Z.h: Likewise.
54378         * lib/unictype/categ_Zl.h: Likewise.
54379         * lib/unictype/categ_Zp.h: Likewise.
54380         * lib/unictype/categ_Zs.h: Likewise.
54381         * lib/unictype/categ_of.h: Likewise.
54382         * lib/unictype/combining.h: Likewise.
54383         * lib/unictype/ctype_alnum.h: Likewise.
54384         * lib/unictype/ctype_alpha.h: Likewise.
54385         * lib/unictype/ctype_blank.h: Likewise.
54386         * lib/unictype/ctype_cntrl.h: Likewise.
54387         * lib/unictype/ctype_digit.h: Likewise.
54388         * lib/unictype/ctype_graph.h: Likewise.
54389         * lib/unictype/ctype_lower.h: Likewise.
54390         * lib/unictype/ctype_print.h: Likewise.
54391         * lib/unictype/ctype_punct.h: Likewise.
54392         * lib/unictype/ctype_space.h: Likewise.
54393         * lib/unictype/ctype_upper.h: Likewise.
54394         * lib/unictype/ctype_xdigit.h: Likewise.
54395         * lib/unictype/decdigit.h: Likewise.
54396         * lib/unictype/digit.h: Likewise.
54397         * lib/unictype/mirror.h: Likewise.
54398         * lib/unictype/numeric.h: Likewise.
54399         * lib/unictype/pr_alphabetic.h: Likewise.
54400         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54401         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54402         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54403         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54404         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54405         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54406         * lib/unictype/pr_bidi_control.h: Likewise.
54407         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54408         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54409         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54410         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54411         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54412         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54413         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54414         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54415         * lib/unictype/pr_bidi_pdf.h: Likewise.
54416         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54417         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54418         * lib/unictype/pr_combining.h: Likewise.
54419         * lib/unictype/pr_composite.h: Likewise.
54420         * lib/unictype/pr_currency_symbol.h: Likewise.
54421         * lib/unictype/pr_dash.h: Likewise.
54422         * lib/unictype/pr_decimal_digit.h: Likewise.
54423         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54424         * lib/unictype/pr_deprecated.h: Likewise.
54425         * lib/unictype/pr_diacritic.h: Likewise.
54426         * lib/unictype/pr_extender.h: Likewise.
54427         * lib/unictype/pr_format_control.h: Likewise.
54428         * lib/unictype/pr_grapheme_base.h: Likewise.
54429         * lib/unictype/pr_grapheme_extend.h: Likewise.
54430         * lib/unictype/pr_grapheme_link.h: Likewise.
54431         * lib/unictype/pr_hex_digit.h: Likewise.
54432         * lib/unictype/pr_hyphen.h: Likewise.
54433         * lib/unictype/pr_id_continue.h: Likewise.
54434         * lib/unictype/pr_id_start.h: Likewise.
54435         * lib/unictype/pr_ideographic.h: Likewise.
54436         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54437         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54438         * lib/unictype/pr_ignorable_control.h: Likewise.
54439         * lib/unictype/pr_iso_control.h: Likewise.
54440         * lib/unictype/pr_join_control.h: Likewise.
54441         * lib/unictype/pr_left_of_pair.h: Likewise.
54442         * lib/unictype/pr_line_separator.h: Likewise.
54443         * lib/unictype/pr_logical_order_exception.h: Likewise.
54444         * lib/unictype/pr_lowercase.h: Likewise.
54445         * lib/unictype/pr_math.h: Likewise.
54446         * lib/unictype/pr_non_break.h: Likewise.
54447         * lib/unictype/pr_not_a_character.h: Likewise.
54448         * lib/unictype/pr_numeric.h: Likewise.
54449         * lib/unictype/pr_other_alphabetic.h: Likewise.
54450         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54451         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54452         * lib/unictype/pr_other_id_continue.h: Likewise.
54453         * lib/unictype/pr_other_id_start.h: Likewise.
54454         * lib/unictype/pr_other_lowercase.h: Likewise.
54455         * lib/unictype/pr_other_math.h: Likewise.
54456         * lib/unictype/pr_other_uppercase.h: Likewise.
54457         * lib/unictype/pr_paired_punctuation.h: Likewise.
54458         * lib/unictype/pr_paragraph_separator.h: Likewise.
54459         * lib/unictype/pr_pattern_syntax.h: Likewise.
54460         * lib/unictype/pr_pattern_white_space.h: Likewise.
54461         * lib/unictype/pr_private_use.h: Likewise.
54462         * lib/unictype/pr_punctuation.h: Likewise.
54463         * lib/unictype/pr_quotation_mark.h: Likewise.
54464         * lib/unictype/pr_radical.h: Likewise.
54465         * lib/unictype/pr_sentence_terminal.h: Likewise.
54466         * lib/unictype/pr_soft_dotted.h: Likewise.
54467         * lib/unictype/pr_space.h: Likewise.
54468         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54469         * lib/unictype/pr_titlecase.h: Likewise.
54470         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54471         * lib/unictype/pr_unified_ideograph.h: Likewise.
54472         * lib/unictype/pr_uppercase.h: Likewise.
54473         * lib/unictype/pr_variation_selector.h: Likewise.
54474         * lib/unictype/pr_white_space.h: Likewise.
54475         * lib/unictype/pr_xid_continue.h: Likewise.
54476         * lib/unictype/pr_xid_start.h: Likewise.
54477         * lib/unictype/pr_zero_width.h: Likewise.
54478         * lib/unictype/scripts.h: Likewise.
54479         * lib/unictype/scripts_byname.gperf: Likewise.
54480         * lib/unictype/sy_c_ident.h: Likewise.
54481         * lib/unictype/sy_c_whitespace.h: Likewise.
54482         * lib/unictype/sy_java_ident.h: Likewise.
54483         * lib/unictype/sy_java_whitespace.h: Likewise.
54484
54485         * lib/unictype/Makefile: New file.
54486         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54487         glibc.
54488         * lib/unictype/3level.h: New file, copied from glibc.
54489         * lib/unictype/3levelbit.h: New file.
54490
54491 2007-11-11  Bruno Haible  <bruno@clisp.org>
54492
54493         * modules/gperf: New file.
54494         * modules/iconv_open (Depends-on): Add it.
54495         (Makefile.am): Remove the GPERF definition.
54496
54497 2007-11-11  Bruno Haible  <bruno@clisp.org>
54498
54499         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54500         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54501
54502 2007-11-11  Bruno Haible  <bruno@clisp.org>
54503
54504         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54505         (usage): Remove function.
54506
54507 2007-11-11  Bruno Haible  <bruno@clisp.org>
54508
54509         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54510         gl_FUNC_CEILF_LIBS.
54511         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54512         gl_FUNC_CEIL_LIBS.
54513         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54514         gl_FUNC_CEILL_LIBS.
54515         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54516         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54517         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54518
54519 2007-11-11  Bruno Haible  <bruno@clisp.org>
54520
54521         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54522         roundf were declared but do not exist on functions.
54523         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54524         roundl were declared but do not exist on functions.
54525         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54526         HAVE_FLOORL_AND_CEILL, respectively.
54527         Needed for Sun C on Solaris 10.
54528
54529 2007-11-11  Bruno Haible  <bruno@clisp.org>
54530
54531         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54532         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54533         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54534         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54535         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54536         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54537         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54538         HAVE_DECL_ROUNDF.
54539         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54540         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54542         of HAVE_DECL_ROUND*.
54543         * modules/math (Makefile.am): Update.
54544
54545 2007-11-10  Bruno Haible  <bruno@clisp.org>
54546
54547         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54548         ptrdiff_t as m4/intl.m4.
54549
54550 2007-11-10  Jim Meyering  <meyering@redhat.com>
54551
54552         Avoid link failure for the argmatch test.
54553         * tests/test-argmatch.c (usage): Define function to avoid a link
54554         failure: argmatch_die requires a usage function.
54555
54556 2007-11-09  Bruno Haible  <bruno@clisp.org>
54557
54558         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54559         * doc/functions/vsnprintf.texi: Likewise.
54560         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54561         with a size argument < 2.
54562
54563 2007-11-09  Bruno Haible  <bruno@clisp.org>
54564
54565         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54566         buffer. Fixes an inefficiency introduced on 2007-11-03.
54567
54568 2007-11-09  Bruno Haible  <bruno@clisp.org>
54569
54570         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54571         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54572
54573 2007-11-08  Jim Meyering  <meyering@redhat.com>
54574
54575         Change cache variable name prefix "jm_" to "gl_" everywhere.
54576         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54577         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54578         * m4/uptime.m4: s/gl_/jm_/
54579
54580 2007-11-07  Bruno Haible  <bruno@clisp.org>
54581
54582         Update to GNU gettext 0.17.
54583         * m4/intl.m4: Update to GNU gettext 0.17.
54584         * m4/po.m4: Likewise.
54585         * modules/gettext (Files): Remove m4/ulonglong.m4.
54586         (configure.ac): Require gettext infrastructure from version 0.17.
54587
54588 2007-11-06  Bruno Haible  <bruno@clisp.org>
54589
54590         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54591         symbolic values are not defined in a public header.
54592         * lib/freadable.c (freadable) [QNX]: Likewise.
54593         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54594         * lib/freading.c (freading) [QNX]: Likewise.
54595         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54596         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54597         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54598         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54599         Reported by Alain Magloire.
54600
54601         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54602
54603 2007-11-05  Bruno Haible  <bruno@clisp.org>
54604
54605         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54606         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54607         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54608         Reported by Eric Blake.
54609
54610 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54611             Bruno Haible  <bruno@clisp.org>
54612
54613         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54614         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54615         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54616         (malloc): Undefine also before including <stdlib.h>.
54617         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54618         Needed on OSF/1 4.0.
54619
54620 2007-11-05  Jim Meyering  <meyering@redhat.com>
54621
54622         git-version-gen: sync from coreutils.
54623         * build-aux/git-version-gen: Add comments.
54624         Change the first '-' to '.' in the snapshot version string,
54625         e.g., 6.9-377-08144 -> 6.9.377-08144
54626         Remove first parameter.
54627         Don't declare a version "-dirty" merely because a time
54628         stamp has changed.
54629
54630 2007-11-04  Bruno Haible  <bruno@clisp.org>
54631
54632         * lib/lock.h: Protect all macro definitions containing an 'if'
54633         statement through a "do { ... } while (0)".
54634         * lib/tls.h: Likewise.
54635
54636 2007-11-04  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54639
54640 2007-11-04  Bruno Haible  <bruno@clisp.org>
54641
54642         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54643         * modules/fprintf-posix (Depends-on): Add nocrash.
54644         * modules/snprintf-posix (Depends-on): Likewise.
54645         * modules/sprintf-posix (Depends-on): Likewise.
54646         * modules/vasnprintf-posix (Depends-on): Likewise.
54647         * modules/vasprintf-posix (Depends-on): Likewise.
54648         * modules/vfprintf-posix (Depends-on): Likewise.
54649         * modules/vsnprintf-posix (Depends-on): Likewise.
54650         * modules/vsprintf-posix (Depends-on): Likewise.
54651         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54652         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54653         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54654         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54655         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54656         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54657         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54658
54659 2007-11-04  Bruno Haible  <bruno@clisp.org>
54660
54661         * modules/nocrash: New file.
54662         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54663         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54664
54665 2007-11-04  Bruno Haible  <bruno@clisp.org>
54666
54667         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54668         precision handling.
54669         * tests/test-vasprintf-posix.c (test_function): Likewise.
54670         * tests/test-snprintf-posix.h (test_function): Likewise.
54671         * tests/test-sprintf-posix.h (test_function): Likewise.
54672
54673         Fix *printf behaviour for large precisions on mingw and BeOS.
54674         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54675         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54677         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54678         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54679         gl_PRINTF_PRECISION and test its result. Invoke
54680         gl_PREREQ_VASNPRINTF_PRECISION.
54681         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54682         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54683         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54684         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54685         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54686         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54687         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54688         * doc/functions/fprintf.texi: Update.
54689         * doc/functions/printf.texi: Update.
54690         * doc/functions/snprintf.texi: Update.
54691         * doc/functions/sprintf.texi: Update.
54692         * doc/functions/vfprintf.texi: Update.
54693         * doc/functions/vprintf.texi: Update.
54694         * doc/functions/vsnprintf.texi: Update.
54695         * doc/functions/vsprintf.texi: Update.
54696
54697 2007-11-04  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54700
54701 2007-11-04  Bruno Haible  <bruno@clisp.org>
54702
54703         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54704         Reported by Sylvain Beucler <beuc@gnu.org>.
54705
54706 2007-11-03  Bruno Haible  <bruno@clisp.org>
54707
54708         * tests/test-fprintf-posix2.sh: New file.
54709         * tests/test-fprintf-posix2.c: New file.
54710         * modules/fprintf-posix-tests (Files): Add them.
54711         (TESTS): Add test-fprintf-posix2.sh.
54712         (configure.ac): Check for getrlimit and setrlimit.
54713         (check_PROGRAMS): Add test-fprintf-posix2.
54714
54715         * tests/test-printf-posix2.sh: New file.
54716         * tests/test-printf-posix2.c: New file.
54717         * modules/printf-posix-tests (Files): Add them.
54718         (TESTS): Add test-printf-posix2.sh.
54719         (configure.ac): Check for getrlimit and setrlimit.
54720         (check_PROGRAMS): Add test-printf-posix2.
54721
54722         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54723         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54724         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54725         (decode_double): New function, copied from decode_long_double.
54726         (scale10_round_decimal_decoded): New function, extracted from
54727         scale10_round_decimal_long_double.
54728         (scale10_round_decimal_long_double): Use it.
54729         (scale10_round_decimal_double): New function.
54730         (floorlog10): New function.
54731         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54733         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54734         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54735         gl_PRINTF_ENOMEM and test its result. Invoke
54736         gl_PREREQ_VASNPRINTF_ENOMEM.
54737         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54738         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54739         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54740         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54741         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54742         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54743         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54744         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54745         * modules/snprintf-posix (Depends-on): Likewise.
54746         * modules/sprintf-posix (Depends-on): Likewise.
54747         * modules/vasnprintf-posix (Depends-on): Likewise.
54748         * modules/vasprintf-posix (Depends-on): Likewise.
54749         * modules/vfprintf-posix (Depends-on): Likewise.
54750         * modules/vsnprintf-posix (Depends-on): Likewise.
54751         * modules/vsprintf-posix (Depends-on): Likewise.
54752         * doc/functions/fprintf.texi: Update.
54753         * doc/functions/printf.texi: Update.
54754         * doc/functions/snprintf.texi: Update.
54755         * doc/functions/sprintf.texi: Update.
54756         * doc/functions/vfprintf.texi: Update.
54757         * doc/functions/vprintf.texi: Update.
54758         * doc/functions/vsnprintf.texi: Update.
54759         * doc/functions/vsprintf.texi: Update.
54760
54761 2007-11-03  Bruno Haible  <bruno@clisp.org>
54762
54763         * modules/frexp-nolibm-tests: New file.
54764
54765         * modules/frexp-nolibm: New file.
54766         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54767
54768 2007-11-03  Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54771         value is C99 compliant.
54772         Needed for OSF/1 5.1.
54773
54774 2007-11-03  Bruno Haible  <bruno@clisp.org>
54775
54776         Fix out-of-memory handling of vasnprintf.
54777         * lib/printf-parse.c: Include <errno.h>.
54778         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54779         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54780         is already set.
54781
54782 2007-11-02  Eric Blake  <ebb9@byu.net>
54783
54784         Fix tests on cygwin.
54785         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54786
54787 2007-11-01  Bruno Haible  <bruno@clisp.org>
54788
54789         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54790         warning.
54791         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54792         needed for POSIX compatibility.
54793
54794 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54795
54796         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54797         for compatibility with GNU.
54798
54799 2007-11-01  Bruno Haible  <bruno@clisp.org>
54800
54801         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54802         (putenv): Renamed from rpl_putenv. Change argument type from
54803         'const char *' to 'char *'.
54804         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54805         of defining putenv in config.h, just set REPLACE_PUTENV.
54806         * modules/putenv (Depends-on): Add stdlib.
54807         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54808         (Include): Use <stdlib.h>.
54809         * lib/stdlib.in.h (putenv): New declaration.
54810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54811         REPLACE_PUTENV.
54812         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54813         REPLACE_PUTENV.
54814         Needed for MacOS X 10.5.0.
54815         Reported by Peter O'Gorman <peter@pogma.com>.
54816
54817 2007-11-01  Jim Meyering  <meyering@redhat.com>
54818
54819         Treat an empty date string exactly like "0".
54820         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54821         if the remaining date string (to be parsed) is empty, use "0".
54822         Reported by Mischa Molhoek and discussed in this thread:
54823         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54824
54825 2007-10-31  Bruno Haible  <bruno@clisp.org>
54826
54827         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54828         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54829         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54830         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54831         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54832         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54833
54834 2007-10-31  Bruno Haible  <bruno@clisp.org>
54835
54836         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54837         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54838         (AC_TYPE_LONG_LONG_INT): Use it.
54839         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54840         it as well.
54841         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54842         to m4/longlong.m4.
54843         * modules/stdint (Files): Remove m4/ulonglong.m4.
54844         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54845         m4/ulonglong.m4.
54846         * modules/strtoumax (Files): Likewise.
54847
54848 2007-10-30  Bruno Haible  <bruno@clisp.org>
54849
54850         * modules/xvasprintf-posix: New file.
54851         Suggested by Eric Blake.
54852
54853 2007-10-30  Bruno Haible  <bruno@clisp.org>
54854
54855         * modules/xprintf-posix-tests: New file.
54856         * tests/test-xprintf-posix.sh: New file.
54857         * tests/test-xprintf-posix.c: New file.
54858         * tests/test-xfprintf-posix.c: New file.
54859
54860         * modules/xprintf-posix: New file.
54861
54862 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54863
54864         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54865         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54866         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54867
54868 2007-10-29  Bruno Haible  <bruno@clisp.org>
54869
54870         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54871         contain the special marker '_cv_'.
54872         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54873         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54874         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54875         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54876         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54877         Reported by Ralf Wildenhues.
54878
54879 2007-10-29  Bruno Haible  <bruno@clisp.org>
54880
54881         * gnulib-tool (func_import): When --lgpl is not specified, set
54882         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54883         GPLv3.
54884         Reported by Simon Josefsson.
54885
54886 2007-10-28  Bruno Haible  <bruno@clisp.org>
54887
54888         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54889         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54890         HAVE_DECL_ISFINITE.
54891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54892         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54893         HAVE_DECL_ISFINITE.
54894
54895 2007-10-28  Bruno Haible  <bruno@clisp.org>
54896
54897         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54898         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54899
54900 2007-10-28  Bruno Haible  <bruno@clisp.org>
54901
54902         Fix link errors with Sun C 5.0 on Solaris 10.
54903         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54904         function is declared but not present in the compiler's libm.
54905         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54906         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54907         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54908         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54909         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54910         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54911         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54913         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54914         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54915         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54916         HAVE_DECL_FLOORL.
54917
54918 2007-10-28  Bruno Haible  <bruno@clisp.org>
54919
54920         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54921         gl_FUNC_FLOORL. Cache the result.
54922         (gl_FUNC_FLOORL): Use it.
54923         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54924         gl_FUNC_CEILL. Cache the result.
54925         (gl_FUNC_CEILL): Use it.
54926
54927         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54928         gl_FUNC_FLOOR. Cache the result.
54929         (gl_FUNC_FLOOR): Use it.
54930         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
54931         gl_FUNC_CEIL. Cache the result.
54932         (gl_FUNC_CEIL): Use it.
54933
54934         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
54935         gl_FUNC_FLOORF. Cache the result.
54936         (gl_FUNC_FLOORF): Use it.
54937         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
54938         gl_FUNC_CEILF. Cache the result.
54939         (gl_FUNC_CEILF): Use it.
54940
54941 2007-10-28  Bruno Haible  <bruno@clisp.org>
54942
54943         * gnulib-tool: Allow specifying the LGPL version number through
54944         --lgpl=2 or --lgpl=3.
54945         (func_usage): Document --lgpl with argument.
54946         Handle --lgpl=... arguments.
54947         (func_import): Recognize also gl_LGPL calls with an argument. When
54948         --lgpl=2 is used and the module's license is just LGPL, report an
54949         error. Set sed_transform_lib_file according to the lgpl variable. In
54950         the generated files, use --lgpl or gl_LGPL invocations with argument,
54951         if necessary.
54952         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
54953         an LGPv2+ license.
54954         * doc/gnulib-tool.texi (Modified imports): Update explanation of
54955         gl_LGPL macro.
54956
54957 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54958             Bruno Haible  <bruno@clisp.org>
54959
54960         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
54961         (u16_uctomb_aux): Likewise.
54962         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
54963         !HAVE_INLINE.
54964         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
54965
54966 2007-10-28  Bruno Haible  <bruno@clisp.org>
54967
54968         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
54969         Invoke AM_GETTEXT_OPTION if it exists.
54970         * modules/vasprintf: Likewise.
54971         * modules/verror: Likewise.
54972         * modules/xprintf: Likewise.
54973         * modules/xvasprintf: Likewise.
54974
54975 2007-10-27  Ben Pfaff  <blp@gnu.org>
54976
54977         * lib/math.in.h: Define isfinite macro and prototypes for
54978         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
54979         implementations.
54980         * m4/math_h.m4: New substitutions for isfinite module.
54981         * lib/isfinite.c: New file.
54982         * m4/isfinite.m4: New file.
54983         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
54984         * modules/isfinite: New file.
54985         * modules/isfinite-tests: New file.
54986         * tests/tests-isfinite.c: New file.
54987         * doc/functions/isfinite.texi: Mention isfinite module.
54988         * MODULES.html.sh: Mention new module.
54989
54990 2007-10-27  Ben Pfaff  <blp@gnu.org>
54991
54992         Ralf Wildenhues reported that Tru64 4.0D declares the round
54993         functions but does not have definitions.
54994         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
54995         cannot be found in any library, set the output variable to
54996         "missing" instead of "".
54997         * m4/round.m4: Also use our substitute if we cannot find round in
54998         any library, even if it is declared.
54999         * m4/roundf.m4: Likewise for roundf.
55000         * m4/roundl.m4: Likewise for roundl.
55001         * lib/math.in.h: Undefine roundf, round, roundl before defining
55002         their replacements, to allow for hypothetical systems where these
55003         may be defined as macros but not available in libraries.
55004
55005 2007-10-27  Bruno Haible  <bruno@clisp.org>
55006
55007         * doc/gnulib.texi: Invoke @firstparagraphindent.
55008         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55009         changes in gnulib.
55010         (Source changes): New section.
55011
55012 2007-10-26  Bruno Haible  <bruno@clisp.org>
55013
55014         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55015         borrowed from autoconf.
55016
55017 2007-10-26  Bruno Haible  <bruno@clisp.org>
55018
55019         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55020         strerror returned the empty string. Needed on HP-UX 11.00.
55021
55022 2007-10-24  Micah Cowan  <micah@cowan.name>
55023
55024         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55025         * build-aux/bootstrap: Remove support for now-unnecessary option,
55026         --cvs-user, and envvars CVS_USER, CVS_RSH.
55027
55028 2007-10-24  Jim Meyering  <meyering@redhat.com>
55029
55030         Avoid diagnostics from sha1sum when there is no cached checksum.
55031         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55032         if the po.s1 file hasn't been created yet.
55033
55034         * build-aux/bootstrap: Sync from coreutils:
55035         2007-10-24  Jim Meyering  <meyering@redhat.com>
55036         Get gnulib from the git repository, not from an obsolete cvs one.
55037         * build-aux/bootstrap: Suggestion from Micah Cowan.
55038         2007-10-04  Jim Meyering  <jim@meyering.net>
55039         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55040         (update_po_files): Work also when there are no .po files in po/.
55041
55042 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55043
55044         * README: Append ".git" to git and cg examples.
55045         Problem reported by Benoit Sigoure.
55046
55047 2007-10-23  Micah Cowan  <micah@cowan.name>
55048
55049         * users.txt: Add wget.
55050
55051 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55052
55053         Fix linking of some unistdio tests on FreeBSD.
55054         * modules/unistdio/u16-vsnprintf-tests
55055         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55056         * modules/unistdio/u16-vsprintf-tests
55057         (test_u16_vsnprintf1_LDADD): Likewise.
55058         * modules/unistdio/u32-vsnprintf-tests
55059         (test_u32_vsnprintf1_LDADD): Likewise.
55060         * modules/unistdio/u32-vsprintf-tests
55061         (test_u32_vsprintf1_LDADD): Likewise.
55062         * modules/unistdio/u8-vsnprintf-tests
55063         (test_u8_vsnprintf1_LDADD): Likewise.
55064         * modules/unistdio/u8-vsprintf-tests
55065         (test_u8_vsprintf1_LDADD): Likewise.
55066         * modules/unistdio/ulc-vsnprintf-tests
55067         (test_ulc_vsnprintf1_LDADD): Likewise.
55068         * modules/unistdio/ulc-vsprintf-tests
55069         (test_ulc_vsprintf1_LDADD): Likewise.
55070
55071         Fix linking of some uniconv tests on FreeBSD.
55072         * modules/uniconv/u16-conv-from-enc-tests
55073         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55074         * modules/uniconv/u16-conv-to-enc-tests
55075         (test_u16_conv_to_enc_LDADD): Likewise.
55076         * modules/uniconv/u16-strconv-from-enc-tests
55077         (test_u16_strconv_from_enc_LDADD): Likewise.
55078         * modules/uniconv/u16-strconv-to-enc-tests
55079         (test_u16_strconv_to_enc_LDADD): Likewise.
55080         * modules/uniconv/u32-conv-from-enc-tests
55081         (test_u32_conv_from_enc_LDADD): Likewise.
55082         * modules/uniconv/u32-conv-to-enc-tests
55083         (test_u32_conv_to_enc_LDADD): Likewise.
55084         * modules/uniconv/u32-strconv-from-enc-tests
55085         (test_u32_strconv_from_enc_LDADD): Likewise.
55086         * modules/uniconv/u32-strconv-to-enc-tests
55087         (test_u32_strconv_to_enc_LDADD): Likewise.
55088         * modules/uniconv/u8-conv-from-enc-tests
55089         (test_u8_conv_from_enc_LDADD): Likewise.
55090         * modules/uniconv/u8-conv-to-enc-tests
55091         (test_u8_conv_to_enc_LDADD): Likewise.
55092         * modules/uniconv/u8-strconv-from-enc-tests
55093         (test_u8_strconv_from_enc_LDADD): Likewise.
55094         * modules/uniconv/u8-strconv-to-enc-tests
55095         (test_u8_strconv_to_enc_LDADD): Likewise.
55096
55097 2007-10-22  Bruno Haible  <bruno@clisp.org>
55098
55099         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55100         size.
55101
55102 2007-10-22  Eric Blake  <ebb9@byu.net>
55103
55104         Tweak x*printf documentation.
55105         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55106         variable name and comments.
55107         Suggested by Bruno Haible.
55108
55109 2007-10-22  Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/acl.c (copy_acl): Fix file name in comment.
55112
55113 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55114
55115         Fix Tru64 problem with stdbool.h.
55116         * lib/stdbool.in.h (false, true):
55117         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55118         Don't declare as an enum in this situation; it runs afoul of Tru64.
55119         Problem reported by Steven M. Schweda in
55120         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55121
55122 2007-10-22  Eric Blake  <ebb9@byu.net>
55123
55124         Also wrap vf?printf.
55125         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55126         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55127         (xvprintf, xvfprintf): New functions.
55128
55129 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55130
55131         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55132         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55133
55134         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55135         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55136
55137 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55138
55139         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55140         by Bruno Haible.
55141
55142 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55143
55144         * lib/getloadavg.c
55145         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55146         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55147
55148         * tests/test-i-ring.c: Work for C89.
55149
55150 2007-10-22  Bruno Haible  <bruno@clisp.org>
55151
55152         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55153         -1u, in preprocessor expression, so that we don't test for the bug
55154         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55156
55157 2007-10-22  Eric Blake  <ebb9@byu.net>
55158
55159         * tests/test-yesno.sh: Silence stderr during test.
55160
55161 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55162
55163         * modules/crypto/gc-camellia: New file.
55164
55165         * m4/gc-camellia.m4: New file.
55166
55167         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55168
55169         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55170
55171 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55172
55173         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55174         --help to stdout.  Reported by sms@antinode.org (Steven
55175         M. Schweda).
55176
55177 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55178
55179         * users.txt: Fix link to libksba.
55180
55181 2007-10-21  Ben Pfaff  <blp@gnu.org>
55182
55183         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55184         round.c roundf implementation that depends on floorf and ceilf to
55185         be tested unconditionally.
55186
55187 2007-10-21  Ben Pfaff  <blp@gnu.org>
55188
55189         * m4/check-libm-func.m4: Removed.
55190         * m4/check-math-lib.m4: New file.
55191         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55192         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55193         definition and lack of AC_LIBOBJ([roundf]).
55194         * m4/roundl.m4: Ditto, and similarly for roundl.
55195         * modules/round: Reference new m4 file.
55196         * modules/roundf: Ditto.
55197         * modules/roundl: Ditto.
55198         * tests/test-round2.c (main): Use ROUND instead of round.
55199         Bug report from Bruno Haible.
55200
55201 2007-10-21  Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55204         context.
55205
55206 2007-10-21  Bruno Haible  <bruno@clisp.org>
55207
55208         * tests/test-wcwidth.c (main): Allow negative result for some control
55209         characters.
55210
55211         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55212         Needed on OSF/1 5.1.
55213
55214 2007-10-21  Bruno Haible  <bruno@clisp.org>
55215
55216         * tests/test-floorf1.c: Include isnanf.h.
55217         (main): Use isnanf() instead of isnan().
55218         * tests/test-ceilf1.c: Include isnanf.h.
55219         (main): Use isnanf() instead of isnan().
55220         * tests/test-truncf1.c: Include isnanf.h.
55221         (main): Use isnanf() instead of isnan().
55222         * tests/test-roundf1.c: Include isnanf.h.
55223         (main): Use isnanf() instead of isnan().
55224
55225 2007-10-21  Eric Blake  <ebb9@byu.net>
55226
55227         * users.txt: Update URL for m4.
55228
55229 2007-10-21  Bruno Haible  <bruno@clisp.org>
55230
55231         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55232
55233 2007-10-21  Bruno Haible  <bruno@clisp.org>
55234
55235         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55236         Git's management files if the CVS files are not present.
55237
55238 2007-10-20  Bruno Haible  <bruno@clisp.org>
55239
55240         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55241         gcc-3.4.x.
55242
55243 2007-10-20  Ben Pfaff  <blp@gnu.org>
55244
55245         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55246         implementations.
55247         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55248         * lib/round.c: New file.
55249         * lib/roundf.c: New file.
55250         * lib/roundl.c: New file.
55251         * m4/round.m4: New file.
55252         * m4/roundf.m4: New file.
55253         * m4/roundl.m4: New file.
55254         * m4/check-libm-func-m4: New file.
55255         * modules/math: Replace round, roundf, roundl related @VARS@ in
55256         math.in.h.
55257         * modules/round: New file.
55258         * modules/round-tests: New file.
55259         * modules/roundf: New file.
55260         * modules/roundf-tests: New file.
55261         * modules/roundl: New file.
55262         * modules/roundl-tests: New file.
55263         * tests/test-round1.c: New file.
55264         * tests/test-round2.c: New file.
55265         * tests/test-roundf1.c: New file.
55266         * tests/test-roundf2.c: New file.
55267         * tests/test-roundl.c: New file.
55268         * doc/functions/round.texi: Mention round module.
55269         * doc/functions/roundf.texi: Mention roundf module.
55270         * doc/functions/roundl.texi: Mention roundl module.
55271         * MODULES.html.sh: Mention new modules.
55272         Thanks to Bruno Haible for suggestions.
55273
55274 2007-10-20  Jim Meyering  <meyering@redhat.com>
55275
55276         * lib/xprintf.c: Include <config.h> unconditionally.
55277
55278         Change xprintf's license to GPL.
55279         * modules/xprintf (License): s/LGPL/GPL/, since this module
55280         depends on modules (exit and exitfail) which are GPL.
55281         Suggestion from Bruno Haible.
55282
55283         xprintf fixes.
55284         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55285         Use a clearer diagnostic.
55286         Patch from Bruno Haible.
55287
55288 2007-10-20  Bruno Haible  <bruno@clisp.org>
55289
55290         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55291         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55292         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55293
55294 2007-10-20  Bruno Haible  <bruno@clisp.org>
55295
55296         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55297         precision in the comparison result > x - 1 or similar.
55298         * tests/test-ceilf2.c (correct_result_p): Likewise.
55299         * tests/test-truncf2.c (correct_result_p): Likewise.
55300         * tests/test-trunc2.c (correct_result_p): Likewise.
55301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55302
55303 2007-10-20  Bruno Haible  <bruno@clisp.org>
55304
55305         * modules/ceil: New file.
55306         * m4/ceil.m4: New file.
55307         * doc/functions/ceil.texi: Mention the 'ceil' module.
55308
55309 2007-10-20  Bruno Haible  <bruno@clisp.org>
55310
55311         * modules/floor: New file.
55312         * m4/floor.m4: New file.
55313         * doc/functions/floor.texi: Mention the 'floor' module.
55314
55315 2007-10-20  Bruno Haible  <bruno@clisp.org>
55316
55317         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55318         of %a.
55319         * modules/floorf-tests (Depends-on): Likewise.
55320         * modules/truncf-tests (Depends-on): Likewise.
55321         * modules/trunc-tests (Depends-on): Likewise.
55322         Reported by Ben Pfaff.
55323
55324 2007-10-19  Jim Meyering  <meyering@redhat.com>
55325
55326         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55327         Don't bother testing specific errno values.  Just test ferror.
55328
55329         New module: xprintf
55330         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55331
55332 2007-10-19  Bruno Haible  <bruno@clisp.org>
55333
55334         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55335         syntax.
55336         * modules/javaexec (Makefile.am): Likewise.
55337         * modules/relocatable-prog (Makefile.am): Likewise.
55338         Suggested by Jim Meyering.
55339
55340 2007-10-18  Bruno Haible  <bruno@clisp.org>
55341
55342         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55343         Reported by Jim Meyering.
55344
55345 2007-10-18  Eric Blake  <ebb9@byu.net>
55346
55347         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55348
55349 2007-10-18  Bruno Haible  <bruno@clisp.org>
55350
55351         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55352         the format string into writable memory. Needed in Fortify conditions.
55353
55354 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55355             Bruno Haible  <bruno@clisp.org>
55356
55357         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55358         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55359         * modules/trim (Depends-on): Add mbchar.
55360         (configure.ac): Add gl_FUNC_MBRTOWC.
55361         (Makefile.am): Augment lib_SOURCES.
55362
55363 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55364
55365         Modify glob.c to use fstatat and dirfd, to simplify it.
55366         Suggested by Eric Blake.
55367         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55368         Don't include <stdbool.h>; not used.
55369         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55370         (link_exists_p): Simplify implementation, since we can now assume
55371         dirfd and fstatat.
55372         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55373
55374 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55375
55376         * gnulib-tool (func_get_dependencies): Fix sed script to
55377         match only tests.
55378
55379 2007-10-17  Bruno Haible  <bruno@clisp.org>
55380
55381         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55382         allow locale names without encoding suffix.
55383         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55384         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55385
55386 2007-10-16  Bruno Haible  <bruno@clisp.org>
55387
55388         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55389         * lib/getgroups.c (getgroups): Likewise.
55390         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55391
55392 2007-10-16  Bruno Haible  <bruno@clisp.org>
55393
55394         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55395         * modules/malloc-posix (License): Likewise.
55396         * modules/realloc-posix (License): Likewise.
55397         * modules/calloc-posix (License): Likewise.
55398         * modules/intprops (License): Change from GPL to LGPL, with
55399         Paul Eggert's approval.
55400
55401 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55402
55403         Merge glibc changes into lib/glob.c.
55404
55405         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55406         2007-10-15 04:59:03 UTC.  Here are the changes:
55407
55408         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55409
55410         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55411
55412         * lib/glob.c: Add some branch prediction throughout.
55413
55414         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55415
55416         [BZ #5103]
55417         * lib/glob.c (glob): Recognize patterns starting \/.
55418
55419         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55420
55421         [BZ #3996]
55422         * lib/glob.c (attribute_hidden): Define if not defined.
55423         (glob): Unescape dirname, filename or username when needed and not
55424         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55425         is NULL.  Handle unescaped [ in pattern without closing ].
55426         Don't pass GLOB_CHECK down to recursive glob for directories.
55427         (__glob_pattern_type): New function.
55428         (__glob_pattern_p): Implement using __glob_pattern_type.
55429         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55430         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55431         Remove unreachable code.
55432
55433         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55434
55435         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55436         explain why there are no leaks.
55437
55438         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55439
55440         [BZ #3253]
55441         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55442         time, rather allocate increasingly bigger arrays of pointers, if
55443         possible with alloca, if too large with malloc.
55444
55445 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55446
55447         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55448         Problem reported by H.Merijn Brand in
55449         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55450         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55451         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55452
55453 2007-10-15  Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55456         with explicit rpl_ prefix.
55457         * lib/fopen.c (fopen): Likewise.
55458         * lib/freopen.c (freopen): Likewise.
55459         * lib/iconv.c (iconv): Likewise.
55460         * lib/iconv_close.c (iconv_close): Likewise.
55461
55462 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55463
55464         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55465
55466 2007-10-15  Bruno Haible  <bruno@clisp.org>
55467
55468         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55469         <stddef.h> instead of <stdlib.h> since we only need NULL.
55470         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55471
55472 2007-10-15  Bruno Haible  <bruno@clisp.org>
55473
55474         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55475         Replace paragraph talking about LIBOBJS.
55476         Reported by Colin Watson <cjwatson@debian.org>.
55477
55478 2007-10-15  Bruno Haible  <bruno@clisp.org>
55479
55480         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55481         <stdlib.h> before using NULL.
55482
55483 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55484
55485         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55486         Reported by Albert Chin <china@thewrittenword.com>.
55487
55488 2007-10-14  Bruno Haible  <bruno@clisp.org>
55489
55490         * modules/iconv_open-utf-tests: New file.
55491         * tests/test-iconv-utf.c: New file.
55492
55493         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55494         * modules/iconv_open-utf: New file.
55495         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55496         (iconv, iconv_close): New declarations.
55497         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55498         be defined.
55499         (iconv_open): Add special handling of conversion between UTF-8 and
55500         UTF-{16,32}{BE,LE}.
55501         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55502         * lib/iconv_close.c: New file.
55503         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55504         gl_FUNC_ICONV_OPEN.
55505         (gl_FUNC_ICONV_OPEN): Use it.
55506         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55507         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55508         and REPLACE_ICONV_UTF.
55509         * modules/iconv_open (Depends-on): Add c-strcase.
55510         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55511         ICONV_CONST.
55512         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55513
55514 2007-10-13  Albert Chin  <china@thewrittenword.com>
55515             Bruno Haible  <bruno@clisp.org>
55516
55517         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55518         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55519
55520 2007-10-13  Bruno Haible  <bruno@clisp.org>
55521
55522         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55523         defined, use the ISO C99 inline semantics.
55524         * lib/argp.h (ARGP_EI): Likewise.
55525
55526 2007-10-13  Bruno Haible  <bruno@clisp.org>
55527
55528         Handle 'inline' change in gcc 4.3.0.
55529         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55530         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55531         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55532         argp_fmtstream_point): Disable 'extern' declaration if the function
55533         definition is going to be provided inline.
55534         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55535         semantics, not the ISO C99 inline semantics.
55536         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55537         'extern' declaration if the function definition is going to be provided
55538         inline.
55539         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55540         the GNU C inline semantics, not the ISO C99 inline semantics. With
55541         GCC 4.2, avoid a warning.
55542
55543 2007-10-13  Bruno Haible  <bruno@clisp.org>
55544
55545         * lib/freading.h (freading): Enable the use of __freading for
55546         glibc >= 2.7.
55547         * lib/freading.c (freading): Likewise.
55548
55549 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55550
55551         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55552         "warning: C99 inline functions are not supported; using GNU89".
55553
55554 2007-10-12  Bruno Haible  <bruno@clisp.org>
55555
55556         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55557         of 2.
55558         * tests/test-ceilf2.c: New file.
55559         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55560
55561         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55562         * modules/ceilf-tests: Update.
55563
55564 2007-10-12  Bruno Haible  <bruno@clisp.org>
55565
55566         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55567         of 2.
55568         * tests/test-floorf2.c: New file.
55569         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55570
55571         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55572         * modules/floorf-tests: Update.
55573
55574 2007-10-12  Bruno Haible  <bruno@clisp.org>
55575
55576         * tests/test-trunc2.c: New file.
55577         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55578
55579         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55580         * modules/trunc-tests: Update.
55581
55582 2007-10-12  Bruno Haible  <bruno@clisp.org>
55583
55584         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55585         of 2.
55586         * tests/test-truncf2.c: New file.
55587         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55588
55589         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55590         * modules/truncf-tests: Update.
55591
55592 2007-10-11  Eric Blake  <ebb9@byu.net>
55593
55594         Don't claim strerror is broken on Interix.
55595         * doc/functions/strerror.texi (strerror): Known broken systems are
55596         now Solaris 8, and not Interix.
55597         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55598         Interix on cross-compile.
55599         Reported by Martin Koeppe in
55600         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55601
55602 2007-10-11  Bruno Haible  <bruno@clisp.org>
55603
55604         * modules/i-ring-tests: New file.
55605         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55606         instead of assert.
55607
55608 2007-10-11  Bruno Haible  <bruno@clisp.org>
55609
55610         * modules/filenamecat-tests: New file.
55611         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55612         * lib/filenamecat.c: Remove test code.
55613
55614 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55615
55616         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55617
55618         * lib/strerror.c: Include <string.h> always, to test interface,
55619         and to remove the need for the dummy.
55620         Include intprops.h to compute width instead of doing it ourselves
55621         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55622         (strerror): Define it to return NULL if there's no system strerror.
55623         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55624         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55625         ancient pre-strerror Unix systems well any more.  Saying "unknown
55626         system error" is enough.
55627         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55628         simpler strerror.c implementation.
55629         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55630         Simplify the tests to reflect the simpler strerror implementation.
55631         * modules/strerror (Depends-on): Add intprops.
55632
55633 2007-10-09  Eric Blake  <ebb9@byu.net>
55634
55635         Silence test-fpending.
55636         * modules/fpending-tests (Files): Add wrapper script.
55637         * tests/test-fpending.sh: New file.
55638
55639 2007-10-09  Bruno Haible  <bruno@clisp.org>
55640
55641         * MODULES.html.sh (func_module): Don't create a hyperlink for
55642         function names like 'printf_frexp'.
55643         (Misc): Add crc, memxor.
55644         (Characteristics of floating types): New section.
55645         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55646         isnanf-nolibm, signbit, trunc, truncf, truncl.
55647         (Enhancements for ISO C 99 functions): New subsection Input/output.
55648         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55649         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55650         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55651         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55652         (Enhancements for POSIX:2001 functions): Add chdir-long.
55653         (File system functions): Add areadlink, chdir-safer, read-file.
55654         Remove cycle-check.
55655         (File system as inode set): New section.
55656         (Date and time): Add gethrxtime.
55657         (Multithreading): Add openmp.
55658         (Internationalization functions): Add localename.
55659         (Unicode string functions): Add unistr/u*-mbsnlen.
55660         (Support for maintaining and releasing projects): Add git-version-gen.
55661         (Lone files): Remove directories.
55662
55663 2007-10-08  Ben Pfaff  <blp@gnu.org>
55664
55665         * lib/xmalloca.h: Fix typo in comment.
55666
55667 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55668
55669         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55670         when avoiding problems with integer overflow.  Use a portable test
55671         instead.
55672
55673 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55674
55675         * modules/dummy (License): Change to LGPLv2+.
55676         * modules/float (License): Likewise
55677         * modules/realloc (License): Likewise
55678         * modules/stdlib (License): Likewise
55679
55680 2007-10-07  Bruno Haible  <bruno@clisp.org>
55681
55682         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55683         * floor.c (TWO_MANT_DIG): Likewise.
55684         * ceil.c (TWO_MANT_DIG): Likewise.
55685         Reported by Ben Pfaff.
55686
55687 2007-10-07  Bruno Haible  <bruno@clisp.org>
55688
55689         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55690         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55691         * lib/frexp.c (FUNC): Likewise.
55692         * lib/printf-frexp.h (printf_frexp): Likewise.
55693         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55694         * lib/printf-frexp.c (FUNC): Likewise.
55695         Suggested by Jim Meyering.
55696
55697 2007-10-07  Jim Meyering  <meyering@redhat.com>
55698
55699         Make xnanosleep's integer overflow test more robust.
55700         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55701         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55702
55703 2007-10-07  Bruno Haible  <bruno@clisp.org>
55704
55705         * NEWS: Mention the license change.
55706
55707         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55708         abbreviations in the modules files.
55709
55710         Change copyright notice from GPLv2+ to GPLv3+.
55711         * README: Change copyright notice.
55712         * MODULES.html.sh: Likewise.
55713         * build-aux/bootstrap.conf: Likewise.
55714         * build-aux/config.libpath: Likewise.
55715         * build-aux/csharpcomp.sh.in: Likewise.
55716         * build-aux/csharpexec.sh.in: Likewise.
55717         * build-aux/install-reloc: Likewise.
55718         * build-aux/javacomp.sh.in: Likewise.
55719         * build-aux/javaexec.sh.in: Likewise.
55720         * build-aux/ldd.sh.in: Likewise.
55721         * build-aux/reloc-ldflags: Likewise.
55722         * build-aux/relocatable.sh.in: Likewise.
55723         * build-aux/x-to-1.in: Likewise.
55724         * check-module: Likewise.
55725         * config/srclistvars.sh: Likewise.
55726         * gnulib-tool: Likewise.
55727         * lib/acl-internal.h: Likewise.
55728         * lib/acl.c: Likewise.
55729         * lib/acl.h: Likewise.
55730         * lib/acl_entries.c: Likewise.
55731         * lib/areadlink-with-size.c: Likewise.
55732         * lib/areadlink.c: Likewise.
55733         * lib/areadlink.h: Likewise.
55734         * lib/argmatch.c: Likewise.
55735         * lib/argmatch.h: Likewise.
55736         * lib/argp-ba.c: Likewise.
55737         * lib/argp-eexst.c: Likewise.
55738         * lib/argp-fmtstream.c: Likewise.
55739         * lib/argp-fmtstream.h: Likewise.
55740         * lib/argp-fs-xinl.c: Likewise.
55741         * lib/argp-help.c: Likewise.
55742         * lib/argp-namefrob.h: Likewise.
55743         * lib/argp-parse.c: Likewise.
55744         * lib/argp-pin.c: Likewise.
55745         * lib/argp-pv.c: Likewise.
55746         * lib/argp-pvh.c: Likewise.
55747         * lib/argp-xinl.c: Likewise.
55748         * lib/argp.h: Likewise.
55749         * lib/at-func.c: Likewise.
55750         * lib/atanl.c: Likewise.
55751         * lib/backupfile.c: Likewise.
55752         * lib/backupfile.h: Likewise.
55753         * lib/basename.c: Likewise.
55754         * lib/binary-io.h: Likewise.
55755         * lib/byteswap.in.h: Likewise.
55756         * lib/c-stack.c: Likewise.
55757         * lib/c-stack.h: Likewise.
55758         * lib/c-strcasestr.c: Likewise.
55759         * lib/c-strcasestr.h: Likewise.
55760         * lib/c-strstr.c: Likewise.
55761         * lib/c-strstr.h: Likewise.
55762         * lib/c-strtod.c: Likewise.
55763         * lib/calloc.c: Likewise.
55764         * lib/canon-host.c: Likewise.
55765         * lib/canon-host.h: Likewise.
55766         * lib/canonicalize-lgpl.c: Likewise.
55767         * lib/canonicalize.c: Likewise.
55768         * lib/canonicalize.h: Likewise.
55769         * lib/ceil.c: Likewise.
55770         * lib/ceilf.c: Likewise.
55771         * lib/ceill.c: Likewise.
55772         * lib/chdir-long.c: Likewise.
55773         * lib/chdir-long.h: Likewise.
55774         * lib/chdir-safer.c: Likewise.
55775         * lib/chdir-safer.h: Likewise.
55776         * lib/chown.c: Likewise.
55777         * lib/classpath.c: Likewise.
55778         * lib/classpath.h: Likewise.
55779         * lib/clean-temp.c: Likewise.
55780         * lib/clean-temp.h: Likewise.
55781         * lib/cloexec.c: Likewise.
55782         * lib/close-stream.c: Likewise.
55783         * lib/closein.c: Likewise.
55784         * lib/closein.h: Likewise.
55785         * lib/closeout.c: Likewise.
55786         * lib/closeout.h: Likewise.
55787         * lib/concat-filename.c: Likewise.
55788         * lib/copy-file.c: Likewise.
55789         * lib/copy-file.h: Likewise.
55790         * lib/count-one-bits.h: Likewise.
55791         * lib/crc.c: Likewise.
55792         * lib/crc.h: Likewise.
55793         * lib/creat-safer.c: Likewise.
55794         * lib/csharpcomp.c: Likewise.
55795         * lib/csharpcomp.h: Likewise.
55796         * lib/csharpexec.c: Likewise.
55797         * lib/csharpexec.h: Likewise.
55798         * lib/cycle-check.c: Likewise.
55799         * lib/cycle-check.h: Likewise.
55800         * lib/diacrit.c: Likewise.
55801         * lib/diacrit.h: Likewise.
55802         * lib/diffseq.h: Likewise.
55803         * lib/dirchownmod.c: Likewise.
55804         * lib/dirent.in.h: Likewise.
55805         * lib/dirfd.c: Likewise.
55806         * lib/dirfd.h: Likewise.
55807         * lib/dirname.c: Likewise.
55808         * lib/dirname.h: Likewise.
55809         * lib/dummy.c: Likewise.
55810         * lib/dup-safer.c: Likewise.
55811         * lib/dup2.c: Likewise.
55812         * lib/eealloc.h: Likewise.
55813         * lib/error.c: Likewise.
55814         * lib/error.h: Likewise.
55815         * lib/euidaccess.c: Likewise.
55816         * lib/exclude.c: Likewise.
55817         * lib/exclude.h: Likewise.
55818         * lib/execute.c: Likewise.
55819         * lib/execute.h: Likewise.
55820         * lib/exitfail.c: Likewise.
55821         * lib/exitfail.h: Likewise.
55822         * lib/expl.c: Likewise.
55823         * lib/fatal-signal.c: Likewise.
55824         * lib/fatal-signal.h: Likewise.
55825         * lib/fbufmode.c: Likewise.
55826         * lib/fbufmode.h: Likewise.
55827         * lib/fchdir.c: Likewise.
55828         * lib/fchmodat.c: Likewise.
55829         * lib/fchownat.c: Likewise.
55830         * lib/fcntl--.h: Likewise.
55831         * lib/fcntl-safer.h: Likewise.
55832         * lib/fcntl.in.h: Likewise.
55833         * lib/fd-safer.c: Likewise.
55834         * lib/fflush.c: Likewise.
55835         * lib/file-has-acl.c: Likewise.
55836         * lib/file-set.c: Likewise.
55837         * lib/file-type.c: Likewise.
55838         * lib/file-type.h: Likewise.
55839         * lib/fileblocks.c: Likewise.
55840         * lib/filemode.c: Likewise.
55841         * lib/filemode.h: Likewise.
55842         * lib/filename.h: Likewise.
55843         * lib/filenamecat.c: Likewise.
55844         * lib/filenamecat.h: Likewise.
55845         * lib/findprog.c: Likewise.
55846         * lib/findprog.h: Likewise.
55847         * lib/float.in.h: Likewise.
55848         * lib/floor.c: Likewise.
55849         * lib/floorf.c: Likewise.
55850         * lib/floorl.c: Likewise.
55851         * lib/fopen-safer.c: Likewise.
55852         * lib/fopen.c: Likewise.
55853         * lib/fpending.c: Likewise.
55854         * lib/fpending.h: Likewise.
55855         * lib/fprintf.c: Likewise.
55856         * lib/fprintftime.h: Likewise.
55857         * lib/fpucw.h: Likewise.
55858         * lib/fpurge.c: Likewise.
55859         * lib/fpurge.h: Likewise.
55860         * lib/freadable.c: Likewise.
55861         * lib/freadable.h: Likewise.
55862         * lib/freadahead.c: Likewise.
55863         * lib/freadahead.h: Likewise.
55864         * lib/freading.c: Likewise.
55865         * lib/freading.h: Likewise.
55866         * lib/free.c: Likewise.
55867         * lib/freopen.c: Likewise.
55868         * lib/frexp.c: Likewise.
55869         * lib/frexpl.c: Likewise.
55870         * lib/fseek.c: Likewise.
55871         * lib/fseterr.c: Likewise.
55872         * lib/fseterr.h: Likewise.
55873         * lib/fstatat.c: Likewise.
55874         * lib/fstrcmp.c: Likewise.
55875         * lib/fstrcmp.h: Likewise.
55876         * lib/fsusage.c: Likewise.
55877         * lib/fsusage.h: Likewise.
55878         * lib/ftell.c: Likewise.
55879         * lib/ftello.c: Likewise.
55880         * lib/fts-cycle.c: Likewise.
55881         * lib/fts.c: Likewise.
55882         * lib/fts_.h: Likewise.
55883         * lib/full-read.c: Likewise.
55884         * lib/full-read.h: Likewise.
55885         * lib/full-write.c: Likewise.
55886         * lib/full-write.h: Likewise.
55887         * lib/fwritable.c: Likewise.
55888         * lib/fwritable.h: Likewise.
55889         * lib/fwriteerror.c: Likewise.
55890         * lib/fwriteerror.h: Likewise.
55891         * lib/fwriting.c: Likewise.
55892         * lib/fwriting.h: Likewise.
55893         * lib/gcd.c: Likewise.
55894         * lib/gcd.h: Likewise.
55895         * lib/getcwd.c: Likewise.
55896         * lib/getdate.h: Likewise.
55897         * lib/getdate.y: Likewise.
55898         * lib/getdomainname.c: Likewise.
55899         * lib/getdomainname.h: Likewise.
55900         * lib/getgroups.c: Likewise.
55901         * lib/gethostname.c: Likewise.
55902         * lib/gethrxtime.c: Likewise.
55903         * lib/gethrxtime.h: Likewise.
55904         * lib/getloadavg.c: Likewise.
55905         * lib/getndelim2.c: Likewise.
55906         * lib/getndelim2.h: Likewise.
55907         * lib/getnline.c: Likewise.
55908         * lib/getnline.h: Likewise.
55909         * lib/getopt.c: Likewise.
55910         * lib/getopt.in.h: Likewise.
55911         * lib/getopt1.c: Likewise.
55912         * lib/getopt_int.h: Likewise.
55913         * lib/getpagesize.h: Likewise.
55914         * lib/getsubopt.c: Likewise.
55915         * lib/gettime.c: Likewise.
55916         * lib/getugroups.c: Likewise.
55917         * lib/getugroups.h: Likewise.
55918         * lib/getusershell.c: Likewise.
55919         * lib/gl_anyavltree_list1.h: Likewise.
55920         * lib/gl_anyavltree_list2.h: Likewise.
55921         * lib/gl_anyhash_list1.h: Likewise.
55922         * lib/gl_anyhash_list2.h: Likewise.
55923         * lib/gl_anylinked_list1.h: Likewise.
55924         * lib/gl_anylinked_list2.h: Likewise.
55925         * lib/gl_anyrbtree_list1.h: Likewise.
55926         * lib/gl_anyrbtree_list2.h: Likewise.
55927         * lib/gl_anytree_list1.h: Likewise.
55928         * lib/gl_anytree_list2.h: Likewise.
55929         * lib/gl_anytree_oset.h: Likewise.
55930         * lib/gl_anytreehash_list1.h: Likewise.
55931         * lib/gl_anytreehash_list2.h: Likewise.
55932         * lib/gl_array_list.c: Likewise.
55933         * lib/gl_array_list.h: Likewise.
55934         * lib/gl_array_oset.c: Likewise.
55935         * lib/gl_array_oset.h: Likewise.
55936         * lib/gl_avltree_list.c: Likewise.
55937         * lib/gl_avltree_list.h: Likewise.
55938         * lib/gl_avltree_oset.c: Likewise.
55939         * lib/gl_avltree_oset.h: Likewise.
55940         * lib/gl_avltreehash_list.c: Likewise.
55941         * lib/gl_avltreehash_list.h: Likewise.
55942         * lib/gl_carray_list.c: Likewise.
55943         * lib/gl_carray_list.h: Likewise.
55944         * lib/gl_linked_list.c: Likewise.
55945         * lib/gl_linked_list.h: Likewise.
55946         * lib/gl_linkedhash_list.c: Likewise.
55947         * lib/gl_linkedhash_list.h: Likewise.
55948         * lib/gl_list.c: Likewise.
55949         * lib/gl_list.h: Likewise.
55950         * lib/gl_oset.c: Likewise.
55951         * lib/gl_oset.h: Likewise.
55952         * lib/gl_rbtree_list.c: Likewise.
55953         * lib/gl_rbtree_list.h: Likewise.
55954         * lib/gl_rbtree_oset.c: Likewise.
55955         * lib/gl_rbtree_oset.h: Likewise.
55956         * lib/gl_rbtreehash_list.c: Likewise.
55957         * lib/gl_rbtreehash_list.h: Likewise.
55958         * lib/gl_sublist.c: Likewise.
55959         * lib/gl_sublist.h: Likewise.
55960         * lib/group-member.c: Likewise.
55961         * lib/group-member.h: Likewise.
55962         * lib/hard-locale.c: Likewise.
55963         * lib/hard-locale.h: Likewise.
55964         * lib/hash-pjw.c: Likewise.
55965         * lib/hash-pjw.h: Likewise.
55966         * lib/hash-triple.c: Likewise.
55967         * lib/hash.c: Likewise.
55968         * lib/hash.h: Likewise.
55969         * lib/human.c: Likewise.
55970         * lib/human.h: Likewise.
55971         * lib/i-ring.c: Likewise.
55972         * lib/i-ring.h: Likewise.
55973         * lib/idcache.c: Likewise.
55974         * lib/imaxabs.c: Likewise.
55975         * lib/imaxdiv.c: Likewise.
55976         * lib/inet_pton.c: Likewise.
55977         * lib/inet_pton.h: Likewise.
55978         * lib/intprops.h: Likewise.
55979         * lib/inttostr.c: Likewise.
55980         * lib/inttostr.h: Likewise.
55981         * lib/inttypes.in.h: Likewise.
55982         * lib/isapipe.c: Likewise.
55983         * lib/isdir.c: Likewise.
55984         * lib/isnan.c: Likewise.
55985         * lib/isnan.h: Likewise.
55986         * lib/isnanf.c: Likewise.
55987         * lib/isnanf.h: Likewise.
55988         * lib/isnanl-nolibm.h: Likewise.
55989         * lib/isnanl.c: Likewise.
55990         * lib/isnanl.h: Likewise.
55991         * lib/javacomp.c: Likewise.
55992         * lib/javacomp.h: Likewise.
55993         * lib/javaexec.c: Likewise.
55994         * lib/javaexec.h: Likewise.
55995         * lib/javaversion.c: Likewise.
55996         * lib/javaversion.h: Likewise.
55997         * lib/javaversion.java: Likewise.
55998         * lib/lbrkprop.h: Likewise.
55999         * lib/lchmod.h: Likewise.
56000         * lib/lchown.c: Likewise.
56001         * lib/ldexpl.c: Likewise.
56002         * lib/linebreak.c: Likewise.
56003         * lib/linebreak.h: Likewise.
56004         * lib/linebuffer.c: Likewise.
56005         * lib/linebuffer.h: Likewise.
56006         * lib/locale.in.h: Likewise.
56007         * lib/logl.c: Likewise.
56008         * lib/long-options.c: Likewise.
56009         * lib/long-options.h: Likewise.
56010         * lib/lstat.c: Likewise.
56011         * lib/lstat.h: Likewise.
56012         * lib/math.in.h: Likewise.
56013         * lib/mbchar.c: Likewise.
56014         * lib/mbchar.h: Likewise.
56015         * lib/mbfile.h: Likewise.
56016         * lib/mbiter.h: Likewise.
56017         * lib/mbscasecmp.c: Likewise.
56018         * lib/mbscasestr.c: Likewise.
56019         * lib/mbschr.c: Likewise.
56020         * lib/mbscspn.c: Likewise.
56021         * lib/mbslen.c: Likewise.
56022         * lib/mbsncasecmp.c: Likewise.
56023         * lib/mbsnlen.c: Likewise.
56024         * lib/mbspbrk.c: Likewise.
56025         * lib/mbspcasecmp.c: Likewise.
56026         * lib/mbsrchr.c: Likewise.
56027         * lib/mbssep.c: Likewise.
56028         * lib/mbsspn.c: Likewise.
56029         * lib/mbsstr.c: Likewise.
56030         * lib/mbstok_r.c: Likewise.
56031         * lib/mbswidth.c: Likewise.
56032         * lib/mbswidth.h: Likewise.
56033         * lib/mbuiter.h: Likewise.
56034         * lib/memcasecmp.c: Likewise.
56035         * lib/memcasecmp.h: Likewise.
56036         * lib/memchr.c: Likewise.
56037         * lib/memcmp.c: Likewise.
56038         * lib/memcoll.c: Likewise.
56039         * lib/memcoll.h: Likewise.
56040         * lib/memcpy.c: Likewise.
56041         * lib/memrchr.c: Likewise.
56042         * lib/mkancesdirs.c: Likewise.
56043         * lib/mkdir-p.c: Likewise.
56044         * lib/mkdir-p.h: Likewise.
56045         * lib/mkdir.c: Likewise.
56046         * lib/mkdirat.c: Likewise.
56047         * lib/mkdtemp.c: Likewise.
56048         * lib/mkstemp-safer.c: Likewise.
56049         * lib/mkstemp.c: Likewise.
56050         * lib/modechange.c: Likewise.
56051         * lib/modechange.h: Likewise.
56052         * lib/mountlist.c: Likewise.
56053         * lib/mountlist.h: Likewise.
56054         * lib/mpsort.c: Likewise.
56055         * lib/nanosleep.c: Likewise.
56056         * lib/obstack.c: Likewise.
56057         * lib/obstack.h: Likewise.
56058         * lib/open-safer.c: Likewise.
56059         * lib/open.c: Likewise.
56060         * lib/openat-die.c: Likewise.
56061         * lib/openat-priv.h: Likewise.
56062         * lib/openat-proc.c: Likewise.
56063         * lib/openat.c: Likewise.
56064         * lib/openat.h: Likewise.
56065         * lib/pagealign_alloc.c: Likewise.
56066         * lib/pagealign_alloc.h: Likewise.
56067         * lib/physmem.c: Likewise.
56068         * lib/physmem.h: Likewise.
56069         * lib/pipe-safer.c: Likewise.
56070         * lib/pipe.c: Likewise.
56071         * lib/pipe.h: Likewise.
56072         * lib/posixtm.c: Likewise.
56073         * lib/posixtm.h: Likewise.
56074         * lib/posixver.c: Likewise.
56075         * lib/printf-frexp.c: Likewise.
56076         * lib/printf-frexp.h: Likewise.
56077         * lib/printf-frexpl.c: Likewise.
56078         * lib/printf-frexpl.h: Likewise.
56079         * lib/printf.c: Likewise.
56080         * lib/progname.c: Likewise.
56081         * lib/progname.h: Likewise.
56082         * lib/progreloc.c: Likewise.
56083         * lib/putenv.c: Likewise.
56084         * lib/quote.c: Likewise.
56085         * lib/quote.h: Likewise.
56086         * lib/quotearg.c: Likewise.
56087         * lib/quotearg.h: Likewise.
56088         * lib/raise.c: Likewise.
56089         * lib/readline.c: Likewise.
56090         * lib/readline.h: Likewise.
56091         * lib/readlink.c: Likewise.
56092         * lib/readtokens.c: Likewise.
56093         * lib/readtokens.h: Likewise.
56094         * lib/readtokens0.c: Likewise.
56095         * lib/readtokens0.h: Likewise.
56096         * lib/readutmp.c: Likewise.
56097         * lib/readutmp.h: Likewise.
56098         * lib/realloc.c: Likewise.
56099         * lib/relocwrapper.c: Likewise.
56100         * lib/rename-dest-slash.c: Likewise.
56101         * lib/rename.c: Likewise.
56102         * lib/rmdir.c: Likewise.
56103         * lib/rpmatch.c: Likewise.
56104         * lib/safe-read.c: Likewise.
56105         * lib/safe-read.h: Likewise.
56106         * lib/safe-write.c: Likewise.
56107         * lib/safe-write.h: Likewise.
56108         * lib/same-inode.h: Likewise.
56109         * lib/same.c: Likewise.
56110         * lib/same.h: Likewise.
56111         * lib/save-cwd.c: Likewise.
56112         * lib/save-cwd.h: Likewise.
56113         * lib/savedir.c: Likewise.
56114         * lib/savedir.h: Likewise.
56115         * lib/savewd.c: Likewise.
56116         * lib/savewd.h: Likewise.
56117         * lib/search.in.h: Likewise.
56118         * lib/setenv.c: Likewise.
56119         * lib/setenv.h: Likewise.
56120         * lib/settime.c: Likewise.
56121         * lib/sh-quote.c: Likewise.
56122         * lib/sh-quote.h: Likewise.
56123         * lib/sig2str.c: Likewise.
56124         * lib/sig2str.h: Likewise.
56125         * lib/signal.in.h: Likewise.
56126         * lib/signbitd.c: Likewise.
56127         * lib/signbitf.c: Likewise.
56128         * lib/signbitl.c: Likewise.
56129         * lib/sigprocmask.c: Likewise.
56130         * lib/sincosl.c: Likewise.
56131         * lib/sleep.c: Likewise.
56132         * lib/sprintf.c: Likewise.
56133         * lib/sqrtl.c: Likewise.
56134         * lib/stat-time.h: Likewise.
56135         * lib/stdio--.h: Likewise.
56136         * lib/stdio-safer.h: Likewise.
56137         * lib/stdlib--.h: Likewise.
56138         * lib/stdlib-safer.h: Likewise.
56139         * lib/stdlib.in.h: Likewise.
56140         * lib/stpcpy.c: Likewise.
56141         * lib/stpncpy.c: Likewise.
56142         * lib/strchrnul.c: Likewise.
56143         * lib/strcspn.c: Likewise.
56144         * lib/strerror.c: Likewise.
56145         * lib/strftime.c: Likewise.
56146         * lib/strftime.h: Likewise.
56147         * lib/striconveh.c: Likewise.
56148         * lib/striconveh.h: Likewise.
56149         * lib/striconveha.c: Likewise.
56150         * lib/striconveha.h: Likewise.
56151         * lib/stripslash.c: Likewise.
56152         * lib/strnlen1.c: Likewise.
56153         * lib/strnlen1.h: Likewise.
56154         * lib/strtod.c: Likewise.
56155         * lib/strtoimax.c: Likewise.
56156         * lib/strtok_r.c: Likewise.
56157         * lib/strtol.c: Likewise.
56158         * lib/strtoll.c: Likewise.
56159         * lib/strtoul.c: Likewise.
56160         * lib/strtoull.c: Likewise.
56161         * lib/sysexits.in.h: Likewise.
56162         * lib/tempname.c: Likewise.
56163         * lib/tempname.h: Likewise.
56164         * lib/timespec.h: Likewise.
56165         * lib/tls.c: Likewise.
56166         * lib/tls.h: Likewise.
56167         * lib/tmpdir.c: Likewise.
56168         * lib/tmpdir.h: Likewise.
56169         * lib/tmpfile-safer.c: Likewise.
56170         * lib/tmpfile.c: Likewise.
56171         * lib/trigl.c: Likewise.
56172         * lib/trigl.h: Likewise.
56173         * lib/trim.c: Likewise.
56174         * lib/trim.h: Likewise.
56175         * lib/trunc.c: Likewise.
56176         * lib/truncf.c: Likewise.
56177         * lib/truncl.c: Likewise.
56178         * lib/tsearch.c: Likewise.
56179         * lib/unicodeio.c: Likewise.
56180         * lib/unicodeio.h: Likewise.
56181         * lib/unistd--.h: Likewise.
56182         * lib/unistd-safer.h: Likewise.
56183         * lib/unistdio/ulc-fprintf.c: Likewise.
56184         * lib/unistdio/ulc-vfprintf.c: Likewise.
56185         * lib/unlinkdir.c: Likewise.
56186         * lib/unlinkdir.h: Likewise.
56187         * lib/unlocked-io.h: Likewise.
56188         * lib/unsetenv.c: Likewise.
56189         * lib/userspec.c: Likewise.
56190         * lib/utime.c: Likewise.
56191         * lib/utimecmp.c: Likewise.
56192         * lib/utimecmp.h: Likewise.
56193         * lib/utimens.c: Likewise.
56194         * lib/verify.h: Likewise.
56195         * lib/verror.c: Likewise.
56196         * lib/verror.h: Likewise.
56197         * lib/version-etc-fsf.c: Likewise.
56198         * lib/version-etc.c: Likewise.
56199         * lib/version-etc.h: Likewise.
56200         * lib/vfprintf.c: Likewise.
56201         * lib/vprintf.c: Likewise.
56202         * lib/vsprintf.c: Likewise.
56203         * lib/w32spawn.h: Likewise.
56204         * lib/wait-process.c: Likewise.
56205         * lib/wait-process.h: Likewise.
56206         * lib/wcwidth.c: Likewise.
56207         * lib/write-any-file.c: Likewise.
56208         * lib/xalloc-die.c: Likewise.
56209         * lib/xalloc.h: Likewise.
56210         * lib/xasprintf.c: Likewise.
56211         * lib/xgetcwd.c: Likewise.
56212         * lib/xgetcwd.h: Likewise.
56213         * lib/xgetdomainname.c: Likewise.
56214         * lib/xgetdomainname.h: Likewise.
56215         * lib/xgethostname.c: Likewise.
56216         * lib/xmalloc.c: Likewise.
56217         * lib/xmalloca.c: Likewise.
56218         * lib/xmalloca.h: Likewise.
56219         * lib/xmemcoll.c: Likewise.
56220         * lib/xnanosleep.c: Likewise.
56221         * lib/xreadlink.c: Likewise.
56222         * lib/xreadlink.h: Likewise.
56223         * lib/xsetenv.c: Likewise.
56224         * lib/xsetenv.h: Likewise.
56225         * lib/xstriconv.c: Likewise.
56226         * lib/xstriconv.h: Likewise.
56227         * lib/xstrndup.c: Likewise.
56228         * lib/xstrndup.h: Likewise.
56229         * lib/xstrtod.c: Likewise.
56230         * lib/xstrtod.h: Likewise.
56231         * lib/xstrtol-error.c: Likewise.
56232         * lib/xstrtol.c: Likewise.
56233         * lib/xstrtol.h: Likewise.
56234         * lib/xtime.h: Likewise.
56235         * lib/xvasprintf.c: Likewise.
56236         * lib/xvasprintf.h: Likewise.
56237         * lib/yesno.c: Likewise.
56238         * lib/yesno.h: Likewise.
56239         * posix-modules: Likewise.
56240         * tests/test-alloca-opt.c: Likewise.
56241         * tests/test-arcfour.c: Likewise.
56242         * tests/test-arctwo.c: Likewise.
56243         * tests/test-argmatch.c: Likewise.
56244         * tests/test-argp-2.sh: Likewise.
56245         * tests/test-argp.c: Likewise.
56246         * tests/test-arpa_inet.c: Likewise.
56247         * tests/test-array_list.c: Likewise.
56248         * tests/test-array_oset.c: Likewise.
56249         * tests/test-atexit.c: Likewise.
56250         * tests/test-avltree_list.c: Likewise.
56251         * tests/test-avltree_oset.c: Likewise.
56252         * tests/test-avltreehash_list.c: Likewise.
56253         * tests/test-base64.c: Likewise.
56254         * tests/test-binary-io.c: Likewise.
56255         * tests/test-byteswap.c: Likewise.
56256         * tests/test-c-ctype.c: Likewise.
56257         * tests/test-c-strcasecmp.c: Likewise.
56258         * tests/test-c-strcasestr.c: Likewise.
56259         * tests/test-c-strncasecmp.c: Likewise.
56260         * tests/test-c-strstr.c: Likewise.
56261         * tests/test-canonicalize-lgpl.c: Likewise.
56262         * tests/test-canonicalize.c: Likewise.
56263         * tests/test-carray_list.c: Likewise.
56264         * tests/test-ceilf.c: Likewise.
56265         * tests/test-ceill.c: Likewise.
56266         * tests/test-count-one-bits.c: Likewise.
56267         * tests/test-crc.c: Likewise.
56268         * tests/test-dirname.c: Likewise.
56269         * tests/test-fbufmode.c: Likewise.
56270         * tests/test-fcntl.c: Likewise.
56271         * tests/test-fflush.c: Likewise.
56272         * tests/test-floorf.c: Likewise.
56273         * tests/test-floorl.c: Likewise.
56274         * tests/test-fopen.c: Likewise.
56275         * tests/test-fprintf-posix.c: Likewise.
56276         * tests/test-fprintf-posix.h: Likewise.
56277         * tests/test-fpurge.c: Likewise.
56278         * tests/test-freadable.c: Likewise.
56279         * tests/test-freadahead.c: Likewise.
56280         * tests/test-freading.c: Likewise.
56281         * tests/test-freopen.c: Likewise.
56282         * tests/test-frexp.c: Likewise.
56283         * tests/test-frexpl.c: Likewise.
56284         * tests/test-fseek.c: Likewise.
56285         * tests/test-fseeko.c: Likewise.
56286         * tests/test-fseterr.c: Likewise.
56287         * tests/test-fstrcmp.c: Likewise.
56288         * tests/test-ftell.c: Likewise.
56289         * tests/test-ftello.c: Likewise.
56290         * tests/test-fwritable.c: Likewise.
56291         * tests/test-fwriting.c: Likewise.
56292         * tests/test-getaddrinfo.c: Likewise.
56293         * tests/test-getpass.c: Likewise.
56294         * tests/test-gettimeofday.c: Likewise.
56295         * tests/test-hmac-md5.c: Likewise.
56296         * tests/test-hmac-sha1.c: Likewise.
56297         * tests/test-iconv.c: Likewise.
56298         * tests/test-iconvme.c: Likewise.
56299         * tests/test-inttypes.c: Likewise.
56300         * tests/test-isnan.c: Likewise.
56301         * tests/test-isnanf.c: Likewise.
56302         * tests/test-isnanl-nolibm.c: Likewise.
56303         * tests/test-isnanl.c: Likewise.
56304         * tests/test-isnanl.h: Likewise.
56305         * tests/test-ldexpl.c: Likewise.
56306         * tests/test-linked_list.c: Likewise.
56307         * tests/test-linkedhash_list.c: Likewise.
56308         * tests/test-locale.c: Likewise.
56309         * tests/test-localename.c: Likewise.
56310         * tests/test-lock.c: Likewise.
56311         * tests/test-lseek.c: Likewise.
56312         * tests/test-malloca.c: Likewise.
56313         * tests/test-math.c: Likewise.
56314         * tests/test-mbscasecmp.c: Likewise.
56315         * tests/test-mbscasestr1.c: Likewise.
56316         * tests/test-mbscasestr2.c: Likewise.
56317         * tests/test-mbscasestr3.c: Likewise.
56318         * tests/test-mbscasestr4.c: Likewise.
56319         * tests/test-mbschr.c: Likewise.
56320         * tests/test-mbscspn.c: Likewise.
56321         * tests/test-mbsncasecmp.c: Likewise.
56322         * tests/test-mbspbrk.c: Likewise.
56323         * tests/test-mbspcasecmp.c: Likewise.
56324         * tests/test-mbsrchr.c: Likewise.
56325         * tests/test-mbsspn.c: Likewise.
56326         * tests/test-mbsstr1.c: Likewise.
56327         * tests/test-mbsstr2.c: Likewise.
56328         * tests/test-mbsstr3.c: Likewise.
56329         * tests/test-md5.c: Likewise.
56330         * tests/test-memmem.c: Likewise.
56331         * tests/test-netinet_in.c: Likewise.
56332         * tests/test-open.c: Likewise.
56333         * tests/test-printf-frexp.c: Likewise.
56334         * tests/test-printf-frexpl.c: Likewise.
56335         * tests/test-printf-posix.c: Likewise.
56336         * tests/test-printf-posix.h: Likewise.
56337         * tests/test-rbtree_list.c: Likewise.
56338         * tests/test-rbtree_oset.c: Likewise.
56339         * tests/test-rbtreehash_list.c: Likewise.
56340         * tests/test-read-file.c: Likewise.
56341         * tests/test-rijndael.c: Likewise.
56342         * tests/test-search.c: Likewise.
56343         * tests/test-signbit.c: Likewise.
56344         * tests/test-sleep.c: Likewise.
56345         * tests/test-snprintf-posix.c: Likewise.
56346         * tests/test-snprintf-posix.h: Likewise.
56347         * tests/test-snprintf.c: Likewise.
56348         * tests/test-sprintf-posix.c: Likewise.
56349         * tests/test-sprintf-posix.h: Likewise.
56350         * tests/test-stat-time.c: Likewise.
56351         * tests/test-stdbool.c: Likewise.
56352         * tests/test-stdint.c: Likewise.
56353         * tests/test-stdio.c: Likewise.
56354         * tests/test-stdlib.c: Likewise.
56355         * tests/test-stpncpy.c: Likewise.
56356         * tests/test-strcasestr.c: Likewise.
56357         * tests/test-striconv.c: Likewise.
56358         * tests/test-striconveh.c: Likewise.
56359         * tests/test-striconveha.c: Likewise.
56360         * tests/test-string.c: Likewise.
56361         * tests/test-sys_select.c: Likewise.
56362         * tests/test-sys_socket.c: Likewise.
56363         * tests/test-sys_stat.c: Likewise.
56364         * tests/test-sys_time.c: Likewise.
56365         * tests/test-sysexits.c: Likewise.
56366         * tests/test-time.c: Likewise.
56367         * tests/test-tls.c: Likewise.
56368         * tests/test-trunc.c: Likewise.
56369         * tests/test-truncf.c: Likewise.
56370         * tests/test-truncl.c: Likewise.
56371         * tests/test-unistd.c: Likewise.
56372         * tests/test-vasnprintf-posix.c: Likewise.
56373         * tests/test-vasnprintf-posix2.c: Likewise.
56374         * tests/test-vasnprintf.c: Likewise.
56375         * tests/test-vasprintf-posix.c: Likewise.
56376         * tests/test-vasprintf.c: Likewise.
56377         * tests/test-verify.c: Likewise.
56378         * tests/test-vfprintf-posix.c: Likewise.
56379         * tests/test-vprintf-posix.c: Likewise.
56380         * tests/test-vsnprintf-posix.c: Likewise.
56381         * tests/test-vsnprintf.c: Likewise.
56382         * tests/test-vsprintf-posix.c: Likewise.
56383         * tests/test-wchar.c: Likewise.
56384         * tests/test-wctype.c: Likewise.
56385         * tests/test-wcwidth.c: Likewise.
56386         * tests/test-xstrtol.c: Likewise.
56387         * tests/test-xvasprintf.c: Likewise.
56388         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56389         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56390         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56391         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56392         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56393         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56394         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56395         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56396         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56397         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56398         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56399         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56400         * tests/uniname/test-uninames.c: Likewise.
56401         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56402         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56403         * tests/unistdio/test-u16-printf1.h: Likewise.
56404         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56405         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56406         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56407         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56408         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56409         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56410         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56411         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56412         * tests/unistdio/test-u32-printf1.h: Likewise.
56413         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56414         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56415         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56416         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56417         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56418         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56419         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56420         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56421         * tests/unistdio/test-u8-printf1.h: Likewise.
56422         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56423         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56424         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56425         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56426         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56427         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56428         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56429         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56430         * tests/unistdio/test-ulc-printf1.h: Likewise.
56431         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56432         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56433         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56434         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56435         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56436         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56437         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56438         * tests/uniwidth/test-u16-width.c: Likewise.
56439         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56440         * tests/uniwidth/test-u32-width.c: Likewise.
56441         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56442         * tests/uniwidth/test-u8-width.c: Likewise.
56443         * tests/uniwidth/test-uc_width.c: Likewise.
56444         * config/srclist-update: Likewise.
56445         (fixlicense): Update to GPLv3+.
56446
56447         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56448         * tests/test-tsearch.c: Change copyright notice.
56449
56450         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56451         * lib/c-strcaseeq.h: Change copyright notice.
56452         * lib/streq.h: Likewise.
56453         * lib/uniconv.h: Likewise.
56454         * lib/uniconv/u-conv-from-enc.h: Likewise.
56455         * lib/uniconv/u-conv-to-enc.h: Likewise.
56456         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56457         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56458         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56459         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56460         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56461         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56462         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56463         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56464         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56465         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56466         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56467         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56468         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56469         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56470         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56471         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56472         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56473         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56474         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56475         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56476         * lib/uniname.h: Likewise.
56477         * lib/uniname/uniname.c: Likewise.
56478         * lib/unistdio.h: Likewise.
56479         * lib/unistdio/u-asnprintf.h: Likewise.
56480         * lib/unistdio/u-asprintf.h: Likewise.
56481         * lib/unistdio/u-printf-args.c: Likewise.
56482         * lib/unistdio/u-printf-args.h: Likewise.
56483         * lib/unistdio/u-printf-parse.h: Likewise.
56484         * lib/unistdio/u-snprintf.h: Likewise.
56485         * lib/unistdio/u-sprintf.h: Likewise.
56486         * lib/unistdio/u-vasprintf.h: Likewise.
56487         * lib/unistdio/u-vsnprintf.h: Likewise.
56488         * lib/unistdio/u-vsprintf.h: Likewise.
56489         * lib/unistdio/u16-asnprintf.c: Likewise.
56490         * lib/unistdio/u16-asprintf.c: Likewise.
56491         * lib/unistdio/u16-printf-parse.c: Likewise.
56492         * lib/unistdio/u16-snprintf.c: Likewise.
56493         * lib/unistdio/u16-sprintf.c: Likewise.
56494         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56495         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56496         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56497         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56498         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56499         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56500         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56501         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56502         * lib/unistdio/u16-vasnprintf.c: Likewise.
56503         * lib/unistdio/u16-vasprintf.c: Likewise.
56504         * lib/unistdio/u16-vsnprintf.c: Likewise.
56505         * lib/unistdio/u16-vsprintf.c: Likewise.
56506         * lib/unistdio/u32-asnprintf.c: Likewise.
56507         * lib/unistdio/u32-asprintf.c: Likewise.
56508         * lib/unistdio/u32-printf-parse.c: Likewise.
56509         * lib/unistdio/u32-snprintf.c: Likewise.
56510         * lib/unistdio/u32-sprintf.c: Likewise.
56511         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56512         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56513         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56514         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56515         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56516         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56517         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56518         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56519         * lib/unistdio/u32-vasnprintf.c: Likewise.
56520         * lib/unistdio/u32-vasprintf.c: Likewise.
56521         * lib/unistdio/u32-vsnprintf.c: Likewise.
56522         * lib/unistdio/u32-vsprintf.c: Likewise.
56523         * lib/unistdio/u8-asnprintf.c: Likewise.
56524         * lib/unistdio/u8-asprintf.c: Likewise.
56525         * lib/unistdio/u8-printf-parse.c: Likewise.
56526         * lib/unistdio/u8-snprintf.c: Likewise.
56527         * lib/unistdio/u8-sprintf.c: Likewise.
56528         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56529         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56530         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56531         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56532         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56533         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56534         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56535         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56536         * lib/unistdio/u8-vasnprintf.c: Likewise.
56537         * lib/unistdio/u8-vasprintf.c: Likewise.
56538         * lib/unistdio/u8-vsnprintf.c: Likewise.
56539         * lib/unistdio/u8-vsprintf.c: Likewise.
56540         * lib/unistdio/ulc-asnprintf.c: Likewise.
56541         * lib/unistdio/ulc-asprintf.c: Likewise.
56542         * lib/unistdio/ulc-printf-parse.c: Likewise.
56543         * lib/unistdio/ulc-snprintf.c: Likewise.
56544         * lib/unistdio/ulc-sprintf.c: Likewise.
56545         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56546         * lib/unistdio/ulc-vasprintf.c: Likewise.
56547         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56548         * lib/unistdio/ulc-vsprintf.c: Likewise.
56549         * lib/unistr.h: Likewise.
56550         * lib/unistr/u-cpy-alloc.h: Likewise.
56551         * lib/unistr/u-cpy.h: Likewise.
56552         * lib/unistr/u-endswith.h: Likewise.
56553         * lib/unistr/u-move.h: Likewise.
56554         * lib/unistr/u-set.h: Likewise.
56555         * lib/unistr/u-startswith.h: Likewise.
56556         * lib/unistr/u-stpcpy.h: Likewise.
56557         * lib/unistr/u-stpncpy.h: Likewise.
56558         * lib/unistr/u-strcat.h: Likewise.
56559         * lib/unistr/u-strcpy.h: Likewise.
56560         * lib/unistr/u-strcspn.h: Likewise.
56561         * lib/unistr/u-strdup.h: Likewise.
56562         * lib/unistr/u-strlen.h: Likewise.
56563         * lib/unistr/u-strncat.h: Likewise.
56564         * lib/unistr/u-strncpy.h: Likewise.
56565         * lib/unistr/u-strnlen.h: Likewise.
56566         * lib/unistr/u-strpbrk.h: Likewise.
56567         * lib/unistr/u-strspn.h: Likewise.
56568         * lib/unistr/u-strstr.h: Likewise.
56569         * lib/unistr/u-strtok.h: Likewise.
56570         * lib/unistr/u16-check.c: Likewise.
56571         * lib/unistr/u16-chr.c: Likewise.
56572         * lib/unistr/u16-cmp.c: Likewise.
56573         * lib/unistr/u16-cpy-alloc.c: Likewise.
56574         * lib/unistr/u16-cpy.c: Likewise.
56575         * lib/unistr/u16-endswith.c: Likewise.
56576         * lib/unistr/u16-mblen.c: Likewise.
56577         * lib/unistr/u16-mbsnlen.c: Likewise.
56578         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56579         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56580         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56581         * lib/unistr/u16-mbtouc.c: Likewise.
56582         * lib/unistr/u16-mbtoucr.c: Likewise.
56583         * lib/unistr/u16-move.c: Likewise.
56584         * lib/unistr/u16-next.c: Likewise.
56585         * lib/unistr/u16-prev.c: Likewise.
56586         * lib/unistr/u16-set.c: Likewise.
56587         * lib/unistr/u16-startswith.c: Likewise.
56588         * lib/unistr/u16-stpcpy.c: Likewise.
56589         * lib/unistr/u16-stpncpy.c: Likewise.
56590         * lib/unistr/u16-strcat.c: Likewise.
56591         * lib/unistr/u16-strchr.c: Likewise.
56592         * lib/unistr/u16-strcmp.c: Likewise.
56593         * lib/unistr/u16-strcpy.c: Likewise.
56594         * lib/unistr/u16-strcspn.c: Likewise.
56595         * lib/unistr/u16-strdup.c: Likewise.
56596         * lib/unistr/u16-strlen.c: Likewise.
56597         * lib/unistr/u16-strmblen.c: Likewise.
56598         * lib/unistr/u16-strmbtouc.c: Likewise.
56599         * lib/unistr/u16-strncat.c: Likewise.
56600         * lib/unistr/u16-strncmp.c: Likewise.
56601         * lib/unistr/u16-strncpy.c: Likewise.
56602         * lib/unistr/u16-strnlen.c: Likewise.
56603         * lib/unistr/u16-strpbrk.c: Likewise.
56604         * lib/unistr/u16-strrchr.c: Likewise.
56605         * lib/unistr/u16-strspn.c: Likewise.
56606         * lib/unistr/u16-strstr.c: Likewise.
56607         * lib/unistr/u16-strtok.c: Likewise.
56608         * lib/unistr/u16-to-u32.c: Likewise.
56609         * lib/unistr/u16-to-u8.c: Likewise.
56610         * lib/unistr/u16-uctomb-aux.c: Likewise.
56611         * lib/unistr/u16-uctomb.c: Likewise.
56612         * lib/unistr/u32-check.c: Likewise.
56613         * lib/unistr/u32-chr.c: Likewise.
56614         * lib/unistr/u32-cmp.c: Likewise.
56615         * lib/unistr/u32-cpy-alloc.c: Likewise.
56616         * lib/unistr/u32-cpy.c: Likewise.
56617         * lib/unistr/u32-endswith.c: Likewise.
56618         * lib/unistr/u32-mblen.c: Likewise.
56619         * lib/unistr/u32-mbsnlen.c: Likewise.
56620         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56621         * lib/unistr/u32-mbtouc.c: Likewise.
56622         * lib/unistr/u32-mbtoucr.c: Likewise.
56623         * lib/unistr/u32-move.c: Likewise.
56624         * lib/unistr/u32-next.c: Likewise.
56625         * lib/unistr/u32-prev.c: Likewise.
56626         * lib/unistr/u32-set.c: Likewise.
56627         * lib/unistr/u32-startswith.c: Likewise.
56628         * lib/unistr/u32-stpcpy.c: Likewise.
56629         * lib/unistr/u32-stpncpy.c: Likewise.
56630         * lib/unistr/u32-strcat.c: Likewise.
56631         * lib/unistr/u32-strchr.c: Likewise.
56632         * lib/unistr/u32-strcmp.c: Likewise.
56633         * lib/unistr/u32-strcpy.c: Likewise.
56634         * lib/unistr/u32-strcspn.c: Likewise.
56635         * lib/unistr/u32-strdup.c: Likewise.
56636         * lib/unistr/u32-strlen.c: Likewise.
56637         * lib/unistr/u32-strmblen.c: Likewise.
56638         * lib/unistr/u32-strmbtouc.c: Likewise.
56639         * lib/unistr/u32-strncat.c: Likewise.
56640         * lib/unistr/u32-strncmp.c: Likewise.
56641         * lib/unistr/u32-strncpy.c: Likewise.
56642         * lib/unistr/u32-strnlen.c: Likewise.
56643         * lib/unistr/u32-strpbrk.c: Likewise.
56644         * lib/unistr/u32-strrchr.c: Likewise.
56645         * lib/unistr/u32-strspn.c: Likewise.
56646         * lib/unistr/u32-strstr.c: Likewise.
56647         * lib/unistr/u32-strtok.c: Likewise.
56648         * lib/unistr/u32-to-u16.c: Likewise.
56649         * lib/unistr/u32-to-u8.c: Likewise.
56650         * lib/unistr/u32-uctomb.c: Likewise.
56651         * lib/unistr/u8-check.c: Likewise.
56652         * lib/unistr/u8-chr.c: Likewise.
56653         * lib/unistr/u8-cmp.c: Likewise.
56654         * lib/unistr/u8-cpy-alloc.c: Likewise.
56655         * lib/unistr/u8-cpy.c: Likewise.
56656         * lib/unistr/u8-endswith.c: Likewise.
56657         * lib/unistr/u8-mblen.c: Likewise.
56658         * lib/unistr/u8-mbsnlen.c: Likewise.
56659         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56660         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56661         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56662         * lib/unistr/u8-mbtouc.c: Likewise.
56663         * lib/unistr/u8-mbtoucr.c: Likewise.
56664         * lib/unistr/u8-move.c: Likewise.
56665         * lib/unistr/u8-next.c: Likewise.
56666         * lib/unistr/u8-prev.c: Likewise.
56667         * lib/unistr/u8-set.c: Likewise.
56668         * lib/unistr/u8-startswith.c: Likewise.
56669         * lib/unistr/u8-stpcpy.c: Likewise.
56670         * lib/unistr/u8-stpncpy.c: Likewise.
56671         * lib/unistr/u8-strcat.c: Likewise.
56672         * lib/unistr/u8-strchr.c: Likewise.
56673         * lib/unistr/u8-strcmp.c: Likewise.
56674         * lib/unistr/u8-strcpy.c: Likewise.
56675         * lib/unistr/u8-strcspn.c: Likewise.
56676         * lib/unistr/u8-strdup.c: Likewise.
56677         * lib/unistr/u8-strlen.c: Likewise.
56678         * lib/unistr/u8-strmblen.c: Likewise.
56679         * lib/unistr/u8-strmbtouc.c: Likewise.
56680         * lib/unistr/u8-strncat.c: Likewise.
56681         * lib/unistr/u8-strncmp.c: Likewise.
56682         * lib/unistr/u8-strncpy.c: Likewise.
56683         * lib/unistr/u8-strnlen.c: Likewise.
56684         * lib/unistr/u8-strpbrk.c: Likewise.
56685         * lib/unistr/u8-strrchr.c: Likewise.
56686         * lib/unistr/u8-strspn.c: Likewise.
56687         * lib/unistr/u8-strstr.c: Likewise.
56688         * lib/unistr/u8-strtok.c: Likewise.
56689         * lib/unistr/u8-to-u16.c: Likewise.
56690         * lib/unistr/u8-to-u32.c: Likewise.
56691         * lib/unistr/u8-uctomb-aux.c: Likewise.
56692         * lib/unistr/u8-uctomb.c: Likewise.
56693         * lib/unitypes.h: Likewise.
56694         * lib/uniwidth.h: Likewise.
56695         * lib/uniwidth/cjk.h: Likewise.
56696         * lib/uniwidth/u16-strwidth.c: Likewise.
56697         * lib/uniwidth/u16-width.c: Likewise.
56698         * lib/uniwidth/u32-strwidth.c: Likewise.
56699         * lib/uniwidth/u32-width.c: Likewise.
56700         * lib/uniwidth/u8-strwidth.c: Likewise.
56701         * lib/uniwidth/u8-width.c: Likewise.
56702         * lib/uniwidth/width.c: Likewise.
56703
56704 2007-10-07  Bruno Haible  <bruno@clisp.org>
56705
56706         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56707         The file is still under LGPL (see modules/inttypes).
56708
56709 2007-10-06  Bruno Haible  <bruno@clisp.org>
56710
56711         * modules/trunc (Dependencies): Add 'extensions'.
56712         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56713         Reported by Ben Pfaff <blp@gnu.org>.
56714
56715 2007-10-06  Bruno Haible  <bruno@clisp.org>
56716
56717         * modules/freopen-tests: New file.
56718         * tests/test-freopen.c: New file.
56719
56720         * modules/fopen-tests: New file.
56721         * tests/test-fopen.c: New file.
56722
56723         * modules/fopen: New file.
56724         * lib/fopen.c: New file.
56725         * m4/fopen.m4: New file.
56726         * modules/freopen: New file.
56727         * lib/freopen.c: New file.
56728         * m4/freopen.m4: New file.
56729         * lib/stdio.in.h (fopen, freopen): New declarations.
56730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56731         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56732         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56733         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56734         * doc/functions/fopen.texi: Mention the 'fopen' module.
56735         * doc/functions/freopen.texi: Mention the 'freopen' module.
56736
56737 2007-10-06  Bruno Haible  <bruno@clisp.org>
56738
56739         * modules/open-tests: New file.
56740         * tests/test-open.c: New file.
56741
56742         * modules/open: New file.
56743         * lib/open.c: New file.
56744         * m4/open.m4: New file.
56745         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56746         lib/open.c does.
56747         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56748         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56749         macros.
56750         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56751         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56752         REPLACE_OPEN.
56753         * doc/functions/open.texi: Mention the 'open' module.
56754
56755 2007-10-04  Bruno Haible  <bruno@clisp.org>
56756
56757         * modules/ceill-tests: New file.
56758         * tests/test-ceill.c: New file.
56759
56760         * modules/ceill: New file.
56761         * lib/ceill.c: Replace entire file.
56762         * m4/ceill.m4: New file.
56763         * lib/math.in.h (ceill): Replace declaration.
56764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56765         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56766         * doc/functions/ceill.texi: Mention the 'ceill' module.
56767         * modules/mathl (Files): Remove lib/ceill.c.
56768         (Depends-on): Add ceill.
56769
56770 2007-10-04  Bruno Haible  <bruno@clisp.org>
56771
56772         * modules/ceilf-tests: New file.
56773         * tests/test-ceilf.c: New file.
56774
56775         * modules/ceilf: New file.
56776         * lib/ceil.c: New file.
56777         * lib/ceilf.c: New file.
56778         * m4/ceilf.m4: New file.
56779         * lib/math.in.h (ceilf): New declaration.
56780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56781         HAVE_DECL_CEILF.
56782         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56783         HAVE_DECL_CEILF.
56784         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56785
56786 2007-10-04  Bruno Haible  <bruno@clisp.org>
56787
56788         * modules/floorl-tests: New file.
56789         * tests/test-floorl.c: New file.
56790
56791         * modules/floorl: New file.
56792         * lib/floorl.c: Replace entire file.
56793         * m4/floorl.m4: New file.
56794         * lib/math.in.h (floorl): Replace declaration.
56795         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56796         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56797         * doc/functions/floorl.texi: Mention the 'floorl' module.
56798         * modules/mathl (Files): Remove lib/floorl.c.
56799         (Depends-on): Add floorl.
56800
56801 2007-10-04  Bruno Haible  <bruno@clisp.org>
56802
56803         * modules/floorf-tests: New file.
56804         * tests/test-floorf.c: New file.
56805
56806         * modules/floorf: New file.
56807         * lib/floor.c: New file.
56808         * lib/floorf.c: New file.
56809         * m4/floorf.m4: New file.
56810         * lib/math.in.h (floorf): New declaration.
56811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56812         HAVE_DECL_FLOORF.
56813         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56814         HAVE_DECL_FLOORF.
56815         * doc/functions/floorf.texi: Mention the 'floorf' module.
56816
56817 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56818             Bruno Haible  <bruno@clisp.org>
56819
56820         Advertise for the Git server instead of the CVS server.
56821         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56822         repository instead of the CVS one.
56823         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56824         about all VCS systems generically.
56825         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56826
56827 2007-10-04  Bruno Haible  <bruno@clisp.org>
56828
56829         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56830         means.
56831         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56832
56833 2007-10-04  Bruno Haible  <bruno@clisp.org>
56834
56835         * modules/truncl-tests: New file.
56836         * tests/test-truncl.c: New file.
56837
56838         * modules/truncl: New file.
56839         * lib/truncl.c: New file.
56840         * m4/truncl.m4: New file.
56841         * lib/math.in.h (truncl): New declaration.
56842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56843         HAVE_DECL_TRUNCL.
56844         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56845         HAVE_DECL_TRUNCL.
56846         * doc/functions/truncl.texi: Mention the 'truncl' module.
56847
56848 2007-10-04  Bruno Haible  <bruno@clisp.org>
56849
56850         * modules/truncf-tests: New file.
56851         * tests/test-truncf.c: New file.
56852
56853         * modules/truncf: New file.
56854         * lib/trunc.c: Make paramerizable through USE_* macros.
56855         * lib/truncf.c: New file.
56856         * m4/truncf.m4: New file.
56857         * lib/math.in.h (truncf): New declaration.
56858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56859         HAVE_DECL_TRUNCF.
56860         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56861         HAVE_DECL_TRUNCF.
56862         * doc/functions/truncf.texi: Mention the 'truncf' module.
56863
56864 2007-10-03  Bruno Haible  <bruno@clisp.org>
56865
56866         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56867         augmentation also for tests modules.
56868         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56869         * modules/atexit-tests (Makefile.am): Likewise.
56870         * modules/binary-io-tests (Makefile.am): Likewise.
56871         * modules/c-strcase-tests (Makefile.am): Likewise.
56872         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56873         * modules/canonicalize-tests (Makefile.am): Likewise.
56874         * modules/closein-tests (Makefile.am): Likewise.
56875         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56876         * modules/freadahead-tests (Makefile.am): Likewise.
56877         * modules/fseek-tests (Makefile.am): Likewise.
56878         * modules/fseeko-tests (Makefile.am): Likewise.
56879         * modules/ftell-tests (Makefile.am): Likewise.
56880         * modules/ftello-tests (Makefile.am): Likewise.
56881         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56882         * modules/isnanl-tests (Makefile.am): Likewise.
56883         * modules/lseek-tests (Makefile.am): Likewise.
56884         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56885         * modules/mbscasestr-tests (Makefile.am): Likewise.
56886         * modules/mbschr-tests (Makefile.am): Likewise.
56887         * modules/mbscspn-tests (Makefile.am): Likewise.
56888         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56889         * modules/mbspbrk-tests (Makefile.am): Likewise.
56890         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56891         * modules/mbsrchr-tests (Makefile.am): Likewise.
56892         * modules/mbsspn-tests (Makefile.am): Likewise.
56893         * modules/mbsstr-tests (Makefile.am): Likewise.
56894         * modules/printf-posix-tests (Makefile.am): Likewise.
56895         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56896         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56897         * modules/tsearch-tests (Makefile.am): Likewise.
56898         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56899         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56900         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56901         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56902         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56903         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56904         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56905         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56906         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56907         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56908         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56909         * modules/xstrtol-tests (Makefile.am): Likewise.
56910         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56911         * modules/yesno-tests (Makefile.am): Likewise.
56912
56913 2007-10-03  Bruno Haible  <bruno@clisp.org>
56914
56915         * modules/trunc-tests: New file.
56916         * tests/test-trunc.c: New file.
56917
56918         * modules/trunc: New file.
56919         * lib/trunc.c: New file.
56920         * m4/trunc.m4: New file.
56921         * lib/math.in.h (trunc): New declaration.
56922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56923         HAVE_DECL_TRUNC.
56924         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56925         HAVE_DECL_TRUNC.
56926         * doc/functions/trunc.texi: Mention the 'trunc' module.
56927
56928 2007-10-03  Bruno Haible  <bruno@clisp.org>
56929
56930         * tests/test-fpending.c: New file, mostly copied
56931         from coreutils/lib/t-fpending.c.
56932         * modules/fpending-tests: New file.
56933
56934 2007-10-03  Bruno Haible  <bruno@clisp.org>
56935
56936         Port the stdio extensions to QNX (untested).
56937         * lib/fseterr.c (fseterr): Add support for QNX.
56938         * lib/fbufmode.c (fbufmode): Likewise.
56939         * lib/freadable.c (freadable): Likewise.
56940         * lib/fwritable.c (fwritable): Likewise.
56941         * lib/freading.c (freading): Likewise.
56942         * lib/fwriting.c (fwriting): Likewise.
56943         * lib/freadahead.c (freadahed): Likewise.
56944         * lib/fpurge.c (fpurge): Likewise.
56945         * lib/fseeko.c (rpl_fseeko): Likewise.
56946
56947 2007-10-03  Bruno Haible  <bruno@clisp.org>
56948             Jim Meyering  <jim@meyering.net>
56949             Eric Blake  <ebb9@byu.net>
56950
56951         * doc/relocatable.texi: Use @command instead of @program.
56952
56953 2007-10-02  Jim Meyering  <jim@meyering.net>
56954
56955         Perform one more "_.h" -> ".in.h" substitution.
56956         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
56957         instead of unistd_.h here, too.
56958
56959 2007-10-01  Bruno Haible  <bruno@clisp.org>
56960
56961         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
56962         Needed for the alloca-opt module.
56963
56964 2007-09-30  Bruno Haible  <bruno@clisp.org>
56965
56966         * lib/alloca.in.h: Renamed from lib/alloca_.h.
56967         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
56968         alloca_.h.
56969         * lib/argz.in.h: Renamed from lib/argz_.h.
56970         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
56971         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
56972         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
56973         byteswap_.h.
56974         * lib/dirent.in.h: Renamed from lib/dirent_.h.
56975         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
56976         dirent_.h.
56977         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
56978         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
56979         fcntl_.h.
56980         * lib/float.in.h: Renamed from lib/float_.h.
56981         * modules/float (Files, Makefile.am): Use float.in.h instead of
56982         float_.h.
56983         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
56984         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
56985         fnmatch_.h.
56986         * lib/getopt.in.h: Renamed from lib/getopt_.h.
56987         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
56988         getopt_.h.
56989         * lib/glob.in.h: Renamed from lib/glob_.h.
56990         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
56991         * lib/iconv.in.h: Renamed from lib/iconv_.h.
56992         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
56993         iconv_.h.
56994         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
56995         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
56996         inttypes_.h.
56997         * lib/locale.in.h: Renamed from lib/locale_.h.
56998         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
56999         locale_.h.
57000         * lib/math.in.h: Renamed from lib/math_.h.
57001         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57002         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57003         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57004         of netinet_in_.h. Add dependency.
57005         * lib/poll.in.h: Renamed from lib/poll_.h.
57006         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57007         * lib/search.in.h: Renamed from lib/search_.h.
57008         * modules/search (Files, Makefile.am): Use search.in.h instead of
57009         search_.h.
57010         * lib/signal.in.h: Renamed from lib/signal_.h.
57011         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57012         _signal.h.
57013         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57014         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57015         stdbool_.h.
57016         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57017         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57018         stdint_.h.
57019         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57020         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57021         stdio_.h.
57022         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57023         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57024         stdlib_.h.
57025         * lib/string.in.h: Renamed from lib/string_.h.
57026         * modules/string (Files, Makefile.am): Use string.in.h instead of
57027         string_.h.
57028         * doc/gnulib-tool.texi (Initial import): Update.
57029         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57030         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57031         of sys_select_.h. Add dependency.
57032         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57033         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57034         of sys_socket_.h.
57035         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57036         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57037         sys_stat_.h.
57038         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57039         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57040         sys_time_.h.
57041         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57042         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57043         sysexits_.h.
57044         * lib/time.in.h: Renamed from lib/time_.h.
57045         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57046         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57047         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57048         unistd_.h.
57049         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57050         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57051         wchar_.h.
57052         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57053         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57054         wctype_.h.
57055         * build-aux/bootstrap (slurp): Update.
57056         * lib/.cppi-disable: Update.
57057
57058 2007-09-30  Bruno Haible  <bruno@clisp.org>
57059
57060         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57061         Needed on BeOS.
57062
57063 2007-09-30  Bruno Haible  <bruno@clisp.org>
57064
57065         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57066
57067 2007-09-29  Bruno Haible  <bruno@clisp.org>
57068
57069         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57070
57071 2007-09-29  Bruno Haible  <bruno@clisp.org>
57072
57073         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57074         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57075         * build-aux/install-reloc: Compile also areadlink.c.
57076         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57077
57078 2007-09-29  Bruno Haible  <bruno@clisp.org>
57079
57080         * gnulib-tool (func_emit_initmacro_done): Indentation.
57081
57082 2007-09-29  Bruno Haible  <bruno@clisp.org>
57083
57084         * README: Add CVS checkout update instructions.
57085         Info from Bob Proulx <bob@proulx.com>.
57086
57087 2007-09-28  Eric Blake  <ebb9@byu.net>
57088
57089         Provide move-if-change.
57090         * build-aux/move-if-change: New file, based on best practice
57091         rather than any canonical upstream location.
57092
57093 2007-09-28  Jim Meyering  <jim@meyering.net>
57094
57095         Fix canonicalize loop-detection corner case.
57096         Do not attempt to stat the symlink values stored via seen_triple.
57097         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57098         on linux-2.6.18, (but not 2.6.22).
57099         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57100         triple_compare.  The former compares dev,ino,filename, while the latter
57101         would actually stat dirname(filename) when dev and ino were equal.
57102         * lib/hash-triple.c: Install <string.h>.
57103         (STREQ): Define.
57104         (triple_compare_ino_str): New function.
57105         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57106
57107 2007-09-28  Eric Blake  <ebb9@byu.net>
57108
57109         Enforce that AC_REPLACE_FUNCS files exist.
57110         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57111         override check for typos.
57112
57113         Fix test-closein on Solaris 10.
57114         * tests/test-closein.c (main): Don't assume stdin can be inherited
57115         closed on all systems.
57116         * tests/test-closein.sh: Likewise.
57117         Reported by Piotr Tarnowski.
57118
57119 2007-09-28  Jim Meyering  <jim@meyering.net>
57120
57121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57122
57123 2007-09-27  Jim Meyering  <jim@meyering.net>
57124
57125         canonicalize: Avoid a false-positive cycle failure.
57126         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57127         Sort.  Remove cycle-check.
57128         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57129         not cycle-check.h.
57130         (seen_triple): New function.
57131         (canonicalize_filename_mode): Use it instead of cycle-check.
57132         * tests/test-canonicalize.c: Add a test for this bug.
57133         * tests/test-canonicalize.sh: Set up and run the test.
57134
57135         New module, file-set, from coreutils.
57136         * modules/file-set: Define it.
57137         * lib/file-set.c, lib/file-set.h: Implement.
57138
57139         New module, hash-triple, from coreutils.
57140         * modules/hash-triple: Define it.
57141         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57142
57143 2007-09-25  Eric Blake  <ebb9@byu.net>
57144
57145         Fix strerror on Interix.
57146         * lib/string_.h (strerror): Declare replacement.
57147         * doc/functions/strerror.texi (strerror): Document the Interix
57148         shortcoming.
57149         * modules/string (Makefile.am): Support new hooks.
57150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57151         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57152         gl_FUNC_STRERROR_SEPARATE.
57153         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57154         * lib/strerror.c (rpl_strerror): Provide replacement.
57155         * modules/strerror (Depends-on): Add string.
57156         (configure.ac): Detect use of module.
57157         * tests/test-strerror.c: New file.
57158         * modules/strerror-tests: New test module.
57159         * modules/argp (Depends-on): Add strerror.
57160         * modules/error (Depends-on): Likewise.
57161         Reported by Martin Koeppe.
57162
57163 2007-09-24  Bruno Haible  <bruno@clisp.org>
57164
57165         * README: Update git instructions.
57166
57167 2007-09-24  Eric Blake  <ebb9@byu.net>
57168
57169         Revert fpending breakage from 2007-09-08.
57170         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57171         __fpending.c.
57172
57173 2007-09-24  Jim Meyering  <jim@meyering.net>
57174
57175         filenamecat.c: Add a test.
57176         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57177         showing how the function works when DIR is the empty string.
57178
57179 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57180
57181         * tests/test-canonicalize.sh: Turn on executable bit.
57182
57183 2007-09-19  Eric Blake  <ebb9@byu.net>
57184
57185         * README: Update CVS instructions.
57186
57187 2007-09-18  Bruno Haible  <bruno@clisp.org>
57188
57189         * modules/areadlink: New file.
57190         * lib/areadlink.h (areadlink): New declaration.
57191         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57192
57193 2007-09-17  Jim Meyering  <jim@meyering.net>
57194
57195         * lib/savewd.c (ESTALE) [!defined]: Define.
57196         Reported to be required on Interix by Martin Koeppe.
57197
57198 2007-09-17  Bruno Haible  <bruno@clisp.org>
57199
57200         * gnulib-tool (func_version): Use $version.
57201
57202 2007-09-16  Bruno Haible  <bruno@clisp.org>
57203
57204         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57205         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57206         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57207         Reported by Greg Schafer <gschafer@zip.com.au>.
57208
57209 2007-09-15  Bruno Haible  <bruno@clisp.org>
57210
57211         * gnulib-tool (sed): Try a little harder to make bash understand the
57212         alias.
57213         Reported by Bruce Korb <bruce.korb@gmail.com>.
57214
57215 2007-09-13  Eric Blake  <ebb9@byu.net>
57216
57217         * ChangeLog: Remove conflict markers.
57218
57219 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57220
57221         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57222         Reported by Bruno Haible <bruno@clisp.org>.
57223
57224 2007-09-12  Bruno Haible  <bruno@clisp.org>
57225
57226         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57227         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57228         is not defined.
57229
57230 2007-09-12  Eric Blake  <ebb9@byu.net>
57231
57232         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57233         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57234         Autoconf definition.
57235         * modules/euidaccess (Depends-on): Add extensions, for
57236         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57237         * modules/fnmatch (Depends-on): Likewise.
57238         * modules/getaddrinfo (Depends-on): Likewise.
57239         * modules/getdelim (Depends-on): Likewise.
57240         * modules/getline (Depends-on): Likewise.
57241         * modules/getsubopt (Depends-on): Likewise.
57242         * modules/gettext (Depends-on): Likewise.
57243         * modules/group-member (Depends-on): Likewise.
57244         * modules/mbchar (Depends-on): Likewise.
57245         * modules/memmem (Depends-on): Likewise.
57246         * modules/mempcpy (Depends-on): Likewise.
57247         * modules/memrchr (Depends-on): Likewise.
57248         * modules/pagealign_alloc (Depends-on): Likewise.
57249         * modules/readutmp (Depends-on): Likewise.
57250         * modules/stpcpy (Depends-on): Likewise.
57251         * modules/stpncpy (Depends-on): Likewise.
57252         * modules/strchrnul (Depends-on): Likewise.
57253         * modules/strndup (Depends-on): Likewise.
57254         * modules/strsep (Depends-on): Likewise.
57255         * modules/strverscmp (Depends-on): Likewise.
57256         * modules/vasprintf (Depends-on): Likewise.
57257         * modules/wcwidth (Depends-on): Likewise.
57258         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57259         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57260         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57261         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57262         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57263         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57264         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57265         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57266         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57267         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57268         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57269         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57270         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57271         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57272         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57273         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57274         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57275         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57276         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57277         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57278         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57279         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57280         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57281         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57282         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57283         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57284         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57285         so that lock.m4 can be used in gettext without extensions module.
57286
57287 2007-09-11  Bruno Haible  <bruno@clisp.org>
57288
57289         * m4/isc-posix.m4: Remove file.
57290         Suggested by Eric Blake.
57291
57292 2007-09-11  Eric Blake  <ebb9@byu.net>
57293
57294         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57295
57296 2007-09-10  Bruno Haible  <bruno@clisp.org>
57297
57298         * posix-modules: Fix typo in error message.
57299         Reported by Matt <mkraai@beckman.com>.
57300
57301 2007-09-09  Bruno Haible  <bruno@clisp.org>
57302
57303         * doc/functions/getdelim.texi: Update list of platforms lacking the
57304         function.
57305         * doc/functions/getline.texi: Likewise.
57306
57307 2007-09-09  Jim Meyering  <jim@meyering.net>
57308
57309         * lib/hash.c (hash_initialize): Detect calloc failure.
57310         Reported by Bruno Haible.
57311
57312 2007-09-09  Bruno Haible  <bruno@clisp.org>
57313
57314         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57315         malloc or realloc fails.
57316
57317 2007-09-09  Bruno Haible  <bruno@clisp.org>
57318
57319         * modules/getcwd (Depends-on): Add malloc-posix.
57320         * modules/glob (Depends-on): Likewise.
57321         * modules/putenv (Depends-on): Likewise.
57322         * modules/strdup (Depends-on): Likewise.
57323         * modules/getdelim (Depends-on): Add realloc-posix.
57324         * modules/read-file (Depends-on): Likewise.
57325
57326 2007-09-09  Bruno Haible  <bruno@clisp.org>
57327
57328         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57329         (gl_FUNC_MALLOC_POSIX): Require it.
57330         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57331         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57332         * modules/realloc (Files): Add m4/malloc.m4.
57333         * modules/calloc (Files): Likewise.
57334
57335 2007-09-09  Bruno Haible  <bruno@clisp.org>
57336
57337         * modules/malloc-posix: New file.
57338         * modules/malloc (Depends-on): Add malloc-posix.
57339         * lib/malloc.c: Include errno.h.
57340         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57341         and a POSIX-compatible malloc into a single function. Set ENOMEM
57342         when returning NULL.
57343         * m4/malloc.m4: New file.
57344         * doc/functions/malloc.texi: Mention the malloc-posix module.
57345         * lib/stdlib_.h (malloc): New declaration.
57346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57347         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57348         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57349         and HAVE_MALLOC_POSIX.
57350
57351 2007-09-09  Bruno Haible  <bruno@clisp.org>
57352
57353         * modules/realloc-posix: New file.
57354         * modules/realloc (Depends-on): Add realloc-posix.
57355         * lib/realloc.c: Include errno.h.
57356         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57357         and a POSIX-compatible realloc into a single function. Set ENOMEM
57358         when returning NULL.
57359         * m4/realloc.m4: New file.
57360         * doc/functions/realloc.texi: Mention the realloc-posix module.
57361         * lib/stdlib_.h (realloc): New declaration.
57362         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57363         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57364         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57365         and HAVE_REALLOC_POSIX.
57366
57367 2007-09-09  Bruno Haible  <bruno@clisp.org>
57368
57369         * modules/calloc-posix: New file.
57370         * modules/calloc (Depends-on): Add calloc-posix.
57371         * lib/calloc.c: Include errno.h.
57372         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57373         and a POSIX-compatible calloc into a single function. Set ENOMEM
57374         when returning NULL.
57375         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57376         * doc/functions/calloc.texi: Mention the calloc-posix module.
57377         * lib/stdlib_.h (calloc): New declaration.
57378         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57379         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57380         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57381         and HAVE_CALLOC_POSIX.
57382
57383 2007-09-09  Bruno Haible  <bruno@clisp.org>
57384
57385         Allow for modules to show an arbitrary notice.
57386         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57387         * gnulib-tool: New option --extract-notice.
57388         (func_usage): Document it.
57389         (sed_extract_prog): Update.
57390         (func_get_notice): New function.
57391         (func_modules_notice): New function.
57392         (func_import, func_create_testdir): Invoke it.
57393         Suggested by Jim Meyering.
57394
57395 2007-09-09  Bruno Haible  <bruno@clisp.org>
57396
57397         * gnulib-tool: New options --verbose, --quiet.
57398         (func_usage): Document them.
57399         (verbose): New variable.
57400         (func_execute_command): New function.
57401         (func_import): Don't show the module list and the file list if
57402         $verbose < 0.
57403         (func_create_testdir): Likewise. Use func_execute_command.
57404         (func_create_megatestdir): Use func_execute_command.
57405
57406 2007-09-08  Bruno Haible  <bruno@clisp.org>
57407
57408         * gnulib-tool (func_import): Prefer rsync over wget when available,
57409         for fetching the PO files.
57410
57411 2007-09-08  Bruno Haible  <bruno@clisp.org>
57412
57413         * posix-modules: New file. Portions copied from gnulib-tool.
57414         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57415
57416 2007-09-08  Jim Meyering  <jim@meyering.net>
57417
57418         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57419         * lib/fpending.h: Rename from __fpending.h.
57420         * lib/fpending.c: Rename from __fpending.c.
57421         Include "fpending.h", not "__fpending.h".
57422         * lib/__fpending.h, lib/__fpending.c: Remove files.
57423         * modules/fpending (Files): Reflect new file names.
57424         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57425
57426 2007-09-08  Bruno Haible  <bruno@clisp.org>
57427
57428         * m4/inttypes-h.m4: Remove stub file.
57429
57430 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57431
57432         * doc/headers/stdint.texi: Discuss #include_next issue.
57433
57434 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57435
57436         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57437
57438 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57439
57440         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57441         in variable name.
57442
57443 2007-09-03  Jim Meyering  <jim@meyering.net>
57444
57445         New module: git-version-gen.
57446         * modules/git-version-gen: New file.
57447
57448         Import changes from coreutils for bootstrap script.
57449
57450         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57451
57452         bootstrap: uses rsync to download the .po files
57453         * build-aux/bootstrap (po_download_command_format): New global.
57454         (download_po_files): Use rsync.
57455         (update_po_files): Don't remove .po files after download,
57456         so future rsync runs can take advantage of the copies.
57457
57458         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57459
57460         Solve the unnecessary-.po-file-regeneration problem once and for all.
57461         * build-aux/bootstrap (download_po_files): New function, renamed from
57462         get_translations.  Now, downloads, but doesn't update LINGUAS.
57463         (update_po_files): New function.
57464
57465         bootstrap: Ignore more.
57466         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57467         uniwidth to e.g., lib/.gitignore.
57468         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57469
57470         * build-aux/bootstrap: New setting: vc_ignore.
57471         (insert_sorted_if_absent): Create $file if absent.
57472         Adapt to new, possibly empty, list: $vc_ignore.
57473
57474         bootstrap: generate more ignorable names
57475         * build-aux/bootstrap (slurp): When generating ignorable names,
57476         also map .sin to .sed, .gperf to .c, and .y to .c.
57477
57478 2007-09-03  Jim Meyering  <jim@meyering.net>
57479
57480         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57481         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57482
57483 2007-09-02  Bruno Haible  <bruno@clisp.org>
57484
57485         Fix mis-recognition of 'mcs' on QNX 6.
57486         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57487         output contains the string "Mono".
57488         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57489         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57490
57491 2007-09-01  Bruno Haible  <bruno@clisp.org>
57492
57493         Fix collision between uniwidth/* and linebreak modules.
57494         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57495         u32_width): Remove declarations.
57496         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57497         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57498         streq3, streq2, streq1, streq0): Remove functions.
57499         (STREQ): Remove macro.
57500         (is_cjk_encoding): Remove function.
57501         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57502         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57503         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57504         * NEWS: Document the change.
57505
57506 2007-09-01  Bruno Haible  <bruno@clisp.org>
57507
57508         * lib/streq.h: Add double-inclusion guard.
57509
57510 2007-09-01  Karl Berry  <karl@gnu.org>
57511
57512         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57513
57514 2007-08-28  Jim Meyering  <jim@meyering.net>
57515
57516         Rename mreadlink_with_size to areadlink_with_size.
57517         * NEWS: Document the change.
57518         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57519         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57520         * lib/mreadlink.h: Rename this to...
57521         * lib/areadlink.h: ...this.
57522         * modules/mreadlink-with-size: Rename this to...
57523         * modules/areadlink-with-size: ...this.
57524         * lib/canonicalize.c: Reflect the renaming.
57525         * modules/canonicalize: Likewise.
57526
57527 2007-08-26  Bruno Haible  <bruno@clisp.org>
57528
57529         * gnulib-tool (func_import): When deciding which files to remove,
57530         consider also dangling symbolic links.
57531         Reported by Eric Blake.
57532
57533 2007-08-26  Bruno Haible  <bruno@clisp.org>
57534
57535         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57536
57537 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57538
57539         * lib/readline.c: Don't include getline.h, the prototype is now
57540         found in stdio.h.
57541
57542 2007-08-23  Jim Meyering  <jim@meyering.net>
57543
57544         Getdelim touchup.
57545         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57546         around the funlockfile call, since funlockfile never sets errno.
57547         Don't set errno upon failed realloc.
57548
57549 2007-08-22  Eric Blake  <ebb9@byu.net>
57550
57551         Getline touchups.
57552         * lib/getdelim.c (getdelim): Revert regression that required *n to
57553         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57554         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57555         getdelim, rather than whether implementation is missing.
57556         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57557         * lib/stdio_.h (getline): Also declare if replacement is
57558         required.
57559         * doc/functions/getdelim.texi: New file.
57560         * doc/functions/getline.texi: Likewise.
57561         * doc/gnulib.texi (Function Substitutes): Add new files.
57562         Reported by Bruno Haible.
57563
57564 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57565
57566         * users.txt: Add Guile.
57567
57568 2007-08-22  Eric Blake  <ebb9@byu.net>
57569
57570         * tests/test-getdelim.c (main): Use remove, not unlink.
57571         * tests/test-getline.c (main): Likewise.
57572
57573         Move getline and getdelim into stdio.h, per POSIX 200x.
57574         * modules/getline (Files): Remove getline.h.
57575         (Depends-on): Add stdio.
57576         (configure.ac): Add module indicator.
57577         * modules/getdelim (Files): Remove getdelim.h.
57578         (Depends-on): Add stdio.
57579         (configure.ac): Add module indicator.
57580         * modules/stdio (Makefile.am): Work with new indicators.
57581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57582         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57583         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57584         * lib/getdelim.h: Delete.
57585         * lib/getline.h: Delete.
57586         * lib/stdio_.h (getdelim, getline): Declare.
57587         * modules/getdelim-tests: New module.
57588         * modules/getline-tests: Likewise.
57589         * tests/test-getdelim.c: New file.
57590         * tests/test-getline.c: Likewise.
57591         * NEWS: Document the change.
57592         * lib/getline.c: Update choice of header.
57593         * lib/csharpcomp.c: Likewise.
57594         * lib/getpass.c: Likewise.
57595         * lib/javacomp.c: Likewise.
57596         * lib/javaversion.c: Likewise.
57597         * lib/yesno.c: Likewise.
57598         * lib/getdelim.c: Likewise.
57599         (getdelim): Set errno on failure, and avoid memory leak.
57600
57601 2007-08-19  Bruno Haible  <bruno@clisp.org>
57602
57603         * modules/closein (Depends-on): Add freadahead.
57604         * lib/closein.c: Include freadahead.h.
57605         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57606         is zero.
57607
57608 2007-08-19  Bruno Haible  <bruno@clisp.org>
57609
57610         * modules/freadahead-tests: New file.
57611         * tests/test-freadahead.sh: New file.
57612         * tests/test-freadahead.c: New file.
57613
57614         * modules/freadahead: New file.
57615         * lib/freadahead.h: New file.
57616         * lib/freadahead.c: New file.
57617         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57618         fbufmode, fpurge, freadable, fwritable.
57619
57620 2007-08-19  Eric Blake  <ebb9@byu.net>
57621
57622         Test yesno in combination with closein.
57623         * lib/yesno.c (yesno): Document use of stdin.
57624         * modules/yesno-tests (Files): New module.
57625         * tests/test-yesno.c (main): New file.
57626         * tests/test-yesno.sh: Likewise.
57627
57628 2007-08-19  Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57631         * lib/fseeko.c (rpl_fseeko): Likewise.
57632         * lib/fseterr.c (fseterr): Likewise.
57633
57634 2007-08-19  Bruno Haible  <bruno@clisp.org>
57635
57636         * tests/test-lseek.c (main): Disable a test for BeOS.
57637         * doc/functions/lseek.texi: Document the BeOS bug.
57638
57639 2007-08-19  Bruno Haible  <bruno@clisp.org>
57640             Eric Blake  <ebb9@byu.net>
57641
57642         * lib/lseek.c: Include <sys/stat.h>.
57643         (rpl_lseek): Add workaround code also for Unix platforms.
57644         Needed for BeOS.
57645         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57646         * doc/functions/lseek.texi: Document BeOS definiency.
57647
57648 2007-08-18  Bruno Haible  <bruno@clisp.org>
57649
57650         * modules/fstrcmp-tests: New file.
57651         * tests/test-fstrcmp.c: New file.
57652
57653 2007-08-18  Bruno Haible  <bruno@clisp.org>
57654
57655         * modules/fstrcmp: New file, from GNU gettext with modifications.
57656         * lib/fstrcmp.h: New file, from GNU gettext.
57657         * lib/fstrcmp.c: New file, from GNU gettext.
57658         * MODULES.html.sh (String handling): Add fstrcmp.
57659
57660 2007-08-18  Bruno Haible  <bruno@clisp.org>
57661
57662         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57663         'bool'.
57664         (diag, compareseq): Remove const from the ctxt argument.
57665         (USE_HEURISTIC): Undefine at the end.
57666
57667 2007-08-18  Jim Meyering  <jim@meyering.net>
57668
57669         New file: lib/idcache.h
57670         * NEWS: Mention the addition.
57671         * modules/idcache (Files): Add lib/idcache.h
57672         * lib/idcache.c: Include "idcache.h".
57673         Don't include <sys/types.h>.
57674         Add a FIXME comment.
57675         Move file-scoped "static" declarations to the top.
57676         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57677
57678 2007-08-17  Bruno Haible  <bruno@clisp.org>
57679         and Paul Eggert  <eggert@cs.ucla.edu>
57680
57681         * MODULES.html.sh: Add diffseq.
57682         * modules/diffseq: New file.
57683         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57684         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57685
57686 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57687
57688         Import changes from coreutils for bootstrap script.
57689
57690         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57691
57692         * build-aux/bootstrap (slurp): Work even in environments where
57693         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57694         current code does not slurp files whose names start with ".", and
57695         this looks like it might be a troublesome area.
57696
57697         2007-07-11  Jim Meyering  <jim@meyering.net>
57698
57699         If there's a GPL vN copyright comment, require that N == 3.
57700
57701         2007-07-08  Jim Meyering  <jim@meyering.net>
57702
57703         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57704         * build-aux/bootstrap (mam_template): Move definition out of loop.
57705
57706         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57707
57708         * build-aux/bootstrap (symlink_to_dir): Rename function from
57709         symlink_to_gnulib.  Add a directory parameter.  Update all
57710         callers.
57711         (cp_mark_as_generated): Also check for -- and link to -- files in
57712         gl/.
57713
57714         2007-07-08  Jim Meyering  <jim@meyering.net>
57715
57716         Adapt to deeper hierarchy in gnulib.
57717         * build-aux/bootstrap (symlink_to_dir): If the destination
57718         directory doesn't exist, create it. This is required at least for
57719         "lib/uniwidth/cjk.h".
57720
57721         2007-05-15  Jim Meyering  <jim@meyering.net>
57722
57723         * build-aux/bootstrap: Now that generated Makefile.am files
57724         are no longer under version control, they must be created at
57725         bootstrap time.
57726
57727 2007-08-14  Ben Pfaff  <blp@gnu.org>
57728
57729         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57730
57731 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57734         given the changes below.
57735         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57736         even on hosts that have padding bits beyond the supported 64.
57737
57738 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57739
57740         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57741         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57742         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57743         depends on it.
57744         (xstrtol_error): Remove.
57745         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57746         but with a different signature.
57747         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57748         * lib/xstrtol-error.c: Include exitfail.h.
57749         (xstrtol_fatal): New function, with a different signature from the
57750         old xstrtol_error, so that the caller need not worry about passing
57751         in an exit status, or about storage management of the option argument.
57752         (xstrtol_error): Now a static function.  Redo signature to
57753         implement xstrtol_fatal.  Output the correct number of hyphens in
57754         front of the option so that the caller need not worry about
57755         storage management.
57756         (N_): New macro.
57757         (_): Remove; not used now.
57758         * modules/xstrtol: Depend on getopt.
57759         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57760         of old STRTOL_FATAL_ERROR macro.
57761         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57762         of test program.
57763         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57764         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57765
57766 2007-08-08  Eric Blake  <ebb9@byu.net>
57767
57768         * lib/xstrtol-error.c: Add missing include.
57769
57770         Move xstrtol messages into gnulib domain, when --pobase is used.
57771         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57772         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57773         * modules/xstrtol (Files): Distribute new file.
57774         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57775         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57776         * tests/test-xstrtol.c: ...into new file.
57777         * tests/test-xstrtoul.c: Also test xstrtoul.
57778         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57779         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57780         * tests/test-xstrtol.sh: Drive the tests.
57781         * tests/test-xstrtoimax.sh: Likewise.
57782         * tests/test-xstrtoumax.sh: Likewise.
57783         * modules/xstrtol-tests: New module.
57784         * modules/xstrtoimax-tests: Likewise.
57785         * modules/xstrtoumax-tests: Likewise.
57786
57787 2007-08-08  Jim Meyering  <jim@meyering.net>
57788
57789         New function: mfile_name_concat.
57790         * lib/filenamecat.c (mfile_name_concat): New function, just like
57791         file_name_concat, but return NULL upon failure rather than exiting
57792         with a diagnostic.
57793         * lib/filenamecat.h: Declare it.
57794
57795 2007-08-07  Bruno Haible  <bruno@clisp.org>
57796
57797         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57798         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57799         warning from gcc.
57800         Reported by Eric Blake.
57801
57802 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57803
57804         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57805         * modules/crypto/arcfour (License): Likewise.
57806         * modules/crypto/des-tests (License): Likewise.
57807         * modules/crypto/gc-arctwo-tests (License): Likewise.
57808         * modules/crypto/gc-des-tests (License): Likewise.
57809         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57810         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57811         * modules/crypto/gc-md2-tests (License): Likewise.
57812         * modules/crypto/gc-md4-tests (License): Likewise.
57813         * modules/crypto/gc-md5-tests (License): Likewise.
57814         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57815         * modules/crypto/gc-rijndael-tests (License): Likewise.
57816         * modules/crypto/gc-sha1-tests (License): Likewise.
57817         * modules/crypto/gc-tests (License): Likewise.
57818         * modules/crypto/hmac-md5 (License): Likewise.
57819         * modules/crypto/hmac-sha1 (License): Likewise.
57820         * modules/crypto/md2-tests (License): Likewise.
57821         * modules/crypto/md4-tests (License): Likewise.
57822         * modules/crypto/md5 (License): Likewise.
57823         * modules/crypto/rijndael (License): Likewise.
57824         * modules/crypto/sha1 (License): Likewise.
57825         * modules/memxor (License): Likewise.
57826
57827 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57828         and Bruno Haible  <bruno@clisp.org>
57829
57830         * NEWS: Describe interface changes to human, xstrtol.
57831         * lib/human.h: Include <xstrtol.h>.
57832         (human_options): Return enum strtol_error, not int.  Remove
57833         bool arg; take int * instead.
57834         * lib/human.c: Don't include "gettext.h".
57835         (_): Remove; no longer used.
57836         Don't include <xstrtol.h>, since human.h does it.
57837         (human_options): Adjust to abovementioned interface changes.
57838         Do not report error to stderr; that's now the caller's
57839         responsibility.
57840         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57841         interface change.
57842         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57843         Str, Argument_type_string.  All uses changed.  Put " argument"
57844         in diagnostics to make them clearer.  Change wording of suffix
57845         message for clarity.
57846         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57847         Argument_type_string.
57848         (STRTOL_FATAL_WARN): Remove; no longer used.
57849         * modules/human (Depends-on): Remove gettext-h.
57850
57851 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57852
57853         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57854
57855 2007-07-31  Bruno Haible  <bruno@clisp.org>
57856
57857         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57858         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57859         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57860
57861 2007-07-31  Bruno Haible  <bruno@clisp.org>
57862
57863         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57864         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57865
57866 2007-07-30  Bruno Haible  <bruno@clisp.org>
57867
57868         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57869         * modules/c-ctype (License): Likewise.
57870         * modules/c-strcase (License): Likewise.
57871         * modules/check-version (License): Likewise.
57872         * modules/iconv (License): Likewise.
57873         * modules/iconv_open (License): Likewise.
57874         * modules/read-file (License): Likewise.
57875         * modules/striconv (License): Likewise.
57876         * modules/strverscmp (License): Likewise.
57877         * modules/vasprintf (License): Likewise.
57878         * modules/crypto/des (License): Likewise.
57879         * modules/crypto/gc (License): Likewise.
57880         * modules/crypto/gc-arcfour (License): Likewise.
57881         * modules/crypto/gc-arctwo (License): Likewise.
57882         * modules/crypto/gc-des (License): Likewise.
57883         * modules/crypto/gc-hmac-md5 (License): Likewise.
57884         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57885         * modules/crypto/gc-md2 (License): Likewise.
57886         * modules/crypto/gc-md4 (License): Likewise.
57887         * modules/crypto/gc-md5 (License): Likewise.
57888         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57889         * modules/crypto/gc-random (License): Likewise.
57890         * modules/crypto/gc-rijndael (License): Likewise.
57891         * modules/crypto/gc-sha1 (License): Likewise.
57892         * modules/crypto/md2 (License): Likewise.
57893         * modules/crypto/md4 (License): Likewise.
57894
57895 2007-07-30  Jim Meyering  <jim@meyering.net>
57896
57897         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57898         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57899         it has valid stat data.  This bug would cause du not to count the
57900         sizes of inaccessible directories.
57901         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57902         in <http://bugzilla.redhat.com/250077>.
57903
57904 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57905             Bruno Haible  <bruno@clisp.org>
57906
57907         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57908         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57909         #include_next, gives a diagnostic about it, but reports no error in
57910         the exit code.
57911         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57912
57913 2007-07-24  Ben Pfaff  <blp@gnu.org>
57914
57915         Improve name: "count-one-bits" is better than "popcount".
57916         * MODULES.html.sh: Update name.
57917         * lib/popcount.h: Renamed lib/count-one-bits.h.
57918         (popcount): Renamed count_one_bits.
57919         (popcountl): Renamed count_one_bits_l.
57920         (popcountll): Renamed count_one_bits_ll.
57921         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57922         * modules/popcount: Renamed module/count-one-bits.
57923         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57924         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57925
57926 2007-07-23  Ben Pfaff  <blp@gnu.org>
57927
57928         * lib/popcount.h (popcount32): Reduce size of constants, to allow
57929         better code generation, and add U to large constants to avoid
57930         warnings, in non-GCC case.
57931         Suggested by Bruno Haible.
57932
57933 2007-07-23  Ben Pfaff  <blp@gnu.org>
57934
57935         * lib/popcount.h: Use verify_true instead of if...abort.
57936         * modules/popcount: Depend on verify module.
57937         Suggested by Jim Meyering.
57938
57939 2007-07-23  Bruno Haible  <bruno@clisp.org>
57940
57941         * gnulib-tool (func_import): Create a .cvsignore file also when the
57942         directory is not yet in CVS but the toplevel directory is. When
57943         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
57944         Reported by Karl Berry.
57945
57946 2007-07-22  Ben Pfaff  <blp@gnu.org>
57947
57948         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
57949         case.
57950         Suggested by Eric Blake.
57951
57952 2007-07-22  Ben Pfaff  <blp@gnu.org>
57953
57954         New module: popcount.
57955         * MODULES.html.sh: Add popcount.
57956         * modules/popcount: New file.
57957         * modules/popcount-tests: New file.
57958         * tests/test-popcount.c: New file.
57959         * lib/popcount.h: New file.
57960         * m4/popcount.m4: New file.
57961
57962 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
57963
57964         * build-aux/announce-gen: Update to GPLv3.
57965
57966         * build-aux/config.guess: Update from config.
57967
57968 2007-07-21  Bruno Haible  <bruno@clisp.org>
57969
57970         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
57971         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
57972
57973 2007-07-20  Jim Meyering  <jim@meyering.net>
57974
57975         * check-module: Diagnose a self-dependency.
57976
57977 2007-07-19  Bruno Haible  <bruno@clisp.org>
57978
57979         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
57980         empty.
57981         Reported by Eric Blake.
57982
57983 2007-07-18  Bruno Haible  <bruno@clisp.org>
57984
57985         * gnulib-tool: New options --po-base, --po-domain.
57986         (func_usage): Document them.
57987         (pobase, po_domain): New variables.
57988         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
57989         DEFAULT_TEXT_DOMAIN.
57990         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
57991         (func_import): Consider pobase and po_domain. Create a po/ directory.
57992         (func_create_testdir): Set pobase and po_domain to empty.
57993         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
57994         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
57995
57996 2007-07-18  Bruno Haible  <bruno@clisp.org>
57997
57998         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57999         EXTRA_DIST augmentation for files in build-aux/.
58000
58001 2007-07-16  Bruno Haible  <bruno@clisp.org>
58002
58003         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58004         * modules/getdelim (License): Likewise.
58005
58006 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58007
58008         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58009         * modules/d-type (License): Likewise.
58010         * modules/extensions (License): Likewise.
58011         * modules/fnmatch (License): Likewise.
58012         * modules/fseeko (License): Likewise.
58013         * modules/getaddrinfo (License): Likewise.
58014         * modules/getline (License): Likewise.
58015         * modules/getlogin_r (License): Likewise.
58016         * modules/getpass (License): Likewise.
58017         * modules/gettimeofday (License): Likewise.
58018         * modules/glob (License): Likewise.
58019         * modules/inet_ntop (License): Likewise.
58020         * modules/malloc (License): Likewise.
58021         * modules/malloca (License): Likewise.
58022         * modules/memmem (License): Likewise.
58023         * modules/mempcpy (License): Likewise.
58024         * modules/memset (License): Likewise.
58025         * modules/minmax (License): Likewise.
58026         * modules/mktime (License): Likewise.
58027         * modules/netinet_in (License): Likewise.
58028         * modules/pathmax (License): Likewise.
58029         * modules/poll (License): Likewise.
58030         * modules/regex (License): Likewise.
58031         * modules/snprintf (License): Likewise.
58032         * modules/stdbool (License): Likewise.
58033         * modules/stdint (License): Likewise.
58034         * modules/stdio (License): Likewise.
58035         * modules/strcase (License): Likewise.
58036         * modules/strcasestr (License): Likewise.
58037         * modules/strdup (License): Likewise.
58038         * modules/string (License): Likewise.
58039         * modules/strndup (License): Likewise.
58040         * modules/strnlen (License): Likewise.
58041         * modules/strpbrk (License): Likewise.
58042         * modules/strptime (License): Likewise.
58043         * modules/strsep (License): Likewise.
58044         * modules/sys_select (License): Likewise.
58045         * modules/sys_socket (License): Likewise.
58046         * modules/sys_stat (License): Likewise.
58047         * modules/sys_time (License): Likewise.
58048         * modules/time (License): Likewise.
58049         * modules/time_r (License): Likewise.
58050         * modules/timegm (License): Likewise.
58051         * modules/unistd (License): Likewise.
58052         * modules/vsnprintf (License): Likewise.
58053         * modules/wctype (License): Likewise.
58054
58055 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58056
58057         * modules/argz (License): LGPLv2+.
58058
58059 2007-07-15  Karl Berry  <karl@gnu.org>
58060
58061         * doc/gnulib.texi: revise node structure per new fdl.texi.
58062
58063 2007-07-14  Bruno Haible  <bruno@clisp.org>
58064
58065         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58066         the output file.
58067         * lib/uniname/uninames.h: Regenerated.
58068
58069 2007-07-14  Karl Berry  <karl@gnu.org>
58070
58071         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58072         omitting sectioning and index commands.
58073
58074 2007-07-13  Bruno Haible  <bruno@clisp.org>
58075
58076         New gnulib-tool option --more-symlinks.
58077         * gnulib-tool (func_usage): Document --more-symlinks.
58078         (do_copyrights): New variable.
58079         Recognize option --more-symlinks.
58080         (func_import): Don't add a copyright notice transform to
58081         sed_transform_lib_file if do_copyrights is empty.
58082
58083 2007-07-13  Bruno Haible  <bruno@clisp.org>
58084
58085         * lib/vasnprintf.c (decimal_point_char): Define also if
58086         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58087         && !NEED_PRINTF_DIRECTIVE_A.
58088         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58089         Gary V. Vaughan <gary@gnu.org>.
58090
58091 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58092
58093         * lib/inttypes_.h: Undo previous change, since it was fixed
58094         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58095
58096 2007-07-13  Bruno Haible  <bruno@clisp.org>
58097
58098         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58099         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58100
58101 2007-07-13  Jim Meyering  <jim@meyering.net>
58102
58103         df: Don't fail for Tru64's "file-on-file mount".
58104         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58105         so we fall through and use statfs instead.  Details here:
58106         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58107         Reported by Albert Chin.
58108
58109 2007-07-13  Bruno Haible  <bruno@clisp.org>
58110
58111         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58112         * modules/configmake (License): Likewise.
58113         * modules/gettext (License): Likewise.
58114         * modules/gettext-h (License): Likewise.
58115         * modules/include_next (License): Likewise.
58116         * modules/link-warning (License): Likewise.
58117         * modules/localcharset (License): Likewise.
58118         * modules/localename (License): Likewise.
58119         * modules/lock (License): Likewise.
58120         * modules/relocatable-lib-lgpl (License): Likewise.
58121         * modules/size_max (License): Likewise.
58122         * modules/vasnprintf (License): Likewise.
58123         * modules/wchar (License): Likewise.
58124         * modules/xsize (License): Likewise.
58125
58126 2007-07-13  Bruno Haible  <bruno@clisp.org>
58127
58128         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58129         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58130
58131 2007-07-12  Bruno Haible  <bruno@clisp.org>
58132
58133         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58134         in the modules files.
58135
58136 2007-07-11  Karl Berry  <karl@gnu.org>
58137
58138         * MODULES.html.sh (func_module): use
58139          sed -e '\|^'"${includefile}"'$|d'
58140          instead of /.../d, to avoid errors on $includefile's containing /.
58141
58142 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58143
58144         * gnulib-tool (func_import): Avoid duplication of --avoid
58145         statements
58146         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58147         names to `_' in variable names.
58148
58149 2007-07-10  Eric Blake  <ebb9@byu.net>
58150
58151         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58152         * NEWS: Document this change.
58153
58154 2007-07-08  Bruno Haible  <bruno@clisp.org>
58155
58156         Update to Unicode 5.0.
58157         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58158         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58159         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58160         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58161         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58162         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58163         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58164         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58165         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58166         U+10A3F, U+1D242..U+1D244.
58167         (nonspacing_table_ind): Update.
58168         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58169         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58170
58171 2007-07-08  Bruno Haible  <bruno@clisp.org>
58172
58173         Update to Unicode 5.0.
58174         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58175         code transform. Extend the name index field of unicode_name_to_code and
58176         unicode_code_to_name from 16 to 24 bits.
58177         * lib/uniname/uniname.c (unicode_character_name,
58178         unicode_name_character): Add the range 0x12xxx to the code transform.
58179         * lib/uniname/uninames.h: Regenerated.
58180         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58181
58182 2007-07-07  Bruno Haible  <bruno@clisp.org>
58183
58184         * modules/wcwidth-tests: New file.
58185         * tests/test-wcwidth.c: New file.
58186
58187         Work around MacOS X wcwidth() bug.
58188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58189         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58190         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58191         original wcwidth in non-UTF-8 locales.
58192         * modules/wcwidth (Depends-on): Add localcharset, streq,
58193         uniwidth/width.
58194         * doc/functions/wcwidth.texi: Update.
58195
58196 2007-07-07  Bruno Haible  <bruno@clisp.org>
58197
58198         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58199         (wcwidth): New declaration.
58200         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58201         macros.
58202         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58203         here. Prepare for creating <wchar.h> unconditionally.
58204         * modules/wchar (Depends-on): Add link-warning.
58205         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58206         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58207         * lib/wcwidth.h: Remove file.
58208         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58209         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58210         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58211         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58212         (Include): Replace wcwidth.h with <wchar.h>.
58213         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58214         * lib/mbchar.h: Don't include wcwidth.h.
58215         * lib/mbswidth.c: Likewise.
58216         * NEWS: Mention the change.
58217
58218 2007-07-07  Bruno Haible  <bruno@clisp.org>
58219
58220         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58221         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58222         definition with an external declaration.
58223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58224         defined as a function. Remove AC_C_INLINE requirement.
58225         * modules/wcwidth (Files): Add lib/wcwidth.c.
58226         (Makefile.am): Remove redundant statement.
58227
58228 2007-07-07  Bruno Haible  <bruno@clisp.org>
58229
58230         * MODULES.html.sh (Unicode string functions): Add the new modules.
58231
58232         * tests/uniwidth/test-u32-strwidth.c: New file.
58233         * modules/uniwidth/u32-strwidth-tests: New file.
58234
58235         * lib/uniwidth/u32-strwidth.c: New file.
58236         * modules/uniwidth/u32-strwidth: New file.
58237
58238         * tests/uniwidth/test-u16-strwidth.c: New file.
58239         * modules/uniwidth/u16-strwidth-tests: New file.
58240
58241         * lib/uniwidth/u16-strwidth.c: New file.
58242         * modules/uniwidth/u16-strwidth: New file.
58243
58244         * tests/uniwidth/test-u8-strwidth.c: New file.
58245         * modules/uniwidth/u8-strwidth-tests: New file.
58246
58247         * lib/uniwidth/u8-strwidth.c: New file.
58248         * modules/uniwidth/u8-strwidth: New file.
58249
58250         * tests/uniwidth/test-u32-width.c: New file.
58251         * modules/uniwidth/u32-width-tests: New file.
58252
58253         * lib/uniwidth/u32-width.c: New file.
58254         * modules/uniwidth/u32-width: New file.
58255
58256         * tests/uniwidth/test-u16-width.c: New file.
58257         * modules/uniwidth/u16-width-tests: New file.
58258
58259         * lib/uniwidth/u16-width.c: New file.
58260         * modules/uniwidth/u16-width: New file.
58261
58262         * tests/uniwidth/test-u8-width.c: New file.
58263         * modules/uniwidth/u8-width-tests: New file.
58264
58265         * lib/uniwidth/u8-width.c: New file.
58266         * modules/uniwidth/u8-width: New file.
58267
58268         * tests/uniwidth/test-uc_width.c: New file.
58269         * modules/uniwidth/width-tests: New file.
58270
58271         * lib/uniwidth/width.c: New file, from GNU libiconv.
58272         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58273         * modules/uniwidth/width: New file.
58274
58275         * lib/uniwidth.h: New file, from GNU libiconv.
58276         * modules/uniwidth/base: New file.
58277
58278 2007-07-07  Bruno Haible  <bruno@clisp.org>
58279
58280         * lib/uniname.h: New file, from GNU gettext.
58281         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58282         * lib/uniname/uninames.h: New file, from GNU gettext.
58283         * lib/uniname/uniname.c: New file, from GNU gettext.
58284         * tests/uniname/test-uninames.sh: New file.
58285         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58286         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58287         * modules/uniname/base: New file.
58288         * modules/uniname/uniname: New file.
58289         * modules/uniname/uniname-tests: New file.
58290         * MODULES.html.sh (Unicode string functions): Add the new modules.
58291
58292 2007-07-06  Bruno Haible  <bruno@clisp.org>
58293
58294         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58295
58296 2007-07-06  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58299         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58300         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58301         include <sys/time.h>.
58302         Reported by Eric Blake.
58303
58304 2007-07-06  Eric Blake  <ebb9@byu.net>
58305
58306         Fix testing canonicalize on cygwin.
58307         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58308         Revert patch from 2007-06-19.
58309         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58310         canonicalize module is also in use.
58311         * tests/test-canonicalize.c: New file.
58312         * tests/test-canonicalize.sh: Likewise.
58313         * modules/canonicalize-tests: Likewise.
58314
58315 2007-07-06  Jim Meyering  <jim@meyering.net>
58316
58317         * lib/getugroups.c (getugroups): Detect getgrent failure.
58318         Adjust comment to reflect reality: this function may return -1.
58319
58320 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58321
58322         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58323         the new TP address.
58324         (usage): Fix typo
58325         (gnulib_mk): New variable.
58326
58327 2007-07-05  Jim Meyering  <jim@meyering.net>
58328
58329         Don't let endgrent clobber errno, no matter how improbable.
58330         * lib/getugroups.c (getugroups): Save and restore errno around
58331         endgrent call.
58332
58333         Close the group DB even when failing with 2^31 or more members.
58334         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58335
58336 2007-07-04  Jim Meyering  <jim@meyering.net>
58337
58338         * lib/getugroups.h: New file.
58339         * lib/getugroups.c: Include "getugroups.h".
58340         Remove uses of "register" keyword.
58341         Move local variable, "cp", down into scope where used.
58342         Give "username" parameter the "const" attribute.
58343         * modules/getugroups (Files): Add lib/getugroups.h
58344
58345 2007-07-04  Karl Berry  <karl@gnu.org>
58346
58347         * MODULES.html.sh (func_all_modules): Complete rename of
58348         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58349
58350 2007-07-02  Bruno Haible  <bruno@clisp.org>
58351
58352         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58353         mode, when inttypes.h comes from gnulib.
58354         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58355
58356 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58357
58358         * NEWS: Mention lgpl module name change.
58359
58360         * modules/lgpl-2.1: Renamed from lgpl.
58361
58362         * NEWS: Mention gpl module name change.
58363
58364         * modules/gpl-3.0: New file, based on gpl-2.0.
58365
58366         * modules/gpl-2.0: Renamed from gpl.
58367
58368         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58369         doc/gpl-2.0.texi.
58370
58371 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58372
58373         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58374         #define __STDC_LIMIT_MACROS temporarily while including
58375         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58376         Problem reported by Joel E. Denny in
58377         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58378
58379 2007-07-01  Bruno Haible  <bruno@clisp.org>
58380
58381         * lib/unistdio.h: New file.
58382         * lib/unistdio/u-asnprintf.h: New file.
58383         * lib/unistdio/u-asprintf.h: New file.
58384         * lib/unistdio/u-printf-args.c: New file.
58385         * lib/unistdio/u-printf-args.h: New file.
58386         * lib/unistdio/u-printf-parse.h: New file.
58387         * lib/unistdio/u-snprintf.h: New file.
58388         * lib/unistdio/u-sprintf.h: New file.
58389         * lib/unistdio/u-vasprintf.h: New file.
58390         * lib/unistdio/u-vsnprintf.h: New file.
58391         * lib/unistdio/u-vsprintf.h: New file.
58392         * lib/unistdio/ulc-asnprintf.c: New file.
58393         * lib/unistdio/ulc-asprintf.c: New file.
58394         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58395         * lib/unistdio/ulc-printf-parse.c: New file.
58396         * lib/unistdio/ulc-snprintf.c: New file.
58397         * lib/unistdio/ulc-sprintf.c: New file.
58398         * lib/unistdio/ulc-vasnprintf.c: New file.
58399         * lib/unistdio/ulc-vasprintf.c: New file.
58400         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58401         * lib/unistdio/ulc-vsnprintf.c: New file.
58402         * lib/unistdio/ulc-vsprintf.c: New file.
58403         * lib/unistdio/u8-asnprintf.c: New file.
58404         * lib/unistdio/u8-asprintf.c: New file.
58405         * lib/unistdio/u8-printf-parse.c: New file.
58406         * lib/unistdio/u8-snprintf.c: New file.
58407         * lib/unistdio/u8-sprintf.c: New file.
58408         * lib/unistdio/u8-vasnprintf.c: New file.
58409         * lib/unistdio/u8-vasprintf.c: New file.
58410         * lib/unistdio/u8-vsnprintf.c: New file.
58411         * lib/unistdio/u8-vsprintf.c: New file.
58412         * lib/unistdio/u8-u8-asnprintf.c: New file.
58413         * lib/unistdio/u8-u8-asprintf.c: New file.
58414         * lib/unistdio/u8-u8-snprintf.c: New file.
58415         * lib/unistdio/u8-u8-sprintf.c: New file.
58416         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58417         * lib/unistdio/u8-u8-vasprintf.c: New file.
58418         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58419         * lib/unistdio/u8-u8-vsprintf.c: New file.
58420         * lib/unistdio/u16-asnprintf.c: New file.
58421         * lib/unistdio/u16-asprintf.c: New file.
58422         * lib/unistdio/u16-printf-parse.c: New file.
58423         * lib/unistdio/u16-snprintf.c: New file.
58424         * lib/unistdio/u16-sprintf.c: New file.
58425         * lib/unistdio/u16-vasnprintf.c: New file.
58426         * lib/unistdio/u16-vasprintf.c: New file.
58427         * lib/unistdio/u16-vsnprintf.c: New file.
58428         * lib/unistdio/u16-vsprintf.c: New file.
58429         * lib/unistdio/u16-u16-asnprintf.c: New file.
58430         * lib/unistdio/u16-u16-asprintf.c: New file.
58431         * lib/unistdio/u16-u16-snprintf.c: New file.
58432         * lib/unistdio/u16-u16-sprintf.c: New file.
58433         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58434         * lib/unistdio/u16-u16-vasprintf.c: New file.
58435         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58436         * lib/unistdio/u16-u16-vsprintf.c: New file.
58437         * lib/unistdio/u32-asnprintf.c: New file.
58438         * lib/unistdio/u32-asprintf.c: New file.
58439         * lib/unistdio/u32-printf-parse.c: New file.
58440         * lib/unistdio/u32-snprintf.c: New file.
58441         * lib/unistdio/u32-sprintf.c: New file.
58442         * lib/unistdio/u32-vasnprintf.c: New file.
58443         * lib/unistdio/u32-vasprintf.c: New file.
58444         * lib/unistdio/u32-vsnprintf.c: New file.
58445         * lib/unistdio/u32-vsprintf.c: New file.
58446         * lib/unistdio/u32-u32-asnprintf.c: New file.
58447         * lib/unistdio/u32-u32-asprintf.c: New file.
58448         * lib/unistdio/u32-u32-snprintf.c: New file.
58449         * lib/unistdio/u32-u32-sprintf.c: New file.
58450         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58451         * lib/unistdio/u32-u32-vasprintf.c: New file.
58452         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58453         * lib/unistdio/u32-u32-vsprintf.c: New file.
58454         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58455         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58456         * tests/unistdio/test-ulc-printf1.h: New file.
58457         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58458         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58459         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58460         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58461         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58462         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58463         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58464         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58465         * tests/unistdio/test-u8-asnprintf1.c: New file.
58466         * tests/unistdio/test-u8-asnprintf1.h: New file.
58467         * tests/unistdio/test-u8-printf1.h: New file.
58468         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58469         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58470         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58471         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58472         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58473         * tests/unistdio/test-u8-vasprintf1.c: New file.
58474         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58475         * tests/unistdio/test-u8-vsprintf1.c: New file.
58476         * tests/unistdio/test-u16-asnprintf1.c: New file.
58477         * tests/unistdio/test-u16-asnprintf1.h: New file.
58478         * tests/unistdio/test-u16-printf1.h: New file.
58479         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58480         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58481         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58482         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58483         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58484         * tests/unistdio/test-u16-vasprintf1.c: New file.
58485         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58486         * tests/unistdio/test-u16-vsprintf1.c: New file.
58487         * tests/unistdio/test-u32-asnprintf1.c: New file.
58488         * tests/unistdio/test-u32-asnprintf1.h: New file.
58489         * tests/unistdio/test-u32-printf1.h: New file.
58490         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58491         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58492         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58493         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58494         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58495         * tests/unistdio/test-u32-vasprintf1.c: New file.
58496         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58497         * tests/unistdio/test-u32-vsprintf1.c: New file.
58498         * modules/unistdio/base: New file.
58499         * modules/unistdio/u-printf-args: New file.
58500         * modules/unistdio/ulc-asnprintf: New file.
58501         * modules/unistdio/ulc-asprintf: New file.
58502         * modules/unistdio/ulc-fprintf: New file.
58503         * modules/unistdio/ulc-printf-parse: New file.
58504         * modules/unistdio/ulc-snprintf: New file.
58505         * modules/unistdio/ulc-sprintf: New file.
58506         * modules/unistdio/ulc-vasnprintf: New file.
58507         * modules/unistdio/ulc-vasprintf: New file.
58508         * modules/unistdio/ulc-vfprintf: New file.
58509         * modules/unistdio/ulc-vsnprintf: New file.
58510         * modules/unistdio/ulc-vsprintf: New file.
58511         * modules/unistdio/u8-asnprintf: New file.
58512         * modules/unistdio/u8-asprintf: New file.
58513         * modules/unistdio/u8-printf-parse: New file.
58514         * modules/unistdio/u8-snprintf: New file.
58515         * modules/unistdio/u8-sprintf: New file.
58516         * modules/unistdio/u8-vasnprintf: New file.
58517         * modules/unistdio/u8-vasprintf: New file.
58518         * modules/unistdio/u8-vsnprintf: New file.
58519         * modules/unistdio/u8-vsprintf: New file.
58520         * modules/unistdio/u8-u8-asnprintf: New file.
58521         * modules/unistdio/u8-u8-asprintf: New file.
58522         * modules/unistdio/u8-u8-snprintf: New file.
58523         * modules/unistdio/u8-u8-sprintf: New file.
58524         * modules/unistdio/u8-u8-vasnprintf: New file.
58525         * modules/unistdio/u8-u8-vasprintf: New file.
58526         * modules/unistdio/u8-u8-vsnprintf: New file.
58527         * modules/unistdio/u8-u8-vsprintf: New file.
58528         * modules/unistdio/u16-asnprintf: New file.
58529         * modules/unistdio/u16-asprintf: New file.
58530         * modules/unistdio/u16-printf-parse: New file.
58531         * modules/unistdio/u16-snprintf: New file.
58532         * modules/unistdio/u16-sprintf: New file.
58533         * modules/unistdio/u16-vasnprintf: New file.
58534         * modules/unistdio/u16-vasprintf: New file.
58535         * modules/unistdio/u16-vsnprintf: New file.
58536         * modules/unistdio/u16-vsprintf: New file.
58537         * modules/unistdio/u16-u16-asnprintf: New file.
58538         * modules/unistdio/u16-u16-asprintf: New file.
58539         * modules/unistdio/u16-u16-snprintf: New file.
58540         * modules/unistdio/u16-u16-sprintf: New file.
58541         * modules/unistdio/u16-u16-vasnprintf: New file.
58542         * modules/unistdio/u16-u16-vasprintf: New file.
58543         * modules/unistdio/u16-u16-vsnprintf: New file.
58544         * modules/unistdio/u16-u16-vsprintf: New file.
58545         * modules/unistdio/u32-asnprintf: New file.
58546         * modules/unistdio/u32-asprintf: New file.
58547         * modules/unistdio/u32-printf-parse: New file.
58548         * modules/unistdio/u32-snprintf: New file.
58549         * modules/unistdio/u32-sprintf: New file.
58550         * modules/unistdio/u32-vasnprintf: New file.
58551         * modules/unistdio/u32-vasprintf: New file.
58552         * modules/unistdio/u32-vsnprintf: New file.
58553         * modules/unistdio/u32-vsprintf: New file.
58554         * modules/unistdio/u32-u32-asnprintf: New file.
58555         * modules/unistdio/u32-u32-asprintf: New file.
58556         * modules/unistdio/u32-u32-snprintf: New file.
58557         * modules/unistdio/u32-u32-sprintf: New file.
58558         * modules/unistdio/u32-u32-vasnprintf: New file.
58559         * modules/unistdio/u32-u32-vasprintf: New file.
58560         * modules/unistdio/u32-u32-vsnprintf: New file.
58561         * modules/unistdio/u32-u32-vsprintf: New file.
58562         * modules/unistdio/ulc-asnprintf-tests: New file.
58563         * modules/unistdio/ulc-vasnprintf-tests: New file.
58564         * modules/unistdio/ulc-vasprintf-tests: New file.
58565         * modules/unistdio/ulc-vsnprintf-tests: New file.
58566         * modules/unistdio/ulc-vsprintf-tests: New file.
58567         * modules/unistdio/u8-asnprintf-tests: New file.
58568         * modules/unistdio/u8-vasnprintf-tests: New file.
58569         * modules/unistdio/u8-vasprintf-tests: New file.
58570         * modules/unistdio/u8-vsnprintf-tests: New file.
58571         * modules/unistdio/u8-vsprintf-tests: New file.
58572         * modules/unistdio/u16-asnprintf-tests: New file.
58573         * modules/unistdio/u16-vasnprintf-tests: New file.
58574         * modules/unistdio/u16-vasprintf-tests: New file.
58575         * modules/unistdio/u16-vsnprintf-tests: New file.
58576         * modules/unistdio/u16-vsprintf-tests: New file.
58577         * modules/unistdio/u32-asnprintf-tests: New file.
58578         * modules/unistdio/u32-vasnprintf-tests: New file.
58579         * modules/unistdio/u32-vasprintf-tests: New file.
58580         * modules/unistdio/u32-vsnprintf-tests: New file.
58581         * modules/unistdio/u32-vsprintf-tests: New file.
58582         * MODULES.html.sh (Unicode string functions): Add the new modules.
58583
58584 2007-07-01  Bruno Haible  <bruno@clisp.org>
58585
58586         * lib/sprintf.c (sprintf): Limit the available length estimation,
58587         to avoid address wraparound.
58588         * lib/vsprintf.c (vsprintf): Likewise.
58589         * modules/sprintf-posix (Dependencies): Add stdint.
58590         * modules/vsprintf-posix (Dependencies): Likewise.
58591
58592 2007-07-01  Bruno Haible  <bruno@clisp.org>
58593
58594         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58595         Windows PATH as well. Conservative double-quoting. Comments.
58596
58597 2007-07-01  Bruno Haible  <bruno@clisp.org>
58598             Eric Blake  <ebb9@byu.net>
58599             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58600
58601         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58602         empty components in $PATH, denoting '.'.
58603
58604 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58605
58606         * gnulib-tool: Fix indentation.
58607         (func_create_megatestdir): Likewise.
58608         Report by Bruno Haible.
58609
58610 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58611
58612         Sync from Automake.
58613         * build-aux/gnupload: Fix shell portability issues with for loops.
58614         Report by Karl Berry.
58615
58616 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58617
58618         * build-aux/maint.mk (POURL): Use translationproject.org.
58619
58620 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58621             Bruno Haible  <bruno@clisp.org>
58622
58623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58624         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58625         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58626         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58627         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58628
58629 2007-06-27  Bruno Haible  <bruno@clisp.org>
58630
58631         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58632         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58633
58634 2007-06-26  Karl Berry  <karl@gnu.org>
58635
58636         * MODULES.html.sh: remove xreadlink-with-size.
58637
58638 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58641         method that I hope also handles the double-include problem noted
58642         by Bruno Haible in
58643         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58644
58645 2007-06-23  Bruno Haible  <bruno@clisp.org>
58646
58647         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58648         Don't let the 'mostlyclean' target fail if the last subdirectory could
58649         not be removed.
58650         Reported by Karl Berry.
58651
58652 2007-06-23  Bruno Haible  <bruno@clisp.org>
58653
58654         * gnulib-tool (echo): Add a speedier workaround for ksh.
58655         * tests/test-echo.sh: Likewise.
58656
58657 2007-06-23  Bruno Haible  <bruno@clisp.org>
58658
58659         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58660         * tests/test-echo.sh: Likewise.
58661
58662 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58663
58664         * gnulib-tool (IFS): Initialize early, so we don't set it to
58665         empty later.
58666         (self_abspathname): Rewrite algorithm to set it, reindent.
58667         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58668         (func_create_megatestdir): Merge some sed scripts.
58669
58670 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58671
58672         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58673         exposed by Sun Studio 11 cc on Solaris 8.
58674
58675 2007-06-22  Bruno Haible  <bruno@clisp.org>
58676
58677         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58678         backslashes.
58679         * tests/test-echo.sh: New file.
58680
58681 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58682
58683         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58684         simplify `sed_replace_build_aux' scripts, they are portable but
58685         echoing them with `echo' is not.
58686         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58687
58688 2007-06-21  Karl Berry  <karl@gnu.org>
58689
58690         * config/srclist.txt: guess we can't handle the licenses via
58691         srclist at the moment.
58692
58693 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         * MODULES.html.sh: Add include_next.
58696         * modules/include_next: New file.
58697
58698 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58699
58700         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58701         INCLUDE_NEXT.
58702         (gl_CHECK_NEXT_HEADERS): New macro.
58703         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58704         the obsolescent gl_ABSOLUTE_HEADER.
58705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58706         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58707         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58708         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58709         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58710         * m4/math_h.m4 (gl_MATH_H): Likewise.
58711         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58712         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58713         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58714         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58715         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58716         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58717         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58718         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58719         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58721         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58722         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58723         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58724         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58725         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58726         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58727         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58728         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58729         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58730         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58731         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58732         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58733         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58734         * lib/float_.h: Likewise.
58735         * lib/inttypes_.h: Likewise.
58736         * lib/math_.h: Likewise.
58737         * lib/search_.h: Likewise.
58738         * lib/signal_.h: Likewise.
58739         * lib/stdint_.h: Likewise.
58740         * lib/stdio_.h: Likewise.
58741         * lib/stdlib_.h: Likewise.
58742         * lib/string_.h: Likewise.
58743         * lib/sys_stat_.h: Likewise.
58744         * lib/sys_time_.h: Likewise.
58745         * lib/time_.h: Likewise.
58746         * lib/unistd_.h: Likewise.
58747         * lib/wchar_.h: Likewise.
58748         * lib/wctype_.h: Likewise.
58749         * lib/dirent_.h: Likewise.
58750         * lib/iconv_.h: Likewise.
58751         * lib/locale_.h: Likewise.
58752         * lib/netinet_in_.h: Likewise.
58753         * lib/sys_select_.h: Likewise.
58754         * lib/sys_socket_.h: Likewise.
58755         * lib/sysexits_.h: Likewise.
58756         * modules/fcntl (Depends-on): Depend on include_next, not
58757         absolute_header.
58758         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58759         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58760         * modules/fchdir: Likewise.
58761         * modules/float: Likewise.
58762         * modules/iconv_open: Likewise.
58763         * modules/inttypes: Likewise.
58764         * modules/locale: Likewise.
58765         * modules/math: Likewise.
58766         * modules/netinet_in: Likewise.
58767         * modules/search: Likewise.
58768         * modules/signal: Likewise.
58769         * modules/stdint: Likewise.
58770         * modules/stdio: Likewise.
58771         * modules/stdlib: Likewise.
58772         * modules/string: Likewise.
58773         * modules/sys_select: Likewise.
58774         * modules/sys_socket: Likewise.
58775         * modules/sys_stat: Likewise.
58776         * modules/sys_time: Likewise.
58777         * modules/sysexits: Likewise.
58778         * modules/time: Likewise.
58779         * modules/unistd: Likewise.
58780         * modules/wchar: Likewise.
58781         * modules/wctype: Likewise.
58782         * modules/sys_stat: Change maintainer to "all".
58783         * modules/unistd: Likewise.
58784
58785 2007-06-20  Karl Berry  <karl@gnu.org>
58786
58787         * config/srclist.txt: track www changes in license files.
58788
58789 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58790
58791         * build-aux/bootstrap: Remove stray dot.
58792         Make sure build_aux settings are honored when linking
58793         gnulib_extra_files.
58794
58795 2007-06-19  Eric Blake  <ebb9@byu.net>
58796
58797         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58798         Allow compilation on cygwin.
58799
58800 2007-06-19  Jim Meyering  <jim@meyering.net>
58801
58802         xreadlink-with-size: Remove module.  No longer used.
58803         Ex-callers now use xreadlink or mreadlink-with-size.
58804         * modules/xreadlink-with-size: Remove module.
58805         * lib/xreadlink-with-size.c: Remove file.
58806         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58807         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58808         just before the function definition *is* accurate.
58809
58810         Eliminate one way canonicalize_filename_mode could exit.
58811         * lib/canonicalize.c (canonicalize_filename_mode):
58812         Use mreadlink_with_size, not xreadlink_with_size.
58813
58814 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58815
58816         Detect porting problems to FreeBSD/arm, which has time_t wider than
58817         long int.  Original problem reported for GNU diff by Xin Li in
58818         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58819         * modules/getdate (Depends-on): Add intprops, verify.
58820         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58821         is an integer type no wider than long int.
58822
58823 2007-06-18  Jim Meyering  <jim@meyering.net>
58824
58825         New module: mreadlink-with-size.
58826         * MODULES.html.sh: Add mreadlink-with-size.
58827         * modules/mreadlink-with-size: New module
58828         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58829         not xreadlink-with-size.
58830         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58831
58832 2007-06-16  Bruno Haible  <bruno@clisp.org>
58833
58834         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58835         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58836         Reported by Gary V. Vaughan <gary@gnu.org>.
58837
58838 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58839
58840         Revamp lchown so that it lives in unistd.h where it belongs.
58841         * lib/lchown.h: Remove.
58842         * lib/dirchownmod.c: Don't include lib/lchown.h.
58843         * lib/fchownat.c: Likewise.
58844         * lib/openat.c: Likewise.
58845         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58846         does not follow symlinks.
58847         (EOPNOTSUPP): Define if not defined.
58848         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58849         is defined to 0.
58850         (lchown): New decl.
58851         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58852         Do not check for lchown decl.
58853         Set REPLACE_LCHOWN.
58854         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58855         REPLACE_LCHOWN.
58856         * modules/chown: Make it clear it follows symlinks.
58857         * modules/lchown: Make it clear it doesn't follow symlinks.
58858         (Files): Remove lib/lchown.h
58859         (Depends-on): Add unistd.
58860         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58861         (Include): Include <unistd.h>, not "lchown.h".
58862         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58863         REPLACE_LCHOWN.
58864
58865 2007-06-15  Jim Meyering  <jim@meyering.net>
58866
58867         Change license (GPL to LGPL) of fsusage and dependents.
58868         * modules/fsusage (License): Change to LGPL.
58869         * modules/full-read (License): Likewise.
58870         * modules/full-write (License): Likewise.
58871         * modules/safe-read (License): Likewise.
58872         * modules/safe-write (License): Likewise.
58873
58874 2007-06-14  Ben Pfaff  <blp@gnu.org>
58875
58876         Missing part of allocsa -> malloca transition.
58877         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58878         gl_MALLOCA.
58879
58880 2007-06-12  Bruno Haible  <bruno@clisp.org>
58881
58882         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58883         to ia64, x86_64, i386.
58884         Reported by Eric Blake.
58885
58886 2007-06-12  Bruno Haible  <bruno@clisp.org>
58887
58888         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58889         cross-compiling to x86_64.
58890
58891 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58892
58893         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58894         glitch reported by Ralf Wildenhues in
58895         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58896
58897         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58898         Vin Shelton.
58899
58900 2007-06-11  Bruno Haible  <bruno@clisp.org>
58901
58902         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58903         replacement string.
58904         Reported by Eric Blake.
58905
58906 2007-06-10  Bruno Haible  <bruno@clisp.org>
58907
58908         Prepare vasnprintf code for use with Unicode strings.
58909         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58910         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58911         TYPE_U32_STRING.
58912         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58913         a_u32_string variants.
58914         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58915         * lib/printf-args.c: Don't include config.h and the specification
58916         header if PRINTF_FETCHARGS is already defined.
58917         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58918         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58919         TYPE_U16_STRING, TYPE_U32_STRING.
58920         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58921         u16_directive, u16_directives, u32_directive, u32_directives): New
58922         types.
58923         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58924         New declarations.
58925         * lib/printf-parse.c: Don't include config.h and the specification
58926         header if PRINTF_PARSE is already defined. Eliminate the set of
58927         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58928         them now. Include c-ctype.h.
58929         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
58930         directive and CHAR_T_ONLY_ASCII.
58931         * lib/vasnprintf.c: Don't include config.h and the specification header
58932         if VASNPRINTF is already defined.
58933         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
58934         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
58935         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
58936         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
58937         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
58938         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
58939         code accordingly.
58940         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
58941         pad_ourselves also in this case, with the 'c' and 's' directives, and
58942         with a different notion of "width".
58943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
58944
58945 2007-06-10  Bruno Haible  <bruno@clisp.org>
58946
58947         * modules/unistr/u32-mbsnlen: New file.
58948         * lib/unistr/u32-mbsnlen.c: New file.
58949
58950         * modules/unistr/u16-mbsnlen: New file.
58951         * lib/unistr/u16-mbsnlen.c: New file.
58952
58953         * modules/unistr/u8-mbsnlen: New file.
58954         * lib/unistr/u8-mbsnlen.c: New file.
58955
58956         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
58957         declarations.
58958
58959 2007-06-10  Bruno Haible  <bruno@clisp.org>
58960
58961         * lib/string_.h (mbsnlen): New declaration.
58962         * lib/mbsnlen.c: New file.
58963         * m4/mbsnlen.m4: New file.
58964         * modules/mbsnlen: New file.
58965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
58966         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
58967         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
58968
58969 2007-06-10  Bruno Haible  <bruno@clisp.org>
58970
58971         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
58972
58973 2007-06-10  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
58976         * lib/mbuiter.h: Likewise.
58977
58978 2007-06-10  Bruno Haible  <bruno@clisp.org>
58979
58980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
58981         declaration.
58982
58983 2007-06-10  Karl Berry  <karl@gnu.org>
58984
58985         * config/srclist.txt: remove gettext entries, Bruno prefers
58986         to update individually.
58987
58988 2007-06-10  Bruno Haible  <bruno@clisp.org>
58989
58990         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
58991         'maxlen'. Ensure only length + width bytes are allocated, not
58992         length + 1 + width.
58993
58994 2007-06-09  Bruno Haible  <bruno@clisp.org>
58995
58996         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
58997         (CHAR_T): Remove macro.
58998         (VASNPRINTF): Update.
58999
59000 2007-06-09  Bruno Haible  <bruno@clisp.org>
59001
59002         * MODULES.html.sh (Unicode string functions): Add the new modules.
59003
59004         * modules/uniconv/u32-conv-to-enc: New file.
59005         * lib/uniconv/u32-conv-to-enc.c: New file.
59006         * modules/uniconv/u32-conv-to-enc-tests: New file.
59007         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59008
59009         * modules/uniconv/u16-conv-to-enc: New file.
59010         * lib/uniconv/u16-conv-to-enc.c: New file.
59011         * lib/uniconv/u-conv-to-enc.h: New file.
59012         * modules/uniconv/u16-conv-to-enc-tests: New file.
59013         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59014
59015         * modules/uniconv/u8-conv-to-enc: New file.
59016         * lib/uniconv/u8-conv-to-enc.c: New file.
59017         * modules/uniconv/u8-conv-to-enc-tests: New file.
59018         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59019
59020         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59021         u32_conv_to_encoding): New declarations.
59022
59023 2007-06-09  Bruno Haible  <bruno@clisp.org>
59024
59025         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59026
59027 2007-06-09  Bruno Haible  <bruno@clisp.org>
59028
59029         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59030         * modules/malloca: Renamed from modules/allocsa, updated.
59031         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59032         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59033         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59034         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59035         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59036         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59037         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59038         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59039         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59040         * modules/c-strcasestr (Depends-on): Update.
59041         * lib/c-strcasestr.c: Update.
59042         * modules/c-strstr (Depends-on): Update.
59043         * lib/c-strstr.c: Update.
59044         * modules/canonicalize-lgpl (Depends-on): Update.
59045         * lib/canonicalize-lgpl.c: Update.
59046         * modules/clean-temp (Depends-on): Update.
59047         * lib/clean-temp.c: Update.
59048         * modules/csharpcomp (Depends-on): Update.
59049         * lib/csharpcomp.c: Update.
59050         * modules/csharpexec (Depends-on): Update.
59051         * lib/csharpexec.c: Update.
59052         * modules/javacomp (Depends-on): Update.
59053         * lib/javacomp.c: Update.
59054         * modules/javaexec (Depends-on): Update.
59055         * lib/javaexec.c: Update.
59056         * modules/mbscasestr (Depends-on): Update.
59057         * lib/mbscasestr.c: Update.
59058         * modules/mbsstr (Depends-on): Update.
59059         * lib/mbsstr.c: Update.
59060         * modules/setenv (Depends-on): Update.
59061         * lib/setenv.c: Update.
59062         * modules/strcasestr (Depends-on): Update.
59063         * lib/strcasestr.c: Update.
59064         * modules/striconveha (Depends-on): Update.
59065         * lib/striconveha.c: Update.
59066         * modules/relocatable-prog-wrapper (Files): Update.
59067         * lib/relocwrapper.c: Update.
59068         * build-aux/install-reloc: Update.
59069         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59070
59071 2007-06-08  Bruno Haible  <bruno@clisp.org>
59072
59073         Port to uClibc.
59074         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59075         * lib/fpurge.c (fpurge): Likewise.
59076         * lib/freading.c (freading): Likewise.
59077         * lib/fseeko.c (rpl_fseeko): Likewise.
59078         * lib/fseterr.c (fseterr): Likewise.
59079         * lib/fwriting.c (fwriting): Likewise.
59080         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59081
59082 2007-06-08  Bruno Haible  <bruno@clisp.org>
59083
59084         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59085         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59086         * modules/gettext (Files): Add m4/intlmacosx.m4.
59087
59088 2007-06-07  Bruno Haible  <bruno@clisp.org>
59089
59090         * modules/localename-tests: New file.
59091         * tests/test-localename.c: New file.
59092
59093         New module 'localename'.
59094         * lib/localename.h: New file.
59095         * lib/localename.c: New file, from GNU gettext.
59096         * m4/localename.m4: New file.
59097         * modules/localename: New file.
59098
59099 2007-06-07  Bruno Haible  <bruno@clisp.org>
59100
59101         Work around the lack of <wchar.h> on some builds of uClibc.
59102         * doc/headers/wchar.texi: Update.
59103         * lib/wchar_.h: Include <wchar.h> only if it exists.
59104         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59105         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59106         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59107         doesn't exist.
59108         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59109         * modules/mbfile (Depends-on): Add wchar.
59110         * modules/mbiter (Depends-on): Likewise.
59111         * modules/mbuiter (Depends-on): Likewise.
59112         Reported by Simon Josefsson.
59113
59114 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         Work around problem reported by Steven M. Schweda in
59117         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59118         Tru64 5.1B with the Compaq compiler environment installed declares
59119         an 'isblank' function but does not define it in the C library.
59120         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59121         * lib/regex_internal.h (isblank): Likewise.
59122         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59123         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59124
59125 2007-06-05  Bruno Haible  <bruno@clisp.org>
59126
59127         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59128         ia64.
59129         * modules/printf-safe: New file.
59130         * modules/fprintf-posix (Depends-on): Add printf-safe.
59131         * modules/printf-posix (Depends-on): Likewise.
59132         * modules/snprintf-posix (Depends-on): Likewise.
59133         * modules/sprintf-posix (Depends-on): Likewise.
59134         * modules/vasnprintf-posix (Depends-on): Likewise.
59135         * modules/vasprintf-posix (Depends-on): Likewise.
59136         * modules/vfprintf-posix (Depends-on): Likewise.
59137         * modules/vprintf-posix (Depends-on): Likewise.
59138         * modules/vsnprintf-posix (Depends-on): Likewise.
59139         * modules/vsprintf-posix (Depends-on): Likewise.
59140         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59141         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59142         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59143         "no" on i386, x86_64, ia64.
59144         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59145         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59146         on i386, x86_64, ia64.
59147         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59148         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59149         on i386, x86_64, ia64.
59150         * tests/test-vasnprintf-posix.c: Include float.h.
59151         (LDBL80_WORDS): New macro.
59152         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59153         on i386, x86_64, ia64.
59154         * tests/test-vasprintf-posix.c: Include float.h.
59155         (LDBL80_WORDS): New macro.
59156         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59157         on i386, x86_64, ia64.
59158         * tests/test-snprintf-posix.c: Include float.h.
59159         * tests/test-sprintf-posix.c: Likewise.
59160         * tests/test-vsnprintf-posix.c: Likewise.
59161         * tests/test-vsprintf-posix.c: Likewise.
59162
59163 2007-06-05  Bruno Haible  <bruno@clisp.org>
59164
59165         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59166         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59167         non-IEEE numbers on i386, x86_64, ia64.
59168         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59169         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59170         * tests/test-isnanl.h: Include float.h.
59171         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59172
59173 2007-06-05  Bruno Haible  <bruno@clisp.org>
59174
59175         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59176         also the %a / %A. Handle the %a / %A code before this extra handling.
59177
59178 2007-06-05  Bruno Haible  <bruno@clisp.org>
59179
59180         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59181         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59182
59183 2007-06-05  Bruno Haible  <bruno@clisp.org>
59184
59185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59186         typo in variable name.
59187
59188 2007-06-05  Eric Blake  <ebb9@byu.net>
59189
59190         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59191         Reported by Simon Josefsson.
59192
59193 2007-06-04  Bruno Haible  <bruno@clisp.org>
59194
59195         Avoid test failures on some PowerPC platforms.
59196         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59197         Define differently for PowerPC.
59198         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59199         Reported by Gary V. Vaughan <gary@gnu.org>.
59200
59201 2007-06-02  Bruno Haible  <bruno@clisp.org>
59202
59203         Fix test-stdint failure on FreeBSD/ia64.
59204         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59205         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59206         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59207         * doc/headers/stdint.texi: Update.
59208
59209 2007-06-01  Bruno Haible  <bruno@clisp.org>
59210
59211         * tests/test-binary-io.c (main): Pass a third argument to open().
59212         Reported by Gary V. Vaughan <gary@gnu.org>.
59213
59214 2007-06-01  Bruno Haible  <bruno@clisp.org>
59215
59216         * doc/functions/frexpl.texi: Update for mingw.
59217
59218 2007-06-01  Bruno Haible  <bruno@clisp.org>
59219
59220         * tests/test-lseek.c (main): Disable test of errno for invalid third
59221         argument.
59222         * doc/functions/lseek.texi: Update.
59223         Reported by Gary V. Vaughan <gary@gnu.org>.
59224
59225 2007-05-28  Bruno Haible  <bruno@clisp.org>
59226
59227         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59228
59229 2007-05-31  Eric Blake  <ebb9@byu.net>
59230
59231         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59232         cross compiling.
59233
59234 2007-05-30  Eric Blake  <ebb9@byu.net>
59235         and Bruno Haible  <bruno@clisp.org>
59236
59237         Work around mingw test failures exposed by m4-1.4.9b.
59238         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59239         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59240         moment.
59241
59242 2007-05-30  Bruno Haible  <bruno@clisp.org>
59243
59244         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59245         assuming that they are closed. Needed on HP-UX 11.
59246
59247 2007-05-29  Bruno Haible  <bruno@clisp.org>
59248
59249         Fix a problem with #include_next.
59250         * lib/dirent_.h: Split the double-inclusion guard.
59251         * lib/fcntl_.h: Likewise.
59252         * lib/float_.h: Likewise.
59253         * lib/iconv_.h: Likewise.
59254         * lib/inttypes_.h: Likewise.
59255         * lib/locale_.h: Likewise.
59256         * lib/math_.h: Likewise.
59257         * lib/netinet_in_.h: Likewise.
59258         * lib/search_.h: Likewise.
59259         * lib/signal_.h: Likewise.
59260         * lib/stdint_.h: Likewise.
59261         * lib/stdio_.h: Likewise.
59262         * lib/stdlib_.h: Likewise.
59263         * lib/string_.h: Likewise.
59264         * lib/sys_select_.h: Likewise.
59265         * lib/sys_socket_.h: Likewise.
59266         * lib/sys_stat_.h: Likewise.
59267         * lib/sys_time_.h: Likewise.
59268         * lib/sysexits_.h: Likewise.
59269         * lib/time_.h: Likewise.
59270         * lib/unistd_.h: Likewise.
59271         * lib/wchar_.h: Likewise.
59272         * lib/wctype_.h: Likewise.
59273
59274 2007-05-29  Bruno Haible  <bruno@clisp.org>
59275
59276         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59277         for the moment.
59278
59279 2007-05-29  Bruno Haible  <bruno@clisp.org>
59280
59281         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59282         invocation.
59283         Reported by Eric Blake.
59284
59285 2007-05-29  Bruno Haible  <bruno@clisp.org>
59286
59287         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59288         compiling case.
59289
59290 2007-05-29  Eric Blake  <ebb9@byu.net>
59291             Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59294         cross compiles.
59295
59296 2007-05-28  Eric Blake  <ebb9@byu.net>
59297
59298         * modules/closein-tests (test_closein_LDADD): Support test on
59299         cygwin with libtool.
59300
59301 2007-05-28  Bruno Haible  <bruno@clisp.org>
59302
59303         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59304         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59305         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59306         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59307         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59308         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59309         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59310         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59311         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59312
59313 2007-05-28  Eric Blake  <ebb9@byu.net>
59314
59315         Unconditionally include <config.h> in unit tests.
59316         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59317         * tests/test-allocsa.c, tests/test-arcfour.c,
59318         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59319         tests/test-array_list.c, tests/test-array_oset.c,
59320         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59321         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59322         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59323         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59324         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59325         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59326         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59327         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59328         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59329         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59330         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59331         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59332         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59333         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59334         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59335         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59336         test-md5.c, test-memmem.c, test-printf-posix.c,
59337         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59338         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59339         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59340         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59341         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59342         test-vasnprintf-posix2.c, test-vasnprintf.c,
59343         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59344         test-vfprintf-posix.c, test-vprintf-posix.c,
59345         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59346         test-xvasprintf.c: Likewise.
59347
59348 2007-05-28  Bruno Haible  <bruno@clisp.org>
59349
59350         * gnulib-tool (func_import): Remember the --with-tests command-line
59351         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59352         Reported by Eric Blake.
59353
59354 2007-05-28  Bruno Haible  <bruno@clisp.org>
59355
59356         * modules/ftell-tests: New file.
59357         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59358         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59359
59360         * lib/ftell.c: New file.
59361         * modules/ftell: New file.
59362         * m4/ftell.m4: New file.
59363         * doc/functions/ftell.texi: Update.
59364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59365         REPLACE_FTELL.
59366         * lib/stdio_.h (rpl_ftell): New declaration.
59367         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59368         REPLACE_FTELL.
59369
59370 2007-05-28  Eric Blake  <ebb9@byu.net>
59371
59372         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59373
59374 2007-05-28  Bruno Haible  <bruno@clisp.org>
59375
59376         * modules/fseek-tests: New file.
59377         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59378         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59379
59380         * lib/fseek.c: New file.
59381         * modules/fseek: New file.
59382         * m4/fseek.m4: New file.
59383         * doc/functions/fseek.texi: Update.
59384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59385         REPLACE_FSEEK.
59386         * lib/stdio_.h (rpl_fseek): New declaration.
59387         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59388         REPLACE_FSEEK.
59389
59390 2007-05-28  Bruno Haible  <bruno@clisp.org>
59391
59392         * lib/stdio_.h (fflush): More comments.
59393
59394 2007-05-28  Bruno Haible  <bruno@clisp.org>
59395
59396         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59397         runtime test.
59398
59399 2007-05-28  Eric Blake  <ebb9@byu.net>
59400
59401         Improve lseek module.
59402         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59403         * lib/unistd_.h (lseek): Scale back link warning message.
59404         * tests/test-lseek.c: Beef up test.
59405         * tests/test-lseek.sh: Exercise more facets of lseek.
59406         Reported by Bruno Haible.
59407
59408 2007-05-28  Bruno Haible  <bruno@clisp.org>
59409
59410         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59411         to define.
59412
59413 2007-05-27  Bruno Haible  <bruno@clisp.org>
59414
59415         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59416
59417 2007-05-27  Bruno Haible  <bruno@clisp.org>
59418
59419         * modules/openmp: New file.
59420         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59421         Noah Misch.
59422
59423 2007-05-26  Bruno Haible  <bruno@clisp.org>
59424
59425         * modules/chdir-long (Depends-on): Add fchdir.
59426         * modules/chdir-safer (Depends-on): Likewise.
59427         * modules/fts (Depends-on): Likewise.
59428         * modules/fts-lgpl (Depends-on): Likewise.
59429         * modules/openat (Depends-on): Likewise.
59430         * modules/savewd (Depends-on): Likewise.
59431
59432 2007-05-24  Eric Blake  <ebb9@byu.net>
59433
59434         Fix lseek on mingw.
59435         * modules/lseek: New module.
59436         * m4/lseek.m4: New file.
59437         * lib/lseek.c: New file.
59438         * modules/lseek-tests: New file.
59439         * tests/test-lseek.c: New file.
59440         * tests/test-lseek.sh: New file.
59441         * MODULES.html.sh: Document lseek module.
59442         * modules/fflush (Depends-on): Add lseek, fseeko.
59443         * modules/fseeko (Depends-on): Likewise.
59444         * modules/ftello (Depends-on): Likewise.
59445         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59446         broken.
59447         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59448         broken.
59449         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59450         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59451         * lib/ftello.c (rpl_ftello): Likewise.
59452         * tests/test-fseeko.c (main): Test this.
59453         * tests/test-fseeko.sh: Likewise.
59454         * tests/test-ftello.c (main): Likewise.
59455         * tests/test-ftello.sh: Likewise.
59456         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59457         implies replacing fseek.
59458         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59459         HAVE_FTELLO.
59460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59461         * modules/unistd (Makefile.am): Likewise.
59462         * lib/unistd_.h (lseek): Declare a replacement.
59463         * doc/functions/lseek.texi (lseek): Document this fix.
59464         * doc/functions/fseek.texi (fseek): Likewise.
59465         * doc/functions/ftell.texi (ftell): Likewise.
59466
59467 2007-05-24  Bruno Haible  <bruno@clisp.org>
59468
59469         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59470         in the printed representation of a NaN.
59471         * tests/test-vasprintf-posix.c (test_function): Likewise.
59472         * tests/test-snprintf-posix.h (test_function): Likewise.
59473         * tests/test-sprintf-posix.h (test_function): Likewise.
59474         Reported by Eric Blake.
59475
59476 2007-05-23  Eric Blake  <ebb9@byu.net>
59477
59478         Fix fseeko/ftello on cygwin 1.5.24.
59479         * doc/functions/fseeko.texi (fseeko): Document the fix.
59480         * doc/functions/ftello.texi (ftello): Document the fix.
59481         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59482         * doc/functions/stdout.text (stdout): New file.
59483         * doc/functions/stderr.text (stderr): New file.
59484         * doc/gnulib.texi (Function Substitutes): Use new files.
59485         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59486         prior to 1.7.0.
59487         * tests/test-ftello.c (main): Likewise for ftello.
59488         * tests/test-fseeko.sh: New file.
59489         * tests/test-ftello.sh: New file.
59490         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59491         with seekable stdin.
59492         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59493         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59494         (gl_REPLACE_FSEEKO): New macro.
59495         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59496         * modules/fseeko (Files): Distribute fseeko.c.
59497         * modules/ftello (Files): Distribute ftello.c.
59498         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59499         mode.
59500         * lib/ftello.c (rpl_ftello): New file.
59501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59502         fseeko, ftello.
59503         (gl_STDIN_LARGE_OFFSET): New macro.
59504         * modules/stdio (Makefile.am): Perform the replacement.
59505         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59506
59507 2007-05-23  Bruno Haible  <bruno@clisp.org>
59508
59509         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59510         GNULIB_POSIXCHECK is defined.
59511
59512 2007-05-21  Bruno Haible  <bruno@clisp.org>
59513
59514         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59515         Check also the output for NaN arguments. When cross-compiling, guess
59516         no on IRIX.
59517         * lib/vasnprintf.c: Update comments.
59518         * tests/test-vasnprintf-posix.c (strisnan): New function.
59519         (test_function): Use it.
59520         * tests/test-vasprintf-posix.c (strisnan): New function.
59521         (test_function): Use it.
59522         * tests/test-snprintf-posix.h (strisnan): New function.
59523         (test_function): Use it.
59524         * tests/test-sprintf-posix.h (strisnan): New function.
59525         (test_function): Use it.
59526         Reported by Eric Blake.
59527
59528 2007-05-20  Bruno Haible  <bruno@clisp.org>
59529
59530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59531         numbers that fails on BeOS.
59532         * doc/functions/frexpl.texi: Update.
59533
59534 2007-05-20  Jim Meyering  <jim@meyering.net>
59535
59536         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59537         forced upon us by glibc-2.6.
59538
59539 2007-05-20  Bruno Haible  <bruno@clisp.org>
59540
59541         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59542         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59543         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59544         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59545         NEED_PRINTF_INFINITE.
59546         (is_infinitel): New function.
59547         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59548         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59549         gl_PREREQ_VASNPRINTF_INFINITE.
59550         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59551         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59552         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59553         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59554         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59555         gl_PREREQ_VASNPRINTF_INFINITE.
59556         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59557         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59558         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59559         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59560         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59561         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59562         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59563         * doc/functions/fprintf.texi: Update.
59564         * doc/functions/printf.texi: Update.
59565         * doc/functions/snprintf.texi: Update.
59566         * doc/functions/sprintf.texi: Update.
59567         * doc/functions/vfprintf.texi: Update.
59568         * doc/functions/vprintf.texi: Update.
59569         * doc/functions/vsnprintf.texi: Update.
59570         * doc/functions/vsprintf.texi: Update.
59571
59572 2007-05-20  Bruno Haible  <bruno@clisp.org>
59573
59574         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59575         was not found in libc.
59576         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59577
59578 2007-05-20  Bruno Haible  <bruno@clisp.org>
59579
59580         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59581         printed as "-nan" instead of "nan".
59582         * tests/test-vasprintf-posix.c (test_function): Likewise.
59583         * tests/test-snprintf-posix.h (test_function): Likewise.
59584         * tests/test-sprintf-posix.h (test_function): Likewise.
59585         Needed for HP-UX 11.
59586
59587 2007-05-20  Jim Meyering  <jim@meyering.net>
59588
59589         Fix buggy test for the fchownat-deref bug.
59590         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59591         symlink required for the run-test.  Without it, this test would
59592         always declare that fchownat doesn't work, and client code would
59593         unnecessarily use the replacement function with fixed libc.
59594         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59595         Reported by Greg Schafer.
59596
59597 2007-05-19  Bruno Haible  <bruno@clisp.org>
59598
59599         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59600         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59601         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59602         Needed for IRIX 6.5 and Solaris 2.5.1.
59603
59604 2007-05-19  Bruno Haible  <bruno@clisp.org>
59605
59606         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59607         (test_function): Skip tests involving -0.0 on platforms where
59608         -0.0 = 0.0.
59609         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59610         (test_function): Skip tests involving -0.0 on platforms where
59611         -0.0 = 0.0.
59612         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59613         (test_function): Skip tests involving -0.0 on platforms where
59614         -0.0 = 0.0.
59615         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59616         (test_function): Skip tests involving -0.0 on platforms where
59617         -0.0 = 0.0.
59618         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59619         tests.
59620         * tests/test-printf-posix.h (test_function): Likewise.
59621         * tests/test-printf-posix.output: Remove all -0.0 related results.
59622         Needed for IRIX 6.5.
59623
59624 2007-05-19  Bruno Haible  <bruno@clisp.org>
59625
59626         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59627         printed as "nan0x7fffffff" instead of "nan".
59628         * tests/test-vasprintf-posix.c (test_function): Likewise.
59629         * tests/test-snprintf-posix.h (test_function): Likewise.
59630         * tests/test-sprintf-posix.h (test_function): Likewise.
59631         * tests/test-fprintf-posix.h (NaN): Remove macro.
59632         (test_function): Remove all NaN related tests.
59633         * tests/test-printf-posix.h (NaN): Remove macro.
59634         (test_function): Remove all NaN related tests.
59635         * tests/test-printf-posix.output: Remove all NaN related results.
59636         Needed for IRIX 6.5.
59637
59638 2007-05-19  Bruno Haible  <bruno@clisp.org>
59639
59640         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59642
59643 2007-05-19  Bruno Haible  <bruno@clisp.org>
59644
59645         * lib/float_.h: New file.
59646         * m4/float_h.m4: New file.
59647         * modules/float: New file.
59648         * modules/isnanl (Dependencies): Add float.
59649         * modules/isnanl-nolibm (Dependencies): Likewise.
59650         * modules/mathl (Dependencies): Likewise.
59651         * modules/printf-frexpl (Dependencies): Likewise.
59652         * modules/signbit (Dependencies): Likewise.
59653         * modules/vasnprintf (Dependencies): Likewise.
59654         * doc/headers/float.texi: Update.
59655
59656 2007-05-19  Jim Meyering  <jim@meyering.net>
59657
59658         * lib/utimens.c (gl_futimens): Rename from futimens,
59659         now that glibc-2.6 declares futimens.
59660         * lib/utimens.h: Likewise.
59661
59662 2007-05-19  Bruno Haible  <bruno@clisp.org>
59663
59664         Avoid test failures on mingw.
59665         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59666         * tests/test-printf-posix.sh: Likewise.
59667         * tests/test-vfprintf-posix.sh: Likewise.
59668         * tests/test-vprintf-posix.sh: Likewise.
59669
59670 2007-05-19  Bruno Haible  <bruno@clisp.org>
59671
59672         Fix *printf result for NaN, Inf, -0.0 on mingw.
59673         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59674         * lib/vasnprintf.c: Include math.h and isnan.h.
59675         (is_infinite_or_zero): New function.
59676         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59677         values in the %f, %F, %e, %E, %g, %G directives.
59678         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59679         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59680         gl_PRINTF_INFINITE and test its result. Invoke
59681         gl_PREREQ_VASNPRINTF_INFINITE.
59682         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59683         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59684         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59685         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59686         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59687         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59688         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59689         * doc/functions/fprintf.texi: Update.
59690         * doc/functions/printf.texi: Update.
59691         * doc/functions/snprintf.texi: Update.
59692         * doc/functions/sprintf.texi: Update.
59693         * doc/functions/vfprintf.texi: Update.
59694         * doc/functions/vprintf.texi: Update.
59695         * doc/functions/vsnprintf.texi: Update.
59696         * doc/functions/vsprintf.texi: Update.
59697
59698 2007-05-19  Bruno Haible  <bruno@clisp.org>
59699
59700         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59701         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59702         Instead of multiplying with 10^k, set extra_zeroes to k.
59703         (scale10_round_long_double): Remove function.
59704
59705 2007-05-18  Bruno Haible  <bruno@clisp.org>
59706
59707         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59708         introduced on 2007-05-06.
59709
59710 2007-05-18  Bruno Haible  <bruno@clisp.org>
59711
59712         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59713         %g directives.
59714         * tests/test-vasprintf-posix.c (test_function): Likewise.
59715         * tests/test-snprintf-posix.h (test_function): Likewise.
59716         * tests/test-sprintf-posix.h (test_function): Likewise.
59717
59718 2007-05-18  Bruno Haible  <bruno@clisp.org>
59719
59720         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59721         (strmatch): New function.
59722         (test_function): Test the %f directive on numbers of various exponents.
59723         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59724         (strmatch): New function.
59725         (test_function): Test the %f directive on numbers of various exponents.
59726         * tests/test-snprintf-posix.h (strmatch): New function.
59727         (test_function): Test the %f directive on numbers of various exponents.
59728         * tests/test-sprintf-posix.h (strmatch): New function.
59729         (test_function): Test the %f directive on numbers of various exponents.
59730         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59731         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59732         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59733         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59734
59735 2007-05-18  Bruno Haible  <bruno@clisp.org>
59736
59737         Add support for 'long double' number output.
59738         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59739         * lib/vasnprintf.c: Include math.h and float+.h.
59740         (mp_limb_t): New type.
59741         (GMP_LIMB_BITS): New macro.
59742         (mp_twolimb_t): New type.
59743         (GMP_TWOLIMB_BITS): New macro.
59744         (mpn_t): New type.
59745         (multiply, divide, convert_to_decimal, decode_long_double,
59746         scale10_round_long_double, scale10_round_decimal_long_double,
59747         floorlog10l): New functions.
59748         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59749         for the %f, %F, %e, %E, %g, %G directives.
59750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59751         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59752         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59753         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59754         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59755         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59756         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59757         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59758         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59759         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59760         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59761         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59762         * modules/snprintf-posix (Depends-on): Likewise.
59763         * modules/sprintf-posix (Depends-on): Likewise.
59764         * modules/vasnprintf-posix (Depends-on): Likewise.
59765         * modules/vasprintf-posix (Depends-on): Likewise.
59766         * modules/vfprintf-posix (Depends-on): Likewise.
59767         * modules/vsnprintf-posix (Depends-on): Likewise.
59768         * modules/vsprintf-posix (Depends-on): Likewise.
59769         * modules/vasnprintf (Files): Add lib/float+.h.
59770         * doc/functions/fprintf.texi: Update.
59771         * doc/functions/printf.texi: Update.
59772         * doc/functions/snprintf.texi: Update.
59773         * doc/functions/sprintf.texi: Update.
59774         * doc/functions/vfprintf.texi: Update.
59775         * doc/functions/vprintf.texi: Update.
59776         * doc/functions/vsnprintf.texi: Update.
59777         * doc/functions/vsprintf.texi: Update.
59778
59779 2007-05-18  Bruno Haible  <bruno@clisp.org>
59780
59781         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59782
59783 2007-05-18  Bruno Haible  <bruno@clisp.org>
59784
59785         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59786         for printing 64-bit integers. Needed for mingw.
59787
59788 2007-05-18  Bruno Haible  <bruno@clisp.org>
59789
59790         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59791         gl_FUNC_FREXPL_WORKS.
59792         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59793
59794 2007-05-18  Bruno Haible  <bruno@clisp.org>
59795
59796         * modules/frexpl-nolibm-tests: New file.
59797
59798         * modules/frexpl-nolibm: New file.
59799         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59800
59801 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59804         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59805         GCC 4.2, which otherwise issues a lot of warnings.
59806         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59807         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59808         Likewise.
59809         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59810         * modules/iconv_open (iconv.h): Likewise.
59811         * modules/locale (locale.h): Likewise.
59812         * modules/netinet_in (netinet/in.h): Likewise.
59813         * modules/sys_select (sys_select.h): Likewise.
59814         * modules/sys_socket (sys/socket.h): Likewise.
59815         * modules/sys_stat (sys/stat.h): Likewise.
59816         * modules/sysexits (sysexits.h): Likewise.
59817         * modules/unistd (unistd.h): Likewise.
59818
59819 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59820
59821         * modules/closein-tests (Makefile.am): Distribute
59822         `test-closein.sh'.
59823
59824 2007-05-17  Bruno Haible  <bruno@clisp.org>
59825
59826         * tests/test-printf-posix.output: Renamed from
59827         tests/test-fprintf-posix.out.
59828         * modules/fprintf-posix-tests: Update.
59829         * modules/printf-posix-tests: Update.
59830         * modules/vfprintf-posix-tests: Update.
59831         * modules/vprintf-posix-tests: Update.
59832         * tests/test-fprintf-posix.sh: Update.
59833         * tests/test-printf-posix.sh: Update.
59834         * tests/test-vfprintf-posix.sh: Update.
59835         * tests/test-vprintf-posix.sh: Update.
59836         Reported by Ralf Wildenhues.
59837
59838 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59839
59840         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59841         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59842         GCC 4.2, which otherwise issues a lot of warnings.
59843         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59844         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59845         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59846         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59847         it should no longer be needed.
59848         * lib/string_.h: Likewise.
59849         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59850         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59851         * modules/inttypes (inttypes.h): Likewise.
59852         * modules/math (math.h): Likewise.
59853         * modules/search (search.h): Likewise.
59854         * modules/signal (signal.h): Likewise.
59855         * modules/stdint (stdint.h): Likewise.
59856         * modules/stdio (stdio.h): Likewise.
59857         * modules/stdlib (stdlib.h): Likewise.
59858         * modules/string (string.h): Likewise.
59859         * modules/sys_time (sys/time.h): Likewise.
59860         * modules/time (time.h): Likewise.
59861         * modules/wchar (wchar.h): Likewise.
59862         * modules/wctype (wtype.h): Likewise.
59863
59864 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59865
59866         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59867
59868 2007-05-13  Bruno Haible  <bruno@clisp.org>
59869
59870         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59871         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59872         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59873         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59874         (gl_PREREQ_STRTOK_R): Don't require it here.
59875
59876 2007-05-13  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59879         when used in C++ mode.
59880
59881 2007-05-12  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/linebuffer.h: Tweak doc.
59884         * lib/linebuffer.c: Likewise.
59885
59886 2007-05-12  James Youngman  <jay@gnu.org>
59887
59888         * lib/linebuffer.c (readlinebuffer_delim): New function,
59889         like readlinebuffer, but use a caller-specified delimiter.
59890         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59891         as the delimiter.
59892         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59893
59894 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59895
59896         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59897         * modules/openat (Files): Remove openat-die.c.
59898         (Depends-on): Add openat-die.
59899         * modules/openat-die: New module.
59900
59901 2007-05-06  Bruno Haible  <bruno@clisp.org>
59902
59903         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59904         Update with info about Cygwin.
59905         * doc/functions/fprintf.texi: Update.
59906         * doc/functions/printf.texi: Update.
59907         * doc/functions/snprintf.texi: Update.
59908         * doc/functions/sprintf.texi: Update.
59909         * doc/functions/vfprintf.texi: Update.
59910         * doc/functions/vprintf.texi: Update.
59911         * doc/functions/vsnprintf.texi: Update.
59912         * doc/functions/vsprintf.texi: Update.
59913         Reported by Eric Blake.
59914
59915 2007-05-06  Bruno Haible  <bruno@clisp.org>
59916
59917         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59918         padding ourselves for the floating-point directives.
59919         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59921         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59922         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59923         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59924         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59925         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59926         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59927         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59928         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59929         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59930         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59931         * tests/test-snprintf-posix.h (test_function): Also check the width
59932         and some flags in the %f directive.
59933         * tests/test-sprintf-posix.h (test_function): Likewise.
59934         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59935         * tests/test-vasprintf-posix.c (test_function): Likewise.
59936         * doc/functions/fprintf.texi: Update.
59937         * doc/functions/printf.texi: Update.
59938         * doc/functions/snprintf.texi: Update.
59939         * doc/functions/sprintf.texi: Update.
59940         * doc/functions/vfprintf.texi: Update.
59941         * doc/functions/vprintf.texi: Update.
59942         * doc/functions/vsnprintf.texi: Update.
59943         * doc/functions/vsprintf.texi: Update.
59944
59945 2007-05-06  Bruno Haible  <bruno@clisp.org>
59946
59947         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
59948         pass the ' flag character to sprintf or snprintf.
59949         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
59950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
59951         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59952         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
59953         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
59954         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59955         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59956         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59957         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59958         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59960         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59961         * tests/test-snprintf-posix.h (test_function): Also check the grouping
59962         flag.
59963         * tests/test-sprintf-posix.h (test_function): Likewise.
59964         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59965         * tests/test-vasprintf-posix.c (test_function): Likewise.
59966         * doc/functions/fprintf.texi: Update.
59967         * doc/functions/printf.texi: Update.
59968         * doc/functions/snprintf.texi: Update.
59969         * doc/functions/sprintf.texi: Update.
59970         * doc/functions/vfprintf.texi: Update.
59971         * doc/functions/vprintf.texi: Update.
59972         * doc/functions/vsnprintf.texi: Update.
59973         * doc/functions/vsprintf.texi: Update.
59974
59975 2007-05-01  Bruno Haible  <bruno@clisp.org>
59976
59977         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
59978
59979 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
59982         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
59983
59984 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
59985
59986         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
59987         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
59988         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
59989
59990 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
59991
59992         * lib/argp-help.c (struct hol_entry): New member `ord'.
59993         (HOL_ENTRY_PTRCMP): Use ord for comparison
59994         (hol_sort): Initialize ord.
59995
59996 2007-05-01  Bruno Haible  <bruno@clisp.org>
59997
59998         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
59999         Reported by Eric Blake.
60000         * doc/gnulib.texi (Function Substitutes): Update.
60001
60002 2007-05-01  Bruno Haible  <bruno@clisp.org>
60003
60004         * doc/functions.texi: Remove file, now redundant through
60005         doc/functions/*.texi.
60006
60007 2007-05-01  Bruno Haible  <bruno@clisp.org>
60008
60009         * modules/argp (Depends-on): Add sleep.
60010
60011 2007-05-01  Bruno Haible  <bruno@clisp.org>
60012
60013         * modules/sleep-tests: New file.
60014         * tests/test-sleep.c: New file.
60015
60016         * modules/sleep: New file.
60017         * lib/sleep.c: New file.
60018         * m4/sleep.m4: New file.
60019         * lib/unistd_.h (sleep): New declaration.
60020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60021         HAVE_SLEEP.
60022         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60023         * doc/functions/sleep.texi: Document the sleep module.
60024
60025 2007-05-01  Bruno Haible  <bruno@clisp.org>
60026
60027         * lib/sigprocmask.h: Remove file.
60028         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60029         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60030         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60031         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60032         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60033         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60034         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60035         HAVE_SIGSET_T as a shell variable.
60036         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60037         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60038         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60039         (Depends-on): Add signal. Remove verify.
60040         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60041         (Include): Mention <signal.h> instead of sigprocmask.h.
60042         * NEWS: Mention the change.
60043         * lib/fatal-signal.c: Don't include sigprocmask.h.
60044
60045 2007-05-01  Bruno Haible  <bruno@clisp.org>
60046
60047         * modules/signal: New file.
60048         * lib/signal_.h: New file.
60049         * m4/signal_h.m4: New file.
60050
60051 2007-05-01  Bruno Haible  <bruno@clisp.org>
60052
60053         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60054         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60055         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60056         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60057
60058 2007-05-01  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60061         configure time.
60062         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60063         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60064         * modules/sys_stat (Makefile.am): Substitute their values into
60065         sys/stat.h.
60066
60067 2007-05-01  Bruno Haible  <bruno@clisp.org>
60068
60069         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60070         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60071         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60072
60073 2007-05-01  Bruno Haible  <bruno@clisp.org>
60074
60075         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60076         'assert' module here.
60077
60078 2007-05-01  Bruno Haible  <bruno@clisp.org>
60079
60080         * doc/functions/*.texi: New files.
60081         * doc/functions/google-ranking.txt: New file.
60082         * doc/gnulib.texi (Function Substitutes): New chapter.
60083         (ctime, inet_ntoa): Remove sections.
60084         * doc/ctime.texi: Remove file.
60085         * doc/inet_ntoa.texi: Remove file.
60086         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60087         dependencies.
60088         (%.info): New rule, specifying a --reference-limit.
60089
60090 2007-05-01  Bruno Haible  <bruno@clisp.org>
60091
60092         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60093
60094 2007-05-01  Bruno Haible  <bruno@clisp.org>
60095
60096         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60097         the portability of 'mkdir' to mingw systems.
60098
60099 2007-05-01  Bruno Haible  <bruno@clisp.org>
60100
60101         * doc/headers/google-ranking.txt: New file.
60102
60103 2007-04-30  Eric Blake  <ebb9@byu.net>
60104
60105         Prefer fseeko to fseek.
60106         * modules/getpass (Depends-on): Add fseeko.
60107         * lib/getpass.c (getpass): Use fseeko, not fseek.
60108
60109 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60110
60111         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60112         assumes the sorting is stable, while most qsort implementations
60113         are not.  Use argument addresses to ensure they never compare as
60114         equal.
60115
60116         * tests/test-argp-2.sh (usage-indent test): Fix output
60117         (func_compare): Restore diff options
60118         * tests/test-argp.c: Restore #include "progname.h"
60119
60120 2007-04-29  Bruno Haible  <bruno@clisp.org>
60121
60122         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60124         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60126         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60127         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60128         (TESTS, check_PROGRAMS): Add test-snprintf.
60129         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60130         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60131         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60132         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60133         assertions that fail on HP-UX, OSF/1, or IRIX.
60134         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60135
60136 2007-04-29  Bruno Haible  <bruno@clisp.org>
60137
60138         * MODULES.html.sh (posix_functions): Remove 'contents'.
60139
60140 2007-04-29  Karl Berry  <karl@gnu.org>
60141
60142         * config/srclist.txt (gendocs_template_min): new entry.
60143
60144 2007-04-29  Bruno Haible  <bruno@clisp.org>
60145
60146         Work around fpurge bug on BSD systems.
60147         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60148         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60149         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60150         fpurge to rpl_fpurge if the system already has this function.
60151         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60152         the case where the system already has this function. Correct invariants
60153         on BSD systems.
60154         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60155         BSD systems.
60156
60157 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60158
60159         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60160         proposed by Sven Verdoolaege.
60161
60162         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60163         options.
60164         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60165         (usage and help tests): Update
60166
60167 2007-04-29  Bruno Haible  <bruno@clisp.org>
60168
60169         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60170         Print more information in case of failure. Disable a test on BeOS.
60171
60172 2007-04-29  Bruno Haible  <bruno@clisp.org>
60173
60174         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60175         This helps debugging on systems on which no gdb is available.
60176
60177 2007-04-29  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/freading.h: Improve comments.
60180         * lib/fwriting.h: Likewise.
60181         * tests/test-freading.c (main): Don't check freading immediately after
60182         repositioning. Needed for glibc.
60183
60184 2007-04-29  Bruno Haible  <bruno@clisp.org>
60185
60186         * lib/freading.c (freading): Trivial simplification.
60187
60188 2007-04-28  Bruno Haible  <bruno@clisp.org>
60189
60190         * tests/test-fwriting.c (main): Also test the interaction between
60191         fflush and fwriting.
60192         * modules/fwriting-tests (Depends-on): Add fflush.
60193
60194         * tests/test-freading.c (main): Also test the interaction between
60195         fflush and freading.
60196         * modules/freading-tests (Depends-on): Add fflush.
60197
60198 2007-04-28  Bruno Haible  <bruno@clisp.org>
60199
60200         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60201         fseeko and ftello.
60202         Suggested by Eric Blake.
60203
60204 2007-04-28  Jim Meyering  <jim@meyering.net>
60205
60206         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60207         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60208         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60209
60210 2007-04-27  Eric Blake  <ebb9@byu.net>
60211
60212         * doc/headers/assert.texi (assert.h): Document assert module use.
60213
60214 2007-04-27  Bruno Haible  <bruno@clisp.org>
60215
60216         * doc/headers/*.texi: New files.
60217         * doc/gnulib.texi (Header File Substitutes): New chapter.
60218         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60219         dependencies.
60220         (standards.info ,standards.html, standards.dvi): Update dependencies.
60221         (mostlyclean, clean): New targets.
60222
60223 2007-04-27  Bruno Haible  <bruno@clisp.org>
60224
60225         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60226         * modules/sysexits (Files, Makefile.am): Update.
60227
60228         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60229         * modules/sys_socket (Files, Makefile.am): Update.
60230
60231         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60232         * modules/sys_stat (Files, Makefile.am): Update.
60233
60234 2007-04-27  Eric Blake  <ebb9@byu.net>
60235
60236         * lib/freading.h: Improve comments.
60237         * lib/fwriting.h: Likewise.
60238         * lib/fflush.c: Likewise.
60239
60240         Fix closein for mingw.
60241         * modules/closein-tests: Add tests for closein.
60242         * tests/test-closein.c: New file.
60243         * tests/test-closein.sh: Likewise.
60244         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60245         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60246
60247 2007-04-27  Bruno Haible  <bruno@clisp.org>
60248
60249         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60250         version is < 6.
60251         * lib/math_.h [__DECC]: Likewise.
60252         * lib/stdio_.h [__DECC]: Likewise.
60253         * lib/stdlib_.h [__DECC]: Likewise.
60254         * lib/string_.h [__DECC]: Likewise.
60255         * lib/time_.h [__DECC]: Likewise.
60256         * lib/wchar_.h [__DECC]: Likewise.
60257         * lib/wctype_.h [__DECC]: Likewise.
60258
60259 2007-04-27  Bruno Haible  <bruno@clisp.org>
60260
60261         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60262
60263 2007-04-27  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/fflush.c: Add comments.
60266         * modules/fpurge-tests (Depends-on): Add fflush.
60267         * modules/freadable-tests (Depends-on): Likewise.
60268         * modules/fwritable-tests (Depends-on): Likewise.
60269
60270 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60271
60272         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60273         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60274         Report by Bruno Haible <bruno@clisp.org>.
60275
60276 2007-04-26  Eric Blake  <ebb9@byu.net>
60277
60278         Fix fflush on mingw.
60279         * modules/fflush (Depends-on): Add freading.
60280         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60281         but unread data.
60282
60283 2007-04-26  Eric Blake  <ebb9@byu.net>
60284         and Bruno Haible  <bruno@clisp.org>
60285
60286         Implement freading and fwriting.
60287         * lib/freading.c: New file.
60288         * lib/freading.h: Likewise.
60289         * m4/freading.m4: Likewise.
60290         * modules/freading: Likewise.
60291         * modules/freading-tests: Likewise.
60292         * tests/test-freading.c: Likewise.
60293         * lib/fwriting.c: New file.
60294         * lib/fwriting.h: Likewise.
60295         * m4/fwriting.m4: Likewise.
60296         * modules/fwriting: Likewise.
60297         * modules/fwriting-tests: Likewise.
60298         * tests/test-fwriting.c: Likewise.
60299         * MODULES.html.sh (File stream based Input/Output): Mention them.
60300
60301 2007-04-26  Bruno Haible  <bruno@clisp.org>
60302
60303         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60304         'long' when we assume it.
60305         Suggested by Eric Blake.
60306
60307 2007-04-26  Bruno Haible  <bruno@clisp.org>
60308
60309         Ensure fseeko, ftello are declared on glibc systems.
60310         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60311         * modules/fseeko (configure.ac-early): Likewise.
60312         * modules/ftello (configure.ac-early): Likewise.
60313         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60314         AC_FUNC_FSEEKO for this.
60315         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60316         (gl_CHECK_FSEEKO): Remove macro.
60317
60318 2007-04-26  Bruno Haible  <bruno@clisp.org>
60319
60320         * tests/test-fflush.c (main): Also check the ftell result after
60321         fflush and fseek/fseeko.
60322         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60323         file descriptor position cache in the stream.
60324         * lib/fseeko.c (rpl_fseeko): Likewise.
60325
60326 2007-04-26  Bruno Haible  <bruno@clisp.org>
60327
60328         * modules/fflush-tests (Depends-on): Add fseeko.
60329
60330 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60331             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60332
60333         * lib/argz_.h: ensure error_t definition is obtained in same
60334         mechanism system argz.h would have.
60335         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60336         argz facilities are known bad.  Err on the side of caution if
60337         cross-compiling.
60338
60339 2007-04-25  Eric Blake  <ebb9@byu.net>
60340
60341         * lib/fpurge.c (includes): Use stdlib.h for free.
60342         * tests/test-fflush.c (main): Also test fflush-fseeko.
60343
60344 2007-04-25  Bruno Haible  <bruno@clisp.org>
60345
60346         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60347         * lib/fseeko.c: New file.
60348         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60349         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60350         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60351         gl_FUNC_FSEEKO.
60352         (gl_FUNC_FSEEKO): Invoke it.
60353         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60354         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60355         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60356
60357 2007-04-25  Bruno Haible  <bruno@clisp.org>
60358
60359         * modules/fflush (Depends-on): Add ftello.
60360
60361 2007-04-25  Bruno Haible  <bruno@clisp.org>
60362
60363         * modules/ftello-tests: New file.
60364         * tests/test-ftello.c: New file.
60365
60366         * modules/ftello: New file.
60367         * m4/ftello.m4: New file.
60368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60369         HAVE_FTELLO.
60370         * lib/stdio_.h (ftello): New declaration.
60371         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60372         HAVE_FTELLO.
60373
60374 2007-04-25  Bruno Haible  <bruno@clisp.org>
60375
60376         * modules/fseeko-tests: New file.
60377         * tests/test-fseeko.c: New file.
60378
60379         * modules/fseeko: New file.
60380         * m4/fseeko.m4: New file.
60381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60382         HAVE_FSEEKO.
60383         * lib/stdio_.h (fseeko): New declaration.
60384         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60385         HAVE_FSEEKO.
60386
60387 2007-04-25  Bruno Haible  <bruno@clisp.org>
60388
60389         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60390
60391 2007-04-25  Bruno Haible  <bruno@clisp.org>
60392
60393         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60394         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60395         * tests/test-unistd.c: Likewise.
60396         * tests/test-fcntl.c: Likewise.
60397
60398 2007-04-23  Eric Blake  <ebb9@byu.net>
60399
60400         * lib/fflush.c: Fix missing include.
60401         Reported by Bruno Haible.
60402
60403 2007-04-23  Bruno Haible  <bruno@clisp.org>
60404
60405         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60406         Reported by Eric Blake.
60407
60408 2007-04-23  Bruno Haible  <bruno@clisp.org>
60409
60410         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60411
60412 2007-04-23  Bruno Haible  <bruno@clisp.org>
60413
60414         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60415
60416 2007-04-23  Bruno Haible  <bruno@clisp.org>
60417
60418         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60419         Needed on HP-UX 11.
60420
60421 2007-04-16  Eric Blake  <ebb9@byu.net>
60422
60423         Make fflush rely on fpurge.
60424         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60425         open coding all variants.
60426         * modules/fflush (Depends-on): Add fpurge and unistd.
60427         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60428         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60429
60430         Fix --with-tests compilation on cygwin.
60431         * modules/argmatch-tests (Makefile.am): List gnulib library first
60432         in LDADD.
60433         * modules/argp-tests (Makefile.am): Likewise.
60434         * modules/array-list-tests (Makefile.am): Likewise.
60435         * modules/array-oset-tests (Makefile.am): Likewise.
60436         * modules/avltree-list-tests (Makefile.am): Likewise.
60437         * modules/avltree-oset-tests (Makefile.am): Likewise.
60438         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60439         * modules/carray-list-tests (Makefile.am): Likewise.
60440         * modules/dirname-tests (Makefile.am): Likewise.
60441         * modules/frexp-tests (Makefile.am): Likewise.
60442         * modules/isnanl-tests (Makefile.am): Likewise.
60443         * modules/linked-list-tests (Makefile.am): Likewise.
60444         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60445         * modules/lock-tests (Makefile.am): Likewise.
60446         * modules/rbtree-list-tests (Makefile.am): Likewise.
60447         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60448         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60449         * modules/tls-tests (Makefile.am): Likewise.
60450         * modules/tsearch-tests (Makefile.am): Likewise.
60451         * modules/xvasprintf-tests (Makefile.am): Likewise.
60452
60453         Fix fpurge for cygwin.
60454         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60455         value.
60456         * modules/fpurge-tests (Depends-on): Clean up trash.
60457
60458 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60459
60460         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60461
60462         * m4/autobuild.m4: Re-indent.
60463
60464 2007-04-13  Bruno Haible  <bruno@clisp.org>
60465
60466         * modules/fpurge-tests: New file.
60467         * tests/test-fpurge.c: New file.
60468
60469         * modules/fpurge: New file.
60470         * lib/fpurge.h: New file.
60471         * lib/fpurge.c: New file.
60472         * m4/fpurge.m4: New file.
60473
60474 2007-04-13  Bruno Haible  <bruno@clisp.org>
60475
60476         * modules/fbufmode-tests: New file.
60477         * tests/test-fbufmode.c: New file.
60478
60479         * modules/fbufmode: New file.
60480         * lib/fbufmode.h: New file.
60481         * lib/fbufmode.c: New file.
60482         * m4/fbufmode.m4: New file.
60483
60484 2007-04-13  Bruno Haible  <bruno@clisp.org>
60485
60486         * modules/fwritable-tests: New file.
60487         * tests/test-fwritable.c: New file.
60488
60489         * modules/fwritable: New file.
60490         * lib/fwritable.h: New file.
60491         * lib/fwritable.c: New file.
60492         * m4/fwritable.m4: New file.
60493
60494 2007-04-13  Bruno Haible  <bruno@clisp.org>
60495
60496         * modules/freadable-tests: New file.
60497         * tests/test-freadable.c: New file.
60498
60499         * modules/freadable: New file.
60500         * lib/freadable.h: New file.
60501         * lib/freadable.c: New file.
60502         * m4/freadable.m4: New file.
60503
60504 2007-04-13  Bruno Haible  <bruno@clisp.org>
60505
60506         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60507         MOSTLYCLEANFILES.
60508
60509 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60512         gzip bootstrap.conf to avoid dragging in i18n machinery.
60513         (gnulib_tool_option): Use it.
60514
60515 2007-04-13  Bruno Haible  <bruno@clisp.org>
60516
60517         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60518         %F directives.
60519         * tests/test-vasprintf-posix.c (test_function): Likewise.
60520         * tests/test-snprintf-posix.h (test_function): Likewise.
60521         * tests/test-sprintf-posix.h (test_function): Likewise.
60522         * tests/test-fprintf-posix.h (test_function): Likewise.
60523         * tests/test-printf-posix.h (test_function): Likewise.
60524         * tests/test-fprintf-posix.out: Likewise.
60525
60526 2007-04-13  Bruno Haible  <bruno@clisp.org>
60527
60528         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60529         * modules/tls-tests (configure.ac): Likewise.
60530         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60531
60532 2007-04-13  Bruno Haible  <bruno@clisp.org>
60533
60534         * lib/tls.c (glthread_tls_get): Fix return type.
60535         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60536
60537 2007-04-12  Eric Blake  <ebb9@byu.net>
60538
60539         * modules/gettime (Depends-on): Remove gettime.
60540         Reported by Dmitry V. Levin.
60541
60542 2007-04-12  Bruno Haible  <bruno@clisp.org>
60543
60544         * modules/fflush (Include): Mention <stdio.h>.
60545         * modules/strtoimax (Include): Mention <inttypes.h>.
60546         * modules/strtoumax (Include): Likewise.
60547
60548 2007-04-12  Eric Blake  <ebb9@byu.net>
60549
60550         * .cvsignore: New file.
60551         * .gitignore: Likewise.
60552
60553 2007-04-12  Bruno Haible  <bruno@clisp.org>
60554
60555         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60556         not before, since $(LDADD) often contains libgnu.a.
60557         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60558         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60559         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60560         Needed on Cygwin.
60561
60562 2007-04-12  Eric Blake  <ebb9@byu.net>
60563
60564         Work around glibc's failure to flush stdin on fclose.
60565         * lib/closein.c (close_stdin): Flush stdin before closing.
60566
60567         Work around glibc's failure to reset seekable stdin on exit.
60568         * modules/closein: New module.
60569         * lib/closein.c: New file.
60570         * lib/closein.h: Likewise.
60571         * m4/closein.m4: Likewise.
60572         * MODULES.html.sh (File stream based Input/Output): Document it.
60573
60574 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60575
60576         * gnulib-tool: Rename generated 'autobuild' script to
60577         'do-autobuild' in --create-megatestdir output.
60578
60579         * doc/gnulib.texi (Build robot for gnulib): Fix.
60580
60581 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60582
60583         * modules/sysexits (Depends-on): Add absolute-header.
60584
60585 2007-04-12  Eric Blake  <ebb9@byu.net>
60586
60587         No need to preserve errno on success.
60588         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60589         Reported by Bruno Haible.
60590
60591 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60592
60593         * MODULES.html.sh (Support for maintaining and releasing
60594         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60595
60596 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60597
60598         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60599
60600 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60601
60602         * modules/autobuild: New module.
60603
60604         * m4/autobuild.m4: New file.
60605
60606 2007-04-11  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60609         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60610         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60612         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_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/snprintf-posix.m4 (gl_FUNC_SNPRINTF_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/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60625         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60626         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60627         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60628         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60629         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60630         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60631         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60632         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60633         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60634         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60635         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60636         Reported by Eric Blake.
60637
60638 2007-04-11  Bruno Haible  <bruno@clisp.org>
60639
60640         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60641
60642 2007-04-10  Bruno Haible  <bruno@clisp.org>
60643
60644         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60645         for NaN and Infinity. Needed on FreeBSD 6.1.
60646         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60647         regarding results for "%010a" of Infinity and NaN.
60648         * tests/test-vasprintf-posix.c (test_function): Likewise.
60649         * tests/test-snprintf-posix.h (test_function): Likewise.
60650         * tests/test-sprintf-posix.h (test_function): Likewise.
60651         * tests/test-fprintf-posix.h (test_function): Likewise.
60652         * tests/test-printf-posix.h (test_function): Likewise.
60653         * tests/test-fprintf-posix.out: Likewise.
60654
60655 2007-04-10  Bruno Haible  <bruno@clisp.org>
60656
60657         * modules/locale-tests: New file.
60658         * tests/test-locale.c: New file.
60659
60660         * modules/locale: New file.
60661         * lib/locale_.h: New file.
60662         * m4/locale_h.m4: New file.
60663
60664 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60665             Bruno Haible  <bruno@clisp.org>
60666
60667         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60668         be determined, test for availability of the copysignf, copysign,
60669         copysignl functions.
60670         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60671         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60672         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60673
60674 2007-04-09  Eric Blake  <ebb9@byu.net>
60675
60676         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60677         * modules/stdio (Makefile.am): Support fflush.
60678         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60679         * modules/fflush: New file.
60680         * lib/fflush.c: Likewise.
60681         * m4/fflush.m4: Likewise.
60682         * modules/fflush-tests: New test.
60683         * tests/test-fflush.c: Likewise.
60684         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60685
60686 2007-04-06  Bruno Haible  <bruno@clisp.org>
60687
60688         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60689         (VASNPRINTF): Use signbit for faster determination whether to print a
60690         minus sign.
60691         * modules/vasnprintf (Files): Remove lib/float+.h.
60692         * modules/fprintf-posix (Depends-on): Add signbit.
60693         * modules/snprintf-posix (Depends-on): Likewise.
60694         * modules/sprintf-posix (Depends-on): Likewise.
60695         * modules/vasnprintf-posix (Depends-on): Likewise.
60696         * modules/vasprintf-posix (Depends-on): Likewise.
60697         * modules/vfprintf-posix (Depends-on): Likewise.
60698         * modules/vsnprintf-posix (Depends-on): Likewise.
60699         * modules/vsprintf-posix (Depends-on): Likewise.
60700
60701 2007-04-06  Bruno Haible  <bruno@clisp.org>
60702
60703         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60704         * tests/test-frexpl.c (main): Likewise.
60705         * tests/test-ldexpl.c (main): Likewise.
60706         * modules/frexp-tests (Depends-on): Add signbit.
60707         * modules/frexpl-tests (Depdends-on): Likewise.
60708         * modules/ldexpl-tests (Depdends-on): Likewise.
60709
60710 2007-04-06  Bruno Haible  <bruno@clisp.org>
60711
60712         * modules/signbit-tests: New file.
60713         * tests/test-signbit.c: New file.
60714
60715         * modules/signbit: New file.
60716         * lib/signbitf.c: New file.
60717         * lib/signbitd.c: New file.
60718         * lib/signbitl.c: New file.
60719         * m4/signbit.m4: New file.
60720         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60721         (signbit): New macro.
60722         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60723         REPLACE_SIGNBIT.
60724         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60725         REPLACE_FREXPL into math.h.
60726
60727 2007-04-06  Bruno Haible  <bruno@clisp.org>
60728
60729         * modules/isnanf-nolibm-tests: New file.
60730         * tests/test-isnanf.c: New file.
60731
60732         * modules/isnanf-nolibm: New file.
60733         * lib/isnanf.h: New file.
60734         * lib/isnanf.c: New file.
60735         * lib/isnan.c: Consider the USE_FLOAT macro.
60736         * m4/isnanf.m4: New file.
60737
60738 2007-04-06  Bruno Haible  <bruno@clisp.org>
60739
60740         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60741         (Link): New section.
60742
60743         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60744
60745 2007-04-06  Bruno Haible  <bruno@clisp.org>
60746
60747         Assume the 'long double' type.
60748         * m4/longdouble.m4: Remove file.
60749         * config/srclist.txt: Don't mention longdouble.m4.
60750         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60751         * lib/float+.h: Likewise.
60752         * lib/frexp.c: Likewise.
60753         * lib/printf-args.h: Likewise.
60754         * lib/printf-args.c: Likewise.
60755         * lib/printf-frexp.c: Likewise.
60756         * lib/printf-parse.c: Likewise.
60757         * lib/vasnprintf.c: Likewise.
60758         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60759         * m4/intl.m4: Likewise.
60760         * m4/isnanl.m4: Likewise.
60761         * m4/printf.m4: Likewise.
60762         * m4/printf-frexpl.m4: Likewise.
60763         * m4/vasnprintf.m4: Likewise.
60764         * modules/allocsa (Files): Remove m4/longdouble.m4.
60765         * modules/gettext (Files): Likewise.
60766         * modules/relocatable-prog-wrapper (Files): Likewise.
60767         * modules/vasnprintf (Files): Likewise.
60768         * modules/isnanl (Files): Likewise.
60769         (Include): Simplify.
60770         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60771         (Include): Simplify.
60772         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60773         (Include): Simplify.
60774         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60775         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60776         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60777         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60778         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60779         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60780         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60781         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60782         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60783         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60784         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60785         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60786         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60787         * tests/test-isnanl.c: Likewise.
60788         * tests/test-snprintf-posix.h: Likewise.
60789         * tests/test-sprintf-posix.h: Likewise.
60790         * tests/test-vasnprintf-posix.c: Likewise.
60791         * tests/test-vasnprintf-posix2.c: Likewise.
60792         * tests/test-vasprintf-posix.c: Likewise.
60793
60794 2007-04-06  Bruno Haible  <bruno@clisp.org>
60795
60796         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60797         * lib/math_.h [__DECC]: Include the overridden include file through
60798         #include_next, outside the double-inclusion guard.
60799         * lib/stdio_.h [__DECC]: Likewise.
60800         * lib/stdlib_.h [__DECC]: Likewise.
60801         * lib/string_.h [__DECC]: Likewise.
60802         * lib/time_.h [__DECC]: Likewise.
60803         * lib/wchar_.h [__DECC]: Likewise.
60804         * lib/wctype_.h [__DECC]: Likewise.
60805         * lib/inttypes_.h [__DECC]: Likewise.
60806         Reported by Albert Chin <china@thewrittenword.com> in
60807         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60808
60809 2007-04-04  Eric Blake  <ebb9@byu.net>
60810
60811         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60812         1.5.x.
60813
60814 2007-04-04  Bruno Haible  <bruno@clisp.org>
60815
60816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60817         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60818
60819 2007-04-04  Bruno Haible  <bruno@clisp.org>
60820
60821         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60822         results for "%010a" of Infinity and NaN.
60823         * tests/test-vasprintf-posix.c (test_function): Likewise.
60824         * tests/test-snprintf-posix.h (test_function): Likewise.
60825         * tests/test-sprintf-posix.h (test_function): Likewise.
60826         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60827         * tests/test-printf-posix.h (test_function): Likewise.
60828         * tests/test-fprintf-posix.out: Update.
60829         Needed for FreeBSD 6.1.
60830
60831 2007-04-04  Bruno Haible  <bruno@clisp.org>
60832
60833         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60834         directly used by the gnulib modules nor by gnulib-tool.
60835
60836 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60837
60838         * DEPENDENCIES: Give overall description of version dependency
60839         desirability.  Use more-typical names for apps.
60840         Add shell, coreutils, diffutils, grep, tar, gzip.
60841
60842 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60843
60844         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60845
60846 2007-04-04  Karl Berry  <karl@gnu.org>
60847
60848         * MODULES.html.sh (func_module): missing '.
60849
60850 2007-04-03  Bruno Haible  <bruno@clisp.org>
60851
60852         * modules/argmatch-tests (Makefile.am): New variable
60853         test_argmatch_LDADD.
60854         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60855         * modules/array-list-tests (Makefile.am): New variable
60856         test_array_list_LDADD.
60857         * modules/array-oset-tests (Makefile.am): New variable
60858         test_array_oset_LDADD.
60859         * modules/avltree-list-tests (Makefile.am): New variable
60860         test_avltree_list_LDADD.
60861         * modules/avltree-oset-tests (Makefile.am): New variable
60862         test_avltree_oset_LDADD.
60863         * modules/avltreehash-list-tests (Makefile.am): New variable
60864         test_avltreehash_list_LDADD.
60865         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60866         test_canonicalize_lgpl_LDADD.
60867         * modules/carray-list-tests (Makefile.am): New variable
60868         test_carray_list_LDADD.
60869         * modules/dirname-tests (Makefile.am): New variable
60870         test_dirname_LDADD.
60871         * modules/linked-list-tests (Makefile.am): New variable
60872         test_linked_list_LDADD.
60873         * modules/linkedhash-list-tests (Makefile.am): New variable
60874         test_linkedhash_list_LDADD.
60875         * modules/rbtree-list-tests (Makefile.am): New variable
60876         test_rbtree_list_LDADD.
60877         * modules/rbtree-oset-tests (Makefile.am): New variable
60878         test_rbtree_oset_LDADD.
60879         * modules/rbtreehash-list-tests (Makefile.am): New variable
60880         test_rbtreehash_list_LDADD.
60881         * modules/xvasprintf-tests (Makefile.am): New variable
60882         test_xvasprintf_LDADD.
60883         Reported by Eric Blake.
60884
60885 2007-04-03  Eric Blake  <ebb9@byu.net>
60886
60887         * DEPENDENCIES: Weaken m4 requirements.
60888
60889 2007-04-03  Bruno Haible  <bruno@clisp.org>
60890
60891         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60892         * modules/isnanl-tests (configure.ac): Likewise.
60893
60894 2007-04-03  Ben Pfaff  <blp@gnu.org>
60895
60896         * modules/iconv_open: Add $(srcdir)/ to source directory
60897         references in Makefile fragments that call gperf, to fix VPATH
60898         builds.
60899
60900 2007-04-03  Bruno Haible  <bruno@clisp.org>
60901
60902         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60903         * lib/ldexpl.c: Undo last change.
60904
60905 2007-04-03  Bruno Haible  <bruno@clisp.org>
60906
60907         * modules/printf-frexpl (Depends-on): Undo last change.
60908         (Files): Add m4/ldexpl.m4.
60909
60910 2007-04-03  Bruno Haible  <bruno@clisp.org>
60911
60912         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60913         * modules/isnanl (Link): New section.
60914
60915         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60916         * modules/frexp (Link): New section.
60917
60918         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60919         * modules/frexpl (Link): New section.
60920
60921         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60922         * modules/ldexpl (Link): New section.
60923
60924 2007-04-03  Bruno Haible  <bruno@clisp.org>
60925
60926         * modules/TEMPLATE-EXTENDED: New file.
60927         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60928
60929 2007-04-03  Bruno Haible  <bruno@clisp.org>
60930
60931         * DEPENDENCIES: New file.
60932         Suggested by Simon Josefsson.
60933
60934 2007-04-03  Bruno Haible  <bruno@clisp.org>
60935
60936         * doc/gnulib.texi: Escape @.
60937
60938 2007-04-03  James Youngman  <jay@gnu.org>
60939         and Paul Eggert  <eggert@cs.ucla.edu>
60940
60941         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
60942         birthtime on all systems that have birthtime, not just those which
60943         use st_birthtimensec rather than st_birthtim.  Putting zero in
60944         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
60945         that the birth time is not available for files on an NFS mount.
60946
60947 2007-04-03  Simon Josefsson  <simon@josefsson.org>
60948
60949         * modules/memxor: Move back from crypto/, suggested by Bruno.
60950         * modules/crypto/hmac-sha1: Fix memxor dependency.
60951
60952         * modules/crypto/gc: Moved from ../.
60953
60954 2007-04-02  Eric Blake  <ebb9@byu.net>
60955
60956         * lib/ldexpl.c (includes): Avoid libm.
60957
60958         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
60959
60960 2007-04-02  Bruno Haible  <bruno@clisp.org>
60961
60962         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
60963         on IRIX.
60964
60965 2007-04-02  Bruno Haible  <bruno@clisp.org>
60966
60967         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
60968         x86 or x86_64 platforms running MacOS X.
60969         Reported by Ryan Schmidt <@ryandesign.com>.
60970
60971 2007-04-02  Bruno Haible  <bruno@clisp.org>
60972
60973         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
60974         i386.
60975
60976 2007-04-01  Simon Josefsson  <simon@josefsson.org>
60977
60978         * modules/crypto/arcfour: Moved from ../.
60979         * modules/crypto/arcfour-tests: Moved from ../.
60980         * modules/crypto/arctwo: Moved from ../.
60981         * modules/crypto/arctwo-tests: Moved from ../.
60982         * modules/crypto/des: Moved from ../.
60983         * modules/crypto/des-tests: Moved from ../.
60984         * modules/crypto/gc-arcfour: Moved from ../.
60985         * modules/crypto/gc-arcfour-tests: Moved from ../.
60986         * modules/crypto/gc-arctwo: Moved from ../.
60987         * modules/crypto/gc-arctwo-tests: Moved from ../.
60988         * modules/crypto/gc-des: Moved from ../.
60989         * modules/crypto/gc-des-tests: Moved from ../.
60990         * modules/crypto/gc-hmac-md5: Moved from ../.
60991         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
60992         * modules/crypto/gc-hmac-sha1: Moved from ../.
60993         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
60994         * modules/crypto/gc-md2: Moved from ../.
60995         * modules/crypto/gc-md2-tests: Moved from ../.
60996         * modules/crypto/gc-md4: Moved from ../.
60997         * modules/crypto/gc-md4-tests: Moved from ../.
60998         * modules/crypto/gc-md5: Moved from ../.
60999         * modules/crypto/gc-md5-tests: Moved from ../.
61000         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61001         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61002         * modules/crypto/gc-random: Moved from ../.
61003         * modules/crypto/gc-rijndael: Moved from ../.
61004         * modules/crypto/gc-rijndael-tests: Moved from ../.
61005         * modules/crypto/gc-sha1: Moved from ../.
61006         * modules/crypto/gc-sha1-tests: Moved from ../.
61007         * modules/crypto/gc-tests: Moved from ../.
61008         * modules/crypto/hmac-md5: Moved from ../.
61009         * modules/crypto/hmac-md5-tests: Moved from ../.
61010         * modules/crypto/hmac-sha1: Moved from ../.
61011         * modules/crypto/hmac-sha1-tests: Moved from ../.
61012         * modules/crypto/md2: Moved from ../.
61013         * modules/crypto/md2-tests: Moved from ../.
61014         * modules/crypto/md4: Moved from ../.
61015         * modules/crypto/md4-tests: Moved from ../.
61016         * modules/crypto/md5: Moved from ../.
61017         * modules/crypto/md5-tests: Moved from ../.
61018         * modules/crypto/memxor: Moved from ../.
61019         * modules/crypto/rijndael: Moved from ../.
61020         * modules/crypto/rijndael-tests: Moved from ../.
61021         * modules/crypto/sha1: Moved from ../.
61022
61023 2007-03-30  James Youngman  <jay@gnu.org>
61024
61025         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61026         rename() to change the ctime of a file (because ctime is unaffected
61027         by rename on jfs2 on AIX 5.1).
61028         (main): Start by doing cleanup, in case a previous run failed leaving
61029         test files behind.
61030
61031 2007-03-31  Bruno Haible  <bruno@clisp.org>
61032
61033         Support old proprietary implementations of iconv.
61034         * modules/iconv_open: New file.
61035         * lib/iconv_.h: New file.
61036         * m4/iconv_h.m4: New file.
61037         * lib/iconv_open.c: New file.
61038         * lib/iconv_open-aix.gperf: New file.
61039         * lib/iconv_open-hpux.gperf: New file.
61040         * lib/iconv_open-irix.gperf: New file.
61041         * lib/iconv_open-osf.gperf: New file.
61042         * m4/iconv_open.m4: New file.
61043         * modules/linebreak (Depends-on): Add iconv_open.
61044         * modules/striconv (Depends-on): Likewise.
61045         * modules/striconveh (Depends-on): Likewise.
61046         * modules/unicodeio (Depends-on): Likewise.
61047         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61048         (iconv_t)(-1).
61049         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61050         conversion if cd is (iconv_t)(-1).
61051         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61052         is not possible.
61053
61054 2007-03-31  Bruno Haible  <bruno@clisp.org>
61055
61056         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61057         work on Solaris either. Protect also second use of "autodetect_jp".
61058
61059 2007-03-31  Bruno Haible  <bruno@clisp.org>
61060
61061         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61062         the function is not present.
61063
61064 2007-03-31  Bruno Haible  <bruno@clisp.org>
61065
61066         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61067         the function is not present.
61068
61069 2007-03-31  Bruno Haible  <bruno@clisp.org>
61070
61071         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61072         a bug in HP-UX iconv_open().
61073
61074 2007-03-31  Bruno Haible  <bruno@clisp.org>
61075
61076         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61077         (Mathematics <math.h>): New section, add fpieee.
61078         (Input/output <stdio.h>): Add fseterr.
61079         (Mathematics <math.h>): New section, add printf-frexp.
61080         (Container data structures): Add sublist.
61081         (Core language properties): Add fpucw, inline.
61082         (Functions for greatest-width integer types <inttypes.h>): Add
61083         imaxabs, imaxdiv, inttypes.
61084         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61085         isnanl-nolibm, ldexp.
61086         (Mathematics <math.h>): New section, add printf-frexpl.
61087         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61088         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61089         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61090         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61091         (Unicode string functions): Add unistr/u*-mbtoucr.
61092         (Java): Add javacomp-script, javaexec-script.
61093         (C#): Add csharpcomp-script, csharpexec-script.
61094         (Support for building libraries and executables): Add havelib,
61095         relocatable-*.
61096         (Support for maintaining and releasing projects): Renamed from
61097         'Support for maintaining and release projects'. Add announce-gen.
61098
61099 2007-03-31  Bruno Haible  <bruno@clisp.org>
61100
61101         * README: Talk primarily about git.
61102         (git and CVS): Renamed from CVS.
61103         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61104         gnulib is available through git.
61105         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61106
61107 2007-03-30  Bruno Haible  <bruno@clisp.org>
61108
61109         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61110         * lib/poll_.h: Likewise.
61111         * lib/stat_.h: Likewise.
61112         * lib/sys_time_.h: Likewise.
61113         * lib/sysexit_.h: Likewise.
61114         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61115         * lib/stdbool_.h: Likewise.
61116         * lib/byteswap_.h: Add double-inclusion guard.
61117
61118 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61119
61120         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61121
61122 2007-03-30  Karl Berry  <karl@gnu.org>
61123
61124         * config/srclist-update: double space after USA in the license
61125         substitution, since that's how it's usually (?) written.
61126
61127 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61128
61129         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61130         reported by Bruno Haible.
61131
61132 2007-03-29  Bruno Haible  <bruno@clisp.org>
61133
61134         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61135         a bug in AIX iconv().
61136
61137 2007-03-29  Bruno Haible  <bruno@clisp.org>
61138
61139         * modules/ldexpl-tests: New file.
61140         * tests/test-ldexpl.c: New file.
61141
61142 2007-03-29  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/ldexpl.c: Include fpucw.h.
61145         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61146         multiplication.
61147         * modules/ldexpl (Depends-on): Add fpucw.
61148
61149 2007-03-29  Bruno Haible  <bruno@clisp.org>
61150
61151         * modules/ldexpl: New file.
61152         * m4/ldexpl.m4: New file.
61153         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61154         set.
61155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61156         REPLACE_LDEXPL.
61157         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61158         REPLACE_LDEXPL.
61159         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61160         gl_FUNC_LDEXPL_WORKS.
61161         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61162         * modules/mathl (Files): Remove lib/ldexpl.c.
61163         (Depends-on): Add ldexpl.
61164
61165 2007-03-29  Bruno Haible  <bruno@clisp.org>
61166
61167         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61168
61169 2007-03-29  Bruno Haible  <bruno@clisp.org>
61170
61171         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61172         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61173         and possibly also HP-UX.
61174         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61175         work on AIX, IRIX, HP-UX, OSF/1.
61176         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61177         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61178         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61179         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61180         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61181         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61182
61183 2007-03-29  Bruno Haible  <bruno@clisp.org>
61184
61185         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61186
61187 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61188
61189         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61190         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61191
61192 2007-03-29  Eric Blake  <ebb9@byu.net>
61193
61194         * lib/acl-internal.h: Remove redundant include.
61195         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61196         Cygwin when a file is locked.
61197
61198 2007-03-29  Bruno Haible  <bruno@clisp.org>
61199
61200         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61201         file.
61202         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61203
61204 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61205
61206         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61207         try to remove a parent directory if the child couldn't be removed
61208         (except for the first rmdir, which could fail because the child
61209         doesn't exist).  Problem reported by Jeff Blaine in
61210         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61211
61212 2007-03-28  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/striconveh.c (utf8conv_carefully): New function.
61215         (mem_cd_iconveh_internal): Invoke it.
61216
61217 2007-03-28  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61220         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61221         input.
61222         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61223         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61224         unistr/u8-uctomb.
61225
61226 2007-03-28  Bruno Haible  <bruno@clisp.org>
61227
61228         * modules/unistr/u8-mbtoucr: New file.
61229         * lib/unistr/u8-mbtoucr.c: New file.
61230         * modules/unistr/u16-mbtoucr: New file.
61231         * lib/unistr/u16-mbtoucr.c: New file.
61232         * modules/unistr/u16-mbtoucr: New file.
61233         * lib/unistr/u16-mbtoucr.c: New file.
61234         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61235
61236 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61237             Bruno Haible  <bruno@clisp.org>
61238
61239         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61240         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61241         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61242
61243         * m4/stdio_h.m4: Add stubs for vasprintf too.
61244
61245         * modules/stdio: Support vasprintf in sed command.
61246
61247         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61248         vasprintf.h.  Add stdio module indicator.
61249
61250         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61251         vasprintf.h.
61252
61253         * lib/vasprintf.h: File removed.
61254
61255         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61256         * lib/vasprintf.c: Ditto.
61257         * lib/xvasprintf.c: Ditto.
61258         * tests/test-vasprintf-posix.c: Ditto.
61259         * tests/test-vasprintf.c: Ditto.
61260
61261 2007-03-27  Bruno Haible  <bruno@clisp.org>
61262
61263         Make vasnprintf multithread-safe.
61264         * lib/vasnprintf.c (decimal_point_char): New function.
61265         (VASNPRINTF): Use it.
61266         Suggested by Simon Josefsson.
61267
61268 2007-03-27  Eric Blake  <ebb9@byu.net>
61269
61270         Support sub-second birthtime on cygwin.
61271         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61272         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61273         (get_stat_birthtime): Also work with st_birthtim.
61274
61275 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61276
61277         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61278         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61279         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61280         (get_stat_birthtime_ns): Simplify compile-time tests.
61281         (get_stat_birthtime): Change the API to look like
61282         get_stat_mtime etc., except return a negative tv_nsec on error.
61283         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61284         Don't check for "spare" fields.
61285         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61286         or for struct stat.st_birthtime, as these tests aren't used.
61287         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61288
61289 2007-03-27  Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/stat-time.h: Include <sys/stat.h>.
61292
61293 2007-03-27  James Youngman  <jay@gnu.org>
61294
61295         * lib/stat-time.h (get_stat_birthtime): New function for
61296           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61297         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61298           and its variants.
61299         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61300         * modules/stat-time-test: New file.
61301         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61302
61303 2007-03-26  Bruno Haible  <bruno@clisp.org>
61304
61305         Better support of signalling NaNs.
61306         * lib/atanl.c: Include isnanl.h.
61307         (atanl): Perform test for NaN at the beginning of the function and
61308         through a call to isnanl.
61309         * lib/cosl.c: Include isnanl.h.
61310         (cosl): Perform test for NaN at the beginning of the function and
61311         through a call to isnanl.
61312         * lib/ldexpl.c: Include isnanl.h.
61313         (ldexpl): Perform test for NaN through a call to isnanl.
61314         * lib/logl.c: Include isnanl.h.
61315         (logl): Perform test for NaN at the beginning of the function and
61316         through a call to isnanl.
61317         * lib/sinl.c: Include isnanl.h.
61318         (sinl): Perform test for NaN at the beginning of the function and
61319         through a call to isnanl.
61320         * lib/sqrtl.c: Include isnanl.h.
61321         (sqrtl): Perform test for NaN at the beginning of the function and
61322         through a call to isnanl.
61323         * lib/tanl.c: Include isnanl.h.
61324         (tanl): Perform test for NaN at the beginning of the function and
61325         through a call to isnanl.
61326         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61327         * modules/mathl (Depends-on): Add isnanl.
61328
61329 2007-03-26  Eric Blake  <ebb9@byu.net>
61330
61331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61332         regression in logic sense of previous patch.
61333
61334 2007-03-26  Bruno Haible  <bruno@clisp.org>
61335
61336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61337         unportable shell command "if ! ...".
61338         Reported by Ralf Wildenhues.
61339
61340 2007-03-25  Bruno Haible  <bruno@clisp.org>
61341
61342         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61343         <sysexits.h> file, and only add EX_CONFIG.
61344         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61345         absolute file name and whether it is sufficient. Substitute also
61346         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61347         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61348         ABSOLUTE_SYSEXITS_H into sysexits.h.
61349
61350 2007-03-25  Bruno Haible  <bruno@clisp.org>
61351
61352         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61353         hints is NULL.
61354
61355 2007-03-25  Bruno Haible  <bruno@clisp.org>
61356
61357         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61358         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61359
61360 2007-03-25  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/vasnprintf.c: Include langinfo.h.
61363         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61364         multithread-safe.
61365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61366         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61368         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61374         Reported by Simon Josefsson.
61375
61376 2007-03-25  Bruno Haible  <bruno@clisp.org>
61377
61378         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61379         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61380         * modules/vasnprintf (Depends-on): Add stdint.
61381
61382 2007-03-25  Bruno Haible  <bruno@clisp.org>
61383
61384         * modules/fpieee: New file.
61385         * m4/fpieee.m4: New file.
61386         * modules/isnan-nolibm (Depends-on): Add fpieee.
61387         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61388         * modules/isnanl (Depends-on): Add fpieee.
61389
61390 2007-03-25  Bruno Haible  <bruno@clisp.org>
61391
61392         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61393
61394 2007-03-25  Bruno Haible  <bruno@clisp.org>
61395
61396         Avoid test failures on IRIX 6.5.
61397         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61398         (main): Use it.
61399         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61400         macros.
61401         (main): Use them.
61402
61403 2007-03-25  Bruno Haible  <bruno@clisp.org>
61404
61405         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61406         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61407         exists but doesn't work.
61408         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61409         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61411         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61412         math.h.
61413
61414 2007-03-25  Bruno Haible  <bruno@clisp.org>
61415
61416         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61417         returns inf. Needed on IRIX 6.5.
61418
61419 2007-03-25  Bruno Haible  <bruno@clisp.org>
61420
61421         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61422         (main): Use isnanl instead of x != x idiom.
61423         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61424
61425         * tests/test-frexp.c: Include isnan.h.
61426         (main): Use isnan instead of x != x idiom.
61427         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61428
61429 2007-03-25  Bruno Haible  <bruno@clisp.org>
61430
61431         * tests/test-frexp.c (NaN): New function/macro.
61432         (main): Use it instead of 0.0 / 0.0.
61433         * tests/test-isnan.c (NaN): New function/macro.
61434         (main): Use it instead of 0.0 / 0.0.
61435         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61436         (test_function): Use it instead of 0.0 / 0.0.
61437         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61438         (test_function): Use it instead of 0.0 / 0.0.
61439         * tests/test-snprintf-posix.h (NaN): New function/macro.
61440         (test_function): Use it instead of 0.0 / 0.0.
61441         * tests/test-sprintf-posix.h (NaN): New function/macro.
61442         (test_function): Use it instead of 0.0 / 0.0.
61443         * tests/test-fprintf-posix.h (NaN): New function/macro.
61444         (test_function): Use it instead of 0.0 / 0.0.
61445         * tests/test-printf-posix.h (NaN): New function/macro.
61446         (test_function): Use it instead of 0.0 / 0.0.
61447
61448         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61449
61450 2007-03-25  Bruno Haible  <bruno@clisp.org>
61451
61452         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61453
61454 2007-03-25  Bruno Haible  <bruno@clisp.org>
61455
61456         * lib/regexec.c (merge_state_with_log): Make static.
61457
61458 2007-03-25  Bruno Haible  <bruno@clisp.org>
61459
61460         * lib/trigl.c (kernel_rem_pio2): Make static.
61461
61462 2007-03-25  Bruno Haible  <bruno@clisp.org>
61463
61464         * lib/sincosl.c (sincosl_table): Make static.
61465
61466 2007-03-25  Bruno Haible  <bruno@clisp.org>
61467
61468         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61469         if the compiler does not support C99.
61470
61471 2007-03-25  Bruno Haible  <bruno@clisp.org>
61472
61473         * modules/time (Makefile.am): Ensure all rule action lines start with a
61474         tab.
61475
61476 2007-03-24  Bruno Haible  <bruno@clisp.org>
61477
61478         * modules/tsearch-tests: New file.
61479         * tests/test-tsearch.sh: New file.
61480         * tests/test-tsearch.c: New file, mostly copied from glibc.
61481
61482         * modules/search-tests: New file.
61483         * tests/test-search.c: New file.
61484
61485         * modules/search: New file.
61486         * lib/search_.h: New file, incorporating lib/tsearch.h.
61487         * m4/search_h.m4: New file.
61488         * lib/tsearch.h: Remove file.
61489         * lib/tsearch.c: Include search.h instead of tsearch.h.
61490         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61491         HAVE_TSEARCH.
61492         * modules/tsearch (Files): Remove lib/tsearch.h.
61493         (Depends-on): Add search.
61494         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61495         (Include): Change tsearch.h into search.h.
61496
61497 2007-03-24  Bruno Haible  <bruno@clisp.org>
61498
61499         * modules/fpucw: New file.
61500         * lib/fpucw.h: New file.
61501         * lib/frexp.c: Include fpucw.h.
61502         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61503         (FUNC): Use them.
61504         * lib/printf-frexp.c: Include fpucw.h.
61505         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61506         (FUNC): Use them.
61507         * lib/vasnprintf.c: Include fpucw.h.
61508         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61509         'long double' calculations.
61510         * tests/test-frexpl.c: Include fpucw.h.
61511         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61512         * tests/test-printf-frexpl.c: Include fpucw.h.
61513         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61514         * modules/frexpl (Depends-on): Add fpucw.
61515         * modules/printf-frexpl (Depends-on): Likewise.
61516         * modules/fprintf-posix (Depends-on): Likewise.
61517         * modules/snprintf-posix (Depends-on): Likewise.
61518         * modules/sprintf-posix (Depends-on): Likewise.
61519         * modules/vasnprintf-posix (Depends-on): Likewise.
61520         * modules/vasprintf-posix (Depends-on): Likewise.
61521         * modules/vfprintf-posix (Depends-on): Likewise.
61522         * modules/vsnprintf-posix (Depends-on): Likewise.
61523         * modules/vsprintf-posix (Depends-on): Likewise.
61524         * modules/frexpl-tests (Depends-on): Likewise.
61525         * modules/printf-frexpl-tests (Depends-on): Likewise.
61526
61527 2007-03-24  Bruno Haible  <bruno@clisp.org>
61528
61529         * lib/float+.h: New file.
61530         * lib/isnan.c: Include float+.h.
61531         (SIZE): New macro.
61532         (FUNC): Compare only SIZE bytes of the value.
61533         * lib/vasnprintf.c: Include float+.h.
61534         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61535         SIZEOF_LDBL or SIZEOF_DBL bytes.
61536         * modules/isnan-nolibm (Files): Add lib/float+.h.
61537         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61538         * modules/isnanl (Files): Add lib/float+.h.
61539         * modules/vasnprintf (Files): Add lib/float+.h.
61540
61541 2007-03-24  Bruno Haible  <bruno@clisp.org>
61542
61543         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61544         include isnanl-nolibm.h.
61545
61546 2007-03-24  Bruno Haible  <bruno@clisp.org>
61547
61548         * tests/test-read-file.c (main): Don't produce spurious output for
61549         expected situations. Make the test fail if it encountered unexpected
61550         results.
61551
61552 2007-03-24  Bruno Haible  <bruno@clisp.org>
61553
61554         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61555         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61556
61557 2007-03-24  Bruno Haible  <bruno@clisp.org>
61558
61559         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61560
61561 2007-03-24  Bruno Haible  <bruno@clisp.org>
61562
61563         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61564         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61565
61566         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61567         * modules/utf8-ucs4: Turn into a symbolic link to module
61568         unistr/u8-mbtouc.
61569
61570         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61571         utf8-ucs4-unsafe.
61572         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61573         unistr/u8-mbtouc-unsafe.
61574
61575         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61576         * modules/utf16-ucs4: Turn into a symbolic link to module
61577         unistr/u16-mbtouc.
61578
61579         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61580         utf16-ucs4-unsafe.
61581         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61582         unistr/u16-mbtouc-unsafe.
61583
61584         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61585         * modules/ucs4-utf8: Turn into a symbolic link to module
61586         unistr/u8-ubtomb.
61587
61588         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61589         * modules/ucs4-utf16: Turn into a symbolic link to module
61590         unistr/u16-ubtomb.
61591
61592 2007-03-24  Bruno Haible  <bruno@clisp.org>
61593
61594         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61595         Enable the function only if HAVE_INLINE.
61596         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61597         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61598         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61599         Enable the function only if HAVE_INLINE.
61600         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61601         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61602         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61603         Enable the function only if HAVE_INLINE.
61604         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61605         Enable the function only if HAVE_INLINE.
61606         * modules/utf8-ucs4: Update.
61607         * modules/utf8-ucs4-unsafe: Update.
61608         * modules/utf16-ucs4: Update.
61609         * modules/utf16-ucs4-unsafe: Update.
61610         * modules/ucs4-utf8: Update.
61611         * modules/ucs4-utf16: Update.
61612
61613 2007-03-24  Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/utf8-ucs4.h: Remove file.
61616         * lib/utf8-ucs4-unsafe.h: Remove file.
61617         * lib/utf16-ucs4.h: Remove file.
61618         * lib/utf16-ucs4-unsafe.h: Remove file.
61619         * lib/ucs4-utf8.h: Remove file.
61620         * lib/ucs4-utf16.h: Remove file.
61621         * lib/unistr.h: Include their previous contents.
61622         * m4/utf-ucs4.m4: Remove file.
61623         * m4/ucs4-utf.m4: Remove file.
61624         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61625         (Depends-on): Add unistr/base.
61626         (configure.ac): Remove gl_UTF_UCS4.
61627         (Makefile.am): Update.
61628         (Include): Change to unistr.h.
61629         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61630         (Depends-on): Add unistr/base.
61631         (configure.ac): Remove gl_UTF_UCS4.
61632         (Makefile.am): Update.
61633         (Include): Change to unistr.h.
61634         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61635         (Depends-on): Add unistr/base.
61636         (configure.ac): Remove gl_UTF_UCS4.
61637         (Makefile.am): Update.
61638         (Include): Change to unistr.h.
61639         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61640         (Depends-on): Add unistr/base.
61641         (configure.ac): Remove gl_UTF_UCS4.
61642         (Makefile.am): Update.
61643         (Include): Change to unistr.h.
61644         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61645         (Depends-on): Add unistr/base.
61646         (configure.ac): Remove gl_UCS4_UTF.
61647         (Makefile.am): Update.
61648         (Include): Change to unistr.h.
61649         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61650         (Depends-on): Add unistr/base.
61651         (configure.ac): Remove gl_UCS4_UTF.
61652         (Makefile.am): Update.
61653         (Include): Change to unistr.h.
61654         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61655         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61656         utf8-ucs4-unsafe.h.
61657         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61658         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61659         utf16-ucs4-unsafe.h.
61660         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61661         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61662         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61663         * lib/unistr/u8-strchr.c: Likewise.
61664         * lib/unistr/u8-strrchr.c: Likewise.
61665         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61666         * lib/unistr/u16-strchr.c: Likewise.
61667         * lib/unistr/u16-strrchr.c: Likewise.
61668         * lib/striconveh.c: Update.
61669         * lib/linebreak.c: Update.
61670
61671 2007-03-24  Bruno Haible  <bruno@clisp.org>
61672
61673         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61674         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61675
61676 2007-03-22  Bruno Haible  <bruno@clisp.org>
61677
61678         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61679
61680 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61681
61682         * MODULES.html.sh (File system functions): New module write-any-file.
61683         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61684         * m4/write-any-file.m4: New files.
61685
61686 2007-03-23  Eric Blake  <ebb9@byu.net>
61687
61688         * gnulib-tool: Rearrange space-tab sequences, since some editors
61689         like to eat them.
61690
61691 2007-03-23  Eric Blake  <ebb9@byu.net>
61692
61693         * lib/version-etc.c (version_etc_va): Update license wording to
61694         be more concise.  Recommended by Richard Stallman.
61695
61696 2007-03-22  Bruno Haible  <bruno@clisp.org>
61697
61698         * lib/poll.c (MSG_PEEK): New fallback definition.
61699
61700 2007-03-22  Bruno Haible  <bruno@clisp.org>
61701
61702         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61703         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61704         (main): Update.
61705         Fixes a compilation error on BeOS.
61706
61707 2007-03-22  Bruno Haible  <bruno@clisp.org>
61708
61709         * modules/frexpl-tests: New file.
61710         * tests/test-frexpl.c: New file.
61711
61712         * modules/frexpl: New file.
61713         * m4/frexpl.m4: New file.
61714         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61715         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61717         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61718         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61719         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61720
61721 2007-03-22  Bruno Haible  <bruno@clisp.org>
61722
61723         * lib/frexpl.c: Share code with lib/frexp.c.
61724         * modules/mathl (Files): Add lib/frexp.c.
61725         (Depends-on): Add isnanl-nolibm.
61726
61727 2007-03-22  Bruno Haible  <bruno@clisp.org>
61728
61729         * modules/printf-frexp (Files): Add m4/frexp.m4.
61730         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61731         only if the found frexp function actually works.
61732
61733 2007-03-22  Bruno Haible  <bruno@clisp.org>
61734
61735         * lib/frexp.c: Remove older implementation that uses divisions.
61736
61737 2007-03-21  Bruno Haible  <bruno@clisp.org>
61738
61739         * modules/frexp-tests: New file.
61740         * tests/test-frexp.c: New file.
61741
61742         * modules/frexp: New file.
61743         * lib/frexp.c: New file.
61744         * m4/frexp.m4: New file.
61745         * lib/math_.h (frexp): New declaration.
61746         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61747         REPLACE_FREXP.
61748         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61749
61750 2007-03-21  Bruno Haible  <bruno@clisp.org>
61751
61752         * modules/isnanl-tests: New file.
61753         * tests/test-isnanl.c: New file.
61754
61755         * modules/isnanl: New file.
61756         * lib/isnanl.h: New file.
61757         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61758         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61759         gl_FUNC_ISNANL_WORKS.
61760         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61761         New macros.
61762
61763 2007-03-21  Bruno Haible  <bruno@clisp.org>
61764
61765         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61766         lib/isnanl.h.
61767         (Include): Update.
61768         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61769         * lib/vasnprintf.c: Update.
61770         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61771         tests/test-isnanl.h, remove tests/test-isnanl.c.
61772         (Makefile.am): Update.
61773         * tests/test-isnanl-nolibm.c: New file.
61774         * tests/test-isnanl.h: New file.
61775         * tests/test-isnanl.c: Remove file.
61776
61777 2007-03-21  Jim Meyering  <jim@meyering.net>
61778
61779         When trying to open ".", treat ESTALE like EACCES.
61780         * lib/savewd.c (savewd_save): Resort to forking not just upon
61781         failure with EACCES, but also when errno is ESTALE.
61782
61783 2007-03-20  Bruno Haible  <bruno@clisp.org>
61784
61785         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61786         Needed on AIX 5.1. Reported by Matthew Woehlke.
61787
61788 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61789
61790         Suggestions by Bruno Haible:
61791         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61792         our own.
61793         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61794         * modules/acl (Depends-on): Add gettext.
61795
61796 2007-03-19  Bruno Haible  <bruno@clisp.org>
61797
61798         * modules/iconvme: Remove file.
61799         * lib/iconvme.h: Remove file.
61800         * lib/iconvme.c: Remove file.
61801         * m4/iconvme.m4: Remove file.
61802
61803 2007-03-19  Bruno Haible  <bruno@clisp.org>
61804
61805         * doc/relocatable-maint.texi: Break long shell script line.
61806         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61807
61808 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61809
61810         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61811         handle file_has_acl.
61812         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61813         * lib/acl.c: Move header inclusions and related macro defns into
61814         lib/acl-internal.h.
61815         (S_ISLNK): Remove defn, since that's now done for us.
61816         (file_has_acl): Move to lib/file-has-acl.c.
61817         Call acl_trivial if available.  This is the crucial part of the fix.
61818         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61819         shared within the library.  Rewrite a bit, partly to make it compatible
61820         with the GNU coding style.
61821         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61822         Remove unnecessary double-quotes.
61823         Don't test for acl_to_text; the build will catch that.
61824         Replace acl_entries if it doesn't exist and it is needed.
61825         Check for -lsec and acl_trivial (as used on Solaris 10).
61826         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61827         lib/file-has-acl.c.
61828         (Depends-on): Add sys_stat, for S_ISLNK.
61829
61830 2007-03-19  Ben Pfaff  <blp@gnu.org>
61831
61832         * doc/gnulib.texi: Fix typos.
61833         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61834
61835 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61836
61837         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61838         If size is zero here, buf must be zero.
61839
61840 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61841
61842         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61843         <bruno@clisp.org>.
61844
61845 2007-03-18  Bruno Haible  <bruno@clisp.org>
61846
61847         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61848         Suggested by Eric Blake.
61849
61850 2007-03-18  Ben Pfaff  <blp@gnu.org>
61851
61852         * doc/relocatable.texi: Recommend using as prefix a directory
61853         that does not exist and will never be created.  Based on
61854         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61855         and others.
61856
61857 2007-03-17  Bruno Haible  <bruno@clisp.org>
61858
61859         * lib/fchownat.c: Include lchown.h.
61860
61861 2007-03-17  Bruno Haible  <bruno@clisp.org>
61862
61863         Fix endless loop when the given allocated size was > INT_MAX.
61864         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61865         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61866         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61867         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61868         * lib/sprintf.c (sprintf): Likewise.
61869
61870 2007-03-17  Bruno Haible  <bruno@clisp.org>
61871
61872         * tests/test-argp-2.sh (func_compare): Output a context diff.
61873
61874 2007-03-17  Bruno Haible  <bruno@clisp.org>
61875
61876         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61877         locale's decimal-point character.
61878
61879 2007-03-17  Bruno Haible  <bruno@clisp.org>
61880
61881         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61882         before comparing it. Needed because on some platforms (e.g. x86) a
61883         'long double' occupies less bytes than sizeof (long double).
61884
61885 2007-03-17  Bruno Haible  <bruno@clisp.org>
61886
61887         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61888         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61889         * tests/test-getaddrinfo.c (simple): Likewise.
61890         * tests/test-read-file.c (main): Likewise.
61891
61892 2007-03-17  Bruno Haible  <bruno@clisp.org>
61893
61894         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61895
61896 2007-03-17  Bruno Haible  <bruno@clisp.org>
61897
61898         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61899         unused variable.
61900
61901 2007-03-17  Bruno Haible  <bruno@clisp.org>
61902
61903         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61904         * tests/test-c-strncasecmp.c: Likewise.
61905
61906 2007-03-17  Bruno Haible  <bruno@clisp.org>
61907
61908         * modules/stdlib (Depends-on): Add unistd.
61909         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61910         Needed for MacOS X 10.3.
61911
61912 2007-03-17  Bruno Haible  <bruno@clisp.org>
61913
61914         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61915
61916 2007-03-17  Bruno Haible  <bruno@clisp.org>
61917
61918         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61919
61920 2007-03-17  Bruno Haible  <bruno@clisp.org>
61921
61922         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61923         to reflect files copied from gnulib (with or without modifications).
61924         Suggested by Jim Meyering.
61925
61926 2007-03-17  Eric Blake  <ebb9@byu.net>
61927
61928         * NEWS: Document stdlib change from 2007-02-18.
61929
61930 2007-03-17  Jim Meyering  <jim@meyering.net>
61931
61932         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
61933         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
61934         someone uses a name containing shell meta-characters.
61935         Reported by Alfred M. Szmidt.
61936
61937         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
61938
61939 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61940
61941         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
61942         and copy gettext configuration files only if configure.ac contains
61943         a use of AM_GNU_GETTEXT_VERSION.
61944
61945 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
61946
61947         * build-aux/bootstrap (gnulib_name): New variable.
61948         (gnulib_tool_options): Use it.
61949
61950 2007-03-13  Simon Josefsson  <simon@josefsson.org>
61951
61952         * tests/test-des.c: Use new namespace.
61953
61954 2007-03-15  Bruno Haible  <bruno@clisp.org>
61955
61956         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
61957         Reported by James Youngman <jay@gnu.org>.
61958
61959 2007-03-15  Bruno Haible  <bruno@clisp.org>
61960
61961         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
61962         declared prototype. Needed with cc on OSF/1 5.1.
61963
61964 2007-03-15  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
61967         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
61968         (struct gl_list_implementation): Add dispose_fn argument to the
61969         'create_empty', 'create' methods.
61970         (struct gl_list_impl_base): Add field 'dispose_fn'.
61971         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
61972         argument.
61973         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
61974         dispose_fn argument.
61975         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
61976         dispose_fn on the dropped values.
61977         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
61978         dispose_fn argument.
61979         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
61980         dropped values.
61981         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
61982         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61983         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
61984         (gl_tree_remove_node): Call dispose_fn on the dropped value.
61985         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
61986         argument.
61987         (gl_tree_list_free): Call dispose_fn on the dropped values.
61988         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
61989         the dropped values.
61990         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
61991         Add dispose_fn argument.
61992         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
61993         Call dispose_fn on the dropped values.
61994         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
61995         Add dispose_fn argument.
61996         (gl_sublist_create): Initialize the 'dispose_fn' field.
61997         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
61998         * tests/test-array_list.c (main): Update.
61999         * tests/test-carray_list.c (main): Update.
62000         * tests/test-avltree_list.c (main): Update.
62001         * tests/test-rbtree_list.c (main): Update.
62002         * tests/test-avltreehash_list.c (main): Update.
62003         * tests/test-rbtreehash_list.c (main): Update.
62004         * tests/test-linked_list.c (main): Update.
62005         * tests/test-linkedhash_list.c (main): Update.
62006         * tests/test-array_oset.c (main): Update.
62007
62008 2007-03-15  Bruno Haible  <bruno@clisp.org>
62009
62010         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62011         (gl_oset_create_empty): Add dispose_fn argument.
62012         (struct gl_oset_implementation): Add dispose_fn argument to
62013         'create_empty' method.
62014         (struct gl_oset_impl_base): Add dispose_fn field.
62015         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62016         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62017         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62018         values.
62019         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62020         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62021         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62022         dropped value.
62023         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62024         dropped value.
62025         * tests/test-array_oset.c (main): Update.
62026         * tests/test-avltree_oset.c (main): Update.
62027         * tests/test-rbtree_oset.c (main): Update.
62028         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62029
62030 2007-03-13  Bruno Haible  <bruno@clisp.org>
62031
62032         * tests/test-stdbool.c (i): Update after last patch.
62033
62034 2007-03-12  Bruno Haible  <bruno@clisp.org>
62035
62036         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62037         the iswprint macro. Needed on Solaris 2.5.1.
62038
62039 2007-03-12  Bruno Haible  <bruno@clisp.org>
62040
62041         * tests/test-printf-frexp.c (main): Declare x as volatile.
62042
62043 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62044
62045         * doc/gnulib.texi (Build robot for gnulib): New section.
62046
62047 2007-03-12  Jim Meyering  <jim@meyering.net>
62048
62049         * build-aux/bootstrap: New file.
62050         * build-aux/bootstrap.conf: New file, from coreutils.
62051
62052 2007-03-11  Bruno Haible  <bruno@clisp.org>
62053
62054         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62055
62056 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62057
62058         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62059         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62060         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62061
62062 2007-03-11  Bruno Haible  <bruno@clisp.org>
62063
62064         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62065         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62066
62067 2007-03-11  Bruno Haible  <bruno@clisp.org>
62068
62069         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62070         formula. Needed for SunPRO C 5.0.
62071
62072 2007-03-11  Bruno Haible  <bruno@clisp.org>
62073
62074         * modules/long-options (Depends-on): Add getopt.
62075
62076 2007-03-11  Bruno Haible  <bruno@clisp.org>
62077
62078         * modules/modechange (Depends-on): Add stdbool.
62079
62080 2007-03-11  Bruno Haible  <bruno@clisp.org>
62081
62082         * modules/i-ring (Depends-on): Add stdbool.
62083
62084 2007-03-11  Bruno Haible  <bruno@clisp.org>
62085
62086         * modules/gc-des (Depends-on): Add stdbool.
62087
62088 2007-03-11  Bruno Haible  <bruno@clisp.org>
62089
62090         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62091
62092 2007-03-11  Bruno Haible  <bruno@clisp.org>
62093
62094         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62095
62096 2007-03-11  Bruno Haible  <bruno@clisp.org>
62097
62098         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62099
62100 2007-03-11  Bruno Haible  <bruno@clisp.org>
62101
62102         * lib/vasnprintf.c (sprintf): Undefine.
62103
62104 2007-03-11  Bruno Haible  <bruno@clisp.org>
62105
62106         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62107         initializers in SunPRO C and Compaq C compilers.
62108
62109 2007-03-11  Bruno Haible  <bruno@clisp.org>
62110
62111         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62112         decrementing code ANSI C compliant.
62113
62114 2007-03-11  Bruno Haible  <bruno@clisp.org>
62115
62116         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62117         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62118
62119 2007-03-11  Bruno Haible  <bruno@clisp.org>
62120
62121         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62122         <stdbool.h> substitute doesn't pass.
62123
62124 2007-03-11  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62127
62128 2007-03-11  Bruno Haible  <bruno@clisp.org>
62129
62130         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62131         script, for submission to autobuild.josefsson.org.
62132
62133 2007-03-10  Bruno Haible  <bruno@clisp.org>
62134
62135         * modules/canonicalize-lgpl-tests: New file.
62136         * tests/test-canonicalize-lgpl.sh: New file.
62137         * tests/test-canonicalize-lgpl.c: New file.
62138
62139         * modules/c-strcase-tests: New file.
62140         * tests/test-c-strcase.sh: New file.
62141         * tests/test-c-strcasecmp.c: New file.
62142         * tests/test-c-strncasecmp.c: New file.
62143
62144         * modules/atexit-tests: New file.
62145         * tests/test-atexit.sh: New file.
62146         * tests/test-atexit.c: New file.
62147
62148 2007-03-10  Bruno Haible  <bruno@clisp.org>
62149
62150         * tests/test-binary-io.sh: Use temporary filenames that are not so
62151         likely to clash with those of other tests (in a parallel make).
62152         * tests/test-binary-io.c: Likewise.
62153
62154 2007-03-10  Bruno Haible  <bruno@clisp.org>
62155
62156         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62157         fallback; use #error instead.
62158         Suggested by Simon Josefsson.
62159
62160 2007-03-10  Bruno Haible  <bruno@clisp.org>
62161
62162         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62163         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62164         first and the last.
62165
62166 2007-03-10  Bruno Haible  <bruno@clisp.org>
62167
62168         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62169
62170 2007-03-10  Bruno Haible  <bruno@clisp.org>
62171
62172         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62173         "make distcheck".
62174         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62175         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62176         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62177
62178 2007-03-10  Bruno Haible  <bruno@clisp.org>
62179
62180         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62181         variable.
62182         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62183         variable.
62184
62185 2007-03-09  Eric Blake  <ebb9@byu.net>
62186         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62187
62188         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62189         types are not being provided by gnulib.
62190         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62191         types are supported.
62192
62193 2007-03-10  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/stdio_.h (__attribute__): New macro.
62196         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62197         vsprintf): Specify __attribute__ __format__ for GCC.
62198         Suggested by Eric Blake.
62199
62200 2007-03-09  Bruno Haible  <bruno@clisp.org>
62201
62202         * modules/printf-posix-tests: New file.
62203         * tests/test-printf-posix.sh: New file.
62204         * tests/test-printf-posix.c: New file.
62205
62206         * modules/printf-posix: New file.
62207         * lib/printf.c: New file.
62208         * m4/printf-posix-rpl.m4: New file.
62209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62210         REPLACE_PRINTF.
62211         * lib/stdio_.h (printf): New declaration.
62212         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62213         ____strfmon____): New macros.
62214         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62215         REPLACE_PRINTF.
62216
62217 2007-03-09  Bruno Haible  <bruno@clisp.org>
62218
62219         * tests/test-vasnprintf-posix2.sh: New file.
62220         * tests/test-vasnprintf-posix2.c: New file.
62221         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62222         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62223         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62224
62225         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62226         a locale dependent decimal point, rather than always '.'.
62227
62228 2007-03-09  Eric Blake  <ebb9@byu.net>
62229
62230         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62231         spite of platforms like Tandem/NSK that define it to -1.
62232
62233 2007-03-08  Bruno Haible  <bruno@clisp.org>
62234
62235         * modules/vprintf-posix-tests: New file.
62236         * tests/test-vprintf-posix.sh: New file.
62237         * tests/test-vprintf-posix.c: New file.
62238         * tests/test-printf-posix.h: New file.
62239
62240         * modules/vprintf-posix: New file.
62241         * lib/vprintf.c: New file.
62242         * m4/vprintf-posix.m4: New file.
62243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62244         REPLACE_VPRINTF.
62245         * lib/stdio_.h (vprintf): New declaration.
62246         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62247         REPLACE_VPRINTF.
62248
62249 2007-03-08  Bruno Haible  <bruno@clisp.org>
62250
62251         * modules/fprintf-posix-tests: New file.
62252         * tests/test-fprintf-posix.sh: New file.
62253         * tests/test-fprintf-posix.c: New file.
62254
62255         * modules/fprintf-posix: New file.
62256         * lib/fprintf.c: New file.
62257         * m4/fprintf-posix.m4: New file.
62258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62259         REPLACE_FPRINTF.
62260         * lib/stdio_.h (fprintf): New declaration.
62261         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62262         REPLACE_FPRINTF.
62263
62264 2007-03-08  Bruno Haible  <bruno@clisp.org>
62265
62266         * modules/vfprintf-posix-tests: New file.
62267         * tests/test-vfprintf-posix.sh: New file.
62268         * tests/test-vfprintf-posix.c: New file.
62269         * tests/test-fprintf-posix.h: New file.
62270         * tests/test-fprintf-posix.out: New file.
62271
62272         * modules/vfprintf-posix: New file.
62273         * lib/vfprintf.c: New file.
62274         * m4/vfprintf-posix.m4: New file.
62275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62276         REPLACE_VFPRINTF.
62277         * lib/stdio_.h (vfprintf): New declaration.
62278         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62279         REPLACE_VFPRINTF.
62280
62281 2007-03-08  Bruno Haible  <bruno@clisp.org>
62282
62283         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62284
62285 2007-03-08  Bruno Haible  <bruno@clisp.org>
62286
62287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62288         instead of 'expr' invocations.
62289         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62290         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62291         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62292         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62293         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62294         Suggested by Paul Eggert.
62295
62296 2007-03-08  Bruno Haible  <bruno@clisp.org>
62297
62298         * modules/fseterr-tests: New file.
62299         * tests/test-fseterr.c: New file.
62300
62301         * modules/fseterr: New file.
62302         * lib/fseterr.h: New file.
62303         * lib/fseterr.c: New file.
62304
62305 2007-03-08  Bruno Haible  <bruno@clisp.org>
62306
62307         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62308         * lib/getopt_.h: Likewise.
62309         * lib/mbswidth.h: Likewise.
62310         * lib/setenv.h: Likewise.
62311         * lib/vasnprintf.h: Likewise.
62312         * lib/vasprintf.h: Likewise.
62313         * lib/verror.h: Likewise.
62314         * lib/xsetenv.h: Likewise.
62315         * lib/xvasprintf.h: Likewise.
62316
62317 2007-03-08  Jim Meyering  <jim@meyering.net>
62318
62319         * users.txt: Add parted.
62320
62321         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62322
62323 2007-03-07  Bruno Haible  <bruno@clisp.org>
62324
62325         * m4/printf.m4: Make the shell script snippets copy&pastable.
62326
62327 2007-03-02  Bruno Haible  <bruno@clisp.org>
62328
62329         * lib/netinet_in_.h: New file.
62330         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62331         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62332         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62333         (Depends-on): Add absolute-header.
62334         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62335         into netinet/in.h.
62336
62337 2007-03-03  Bruno Haible  <bruno@clisp.org>
62338
62339         * lib/sys_select_.h: New file.
62340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62341         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62342         * modules/sys_select (Files): Add lib/sys_select_.h.
62343         (Depends-on): Add absolute-header.
62344         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62345         into sys/select.h.
62346
62347 2007-03-02  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62350         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62351         values.
62352         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62353         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62354         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62355         * modules/sys_socket (Depends-on): Add absolute-header.
62356         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62357         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62358         (Include): Remove requirement of inclusion of <sys/types.h>.
62359
62360 2007-03-02  Bruno Haible  <bruno@clisp.org>
62361
62362         * lib/byteswap_.h (bswap_32): Fix formula.
62363
62364 2007-03-06  Bruno Haible  <bruno@clisp.org>
62365
62366         * modules/sprintf-posix-tests: New file.
62367         * tests/test-sprintf-posix.c: New file.
62368
62369         * modules/sprintf-posix: New file.
62370         * lib/sprintf.c: New file.
62371         * m4/sprintf-posix.m4: New file.
62372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62373         REPLACE_SPRINTF.
62374         * lib/stdio_.h (sprintf): New declaration.
62375         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62376         REPLACE_SPRINTF.
62377
62378 2007-03-06  Bruno Haible  <bruno@clisp.org>
62379
62380         * modules/vsprintf-posix-tests: New file.
62381         * tests/test-vsprintf-posix.c: New file.
62382         * tests/test-sprintf-posix.h: New file.
62383
62384         * modules/vsprintf-posix: New file.
62385         * lib/vsprintf.c: New file.
62386         * m4/vsprintf-posix.m4: New file.
62387         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62388         REPLACE_VSPRINTF.
62389         * lib/stdio_.h (vsprintf): New declaration.
62390         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62391         REPLACE_VSPRINTF.
62392
62393 2007-03-06  Bruno Haible  <bruno@clisp.org>
62394
62395         * modules/vsnprintf (Depend-on): Remove minmax.
62396
62397 2007-03-06  Bruno Haible  <bruno@clisp.org>
62398
62399         * modules/snprintf-posix-tests: New file.
62400         * tests/test-snprintf-posix.c: New file.
62401
62402         * modules/snprintf-posix: New file.
62403         * m4/snprintf-posix.m4: New file.
62404         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62405         gl_FUNC_SNPRINTF.
62406         (gl_FUNC_SNPRINTF): Invoke it.
62407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62408         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62409         is set.
62410         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62411
62412 2007-03-06  Bruno Haible  <bruno@clisp.org>
62413
62414         * modules/vsnprintf-posix-tests: New file.
62415         * tests/test-vsnprintf-posix.c: New file.
62416         * tests/test-snprintf-posix.h: New file.
62417
62418         * modules/vsnprintf-posix: New file.
62419         * m4/vsnprintf-posix.m4: New file.
62420         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62421         gl_FUNC_VSNPRINTF.
62422         (gl_FUNC_VSNPRINTF): Invoke it.
62423         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62424         * lib/stdio_.h (vsnprintf): Define as a replacement if
62425         REPLACE_VSNPRINTF is set.
62426         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62427
62428 2007-03-06  Bruno Haible  <bruno@clisp.org>
62429
62430         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62431         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62432
62433 2007-03-06  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62436         (asinl): Declare also if HAVE_DECL_ASINL is set.
62437         (atanl): Declare also if HAVE_DECL_ATANL is set.
62438         (ceill): Declare also if HAVE_DECL_CEILL is set.
62439         (cosl): Declare also if HAVE_DECL_COSL is set.
62440         (expl): Declare also if HAVE_DECL_EXPL is set.
62441         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62442         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62443         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62444         (logl): Declare also if HAVE_DECL_LOGL is set.
62445         (sinl): Declare also if HAVE_DECL_SINL is set.
62446         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62447         (tanl): Declare also if HAVE_DECL_TANL is set.
62448         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62450         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62451         declaration of frexpl, ldexpl.
62452         * modules/printf-frexpl (Depends-on): Add math.
62453         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62454
62455 2007-03-05  Bruno Haible  <bruno@clisp.org>
62456
62457         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62458         frexpl and ldexpl are declared.
62459         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62460
62461 2007-03-05  Bruno Haible  <bruno@clisp.org>
62462
62463         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62464         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62465
62466 2007-03-05  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/stdio_.h: Include <stddef.h>.
62469
62470 2007-03-05  Bruno Haible  <bruno@clisp.org>
62471
62472         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62473
62474 2007-03-05  Bruno Haible  <bruno@clisp.org>
62475
62476         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62477         NetBSD 4, from Ralf Wildenhues.
62478
62479 2007-03-04  Bruno Haible  <bruno@clisp.org>
62480
62481         * lib/vasprintf.h: Update #if logic for the case when the functions
62482         exist but are overridden.
62483
62484 2007-03-04  Bruno Haible  <bruno@clisp.org>
62485
62486         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62487         implementations: glibc-2.4 and MacOS X 10.3.
62488         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62489         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62490         * tests/test-vasprintf-posix.c (test_function): Likewise.
62491
62492 2007-03-04  Bruno Haible  <bruno@clisp.org>
62493
62494         * modules/vasprintf-posix-tests: New file.
62495         * tests/test-vasprintf-posix.c: New file.
62496
62497         * modules/vasprintf-posix: New file.
62498         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62499         defined.
62500         * m4/vasprintf-posix.m4: New file.
62501         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62502         gl_FUNC_VASPRINTF.
62503         (gl_FUNC_VASPRINTF): Invoke it.
62504         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62505         here.
62506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62507
62508 2007-03-04  Bruno Haible  <bruno@clisp.org>
62509
62510         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62511         REPLACE_GETTIMEOFDAY.
62512         * modules/sys_time (Makefile.am): Likewise.
62513         * m4/sys_time_h.m4: Likewise.
62514         * m4/gettimeofday.m4: Likewise.
62515
62516 2007-03-04  Bruno Haible  <bruno@clisp.org>
62517
62518         * modules/vasnprintf-posix-tests: New file.
62519         * tests/test-vasnprintf-posix.c: New file.
62520
62521         * modules/vasnprintf-posix: New file.
62522         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62523         printf-frexpl.h.
62524         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62525         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62526         REPLACE_VASNPRINTF is defined.
62527         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62528         gl_FUNC_VASNPRINTF.
62529         (gl_FUNC_VASNPRINTF): Invoke it.
62530         * m4/vasnprintf-posix.m4: New file.
62531         * m4/printf.m4: New file.
62532
62533 2007-03-04  Bruno Haible  <bruno@clisp.org>
62534
62535         Compile progreloc.c only if --enable-relocatable is specified.
62536         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62537         if --enable-relocatable was specified.
62538         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62539         lib_SOURCES.
62540
62541 2007-03-04  Jim Meyering  <jim@meyering.net>
62542
62543         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62544         Use it consistently, rather than enumerating errno constants.
62545
62546 2007-03-04  Bruno Haible  <bruno@clisp.org>
62547
62548         * modules/xvasprintf-tests: New file.
62549         * tests/test-xvasprintf.c: New file.
62550
62551         * modules/vasprintf-tests: New file.
62552         * tests/test-vasprintf.c: New file.
62553
62554         * modules/vasnprintf-tests: New file.
62555         * tests/test-vasnprintf.c: New file.
62556
62557         * modules/vsnprintf-tests: New file.
62558         * tests/test-vsnprintf.c: New file.
62559
62560         * modules/snprintf-tests: New file.
62561         * tests/test-snprintf.c: New file.
62562
62563 2007-03-04  Bruno Haible  <bruno@clisp.org>
62564
62565         Compile relocatable.c only if --enable-relocatable is specified.
62566         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62567         gl_RELOCATABLE_LIBRARY.
62568         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62569         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62570         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62571         gl_RELOCATABLE_LIBRARY.
62572         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62573         (Makefile.am): Remove lib_SOURCES.
62574         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62575         gl_RELOCATABLE_LIBRARY.
62576         (Makefile.am): Remove lib_SOURCES.
62577         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62578         always.
62579         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62580         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62581
62582 2007-03-04  Bruno Haible  <bruno@clisp.org>
62583
62584         * modules/argmatch-tests: New file.
62585         * tests/test-argmatch.c: New file.
62586
62587         * tests/test-allocsa.c (main): Halve the number of loop runs.
62588
62589         * modules/alloca-opt-tests: New file.
62590         * tests/test-alloca-opt.c: New file.
62591
62592 2007-03-04  Jim Meyering  <jim@meyering.net>
62593
62594         Work around difference between Linux ACLs and Solaris 10 ZFS.
62595         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62596         for EINVAL.
62597
62598 2007-03-03  Bruno Haible  <bruno@clisp.org>
62599
62600         * modules/relocatable-prog (Depends-on): Add back progreloc's
62601         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62602
62603 2007-03-03  Bruno Haible  <bruno@clisp.org>
62604
62605         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62606         * modules/relocatable-lib: New file.
62607
62608 2007-03-03  Bruno Haible  <bruno@clisp.org>
62609
62610         * modules/relocatable-prog: Renamed from modules/relocatable.
62611         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62612
62613 2007-03-03  Bruno Haible  <bruno@clisp.org>
62614
62615         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62616         m4/relocatable-lib.m4.
62617         (Depends-on): Remove 'relocatable'.
62618         (configure.ac): Add gl_RELOCATABLE_NOP.
62619
62620 2007-03-03  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/relocatable-prog-wrapper: New file.
62623         * modules/relocatable (Depends-on): Add it. Remove all other
62624         dependencies except progname.
62625         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62626
62627         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62628         (gl_FUNC_STRERROR): Nop.
62629         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62630
62631         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62632         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62633
62634         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62635         (gl_FUNC_READLINK): Update.
62636
62637         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62638
62639 2007-03-03  Bruno Haible  <bruno@clisp.org>
62640
62641         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62642         * modules/xreadlink (Depends-on): Add unistd.
62643         * modules/xreadlink-with-size (Depends-on): Likewise.
62644
62645 2007-03-03  Bruno Haible  <bruno@clisp.org>
62646
62647         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62648         extracted from gt_FUNC_SETENV.
62649         (gt_FUNC_SETENV): Remove macro.
62650         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62651         remove gt_FUNC_SETENV.
62652
62653 2007-03-03  Bruno Haible  <bruno@clisp.org>
62654
62655         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62656         ENABLE_RELOCATABLE here.
62657         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62658
62659 2007-03-03  Bruno Haible  <bruno@clisp.org>
62660
62661         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62662         * tests/test-rbtreehash_list.c: Include progname.h.
62663         (main): Call set_program_name.
62664
62665         * modules/rbtree-oset-tests (Depends-on): Add progname.
62666         * tests/test-rbtree_oset.c: Include progname.h.
62667         (main): Call set_program_name.
62668
62669         * modules/rbtree-list-tests (Depends-on): Add progname.
62670         * tests/test-rbtree_list.c: Include progname.h.
62671         (main): Call set_program_name.
62672
62673         * modules/linked-list-tests (Depends-on): Add progname.
62674         * tests/test-linked_list.c: Include progname.h.
62675         (main): Call set_program_name.
62676
62677 2007-03-03  Bruno Haible  <bruno@clisp.org>
62678
62679         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62680         All uses of __restrict changed to _Restrict_.
62681         * lib/glob_.h (__restrict): Remove macro.
62682
62683 2007-03-02  Bruno Haible  <bruno@clisp.org>
62684
62685         * modules/gettext (configure.ac): Require gettext infrastructure
62686         from version 0.16.1.
62687
62688 2007-03-02  Bruno Haible  <bruno@clisp.org>
62689
62690         * modules/linkedhash-list-tests (Depends-on): Add progname.
62691         * tests/test-linkedhash_list.c: Include progname.h.
62692         (main): Call set_program_name.
62693
62694         * modules/carray-list-tests (Depends-on): Add progname.
62695         * tests/test-carray_list.c: Include progname.h.
62696         (main): Call set_program_name.
62697
62698         * modules/avltreehash-list-tests (Depends-on): Add progname.
62699         * tests/test-avltreehash_list.c: Include progname.h.
62700         (main): Call set_program_name.
62701
62702         * modules/avltree-oset-tests (Depends-on): Add progname.
62703         * tests/test-avltree_oset.c: Include progname.h.
62704         (main): Call set_program_name.
62705
62706         * modules/avltree-list-tests (Depends-on): Add progname.
62707         * tests/test-avltree_list.c: Include progname.h.
62708         (main): Call set_program_name.
62709
62710         * modules/array-oset-tests (Depends-on): Add progname.
62711         * tests/test-array_oset.c: Include progname.h.
62712         (main): Call set_program_name.
62713
62714         * modules/array-list-tests (Depends-on): Add progname.
62715         * tests/test-array_list.c: Include progname.h.
62716         (main): Call set_program_name.
62717
62718         * modules/argp-tests (Depends-on): Add progname.
62719         * tests/test-argp.c: Include argp.h first. Include progname.h.
62720         (main): Call set_program_name.
62721
62722 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62723
62724         * doc/gnulib-tool.texi (Initial import): Reword description of
62725         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62726         limited effect even if defined after the first system include.
62727
62728 2007-03-01  Bruno Haible  <bruno@clisp.org>
62729
62730         * build-aux/config.libpath: Update to libtool-1.5.22.
62731         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62732
62733 2007-03-01  Bruno Haible  <bruno@clisp.org>
62734
62735         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62736         foo_CFLAGS.
62737         Reported by Ralf Wildenhues.
62738
62739 2007-03-01  Bruno Haible  <bruno@clisp.org>
62740
62741         * build-aux/install-reloc: Remove object files left over by some
62742         compilers.
62743         Reported by Ralf Wildenhues.
62744
62745 2007-03-01  Bruno Haible  <bruno@clisp.org>
62746
62747         * build-aux/install-reloc: Break long lines.
62748
62749 2007-03-01  Bruno Haible  <bruno@clisp.org>
62750
62751         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62752         Reported by Ralf Wildenhues.
62753
62754 2007-03-01  Bruno Haible  <bruno@clisp.org>
62755
62756         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62757         include ordering constraints.
62758
62759 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62760
62761         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62763         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62764         as another example.
62765         * lib/time_.h: Fix misspelling.
62766         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62767         Require gl_HEADER_TIME_H_DEFAULTS.
62768         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62769         * m4/time_r.m4 (gl_TIME_R): Likewise.
62770         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62771
62772 2007-03-01  Bruno Haible  <bruno@clisp.org>
62773
62774         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62775         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62776
62777 2007-03-01  Jim Meyering  <jim@meyering.net>
62778
62779         * modules/xreadlink (Maintainer): Add my name.
62780         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62781
62782 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62783             Bruno Haible  <bruno@clisp.org>
62784
62785         * build-aux/install-reloc: Compile also c-ctype.c.
62786         * build-aux/relocatable.sh.in: New file.
62787         * doc/relocatable.texi: New file.
62788         * doc/relocatable-maint.texi: New file.
62789         * doc/gnulib.texi: Include relocatable-maint.texi.
62790         * lib/progreloc.c: Include unistd.h unconditionally.
62791         * lib/relocwrapper.c: Include unistd.h unconditionally.
62792         Include c-ctype.h.
62793         (add_dotbin): Use c_tolower.
62794         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62795         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62796         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62797         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62798         to m4/relocatable-lib.m4.
62799         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62800         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62801         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62802         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62803         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62804         * modules/relocatable: New file.
62805         * modules/relocatable-lib: New file.
62806         * modules/relocatable-script: New file.
62807
62808 2007-02-28  Bruno Haible  <bruno@clisp.org>
62809
62810         Import --enable-relocatable infrastructure.
62811         * build-aux/config.libpath: New file, from GNU gettext.
62812         * build-aux/install-reloc: New file, from GNU gettext.
62813         * build-aux/reloc-ldflags: New file, from GNU gettext.
62814         * lib/relocatable.h: New file, from GNU gettext.
62815         * lib/relocatable.c: New file, from GNU gettext.
62816         * lib/relocwrapper.c: New file, from GNU gettext.
62817         * m4/relocatable.m4: New file, from GNU gettext.
62818
62819 2007-02-28  Bruno Haible  <bruno@clisp.org>
62820
62821         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62822
62823         * modules/xreadlink: New file, from GNU gettext with modifications.
62824         * lib/xreadlink.c: New file, from GNU gettext.
62825         * lib/xreadlink.h: Add comments.
62826         (xreadlink): New declaration.
62827
62828         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62829         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62830         lib/xreadlink-with-size.c.
62831         (configure.ac): Remove gl_XREADLINK invocation.
62832         (Makefile.am): Augment lib_SOURCES.
62833         * m4/xreadlink.m4: Remove file.
62834         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62835         (xreadlink_with_size): Renamed from xreadink.
62836         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62837         * modules/canonicalize (Depends-on): Replace xreadlink with
62838         xreadlink-with-size.
62839         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62840
62841 2007-02-25  Jim Meyering  <jim@meyering.net>
62842
62843         * build-aux/announce-gen: When complaining about excess arguments,
62844         list them.
62845
62846 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62847
62848         * README: Document signed integer overflow situation more
62849         accurately.
62850
62851 2007-02-25  Bruno Haible  <bruno@clisp.org>
62852
62853         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62854         'a' or 'A' conversion.
62855
62856 2007-02-25  Bruno Haible  <bruno@clisp.org>
62857
62858         * modules/filename: Renamed from modules/pathname.
62859         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62860         lib/concatpath.c with lib/concat-filename.c.
62861         (Makefile.am): Update.
62862         (Include): Replace pathname.h with filename.h.
62863         * lib/filename.h: Renamed from lib/pathname.h.
62864         (concatenated_filename): Renamed from concatenated_pathname.
62865         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62866         (concatenated_filename): Renamed from concatenated_pathname.
62867         * lib/findprog.c: Include filename.h instead of pathname.h.
62868         (find_in_path): Update.
62869         * lib/javacomp.c: Include filename.h instead of pathname.h.
62870         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62871         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62872         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62873         is_oldgcj_14_13_usable, is_javac_usable): Update.
62874         * lib/javaexec.c: Include filename.h instead of pathname.h.
62875         (execute_java_class): Update.
62876         * modules/findprog: Update.
62877         * modules/javacomp: Update.
62878         * modules/javaexec: Update.
62879         * MODULES.html.sh (File system functions): Add 'filename', remove
62880         'pathname'.
62881
62882 2007-02-25  Bruno Haible  <bruno@clisp.org>
62883
62884         * modules/printf-frexpl-tests: New file.
62885         * tests/test-printf-frexpl.c: New file.
62886
62887         * modules/printf-frexpl: New file.
62888         * lib/printf-frexpl.h: New file.
62889         * lib/printf-frexpl.c: New file.
62890         * m4/printf-frexpl.m4: New file.
62891
62892 2007-02-25  Bruno Haible  <bruno@clisp.org>
62893
62894         * modules/printf-frexp-tests: New file.
62895         * tests/test-printf-frexp.c: New file.
62896
62897         * modules/printf-frexp: New file.
62898         * lib/printf-frexp.h: New file.
62899         * lib/printf-frexp.c: New file.
62900         * m4/printf-frexp.m4: New file.
62901
62902 2007-02-25  Bruno Haible  <bruno@clisp.org>
62903
62904         Assume automake >= 1.10 for the tests.
62905         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62906         * modules/arctwo-tests: Likewise.
62907         * modules/argp-tests: Likewise.
62908         * modules/avltree-list-tests: Likewise.
62909         * modules/avltree-oset-tests: Likewise.
62910         * modules/avltreehash-list-tests: Likewise.
62911         * modules/carray-list-tests: Likewise.
62912         * modules/crc-tests: Likewise.
62913         * modules/des-tests: Likewise.
62914         * modules/gc-arcfour-tests: Likewise.
62915         * modules/gc-arctwo-tests: Likewise.
62916         * modules/gc-des-tests: Likewise.
62917         * modules/gc-hmac-md5-tests: Likewise.
62918         * modules/gc-hmac-sha1-tests: Likewise.
62919         * modules/gc-md2-tests: Likewise.
62920         * modules/gc-md4-tests: Likewise.
62921         * modules/gc-md5-tests: Likewise.
62922         * modules/gc-pbkdf2-sha1-tests: Likewise.
62923         * modules/gc-rijndael-tests: Likewise.
62924         * modules/gc-sha1-tests: Likewise.
62925         * modules/gc-tests: Likewise.
62926         * modules/getaddrinfo-tests: Likewise.
62927         * modules/hmac-md5-tests: Likewise.
62928         * modules/hmac-sha1-tests: Likewise.
62929         * modules/linked-list-tests: Likewise.
62930         * modules/linkedhash-list-tests: Likewise.
62931         * modules/lock-tests: Likewise.
62932         * modules/md2-tests: Likewise.
62933         * modules/md4-tests: Likewise.
62934         * modules/md5-tests: Likewise.
62935         * modules/rbtree-list-tests: Likewise.
62936         * modules/rbtree-oset-tests: Likewise.
62937         * modules/rbtreehash-list-tests: Likewise.
62938         * modules/read-file-tests: Likewise.
62939         * modules/rijndael-tests: Likewise.
62940         * modules/stdint-tests: Likewise.
62941         * modules/tls-tests: Likewise.
62942
62943 2007-02-24  Bruno Haible  <bruno@clisp.org>
62944
62945         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
62946         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
62947         function; instead check whether isnan with a double argument links.
62948         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
62949         function; instead check whether isnan with a 'long double' argument
62950         links.
62951         Reported by Eric Blake <ebb9@byu.net>.
62952
62953 2007-02-24  Bruno Haible  <bruno@clisp.org>
62954
62955         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
62956         defined.
62957         * lib/isnanl.c: Remove all code. Just include isnan.c.
62958         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
62959
62960 2007-02-25  Jim Meyering  <jim@meyering.net>
62961
62962         Avoid conflicting types for 'unsetenv' on FreeBSD.
62963         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
62964         conflicting with FreeBSD's (5.0 and 6.1) function declaration
62965         in stdlib.h.
62966
62967 2007-02-24  Bruno Haible  <bruno@clisp.org>
62968
62969         * modules/isnanl-nolibm-tests: New file.
62970         * tests/test-isnanl.c: New file.
62971
62972         * modules/isnanl-nolibm: New file.
62973         * lib/isnanl.h: New file.
62974         * lib/isnanl.c: New file.
62975         * m4/isnanl.m4: New file.
62976
62977 2007-02-24  Bruno Haible  <bruno@clisp.org>
62978
62979         * modules/isnan-nolibm-tests: New file.
62980         * tests/test-isnan.c: New file.
62981
62982         * modules/isnan-nolibm: New file.
62983         * lib/isnan.h: New file.
62984         * lib/isnan.c: New file.
62985         * m4/isnan.m4: New file.
62986
62987 2007-02-24  Bruno Haible  <bruno@clisp.org>
62988
62989         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
62990         assume that an exponent fits in 20 bits.
62991
62992 2007-02-24  Jim Meyering  <jim@meyering.net>
62993
62994         * m4/regex.m4: Update the description of the configure-time option,
62995         --without-included-regex, to state accurately what the defaults are,
62996         and perhaps to give people an idea why using this option is risky.
62997
62998 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62999
63000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63001         loops on small arguments.  This attempts to avoid the problem
63002         Bruno Haible reported for AIX 4.3.2 in
63003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63004
63005 2007-02-23  Bruno Haible  <bruno@clisp.org>
63006
63007         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63008         Needed for help2man.
63009
63010 2007-02-23  Karl Berry  <karl@gnu.org>
63011
63012         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63013         exists, foo.h should be cvs-ignored, not committed.
63014
63015 2007-02-23  Eric Blake  <ebb9@byu.net>
63016
63017         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63018         * lib/stat-time.h (includes): Likewise.
63019         * lib/utimecmp.c (includes): Likewise.
63020         * lib/utimens.h (includes): Likewise.
63021         * lib/getdate.y (includes): Also include "timespec.h" for use
63022         internal to the module.
63023         * modules/utimens (Depends-on): Revert yesterday's patch.
63024         * modules/nanosleep (Depends-on): Add missing dependency.
63025
63026 2007-02-22  Bruno Haible  <bruno@clisp.org>
63027
63028         * lib/glob.c: Don't include getlogin_r.h.
63029
63030 2007-02-22  Jim Meyering  <jim@meyering.net>
63031
63032         * modules/utimens (Depends-on): Add timespec, required for
63033         utimens.h's inclusion of timespec.h.
63034
63035 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63036
63037         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63038         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63039         Schwab in
63040         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63041         I'll try to think of a better way to fix the Solaris problem.
63042
63043         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63044         like glibc; on Solaris 10, it fails with errno == EINVAL.
63045         POSIX says the behavior is unspecified if the first argument is NULL,
63046         so play it safe and never pass NULL to the system getcwd.
63047
63048 2007-02-21  Jim Meyering  <jim@meyering.net>
63049
63050         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63051         of gettimeofday.  It would conflict with the one now always
63052         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63053         an IRIX 6.5 build failure.
63054
63055 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63056
63057         Minor fixups to port to Solaris 10 with Sun C 5.8.
63058         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63059         * modules/getcwd (Depends-on): Add dirfd.
63060         * lib/putenv.c (putenv): #undef it.
63061         (rpl_putenv): New decl.
63062         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63063
63064 2007-02-20  Bruno Haible  <bruno@clisp.org>
63065
63066         * modules/stdio-tests: New file.
63067         * tests/test-stdio.c: New file.
63068
63069         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63070         (Depends-on): Add stdio.
63071         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63072         (Include): Use <stdio.h> instead of vsnprintf.h.
63073         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63074         HAVE_DECL_VSNPRINTF.
63075         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63076
63077         * modules/snprintf (Files): Remove lib/snprintf.h.
63078         (Depends-on): Add stdio.
63079         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63080         (Include): Use <stdio.h> instead of snprintf.h.
63081         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63082         HAVE_DECL_SNPRINTF.
63083         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63084         * lib/getaddrinfo.c: Likewise.
63085
63086         * modules/stdio: New file.
63087         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63088         * lib/snprintf.h: Remove file.
63089         * lib/vsnprintf.h: Remove file.
63090         * lib/.cppi-disable: Remove snprintf.h.
63091         * m4/stdio_h.m4: New file.
63092         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63093
63094 2007-02-20  Jim Meyering  <jim@meyering.net>
63095
63096         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63097         used by e.g., mingw.  From Bruno Haible.
63098
63099 2007-02-19  Bruno Haible  <bruno@clisp.org>
63100
63101         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63102         warnings.
63103         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63104
63105 2007-02-19  Bruno Haible  <bruno@clisp.org>
63106
63107         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63108         from mingw users.
63109
63110 2007-02-19  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63113         warnings.
63114         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63115
63116 2007-02-19  Jim Meyering  <jim@meyering.net>
63117
63118         Don't use FD after a successful "fdopendir (fd)".
63119         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63120         Reset it by calling dirfd on the just-obtained DIR*.
63121
63122         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63123         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63124
63125 2007-02-18  Bruno Haible  <bruno@clisp.org>
63126
63127         * lib/readlink.c: Include <unistd.h>.
63128         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63129         HAVE_READLINK.
63130         * modules/readlink (Depends-on): Add unistd.
63131         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63132         (Include): Add <unistd.h>.
63133
63134         * lib/getlogin_r.h: Remove file.
63135         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63136         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63137         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63138         HAVE_DECL_GETLOGIN_R.
63139         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63140         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63141         (Include): Use <unistd.h> instead of getlogin_r.h.
63142
63143         * lib/getcwd.h: Remove file.
63144         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63145         * lib/xgetcwd.c: Likewise.
63146         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63147         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63148         * modules/getcwd (Files): Remove lib/getcwd.h.
63149         (Depends-on): Add unistd.
63150         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63151         (Include): Use <unistd.h> instad of getcwd.h.
63152
63153         * lib/ftruncate.c: Include <unistd.h> first.
63154         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63155         Set HAVE_FTRUNCATE.
63156         * modules/ftruncate (Depends-on): Add unistd.
63157         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63158
63159         * lib/fchdir.c: Include <unistd.h> first.
63160         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63162         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63163         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63164         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63165
63166         * lib/dup2.c: Include <unistd.h> first.
63167         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63168         HAVE_DUP2.
63169         * modules/dup2 (Depends-on): Add unistd.
63170         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63171
63172         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63173         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63174         REPLACE_CHOWN. Don't define chown as a macro here.
63175         * modules/chown (Depends-on): Add unistd.
63176         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63177
63178         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63179         Add definition for GL_LINK_WARNING.
63180         (chown, dup2): New declarations.
63181         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63182         link warning.
63183         (ftruncate): New declaration.
63184         (getcwd): New declaration, taken from old getcwd.h.
63185         (getlogin_r): New declaration, taken from old getlogin_r.h.
63186         (readlink): New declaration.
63187         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63188         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63189         (gl_PREREQ_UNISTD): Remove macro.
63190         (gl_UNISTD_MODULE_INDICATOR): New macro.
63191         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63192         many new variables. Don't set UNISTD_H.
63193         * modules/unistd (Description): Change.
63194         (Depends-on): Add link-warning.
63195         (configure.ac): Update.
63196         (Makefile.am): Create unistd.h always. Substitute many new variables
63197         into it.
63198
63199 2007-02-18  Bruno Haible  <bruno@clisp.org>
63200
63201         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63202         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63203         HAVE_GETSUBOPT.
63204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63205         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63206         * lib/getsubopt.h: Remove file.
63207         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63208         (Depends-on): Add stdlib.
63209         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63210         (Includes): Use <stdlib.h> instead of getsubopt.h.
63211         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63212         Set HAVE_GETSUBOPT.
63213         * lib/getsubopt.c: Don't include getsubopt.h.
63214
63215 2007-02-18  Bruno Haible  <bruno@clisp.org>
63216
63217         * modules/fchdir (Depends-on): Add dup2.
63218
63219 2007-02-18  Bruno Haible  <bruno@clisp.org>
63220
63221         * lib/stdlib_.h: Handle glibc's special invocation convention
63222         specially.
63223
63224 2007-02-18  Bruno Haible  <bruno@clisp.org>
63225
63226         * modules/stdlib-tests: New file.
63227         * tests/test-stdlib.c: New file.
63228
63229         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63230         (Depends-on): Add stdlib.
63231         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63232         (Includes): Use <stdlib.h> instead of mkstemp.h.
63233         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63234         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63235         * lib/mkstemp.c: Don't include mkstemp.h.
63236         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63237         * lib/stdlib--.h: Don't include mkstemp.h.
63238
63239         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63240         (Depends-on): Add stdlib.
63241         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63242         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63243         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63244         HAVE_MKDTEMP.
63245         * lib/mkdtemp.c: Don't include mkdtemp.h.
63246         * lib/clean-temp.c: Don't include mkdtemp.h.
63247
63248         * modules/exit (Files): Remove lib/exit.h.
63249         (Depends-on): Add stdlib.
63250         (Makefile.am): Remove lib_SOURCES.
63251         (Include): Use <stdlib.h> instead of exit.h.
63252         * lib/argmatch.c: Don't include exit.h.
63253         * lib/execute.c: Likewise.
63254         * lib/pagealign_alloc.c: Likewise.
63255         * lib/pipe.c: Likewise.
63256         * lib/wait-process.c: Likewise.
63257         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63258         * lib/exitfail.c: Likewise.
63259         * lib/savewd.c: Likewise.
63260         * lib/xsetenv.c: Likewise.
63261
63262         * modules/stdlib: New file.
63263         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63264         and extra comments about mkstemp().
63265         * lib/exit.h: Remove file.
63266         * lib/mkdtemp.h: Remove file.
63267         * lib/mkstemp.h: Remove file.
63268         * m4/stdlib_h.m4: New file.
63269         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63270
63271 2007-02-18  Bruno Haible  <bruno@clisp.org>
63272
63273         * modules/math-tests: New file.
63274         * tests/test-math.c: New file.
63275
63276         * modules/math: New file.
63277         * modules/mathl (Files): Remove lib/mathl.h.
63278         (Depends-on): Add math.
63279         (Makefile.am): Don't mention mathl.h.
63280         (Include): Use <math.h> instead of mathl.h.
63281         * lib/math_.h: New file.
63282         * lib/mathl.h: Remove file.
63283         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63284         mathl.h.
63285         * lib/asinl.c: Likewise.
63286         * lib/atanl.c: Likewise.
63287         * lib/ceill.c: Likewise.
63288         * lib/cosl.c: Likewise.
63289         * lib/expl.c: Likewise.
63290         * lib/floorl.c: Likewise.
63291         * lib/frexpl.c: Likewise.
63292         * lib/ldexpl.c: Likewise.
63293         * lib/logl.c: Likewise.
63294         * lib/sincosl.c: Likewise.
63295         * lib/sinl.c: Likewise.
63296         * lib/sqrtl.c: Likewise.
63297         * lib/tanl.c: Likewise.
63298         * lib/trigl.c: Likewise.
63299         * m4/math_h.m4: New file.
63300         * MODULES.html.sh (Mathematics): Add math.
63301
63302 2007-02-17  Bruno Haible  <bruno@clisp.org>
63303
63304         * modules/wctype-tests: New file.
63305         * tests/test-wctype.c: New file.
63306
63307         * modules/wchar-tests: New file.
63308         * tests/test-wchar.c: New file.
63309
63310         * modules/unistd-tests: New file.
63311         * tests/test-unistd.c: New file.
63312
63313         * modules/time-tests: New file.
63314         * tests/test-time.c: New file.
63315
63316         * modules/sysexits-tests: New file.
63317         * tests/test-sysexits.c: New file.
63318
63319         * modules/sys_time-tests: New file.
63320         * tests/test-sys_time.c: New file.
63321
63322         * modules/sys_stat-tests: New file.
63323         * tests/test-sys_stat.c: New file.
63324
63325         * modules/sys_socket-tests: New file.
63326         * tests/test-sys_socket.c: New file.
63327
63328         * modules/sys_select-tests: New file.
63329         * tests/test-sys_select.c: New file.
63330
63331         * modules/string-tests: New file.
63332         * tests/test-string.c: New file.
63333
63334         * modules/stdbool-tests: New file.
63335         * tests/test-stdbool.c: New file.
63336
63337         * modules/netinet_in-tests: New file.
63338         * tests/test-netinet_in.c: New file.
63339
63340         * modules/inttypes-tests: New file.
63341         * tests/test-inttypes.c: New file.
63342
63343         * modules/fcntl-tests: New file.
63344         * tests/test-fcntl.c: New file.
63345
63346         * modules/byteswap-tests: New file.
63347         * tests/test-byteswap.c: New file.
63348
63349         * modules/arpa_inet-tests: New file.
63350         * tests/test-arpa_inet.c: New file.
63351
63352 2007-02-17  Bruno Haible  <bruno@clisp.org>
63353
63354         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63355         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63356         if the corresponding module is not enabled. Emit link warnings if
63357         the function is used nevertheless.
63358         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63359         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63360         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63361         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63362         * modules/inttypes (Depends-on): Add link-warning.
63363         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63364         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63365         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63366         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63367         * modules/imaxdiv (configure.ac): Likewise.
63368         * modules/strtoimax (configure.ac): Likewise.
63369         * modules/strtoumax (configure.ac): Likewise.
63370
63371 2007-02-17  Bruno Haible  <bruno@clisp.org>
63372
63373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63374         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63375         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63376         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63377
63378 2007-02-17  Bruno Haible  <bruno@clisp.org>
63379
63380         * modules/link-warning: New file.
63381         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63382         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63383         * modules/string (Depends-on): Add link-warning.
63384         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63385         string.h.
63386         * MODULES.html.sh (Support for building libraries and executables): Add
63387         link-warning.
63388
63389 2007-02-17  Bruno Haible  <bruno@clisp.org>
63390
63391         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63392         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63393         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63394         long lines.
63395
63396 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63397             Bruno Haible  <bruno@clisp.org>
63398
63399         * modules/tmpfile: New file.
63400         * lib/tmpfile.c: New file.
63401         * m4/tmpfile.m4: New file.
63402         * MODULES.html.sh (func_all_modules): New section "Input/output".
63403
63404 2007-02-15  Bruno Haible  <bruno@clisp.org>
63405
63406         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63407         (supports_delete_on_close): New function.
63408         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63409
63410 2007-02-14  Bruno Haible  <bruno@clisp.org>
63411
63412         * modules/mbspcasecmp-tests: New file.
63413         * tests/test-mbspcasecmp.sh: New file.
63414         * tests/test-mbspcasecmp.c: New file.
63415
63416         New module mbspcasecmp.
63417         * modules/mbspcasecmp: New file.
63418         * lib/mbspcasecmp.c: New file.
63419         * lib/string_.h (strncasecmp): Change warning message.
63420         (mbspcasecmp): New declaration.
63421         * m4/mbspcasecmp.m4: New file.
63422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63423         GNULIB_MBSPCASECMP.
63424         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63425         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63426
63427 2007-02-14  Bruno Haible  <bruno@clisp.org>
63428
63429         * modules/mbsncasecmp-tests: New file.
63430         * tests/test-mbsncasecmp.sh: New file.
63431         * tests/test-mbsncasecmp.c: New file.
63432
63433         New module mbsncasecmp.
63434         * modules/mbsncasecmp: New file.
63435         * lib/mbsncasecmp.c: New file.
63436         * lib/string_.h (mbsncasecmp): New declaration.
63437         * m4/mbsncasecmp.m4: New file.
63438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63439         GNULIB_MBSNCASECMP.
63440         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63441         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63442
63443 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63444
63445         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63446         Verify that it doesn't overlap with our flags.
63447         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63448         do not have the desired effect in multibyte locales; instead, use
63449         mbscasecmp.
63450         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63451         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63452         we don't require GNU fnmatch ourselves (if our users require it, they
63453         should do so explicitly).
63454
63455         Fix regex code so it doesn't rely on strcasecmp.
63456         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63457         Otherwise, include gnulib's langinfo.h.
63458         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63459         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63460         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63461         * modules/regex (FILES): Remove m4/codeset.m4.
63462         (Depends-on): Add localcharset.  Remove strcase.
63463
63464 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63465
63466         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63467         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63468
63469 2007-02-13  Bruno Haible  <bruno@clisp.org>
63470
63471         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63473
63474 2007-02-12  Bruno Haible  <bruno@clisp.org>
63475
63476         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63477         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63478         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63479         time warning rather than a link error.
63480
63481 2007-02-12  Bruno Haible  <bruno@clisp.org>
63482
63483         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63484         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63485         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63486
63487 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63488
63489         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63490         args, not 2.
63491
63492 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63493
63494         New module 'time', so that apps can include <time.h> as per
63495         POSIX and GNU instead of separate include files like time_r.h
63496         and timegm.h.  This implementation tries out a simpler approach
63497         for replacing decls in standard include files (as compared to
63498         the string module), somewhat as an experiment.
63499
63500         * config/srclist.txt: Comment out mktime.c for now.
63501         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63502         since it doesn't apply any more.  Use generic wording instead.
63503         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63504         'time'.
63505         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63506         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63507         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63508         Don't include <sys/types.h>; no longer needed since we assume C89.
63509         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63510         * lib/strftime.c: Likewise.
63511         * lib/time_r.c: Likewise.
63512         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63513         * lib/nanosleep.c: Include <time.h> first, to check interface.
63514         * lib/strptime.c: Likewise.
63515         * lib/time_r.c: Likewise.
63516         * lib/timegm.c: Likewise.
63517         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63518         needed.
63519         * lib/timegm.c: Don't include timegm.h; no longer needed.
63520         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63521         time.h now handles any problems in that area.
63522         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63523         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63524         that time.h defines struct timespec.
63525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63526         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63527         handles that.
63528         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63529         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63530         needed.  Set REPLACE_LOCALTIME.
63531         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63532         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63533         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63534         nanosleep; time_h.m4 now does that.  Don't require
63535         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63536         module handles this now.
63537         * modules/getdate (Depends-on): Remove timespec.  Add time.
63538         * modules/nanosleep (Depends-on): Likewise.
63539         * modules/stat-time (Depends-on): Likewise.
63540         * modules/nanosleep (Include): Include time.h, not timespec.h.
63541         * modules/strptime (Files): Remove lib/strptime.h.
63542         (Depends-on): Add extensions, time.
63543         (Include): Include time.h, not strptime.h.
63544         * modules/time_r (Files): Remove lib/time_r.h.
63545         (Depends-on): Add time.
63546         (Include): Include time.h, not time_r.h.
63547         * modules/timegm: Likewise.
63548         * modules/timespec (Description): Now does timespec-related decls
63549         of our own, instead of struct timespec itself.
63550         (Depends-on): Add time; remove extensions.
63551         (Maintainer): Add self.
63552         * modules/utimecmp (Depends-on): Add time; remove timespec.
63553         * modules/utimens (Depends-on): Likewise.
63554         * modules/xnanosleep (Depends-on): Likewise.
63555
63556 2007-02-11  Bruno Haible  <bruno@clisp.org>
63557
63558         * lib/c-strstr.c: Include allocsa.h.
63559         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63560         * lib/c-strcasestr.c: Include allocsa.h.
63561         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63562         * lib/strcasestr.c: Include allocsa.h.
63563         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63564         * lib/mbsstr.c: Include allocsa.h.
63565         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63566         allocsa/freesa instead of malloc/free.
63567         * lib/mbscasestr.c: Include allocsa.h.
63568         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63569         allocsa/freesa instead of malloc/free.
63570         * modules/c-strstr (Depends-on): Add allocsa.
63571         * modules/c-strcasestr (Depends-on): Likewise.
63572         * modules/strcasestr (Depends-on): Likewise.
63573         * modules/mbsstr (Depends-on): Likewise.
63574         * modules/mbscasestr (Depends-on): Likewise.
63575
63576 2007-02-11  Bruno Haible  <bruno@clisp.org>
63577
63578         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63579
63580         * modules/mbsspn-tests: New file.
63581         * tests/test-mbsspn.sh: New file.
63582         * tests/test-mbsspn.c: New file.
63583
63584 2007-02-11  Bruno Haible  <bruno@clisp.org>
63585
63586         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63587
63588         * modules/mbspbrk-tests: New file.
63589         * tests/test-mbspbrk.sh: New file.
63590         * tests/test-mbspbrk.c: New file.
63591
63592 2007-02-11  Bruno Haible  <bruno@clisp.org>
63593
63594         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63595         unneeded cast.
63596
63597         * modules/mbscspn-tests: New file.
63598         * tests/test-mbscspn.sh: New file.
63599         * tests/test-mbscspn.c: New file.
63600
63601 2007-02-11  Bruno Haible  <bruno@clisp.org>
63602
63603         * modules/mbscasecmp-tests: New file.
63604         * tests/test-mbscasecmp.sh: New file.
63605         * tests/test-mbscasecmp.c: New file.
63606
63607 2007-02-11  Bruno Haible  <bruno@clisp.org>
63608
63609         Ensure O(n) worst-case complexity of mbscasestr.
63610         * lib/mbscasestr.c: Include stdbool.h.
63611         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63612         functions.
63613         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63614         the bookkeeping indicates that it's worth it.
63615         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63616
63617         * modules/mbscasestr-tests: New file.
63618         * tests/test-mbscasestr1.c: New file.
63619         * tests/test-mbscasestr2.sh: New file.
63620         * tests/test-mbscasestr2.c: New file.
63621         * tests/test-mbscasestr3.sh: New file.
63622         * tests/test-mbscasestr3.c: New file.
63623         * tests/test-mbscasestr4.sh: New file.
63624         * tests/test-mbscasestr4.c: New file.
63625         * m4/locale-tr.m4: New file.
63626
63627 2007-02-11  Bruno Haible  <bruno@clisp.org>
63628
63629         Ensure O(n) worst-case complexity of mbsstr.
63630         * lib/mbsstr.c: Include stdbool.h.
63631         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63632         functions.
63633         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63634         bookkeeping indicates that it's worth it.
63635         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63636
63637         * modules/mbsstr-tests: New file.
63638         * tests/test-mbsstr1.c: New file.
63639         * tests/test-mbsstr2.sh: New file.
63640         * tests/test-mbsstr2.c: New file.
63641         * tests/test-mbsstr3.sh: New file.
63642         * tests/test-mbsstr3.c: New file.
63643         * m4/locale-fr.m4: New file.
63644
63645 2007-02-11  Bruno Haible  <bruno@clisp.org>
63646
63647         * lib/mbsrchr.c (mbsrchr): Fix bug.
63648
63649         * modules/mbsrchr-tests: New file.
63650         * tests/test-mbsrchr.sh: New file.
63651         * tests/test-mbsrchr.c: New file.
63652
63653 2007-02-11  Bruno Haible  <bruno@clisp.org>
63654
63655         * lib/mbschr.c (mbschr): Fix bug.
63656
63657         * modules/mbschr-tests: New file.
63658         * tests/test-mbschr.sh: New file.
63659         * tests/test-mbschr.c: New file.
63660         * m4/locale-zh.m4: New file.
63661
63662 2007-02-11  Bruno Haible  <bruno@clisp.org>
63663
63664         Support for copying multibyte string iterators.
63665         * lib/mbiter.h: Include <string.h>.
63666         (mbiter_multi_copy): New function.
63667         (mbi_copy): New macro.
63668         * lib/mbuiter.h: Include <string.h>.
63669         (mbuiter_multi_copy): New function.
63670         (mbui_copy): New macro.
63671
63672 2007-02-11  Bruno Haible  <bruno@clisp.org>
63673
63674         New module mbslen.
63675         * modules/mbslen: New file.
63676         * lib/mbslen.c: New file.
63677         * lib/string_.h (mbslen): New declaration.
63678         * m4/mbslen.m4: New file.
63679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63680         GNULIB_MBSLEN.
63681         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63682         * MODULES.html.sh (Internationalization functions): Add mbslen.
63683
63684 2007-02-11  Bruno Haible  <bruno@clisp.org>
63685
63686         Ensure O(n) worst-case complexity of strcasestr substitute.
63687         * lib/strcasestr.c: Include stdbool.h.
63688         (knuth_morris_pratt): New function.
63689         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63690         bookkeeping indicates that it's worth it.
63691         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63692
63693         * modules/strcasestr-tests: New file.
63694         * tests/test-strcasestr.c: New file.
63695
63696 2007-02-11  Bruno Haible  <bruno@clisp.org>
63697
63698         Ensure O(n) worst-case complexity of c_strcasestr.
63699         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63700         (knuth_morris_pratt): New function.
63701         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63702         the bookkeeping indicates that it's worth it.
63703         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63704
63705         * modules/c-strcasestr-tests: New file.
63706         * tests/test-c-strcasestr.c: New file.
63707
63708 2007-02-11  Bruno Haible  <bruno@clisp.org>
63709
63710         Ensure O(n) worst-case complexity of c_strstr.
63711         * lib/c-strstr.c: Include stdbool.h, string.h.
63712         (knuth_morris_pratt): New function.
63713         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63714         bookkeeping indicates that it's worth it.
63715         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63716
63717         * lib/c-strstr.c: Complete rewrite for maintainability.
63718
63719         * modules/c-strstr-tests: New file.
63720         * tests/test-c-strstr.c: New file.
63721
63722 2007-02-11  Bruno Haible  <bruno@clisp.org>
63723
63724         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63725         5.2.1 and earlier, whereby \055 was treated just like the range
63726         delimiter '-'.
63727         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63728
63729 2007-02-08  Bruno Haible  <bruno@clisp.org>
63730
63731         * modules/regex (Depends-on): Add stdbool.
63732         Reported by Dalibor Topic <robilad@kaffe.org>.
63733
63734 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63735
63736         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63737         Prefer returning from main to exiting from it.
63738         Remove unnecessary parens after sizeof.
63739
63740 2007-02-05  Bruno Haible  <bruno@clisp.org>
63741
63742         New module mbssep.
63743         * modules/mbssep: New file.
63744         * lib/mbssep.c: New file.
63745         * lib/string_.h (strsep): Add a conditional link warning.
63746         (mbssep): New declaration.
63747         * m4/mbssep.m4: New file.
63748         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63749         GNULIB_MBSSEP.
63750         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63751         * MODULES.html.sh (Internationalization functions): Add mbssep.
63752
63753 2007-02-05  Bruno Haible  <bruno@clisp.org>
63754
63755         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63756         Optimize search in case of 1 delimiter.
63757
63758 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63759
63760         * lib/acl.h: Include sys/types.h before sys/acl.h.
63761
63762 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63763
63764         Merge upstream fix for glibc bugzilla #3957:
63765
63766         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63767
63768         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63769         bit for RE_HAT_LISTS_NOT_NEWLINE.
63770         (build_charclass_op): Remove bogus comment.
63771
63772 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63773
63774         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63775
63776 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63777
63778         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63779         * lib/memmem.c [!defined _LIBC]: Include config.h.
63780
63781 2007-02-04  Bruno Haible  <bruno@clisp.org>
63782
63783         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63784         warning message.
63785
63786 2007-02-04  Bruno Haible  <bruno@clisp.org>
63787
63788         New module mbstok_r.
63789         * modules/mbstok_r: New file.
63790         * lib/mbstok_r.c: New file.
63791         * lib/string_.h (strtok_r): Change argument names to match the
63792         comments. Add a conditional link warning.
63793         (mbstok_r): New declaration.
63794         * m4/mbstok_r.m4: New file.
63795         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63796         GNULIB_MBSTOK_R.
63797         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63798         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63799
63800 2007-02-04  Bruno Haible  <bruno@clisp.org>
63801
63802         New module mbsspn.
63803         * modules/mbsspn: New file.
63804         * lib/mbsspn.c: New file.
63805         * lib/string_.h (strspn): Add a conditional link warning.
63806         (mbsspn): New declaration.
63807         * m4/mbsspn.m4: New file.
63808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63809         GNULIB_MBSSPN.
63810         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63811         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63812
63813 2007-02-04  Bruno Haible  <bruno@clisp.org>
63814
63815         New module mbspbrk.
63816         * modules/mbspbrk: New file.
63817         * lib/mbspbrk.c: New file.
63818         * lib/string_.h (strpbrk): Add a conditional link warning.
63819         (mbspbrk): New declaration.
63820         * m4/mbspbrk.m4: New file.
63821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63822         GNULIB_MBSPBRK.
63823         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63824         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63825
63826 2007-02-04  Bruno Haible  <bruno@clisp.org>
63827
63828         New module mbscspn.
63829         * modules/mbscspn: New file.
63830         * lib/mbscspn.c: New file.
63831         * lib/string_.h (strcspn): Add a conditional link warning.
63832         (mbscspn): New declaration.
63833         * m4/mbscspn.m4: New file.
63834         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63835         GNULIB_MBSCSPN.
63836         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63837         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63838
63839 2007-02-04  Bruno Haible  <bruno@clisp.org>
63840
63841         New module mbscasestr, reduced goal of strcasestr.
63842         * modules/mbscasestr: New file.
63843         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63844         (mbscasestr): Renamed from strcasestr.
63845         * lib/strcasestr.c: Don't include mbuiter.h.
63846         (strcasestr): Remove support for multibyte locales.
63847         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63848         Change the conditional link warning.
63849         (mbscasestr): New declaration.
63850         * m4/mbscasestr.m4: New file.
63851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63852         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63853         REPLACE_STRCASESTR.
63854         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63856         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63857         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63858         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63859         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63860         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63861         (Depends-on): Remove mbuiter.
63862         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63863
63864 2007-02-04  Bruno Haible  <bruno@clisp.org>
63865
63866         Simplify handling of strncasecmp.
63867         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63868         the conditional link warning.
63869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63870         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63871         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63872         * modules/strcase (configure.ac): Don't invoke
63873         gl_STRING_MODULE_INDICATOR.
63874         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63875
63876 2007-02-04  Bruno Haible  <bruno@clisp.org>
63877
63878         New module mbscasecmp, reduced goal of strcasecmp.
63879         * modules/mbscasecmp: New file.
63880         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63881         (mbscasecmp): Renamed from strcasecmp.
63882         * lib/strcasecmp.c: Don't include mbuiter.h.
63883         (strcasecmp): Remove support for multibyte locales.
63884         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63885         Change the conditional link warning.
63886         (mbscasecmp): New declaration.
63887         * m4/mbscasecmp.m4: New file.
63888         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63889         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63890         REPLACE_STRCASECMP.
63891         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63893         GNULIB_MBSCASECMP.
63894         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63895         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63896         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63897         (Depends-on): Remove mbuiter.
63898         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63899
63900 2007-02-04  Bruno Haible  <bruno@clisp.org>
63901
63902         New module mbsstr. Remove module strstr.
63903         * modules/mbsstr: New file.
63904         * modules/strstr: Remove file.
63905         * lib/mbsstr.c: Renamed from lib/strstr.c.
63906         (mbsstr): Renamed from strstr.
63907         * lib/string_.h (strstr): Remove declaration. Change the conditional
63908         link warning.
63909         (mbsstr): New declaration.
63910         * m4/mbsstr.m4: New file.
63911         * m4/strstr.m4: Remove file.
63912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63913         REPLACE_STRSTR.
63914         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63915         Don't initialize GNULIB_STRSTR.
63916         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63917         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63918         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63919         (Support for systems lacking ANSI C 89): Remove strstr.
63920
63921 2007-02-04  Bruno Haible  <bruno@clisp.org>
63922
63923         New module mbsrchr.
63924         * modules/mbsrchr: New file.
63925         * lib/mbsrchr.c: New file.
63926         * lib/string_.h (strrchr): Add a conditional link warning.
63927         (mbsrchr): New declaration.
63928         * m4/mbsrchr.m4: New file.
63929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63930         GNULIB_MBSRCHR.
63931         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
63932         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
63933
63934 2007-02-04  Bruno Haible  <bruno@clisp.org>
63935
63936         New module mbschr.
63937         * modules/mbschr: New file.
63938         * lib/mbschr.c: New file.
63939         * lib/string_.h (strchr): Add a conditional link warning.
63940         (mbschr): New declaration.
63941         * m4/mbschr.m4: New file.
63942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63943         GNULIB_MBSCHR.
63944         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
63945         * MODULES.html.sh (Internationalization functions): Add mbschr.
63946
63947 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63948
63949         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
63950
63951         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
63952
63953 2007-02-04  Bruno Haible  <bruno@clisp.org>
63954
63955         New module description section 'configure.ac-early'.
63956         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
63957         (func_get_autoconf_early_snippet): New function.
63958         (func_import, func_create_testdir): Use it. Remove special cases for
63959         modules 'extensions' and 'lock'.
63960         * modules/extensions (configure.ac-early): Require
63961         gl_USE_SYSTEM_EXTENSIONS.
63962         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
63963
63964 2007-02-04  Bruno Haible  <bruno@clisp.org>
63965
63966         Make use of gcj-4.3's -fsource and -ftarget option.
63967         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
63968         and if so try the options -fsource and -ftarget.
63969         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
63970         source_version, ftarget_option, target_version arguments.
63971         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
63972         (is_envjavac_oldgcj_14_14_usable): Renamed from
63973         is_envjavac_gcj_14_14_usable.
63974         (is_envjavac_oldgcj_14_13_usable): Renamed from
63975         is_envjavac_gcj_14_13_usable.
63976         (is_gcj_present): Update.
63977         (is_gcj_43, is_gcj43_usable): New functions.
63978         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
63979         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
63980         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
63981         try the options -fsource and -ftarget.
63982
63983 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
63984
63985         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
63986         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
63987         larger value.
63988
63989 2007-02-03  Jim Meyering  <jim@meyering.net>
63990
63991         Give tools a better chance to allocate space for very large buffers.
63992         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
63993
63994         Make pwd and readlink work also when run with an unreadable parent dir
63995         on systems with openat support.
63996         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
63997         provided getcwd function, even when we have openat support.
63998         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
63999
64000 2007-02-02  Bruno Haible  <bruno@clisp.org>
64001
64002         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64003         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64004         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64005         portability problems if one of these functions is only used on specific
64006         platforms.
64007         Reported by Paul Eggert.
64008
64009 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64010
64011         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64012         is causing more trouble than it's curing.
64013         * lib/regex_internal.h (__mempcpy): Remove.
64014         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64015         (and make the code a tad smaller to boot).
64016         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64017
64018 2007-02-02  Jim Meyering  <jim@meyering.net>
64019
64020         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64021         section, not in the Makefile.am: one.
64022
64023 2007-02-02  Eric Blake  <ebb9@byu.net>
64024
64025         * lib/strchrnul.c: Always include config.h first.
64026
64027         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64028         gnulib strstr is not necessary here.
64029
64030 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64031
64032         * m4/socklen.m4: Fix typo.
64033
64034 2007-02-02  Eric Blake  <ebb9@byu.net>
64035
64036         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64037         * modules/netinet_in (Makefile.am): Likewise.
64038
64039 2007-02-01  Bruno Haible  <bruno@clisp.org>
64040
64041         * lib/string_.h (GL_LINK_WARNING): New macro.
64042         (strcasecmp, strstr, strcasestr): If provided by the system,
64043         conditionally define as a macro that leads to a warning instead of to
64044         an error.
64045         (strncasecmp): Conditionally define as a macro that leads to a warning.
64046
64047 2007-02-01  Karl Berry  <karl@gnu.org>
64048
64049         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64050
64051 2007-02-01  Bruno Haible  <bruno@clisp.org>
64052
64053         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64054         renamings.
64055
64056 2007-02-01  Eric Blake  <ebb9@byu.net>
64057
64058         * modules/regex (Depends-on): Revert dependence on mempcpy.
64059         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64060         module's definition of mempcpy.
64061         Reported by Paul Eggert.
64062
64063 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64066         the symbol XYZ before redefining it.  This fixes a problem with
64067         programs that don't use XYZ, when compiled on systems that define
64068         XYZ to something else.
64069
64070 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64071
64072         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64073         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64074         writeable to group or other and (2) is intended to have a special
64075         mode bit that is set or cleared.  In such a case, the directory
64076         should be neither group- nor other-writeable until the special
64077         mode bits are right.
64078
64079 2007-01-31  Eric Blake  <ebb9@byu.net>
64080
64081         * modules/mountlist (Depends-on): Add strstr.
64082
64083         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64084         bug.
64085         * modules/string (Makefile.am): Remove redundant replacement.
64086         * modules/regex (Depends-on): Add mempcpy.
64087
64088 2007-01-31  Bruno Haible  <bruno@clisp.org>
64089
64090         New module description field 'Link'.
64091         * gnulib-tool (func_usage): Document --extract-link-directive.
64092         (sed_extract_prog): Recognize 'Link' directive.
64093         (func_get_link_directive): New function.
64094         (func_import): Show summary of link directives.
64095         Handle --extract-link-directive option.
64096         * modules/acl (Link): New section.
64097         * modules/clock-time (Link): New section.
64098         * modules/euidaccess (Link): New section.
64099         * modules/gettext (Link): New section.
64100         * modules/iconv (Link): New section.
64101         * modules/lock (Link): New section.
64102         * modules/nanosleep (Link): New section.
64103         * modules/readline (Link): New section.
64104
64105 2007-01-27  Bruno Haible  <bruno@clisp.org>
64106
64107         Enforce the use of gnulib modules for unportable <string.h> functions.
64108         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64109         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64110         (gl_HEADER_STRING_H_BODY): Require it.
64111         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64112         the symbol XYZ to one that gives a link error.
64113         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64114         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64115         * modules/mempcpy (configure.ac): Likewise.
64116         * modules/memrchr (configure.ac): Likewise.
64117         * modules/stpcpy (configure.ac): Likewise.
64118         * modules/stpncpy (configure.ac): Likewise.
64119         * modules/strcase (configure.ac): Likewise.
64120         * modules/strcasestr (configure.ac): Likewise.
64121         * modules/strchrnul (configure.ac): Likewise.
64122         * modules/strdup (configure.ac): Likewise.
64123         * modules/strndup (configure.ac): Likewise.
64124         * modules/strnlen (configure.ac): Likewise.
64125         * modules/strpbrk (configure.ac): Likewise.
64126         * modules/strsep (configure.ac): Likewise.
64127         * modules/strstr (configure.ac): Likewise.
64128         * modules/strtok_r (configure.ac): Likewise.
64129
64130 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64131
64132         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64133
64134 2007-01-30  Jim Meyering  <jim@meyering.net>
64135
64136         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64137
64138 2007-01-29  Bruno Haible  <bruno@clisp.org>
64139
64140         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64141         * lib/execute.c: Likewise.
64142         * lib/pipe.c: Likewise.
64143         * lib/printf-args.h: Likewise.
64144         * lib/printf-args.c: Likewise.
64145         * lib/printf-parse.c: Likewise.
64146         * lib/vasnprintf.c: Likewise.
64147
64148 2007-01-29  Eric Blake  <ebb9@byu.net>
64149
64150         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64151         declaration.
64152
64153 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64154
64155         * lib/strptime.h (strptime): Use 'restrict' for args where
64156         POSIX requires this.
64157         * lib/strptime.c (strptime): Likewise.
64158         Change license notice from LGPL to GPL, since gnulib-tool will
64159         change this as needed.
64160         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64161         defined.
64162         Include "strptime.h" first, to check interface.
64163         Do not #undef _LIBC and _NL_CURRENT.
64164         Do not include <stdlib.h>; no longer needed.
64165         Include "time_r.h" and declare ptime_locale_status
64166         only if _LIBC is not defined.
64167         (__P): Remove unused macro.
64168         (match_string): Bring back glibc version, but use it only if _LIBC
64169         is defined.
64170         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64171         Remove unnecessary assertion and abort() call.
64172         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64173         * m4/strptime.m4: Fix serial number comment.
64174         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64175         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64176         (Depends-on): Add time_r.
64177
64178 2007-01-29  Bruno Haible  <bruno@clisp.org>
64179
64180         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64181         strptime.
64182         * modules/strptime (Depends-on): Add stdbool.
64183         * lib/strptime.h: Include <time.h> always. Add comments.
64184
64185 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64186
64187         * modules/strptime: New file.
64188         * lib/strptime.h: New file.
64189         * lib/strptime.c: New file.
64190         * m4/strptime.m4: New file.
64191
64192 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64193
64194         * MODULES.html.sh: New module mpsort.
64195         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64196
64197         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64198         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64199         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64200         All uses changed.
64201         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64202         All uses changed.
64203         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64204         to _Restrict_.
64205         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64206         the parameter matches the prototype.
64207
64208 2007-01-28  Jim Meyering  <jim@meyering.net>
64209
64210         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64211         sys/time.h here, reverting that part of the previous patch:
64212         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64213
64214 2007-01-28  Bruno Haible  <bruno@clisp.org>
64215
64216         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64217         value of $(SYS_TIME_H).
64218         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64219         remove it conditionally, too. [added by Jim Meyering]
64220         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64221         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64222         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64223         GETTIMEOFDAY_REPLACEMENT to 1.
64224
64225 2007-01-28  Bruno Haible  <bruno@clisp.org>
64226
64227         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64228         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64230         Set UNISTD_H instead of UNISTD_H2.
64231         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64232
64233 2007-01-28  Bruno Haible  <bruno@clisp.org>
64234
64235         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64236         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64237
64238 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64239
64240         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64241         (func_create_testdir): Ensure C locale for `grep' and `tr'
64242         character ranges.
64243         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64244         ACLOCAL_AMFLAGS parsing state machine.
64245
64246 2007-01-27  Bruno Haible  <bruno@clisp.org>
64247
64248         * modules/unistr/base: Update.
64249
64250 2007-01-27  Bruno Haible  <bruno@clisp.org>
64251
64252         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64253         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64254         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64255         modules/unistr/u32-mbtouc.
64256         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64257         * lib/unistr.h: Update.
64258         * lib/linebreak.c: Update.
64259         * modules/unistr/u32-mbtouc: Renamed from
64260         modules/unistr/u32-mbtouc-safe.
64261         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64262         * lib/unistr.h: Update.
64263         * lib/unistr/u32-to-u8.c: Update.
64264         * lib/unistr/u32-to-u16.c: Update.
64265
64266 2007-01-27  Bruno Haible  <bruno@clisp.org>
64267
64268         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64269         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64270         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64271         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64272         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64273         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64274         modules/unistr/u16-mbtouc.
64275         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64276         * lib/unistr.h: Update.
64277         * lib/linebreak.c: Update.
64278         * modules/linebreak: Update.
64279         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64280         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64281         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64282         * modules/unistr/u16-mbtouc: Renamed from
64283         modules/unistr/u16-mbtouc-safe.
64284         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64285         * lib/unistr.h: Update.
64286         * lib/unistr/u16-to-u8.c: Update.
64287         * modules/unistr/u16-to-u8: Update.
64288         * lib/unistr/u16-to-u32.c: Update.
64289         * modules/unistr/u16-to-u32: Update.
64290
64291 2007-01-27  Bruno Haible  <bruno@clisp.org>
64292
64293         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64294         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64295         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64296         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64297         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64298         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64299         modules/unistr/u8-mbtouc.
64300         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64301         * lib/unistr.h: Update.
64302         * lib/striconveh.c: Update.
64303         * modules/striconveh: Update.
64304         * lib/linebreak.c: Update.
64305         * modules/linebreak: Update.
64306         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64307         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64308         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64309         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64310         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64311         * lib/unistr.h: Update.
64312         * lib/striconveh.c: Update.
64313         * modules/striconveh: Update.
64314         * lib/unistr/u8-to-u16.c: Update.
64315         * modules/unistr/u8-to-u16: Update.
64316         * lib/unistr/u8-to-u32.c: Update.
64317         * modules/unistr/u8-to-u32: Update.
64318
64319 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64320
64321         Sync from Libtool.
64322         * lib/argz.c: Do not include strings.h nor memory.h, include
64323         string.h unconditionally.  Patch by Simon Josefsson.
64324
64325 2007-01-27  Bruno Haible  <bruno@clisp.org>
64326
64327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64328         from gl_HEADER_STRING_H_BODY.
64329         (gl_HEADER_STRING_H_BODY): Require it.
64330         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64331         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64332         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64333         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64334         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64335         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64336         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64337         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64338         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64339         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64340         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64341         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64342         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64343         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64344         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64345
64346 2007-01-27  Bruno Haible  <bruno@clisp.org>
64347
64348         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64349         check_PROGRAMS into noinst_PROGRAMS.
64350         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64351         check_PROGRAMS in this case.
64352         (func_import): Set for_test to false.
64353         (func_create_testdir): Set for_test to true.
64354
64355 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64356             Bruno Haible  <bruno@clisp.org>
64357
64358         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64359         (Depends-on): Add string.
64360         (Includes): Use <string.h> instead of strcasestr.h.
64361         * modules/string (Makefile.am): Also substitute the value of
64362         REPLACE_STRCASESTR.
64363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64364         assume strcasestr is declared in <string.h> not <strings.h>. Also
64365         set REPLACE_STRCASESTR.
64366         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64367         REPLACE_STRCASESTR.
64368         * lib/strcasestr.h: Remove file.
64369         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64370         * lib/string_.h (strcasestr): New declaration.
64371
64372 2007-01-27  Bruno Haible  <bruno@clisp.org>
64373
64374         * lib/string_.h: Use 'extern'.
64375
64376 2007-01-27  Jim Meyering  <jim@meyering.net>
64377
64378         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64379         of set-but-not-used local, "q".
64380
64381         * lib/mempcpy.c: Include <config.h> before <string.h>.
64382         This fixes a compilation error on HP-UX, due to the system's
64383         "restrict"-using mempcpy prototype.
64384
64385 2007-01-26  Bruno Haible  <bruno@clisp.org>
64386
64387         Small optimization.
64388         * lib/javacomp.c: Include c-strstr.h.
64389          (is_envjavac_gcj): Use c_strstr instead of strstr.
64390         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64391
64392 2007-01-26  Bruno Haible  <bruno@clisp.org>
64393
64394         * MODULES.html.sh (Unicode string functions): Add the new modules.
64395
64396         * modules/uniconv/u32-strconv-to-locale: New file.
64397         * lib/uniconv/u32-strconv-to-locale.c: New file.
64398
64399         * modules/uniconv/u16-strconv-to-locale: New file.
64400         * lib/uniconv/u16-strconv-to-locale.c: New file.
64401
64402         * modules/uniconv/u8-strconv-to-locale: New file.
64403         * lib/uniconv/u8-strconv-to-locale.c: New file.
64404
64405         * modules/uniconv/u32-strconv-from-locale: New file.
64406         * lib/uniconv/u32-strconv-from-locale.c: New file.
64407
64408         * modules/uniconv/u16-strconv-from-locale: New file.
64409         * lib/uniconv/u16-strconv-from-locale.c: New file.
64410
64411         * modules/uniconv/u8-strconv-from-locale: New file.
64412         * lib/uniconv/u8-strconv-from-locale.c: New file.
64413
64414         * modules/uniconv/u32-strconv-to-enc: New file.
64415         * lib/uniconv/u32-strconv-to-enc.c: New file.
64416         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64417         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64418
64419         * modules/uniconv/u16-strconv-to-enc: New file.
64420         * lib/uniconv/u16-strconv-to-enc.c: New file.
64421         * lib/uniconv/u-strconv-to-enc.h: New file.
64422         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64423         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64424
64425         * modules/uniconv/u8-strconv-to-enc: New file.
64426         * lib/uniconv/u8-strconv-to-enc.c: New file.
64427         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64428         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64429
64430         * modules/uniconv/u32-strconv-from-enc: New file.
64431         * lib/uniconv/u32-strconv-from-enc.c: New file.
64432         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64433         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64434
64435         * modules/uniconv/u16-strconv-from-enc: New file.
64436         * lib/uniconv/u16-strconv-from-enc.c: New file.
64437         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64438         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64439
64440         * modules/uniconv/u8-strconv-from-enc: New file.
64441         * lib/uniconv/u8-strconv-from-enc.c: New file.
64442         * lib/uniconv/u-strconv-from-enc.h: New file.
64443         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64444         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64445
64446         * modules/uniconv/u32-conv-from-enc: New file.
64447         * lib/uniconv/u32-conv-from-enc.c: New file.
64448         * modules/uniconv/u32-conv-from-enc-tests: New file.
64449         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64450
64451         * modules/uniconv/u16-conv-from-enc: New file.
64452         * lib/uniconv/u16-conv-from-enc.c: New file.
64453         * lib/uniconv/u-conv-from-enc.h: New file.
64454         * modules/uniconv/u16-conv-from-enc-tests: New file.
64455         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64456
64457         * modules/uniconv/u8-conv-from-enc: New file.
64458         * lib/uniconv/u8-conv-from-enc.c: New file.
64459         * modules/uniconv/u8-conv-from-enc-tests: New file.
64460         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64461
64462         * modules/uniconv/base: New file.
64463         * lib/uniconv.h: New file.
64464
64465 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64466
64467         * doc/gnulib-tool.texi (Initial import): Update to match current
64468         behavior with strdup module.
64469         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64470         * lib/memmem.h: Remove; all uses removed.  This is now done
64471         by <string.h>.
64472         * lib/mempcpy.h: Likewise.
64473         * lib/memrchr.h: Likewise.
64474         * lib/stpcpy.h: Likewise.
64475         * lib/stpncpy.h: Likewise.
64476         * lib/strcase.h: Likewise.
64477         * lib/strchrnul.h: Likewise.
64478         * lib/strdup.h: Likewise.
64479         * lib/strndup.h: Likewise.
64480         * lib/strnlen.h: Likewise.
64481         * lib/strpbrk.h: Likewise.
64482         * lib/strsep.h: Likewise.
64483         * lib/strstr.h: Likewise.
64484         * lib/strtok_r.h: Likewise.
64485         * lib/string_.h: New file.
64486         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64487         Rely on <string.h> instead.
64488         * lib/canon-host.c: Likewise.
64489         * lib/chdir-long.c: Likewise.
64490         * lib/concatpath.c: Likewise.
64491         * lib/exclude.c: Likewise.
64492         * lib/fchdir.c: Likewise.
64493         * lib/getaddrinfo.c: Likewise.
64494         * lib/getcwd.c: Likewise.
64495         * lib/getsubopt.c: Likewise.
64496         * lib/glob.c: Likewise.
64497         * lib/hard-locale.c: Likewise.
64498         * lib/iconvme.c: Likewise.
64499         * lib/javacomp.c: Likewise.
64500         * lib/mempcpy.c: Likewise.
64501         * lib/memrchr.c: Likewise.
64502         * lib/regex_internal.h: Likewise.
64503         * lib/stpncpy.c: Likewise.
64504         * lib/strcasecmp.c: Likewise.
64505         * lib/strchrnul.c: Likewise.
64506         * lib/strdup.c: Likewise.
64507         * lib/striconv.c: Likewise.
64508         * lib/striconveh.c: Likewise.
64509         * lib/striconveha.c: Likewise.
64510         * lib/strncasecmp.c: Likewise.
64511         * lib/strndup.c: Likewise.
64512         * lib/strnlen.c: Likewise.
64513         * lib/strsep.c: Likewise.
64514         * lib/strstr.c: Likewise.
64515         * lib/strtok_r.c: Likewise.
64516         * lib/userspec.c: Likewise.
64517         * lib/w32spawn.h: Likewise.
64518         * lib/xstrndup.c: Likewise.
64519         * lib/mountlist.c (strstr): Remove decl.
64520         * m4/string_h.m4: New file.
64521         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64522         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64523         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64524         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64525         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64526         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64527         Set REPLACE_STRCASECMP if necessary.
64528         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64529         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64530         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64531         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64532         HAVE_DECL_STRDUP if necessary.
64533         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64534         since gl_FUNC_STRNDUP does that now.
64535         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64536         Check for decl here...
64537         (gl_PREREQ_STRNLEN): ... not here.
64538         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64539         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64540         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64541         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64542         necessary.
64543         * modules/string: New file.
64544         * modules/memmem (Files): Remove special-purpose include file.
64545         (Depends-on): Add string.
64546         (Include): Include <string.h>, not the removed file.
64547         * modules/mempcpy: Likewise.
64548         * modules/memrchr: Likewise.
64549         * modules/stpcpy: Likewise.
64550         * modules/stpncpy: Likewise.
64551         * modules/strcase: Likewise.
64552         * modules/strchrnul: Likewise.
64553         * modules/strdup: Likewise.
64554         * modules/strndup: Likewise.
64555         * modules/strnlen: Likewise.
64556         * modules/strpbrk: Likewise.
64557         * modules/strsep: Likewise.
64558         * modules/strstr: Likewise.
64559         * modules/strtok_r: Likewise.
64560         * tests/test-dirname.c: Don't include "strdup.h", since
64561         <string.h> now suffices.
64562         * tests/test-memmem.c: Don't include "memmem.h", since
64563         <string.h> now suffices.
64564
64565 2007-01-25  Bruno Haible  <bruno@clisp.org>
64566
64567         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64568         *resultp is 0.
64569
64570         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64571         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64572         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64573         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64574
64575         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64576         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64577         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64578         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64579         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64580         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64581
64582 2007-01-24  Bruno Haible  <bruno@clisp.org>
64583
64584         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64585         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64586         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64587         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64588         gl_FUNC_FTS_CORE.
64589         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64590         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64591         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64592         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64593         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64594         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64595         gl_FUNC_FCHOWNAT.
64596         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64597         gl_FUNC_STRFTIME.
64598         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64599         Reported by Ralf Wildenhues.
64600
64601 2007-01-24  Bruno Haible  <bruno@clisp.org>
64602
64603         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64604         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64605         gl_GETADDRINFO.
64606         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64607         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64608         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64609
64610 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64611
64612         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64613         Don't use 'exit'; just return from 'main'.
64614         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64615
64616         * lib/fnmatch_.h: Readjust white space and comments to match
64617         glibc, to avoid spurious diffs.
64618
64619 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64620
64621         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64622         2004-12-01 change by Jakub Jelinek, since this code won't compile
64623         if !LIBC.  Problem reported by Bob Proulx.
64624
64625 2007-01-23  Bruno Haible  <bruno@clisp.org>
64626
64627         * lib/striconveh.c: Include c-strcaseeq.h.
64628         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64629         * modules/striconveh (Depends-on): Add c-strcaseeq.
64630
64631 2007-01-23  Bruno Haible  <bruno@clisp.org>
64632
64633         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64634
64635         * modules/c-strcaseeq: New file.
64636         * lib/c-strcaseeq.h: New file.
64637
64638         * modules/streq: New file.
64639         * lib/streq.h: New file.
64640
64641 2007-01-23  Bruno Haible  <bruno@clisp.org>
64642
64643         * modules/striconveha-tests: New file.
64644         * tests/test-striconveha.c: New file.
64645
64646         * lib/striconveha.h: Include <stdbool.h>.
64647         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64648         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64649         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64650         (mem_iconveha): New function.
64651         (str_iconveha_notranslit): Renamed from str_iconveha.
64652         (str_iconveha): New function.
64653         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64654         c-strcase.
64655
64656 2007-01-23  Bruno Haible  <bruno@clisp.org>
64657
64658         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64659         encodings without forgiving before trying any encoding with handler.
64660         (str_iconveha): Try all encodings without forgiving before trying any
64661         encoding with handler.
64662
64663 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64664
64665         Import the following changes from libc.
64666
64667         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64668
64669         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64670
64671         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64672
64673         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64674         normal_bracket label.
64675
64676         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64677
64678         [BZ #361]
64679         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64680         to normal_bracket after fetching the next character.
64681
64682 2007-01-22  Bruno Haible  <bruno@clisp.org>
64683
64684         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64685         argument.
64686         * lib/striconveh.c (iconv_carefully_1): New function.
64687         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64688         argument.
64689         (str_cd_iconveh): Update.
64690         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64691         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64692         * tests/test-striconveh.c (MAGIC): New macro.
64693         (new_offsets): New function.
64694         (main): Test call with and without offsets.
64695
64696 2007-01-22  Bruno Haible  <bruno@clisp.org>
64697
64698         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64699         * modules/sys_select (Makefile.am): Likewise.
64700         * modules/sys_socket (Makefile.am): Likewise.
64701         * modules/sys_time (Makefile.am): Likewise.
64702
64703 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64704
64705         * modules/gettimeofday (License): Change from GPL to LGPL, since
64706         gettimeofday is a library function.
64707
64708 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64709
64710         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64711
64712 2007-01-21  Bruno Haible  <bruno@clisp.org>
64713
64714         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64715
64716 2007-01-21  Bruno Haible  <bruno@clisp.org>
64717
64718         * modules/striconveha: New file.
64719         * lib/striconveha.h: New file.
64720         * lib/striconveha.c: New file.
64721         * MODULES.html.sh (Internationalization functions): Add striconveha.
64722         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64723         string.
64724         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64725
64726 2007-01-21  Bruno Haible  <bruno@clisp.org>
64727
64728         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64729         * lib/striconveh.c (str_iconveh): Likewise.
64730
64731 2007-01-21  Bruno Haible  <bruno@clisp.org>
64732
64733         * lib/striconveh.h (mem_iconveh): New declaration.
64734         * lib/striconveh.c (mem_iconveh): New function.
64735         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64736
64737 2007-01-21  Bruno Haible  <bruno@clisp.org>
64738
64739         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64740
64741         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64742         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64743         original result buffer.
64744         (str_cd_iconveh): Update.
64745         * tests/test-striconveh.c (main): Update.
64746
64747         * lib/striconv.h (mem_cd_iconv): Change specification.
64748         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64749         result buffer.
64750         (str_cd_iconv): Update.
64751         * tests/test-striconv.c (main): Update.
64752
64753 2007-01-21  Bruno Haible  <bruno@clisp.org>
64754
64755         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64756
64757 2007-01-20  Jim Meyering  <jim@meyering.net>
64758
64759         * lib/userspec.c (parse_with_separator): If a user or group string
64760         starts with "+", skip the corresponding name-to-ID look-up, since
64761         such a look-up must fail: user and group names may not include "+".
64762
64763 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64766         since we now assume the sys_time module.
64767         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64768         check for sys/time.h; no longer needed.
64769         * modules/poll (Depends-on): Depend on sys_time.
64770
64771 2007-01-18  Bruno Haible  <bruno@clisp.org>
64772
64773         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64774         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64775
64776         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64777         gettimeofday.
64778
64779         * tests/test-gettimeofday.c: Include <time.h>.
64780         (dummy): Remove variable.
64781
64782         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64783         gl_HEADER_SYS_TIME_H.
64784         (gl_HEADER_SYS_TIME_H): New macro.
64785
64786         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64787         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64788         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64789         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64790         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64791         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64792         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64793         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64794         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64795         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64796         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64797
64798         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64799         last change; it caused a compilation error when cross-compiling to
64800         Cygwin.
64801
64802 2007-01-18  Jim Meyering  <jim@meyering.net>
64803
64804         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64805         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64806         than the race-prone "test -d sys || mkdir sys".
64807         (configure.ac): Use AC_PROG_MKDIR_P.
64808         * modules/sys_select: Likewise.
64809         * modules/sys_socket: Likewise.
64810         * modules/sys_time: Likewise.
64811
64812 2007-01-18  Eric Blake  <ebb9@byu.net>
64813
64814         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64815         replace gettimeofday.
64816         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64817         name, to avoid infinite recursion.
64818
64819 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64820
64821         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64822         module sys_time.
64823         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64824         assume timespec.h defines struct timeval.
64825         * lib/settime.c: Likewise.
64826         * lib/utimens.c: Likewise.
64827         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64828         since we now assume the gettimeofday module.
64829         * lib/tempname.c (__gen_tempname): Likewise.
64830         * lib/gettimeofday.h: Remove.
64831         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64832         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64833         Include <time.h>, for 'time()'.
64834         (localtime_buffer_addr): Also use this workaround if
64835         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64836         to simplify the uses.  All uses changed.
64837         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64838         that #undef is inside {}, and 'const' follows type name consistently.
64839         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64840         (gettimeofday): Do not use the maximum possible value for
64841         tv->tv_usec, since that might break usages other than ls.c.
64842         Instead, we'll leave ls.c alone.  This undoes today's patch
64843         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64844         we've never observed the problem but might as well keep the
64845         canary.
64846         * lib/nanosleep.c: Include timespec.h first, for interface check.
64847         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64848         now assume the sys_time module.
64849         * lib/tempname.c: Likewise.
64850         * lib/timespec.h: Likewise.
64851         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64852         needed.
64853         * lib/strftime.c: Likewise.
64854         * lib/timespec.h: Likewise.
64855         * lib/posixtm.c: Include posixtm.h first, for interface check.
64856         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64857         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64858         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64859         * lib/sys_time_.h: New file.
64860         * lib/timespec.h (struct timespec): Use long int, not long.
64861         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64862         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64863         Remove obsolescent call to AC_HEADER_TIME.
64864         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64866         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64867         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64868         Likewise.
64869         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64870         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64872         into the sys_time module.  Check for gettimeofday just once.
64873         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64874         for gettimeofday signature to just check the signature.  Merely
64875         compile it, since linking doesn't test signature.  Improve test for
64876         whether gettimeofday.o is actually needed.
64877         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64878         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64879         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64880         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64881         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64882         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64883         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64884         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64885         than worrying about sys/time.h.
64886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64887         Don't bother worrying about TIME_WITH_SYS_TIME.
64888         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64889         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64890         * m4/sys_time_h.m4: New file.
64891         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64892         Don't include sys/time.h.  Return from main rather than exiting.
64893         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64894         all uses changed.
64895         * modules/gethrxtime (Depends-on): Add sys_time.
64896         * modules/gettime (Depends-on): Likewise.
64897         * modules/gettimeofday (Depends-on): Likewise.
64898         * modules/nanosleep (Depends-on): Likewise.
64899         * modules/settime (Depends-on): Likewise.
64900         * modules/tempname (Depends-on): Likewise.
64901         * modules/utimens (Depends-on): Likewise.
64902         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64903         (Include): Change back to <sys/time.h>.
64904         (Maintainer): Add self.
64905         * modules/sys_time: New file.
64906         * modules/tempname (Depends-on): Add gettimeofday.
64907         * tests/test-gettimeofday.c: Include <sys/time.h>
64908         rather than gettimeofday.h.
64909
64910 2007-01-17  Bruno Haible  <bruno@clisp.org>
64911
64912         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64913         the license default to GPL.
64914         (func_create_testdir): Don't complain if a module is LGPL and its
64915         tests module depends on GPLed modules.
64916
64917 2007-01-17  Bruno Haible  <bruno@clisp.org>
64918
64919         * lib/gettimeofday.c (gettimeofday): Add code for the case
64920         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64921         maximum possible value for tv->tv_usec, rather than the minimum one.
64922
64923 2005-10-08  Martin Lambers  <marlam@marlam.de>
64924 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64925 2007-01-16  Bruno Haible  <bruno@clisp.org>
64926
64927         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64928         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
64929         gl_FUNC_GETTIMEOFDAY.
64930         (Include): Add gettimeofday.h.
64931         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
64932         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
64933         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
64934         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
64935         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
64936         * lib/gettimeofday.h: New file.
64937         * lib/gettimeofday.c: Include <sys/timeb.h>.
64938         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
64939         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64940         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
64941         fall back on time().
64942
64943         * tests/test-gettimeofday.c: New file.
64944         * modules/gettimeofday-tests: New file.
64945
64946 2007-01-16  Eric Blake  <ebb9@byu.net>
64947
64948         * modules/fnmatch (Depends-on): Depend on wchar.
64949         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
64950         * m4/fnmatch.m4: Likewise.
64951         * modules/mbchar (Makefile.am): Assume <wchar.h>.
64952         * m4/mbchar.m4: Likewise.
64953         * modules/mbswidth (Depends-on): Depend on wchar.
64954         * lib/mbswidth.c: Assume <wchar.h>.
64955         * m4/mbswidth.m4: Likewise.
64956         * modules/quotearg (Depends-on): Depend on wchar.
64957         * lib/quotearg.c: Assume <wchar.h>.
64958         * m4/quotearg.m4: Likewise.
64959         * modules/regex (Depends-on): Depend on wchar.
64960         * lib/regex_internal.h: Assume <wchar.h>.
64961         * m4/regex.m4: Likewise.
64962         * modules/stdint (Depends-on): Depend on wchar.
64963         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
64964         * m4/stdint.m4: Likewise.
64965         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
64966         * modules/strftime (Depends-on): Depend on wchar.
64967         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
64968         * modules/strtol (Depends-on): Depend on wchar.
64969         * lib/strtol.c: Assume <wchar.h>.
64970         * modules/wcwidth (Depends-on): Depend on wchar.
64971         * lib/wcwidth.h: Assume <wchar.h>.
64972         * m4/wcwidth.m4: Likewise.
64973
64974 2007-01-16  Bruno Haible  <bruno@clisp.org>
64975
64976         * modules/csharpexec-script: New, created from...
64977         * modules/csharpexec: ... this.
64978
64979 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
64980
64981         * modules/javaexec-script: New, created from...
64982         * modules/javaexec: ... this.
64983
64984 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64985
64986         * modules/poll (Dependencies): Add sys_select.
64987
64988 2007-01-15  Jim Meyering  <jim@meyering.net>
64989
64990         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
64991         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
64992         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
64993         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
64994
64995 2007-01-15  Bruno Haible  <bruno@clisp.org>
64996
64997         * modules/striconveh: New file.
64998         * lib/striconveh.h: New file.
64999         * lib/striconveh.c: New file.
65000         * MODULES.html.sh (Internationalization functions): Add striconveh.
65001
65002         * modules/striconveh-tests: New file.
65003         * tests/test-striconveh.c: New file.
65004
65005 2007-01-15  Bruno Haible  <bruno@clisp.org>
65006
65007         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65008         not from GNU libiconv or GNU libc.
65009
65010 2007-01-15  Bruno Haible  <bruno@clisp.org>
65011
65012         * doc/gnulib-intro.texi (Copyright): Explain the different license
65013         terms for module descriptions, autoconf macros, tests, documentation.
65014
65015 2007-01-14  Bruno Haible  <bruno@clisp.org>
65016
65017         * modules/striconv-tests: New file.
65018         * tests/test-striconv.c: New file.
65019
65020 2007-01-14  Bruno Haible  <bruno@clisp.org>
65021
65022         * modules/iconv-tests: New file.
65023         * tests/test-iconv.c: New file.
65024
65025 2007-01-14  Bruno Haible  <bruno@clisp.org>
65026
65027         * gnulib-tool (func_get_license): For test modules, use the license of
65028         the main module.
65029
65030 2007-01-14  Bruno Haible  <bruno@clisp.org>
65031
65032         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65033         if iconv is found to exist.
65034
65035 2007-01-14  Bruno Haible  <bruno@clisp.org>
65036
65037         * modules/c-ctype-tests: New file.
65038         * tests/test-c-ctype.c: New file.
65039
65040 2007-01-14  Bruno Haible  <bruno@clisp.org>
65041
65042         * modules/binary-io-tests: New file.
65043         * tests/test-binary-io.sh: New file.
65044         * tests/test-binary-io.c: New file.
65045
65046 2007-01-14  Bruno Haible  <bruno@clisp.org>
65047
65048         * modules/array-oset-tests: New file.
65049         * tests/test-array_oset.c: New file.
65050
65051 2007-01-14  Bruno Haible  <bruno@clisp.org>
65052
65053         * modules/array-list-tests: New file.
65054         * tests/test-array_list.c: New file.
65055
65056 2007-01-14  Bruno Haible  <bruno@clisp.org>
65057
65058         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65059         and make.
65060         Reported by Simon Josefsson in
65061         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65062
65063 2007-01-14  Bruno Haible  <bruno@clisp.org>
65064
65065         * modules/allocsa-tests: New file.
65066         * tests/test-allocsa.c: New file.
65067
65068 2007-01-14  Bruno Haible  <bruno@clisp.org>
65069
65070         * modules/fchdir (Depends-on): Add absolute-header.
65071         * modules/unistd (Depends-on): Likewise.
65072
65073 2006-12-30  Bruno Haible  <bruno@clisp.org>
65074
65075         * modules/fchdir: New file.
65076         * modules/unistd (Files): Add lib/unistd_.h.
65077         (Makefile.am): Generate unistd.h from unistd_.h.
65078         * lib/fchdir.c: New file.
65079         * lib/dirent_.h: New file.
65080         * lib/unistd_.h: New file.
65081         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65082         * m4/fchdir.m4: New file.
65083         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65084         (gl_HEADER_UNISTD): Invoke it.
65085         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65086         function.
65087         * lib/backupfile.c (opendir, closedir): Undefine.
65088         * lib/chown.c (open, close): Undefine.
65089         * lib/clean-temp.c (open, close): Undefine.
65090         * lib/copy-file.c (open, close): Undefine.
65091         * lib/execute.c (open, close): Undefine.
65092         * lib/fsusage.c (open, close): Undefine.
65093         * lib/gc-gnulib.c (open, close): Undefine.
65094         * lib/getcwd.c (opendir, closedir): Undefine.
65095         * lib/glob.c (opendir, closedir): Undefine.
65096         * lib/javacomp.c (open, close): Undefine.
65097         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65098         * lib/openat-proc.c (open, close): Undefine.
65099         * lib/pagealign_alloc.c (open, close): Undefine.
65100         * lib/pipe.c (open, close): Undefine.
65101         * lib/progreloc.c (open, close): Undefine.
65102         * lib/savedir.c (opendir, closedir): Undefine.
65103         * lib/utime.c (open, close): Undefine.
65104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65105
65106 2007-01-10  Bruno Haible  <bruno@clisp.org>
65107
65108         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65109
65110 2007-01-12  Eric Blake  <ebb9@byu.net>
65111
65112         Provide a robust <wchar.h>.  Further simplifications are now
65113         possible in other modules, but not included here.
65114         * modules/wchar: New module.
65115         * m4/wchar.m4: New file.
65116         * lib/wchar_.h: Likewise.
65117         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65118         of the new module.
65119         * MODULES.html.sh (Extended multibyte and wide character utilities):
65120         New section.
65121
65122 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65123
65124         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65125         to a reasonable default for memory allocation.
65126         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65127         file system that reports garbage st_size values for symlinks.
65128         Problem reported by Liyang Hu.
65129
65130 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65131
65132         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65133         Emacs .#* auto-save files).
65134
65135 2007-01-11  Bruno Haible  <bruno@clisp.org>
65136
65137         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65138         directory.
65139
65140 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65141
65142         Use @...@ consistently in lib/wctype_.h.
65143         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65144         on it being set to 1 or 0.
65145         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65146         go back to AC_SUBSTing it.
65147         * modules/wctype (Makefile.am): Undo previous change.
65148
65149 2007-01-10  Eric Blake  <ebb9@byu.net>
65150
65151         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65152         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65153         * modules/wctype (Makefile.am): Likewise.
65154         Reported by Chris McGuire.
65155
65156 2007-01-10  Jim Meyering  <jim@meyering.net>
65157
65158         fts.c: a small readability/maintainability improvement
65159         * lib/fts.c (fts_read): Make this code slightly more readable and
65160         maintainable by hoisting the "sp->fts_cur = p" assignments to
65161         immediately follow the statements that set P.  Derived from
65162         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65163
65164 2007-01-10  Eric Blake  <ebb9@byu.net>
65165
65166         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65167         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65168         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65169         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65170         Reported by Chris McGuire.
65171
65172 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65173
65174         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65175         in sed script.
65176
65177 2007-01-09  Bruno Haible  <bruno@clisp.org>
65178
65179         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65180         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65181         variables.
65182         (func_module): Use them.
65183
65184 2007-01-09  Bruno Haible  <bruno@clisp.org>
65185
65186         * modules/unistr/base: New file.
65187         * lib/unistr.h: New file.
65188
65189         * modules/unistr/u8-to-u16: New file.
65190         * lib/unistr/u8-to-u16.c: New file.
65191
65192         * modules/unistr/u8-to-u32: New file.
65193         * lib/unistr/u8-to-u32.c: New file.
65194
65195         * modules/unistr/u16-to-u8: New file.
65196         * lib/unistr/u16-to-u8.c: New file.
65197
65198         * modules/unistr/u16-to-u32: New file.
65199         * lib/unistr/u16-to-u32.c: New file.
65200
65201         * modules/unistr/u32-to-u8: New file.
65202         * lib/unistr/u32-to-u8.c: New file.
65203
65204         * modules/unistr/u32-to-u16: New file.
65205         * lib/unistr/u32-to-u16.c: New file.
65206
65207         * modules/unistr/u8-check: New file.
65208         * modules/unistr/u16-check: New file.
65209         * modules/unistr/u32-check: New file.
65210         * lib/unistr/u8-check.c: New file.
65211         * lib/unistr/u16-check.c: New file.
65212         * lib/unistr/u32-check.c: New file.
65213
65214         * modules/unistr/u8-chr: New file.
65215         * modules/unistr/u16-chr: New file.
65216         * modules/unistr/u32-chr: New file.
65217         * lib/unistr/u8-chr.c: New file.
65218         * lib/unistr/u16-chr.c: New file.
65219         * lib/unistr/u32-chr.c: New file.
65220
65221         * modules/unistr/u8-cmp: New file.
65222         * modules/unistr/u16-cmp: New file.
65223         * modules/unistr/u32-cmp: New file.
65224         * lib/unistr/u8-cmp.c: New file.
65225         * lib/unistr/u16-cmp.c: New file.
65226         * lib/unistr/u32-cmp.c: New file.
65227
65228         * modules/unistr/u8-cpy: New file.
65229         * modules/unistr/u16-cpy: New file.
65230         * modules/unistr/u32-cpy: New file.
65231         * lib/unistr/u8-cpy.c: New file.
65232         * lib/unistr/u16-cpy.c: New file.
65233         * lib/unistr/u32-cpy.c: New file.
65234         * lib/unistr/u-cpy.h: New file.
65235
65236         * modules/unistr/u8-cpy-alloc: New file.
65237         * modules/unistr/u16-cpy-alloc: New file.
65238         * modules/unistr/u32-cpy-alloc: New file.
65239         * lib/unistr/u8-cpy-alloc.c: New file.
65240         * lib/unistr/u16-cpy-alloc.c: New file.
65241         * lib/unistr/u32-cpy-alloc.c: New file.
65242         * lib/unistr/u-cpy-alloc.h: New file.
65243
65244         * modules/unistr/u8-endswith: New file.
65245         * modules/unistr/u16-endswith: New file.
65246         * modules/unistr/u32-endswith: New file.
65247         * lib/unistr/u8-endswith.c: New file.
65248         * lib/unistr/u16-endswith.c: New file.
65249         * lib/unistr/u32-endswith.c: New file.
65250         * lib/unistr/u-endswith.h: New file.
65251
65252         * modules/unistr/u8-mblen: New file.
65253         * modules/unistr/u16-mblen: New file.
65254         * modules/unistr/u32-mblen: New file.
65255         * lib/unistr/u8-mblen.c: New file.
65256         * lib/unistr/u16-mblen.c: New file.
65257         * lib/unistr/u32-mblen.c: New file.
65258
65259         * modules/unistr/u8-mbtouc: New file.
65260         * modules/unistr/u16-mbtouc: New file.
65261         * modules/unistr/u32-mbtouc: New file.
65262         * lib/unistr/u8-mbtouc.c: New file.
65263         * lib/unistr/u16-mbtouc.c: New file.
65264         * lib/unistr/u32-mbtouc.c: New file.
65265
65266         * modules/unistr/u8-mbtouc-safe: New file.
65267         * modules/unistr/u16-mbtouc-safe: New file.
65268         * modules/unistr/u32-mbtouc-safe: New file.
65269         * lib/unistr/u8-mbtouc-safe.c: New file.
65270         * lib/unistr/u16-mbtouc-safe.c: New file.
65271         * lib/unistr/u32-mbtouc-safe.c: New file.
65272
65273         * modules/unistr/u8-move: New file.
65274         * modules/unistr/u16-move: New file.
65275         * modules/unistr/u32-move: New file.
65276         * lib/unistr/u8-move.c: New file.
65277         * lib/unistr/u16-move.c: New file.
65278         * lib/unistr/u32-move.c: New file.
65279         * lib/unistr/u-move.h: New file.
65280
65281         * modules/unistr/u8-next: New file.
65282         * modules/unistr/u16-next: New file.
65283         * modules/unistr/u32-next: New file.
65284         * lib/unistr/u8-next.c: New file.
65285         * lib/unistr/u16-next.c: New file.
65286         * lib/unistr/u32-next.c: New file.
65287
65288         * modules/unistr/u8-prev: New file.
65289         * modules/unistr/u16-prev: New file.
65290         * modules/unistr/u32-prev: New file.
65291         * lib/unistr/u8-prev.c: New file.
65292         * lib/unistr/u16-prev.c: New file.
65293         * lib/unistr/u32-prev.c: New file.
65294
65295         * modules/unistr/u8-set: New file.
65296         * modules/unistr/u16-set: New file.
65297         * modules/unistr/u32-set: New file.
65298         * lib/unistr/u8-set.c: New file.
65299         * lib/unistr/u16-set.c: New file.
65300         * lib/unistr/u32-set.c: New file.
65301         * lib/unistr/u-set.h: New file.
65302
65303         * modules/unistr/u8-startswith: New file.
65304         * modules/unistr/u16-startswith: New file.
65305         * modules/unistr/u32-startswith: New file.
65306         * lib/unistr/u8-startswith.c: New file.
65307         * lib/unistr/u16-startswith.c: New file.
65308         * lib/unistr/u32-startswith.c: New file.
65309         * lib/unistr/u-startswith.h: New file.
65310
65311         * modules/unistr/u8-stpcpy: New file.
65312         * modules/unistr/u16-stpcpy: New file.
65313         * modules/unistr/u32-stpcpy: New file.
65314         * lib/unistr/u8-stpcpy.c: New file.
65315         * lib/unistr/u16-stpcpy.c: New file.
65316         * lib/unistr/u32-stpcpy.c: New file.
65317         * lib/unistr/u-stpcpy.h: New file.
65318
65319         * modules/unistr/u8-stpncpy: New file.
65320         * modules/unistr/u16-stpncpy: New file.
65321         * modules/unistr/u32-stpncpy: New file.
65322         * lib/unistr/u8-stpncpy.c: New file.
65323         * lib/unistr/u16-stpncpy.c: New file.
65324         * lib/unistr/u32-stpncpy.c: New file.
65325         * lib/unistr/u-stpncpy.h: New file.
65326
65327         * modules/unistr/u8-strcat: New file.
65328         * modules/unistr/u16-strcat: New file.
65329         * modules/unistr/u32-strcat: New file.
65330         * lib/unistr/u8-strcat.c: New file.
65331         * lib/unistr/u16-strcat.c: New file.
65332         * lib/unistr/u32-strcat.c: New file.
65333         * lib/unistr/u-strcat.h: New file.
65334
65335         * modules/unistr/u8-strchr: New file.
65336         * modules/unistr/u16-strchr: New file.
65337         * modules/unistr/u32-strchr: New file.
65338         * lib/unistr/u8-strchr.c: New file.
65339         * lib/unistr/u16-strchr.c: New file.
65340         * lib/unistr/u32-strchr.c: New file.
65341
65342         * modules/unistr/u8-strcmp: New file.
65343         * modules/unistr/u16-strcmp: New file.
65344         * modules/unistr/u32-strcmp: New file.
65345         * lib/unistr/u8-strcmp.c: New file.
65346         * lib/unistr/u16-strcmp.c: New file.
65347         * lib/unistr/u32-strcmp.c: New file.
65348
65349         * modules/unistr/u8-strcpy: New file.
65350         * modules/unistr/u16-strcpy: New file.
65351         * modules/unistr/u32-strcpy: New file.
65352         * lib/unistr/u8-strcpy.c: New file.
65353         * lib/unistr/u16-strcpy.c: New file.
65354         * lib/unistr/u32-strcpy.c: New file.
65355         * lib/unistr/u-strcpy.h: New file.
65356
65357         * modules/unistr/u8-strcspn: New file.
65358         * modules/unistr/u16-strcspn: New file.
65359         * modules/unistr/u32-strcspn: New file.
65360         * lib/unistr/u8-strcspn.c: New file.
65361         * lib/unistr/u16-strcspn.c: New file.
65362         * lib/unistr/u32-strcspn.c: New file.
65363         * lib/unistr/u-strcspn.h: New file.
65364
65365         * modules/unistr/u8-strdup: New file.
65366         * modules/unistr/u16-strdup: New file.
65367         * modules/unistr/u32-strdup: New file.
65368         * lib/unistr/u8-strdup.c: New file.
65369         * lib/unistr/u16-strdup.c: New file.
65370         * lib/unistr/u32-strdup.c: New file.
65371         * lib/unistr/u-strdup.h: New file.
65372
65373         * modules/unistr/u8-strlen: New file.
65374         * modules/unistr/u16-strlen: New file.
65375         * modules/unistr/u32-strlen: New file.
65376         * lib/unistr/u8-strlen.c: New file.
65377         * lib/unistr/u16-strlen.c: New file.
65378         * lib/unistr/u32-strlen.c: New file.
65379         * lib/unistr/u-strlen.h: New file.
65380
65381         * modules/unistr/u8-strmblen: New file.
65382         * modules/unistr/u16-strmblen: New file.
65383         * modules/unistr/u32-strmblen: New file.
65384         * lib/unistr/u8-strmblen.c: New file.
65385         * lib/unistr/u16-strmblen.c: New file.
65386         * lib/unistr/u32-strmblen.c: New file.
65387
65388         * modules/unistr/u8-strmbtouc: New file.
65389         * modules/unistr/u16-strmbtouc: New file.
65390         * modules/unistr/u32-strmbtouc: New file.
65391         * lib/unistr/u8-strmbtouc.c: New file.
65392         * lib/unistr/u16-strmbtouc.c: New file.
65393         * lib/unistr/u32-strmbtouc.c: New file.
65394
65395         * modules/unistr/u8-strncat: New file.
65396         * modules/unistr/u16-strncat: New file.
65397         * modules/unistr/u32-strncat: New file.
65398         * lib/unistr/u8-strncat.c: New file.
65399         * lib/unistr/u16-strncat.c: New file.
65400         * lib/unistr/u32-strncat.c: New file.
65401         * lib/unistr/u-strncat.h: New file.
65402
65403         * modules/unistr/u8-strncmp: New file.
65404         * modules/unistr/u16-strncmp: New file.
65405         * modules/unistr/u32-strncmp: New file.
65406         * lib/unistr/u8-strncmp.c: New file.
65407         * lib/unistr/u16-strncmp.c: New file.
65408         * lib/unistr/u32-strncmp.c: New file.
65409
65410         * modules/unistr/u8-strncpy: New file.
65411         * modules/unistr/u16-strncpy: New file.
65412         * modules/unistr/u32-strncpy: New file.
65413         * lib/unistr/u8-strncpy.c: New file.
65414         * lib/unistr/u16-strncpy.c: New file.
65415         * lib/unistr/u32-strncpy.c: New file.
65416         * lib/unistr/u-strncpy.h: New file.
65417
65418         * modules/unistr/u8-strnlen: New file.
65419         * modules/unistr/u16-strnlen: New file.
65420         * modules/unistr/u32-strnlen: New file.
65421         * lib/unistr/u8-strnlen.c: New file.
65422         * lib/unistr/u16-strnlen.c: New file.
65423         * lib/unistr/u32-strnlen.c: New file.
65424         * lib/unistr/u-strnlen.h: New file.
65425
65426         * modules/unistr/u8-strpbrk: New file.
65427         * modules/unistr/u16-strpbrk: New file.
65428         * modules/unistr/u32-strpbrk: New file.
65429         * lib/unistr/u8-strpbrk.c: New file.
65430         * lib/unistr/u16-strpbrk.c: New file.
65431         * lib/unistr/u32-strpbrk.c: New file.
65432         * lib/unistr/u-strpbrk.h: New file.
65433
65434         * modules/unistr/u8-strrchr: New file.
65435         * modules/unistr/u16-strrchr: New file.
65436         * modules/unistr/u32-strrchr: New file.
65437         * lib/unistr/u8-strrchr.c: New file.
65438         * lib/unistr/u16-strrchr.c: New file.
65439         * lib/unistr/u32-strrchr.c: New file.
65440
65441         * modules/unistr/u8-strspn: New file.
65442         * modules/unistr/u16-strspn: New file.
65443         * modules/unistr/u32-strspn: New file.
65444         * lib/unistr/u8-strspn.c: New file.
65445         * lib/unistr/u16-strspn.c: New file.
65446         * lib/unistr/u32-strspn.c: New file.
65447         * lib/unistr/u-strspn.h: New file.
65448
65449         * modules/unistr/u8-strstr: New file.
65450         * modules/unistr/u16-strstr: New file.
65451         * modules/unistr/u32-strstr: New file.
65452         * lib/unistr/u8-strstr.c: New file.
65453         * lib/unistr/u16-strstr.c: New file.
65454         * lib/unistr/u32-strstr.c: New file.
65455         * lib/unistr/u-strstr.h: New file.
65456
65457         * modules/unistr/u8-strtok: New file.
65458         * modules/unistr/u16-strtok: New file.
65459         * modules/unistr/u32-strtok: New file.
65460         * lib/unistr/u8-strtok.c: New file.
65461         * lib/unistr/u16-strtok.c: New file.
65462         * lib/unistr/u32-strtok.c: New file.
65463         * lib/unistr/u-strtok.h: New file.
65464
65465         * modules/unistr/u8-uctomb: New file.
65466         * modules/unistr/u16-uctomb: New file.
65467         * modules/unistr/u32-uctomb: New file.
65468         * lib/unistr/u8-uctomb.c: New file.
65469         * lib/unistr/u16-uctomb.c: New file.
65470         * lib/unistr/u32-uctomb.c: New file.
65471
65472         * MODULES.html.sh (Unicode string functions): Add the new modules.
65473
65474 2007-01-08  Bruno Haible  <bruno@clisp.org>
65475
65476         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65477         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65478         subdirectories.
65479
65480 2007-01-08  Karl Berry  <karl@gnu.org>
65481
65482         * doc/error.texi: mention that main() fns must set program_name
65483         when progname is used.
65484
65485 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65486
65487         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65488         WCTYPE_H is empty, for the benefit of builds from non-distclean
65489         directories.  Problem reported by Eric Blake in
65490         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65491
65492 2007-01-08  Bruno Haible  <bruno@clisp.org>
65493
65494         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65495         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65496         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65497         PROVIDE_CANONICALIZE_FILENAME_MODE.
65498         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65499
65500 2007-01-08  Bruno Haible  <bruno@clisp.org>
65501
65502         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65503         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65504         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65505         * lib/fts.c: Likewise.
65506         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65507
65508 2006-12-25  Bruno Haible  <bruno@clisp.org>
65509
65510         * modules/utf8-ucs4-safe: New file.
65511         * lib/utf8-ucs4-safe.h: New file.
65512         * lib/unistr/utf8-ucs4-safe.c: New file.
65513
65514         * modules/utf16-ucs4-safe: New file.
65515         * lib/utf16-ucs4-safe.h: New file.
65516         * lib/unistr/utf16-ucs4-safe.c: New file.
65517
65518         * MODULES.html.sh (Unicode string functions): Add the new modules.
65519
65520 2007-01-08  Bruno Haible  <bruno@clisp.org>
65521
65522         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65523         (Depends-on): Add unitypes.
65524         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65525         (u8_mbtouc_aux): Move out to separate file.
65526         (u8_mbtouc): Use ucs4_t, uint8_t types.
65527         * lib/unistr/utf8-ucs4.c: New file.
65528
65529         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65530         (Depends-on): Add unitypes.
65531         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65532         (u16_mbtouc_aux): Move out to separate file.
65533         (u16_mbtouc): Use ucs4_t, uint16_t types.
65534         * lib/unistr/utf16-ucs4.c: New file.
65535
65536         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65537         (Depends-on): Add unitypes.
65538         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65539         (u8_uctomb_aux): Move out to separate file.
65540         (u8_uctomb): Use ucs4_t, uint8_t types.
65541         * lib/unistr/ucs4-utf8.c: New file.
65542
65543         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65544         (Depends-on): Add unitypes.
65545         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65546         (u16_uctomb_aux): Move out to separate file.
65547         (u16_uctomb): Use ucs4_t, uint16_t types.
65548         * lib/unistr/ucs4-utf16.c: New file.
65549
65550 2006-12-25  Bruno Haible  <bruno@clisp.org>
65551
65552         * modules/unitypes: New file.
65553         * lib/unitypes.h: New file.
65554         * MODULES.html.sh (func_all_modules): New section "Unicode string
65555         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65556         this section. Add unitypes.
65557
65558 2007-01-08  Bruno Haible  <bruno@clisp.org>
65559
65560         Avoid variable names that conflict with those from libtool.
65561         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65562         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65563         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65564         library_names_spec to acl_library_names_spec, hardcode_* to
65565         acl_hardcode_*.
65566         Reported by Ralf Wildenhues.
65567
65568 2007-01-08  Bruno Haible  <bruno@clisp.org>
65569
65570         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65571         definition.
65572         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65573         definition.
65574         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65575         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65576         definition.
65577         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65578         definition.
65579         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65580         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65581         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65582         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65583         definition.
65584         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65585         definition.
65586         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65587         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65588         GC_USE_<algorithm>.
65589         * lib/gc-libgcrypt.c: Likewise.
65590         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65591         * modules/gc-arctwo (configure.ac): Likewise.
65592         * modules/gc-des (configure.ac): Likewise.
65593         * modules/gc-hmac-md5 (configure.ac): Likewise.
65594         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65595         * modules/gc-md2 (configure.ac): Likewise.
65596         * modules/gc-md4 (configure.ac): Likewise.
65597         * modules/gc-md5 (configure.ac): Likewise.
65598         * modules/gc-random (configure.ac): Likewise.
65599         * modules/gc-rijndael (configure.ac): Likewise.
65600         * modules/gc-sha1 (configure.ac): Likewise.
65601
65602 2007-01-08  Bruno Haible  <bruno@clisp.org>
65603
65604         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65605         macro definition.
65606         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65607         definition.
65608         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65609         definition.
65610         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65611         * modules/fcntl-safer (configure.ac): Likewise.
65612         * modules/fopen-safer (configure.ac): Likewise.
65613         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65614         GNULIB_FWRITEERROR macro definition.
65615
65616 2007-01-08  Bruno Haible  <bruno@clisp.org>
65617
65618         * m4/gnulib-common.m4: New file.
65619         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65620         (func_get_filelist): Add m4/gnulib-common.m4.
65621
65622 2007-01-08  Bruno Haible  <bruno@clisp.org>
65623
65624         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65625         command.
65626
65627 2007-01-08  Jim Meyering  <jim@meyering.net>
65628
65629         Use a more robust test for a "can't happen" condition.
65630         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65631         narrowed the st_size value.  Presuming the "can't happen" condition
65632         is true, that narrowing could conceivably convert an invalid st_size
65633         value into a valid one.  Instead, use a change based on Matthew
65634         Woehlke's original patch.
65635
65636         Slight readability improvement: use an assert-like macro
65637         in place of literal "abort ()" uses.
65638         * lib/fts.c (fts_assert): Define.
65639         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65640         Use this macro instead of a bare 'abort'.
65641
65642 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65643
65644         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65645         simply work around them.
65646         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65647         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65648         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65649         declaring.
65650         Don't bother to define as macros, since the standard doesn't require it.
65651         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65652         longer worry about IRIX 5.3.
65653         (HAVE_WCTYPE_CTMP_BUG): Remove.
65654
65655 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65656
65657         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65658         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65659         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65660         Problems reported by Georg Schwarz for IRIX 5.3.
65661
65662         * gnulib-tool (autoconf_minversion): Take the maximum version number
65663         found, not the minimum.  Problem reported by James Youngman.
65664
65665 2007-01-03  Karl Berry  <karl@gnu.org>
65666
65667         * doc/error.texi: new file, explaining interaction with progname.
65668         * doc/gnulib.texi: include it.  Update copyright.
65669
65670 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65671
65672         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65673         AC_CANONICAL_HOST, to improve autobuild outputs.
65674
65675 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65676             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65677
65678         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65679         sockets, server sockets, and other file descriptors.  Count errors
65680         to compute the return value.  Reorder the code a bit to be easier
65681         to follow.  Don't set event bits that were not requested (except
65682         POLLERR and POLLHUP).
65683
65684 2007-01-01  Bruno Haible  <bruno@clisp.org>
65685
65686         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65687
65688 2007-01-03  Jim Meyering  <jim@meyering.net>
65689
65690         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65691
65692 2007-01-02  Bruno Haible  <bruno@clisp.org>
65693
65694         * modules/settime (Include): Require timespec.h.
65695         * modules/nanosleep (Include): Likewise.
65696
65697 2007-01-01  Bruno Haible  <bruno@clisp.org>
65698
65699         * gnulib-tool (func_emit_copyright_notice): Bump year.
65700         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65701
65702 2007-01-01  Bruno Haible  <bruno@clisp.org>
65703
65704         Improve support for OpenBSD.
65705         * build-aux/config.rpath (libname_spec): Export.
65706         (library_names_spec): New variable. Export.
65707         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65708         library_names_spec from the config.rpath output. Locate shared library
65709         through the name pattern in library_names_spec.
65710
65711 2007-01-01  Eric Blake  <ebb9@byu.net>
65712
65713         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65714
65715 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65718         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65719         assume the C locale, and avoid an "eval" that could cause trouble.
65720         Problem with SORT reported by Bob Proulx.
65721
65722         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65723         Define.  Trivial patch from Henning Nielsen Lund, originally
65724         sent to bug-grep@gnu.org today.
65725
65726 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65727
65728         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65729         struct stat.  Problem reported by Henning Nielsen Lund.
65730         * lib/acl.c: Include acl.h first, to check interface.  Don't
65731         bother to include sys/types.h and sys/stat.h again.
65732
65733 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65734
65735         Import the following change from libc; problem reported by
65736         Sven Verdoolaege.
65737
65738         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65739
65740         [BZ #1373]
65741         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65742
65743 2006-12-28  Jim Meyering  <jim@meyering.net>
65744
65745         * build-aux/announce-gen: Do not assume that the package
65746         builds any of tar.gz, tar.bz2, and .xdelta files.
65747         Suggestion from Simon Josefsson.
65748
65749 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65750
65751         * modules/announce-gen: New file.
65752
65753 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65754
65755         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65756         handles its gotchas now.
65757         * lib/mbswidth.c: Likewise.
65758         * lib/wcwidth.h: Likewise.
65759         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65760         and iswcntrl; the wctype module does this stuff now.
65761         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65762         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65763         * modules/mbchar (Depends-on): Add wctype.
65764         * modules/mbswidth (Depends-on): Likewise.
65765         * modules/wcwidth (Depends-on): Likewise.
65766
65767 2006-12-27  Eric Blake  <ebb9@byu.net>
65768
65769         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65770         module uses more than what <wctype.h> is required to provide.
65771
65772 2006-12-26  Eric Blake  <ebb9@byu.net>
65773
65774         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65775
65776 2006-12-26  Eric Blake  <ebb9@byu.net>
65777
65778         * modules/absolute-header: New module.
65779         * modules/fcntl (Depends-on): Depend on it.
65780         * modules/inttypes (Depends-on): Likewise.
65781         * modules/stdint (Depends-on): Likewise.
65782         * modules/sys_stat (Depends-on): Likewise.
65783         * modules/wctype (Depends-on): Likewise.
65784         * MODULES.html.sh (Support for building libraries and
65785         executables): Document it.
65786
65787 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65788
65789         * gnulib-tool (SED): Remove, undoing previous change.
65790         The problem was that it broke coreutils on Solaris, because
65791         "sed --posix" leaked into a makefile.
65792         (sed): New alias, if 'alias' and GNU sed.
65793
65794 2006-12-24  Jim Meyering  <jim@meyering.net>
65795
65796         Work around an fchownat bug in glibc-2.4:
65797         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65798         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65799         in spite of the -P option.
65800         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65801         New macros.
65802         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65803         * modules/openat (Files): Add lib/fchownat.c.
65804         * lib/openat.c (fchownat): Don't define here.  Move to...
65805         * lib/fchownat.c: ...this new file.
65806
65807 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         Fix bug reported by Bruno Haible in
65810         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65811         where quotearg.c didn't compile on Mac OS X 10.2 because it
65812         lacks <wchar.h> and wint_t.
65813         * lib/wctype_.h (__wctype_wint_t): New type.
65814         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65815         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65816         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65817         Arg is now of type __wctype_wint_t, not wint_t.
65818         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65819         substitute HAVE_WINT_T.
65820         * modules/wctype (Files): Add m4/wint_t.m4.
65821         (wctype.h): Substitute HAVE_WINT_T.
65822
65823 2006-12-23  Bruno Haible  <bruno@clisp.org>
65824
65825         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65826
65827 2006-12-23  Bruno Haible  <bruno@clisp.org>
65828
65829         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65830         S_ISLNK.
65831         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65832         mingw.
65833
65834 2006-12-22  Bruno Haible  <bruno@clisp.org>
65835
65836         * lib/copy-file.c: Include acl.h.
65837         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65838         Close the file descriptors only after being done with copy_acl.
65839         * modules/copy-file (Depends-on): Add acl.
65840
65841 2006-12-22  Bruno Haible  <bruno@clisp.org>
65842
65843         * gnulib-tool (SED): New variable.
65844         Use $SED instead of sed everywhere.
65845
65846 2006-12-22  Bruno Haible  <bruno@clisp.org>
65847
65848         * modules/no-c++: New file.
65849         * m4/no-c++.m4: New file.
65850         * MODULES.html.sh (Support for building libraries and executables):
65851         Add no-c++.
65852
65853 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65856         Include <limits.h>, and use its INT_MAX to rewrite the
65857         j loop so that it does not overflow 'int'.  Problem reported by
65858         Ralf Wildenhues in
65859         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65860         Play it safe by shifting left by 1 rather than multiplying by 2,
65861         as GCC is less likely to optimize this away when the value
65862         is signed (when it assumes overflow leads to undefined behavior).
65863         Also, don't assume time_t uses two's complement.
65864
65865 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65866
65867         * MODULES.html.sh: New module wctype.
65868         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65869         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65870         <wctype.h>, since the new wctype module should fix this.
65871         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65872         the wctype module should arrange for it.
65873         * lib/regex_internal.h: Likewise.
65874         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65875         since the wctype module should handle this now.
65876         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65877         * modules/fnmatch (Depends-on): Add wctype.
65878         * modules/quotearg (Depends-on): Likewise.
65879         * modules/regex (Depends-on): Likewise.
65880
65881 2006-12-19  Bruno Haible  <bruno@clisp.org>
65882
65883         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65884         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65885
65886 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65887
65888         * modules/savewd (Depends-on): Fix dependency on fcntl.
65889
65890 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65891
65892         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65893         conforms to C99, rather than relying on the user's environment
65894         setting of STDINT_H.
65895
65896 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65897         and Eric Blake  <ebb9@byu.net>
65898
65899         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65900         This is more consistent with the other defines here.
65901         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65902         Port to z/OS.  Problem reported by Paul Gilmartin.
65903         Change local vars to use gl_ prefix rather than ac_.
65904         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65905         with other defines.
65906         * modules/double-slash-root: New module.
65907         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65908         (Depends-on): Add double-slash-root.
65909         * MODULES.html.sh (File system functions): Mention new module.
65910
65911 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65912
65913         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65914         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65915         This is for the benefit of gzip, which doesn't do i18n.
65916
65917 2006-12-12  Jim Meyering  <jim@meyering.net>
65918
65919         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65920         Reported by Andreas Schwab <schwab@suse.de>.
65921
65922 2006-12-12  Bruno Haible  <bruno@clisp.org>
65923
65924         Merge these changes.
65925         2006-09-05  Bruno Haible  <bruno@clisp.org>
65926         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65927         iconv_alloc succeeded.
65928         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
65929         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
65930         test for " && dest " at the end - dest is always != NULL there. Call
65931         iconv with 4xNULL arguments initially, to reset the state. Call iconv
65932         with 2xNULL arguments, also to flush the state storage. Handle the
65933         IRIX iconv behaviour. Realloc the final result, to throw away unused
65934         memory.
65935
65936 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
65937
65938         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
65939         and fchmodat unconditionally, since glibc 2.4 has them.
65940         Problem reported by Arkadiusz Miskiewicz.
65941
65942 2006-12-10  Bruno Haible  <bruno@clisp.org>
65943
65944         * gnulib-tool (func_import): Show the include files only for those
65945         modules that are copied and specified.
65946         Reported by Karl Berry.
65947
65948 2006-12-08  Jim Meyering  <jim@meyering.net>
65949
65950         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
65951         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
65952
65953         * build-aux/announce-gen: Add two new options, both optional:
65954         --bootstrap-tools=TOOL_LIST
65955               a comma-separated list of tools, e.g.,
65956               autoconf,automake,bison,gnulib
65957         --gnulib-snapshot-date=DATE
65958               if gnulib is in the bootstrap tool list,
65959               then report this as the snapshot date.
65960               If not specified, use the current date/time.
65961               If you specify a date here, be sure it's UTC.
65962
65963 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65964
65965         * tests/test-argp-2.sh: Fix test to match actual output.
65966         (func_compare): Fix sed script to be portable.
65967
65968 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
65969
65970         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
65971         workaround for this case.  It is not autoconfigured now; offhand
65972         it's hard to see how to autoconfigure it.
65973
65974 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
65975
65976         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
65977         a directory that is about to be chowned.  Such a directory's
65978         initial file permissions should permit the owner only and this
65979         should not be changed until after the chown, since the group and
65980         other bits would be incorrect if they granted permission before
65981         the chown.
65982
65983         Fix porting problem for iswctype reported by Georg Schwarz in:
65984         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
65985         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
65986         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
65987         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
65988         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65989
65990 2006-12-03  Jim Meyering  <jim@meyering.net>
65991
65992         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
65993         p->fts_statp may not yet be defined.
65994         (fts_read): Instead, set it in the caller, once p->fts_statp is
65995         sure to be defined, and corresponds to a top-level directory.
65996         This bug made du -x fail.  Here's the coreutils test case:
65997         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
65998         Reported by Mike Frysinger.
65999
66000 2006-12-01  Jim Meyering  <jim@meyering.net>
66001
66002         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66003         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66004         Reported by Simon Josefsson.
66005
66006 2006-11-30  Jim Meyering  <jim@meyering.net>
66007
66008         * m4/warning.m4: Use the all-permissive copyright notice
66009         recommended by RMS (rather than LGPL).
66010         * m4/vararrays.m4: Likewise.
66011         * m4/flexmember.m4: Likewise.
66012
66013 2006-11-29  Bruno Haible  <bruno@clisp.org>
66014
66015         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66016         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66017         using +=.
66018         Reported by Simon Josefsson <simon@josefsson.org>.
66019
66020 2006-11-28  James Youngman <jay@gnu.org>
66021
66022         * README: Advise users that they might find the bug-gnulib@gnu.org
66023         and autotools-announce@gnu.org mailing lists useful.
66024
66025 2006-11-28  Bruno Haible  <bruno@clisp.org>
66026
66027         * m4/ptrdiff_max.m4: Remove file.
66028
66029 2006-11-21  Bruno Haible  <bruno@clisp.org>
66030
66031         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66032         _AC_COMPUTE_INT.
66033         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66034         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66035         _AC_COMPUTE_INT.
66036         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66037         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66038         _AC_COMPUTE_INT.
66039         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66040
66041 2006-11-28  Jim Meyering  <jim@meyering.net>
66042
66043         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66044         warning from "gcc -Wshadow" about shadowing the builtin.
66045
66046 2006-11-27  Bruno Haible  <bruno@clisp.org>
66047
66048         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66049         _AC_COMPUTE_INT.
66050         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66051
66052 2006-11-27  Bruno Haible  <bruno@clisp.org>
66053             Paul Eggert  <eggert@cs.ucla.edu>
66054
66055         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66056
66057 2006-11-26  Bruno Haible  <bruno@clisp.org>
66058
66059         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66060         noinst_LTLIBRARIES.
66061
66062 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66063             Bruno Haible  <bruno@clisp.org>
66064
66065         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66066         if compiling with "gcc -ansi".
66067
66068 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66069
66070         Fix some incompatibilities with gcc -ansi -pedantic.
66071         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66072         if compiling pedantically with GCC, unless it's C99 or later.
66073         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66074         it mishandles gcc -ansi -pedantic as well.
66075         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66076         if gcc -pedantic.
66077         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66078         initializers for struct if -pedantic, unless it's C99 or later.
66079
66080 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66081
66082         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66083         Don't close an fd more than once. Identical atimes indicate
66084         success, not failure.
66085
66086 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66087
66088         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66089
66090 2006-11-23  Jim Meyering  <jim@meyering.net>
66091
66092         * build-aux/announce-gen: New file.  From coreutils.
66093
66094 2006-11-22  Jim Meyering  <jim@meyering.net>
66095
66096         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66097         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66098         (fts_read): Use a temporary to narrow the overused st_size member
66099         before using it in a switch statement.  Reported by Matthew Woehlke.
66100
66101         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66102         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66103
66104 2006-11-20  Bruno Haible  <bruno@clisp.org>
66105
66106         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66107         changequote instead of pairs of brackets.
66108         Reported by Andreas Schwab <schwab@suse.de>.
66109
66110 2006-11-21  Jim Meyering  <jim@meyering.net>
66111
66112         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66113         so as to remain compatible with older compilers.
66114         Patch from Michael Deutschmann.
66115
66116 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66117
66118         * MODULES.html.sh (File system functions): Add openat.
66119
66120         * lib/openat.h (rpl_fstatat): New macro, if
66121         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66122         (fstatat): Define to rpl_fstatat under the same conditions,
66123         unless COMPILING_FSTATAT.
66124         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66125         seems to have the bug.
66126         * lib/fstatat.c: New file.
66127         * modules/openat (Files): Add it.
66128
66129 2006-11-20  Bruno Haible  <bruno@clisp.org>
66130
66131         * Makefile: New file.
66132
66133 2006-11-20  Jim Meyering  <jim@meyering.net>
66134
66135         The beginnings of syntax-related checks for gnulib.
66136         * lib/Makefile: New file.
66137         * lib/t-idcache: New script.  Ensure that the two halves of
66138         idcache.c stay in sync.
66139
66140         * lib/idcache.c: Adjust comments in user- and group- portions to
66141         be more accurate, and to be consistent with one another.
66142
66143 2006-11-20  Jim Meyering  <jim@meyering.net>
66144
66145         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66146         continue using the flexible array member (thus, this module performs
66147         half as many malloc calls), with the addition that...
66148         (getgroup, getuser): Consistently record a non-match via an empty
66149         "name" string, and map an empty string match to a NULL return value.
66150         * modules/idcache (Depends-on): Re-add flexmember.
66151
66152         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66153         (getuidbyname, getgroup, getgidbyname): Likewise.
66154
66155         Use cleaner syntax: NULL rather than 0.
66156         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66157
66158 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66159
66160         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66161         It mishandled the case where the group was missing.
66162         Problem reported by Greg Schafer.
66163         * modules/idcache: Likewise.
66164
66165 2006-11-18  Jim Meyering  <jim@meyering.net>
66166
66167         * check-module (%exempt_header): Add exception for some
66168         conditionally-included headers.
66169
66170         * modules/i-ring (Depends-on): Add verify.
66171         (License): Change to LGPL.
66172
66173 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66174
66175         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66176         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66177         and inttostr.h.  Use snprintf rather than uinttostr, so that
66178         LGPLed code doesn't depend on GPLed.
66179
66180 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * modules/inline (License): Change from GPL to LGPL.
66183
66184 2006-11-17  Jim Meyering  <jim@meyering.net>
66185
66186         * modules/d-type (License): Switch to LGPL.
66187
66188 2006-11-15  Bruno Haible  <bruno@clisp.org>
66189
66190         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66191
66192 2006-11-15  Eric Blake  <ebb9@byu.net>
66193
66194         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66195         the module dependency.
66196
66197 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66198             Bruno Haible  <bruno@clisp.org>
66199
66200         * gnulib-tool (func_create_testdir): Add license consistency check.
66201
66202 2006-11-15  Eric Blake  <ebb9@byu.net>
66203
66204         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66205         random "(cached)" in configure output.
66206
66207 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66208
66209         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66210         test for conforming inttypes.h is both announced and cached.
66211
66212         * MODULES.html.sh (seen_modules, seen_files): New variables.
66213         (func_module): Rewrite to use a few less gnulib-tool and sed
66214         invocations.  Avoid a couple of quadratic algorithms for ...
66215         (missed_modules, missed_files): ... these, with ...
66216         (func_append, func_tmpdir): ... these new functions, from
66217         gnulib-tool.  Analogously, install traps for cleanup.
66218
66219         * tests/test-gc.c (main): Remove unused variables.
66220         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66221
66222 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66223
66224         * modules/inttostr (License): Change to LGPL.
66225
66226 2006-11-14  Eric Blake  <ebb9@byu.net>
66227
66228         * modules/tempname (License): Change to LGPL.
66229
66230 2006-11-14  Eric Blake  <ebb9@byu.net>
66231
66232         * doc/functions.texi (Function Portability): *printf functions on
66233         Cygwin now understand all POSIX size specifiers.
66234
66235 2006-11-14  Bruno Haible  <bruno@clisp.org>
66236
66237         * modules/c-ctype (License): Change to LGPL.
66238
66239 2006-11-12  Bruno Haible  <bruno@clisp.org>
66240
66241         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66242         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66243         for GNOME libraries, for which the include files are installed in
66244         subdirectories of $prefix/include.
66245
66246 2006-11-12  Bruno Haible  <bruno@clisp.org>
66247
66248         * m4/lib-link.m4: Require at least autoconf-2.54.
66249         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66250         name to underscores for the --with option.
66251
66252 2006-11-13  Bruno Haible  <bruno@clisp.org>
66253
66254         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66255         the tests directory.
66256         Reported by Ralf Wildenhues.
66257
66258 2006-11-13  Bruno Haible  <bruno@clisp.org>
66259
66260         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66261         (func_emit_initmacro_end): Undo the override here.
66262         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66263         Works around the famous automake error in coreutils.
66264
66265 2006-11-13  Eric Blake  <ebb9@byu.net>
66266
66267         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66268         element, not its node.
66269
66270 2006-11-12  Bruno Haible  <bruno@clisp.org>
66271
66272         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66273         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66274
66275 2006-11-12  Bruno Haible  <bruno@clisp.org>
66276
66277         * gnulib-tool: New option --local-symlink.
66278         (func_usage): Document it.
66279         (lsymbolic): New variable.
66280         (func_import, func_create_testdir): If --symlink was not specified,
66281         test whether --local-symlink was specified and the file comes from
66282         the local_gnulib_dir.
66283
66284 2006-11-12  Bruno Haible  <bruno@clisp.org>
66285
66286         * gnulib-tool (func_ln): New function.
66287         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66288
66289 2006-11-12  Bruno Haible  <bruno@clisp.org>
66290
66291         Finish support for source files in subdirectories.
66292         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66293         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66294         AUTOMAKE_OPTIONS.
66295         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66296
66297 2006-11-12  Bruno Haible  <bruno@clisp.org>
66298
66299         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66300         EXTRA_lib_SOURCES augmentation.
66301         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66302
66303 2006-11-12  Jim Meyering  <jim@meyering.net>
66304
66305         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66306         file descriptors.  This also averts a failure on systems with
66307         native openat support when a traversed directory lacks "x" access.
66308         * lib/fts_.h: Include "i-ring.h"
66309         (struct FTS) [fts_fd_ring]: New member.
66310         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66311         (FCHDIR): Add parentheses.
66312         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66313         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66314         When descending, rather than simply closing the previous
66315         fts_cwd_fd value, push that file descriptor onto the ring.
66316         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66317         (fts_open): Initialize the new fd_ring member.
66318         (fts_close): Clear the ring.
66319         (fts_safe_changedir): When possible, use our new fd_ring to skip
66320         the diropen and fstat and dev/ino comparison that would normally
66321         accompany a virtual `chdir ("..")'.
66322
66323         * modules/fts (Depends-on): Add i-ring.
66324         * modules/i-ring: New module.
66325         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66326         * m4/i-ring.m4: New file.
66327
66328 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66329
66330         * gnulib-tool (func_create_testdir): Fix replacement of
66331         `build-aux' in configure.ac.  Run autotools in gltests
66332         subdirectory.
66333         (func_create_testdir, func_create_megatestdir, test): There is
66334         no need for '--force' in most autotool invocations in a new
66335         tree.  Actually fail the whole test if any of the tools, or the
66336         configure or make stages fail.
66337
66338         Sync from Automake.
66339         * build-aux/gnupload: Revert last change.  Add pointer to upload
66340         instructions of the GNU Maintenance Instructions.
66341         Suggestion by Karl Berry.
66342
66343 2006-11-10  Jim Meyering  <jim@meyering.net>
66344
66345         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66346
66347 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66348
66349         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66350         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66351         (bind_textdomain_codeset) [! ENABLE_NLS]:
66352         Evaluate all the arguments.  That way, callers get compatible behavior
66353         if the arguments have side effects.  Also, it avoids some GCC
66354         diagnostics in some cases; Joel E. Denny reported problems when Bison
66355         was configured with --enable-gcc-warnigs.
66356
66357 2006-11-10  Jim Meyering  <jim@meyering.net>
66358
66359         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66360         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66361         account.
66362
66363 2006-11-10  Jim Meyering  <jim@meyering.net>
66364
66365         * modules/inline: New file/module.
66366         * modules/xalloc (Files): Remove m4/inline.m4.
66367         (Depends-on): Add inline, instead.
66368         * modules/oset: Likewise.
66369         * modules/list: Likewise.
66370
66371 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66372
66373         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66374         Problem reported by Matthew Woehlke.
66375
66376 2006-11-09  Bruno Haible  <bruno@clisp.org>
66377
66378         * lib/tempname.c (gen_tempname): Remove variant that invokes
66379         __gen_tempname.
66380         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66381         __gen_tempname.
66382
66383 2006-11-08  Bruno Haible  <bruno@clisp.org>
66384
66385         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66386         to 'yes' instead of 'cross-compiling'.
66387
66388 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         * lib/quotearg.h (quotearg_free): New decl.
66391         * lib/quotearg.c (quotearg_free): New function.
66392         (slot0, nslots, slotvec0, slotvec):
66393         Now file-scope so that quotearg_free can get at them.
66394
66395 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66396
66397         Sync from Automake.
66398         * build-aux/gnupload: Add missing 'gnu' to example URL.
66399         Report by Karl Berry.
66400
66401 2006-11-08  Bruno Haible  <bruno@clisp.org>
66402
66403         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66404         Suggested by Paul Eggert.
66405
66406 2006-11-08  Jim Meyering  <jim@meyering.net>
66407
66408         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66409         It's already included if !_LIBC.
66410         (fts_safe_changedir): Add a comment.
66411
66412 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66413
66414         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66415         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66416         Matthew Woehlke.
66417
66418         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66419         definitions up, to avoid colliding with change below.
66420         (static_inline) [HAVE_INLINE]: New macro.
66421         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66422         Provide extern decls when !HAVE_INLINE.  Do not define unless
66423         static_inline is defined, either by us or by xmalloc.c.  Use
66424         static_inline rather than static inline.
66425         (XCALLOC): Optimize sizeof(T) = 1 case.
66426         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66427
66428 2006-11-07  Bruno Haible  <bruno@clisp.org>
66429
66430         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66431         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66432         AC_C_INLINE.
66433         * modules/xalloc (Files): Add m4/inline.m4.
66434
66435 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66436
66437         * README: Fix typo.
66438         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66439         (Miscellanous Notes): ...from this.
66440
66441 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66442
66443         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66444         Mention that offsetof should be used instead of sizeof.
66445         From Bruno Haible.
66446
66447 2006-11-07  Bruno Haible  <bruno@clisp.org>
66448
66449         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66450
66451 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66452
66453         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66454         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66455         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66456         (gl_tree_add_before, gl_tree_add_after):
66457         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66458         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66459         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66460         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66461         (gl_linked_add_after, gl_linked_add_at): Likewise.
66462         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66463         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66464         (gl_tree_add_before, gl_tree_add_after): Likewise.
66465         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66466         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66467         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66468
66469 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66470
66471         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66472
66473 2006-11-06  Bruno Haible  <bruno@clisp.org>
66474
66475         * m4/inline.m4: New file.
66476         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66477         * modules/list (Files): Add m4/inline.m4.
66478         * modules/oset (Files): Likewise.
66479
66480 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66481
66482         * lib/idcache.c: Include <stddef.h>, for offsetof.
66483         (struct userid.name): Change from char * to a flexible array member.
66484         All uses changed.
66485         * modules/idcache (Depends-on): Add flexmember.
66486
66487         * MODULES.html.sh (Core language properties): New module flexmember.
66488         * modules/flexmember, m4/flexmember.m4: New files.
66489
66490         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66491         inline functions that are identical with the old xnmalloc_inline,
66492         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66493         that we can avoid some unnecessary integer multiplications and
66494         divisions in the common case where the element size is known at
66495         compile time.
66496         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66497         needed.
66498         (xnboundedmalloc): Remove.
66499         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66500         arguments, for consistency with rest of this header.
66501         (xcharalloc): Rewrite using XNMALLOC.
66502         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66503         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66504         versions have been moved to lib/xalloc.h and renamed to be the
66505         non-*_inline versions.
66506         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66507         and xnrealloc functions, since those functions are now inline and
66508         now call us.
66509         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66510         renaming described above.
66511         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66512         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66513         captures the dependency in AC_C_INLINE.
66514
66515         New module canonicalize-lgpl, proposed by Charles Wilson in
66516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66517         with a few small changes afterwards.
66518         * MODULES.html.sh (File system functions): New module
66519         canonicalize-lgpl.
66520         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66521         and canonicalize_file_name.
66522         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66523         * modules/canonicalize-lgpl: New files.
66524
66525 2006-11-05  Bruno Haible  <bruno@clisp.org>
66526
66527         * gnulib-tool (func_import, func_create_testdir): Create directories
66528         also for files in subdirectories of lib/.
66529
66530 2006-11-05  Bruno Haible  <bruno@clisp.org>
66531
66532         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66533         ANSI C compliant.
66534
66535 2006-11-03  Bruno Haible  <bruno@clisp.org>
66536
66537         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66538         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66539         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66540         (xnboundedmalloc): New inline function.
66541         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66542         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66543         xmalloc.
66544         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66545         xmalloc.
66546         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66547         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66548         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66549         xmalloc.
66550         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66551         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66552         xmalloc.
66553         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66554         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66555         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66556         xmalloc.
66557         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66558         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66559         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66560         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66561         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66562         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66563         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66564
66565 2006-11-03  Bruno Haible  <bruno@clisp.org>
66566
66567         * lib/c-ctype.h [C++]: Define functions without name mangling.
66568         * lib/fwriteerror.h [C++]: Likewise.
66569         * lib/gcd.h [C++]: Likewise.
66570         * lib/linebreak.h [C++]: Likewise.
66571
66572 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66573
66574         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66575         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66576         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66577         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66578         Check for functions and headers just once.
66579         Check for declaration of canonicalize_file_name.
66580         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66581
66582 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66583
66584         * gnulib-tool (func_import): Fix typo in actioncmd.
66585
66586 2006-11-02  Bruno Haible  <bruno@clisp.org>
66587
66588         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66589         newline sequence in the Makefile.am snippet as a space, like "make"
66590         does.
66591         Reported by Roger Persson <perrog@gmail.com>.
66592
66593 2006-11-01  Bruno Haible  <bruno@clisp.org>
66594
66595         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66596         already declared in <string.h>.
66597         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66598
66599 2006-11-01  Bruno Haible  <bruno@clisp.org>
66600
66601         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66602         * lib/strcase.h: Include <string.h>.
66603         (strcasecmp): Define to rpl_strcasecmp here.
66604
66605 2006-11-01  Bruno Haible  <bruno@clisp.org>
66606
66607         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66608
66609 2006-11-01  Eric Blake  <ebb9@byu.net>
66610
66611         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66612
66613         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66614
66615 2006-10-29  Bruno Haible  <bruno@clisp.org>
66616
66617         Make it compile in C++ mode.
66618         * lib/full-write.c (full_rw): Add a cast.
66619
66620 2006-11-01  Bruno Haible  <bruno@clisp.org>
66621
66622         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66623         be POSIX compliant.
66624         Reported by Roger Persson <perrog@gmail.com>.
66625
66626 2006-11-01  Eric Blake  <ebb9@byu.net>
66627
66628         * lib/getopt_.h: Fix comments.
66629
66630 2006-10-31  Eric Blake  <ebb9@byu.net>
66631
66632         * modules/tmpdir (Depends-on): Add sys_stat.
66633         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66634         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66635         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66636         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66637         tempname.
66638
66639 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66640
66641         Avoid some C++ diagnostics reported by Bruno Haible.
66642         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66643         xmalloc.
66644         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66645         (struct slotvec): Move to top level.
66646         (quotearg_n_options): Rewrite to avoid xmalloc.
66647         * lib/xalloc.h (xcharalloc): New function.
66648         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66649         [defined __cplusplus]: Add function template that provides result
66650         type propagation.  This part of the change is from Bruno Haible.
66651
66652 2006-10-29  Bruno Haible  <bruno@clisp.org>
66653
66654         Make it compile in C++ mode.
66655         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66656         * lib/strnlen1.c (strnlen1): Cast memchr result.
66657         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66658         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66659         (create_temp_dir): Rename local variable 'template'.
66660         (compile_csharp_using_sscli): Add cast.
66661         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66662         * lib/findprog.c (find_in_path): Likewise.
66663         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66664         * lib/wait-process.c (register_slave_subprocess): Likewise.
66665
66666 2006-10-22  Bruno Haible  <bruno@clisp.org>
66667
66668         * modules/tsearch: New file.
66669         * lib/tsearch.h: New file.
66670         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66671         * m4/tsearch.m4: New file.
66672         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66673
66674 2006-10-29  Eric Blake  <ebb9@byu.net>
66675
66676         * lib/arcfour.c: Assume config.h.
66677         * lib/arctwo.c: Likewise.
66678         * lib/base64.c: Likewise.
66679         * lib/check-version.c: Likewise.
66680         * lib/crc.c: Likewise.
66681         * lib/des.c: Likewise.
66682         * lib/gc-gnulib.c: Likewise.
66683         * lib/gc-libgcrypt.c: Likewise.
66684         * lib/gc-pbkdf2-sha1.c: Likewise.
66685         * lib/getaddrinfo.c: Likewise.
66686         * lib/getdelim.c: Likewise.
66687         * lib/getline.c: Likewise.
66688         * lib/hmac-md5.c: Likewise.
66689         * lib/hmac-sha1.c: Likewise.
66690         * lib/iconvme.c: Likewise.
66691         * lib/md2.c: Likewise.
66692         * lib/md4.c: Likewise.
66693         * lib/memxor.c: Likewise.
66694         * lib/read-file.c: Likewise.
66695         * lib/readline.c: Likewise.
66696         * lib/rijndael-alg-fst.c: Likewise.
66697         * lib/rijndael-api-fst.c: Likewise.
66698         * lib/xgetdomainname.c: Likewise.
66699
66700 2006-10-28  Eric Blake  <ebb9@byu.net>
66701
66702         * lib/xstrndup.c: Assume config.h.
66703
66704 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66705
66706         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66707         stat-macros.h is now for our own macros, whereas stat_h is for
66708         macros in the <sys/stat.h> name space.
66709         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66710         (STAT_MACROS_H): Remove.
66711         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66712         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66713         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66714         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66715         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66716         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66717         Move these macros to ...
66718         * lib/stat_.h: here.  Don't include stat-macros.h.
66719         * lib/canonicalize.c: Don't include stat-macros.h.
66720         * lib/chown.c: Likewise.
66721         * lib/euidaccess.c: Likewise.
66722         * lib/file-type.c: Likewise.
66723         * lib/filemode.c: Likewise.
66724         * lib/glob.c: Likewise.
66725         * lib/isapipe.c: Likewise.
66726         * lib/lchown.c: Likewise.
66727         * lib/lstat.c: Likewise.
66728         * lib/mkdir-p.c: Likewise.
66729         * lib/rmdir.c: Likewise.
66730         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66731         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66732         unless mkdir isn't declared, to speed up 'configure'.
66733         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66734         would define all the S_* symbols.
66735         * modules/canonicalize (Depends-on):
66736         Depend on sys_stat, not stat-macros.
66737         * modules/chown: Likewise.
66738         * modules/euidaccess: Likewise.
66739         * modules/filemode: Likewise.
66740         * modules/file-type: Likewise.
66741         * modules/glob: Likewise.
66742         * modules/isapipe: Likewise.
66743         * modules/lchown: Likewise.
66744         * modules/lstat: Likewise.
66745         * modules/mkancesdirs: Likewise.
66746         * modules/rmdir: Likewise.
66747         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66748         * modules/modechange: Likewise.
66749         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66750         (configure.ac): Remove gl_STAT_MACROS.
66751         * modules/sys_stat (Depends-on): Remove stat-macros.
66752
66753 2006-10-27  Bruno Haible  <bruno@clisp.org>
66754
66755         * m4/signed.m4: Remove file.
66756         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66757         invocation.
66758         * modules/vasnprintf (Files): Remove m4/signed.m4.
66759
66760 2006-10-27  Bruno Haible  <bruno@clisp.org>
66761
66762         Update to GNU gettext 0.16.
66763         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66764         m4/inttypes-h.m4, m4/signed.m4.
66765         * m4/gettext.m4: Update to GNU gettext 0.16.
66766         * m4/intl.m4: New file, from GNU gettext.
66767         * m4/intldir.m4: New file, from GNU gettext.
66768         * config/srclist.txt: Update
66769
66770 2006-10-27  Eric Blake  <ebb9@byu.net>
66771
66772         * MODULES.html.sh: Document tempname.
66773         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66774         dependencies.
66775         (Files): Move lib/tempname.c...
66776         * modules/tempname: ...to this new module.
66777         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66778         (gl_PREREQ_TEMPNAME): Move...
66779         * m4/tempname.m4: ...to this new file.
66780         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66781         * modules/sys_stat (Depends-on): Add stat-macros.
66782         * lib/stat_.h (includes): Pick up stat macros.
66783         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66784         if stat macros are broken.
66785         * lib/tempname.c (includes): No need to include "stat-macros.h".
66786         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66787         (direxists, __path_search) [!_LIBC]: Don't compile these in
66788         gnulib; the tmpdir module covers that.
66789         * lib/tempname.h: New file.
66790
66791 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * COPYING: Explain how gnulib-tool converts licence headers.
66794         Almost all wording by Eric Blake.
66795
66796 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66797
66798         * lib/mbchar.h (is_basic_table): Make read-only.
66799         * lib/mbchar.c (is_basic_table): Likewise.
66800         Reported by John Darrington.
66801
66802 2006-10-25  Bruno Haible  <bruno@clisp.org>
66803
66804         * lib/progname.h (set_program_name): Undefine before defining.
66805
66806 2006-10-25  Bruno Haible  <bruno@clisp.org>
66807
66808         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66809         false for non-gcc C++ compilers.
66810         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66811
66812 2006-10-24  Bruno Haible  <bruno@clisp.org>
66813
66814         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66815         iconv implementations like Irix iconv.
66816
66817 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66818
66819         * modules/vararrays: New file.
66820         * m4/vararrays.m4: New file, taken from diffutils.
66821         * MODULES.html.sh: New module vararrays.
66822
66823 2006-10-24  Karl Berry  <karl@gnu.org>
66824
66825         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66826         Don't call GNU Unix.
66827
66828 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66829
66830         * users.txt: Add Libtool.
66831
66832         Sync from Libtool:
66833
66834         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66835
66836         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66837         to gnulib's policy of including config.h unconditionally.
66838
66839 2006-10-24  Bruno Haible  <bruno@clisp.org>
66840
66841         * modules/wcwidth (Files): Add m4/wint_t.m4.
66842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66843         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66844
66845 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66848         to pacify GCC with some -W flags enabled.  Problem reported by
66849         Bruno Haible.
66850
66851 2006-10-24  Jim Meyering  <jim@meyering.net>
66852
66853         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66854         Reported by Karl Berry.
66855
66856 2006-10-23  Bruno Haible  <bruno@clisp.org>
66857
66858         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66859
66860 2006-10-24  Bruno Haible  <bruno@clisp.org>
66861
66862         * lib/gl_list.h: Use C comment style, not C++ comment style.
66863
66864 2006-10-23  Eric Blake  <ebb9@byu.net>
66865
66866         * lib/getaddrinfo.c (includes): Add missing include.
66867
66868 2006-10-23  Bruno Haible  <bruno@clisp.org>
66869             Paul Eggert  <eggert@cs.ucla.edu>
66870
66871         Ability to rename obstack_free.
66872         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66873         obstack_free.
66874         (obstack_free): Invoke the __obstack_free macro.
66875         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66876
66877 2006-10-23  Bruno Haible  <bruno@clisp.org>
66878             Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66881         __argc, __argv from the declaration. (They are defined as macros on
66882         mingw.)
66883
66884 2006-10-22  Bruno Haible  <bruno@clisp.org>
66885
66886         * doc/gnulib-intro.texi: New file.
66887         * doc/gnulib.texi: Include it.
66888
66889 2006-10-21  Bruno Haible  <bruno@clisp.org>
66890
66891         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66892         "Introduction", "Miscellanous Notes", "Particular Modules".
66893
66894 2006-10-21  Bruno Haible  <bruno@clisp.org>
66895
66896         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66897         Change mostlyclean-local rule to avoid sh syntax error from bash
66898         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66899
66900 2006-10-23  Jim Meyering  <jim@meyering.net>
66901
66902         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66903         in place of snprintf.
66904
66905         * modules/inttostr (Files): Add lib/uinttostr.c.
66906         * lib/uinttostr.c (inttostr): New file/function.
66907         * lib/inttostr.h (uinttostr): Declare.
66908         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66909         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66910         Add uinttostr.
66911         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66912
66913 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * lib/canonicalize.c (ELOOP): Define if not already defined.
66916         Problem reported by Bruno Haible in
66917         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66918
66919 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66920
66921         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66922         Problem reported by Perry Smith and Ville Laurikari.
66923
66924         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66925         uses.
66926
66927 2006-10-19  Bruno Haible  <bruno@clisp.org>
66928
66929         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
66930         for mingw.
66931
66932 2006-10-19  Bruno Haible  <bruno@clisp.org>
66933
66934         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
66935         Needed for mingw.
66936
66937 2006-10-19  Bruno Haible  <bruno@clisp.org>
66938
66939         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
66940
66941 2006-10-19  Bruno Haible  <bruno@clisp.org>
66942
66943         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
66944         it.
66945
66946 2006-10-19  Bruno Haible  <bruno@clisp.org>
66947
66948         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
66949         invocation.
66950
66951 2006-10-19  Bruno Haible  <bruno@clisp.org>
66952
66953         * gnulib-tool (func_create_testdir): Don't include ftruncate and
66954         mountlist by default.
66955
66956 2006-10-16  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/c-strstr.c: Include c-strstr.h.
66959
66960 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66961
66962         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
66963         in a slash.
66964
66965 2006-10-18  Bruno Haible  <bruno@clisp.org>
66966
66967         * lib/lock.h [C++]: Wrap definitions in extern "C".
66968
66969 2006-10-18  Bruno Haible  <bruno@clisp.org>
66970
66971         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
66972         gl_LIBOBJS list.
66973
66974 2006-10-18  Bruno Haible  <bruno@clisp.org>
66975
66976         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
66977
66978 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
66979
66980         * lib/xstrtol.h: Include gettext.h.
66981         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
66982         Problem reported by Eric Blake.
66983         * modules/xstrtol (Depends-on): Add gettext-h.
66984
66985 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
66986
66987         * lib/strftime.c (advance): New macro.
66988         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
66989         incomplete type, so you can't add 0 to it.  Problem and patch
66990         reported by Eelco Dolstra for dietlibc.
66991
66992 2006-10-18  Jim Meyering  <jim@meyering.net>
66993
66994         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
66995         type for a local, and rename it: s/up/user_proc/.
66996
66997 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
66998
66999         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67000         READ_UTMP_USER_PROCESS.
67001         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67002
67003 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67004
67005         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67006         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67007
67008 2006-10-17  Eric Blake  <ebb9@byu.net>
67009
67010         * lib/sigprocmask.c (sigprocmask): Fix typo.
67011
67012         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67013
67014         * modules/clean-temp (Makefile.am): Don't add to make output...
67015         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67016         config.h.
67017
67018 2006-10-17  Bruno Haible  <bruno@clisp.org>
67019
67020         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67021         differently if DEFAULT_TEXT_DOMAIN is set.
67022
67023 2006-10-16  Bruno Haible  <bruno@clisp.org>
67024
67025         * lib/clean-temp.c: Include fwriteerror.h.
67026
67027 2006-10-16  Bruno Haible  <bruno@clisp.org>
67028
67029         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67030
67031 2006-10-16  Bruno Haible  <bruno@clisp.org>
67032
67033         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67034         * lib/sigprocmask.h: Include <sys/types.h>.
67035         (sigset_t): Use the system's definition if present.
67036
67037 2006-10-17  Eric Blake  <ebb9@byu.net>
67038
67039         * lib/xvasprintf.c (includes): Assume config.h.
67040         * lib/xasprintf.c (includes): Likewise.
67041
67042 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67043
67044         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67045         at least as wide as intmax_t.
67046
67047 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67048
67049         (Imported from Automake.)
67050         * build-aux/gnupload: Update to version 1.1 of directive file.
67051
67052 2006-10-16  Eric Blake  <ebb9@byu.net>
67053
67054         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67055         match Automake 1.10a.
67056
67057 2006-10-14  Bruno Haible  <bruno@clisp.org>
67058
67059         * modules/sigprocmask: New file.
67060         * lib/sigprocmask.h: New file.
67061         * lib/sigprocmask.c: New file.
67062         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67063         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67064         request sigprocmask.o.
67065         (gl_PREREQ_SIGPROCMASK): New macro.
67066         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67067         (Depends-on): Add sigprocmask.
67068         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67069         gt_SIGNALBLOCKING. Test for 'raise' only once.
67070         * lib/fatal-signal.c: Include sigprocmask.h.
67071         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67072         unblock_fatal_signals): Define always.
67073         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67074         sigprocmask.
67075
67076 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         Sync from Automake.
67079         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67080         which incorrectly sets the mode of an existing destination
67081         directory.  In some cases the unpatched install-sh could do the
67082         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67083         system.  We hope this is rare in practice, but it's clearly worth
67084         fixing.  Problem reported by Alex Unleashed in
67085         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67086         Also, don't bother to check for -m bugs unless we're using -m;
67087         suggested by Stepan Kasal.
67088
67089 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67090
67091         Sync from Automake.
67092         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67093         `-c' flag, so they appear at the same position as in %FASTDEP%
67094         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67095         which ignores unknown options only after the first non-option.
67096         Bug report against M4 by Nelson H. F. Beebe.
67097
67098 2006-10-13  Jim Meyering  <jim@meyering.net>
67099
67100         Fix a bug in yesterday's change.
67101         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67102         p->fts_statp->st_dev would be used uninitialized.
67103         Ensures that we always call fts_stat on the very first entry.
67104         Miklos Szeredi reported that find -xdev stopped working.
67105
67106 2006-10-12  Bruno Haible  <bruno@clisp.org>
67107
67108         * gnulib-tool (func_get_automake_snippet): Append an automatically
67109         computed EXTRA_DIST augmentation.
67110         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67111         * modules/alloca-opt (Makefile.am): Likewise.
67112         * modules/allocsa (Makefile.am): Likewise.
67113         * modules/arcfour (Makefile.am): Likewise.
67114         * modules/arctwo (Makefile.am): Likewise.
67115         * modules/argmatch (Makefile.am): Likewise.
67116         * modules/argz (Makefile.am): Likewise.
67117         * modules/atexit (Makefile.am): Likewise.
67118         * modules/backupfile (Makefile.am): Likewise.
67119         * modules/byteswap (Makefile.am): Likewise.
67120         * modules/c-strtod (Makefile.am): Likewise.
67121         * modules/c-strtold (Makefile.am): Likewise.
67122         * modules/calloc (Makefile.am): Likewise.
67123         * modules/canon-host (Makefile.am): Likewise.
67124         * modules/canonicalize (Makefile.am): Likewise.
67125         * modules/chdir-long (Makefile.am): Likewise.
67126         * modules/chdir-safer (Makefile.am): Likewise.
67127         * modules/check-version (Makefile.am): Likewise.
67128         * modules/chown (Makefile.am): Likewise.
67129         * modules/cloexec (Makefile.am): Likewise.
67130         * modules/close-stream (Makefile.am): Likewise.
67131         * modules/closeout (Makefile.am): Likewise.
67132         * modules/crc (Makefile.am): Likewise.
67133         * modules/csharpexec (Makefile.am): Likewise.
67134         * modules/cycle-check (Makefile.am): Likewise.
67135         * modules/des (Makefile.am): Likewise.
67136         * modules/dev-ino (Makefile.am): Likewise.
67137         * modules/dirfd (Makefile.am): Likewise.
67138         * modules/dirname (Makefile.am): Likewise.
67139         * modules/dup2 (Makefile.am): Likewise.
67140         * modules/eealloc (Makefile.am): Likewise.
67141         * modules/error (Makefile.am): Likewise.
67142         * modules/euidaccess (Makefile.am): Likewise.
67143         * modules/exclude (Makefile.am): Likewise.
67144         * modules/exitfail (Makefile.am): Likewise.
67145         * modules/fcntl-safer (Makefile.am): Likewise.
67146         * modules/fcntl (Makefile.am): Likewise.
67147         * modules/file-type (Makefile.am): Likewise.
67148         * modules/fileblocks (Makefile.am): Likewise.
67149         * modules/filemode (Makefile.am): Likewise.
67150         * modules/filenamecat (Makefile.am): Likewise.
67151         * modules/fnmatch (Makefile.am): Likewise.
67152         * modules/fopen-safer (Makefile.am): Likewise.
67153         * modules/fpending (Makefile.am): Likewise.
67154         * modules/fprintftime (Makefile.am): Likewise.
67155         * modules/free (Makefile.am): Likewise.
67156         * modules/fsusage (Makefile.am): Likewise.
67157         * modules/ftruncate (Makefile.am): Likewise.
67158         * modules/fts (Makefile.am): Likewise.
67159         * modules/gc-arcfour (Makefile.am): Likewise.
67160         * modules/gc-des (Makefile.am): Likewise.
67161         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67162         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67163         * modules/gc-md4 (Makefile.am): Likewise.
67164         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67165         * modules/gc-sha1 (Makefile.am): Likewise.
67166         * modules/gc (Makefile.am): Likewise.
67167         * modules/getaddrinfo (Makefile.am): Likewise.
67168         * modules/getcwd (Makefile.am): Likewise.
67169         * modules/getdelim (Makefile.am): Likewise.
67170         * modules/getdomainname (Makefile.am): Likewise.
67171         * modules/getgroups (Makefile.am): Likewise.
67172         * modules/gethostname (Makefile.am): Likewise.
67173         * modules/gethrxtime (Makefile.am): Likewise.
67174         * modules/getline (Makefile.am): Likewise.
67175         * modules/getloadavg (Makefile.am): Likewise.
67176         * modules/getlogin_r (Makefile.am): Likewise.
67177         * modules/getndelim2 (Makefile.am): Likewise.
67178         * modules/getopt (Makefile.am): Likewise.
67179         * modules/getpagesize (Makefile.am): Likewise.
67180         * modules/getpass-gnu (Makefile.am): Likewise.
67181         * modules/getpass (Makefile.am): Likewise.
67182         * modules/getsubopt (Makefile.am): Likewise.
67183         * modules/gettime (Makefile.am): Likewise.
67184         * modules/gettimeofday (Makefile.am): Likewise.
67185         * modules/getugroups (Makefile.am): Likewise.
67186         * modules/getusershell (Makefile.am): Likewise.
67187         * modules/glob (Makefile.am): Likewise.
67188         * modules/group-member (Makefile.am): Likewise.
67189         * modules/hard-locale (Makefile.am): Likewise.
67190         * modules/hash (Makefile.am): Likewise.
67191         * modules/hmac-md5 (Makefile.am): Likewise.
67192         * modules/hmac-sha1 (Makefile.am): Likewise.
67193         * modules/human (Makefile.am): Likewise.
67194         * modules/idcache (Makefile.am): Likewise.
67195         * modules/imaxabs (Makefile.am): Likewise.
67196         * modules/imaxdiv (Makefile.am): Likewise.
67197         * modules/inet_ntop (Makefile.am): Likewise.
67198         * modules/inet_pton (Makefile.am): Likewise.
67199         * modules/intprops (Makefile.am): Likewise.
67200         * modules/inttostr (Makefile.am): Likewise.
67201         * modules/inttypes (Makefile.am): Likewise.
67202         * modules/isapipe (Makefile.am): Likewise.
67203         * modules/javaversion (Makefile.am): Likewise.
67204         * modules/lchmod (Makefile.am): Likewise.
67205         * modules/lchown (Makefile.am): Likewise.
67206         * modules/localcharset (Makefile.am): Likewise.
67207         * modules/long-options (Makefile.am): Likewise.
67208         * modules/lstat (Makefile.am): Likewise.
67209         * modules/malloc (Makefile.am): Likewise.
67210         * modules/mathl (Makefile.am): Likewise.
67211         * modules/mbchar (Makefile.am): Likewise.
67212         * modules/md2 (Makefile.am): Likewise.
67213         * modules/md4 (Makefile.am): Likewise.
67214         * modules/md5 (Makefile.am): Likewise.
67215         * modules/memcasecmp (Makefile.am): Likewise.
67216         * modules/memchr (Makefile.am): Likewise.
67217         * modules/memcmp (Makefile.am): Likewise.
67218         * modules/memcoll (Makefile.am): Likewise.
67219         * modules/memcpy (Makefile.am): Likewise.
67220         * modules/memmem (Makefile.am): Likewise.
67221         * modules/memmove (Makefile.am): Likewise.
67222         * modules/mempcpy (Makefile.am): Likewise.
67223         * modules/memrchr (Makefile.am): Likewise.
67224         * modules/memset (Makefile.am): Likewise.
67225         * modules/memxor (Makefile.am): Likewise.
67226         * modules/mkancesdirs (Makefile.am): Likewise.
67227         * modules/mkdir-p (Makefile.am): Likewise.
67228         * modules/mkdir (Makefile.am): Likewise.
67229         * modules/mkdtemp (Makefile.am): Likewise.
67230         * modules/mkstemp (Makefile.am): Likewise.
67231         * modules/mktime (Makefile.am): Likewise.
67232         * modules/modechange (Makefile.am): Likewise.
67233         * modules/mountlist (Makefile.am): Likewise.
67234         * modules/nanosleep (Makefile.am): Likewise.
67235         * modules/obstack (Makefile.am): Likewise.
67236         * modules/openat (Makefile.am): Likewise.
67237         * modules/pagealign_alloc (Makefile.am): Likewise.
67238         * modules/pathmax (Makefile.am): Likewise.
67239         * modules/physmem (Makefile.am): Likewise.
67240         * modules/poll (Makefile.am): Likewise.
67241         * modules/posixtm (Makefile.am): Likewise.
67242         * modules/posixver (Makefile.am): Likewise.
67243         * modules/putenv (Makefile.am): Likewise.
67244         * modules/quote (Makefile.am): Likewise.
67245         * modules/quotearg (Makefile.am): Likewise.
67246         * modules/raise (Makefile.am): Likewise.
67247         * modules/read-file (Makefile.am): Likewise.
67248         * modules/readline (Makefile.am): Likewise.
67249         * modules/readlink (Makefile.am): Likewise.
67250         * modules/readtokens (Makefile.am): Likewise.
67251         * modules/readutmp (Makefile.am): Likewise.
67252         * modules/realloc (Makefile.am): Likewise.
67253         * modules/regex (Makefile.am): Likewise.
67254         * modules/rename-dest-slash (Makefile.am): Likewise.
67255         * modules/rename (Makefile.am): Likewise.
67256         * modules/rijndael (Makefile.am): Likewise.
67257         * modules/rmdir (Makefile.am): Likewise.
67258         * modules/rpmatch (Makefile.am): Likewise.
67259         * modules/safe-read (Makefile.am): Likewise.
67260         * modules/safe-write (Makefile.am): Likewise.
67261         * modules/same-inode (Makefile.am): Likewise.
67262         * modules/same (Makefile.am): Likewise.
67263         * modules/save-cwd (Makefile.am): Likewise.
67264         * modules/savedir (Makefile.am): Likewise.
67265         * modules/setenv (Makefile.am): Likewise.
67266         * modules/settime (Makefile.am): Likewise.
67267         * modules/sha1 (Makefile.am): Likewise.
67268         * modules/sig2str (Makefile.am): Likewise.
67269         * modules/snprintf (Makefile.am): Likewise.
67270         * modules/stat-macros (Makefile.am): Likewise.
67271         * modules/stat-time (Makefile.am): Likewise.
67272         * modules/stdbool (Makefile.am): Likewise.
67273         * modules/stdint (Makefile.am): Likewise.
67274         * modules/stdlib-safer (Makefile.am): Likewise.
67275         * modules/stpcpy (Makefile.am): Likewise.
67276         * modules/stpncpy (Makefile.am): Likewise.
67277         * modules/strcase (Makefile.am): Likewise.
67278         * modules/strcasestr (Makefile.am): Likewise.
67279         * modules/strchrnul (Makefile.am): Likewise.
67280         * modules/strcspn (Makefile.am): Likewise.
67281         * modules/strdup (Makefile.am): Likewise.
67282         * modules/strerror (Makefile.am): Likewise.
67283         * modules/strftime (Makefile.am): Likewise.
67284         * modules/strndup (Makefile.am): Likewise.
67285         * modules/strnlen (Makefile.am): Likewise.
67286         * modules/strpbrk (Makefile.am): Likewise.
67287         * modules/strsep (Makefile.am): Likewise.
67288         * modules/strstr (Makefile.am): Likewise.
67289         * modules/strtod (Makefile.am): Likewise.
67290         * modules/strtoimax (Makefile.am): Likewise.
67291         * modules/strtok_r (Makefile.am): Likewise.
67292         * modules/strtol (Makefile.am): Likewise.
67293         * modules/strtoll (Makefile.am): Likewise.
67294         * modules/strtoul (Makefile.am): Likewise.
67295         * modules/strtoull (Makefile.am): Likewise.
67296         * modules/strtoumax (Makefile.am): Likewise.
67297         * modules/strverscmp (Makefile.am): Likewise.
67298         * modules/sys_socket (Makefile.am): Likewise.
67299         * modules/sys_stat (Makefile.am): Likewise.
67300         * modules/sysexits (Makefile.am): Likewise.
67301         * modules/time_r (Makefile.am): Likewise.
67302         * modules/timegm (Makefile.am): Likewise.
67303         * modules/timespec (Makefile.am): Likewise.
67304         * modules/tmpfile-safer (Makefile.am): Likewise.
67305         * modules/trim (Makefile.am): Likewise.
67306         * modules/unistd-safer (Makefile.am): Likewise.
67307         * modules/unlinkdir (Makefile.am): Likewise.
67308         * modules/unlocked-io (Makefile.am): Likewise.
67309         * modules/userspec (Makefile.am): Likewise.
67310         * modules/utime (Makefile.am): Likewise.
67311         * modules/utimecmp (Makefile.am): Likewise.
67312         * modules/utimens (Makefile.am): Likewise.
67313         * modules/vasnprintf (Makefile.am): Likewise.
67314         * modules/vasprintf (Makefile.am): Likewise.
67315         * modules/vsnprintf (Makefile.am): Likewise.
67316         * modules/xalloc (Makefile.am): Likewise.
67317         * modules/xgetcwd (Makefile.am): Likewise.
67318         * modules/xnanosleep (Makefile.am): Likewise.
67319         * modules/xreadlink (Makefile.am): Likewise.
67320         * modules/xstrtod (Makefile.am): Likewise.
67321         * modules/xstrtol (Makefile.am): Likewise.
67322         * modules/xstrtold (Makefile.am): Likewise.
67323         * modules/yesno (Makefile.am): Likewise.
67324         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67325
67326 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67327
67328         * modules/error (Makefile.am): Distribute files through
67329         EXTRA_DIST, not lib_SOURCES.
67330
67331 2006-10-12  Eric Blake  <ebb9@byu.net>
67332
67333         * modules/error (Makefile.am): Distribute files in /lib.
67334         * modules/obstack (Makefile.am): Likewise.
67335
67336 2006-10-12  Bruno Haible  <bruno@clisp.org>
67337
67338         * modules/acl (Makefile.am): Distribute all files in lib/ through
67339         EXTRA_DIST.
67340         * modules/arcfour (Makefile.am): Likewise.
67341         * modules/arctwo (Makefile.am): Likewise.
67342         * modules/argmatch (Makefile.am): Likewise.
67343         * modules/argz (Makefile.am): Likewise.
67344         * modules/atexit (Makefile.am): Likewise.
67345         * modules/backupfile (Makefile.am): Likewise.
67346         * modules/c-strtod (Makefile.am): Likewise.
67347         * modules/c-strtold (Makefile.am): Likewise.
67348         * modules/calloc (Makefile.am): Likewise.
67349         * modules/canon-host (Makefile.am): Likewise.
67350         * modules/canonicalize (Makefile.am): Likewise.
67351         * modules/chdir-long (Makefile.am): Likewise.
67352         * modules/chdir-safer (Makefile.am): Likewise.
67353         * modules/check-version (Makefile.am): Likewise.
67354         * modules/chown (Makefile.am): Likewise.
67355         * modules/cloexec (Makefile.am): Likewise.
67356         * modules/close-stream (Makefile.am): Likewise.
67357         * modules/closeout (Makefile.am): Likewise.
67358         * modules/crc (Makefile.am): Likewise.
67359         * modules/cycle-check (Makefile.am): Likewise.
67360         * modules/des (Makefile.am): Likewise.
67361         * modules/dirfd (Makefile.am): Likewise.
67362         * modules/dirname (Makefile.am): Likewise.
67363         * modules/dup2 (Makefile.am): Likewise.
67364         * modules/euidaccess (Makefile.am): Likewise.
67365         * modules/exclude (Makefile.am): Likewise.
67366         * modules/exitfail (Makefile.am): Likewise.
67367         * modules/fcntl-safer (Makefile.am): Likewise.
67368         * modules/file-type (Makefile.am): Likewise.
67369         * modules/fileblocks (Makefile.am): Likewise.
67370         * modules/filemode (Makefile.am): Likewise.
67371         * modules/filenamecat (Makefile.am): Likewise.
67372         * modules/fnmatch (Makefile.am): Likewise.
67373         * modules/fopen-safer (Makefile.am): Likewise.
67374         * modules/fpending (Makefile.am): Likewise.
67375         * modules/fprintftime (Makefile.am): Likewise.
67376         * modules/free (Makefile.am): Likewise.
67377         * modules/fsusage (Makefile.am): Likewise.
67378         * modules/ftruncate (Makefile.am): Likewise.
67379         * modules/fts (Makefile.am): Likewise.
67380         * modules/gc (Makefile.am): Likewise.
67381         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67382         * modules/getaddrinfo (Makefile.am): Likewise.
67383         * modules/getcwd (Makefile.am): Likewise.
67384         * modules/getdelim (Makefile.am): Likewise.
67385         * modules/getdomainname (Makefile.am): Likewise.
67386         * modules/getgroups (Makefile.am): Likewise.
67387         * modules/gethostname (Makefile.am): Likewise.
67388         * modules/gethrxtime (Makefile.am): Likewise.
67389         * modules/getline (Makefile.am): Likewise.
67390         * modules/getloadavg (Makefile.am): Likewise.
67391         * modules/getlogin_r (Makefile.am): Likewise.
67392         * modules/getopt (Makefile.am): Likewise.
67393         * modules/getpass (Makefile.am): Likewise.
67394         * modules/getpass-gnu (Makefile.am): Likewise.
67395         * modules/getsubopt (Makefile.am): Likewise.
67396         * modules/gettime (Makefile.am): Likewise.
67397         * modules/gettimeofday (Makefile.am): Likewise.
67398         * modules/getugroups (Makefile.am): Likewise.
67399         * modules/getusershell (Makefile.am): Likewise.
67400         * modules/glob (Makefile.am): Likewise.
67401         * modules/group-member (Makefile.am): Likewise.
67402         * modules/hard-locale (Makefile.am): Likewise.
67403         * modules/hash (Makefile.am): Likewise.
67404         * modules/hmac-md5 (Makefile.am): Likewise.
67405         * modules/hmac-sha1 (Makefile.am): Likewise.
67406         * modules/human (Makefile.am): Likewise.
67407         * modules/idcache (Makefile.am): Likewise.
67408         * modules/imaxabs (Makefile.am): Likewise.
67409         * modules/imaxdiv (Makefile.am): Likewise.
67410         * modules/inet_ntop (Makefile.am): Likewise.
67411         * modules/inet_pton (Makefile.am): Likewise.
67412         * modules/inttostr (Makefile.am): Likewise.
67413         * modules/isapipe (Makefile.am): Likewise.
67414         * modules/lchown (Makefile.am): Likewise.
67415         * modules/long-options (Makefile.am): Likewise.
67416         * modules/lstat (Makefile.am): Likewise.
67417         * modules/malloc (Makefile.am): Likewise.
67418         * modules/mathl (Makefile.am): Likewise.
67419         * modules/mbchar (Makefile.am): Likewise.
67420         * modules/md2 (Makefile.am): Likewise.
67421         * modules/md4 (Makefile.am): Likewise.
67422         * modules/md5 (Makefile.am): Likewise.
67423         * modules/memcasecmp (Makefile.am): Likewise.
67424         * modules/memchr (Makefile.am): Likewise.
67425         * modules/memcmp (Makefile.am): Likewise.
67426         * modules/memcoll (Makefile.am): Likewise.
67427         * modules/memcpy (Makefile.am): Likewise.
67428         * modules/memmem (Makefile.am): Likewise.
67429         * modules/memmove (Makefile.am): Likewise.
67430         * modules/mempcpy (Makefile.am): Likewise.
67431         * modules/memrchr (Makefile.am): Likewise.
67432         * modules/memset (Makefile.am): Likewise.
67433         * modules/memxor (Makefile.am): Likewise.
67434         * modules/mkancesdirs (Makefile.am): Likewise.
67435         * modules/mkdir (Makefile.am): Likewise.
67436         * modules/mkdir-p (Makefile.am): Likewise.
67437         * modules/mkdtemp (Makefile.am): Likewise.
67438         * modules/mkstemp (Makefile.am): Likewise.
67439         * modules/mktime (Makefile.am): Likewise.
67440         * modules/modechange (Makefile.am): Likewise.
67441         * modules/mountlist (Makefile.am): Likewise.
67442         * modules/nanosleep (Makefile.am): Likewise.
67443         * modules/openat (Makefile.am): Likewise.
67444         * modules/pagealign_alloc (Makefile.am): Likewise.
67445         * modules/physmem (Makefile.am): Likewise.
67446         * modules/poll (Makefile.am): Likewise.
67447         * modules/posixtm (Makefile.am): Likewise.
67448         * modules/posixver (Makefile.am): Likewise.
67449         * modules/putenv (Makefile.am): Likewise.
67450         * modules/quote (Makefile.am): Likewise.
67451         * modules/quotearg (Makefile.am): Likewise.
67452         * modules/raise (Makefile.am): Likewise.
67453         * modules/read-file (Makefile.am): Likewise.
67454         * modules/readline (Makefile.am): Likewise.
67455         * modules/readlink (Makefile.am): Likewise.
67456         * modules/readtokens (Makefile.am): Likewise.
67457         * modules/readutmp (Makefile.am): Likewise.
67458         * modules/realloc (Makefile.am): Likewise.
67459         * modules/regex (Makefile.am): Likewise.
67460         * modules/rename (Makefile.am): Likewise.
67461         * modules/rename-dest-slash (Makefile.am): Likewise.
67462         * modules/rijndael (Makefile.am): Likewise.
67463         * modules/rmdir (Makefile.am): Likewise.
67464         * modules/rpmatch (Makefile.am): Likewise.
67465         * modules/safe-read (Makefile.am): Likewise.
67466         * modules/safe-write (Makefile.am): Likewise.
67467         * modules/same (Makefile.am): Likewise.
67468         * modules/save-cwd (Makefile.am): Likewise.
67469         * modules/savedir (Makefile.am): Likewise.
67470         * modules/setenv (Makefile.am): Likewise.
67471         * modules/settime (Makefile.am): Likewise.
67472         * modules/sha1 (Makefile.am): Likewise.
67473         * modules/sig2str (Makefile.am): Likewise.
67474         * modules/snprintf (Makefile.am): Likewise.
67475         * modules/stdlib-safer (Makefile.am): Likewise.
67476         * modules/stpcpy (Makefile.am): Likewise.
67477         * modules/stpncpy (Makefile.am): Likewise.
67478         * modules/strcase (Makefile.am): Likewise.
67479         * modules/strcasestr (Makefile.am): Likewise.
67480         * modules/strchrnul (Makefile.am): Likewise.
67481         * modules/strcspn (Makefile.am): Likewise.
67482         * modules/strdup (Makefile.am): Likewise.
67483         * modules/strerror (Makefile.am): Likewise.
67484         * modules/strftime (Makefile.am): Likewise.
67485         * modules/strndup (Makefile.am): Likewise.
67486         * modules/strnlen (Makefile.am): Likewise.
67487         * modules/strpbrk (Makefile.am): Likewise.
67488         * modules/strsep (Makefile.am): Likewise.
67489         * modules/strstr (Makefile.am): Likewise.
67490         * modules/strtod (Makefile.am): Likewise.
67491         * modules/strtoimax (Makefile.am): Likewise.
67492         * modules/strtok_r (Makefile.am): Likewise.
67493         * modules/strtol (Makefile.am): Likewise.
67494         * modules/strtoll (Makefile.am): Likewise.
67495         * modules/strtoul (Makefile.am): Likewise.
67496         * modules/strtoull (Makefile.am): Likewise.
67497         * modules/strtoumax (Makefile.am): Likewise.
67498         * modules/strverscmp (Makefile.am): Likewise.
67499         * modules/time_r (Makefile.am): Likewise.
67500         * modules/timegm (Makefile.am): Likewise.
67501         * modules/tmpfile-safer (Makefile.am): Likewise.
67502         * modules/unistd-safer (Makefile.am): Likewise.
67503         * modules/unlinkdir (Makefile.am): Likewise.
67504         * modules/userspec (Makefile.am): Likewise.
67505         * modules/utime (Makefile.am): Likewise.
67506         * modules/utimecmp (Makefile.am): Likewise.
67507         * modules/utimens (Makefile.am): Likewise.
67508         * modules/vasnprintf (Makefile.am): Likewise.
67509         * modules/vasprintf (Makefile.am): Likewise.
67510         * modules/vsnprintf (Makefile.am): Likewise.
67511         * modules/xalloc (Makefile.am): Likewise.
67512         * modules/xgetcwd (Makefile.am): Likewise.
67513         * modules/xnanosleep (Makefile.am): Likewise.
67514         * modules/xreadlink (Makefile.am): Likewise.
67515         * modules/xstrtod (Makefile.am): Likewise.
67516         * modules/xstrtol (Makefile.am): Likewise.
67517         * modules/xstrtold (Makefile.am): Likewise.
67518         * modules/yesno (Makefile.am): Likewise.
67519
67520 2006-10-12  Jim Meyering  <jim@meyering.net>
67521
67522         * m4/getloadavg.m4: Revert the change below.
67523
67524         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67525         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67526         fail with a symlink, which is what coreutils' ./bootstrap now
67527         creates by default.
67528
67529 2006-10-12  Bruno Haible  <bruno@clisp.org>
67530
67531         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67532         mingw.
67533         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67534         MSVC and mingw explicitly.
67535
67536 2006-10-11  Simon Josefsson  <jas@extundo.com>
67537             Bruno Haible  <bruno@clisp.org>
67538
67539         Add support for multiple gnulib-tool invocations in the scope of a
67540         single configure.ac file.
67541         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67542         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67543         with the same contents as the _LIBADD variable.
67544         (func_emit_initmacro_start, func_emit_initmacro_end,
67545         func_emit_initmacro_done): New functions.
67546         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67547         gl_LIBOBJS and gl_LTLIBOBJS.
67548
67549 2006-10-11  Bruno Haible  <bruno@clisp.org>
67550
67551         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67552         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67553         autoreconf. Instead, invoke autopoint explicitly but move back the
67554         *.m4 files from gnulib.
67555
67556 2006-10-11  Bruno Haible  <bruno@clisp.org>
67557
67558         * gnulib-tool (func_usage): Make module names after --create-testdir
67559         optional.
67560         (func_create_testdir): If no module was specified, use nearly all
67561         modules.
67562
67563 2006-10-12  Jim Meyering  <jim@meyering.net>
67564
67565         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67566         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67567         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67568         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67569         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67570         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67571         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67572         (fts_set_stat_required): New function.
67573         (fts_open): Defer the calls to fts_stat, if possible or requested.
67574         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67575         into fts_stat itself.
67576         (fts_read): Perform any required (deferred) fts_stat call.
67577         (fts_build): Likewise, for the directory we're about to open and read.
67578         In the readdir loop, carefully decide whether each entry will require
67579         an eventual call to fts_stat, using dirent.d_type info if available.
67580         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67581         a command line argument into this function.  Update all callers.
67582         Map a return value of FTS_DOT to FTS_D for a command line argument.
67583         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67584         Thanks to Miklos Szeredi for his tenacity and for the initial
67585         bug report about "find" failing on a FUSE-based file system.
67586
67587         * lib/fts.c (fts_open): Use consistent indentation.
67588
67589 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67590
67591         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67592         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67593         reported by Jim Meyering.  All uses of cache variables renamed
67594         to match Autoconf's.
67595         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67596         the other one.
67597
67598         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67599         Fix misspelling in diagnostic.
67600
67601 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67602
67603         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67604         defined.  Problem reported by Matthew Woehlke.
67605
67606         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67607         Add support for Tandem NonStop R series.
67608         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67609         Use new macro.
67610
67611         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67612         (has_trailing_slash): Omit size arg; all callers changed.
67613         Omit 'inline', since it doesn't help performance and we'd
67614         need to configure it.
67615         Don't count //, ///, etc. as having a trailing slash.
67616         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67617         (rpl_rename_dest_slash): On failure, use rename's errno rather
67618         than (in some cases) an incorrect or junk errno.
67619         Simplify code by removing need to compute length; this does
67620         cause it to make two passes instead of one over the file name,
67621         but it's worth it.
67622
67623         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67624         change, since Autoconf's version may no longer be appropriate now
67625         that we are using CVS Autoconf's version.  Add support for Tandem.
67626
67627 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67628             Bruno Haible  <bruno@clisp.org>
67629
67630         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67631         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67632         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67633         gl_AC_TYPE_LONG_LONG.
67634
67635         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67636         instead of HAVE_LONG_LONG.
67637         * lib/printf-args.c (printf_fetchargs): Likewise.
67638         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67639         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67640         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67641         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67642         gl_AC_TYPE_LONG_LONG.
67643
67644 2006-10-11  Bruno Haible  <bruno@clisp.org>
67645
67646         * m4/longlong.m4: Add comments.
67647         * m4/ulonglong.m4: Likewise.
67648
67649 2006-10-10  Bruno Haible  <bruno@clisp.org>
67650
67651         Make it possible to #define stpcpy, strdup to aliases.
67652         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67653         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67654
67655 2006-10-10  Bruno Haible  <bruno@clisp.org>
67656
67657         Make it possible to #define gcd to an alias.
67658         * lib/gcd.c: Include config.h.
67659
67660 2006-10-10  Bruno Haible  <bruno@clisp.org>
67661
67662         Make it possible to #define c_isascii to an alias.
67663         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67664         defined. Undefine the macros before defining them, to avoid gcc
67665         warnings.
67666         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67667         define NO_C_CTYPE_MACROS early.
67668
67669 2006-10-10  Bruno Haible  <bruno@clisp.org>
67670
67671         Make it possible to #define set_program_name to an alias.
67672         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67673         ENABLE_RELOCATABLE early.
67674
67675 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67676
67677         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67678         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67679         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67680         More generally, don't assume that 64-bit signed int is available
67681         if unsigned int is, and vice versa.
67682         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67683         unsigned symbols, not on their signed counterparts.
67684         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67685         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67686         (UINT64_C, UINTMAX_C):
67687         Likewise.
67688         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67689         unsigned counterparts.
67690         (Have_long_long, Unsigned): New macros.
67691         (Int): Renamed from INT.
67692         (strtoimax): Use the new macros.
67693         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67694         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67695         * modules/inttypes (inttypes.h): Substitute
67696         HAVE_UNSIGNED_LONG_LONG_INT.
67697         * modules/stdint (stdint.h): Likewise.
67698         (Files): Add m4/ulonglong.m4.
67699
67700 2006-10-10  Bruno Haible  <bruno@clisp.org>
67701
67702         Fix a gcc -Wshadow warning.
67703         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67704         to 'bucket'.
67705         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67706         gl_linked_indexof_from_to): Likewise.
67707         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67708         Likewise.
67709         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67710         Likewise.
67711         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67712         Reported by Eric Blake.
67713
67714 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67715
67716         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67717         for NetBSD.  Problem reported by Bruno Haible.
67718
67719 2006-10-09  Jim Meyering  <jim@meyering.net>
67720
67721         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67722         Patch from Bruno Haible.
67723
67724 2006-10-09  Jim Meyering  <jim@meyering.net>
67725
67726         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67727         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67728         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67729
67730 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67731
67732         Don't include <config.h> twice; this doesn't work in some cases,
67733         e.g., when config.h has "#define intmax_t long long int" and
67734         we include <config.h>, <inttypes.h>, <config.h> in that order.
67735         Problem reported by Matthew Woehlke in:
67736         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67737         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67738         * lib/fts-cycle.c: Don't include config.h.
67739         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67740         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67741         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67742         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67743         inttypes.h.
67744         * lib/xstrtoumax.c: Likewise.
67745         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67746         __strtol and the like, so that this module is more like its siblings.
67747         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67748         Remove; no longer needed now that we assume gnulib inttypes.h.
67749
67750 2006-10-08  Bruno Haible  <bruno@clisp.org>
67751
67752         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67753         option.
67754
67755 2006-10-07  Jim Meyering  <jim@meyering.net>
67756
67757         * modules/inttypes (inttypes.h): Revert what seems to have been
67758         an inadvertent part of today's change: use "|", not "/" in the
67759         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67760
67761 2006-10-07  Bruno Haible  <bruno@clisp.org>
67762
67763         * modules/sublist: New file.
67764
67765 2006-10-07  Bruno Haible  <bruno@clisp.org>
67766
67767         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67768         * modules/argz (argz.h): Likewise.
67769         * modules/arpa_inet (arpa/inet.h): Likewise.
67770         * modules/byteswap (byteswap.h): Likewise.
67771         * modules/configmake (configmake.h): Likewise.
67772         * modules/fcntl (fcntl.h): Likewise.
67773         * modules/fnmatch (fnmatch.h): Likewise.
67774         * modules/getopt (getopt.h): Likewise.
67775         * modules/glob (glob.h): Likewise.
67776         * modules/inttypes (inttypes.h): Likewise.
67777         * modules/netinet_in (netinet/in.h): Likewise.
67778         * modules/poll (poll.h): Likewise.
67779         * modules/stdbool (stdbool.h): Likewise.
67780         * modules/stdint (stdint.h): Likewise.
67781         * modules/sys_select (sys/select.h): Likewise.
67782         * modules/sys_socket (sys/socket.h): Likewise.
67783         * modules/sys_stat (sys/stat.h): Likewise.
67784         * modules/sysexits (sysexits.h): Likewise.
67785         * modules/unistd (unistd.h): Likewise.
67786         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67787         Add a "DO NOT EDIT" comment to the generated file.
67788         (func_import): Likewise for gnulib-comp.m4.
67789
67790 2006-10-07  Bruno Haible  <bruno@clisp.org>
67791
67792         * lib/gl_sublist.h: New file.
67793         * lib/gl_sublist.c: New file.
67794
67795 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67796
67797         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67798         name (relative to the original working directory) and the file
67799         name component (relative to the temporary working directory).  All
67800         callers changed.
67801         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67802         * lib/mkdir-p.c (make_dir_parents): Likewise.
67803         * lib/mkdir-p.h (make_dir_parents): Likewise.
67804
67805 2006-10-06  Eric Blake  <ebb9@byu.net>
67806
67807         Define several macros for use by the clean-temp module.
67808         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67809         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67810         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67811
67812         * lib/clean-temp.h (close_stream_temp): New declaration.
67813         * lib/clean-temp.c (includes): Pull in headers according to what
67814         other modules are in use.
67815         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67816
67817 2006-10-06  Bruno Haible  <bruno@clisp.org>
67818
67819         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67820         instead of fopen, fwriteerror.
67821
67822 2006-10-06  Bruno Haible  <bruno@clisp.org>
67823
67824         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67825         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67826         int.
67827         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67828         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67829         Return an error indicator.
67830         Suggested by Eric Blake.
67831
67832 2006-10-06  Bruno Haible  <bruno@clisp.org>
67833
67834         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67835         Reported by Eric Blake.
67836
67837 2006-10-06  Bruno Haible  <bruno@clisp.org>
67838
67839         * modules/closeout (Description): Mention stderr too.
67840
67841 2006-10-06  Bruno Haible  <bruno@clisp.org>
67842         and Paul Eggert  <eggert@cs.ucla.edu>
67843
67844         * lib/closeout.c (close_stdout): Also close stderr.
67845         * lib/closeout.h: Update comment.
67846
67847 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67850         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67851         * lib/dirchownmod.c: Include lchown.h.
67852         * lib/lchown.c: Don't include files that lchown.h now includes.
67853         Don't declare chown, since lchown.h now does that.
67854         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67855         (lchown): Define to rpl_chown if lchown is declared but
67856         does not exist.  Declare using a prototype if lchown is not
67857         declared.  Add a copyright notice.
67858         * lib/mkstemp.h: Include <unistd.h>.
67859         * lib/openat.c: Include lchown.h.
67860
67861         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67862         we now test for that separately.
67863         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67864         rather than O_NOFOLLOW, when testing whether it's possible to
67865         avoid a race condition reliably.
67866         * lib/savewd.c (savewd_chdir): Likewise.
67867
67868         Remove macros that are no longer needed now that stdint.h is
67869         reliable.
67870         * lib/fsusage.c (UINTMAX_MAX): Remove.
67871         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67872         * lib/utimecmp.c (SIZE_MAX): Remove.
67873
67874         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67875
67876         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67877         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67878         O_NOATIME works.
67879
67880 2006-10-05  Bruno Haible  <bruno@clisp.org>
67881
67882         * lib/gl_list.h (gl_sortedlist_search_from_to,
67883         gl_sortedlist_indexof_from_to): New declarations.
67884         (gl_list_implementation): New fields sortedlist_search_from_to,
67885         sortedlist_indexof_from_to.
67886         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67887         inline functions.
67888         * lib/gl_list.c (gl_sortedlist_search_from_to,
67889         gl_sortedlist_indexof_from_to): New functions.
67890         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67891         function.
67892         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67893         (gl_array_sortedlist_search_from_to): New function.
67894         (gl_array_list_implementation): Update.
67895         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67896         function.
67897         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67898         (gl_carray_sortedlist_search_from_to): New function.
67899         (gl_carray_list_implementation): Update.
67900         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67901         gl_linked_sortedlist_indexof_from_to): New functions.
67902         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67903         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67904         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67905         gl_tree_sortedlist_indexof_from_to): New functions.
67906         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67907         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67908         Update.
67909         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67910         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67911         Update.
67912
67913 2006-10-05  Bruno Haible  <bruno@clisp.org>
67914
67915         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67916         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67917         (struct gl_list_implementation): Add fields search_from_to,
67918         indexof_from_to. Remove fields search, indexof.
67919         (gl_list_search): Use the search_from_to method.
67920         (gl_list_search_from, gl_list_search_from_to): New functions.
67921         (gl_list_indexof): Use the indexof_from_to method.
67922         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67923         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67924         (gl_list_search_from, gl_list_search_from_to): New functions.
67925         (gl_list_indexof): Use the indexof_from_to method.
67926         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67927         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67928         gl_array_indexof. Add start_index, end_index arguments.
67929         (gl_array_search_from_to): Renamed from gl_array_search. Add
67930         start_index, end_index arguments.
67931         (gl_array_remove, gl_array_list_implementation): Update.
67932         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
67933         gl_carray_indexof. Add start_index, end_index arguments.
67934         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
67935         start_index, end_index arguments.
67936         (gl_carray_remove, gl_carray_list_implementation): Update.
67937         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
67938         gl_linked_search. Add start_index, end_index arguments.
67939         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
67940         start_index, end_index arguments.
67941         (gl_linked_remove): Update.
67942         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67943         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67944         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
67945         field to 'size_t'.
67946         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
67947         gl_tree_search. Add start_index, end_index arguments.
67948         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67949         start_index, end_index arguments.
67950         (gl_tree_remove): Update.
67951         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67952         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67953         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
67954         function.
67955         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
67956         gl_tree_search. Add start_index, end_index arguments.
67957         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
67958         start_index, end_index arguments.
67959         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67960         Update.
67961         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
67962
67963 2006-10-05  Bruno Haible  <bruno@clisp.org>
67964
67965         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
67966
67967         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
67968         fwriteerror_temp): New declarations.
67969         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
67970         (descriptors): New variable.
67971         (cleanup): First, close the descriptors.
67972         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
67973         fclose_temp, fwriteerror_temp): New functions.
67974
67975 2006-10-04  Jim Meyering  <jim@meyering.net>
67976
67977         * lib/fts.c (fts_open): Tiny comment change.
67978
67979 2006-10-04  Bruno Haible  <bruno@clisp.org>
67980
67981         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
67982         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
67983         gl_LOCK_BODY.
67984         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
67985         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
67986         gl_LOCK_EARLY_BODY.
67987         (gl_LOCK): Require gl_LOCK_BODY.
67988
67989 2006-10-04  Bruno Haible  <bruno@clisp.org>
67990
67991         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
67992         (gl_oset_search_atleast): New declaration.
67993         (struct gl_oset_implementation): Add field 'search_atleast'.
67994         (gl_oset_search_atleast): New inline function.
67995         * lib/gl_oset.c (gl_oset_search_atleast): New function.
67996         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
67997         (gl_array_oset_implementation): Update.
67998         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
67999         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68000         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68001
68002 2006-10-04  Bruno Haible  <bruno@clisp.org>
68003
68004         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68005
68006 2006-10-03  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68009         from gl_avltreehash_list_implementation.
68010
68011 2006-10-03  Bruno Haible  <bruno@clisp.org>
68012
68013         * lib/gl_oset.c (gl_oset_add): Fix return type.
68014
68015 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68016
68017         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68018
68019 2006-10-02  Eric Blake  <ebb9@byu.net>
68020
68021         * modules/strnlen (Depends-on): Add extensions.
68022
68023 2006-10-02  Eric Blake  <ebb9@byu.net>
68024
68025         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68026         definition in 2.60+.
68027
68028 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68029
68030         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68031         checks.
68032
68033 2006-10-02  Bruno Haible  <bruno@clisp.org>
68034
68035         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68036         to the AUTOMAKE_OPTIONS.
68037         Reported by Jim Meyering.
68038
68039 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68040
68041         Work around bug in Solaris 10 /proc file system:
68042         /proc/self/fd/NNN/.. isn't the parent directory of
68043         the directory whose file descriptor is NNN.  This needs to
68044         be worked around at run time, not compile time, since a
68045         program might be built on Solaris 8, where things work, and
68046         run on Solaris 10.
68047         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68048         to use the following interface instead:
68049         (OPENAT_BUFFER_SIZE): New macro.
68050         (openat_proc_name): New function.
68051         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68052         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68053         Likewise.
68054         * lib/openat-proc.c: New file.
68055         * modules/openat (Files): Add lib/openat-proc.c.
68056         (Depends-on): Add same-inode, stdbool.
68057         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68058
68059 2006-09-29  Bruno Haible  <bruno@clisp.org>
68060
68061         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68062         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68063         argument. Set stdout_closed before testing for ferror, not after.
68064         (fwriteerror, fwriteerror_no_ebadf): New functions.
68065
68066 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68067
68068         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68069
68070 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68071
68072         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68073         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68074
68075 2006-09-28  Jim Meyering  <jim@meyering.net>
68076
68077         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68078         Include <unistd.h>.
68079
68080 2006-09-28  Bruno Haible  <bruno@clisp.org>
68081
68082         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68083         * modules/linkedhash-list (Depends-on): Likewise.
68084         * modules/rbtreehash-list (Depends-on): Likewise.
68085
68086 2006-09-28  Bruno Haible  <bruno@clisp.org>
68087
68088         * lib/strndup.h: Simplify the redefinition of strndup.
68089         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68090         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68091
68092 2006-09-28  Bruno Haible  <bruno@clisp.org>
68093
68094         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68095         * lib/gl_linkedhash_list.c: Likewise.
68096         * lib/gl_rbtreehash_list.c: Likewise.
68097
68098 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68099
68100         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68101         getaddrinfo.
68102
68103         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68104         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68105         it causes <stdio_ext.h> to cause a compile-time error.
68106         Problem reported by Nelson H. F. Beebe.
68107         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68108         of HAVE_DECL___PENDING.
68109
68110         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68111         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68112         declaration.
68113
68114 2006-09-27  Jim Meyering  <jim@meyering.net>
68115
68116         This file could end up with a definition for a function
68117         named __strndup, rather than rpl_strndup on a system with
68118         incomplete weak_alias support.
68119         * lib/strndup.c (strndup): Rename from __strndup.
68120         Remove #defines that used to map __strndup to strndup.
68121         Don't use K&R prototypes.
68122         Remove LIBC-related code, since this file is not sync'd with glibc.
68123         * lib/strndup.h: Revamp, accordingly.
68124         * m4/strndup.m4: Modernize.
68125
68126 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68127
68128         * modules/savewd (Depends-on): Add 'raise'.
68129         * lib/savewd.c: Include <signal.h>, for 'raise'.
68130
68131 2006-09-26  Jim Meyering  <jim@meyering.net>
68132
68133         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68134         when we detect Darwin 8.7.0's acl_get_file bug.
68135         Rearrange to perform the new (below) run-test while $LIBS
68136         contains any acl-related library.  Set USE_ACL at the end.
68137         (gl_ACL_GET_FILE): New function.
68138
68139 2006-09-26  Eric Blake  <ebb9@byu.net>
68140
68141         * lib/verror.c: Include <config.h> unconditionally.
68142
68143 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         * modules/clock-time (Maintainer): Add self.
68146         * modules/getlogin_r (Depends-on): Add extensions.
68147
68148 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68149
68150         * modules/clock-time: New module.
68151         * modules/nanosleep (Depends-on): Add clock-time.
68152         * modules/gethrxtime (Depends-on): Likewise.
68153         * modules/gettime (Depends-on): Likewise.
68154         * modules/settime (Depends-on): Likewise.
68155
68156         * modules/fts-lgpl: Depend on openat.
68157         * modules/mkancesdirs: Depend on savewd.
68158         * modules/mkdir-p: Likewise.
68159
68160 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68161
68162         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68163
68164         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68165         `gl_have_arbitrary_file_name_length_limit' to
68166         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68167         actually works between configure runs.
68168
68169 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68170             Bruno Haible  <bruno@clisp.org>
68171
68172         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68173
68174 2006-09-25  Jim Meyering  <jim@meyering.net>
68175
68176         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68177         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68178
68179 2006-09-25  Eric Blake  <ebb9@byu.net>
68180
68181         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68182         exec's in 2006-09-18 patch when shuffling fds.
68183
68184 2006-09-25  Bruno Haible  <bruno@clisp.org>
68185
68186         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68187         Reported by Jim Meyering.
68188
68189 2006-09-24  Jim Meyering  <jim@meyering.net>
68190
68191         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68192         compare a pointer against a literal "0".  That caused failures with
68193         at least HP-UX's hpcc.
68194
68195 2006-09-22  Simon Josefsson  <jas@extundo.com>
68196
68197         * modules/gc-sha1:
68198         * modules/gc-md4:
68199         * modules/gc-hmac-sha1:
68200         * modules/gc-hmac-md5:
68201         * modules/gc-des:
68202         * modules/gc-arcfour: Distribute more files.
68203
68204 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68205
68206         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68207         (gl_linked_iterator_from_to): Initialize struct completely.
68208         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68209         (gl_tree_iterator_from_to): Likewise
68210         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68211         * lib/gl_array_list.c [lint] (gl_array_iterator)
68212         (gl_array_iterator_from_to): Likewise.
68213         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68214         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68215         (gl_carray_iterator_from_to): Likewise.
68216
68217         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68218         * lib/md4.c (md4_process_block): Remove unused variable.
68219         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68220         parentheses for clarity.
68221
68222 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68223
68224         * modules/bison-i18n (Depends-on): Add gettext.
68225
68226 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68227
68228         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68229         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68230         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68231         also add missing comma that caused broken test.
68232         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68233         stdlib.h, for `abort'.
68234         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68235         variables.
68236         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68237         include unistd.h if present, for `rmdir'.
68238         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68239         variables.
68240         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68241         in the process include standard headers for prototypes.
68242         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68243         gets declared on GNU/Linux.
68244         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68245         unistd.h, for `rmdir'.
68246         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68247
68248         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68249         always true.
68250         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68251
68252         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68253
68254 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68255
68256         * gnulib-tool (func_version): Create output all at once.  This
68257         may help avoid triggering unnecessary SIGPIPEs, and at any
68258         rate it doesn't hurt.
68259
68260 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68261             Bruno Haible  <bruno@clisp.org>
68262
68263         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68264         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68265         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68266
68267         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68268         (gl_FUNC_VASPRINTF): Invoke it.
68269
68270 2006-09-22  Bruno Haible  <bruno@clisp.org>
68271
68272         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68273         getloadavg.c as first argument.
68274
68275 2006-09-22  Bruno Haible  <bruno@clisp.org>
68276
68277         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68278         at the beginning of the gl_INIT macro.
68279         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68280         gl_GETLOADAVG.
68281
68282 2006-09-22  Bruno Haible  <bruno@clisp.org>
68283
68284         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68285         module.
68286         Suggested by Ralf Wildenhues.
68287
68288 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68289
68290         Import this patch from libc:
68291
68292         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68293
68294         * lib/regex_internal.c (re_string_reconstruct): Handle
68295         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68296         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68297         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68298         re_string_context_at.
68299
68300         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68301         now requires it.
68302         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68303         gl_REGEX now does it for us.
68304         (gl_REGEX): Add test taken from
68305         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68306
68307         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68308         Check that large offsets work.  Modernize Autoconf usages.
68309         Prefer "yes" to mean a good thing rather than a bad.
68310         Don't put "#define mkstemp" in config.h, as this might interfere
68311         with standard system headers that "#define mkstemp mkstemp64".
68312
68313         * modules/mkstemp (Depends-on): Add extensions, so that
68314         mkstemp is visible on some platforms.
68315         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68316         (Include): Change to "mkstemp.h" from <stdlib.h>.
68317         (Files): Add mkstemp.h.
68318
68319         * lib/mkstemp.h: New file, since some standard headers
68320         #define mkstemp.
68321         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68322         Include "mkstemp.h".
68323         Make the _LIBC code resemble glibc original more,
68324         e.g., use K&R style.
68325         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68326         (mkstemp): Remove, since mkstemp.h does this for us.
68327         * lib/stdlib--.h: Include mkstemp.h.
68328
68329         Import this patch from libc:
68330
68331         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68332
68333         * lib/tempname.c (__gen_tempname): Change attempts_min
68334         into a macro.  Use preprocessor to decide how to initialize
68335         attempts [Coverity CID 67].
68336
68337 2006-09-20  Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/mkdtemp.c: Import from libc.
68340         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68341                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68342                 attempts_min into a macro.  Use preprocessor to decide how to
68343                 initialize attempts [Coverity CID 67].
68344         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68345                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68346                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68347
68348 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68349
68350         * gnulib-tool (func_exit): New function, to allow to pass the
68351         exit status portably through the trap.  Use everywhere.
68352         (--help, --version): Signal a write error.
68353         (trap): catch SIGPIPE, for write errors.
68354         Exit at the end of the trap, with the correct exit status.
68355
68356 2006-09-19  Karl Berry  <karl@gnu.org>
68357
68358         * doc/gnulib.texi: note about the license texinfo files.
68359
68360 2006-09-19  Eric Blake  <ebb9@byu.net>
68361
68362         * gnulib-tool: Avoid space-tab.
68363
68364 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68367         that prevented coreutils 6.1 from building.  Problem reported
68368         by Petter Reinholdtsen.
68369
68370 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         * gnulib-tool (avoidlist): Fix typo that broke options like
68373         --avoid=lock that are used by coreutils bootstrap.
68374
68375 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68376
68377         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68378         more systematically.
68379
68380 2006-09-18  Jim Meyering  <jim@meyering.net>
68381
68382         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68383
68384 2006-09-18  Bruno Haible  <bruno@clisp.org>
68385
68386         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68387
68388 2006-09-18  Bruno Haible  <bruno@clisp.org>
68389
68390         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68391         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68392         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68393         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68394         * m4/gettext.m4: Require autoconf >= 2.52.
68395         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68396         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68397         of gl_cv_header_inttypes_h.
68398
68399 2006-09-18  Bruno Haible  <bruno@clisp.org>
68400
68401         * lib/javaversion.c: Include configmake.h.
68402
68403 2006-09-18  Bruno Haible  <bruno@clisp.org>
68404
68405         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68406         avoid that the while loops be executed in a subshell.
68407
68408 2006-09-18  Bruno Haible  <bruno@clisp.org>
68409
68410         * MODULES.html.sh (func_module): Break long lines.
68411         Suggested by Bruce Korb <bkorb@gnu.org>.
68412
68413 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68414
68415         Speed up by a factor of 1.12.
68416         * gnulib-tool (nl): New variable.
68417         (func_import): Rewrite include directive extraction to only read each
68418         directive once.
68419
68420 2006-09-17  Bruno Haible  <bruno@clisp.org>
68421
68422         * modules/javaversion (Makefile.am): Remove DEFS setting.
68423         (Depends-on): Add configmake, for PKGDATADIR definition.
68424
68425 2006-09-17  Bruno Haible  <bruno@clisp.org>
68426
68427         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68428
68429 2006-09-17  Bruno Haible  <bruno@clisp.org>
68430
68431         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68432         (func_modules_transitive_closure, func_modules_add_dummy,
68433         func_modules_to_filelist, func_import, func_create_testdir,
68434         func_create_megatestdir, ...): Use it wherever possible.
68435         Suggested by Ralf Wildenhues.
68436
68437 2006-09-16  Karl Berry  <karl@gnu.org>
68438
68439         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68440         to avoid sectioning errors.
68441         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68442         [ifinfo]: blank line after @center-ed titles.
68443         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68444         Spell FSF address consistently with others.
68445         (These changes approved by rms.)
68446
68447 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68448
68449         Speed up by a factor of 1.61.
68450         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68451         already checked module names again.
68452
68453 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68454
68455         Speed up by a factor of 1.13.
68456         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68457         for new_files, and the input to func_add_or_update.
68458
68459 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68460
68461         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68462         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68463
68464 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68465
68466         * modules/mkancesdirs (Depends-on): Add fcntl.
68467         * modules/savewd: New file.
68468         * MODULES.html.sh (File system functions): Add savewd.
68469
68470         * modules/configmake (Makefile.am): Add support for the
68471         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68472
68473 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68474
68475         * m4/savewd.m4: New file.
68476
68477 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68480         (dirchownmod): New arg FD.  All callers changed.
68481         Use FD rather than opening the directory ourself, as opening is
68482         now the caller's responsibility.
68483         * lib/dirchownmod.h: Likewise.
68484         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68485         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68486         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68487         (test_dir): Remove.
68488         (mkancesdirs): Return length of prefix of FILE that has already
68489         been made, or -2 if there is a child doing the work.  Redo
68490         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68491         ".", and treat ".." specially since it might stray back into
68492         already-created areas.  Use a subprocess if necessary.  New arg
68493         WD; all users changed.  MAKE_DIR function should now return 1
68494         if it creates a directory that is not readable.  Return -2 if
68495         a child process is spun off.
68496         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68497         Adjust signature to match code.
68498         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68499         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68500         all users changed.
68501         * lib/savewd.c, lib/savewd.h: New files.
68502
68503 2006-09-15  Jim Meyering  <jim@meyering.net>
68504
68505         * modules/rename-dest-slash: New module.
68506         * MODULES.html.sh (posix_compat): Add it here.
68507
68508         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68509
68510 2006-09-15  Jim Meyering  <jim@meyering.net>
68511
68512         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68513         file.
68514
68515         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68516
68517 2006-09-15  Jim Meyering  <jim@meyering.net>
68518
68519         * lib/rename-dest-slash.c (has_trailing_slash): Use
68520         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68521         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68522         test before testing whether SRC is a directory.
68523         Suggestions from Bruno Haible.
68524
68525         Avoid a warning about an unused variable.
68526         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68527         into the #ifdef block where it's used.
68528
68529         * lib/rename-dest-slash.c: New file.
68530
68531 2006-09-14  Bruno Haible  <bruno@clisp.org>
68532
68533         * lib/allocsa.c: Include <config.h> unconditionally.
68534         * lib/asnprintf.c: Likewise.
68535         * lib/asprintf.c: Likewise.
68536         * lib/c-strcasecmp.c: Likewise.
68537         * lib/c-strcasestr.c: Likewise.
68538         * lib/c-strncasecmp.c: Likewise.
68539         * lib/c-strstr.c: Likewise.
68540         * lib/classpath.c: Likewise.
68541         * lib/clean-temp.c: Likewise.
68542         * lib/concatpath.c: Likewise.
68543         * lib/copy-file.c: Likewise.
68544         * lib/csharpcomp.c: Likewise.
68545         * lib/csharpexec.c: Likewise.
68546         * lib/execute.c: Likewise.
68547         * lib/fatal-signal.c: Likewise.
68548         * lib/findprog.c: Likewise.
68549         * lib/fwriteerror.c: Likewise.
68550         * lib/gl_array_list.c: Likewise.
68551         * lib/gl_array_oset.c: Likewise.
68552         * lib/gl_avltree_list.c: Likewise.
68553         * lib/gl_avltree_oset.c: Likewise.
68554         * lib/gl_avltreehash_list.c: Likewise.
68555         * lib/gl_carray_list.c: Likewise.
68556         * lib/gl_linked_list.c: Likewise.
68557         * lib/gl_linkedhash_list.c: Likewise.
68558         * lib/gl_list.c: Likewise.
68559         * lib/gl_oset.c: Likewise.
68560         * lib/gl_rbtree_list.c: Likewise.
68561         * lib/gl_rbtree_oset.c: Likewise.
68562         * lib/gl_rbtreehash_list.c: Likewise.
68563         * lib/imaxabs.c: Likewise.
68564         * lib/imaxdiv.c: Likewise.
68565         * lib/javacomp.c: Likewise.
68566         * lib/javaexec.c: Likewise.
68567         * lib/javaversion.c: Likewise.
68568         * lib/linebreak.c: Likewise.
68569         * lib/localcharset.c: Likewise.
68570         * lib/lock.c: Likewise.
68571         * lib/mbchar.c: Likewise.
68572         * lib/mbswidth.c: Likewise.
68573         * lib/mkdtemp.c: Likewise.
68574         * lib/pipe.c: Likewise.
68575         * lib/printf-args.c: Likewise.
68576         * lib/printf-parse.c: Likewise.
68577         * lib/progname.c: Likewise.
68578         * lib/progreloc.c: Likewise.
68579         * lib/readlink.c: Likewise.
68580         * lib/sh-quote.c: Likewise.
68581         * lib/stpcpy.c: Likewise.
68582         * lib/stpncpy.c: Likewise.
68583         * lib/strcasecmp.c: Likewise.
68584         * lib/strcasestr.c: Likewise.
68585         * lib/strcspn.c: Likewise.
68586         * lib/striconv.c: Likewise.
68587         * lib/strncasecmp.c: Likewise.
68588         * lib/strnlen1.c: Likewise.
68589         * lib/strstr.c: Likewise.
68590         * lib/strtok_r.c: Likewise.
68591         * lib/tls.c: Likewise.
68592         * lib/tmpdir.c: Likewise.
68593         * lib/unicodeio.c: Likewise.
68594         * lib/unsetenv.c: Likewise.
68595         * lib/vasnprintf.c: Likewise.
68596         * lib/vasprintf.c: Likewise.
68597         * lib/wait-process.c: Likewise.
68598         * lib/xallocsa.c: Likewise.
68599         * lib/xsetenv.c: Likewise.
68600         * lib/xstriconv.c: Likewise.
68601
68602 2006-09-13  Simon Josefsson  <jas@extundo.com>
68603
68604         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68605         that internally, suggested by Ralf Wildenhues
68606         <Ralf.Wildenhues@gmx.de>.
68607
68608 2006-09-13  Simon Josefsson  <jas@extundo.com>
68609
68610         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68611         @LIBOBJS@.
68612         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68613
68614 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68615
68616         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68617         longer worry about uses that don't define HAVE_CONFIG_H.
68618         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68619         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68620         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68621         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68622         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68623         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68624         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68625         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68626         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68627         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68628         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68629         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68630         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68631         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68632         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68633         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68634         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68635         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68636         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68637         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68638         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68639         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68640         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68641         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68642         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68643         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68644         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68645         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68646         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68647         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68648         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68649         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68650         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68651         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68652         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68653         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68654         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68655         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68656         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68657         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68658         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68659         Likewise.
68660
68661 2006-09-13  Eric Blake  <ebb9@byu.net>
68662
68663         * lib/getopt.c: Fix typo in last commit.
68664
68665 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68666
68667         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68668         dgettext.
68669
68670 2006-09-12  Jim Meyering  <jim@meyering.net>
68671
68672         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68673         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68674         Reported by Nelson H. F. Beebe.
68675
68676 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68677
68678         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68679         program_invocation_name and program_invocation_short_name are
68680         initialized.
68681         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68682         and program_invocation_short_name to argp.h, so they are visible
68683         to user programs.
68684         * lib/argp.h: Likewise
68685
68686 2006-09-10  Bruno Haible  <bruno@clisp.org>
68687
68688         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68689         m4/inttypes_h.m4, m4/uintmax_t.m4.
68690
68691 2006-09-10  Bruno Haible  <bruno@clisp.org>
68692
68693         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68694         gl_AC_TYPE_UINTMAX_T.
68695
68696 2006-09-10  Bruno Haible  <bruno@clisp.org>
68697
68698         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68699
68700 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68701
68702         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68703         convention.  Text proposed by Bruno Haible.
68704         (struct argp_option): Document the use of N_() wrappers.
68705
68706         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68707         '\v', and translate the two parts separately, instead of feeding
68708         the whole string to gettext.  This allows to exclude
68709         '\v' from the strings visible to the translator by writing doc
68710         strings as N_("..") "\v" N_("..").
68711
68712 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         * config/srclist.txt: Undo latest change; the bug was fixed.
68715
68716 2006-09-09  Bruno Haible  <bruno@clisp.org>
68717
68718         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68719         assignments if building a library without libtool.
68720         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68721         in func_emit_lib_Makefile_am.
68722         (func_import): When building a static library libfoo.a, arrange to
68723         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68724         (func_create_testdir): Likewise.
68725         * modules/gc (configure.ac, Makefile.am): If building statically,
68726         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68727         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68728         * modules/striconv (configure.ac, Makefile.am): Likewise.
68729         Based on a suggestion by Ralf Wildenhues.
68730
68731 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68732
68733         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68734         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68735         Also:
68736
68737         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68738         Add year_2050_test to catch glibc bug 2821
68739         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68740
68741         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68742         Prefer #ifdef to #if.
68743
68744         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68745         Return from 'main' instead of calling 'exit'.
68746
68747 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68748
68749         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68750         returned the maximum time_t value rather than (time_t) -1.
68751         Problem originally reported by William Bardwell
68752         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68753
68754         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68755         Moved to here ...
68756         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68757         ... from here.
68758
68759 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68760
68761         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68762         2821 is fixed.
68763
68764 2006-09-08  Jim Meyering  <jim@meyering.net>
68765
68766         Don't make generated files read-only.  That would bother too many
68767         people.  However, do retain the ability to work when targets are
68768         read-only: remove the destination and temporary files before writing
68769         them (when generated via sed or echo), or by using the -f option for
68770         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68771         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68772         * modules/byteswap, modules/configmake, modules/fcntl:
68773         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68774         * modules/localcharset, modules/netinet_in, modules/poll:
68775         * modules/stdbool, modules/stdint, modules/sys_select:
68776         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68777
68778 2006-09-08  Jim Meyering  <jim@meyering.net>
68779
68780         Avoid new build failure on FreeBSD 6.0.
68781         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68782         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68783         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68784
68785 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68786
68787         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68788
68789 2006-09-07  Jim Meyering  <jim@meyering.net>
68790
68791         Fix global typo in last change: use chmod u-w, not chmod u-x.
68792         Spotted by Paul Eggert and Bruce Korb.
68793         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68794         * modules/byteswap, modules/configmake, modules/fcntl:
68795         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68796         * modules/localcharset, modules/netinet_in, modules/poll:
68797         * modules/stdbool, modules/stdint, modules/sys_select:
68798         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68799
68800 2006-09-06  Jim Meyering  <jim@meyering.net>
68801
68802         Make generated files be read-only.
68803         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68804         Ensure that each generated file is now read-only.
68805         * modules/argz: Likewise.
68806         * modules/arpa_inet: Likewise.
68807         * modules/byteswap: Likewise.
68808         * modules/configmake: Likewise.
68809         * modules/fcntl: Likewise.
68810         * modules/fnmatch: Likewise.
68811         * modules/getopt: Likewise.
68812         * modules/glob: Likewise.
68813         * modules/inttypes: Likewise.
68814         * modules/netinet_in: Likewise.
68815         * modules/poll: Likewise.
68816         * modules/stdbool: Likewise.
68817         * modules/stdint: Likewise.
68818         * modules/sys_select: Likewise.
68819         * modules/sys_socket: Likewise.
68820         * modules/sys_stat: Likewise.
68821         * modules/sysexits: Likewise.
68822         * modules/localcharset: Same as above, but continue using temporary
68823         file named "t-$@" (why different?) rather than the "$@-t" used
68824         everywhere else.
68825
68826         * modules/sysexits (Makefile.am): Replace literal occurrences
68827         of "sysexit.h" more readable, and more consistent, "$@".
68828
68829 2006-09-06  Bruno Haible  <bruno@clisp.org>
68830
68831         * modules/striconv: New file.
68832         * modules/xstriconv: New file.
68833         * MODULES.html.sh (Internationalization functions): Add striconv,
68834         xstriconv.
68835
68836 2006-09-06  Bruno Haible  <bruno@clisp.org>
68837
68838         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68839         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68840         not using libtool correctly.
68841
68842 2006-09-06  Bruno Haible  <bruno@clisp.org>
68843
68844         * lib/striconv.h: New file.
68845         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68846         iconvstring.c.
68847         * lib/xstriconv.h: New file.
68848         * lib/xstriconv.c: New file.
68849
68850 2006-09-06  Bruno Haible  <bruno@clisp.org>
68851
68852         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68853         lib_..._LDFLAGS.
68854
68855 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68856
68857         * lib/argz_.h: Sync from Libtool.
68858
68859         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68860                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68861
68862         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68863
68864 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68865
68866         * modules/trim: New file.
68867
68868 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68869
68870         * lib/trim.h: New file.
68871         * lib/trim.c: New file.
68872
68873 2006-09-05  Bruno Haible  <bruno@clisp.org>
68874
68875         * MODULES.html.sh (String handling): Add trim.
68876
68877 2006-09-04  Karl Berry  <karl@gnu.org>
68878
68879         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68880         until next release.
68881
68882 2006-09-03  Bruno Haible  <bruno@clisp.org>
68883
68884         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68885         correctly.
68886
68887 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68888
68889         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68890         not gl_GETLOADAVG.  Omit unneeded semicolons.
68891         Problems reported by Ralf Wildenhues in
68892         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68893         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68894         at the end, which is the usual gnulib style.
68895
68896         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68897         of doing all the work ourselves.
68898         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68899         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68900
68901 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68904         Problem reported by Ralf Wildenhues in
68905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68906
68907         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68908         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68909
68910 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68911
68912         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68913         yesterday's patch by changing test -n to test -z.
68914
68915 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68916
68917         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68918         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68919         the former is now obsolescent.
68920
68921         * modules/chdir-long (Depends-on): Add fcntl.
68922
68923 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68926         obsolescent, and programs should use gnulib instead.
68927         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68928         but with prefixes changed.
68929
68930 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68931
68932         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
68933         or stdbool.h, because they might not exist while configuring.
68934
68935         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
68936         Don't include unistd.h or limits.h; not needed, since chdir-long.h
68937         does that for us.
68938         (O_DIRECTORY): Remove.
68939
68940 2006-08-31  Eric Blake  <ebb9@byu.net>
68941
68942         * gnulib-tool: Don't let emacs change spaces to TAB.
68943
68944 2006-08-31  Bruno Haible  <bruno@clisp.org>
68945
68946         * gnulib-tool: When calling func_import more than once, do it in a
68947         subshell.
68948         Reported by Eric Blake <ebb9@byu.net>.
68949
68950 2006-08-31  Bruno Haible  <bruno@clisp.org>
68951
68952         * gnulib-tool (nl): Remove variable.
68953         (sed_transform_lib_file): Use more robust test for config-h module.
68954         (func_import): Fix typo in 2006-08-25 patch.
68955
68956 2006-08-31  Bruno Haible  <bruno@clisp.org>
68957
68958         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
68959         specified, augment Makefile.am variables instead of assigning them.
68960
68961 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68962
68963         Work around a bug in both the Linux and SunOS 64-bit kernels:
68964         nanosleep mishandles sleeps for longer than 2**31 seconds.
68965         Problem reported by Frank v Waveren in
68966         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68967         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
68968         Check for nanosleep bug.
68969         (LIB_NANOSLEEP): Append clock_gettime library if needed.
68970
68971 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68972
68973         Work around a bug in both the Linux and SunOS 64-bit kernels:
68974         nanosleep mishandles sleeps for longer than 2**31 seconds.
68975         Problem reported by Frank v Waveren in
68976         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
68977         * lib/nanosleep.c (BILLION): New constant.
68978         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
68979         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
68980         implementation.
68981
68982 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68983
68984         * modules/nanosleep (Depends-on): Add gettime.
68985
68986 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
68987         and Simon Josefsson  <jas@extundo.com>
68988         and Oskar Liljeblad  <oskar@osk.mine.nu>
68989
68990         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
68991         * gnulib-tool (func_import): New license type 'unmodifiable license
68992         text'.
68993         * modules/fdl: Use it.  Longer description.
68994         * module/gpl, module/lgpl: New files.
68995
68996 2006-08-30  Jim Meyering  <jim@meyering.net>
68997
68998         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
68999         shadowing the parameter.
69000
69001 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69002
69003         Sync from Libtool:
69004
69005         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69006
69007         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69008         sharing with gnulib.  Report by Eric Blake.
69009
69010 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69011
69012         * modules/isapipe: New file.
69013         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69014
69015 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         * modules/configmake (Makefile.am): Add a comment, and omit
69018         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69019         by Bruno Haible.
69020
69021 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69022
69023         * m4/isapipe.m4: New file.
69024
69025 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69026
69027         * lib/isapipe.c, lib/isapipe.h: New files.
69028
69029 2006-08-29  Jim Meyering  <jim@meyering.net>
69030
69031         * modules/configmake (Makefile.am): Make configmake.h depend on
69032         Makefile.  Otherwise, a stale configmake.h could hang around.
69033
69034 2006-08-29  Eric Blake  <ebb9@byu.net>
69035
69036         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69037         resolution of upstream bug 3044.
69038
69039 2006-08-29  Bruno Haible  <bruno@clisp.org>
69040
69041         * modules/localcharset (Depends-on): Add configmake.
69042         (Makefile.am): Remove setting of LIBDIR through DEFS.
69043
69044 2006-08-29  Bruno Haible  <bruno@clisp.org>
69045
69046         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69047         defined.
69048
69049 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69050
69051         * modules/fcntl: New file.
69052         * modules/chdir-safer (Depends-on): Add fcntl.
69053         * modules/fts: Likewise.
69054         * modules/mkdir-p: Likewise.
69055
69056         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69057         This undoes the most recent change, since we're now addressing the
69058         problem in a different way.
69059
69060         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69061         into output, since the output might be called Makefile.am even
69062         if $makefile_name is something different.
69063         (func_import): Use $makefile_am rather than
69064         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69065         empty.
69066
69067         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69068
69069 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69070
69071         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69072         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69073         recent change to stdint.m4, since we're now addressing the problem in a
69074         different way.
69075
69076 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69077
69078         * m4/fcntl_h.m4: New file.
69079
69080 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69081
69082         * lib/fcntl_.h: New file.
69083         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69084         the fcntl module.
69085         * lib/dirchownmod.c: Likewise.
69086         * lib/fts.c: Likewise.
69087
69088         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69089         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69090         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69091         just before including <inttypes.h>, to avoid circular inclusion.
69092
69093 2006-08-28  Jim Meyering  <jim@meyering.net>
69094
69095         * doc/visibility.texi: Actually read and correct the grammar of the
69096         sentence affected by yesterday's change.
69097
69098 2006-08-28  Eric Blake  <ebb9@byu.net>
69099
69100         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69101         needs wrapper.
69102
69103 2006-08-28  Eric Blake  <ebb9@byu.net>
69104
69105         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69106
69107 2006-08-28  Eric Blake  <ebb9@byu.net>
69108
69109         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69110
69111 2006-08-28  Bruno Haible  <bruno@clisp.org>
69112
69113         * modules/c-strstr: New file, from GNU gettext.
69114         * MODULES.html.sh (String handling): Add c-strstr.
69115
69116 2006-08-28  Bruno Haible  <bruno@clisp.org>
69117
69118         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69119         macros.
69120         Reported by Eric Blake.
69121
69122 2006-08-28  Bruno Haible  <bruno@clisp.org>
69123
69124         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69125         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69126         * lib/vasprintf.c: Include errno.h, limits.h.
69127         (EOVERFLOW): New fallback definition.
69128         (vasprintf): Test here whether the string length is > INT_MAX.
69129         * lib/vsnprintf.c: Include errno.h, limits.h.
69130         (EOVERFLOW): New fallback definition.
69131         (vsnprintf): Fix bug when generated string was too long for the buffer.
69132         Test here whether the string length is > INT_MAX.
69133
69134 2006-08-28  Bruno Haible  <bruno@clisp.org>
69135
69136         * lib/inttypes_.h (SCNX*): Remove definitions.
69137         Reported by Eric Blake.
69138
69139 2006-08-28  Bruno Haible  <bruno@clisp.org>
69140
69141         * lib/c-strstr.h: New file, from GNU gettext.
69142         * lib/c-strstr.c: New file, from GNU gettext.
69143
69144 2006-08-28  Bruno Haible  <bruno@clisp.org>
69145
69146         * gnulib-tool: Reorder some statements.
69147
69148 2006-08-28  Bruno Haible  <bruno@clisp.org>
69149
69150         * gnulib-tool: New option --makefile-name.
69151         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69152         $makefile_name.
69153         (func_import): Write $makefile_name to the cache file, and read it from
69154         there unless explicitly specified. Use $makefile_name as file name
69155         instead of Makefile.am. Adjust the recommendations accordingly.
69156
69157 2006-08-28  Bruno Haible  <bruno@clisp.org>
69158
69159         * gnulib-tool (func_verify_module): Check against misapplying patch.
69160
69161 2006-08-28  Bruno Haible  <bruno@clisp.org>
69162
69163         * gnulib-tool (func_relativize, func_relconcat): New functions.
69164         Give an error if --local-dir is given with --update.
69165         Remove trailing slashes from $local_gnulib_dir.
69166         (func_import): Store the relativized $local_gnulib_dir in
69167         gnulib-cache.m4, and read it from there if not specified explicitly.
69168
69169 2006-08-28  Bruno Haible  <bruno@clisp.org>
69170
69171         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69172         is the current directory. Respect also $local_gnulib_dir.
69173
69174 2006-08-28  Bruno Haible  <bruno@clisp.org>
69175             Simon Josefsson  <jas@extundo.com>
69176
69177         BeOS portability.
69178         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69179
69180 2006-08-27  Jim Meyering  <jim@meyering.net>
69181
69182         * doc/visibility.texi: Remove duplicate word: "pointer".
69183
69184 2006-08-26  Bruno Haible  <bruno@clisp.org>
69185
69186         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69187         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69188         (Makefile.am): Create inttypes.h from inttypes_.h.
69189         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69190
69191         * modules/imaxabs: New file.
69192
69193         * modules/imaxdiv: New file.
69194
69195 2006-08-26  Bruno Haible  <bruno@clisp.org>
69196
69197         * m4/inttypes.m4: New file.
69198         * m4/_inttypes_h.m4: Remove file.
69199         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69200         PRI_MACROS_BROKEN.
69201         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69202
69203         * m4/imaxabs.m4: New file.
69204
69205         * m4/imaxdiv.m4: New file.
69206
69207 2006-08-26  Bruno Haible  <bruno@clisp.org>
69208
69209         * lib/inttypes_.h: New file.
69210         * lib/inttypes.h: Remove file.
69211         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69212
69213         * lib/imaxabs.c: New file.
69214
69215         * lib/imaxdiv.c: New file.
69216
69217 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69218
69219         New config-h module, so that "make" output needn't be cluttered
69220         by -DHAVE_CONFIG_H.
69221         * MODULES.html.sh (Support for building libraries and executables):
69222         Add config-h.
69223         * modules/config-h: New file.
69224         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69225         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69226         the config-h module is used.
69227
69228         New configmake module, so that "make" output needn't be cluttered
69229         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69230         * MODULES.html.sh (Support for building libraries and executables):
69231         Add configmake.
69232         * modules/configmake: New file.
69233
69234 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69235
69236         * m4/config-h.m4: New file.
69237
69238 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69239
69240         * config/srclist.txt: Add elisp-comp.
69241
69242 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69243
69244         * MODULES.html.sh (Support for building libraries and executables):
69245         Add elisp-comp.
69246         * build-aux/elisp-comp: New file.
69247         * modules/elisp-comp: New file.
69248
69249 2006-08-24  Bruno Haible  <bruno@clisp.org>
69250
69251         * gnulib-tool (func_create_testdir): Use non-default values of
69252         sourcebase and m4base.
69253
69254 2006-08-24  Bruno Haible  <bruno@clisp.org>
69255
69256         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69257         HTML structure.
69258
69259 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69260
69261         * modules/openat (Depends-on): Add lchown.
69262
69263 2006-08-23  Bruno Haible  <bruno@clisp.org>
69264
69265         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69266         of gl_LOCK_EARLY instead of gl_LOCK.
69267
69268 2006-08-23  Bruno Haible  <bruno@clisp.org>
69269
69270         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69271         on OSF/1 to no.
69272         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69273
69274 2006-08-23  Bruno Haible  <bruno@clisp.org>
69275
69276         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69277         as unusable.
69278
69279         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69280         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69281         (gl_LOCK): New macro.
69282
69283 2006-08-22  Simon Josefsson  <jas@extundo.com>
69284
69285         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69286         to md5 module.
69287
69288 2006-08-22  Simon Josefsson  <jas@extundo.com>
69289
69290         * MODULES.html.sh: Add "Support for maintaining and release
69291         projects".
69292
69293         * build-aux/gnupload: New file, from coreutils.
69294
69295 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         Avoid the need for AC_LIBSOURCES in m4 macros.
69298         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69299         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69300         * modules/check-version (EXTRA_DIST): Add check-version.h.
69301         * modules/crc (EXTRA_DIST): Add crc.h.
69302         * modules/des (EXTRA_DIST): Add des.h.
69303         * modules/gc (EXTRA_DIST): Add gc.h.
69304         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69305         * modules/getline (EXTRA_DIST): Add getline.h.
69306         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69307         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69308         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69309         * modules/md2 (EXTRA_DIST): Add md2.h.
69310         * modules/md4 (EXTRA_DIST): Add md4.h.
69311         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69312         * modules/read-file (EXTRA_DIST): Add read-file.h.
69313         * modules/readline (EXTRA_DIST): Add readline.h.
69314         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69315         rijndael-api-fst.h.
69316
69317 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69318
69319         * m4/rijndael.m4 (gl_ARCFOUR):
69320         * m4/arctwo.m4 (gl_ARCTWO):
69321         * m4/check-version.m4 (gl_CHECK_VERSION):
69322         * m4/crc.m4 (gl_CRC):
69323         * m4/des.m4 (gl_DES):
69324         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69325         * m4/gc.m4 (gl_GC):
69326         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69327         * m4/getline.m4 (gl_FUNC_GETLINE):
69328         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69329         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69330         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69331         * m4/md2.m4 (gl_MD2):
69332         * m4/md4.m4 (gl_MD4):
69333         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69334         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69335         * m4/readline.m4 (gl_FUNC_READLINE):
69336         * m4/rijndael.m4 (gl_RIJNDAEL):
69337         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69338         to get the necessary .h files and whatnot.
69339
69340 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69341
69342         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69343         gnulib rather than the other way around.
69344         * config/srclistvars.sh (COREUTILS): Remove.
69345
69346 2006-08-22  Jim Meyering  <jim@meyering.net>
69347
69348         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69349
69350         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69351
69352 2006-08-22  Eric Blake  <ebb9@byu.net>
69353
69354         * modules/regexprops-generic: New file.
69355         * MODULES.html.sh (Support for building documentation): List it.
69356
69357 2006-08-22  Eric Blake  <ebb9@byu.net>
69358
69359         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69360         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69361         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69362         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69363
69364 2006-08-22  Bruno Haible  <bruno@clisp.org>
69365
69366         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69367         and lib_LTLIBRARIES like the other lib_* variables.
69368
69369 2006-08-22  Bruno Haible  <bruno@clisp.org>
69370
69371         * build-aux/x-to-1.in: New file, from GNU gettext.
69372
69373 2006-08-22  Bruno Haible  <bruno@clisp.org>
69374
69375         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69376         <utmpx.h> exists.
69377
69378 2006-08-22  Bruno Haible  <bruno@clisp.org>
69379
69380         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69381         <utmpx.h> exists.
69382
69383 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69384
69385         BeOS portability.
69386         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69387         exist.
69388         Problem reported by Bruno Haible.
69389
69390 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69391
69392         Avoid the need for AC_LIBSOURCES in m4 macros.
69393         * modules/acl (EXTRA_DIST): Add acl.h.
69394         * modules/argmatch (Files): Add m4/argmatch.m4.
69395         (configure.ac): Add gl_ARGMATCH.
69396         (EXTRA_DIST): Renamed from lib_SOURCES, for
69397         consistency with the other modules.  Remove argmatch.c.
69398         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69399         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69400         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69401         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69402         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69403         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69404         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69405         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69406         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69407         * modules/closeout (EXTRA_DIST): Add closeout.h.
69408         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69409         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69410         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69411         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69412         dirname.h; remove basename.c and stripslash.c.
69413         * modules/exclude (EXTRA_DIST): Add exclude.h.
69414         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69415         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69416         * modules/file-type (EXTRA_DIST): Add file-type.h.
69417         * modules/filemode (EXTRA_DIST): Add filemode.h.
69418         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69419         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69420         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69421         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69422         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69423         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69424         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69425         * modules/getdate (EXTRA_DIST): Add getdate.c.
69426         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69427         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69428         * modules/getpass (EXTRA_DIST): Add getpass.h.
69429         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69430         * modules/group-member (EXTRA_DIST): Add group-member.h.
69431         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69432         * modules/hash (EXTRA_DIST): Add hash.h.
69433         * modules/human (EXTRA_DIST): Add human.h.
69434         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69435         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69436         * modules/lchown (EXTRA_DIST): Add lchown.h.
69437         * modules/long-options (EXTRA_DIST): Add long-options.h.
69438         * modules/lstat (EXTRA_DIST): Add lstat.h.
69439         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69440         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69441         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69442         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69443         * modules/memxor (EXTRA_DIST): Add memxor.h.
69444         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69445         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69446         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69447         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69448         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69449         * modules/physmem (EXTRA_DIST): Add physmem.h.
69450         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69451         * modules/posixver (EXTRA_DIST): Add posixver.h.
69452         * modules/quote (EXTRA_DIST): Add quote.h.
69453         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69454         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69455         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69456         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69457         regex_internal.h regexec.c.
69458         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69459         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69460         * modules/same (EXTRA_DIST): Add same.h.
69461         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69462         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69463         * modules/savedir (EXTRA_DIST): Add savedir.h.
69464         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69465         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69466         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69467         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69468         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69469         * modules/strdup (EXTRA_DIST): Add strdup.h.
69470         * modules/strftime (EXTRA_DIST): Add strftime.h.
69471         * modules/strndup (EXTRA_DIST): Add strndup.h.
69472         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69473         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69474         * modules/time_r (EXTRA_DIST): Add time_r.h.
69475         * modules/timespec (EXTRA_DIST): Add timespec.h.
69476         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69477         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69478         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69479         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69480         * modules/userspec (EXTRA_DIST): Add userspec.h.
69481         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69482         * modules/utimens (EXTRA_DIST): Add utimens.h.
69483         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69484         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69485         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69486         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69487         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69488         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69489         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69490         * modules/yesno (EXTRA_DIST): Add yesno.h.
69491
69492 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69495
69496         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69497         * m4/dev-ino.m4, same-inode.m4: Remove.
69498
69499         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69500         * m4/acl.m4 (AC_FUNC_ACL):
69501         * m4/backupfile.m4 (gl_BACKUPFILE):
69502         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69503         * m4/canon-host.m4 (gl_CANON_HOST):
69504         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69505         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69506         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69507         * m4/cloexec.m4 (gl_CLOEXEC):
69508         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69509         * m4/closeout.m4 (gl_CLOSEOUT):
69510         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69511         * m4/dirname.m4 (gl_DIRNAME):
69512         * m4/exclude.m4 (gl_EXCLUDE):
69513         * m4/exitfail.m4 (gl_EXITFAIL):
69514         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69515         * m4/file-type.m4 (gl_FILE_TYPE):
69516         * m4/filemode.m4 (gl_FILEMODE):
69517         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69518         * m4/fpending.m4 (gl_FUNC_FPENDING):
69519         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69520         * m4/fts.m4 (gl_FUNC_FTS):
69521         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69522         * m4/getdate.m4 (gl_GETDATE):
69523         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69524         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69525         * m4/getpass.m4 (gl_FUNC_GETPASS):
69526         * m4/gettime.m4 (gl_GETTIME):
69527         * m4/getugroups.m4 (gl_GETUGROUPS):
69528         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69529         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69530         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69531         * m4/hash.m4 (gl_HASH):
69532         * m4/idcache.m4 (gl_IDCACHE):
69533         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69534         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69535         * m4/long-options.m4 (gl_LONG_OPTIONS):
69536         * m4/lstat.m4 (gl_FUNC_LSTAT):
69537         * m4/md5.m4 (gl_MD5):
69538         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69539         * m4/memcoll.m4 (gl_MEMCOLL):
69540         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69541         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69542         * m4/memxor.m4 (gl_MEMXOR):
69543         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69544         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69545         * m4/modechange.m4 (gl_MODECHANGE):
69546         * m4/mountlist.m4 (gl_MOUNTLIST):
69547         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69548         * m4/openat.m4 (gl_FUNC_OPENAT):
69549         * m4/pathmax.m4 (gl_PATHMAX):
69550         * m4/physmem.m4 (gl_PHYSMEM):
69551         * m4/posixtm.m4 (gl_POSIXTM):
69552         * m4/posixver.m4 (gl_POSIXVER):
69553         * m4/quote.m4 (gl_QUOTE):
69554         * m4/quotearg.m4 (gl_QUOTEARG):
69555         * m4/readtokens.m4 (gl_READTOKENS):
69556         * m4/readutmp.m4 (gl_READUTMP):
69557         * m4/regex.m4 (gl_REGEX):
69558         * m4/safe-read.m4 (gl_SAFE_READ):
69559         * m4/safe-write.m4 (gl_SAFE_WRITE):
69560         * m4/same.m4 (gl_SAME):
69561         * m4/save-cwd.m4 (gl_SAVE_CWD):
69562         * m4/savedir.m4 (gl_SAVEDIR):
69563         * m4/settime.m4 (gl_SETTIME):
69564         * m4/sha1.m4 (gl_SHA1):
69565         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69566         * m4/stat-macros.m4 (gl_STAT_MACROS):
69567         * m4/stat-time.m4 (gl_STAT_TIME):
69568         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69569         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69570         * m4/strdup.m4 (gl_FUNC_STRDUP):
69571         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69572         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69573         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69574         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69575         * m4/time_r.m4 (gl_TIME_R):
69576         * m4/timespec.m4 (gl_TIMESPEC):
69577         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69578         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69579         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69580         * m4/userspec.m4 (gl_USERSPEC):
69581         * m4/utimecmp.m4 (gl_UTIMECMP):
69582         * m4/utimens.m4 (gl_UTIMENS):
69583         * m4/xalloc.m4 (gl_XALLOC):
69584         * m4/xgetcwd.m4 (gl_XGETCWD):
69585         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69586         * m4/xreadlink.m4 (gl_XREADLINK):
69587         * m4/xstrtod.m4 (gl_XSTRTOD):
69588         * m4/yesno.m4 (gl_YESNO):
69589         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69590         to get the necessary .h files and whatnot.
69591
69592 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69593             Bruno Haible  <bruno@clisp.org>
69594
69595         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69596         /bin/sh understanding of '!' conditional negation.
69597
69598 2006-08-21  Jim Meyering  <jim@meyering.net>
69599
69600         * modules/openat (Depends-on): Really alphabetize.
69601
69602         * modules/acl (Depends-on): Add error and quote.
69603
69604         * check-module (find_included_lib_files): Add at-func.c to the
69605         ok-to-include-more-than-once white list.
69606
69607         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69608
69609 2006-08-21  Bruno Haible  <bruno@clisp.org>
69610
69611         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69612         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69613         Reported by Martin Lambers <marlam@marlam.de>.
69614
69615 2006-08-21  Bruno Haible  <bruno@clisp.org>
69616
69617         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69618         specify an installation location, don't emit a noinst_LIBRARIES or
69619         noinst_LTLIBRARIES assignment.
69620
69621 2006-08-21  Bruno Haible  <bruno@clisp.org>
69622
69623         BeOS portability.
69624         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69625         BeOS has mbrtowc() but no <wctype.h>.
69626
69627 2006-08-21  Bruno Haible  <bruno@clisp.org>
69628
69629         BeOS portability.
69630         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69631         exist.
69632
69633 2006-08-21  Bruno Haible  <bruno@clisp.org>
69634
69635         BeOS portability.
69636         * lib/mbchar.h: Include <wctype.h> only if it exists.
69637
69638 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69639
69640         Remove files that are no longer needed by their respective modules.
69641         * m4/obstack.m4: Remove.
69642         * m4/strerror_r.m4: Remove.
69643         * m4/uint32_t.m4: Remove.
69644         * m4/uintptr_t.m4: Remove.
69645         * m4/ullong_max.m4: Remove.
69646         * m4/xstrtoimax.m4: Remove.
69647         * m4/xstrtoumax.m4: Remove.
69648
69649         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69650         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69651         dependencies now capture this.
69652
69653         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69654         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69655         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69656         * m4/human.m4 (gl_HUMAN): Likewise.
69657         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69658         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69659
69660         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69661
69662         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69663         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69664         stdint.
69665         * m4/human.m4 (gl_HUMAN): Likewise.
69666         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69667         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69668         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69669         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69670         * m4/xstrtol (gl_XSTRTOL): Likewise.
69671
69672         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69673         AC_TYPE_LONG_LONG_INT.
69674         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69675         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69676         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69677         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69678
69679         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69680         on stdbool.
69681
69682         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69683         (gl_PREREQ_XSTRTOUL): Remove.
69684
69685         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69686
69687         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69688         mode.
69689
69690 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         Add and change modules to make it easier for coreutils to use
69693         gnulib-tool.
69694         * modules/backupfile (Files): Remove m4/d-ino.m4.
69695         (Depends-on): Add d-ino.
69696         * modules/cycle-check (Depends-on): Add stdint.
69697         (lib_SOURCES): Add cycle-check.h.
69698         * modules/d-ino: New module.
69699         * modules/d-type: New module.
69700         * modules/error (Files): Remove m4/strerror_r.m4.
69701         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69702         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69703         m4/inttypes_h.m4, m4/uintmax_t.m4.
69704         (Depends-on): Add stdint.
69705         (lib_SOURCES): Add fsusage.h.
69706         * modules/getcwd (Files): Remove d-ino.m4.
69707         (Depends-on): Add d-ino.
69708         * modules/getndelim2 (Depends-on): Add stdint.
69709         * modules/glob (Files): Remove m4/d-type.m4.
69710         (Depends-on): Add d-type.
69711         * modules/host-os: New module.
69712         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69713         m4/inttypes_h.m4, m4/uintmax_t.m4.
69714         * Depends-on: Add stdint.
69715         (lib_SOURCES): Add human.h.
69716         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69717         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69718         m4/uintmax_t.m4, m4/ulonglong.m4.
69719         (Depends-on): Add stdint.
69720         (EXTRA_DIST): Add inttostr.h.
69721         * modules/lchmod: New module.
69722         * modules/link-follow: New module.
69723         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69724         (Depends-on): Add lchmod.
69725         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69726         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69727         (Depends-on): Add stdint.
69728         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69729         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69730         (Depends-on): Add stdint.
69731         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69732         * modules/perl: New module.
69733         * modules/regex (Depends-on): Add stdint.
69734         * modules/rmdir-errno: New module.
69735         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69736         m4/intmax_t.m4.
69737         (Depends-on): Add stdint.
69738         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69739         m4/uintmax_t.m4.
69740         (Depends-on): Add stdint.
69741         * modules/unlink-busy: New module.
69742         * modules/utimecmp (Depends-on): Add stdint.
69743         * modules/uptime: New module.
69744         * modules/winsz-ioctl: New module.
69745         * modules/winsz-termios: New module.
69746         * modules/xnanosleep (Depends-on): Add nanosleep.
69747         * modules/ullong_max: Remove.
69748         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69749         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69750         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69751         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69752         (Depends-on): Add inttypes.
69753         (lib_SOURCES): Add xstrtol.h.
69754         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69755         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69756         * MODULES.html.sh: Move 'assert' into the assert section.
69757         Move 'dummy' into the linking section.
69758         Remove ullong_max.
69759         Add section for compatibility checks for POSIX:2001 functions,
69760         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69761         winsz-ioctl, and winsz-termios into it.
69762         Add lchmod.
69763         Add top-level Misc section and put host-os, perl, and uptime
69764         into it.
69765
69766 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69767
69768         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69769         now assume the stdint module.  Do not include inttypes.h.
69770         * lib/fsusage.h: Likewise.
69771         * lib/getndelim2.c: Likewise.
69772         * lib/human.h: Likewise.
69773         * lib/inttostr.h: Likewise.
69774         * lib/obstack.c: Likewise.
69775         * lib/regex_internal.h: Likewise.
69776         * lib/tempname.c: Likewise.
69777         * lib/utimecmp.c: Likewise.
69778         * lib/xstrtol.h: Likewise.
69779
69780         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69781
69782         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69783         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69784         * lib/xtime.h: Likewise.
69785
69786 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69787
69788         * modules/openat (Files): Add lib/fchmodat.c.
69789         Fixes problem reported by Jay Youngman.
69790
69791 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69792
69793         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69794         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69795
69796 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69797             Bruno Haible  <bruno@clisp.org>
69798
69799         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69800         and is a script that invokes bison. Tighten the code. Add comments.
69801
69802 2006-08-18  Jim Meyering  <jim@meyering.net>
69803
69804         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69805         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69806         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69807         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69808
69809 2006-08-18  Bruno Haible  <bruno@clisp.org>
69810
69811         * modules/bison-i18n: New file.
69812         * MODULES.html.sh (Internationalization functions): Add it.
69813
69814 2006-08-18  Bruno Haible  <bruno@clisp.org>
69815
69816         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69817         sys/statvfs.h. When getmntinfo was found, check its declaration and
69818         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69819
69820 2006-08-18  Bruno Haible  <bruno@clisp.org>
69821
69822         * m4/bison-i18n.m4: New file, from bison.
69823
69824 2006-08-18  Bruno Haible  <bruno@clisp.org>
69825
69826         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69827         (ME_DUMMY): Treat "kernfs" as a dummy.
69828         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69829
69830 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69831
69832         Update from coreutils.
69833
69834         2006-08-15  Jim Meyering  <jim@meyering.net>
69835
69836         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69837
69838         2006-01-17  Jim Meyering  <jim@meyering.net>
69839
69840         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69841
69842         2006-01-11  Jim Meyering  <jim@meyering.net>
69843
69844         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69845         Check for the lchmod function.
69846
69847 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69848
69849         Update from coreutils.
69850
69851         * lib/__fpending.h: Add copyright notice.
69852         * lib/fprintftime.h: Likewise.
69853         * lib/savedir.c: Use (C) in copyright notice.
69854         * lib/savedir.h: Likewise.
69855
69856         2006-08-15  Jim Meyering  <jim@meyering.net>
69857
69858         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69859         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69860         in support of the EXPECTED_ERRNO macro.
69861         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69862         definitions.  Instead, define the appropriate symbols and include
69863         "at-func.c".
69864         * lib/mkdirat.c (mkdirat): Likewise.
69865         * lib/fchmodat.c (fchmodat): Likewise.
69866         (ENOSYS): Remove definition.
69867         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69868         it.  Don't include "unistd--.h" -- it wasn't ever used.
69869
69870         2006-01-17  Jim Meyering  <jim@meyering.net>
69871
69872         Rewrite fts.c not to change the current working directory,
69873         by using openat, fstatat, fdopendir, etc..
69874
69875         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69876         (HAVE_OPENAT_SUPPORT): Define.
69877         [_LIBC] (fchdir): Don't undef or define; no longer used.
69878         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69879         Now, this `function' always succeeds, and consumes its file descriptor
69880         parameter -- so callers must not close such FDs.  Update callers.
69881         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69882         (diropen): Add parameter, SP.  Adjust all callers.
69883         Implement using diropen_fd, rather than open.
69884         (fts_open): Initialize new member, fts_cwd_fd.
69885         Remove fts_rft-setting code.
69886         (fts_close): Close fts_cwd_fd, if necessary.
69887         (__opendir2): Define in terms of opendir or opendirat,
69888         depending on whether the FST_NOCHDIR flag is set.
69889         (fts_build): Since fts_safe_changedir consumes its FD, and since
69890         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69891         and close the dup'd file descriptor upon failure.
69892         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69893         (fts_safe_changedir): Tweak semantics to reflect that this function
69894         now calls cwd_advance_fd and hence consumes its FD argument.
69895         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69896         [struct FTS] (fts_rft): Remove now-unused member.
69897         [struct FTS] (fts_cycle.state): Improve comment.
69898
69899         * lib/openat.c (openat_needs_fchdir): New function.
69900         * lib/openat.h (openat_needs_fchdir): Declare it.
69901
69902 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69905         Problem and fix reported by Pádraig Brady in
69906         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69907
69908 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69909
69910         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69911
69912 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69913
69914         * lib/memcoll.c (memcoll): Optimize for the common case where the
69915         arguments are bytewise equal.
69916
69917 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         * doc/regexprops-generic.texi: Add a copyright notice.
69920
69921 2006-08-15  Bruno Haible  <bruno@clisp.org>
69922
69923         * modules/tmpdir (License): Change to LGPL.
69924
69925 2006-08-15  Bruno Haible  <bruno@clisp.org>
69926
69927         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69928         module.
69929
69930 2006-08-14  Simon Josefsson  <jas@extundo.com>
69931
69932         * config/srclist.txt: Add gnupload.
69933
69934 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69935
69936         Change copyright notice from LGPL 2 to GPL 2, since that's the
69937         standard form used in the gnulib repository.
69938         * tests/test-lock.c: Likewise.
69939         * tests/test-stdint.c: Likewise.
69940         * tests/test-tls.c: Likewise.
69941
69942         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
69943         prelude-manager.  User shorter URLs for GNU projects, without '?'.
69944         Add copyright notice.
69945
69946         * check-module: Add copyright notice.  Output a copyright
69947         notice if "--version" is specified.
69948         * modules/COPYING: New file.
69949         * tests/test-getaddrinfo.c: Add copyright notice.
69950         * tests/test-verify.c: Likewise.
69951
69952 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69953
69954         Change copyright notice from LGPL 2 to GPL 2, since that's the
69955         standard form used in the gnulib repository.
69956         * lib/lock.c: LGPL -> GPL.
69957         * lib/lock.h: Likewise.
69958         * lib/strnlen1.c: Likewise.
69959         * lib/strnlen1.h: Likewise.
69960         * lib/tls.c: Likewise.
69961         * lib/tls.h: Likewise.
69962         * lib/tmpdir.c: Likewise.
69963
69964         * lib/TODO: Remove; this belongs only in coreutils.
69965
69966 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69967
69968         Add copyright notices to long-enough files that lack them, since
69969         otherwise the files aren't clearly free.  Use the same notice that
69970         getdate.texi already uses.
69971         * doc/alloca-opt.texi: Add copyright notice.
69972         * doc/alloca.texi: Likewise.
69973         * doc/ctime.texi: Likewise.
69974         * doc/functions.texi: Likewise.
69975         * doc/gcd.texi: Likewise.
69976         * doc/gnulib-tool.texi: Likewise.
69977         * doc/inet_ntoa.texi: Likewise.
69978         * doc/visibility.texi: Likewise.
69979
69980         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
69981         * doc/quote.texi: Add copyright notice.
69982
69983         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
69984         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
69985         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
69986         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
69987         is now obsolete, and give a pointer to the Sun list.
69988         Add copyright notice.
69989
69990 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
69991
69992         * config/srclistvars.sh: Add copyright notice.
69993
69994 2006-08-14  Eric Blake  <ebb9@byu.net>
69995
69996         Import the following change from libc:
69997
69998         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
69999
70000         Upstream bug 2997.
70001         * lib/misc/error.c: Add space between program name and message if file
70002         name is missing.
70003
70004 2006-08-12  Karl Berry  <karl@gnu.org>
70005
70006         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70007         remove, these originate in gnulib now.
70008
70009 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70010
70011         * doc/Makefile (standards.info standards.html standards.dvi):
70012         Also depend on make-stds.texi.
70013
70014 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70015
70016         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70017         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70018
70019         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70020         in wchar_t.  Problem reported by Eric Blake.
70021
70022         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70023         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70024         Also, help the compiler to keep LEN in a register.
70025
70026 2006-08-11  Eric Blake  <ebb9@byu.net>
70027
70028         * users.txt: Sort.  Add tar.
70029
70030 2006-08-11  Bruno Haible  <bruno@clisp.org>
70031
70032         * users.txt: New file.
70033
70034 2006-08-11  Bruno Haible  <bruno@clisp.org>
70035
70036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70037         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70038
70039 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * modules/snprintf (Depends-on): Remove minmax.
70042         (Maintainer): Add self and Bruno.
70043
70044 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70045
70046         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70047         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70048         (EOVERFLOW): Define if the system does not.
70049         Do not include "minmax.h"; it wasn't used.
70050         (snprintf): Don't assume size_t promotes to an unsigned type.
70051         Fix bug when generated string was too long for the buffer: the
70052         buffer's contents are supposed to be the initial prefix of the
70053         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70054         exceeds INT_MAX; do the check ourselves.
70055
70056         Import the following changes from libc:
70057
70058         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70059
70060         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70061         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70062         set wc to the byte which couldn't be converted.
70063         (re_string_reconstruct): Don't clear valid_raw_len before calling
70064         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70065         tip_context using re_string_context_at.
70066
70067         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70068
70069         * lib/posix/regex.h: g++ still cannot handled [restrict].
70070
70071         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70072
70073         * lib/posix/regex.h: Remove special handling for VMS.
70074
70075 2006-08-10  Jim Meyering  <jim@meyering.net>
70076
70077         * modules/same-inode: New module.
70078         * modules/dev-ino: New module.
70079         * modules/cycle-check: Depend on these modules, rather than simply
70080         including their .h files.
70081         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70082         required via m4/cycle-check.m4.
70083         * modules/same: Depend on new same-inode module, rather than
70084         including same-inode.h.
70085         * modules/chdir-safer: New file.
70086
70087         * modules/chown (Depends-on): Add stat-macros.
70088
70089 2006-08-10  Jim Meyering  <jim@meyering.net>
70090
70091         * m4/cycle-check.m4: New file.
70092         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70093         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70094
70095 2006-08-10  Eric Blake  <ebb9@byu.net>
70096
70097         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70098         in from original proposal.
70099
70100 2006-08-10  Eric Blake  <ebb9@byu.net>
70101         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70102
70103         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70104         namespace.
70105
70106 2006-08-10  Bruno Haible  <bruno@clisp.org>
70107
70108         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70109         as well.
70110
70111 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         Sync from coreutils.
70114
70115         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70116
70117         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70118         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70119
70120 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         * modules/restrict: Remove; no longer needed now that we assume
70123         Autoconf 2.59 or later.
70124         * MODULES.html.sh: Remove 'restrict'.
70125         * modules/argp (Depends-on): Remove 'restrict'.
70126         * modules/base64 (Depends-on): Likewise.
70127         * modules/gc (Depends-on): Likewise.
70128         * modules/getaddrinfo (Depends-on): Likewise.
70129         * modules/glob (Depends-on): Likewise.
70130         * modules/inet_ntop (Depends-on): Likewise.
70131         * modules/inet_pton (Depends-on): Likewise.
70132         * modules/memxor (Depends-on): Likewise.
70133         * modules/regex (Depends-on): Likewise.
70134         * modules/strtok_r (Depends-on): Likewise.
70135         * modules/time_r (Depends-on): Likewise.
70136
70137 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70138
70139         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70140         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70141         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70142         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70143         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70144         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70145         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70146         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70147
70148         Merge from coreutils.
70149         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70150         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70151         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70152         * m4/time_r.m4 (gl_TIME_R): Likewise.
70153
70154 2006-08-09  Karl Berry  <karl@gnu.org>
70155
70156         * config/srclist.txt: no more gettext-tools, per Bruno.
70157
70158 2006-08-08  Eric Blake  <ebb9@byu.net>
70159
70160         * modules/verror: New module.
70161         * MODULES.html.sh: Document it.
70162
70163 2006-08-08  Eric Blake  <ebb9@byu.net>
70164
70165         * lib/verror.h, lib/verror.c: New files.
70166
70167 2006-08-08  Eric Blake  <ebb9@byu.net>
70168
70169         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70170         verror_at_line output complies with GNU Coding Standards even when
70171         file is NULL.
70172
70173 2006-08-07  Bruno Haible  <bruno@clisp.org>
70174
70175         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70176         versions of AIX.
70177         Reported by Ralf Wildenhues.
70178
70179 2006-08-07  Bruno Haible  <bruno@clisp.org>
70180
70181         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70182         in an AC_DEFUN. Needed so that the autoconf snippets can use
70183         AC_REQUIRE.
70184
70185 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70186
70187         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70188         Initialize pkgdata_DATA.
70189         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70190         overriding it.
70191
70192 2006-08-06  Eric Blake  <ebb9@byu.net>
70193
70194         * lib/error.h: Fold in some upstream changes from glibc.
70195         * lib/error.c: Likewise.
70196
70197 2006-08-04  Bruno Haible  <bruno@clisp.org>
70198
70199         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70200         Make the mostlyclean-local rule depend on mostlyclean-generic.
70201         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70202
70203 2006-07-31  Bruno Haible  <bruno@clisp.org>
70204
70205         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70206         <stdlib.h>, <string.h>.
70207
70208 2006-07-30  Bruno Haible  <bruno@clisp.org>
70209
70210         * modules/readlink (License): Change to LGPL.
70211
70212 2006-07-30  Bruno Haible  <bruno@clisp.org>
70213
70214         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70215         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70216         set PKGDATADIR to point to it.
70217
70218 2006-07-30  Bruno Haible  <bruno@clisp.org>
70219
70220         * modules/csharpexec (configure.ac): Comment out macro invocation.
70221         * modules/javaexec (configure.ac): Likewise.
70222         * modules/javacomp-script (configure.ac): Likewise.
70223
70224         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70225
70226 2006-07-30  Bruno Haible  <bruno@clisp.org>
70227
70228         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70229         linked-list.
70230
70231 2006-07-30  Bruno Haible  <bruno@clisp.org>
70232
70233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70234
70235 2006-07-30  Bruno Haible  <bruno@clisp.org>
70236
70237         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70238         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70239         get removed.
70240
70241 2006-07-29  Bruno Haible  <bruno@clisp.org>
70242
70243         Make it possible for gnulib-tool to work with locally modified or
70244         augmented gnulib repositories.
70245         * gnulib-tool (func_usage): Document --local-dir option.
70246         (local_gnulib_dir): New variable.
70247         Handle --local-dir option.
70248         (func_lookup_file): New function.
70249         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70250         (func_get_description, func_get_filelist, func_get_description,
70251         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70252         func_get_automake_snippet, func_get_include_directive,
70253         func_get_license, func_get_maintainer): Use func_lookup_file.
70254         (func_import, func_create_testdir): Use func_lookup_file.
70255
70256 2006-07-29  Bruno Haible  <bruno@clisp.org>
70257
70258         * modules/setenv (Depends-on): Add unistd.
70259
70260 2006-07-29  Bruno Haible  <bruno@clisp.org>
70261
70262         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70263
70264 2006-07-29  Bruno Haible  <bruno@clisp.org>
70265
70266         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70267
70268 2006-07-29  Bruno Haible  <bruno@clisp.org>
70269
70270         * gnulib-tool (import, update): If there is no Makefile.am, look at
70271         aclocal.m4, instead of bailing out.
70272
70273 2006-07-29  Bruno Haible  <bruno@clisp.org>
70274
70275         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70276         Categorize the options by when they are useful.
70277
70278 2006-07-29  Bruno Haible  <bruno@clisp.org>
70279
70280         * gnulib-tool (func_usage): Document option --no-libtool.
70281         Handle option --no-libtool.
70282         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70283         for changed semantics of $libtool variable.
70284         (func_import): Likewise. If libtool is not used, show this through
70285         an option --no-libtool.
70286         (func_create_testdir): Update.
70287
70288 2006-07-29  Bruno Haible  <bruno@clisp.org>
70289
70290         * gnulib-tool (func_import): Extend error message about missing
70291         --doc-base.
70292
70293 2006-07-29  Bruno Haible  <bruno@clisp.org>
70294
70295         * gnulib-tool (func_import): Don't create the $docbase directory if
70296         there is no file to store there.
70297
70298 2006-07-29  Bruno Haible  <bruno@clisp.org>
70299
70300         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70301         relevant, look for configure.ac there, not in the current directory.
70302         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70303
70304 2006-07-29  Bruno Haible  <bruno@clisp.org>
70305
70306         * gnulib-tool (SORT): New variable.
70307         (func_usage): Undocument --assume-autoconf option.
70308         Remove --assume-autoconf option handling.
70309         (autoconf_minversion): Determine from the contents of configure.ac.
70310         (func_import): Remove autoconf_minversion handling.
70311         Suggested by Eric Blake.
70312
70313 2006-07-29  Bruno Haible  <bruno@clisp.org>
70314
70315         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70316
70317 2006-07-29  Bruno Haible  <bruno@clisp.org>
70318
70319         * config/srclist.txt (*setenv.[ch]): Remove rules.
70320
70321 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70322
70323         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70324
70325 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70326
70327         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70328         arpa/inet.h.
70329
70330 2006-07-28  Simon Josefsson  <jas@extundo.com>
70331
70332         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70333         * modules/inet_pton (Depends-on): Likewise.
70334
70335 2006-07-28  Simon Josefsson  <jas@extundo.com>
70336
70337         * m4/netinet_in_h.m4: New file.
70338
70339 2006-07-28  Simon Josefsson  <jas@extundo.com>
70340
70341         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70342         #include's.
70343
70344 2006-07-28  Simon Josefsson  <jas@extundo.com>
70345
70346         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70347         #include's.
70348
70349 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70350
70351         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70352         setgid on directories only if they set these bits.
70353         * lib/modechange.h: Remove obsolete comment about masks.
70354
70355 2006-07-28  Eric Blake  <ebb9@byu.net>
70356
70357         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70358         macro expansion.
70359
70360 2006-07-28  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70363
70364 2006-07-28  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70367
70368 2006-07-28  Bruno Haible  <bruno@clisp.org>
70369
70370         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70371         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70372         Define fallbacks.
70373         Avoids link error on FreeBSD 4.x.
70374         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70375
70376         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70377         encoding.
70378         * lib/mbswidth.c (iswcntrl): Likewise.
70379
70380 2006-07-27  Bruno Haible  <bruno@clisp.org>
70381
70382         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70383         test.
70384
70385 2006-07-27  Bruno Haible  <bruno@clisp.org>
70386
70387         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70388         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70389         defined.
70390
70391 2006-07-26  Eric Blake  <ebb9@byu.net>
70392
70393         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70394
70395 2006-07-26  Eric Blake  <ebb9@byu.net>
70396
70397         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70398         like mingw that lack mkstemp.
70399         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70400         avoid compilation warning on mingw.
70401
70402 2006-07-26  Bruno Haible  <bruno@clisp.org>
70403
70404         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70405         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70406         INT_FAST*_MIN, INTPTR_MIN.
70407
70408 2006-07-25  Bruno Haible  <bruno@clisp.org>
70409
70410         * modules/version-etc (Depends-on): Add stdarg.
70411
70412 2006-07-25  Bruno Haible  <bruno@clisp.org>
70413
70414         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70415         complex commands.
70416
70417 2006-07-25  Bruno Haible  <bruno@clisp.org>
70418
70419         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70420         defined in <stdarg.h> or config.h.
70421
70422 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70423
70424         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70425         (gl_STDIO_SAFER): Remove.
70426
70427 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70428
70429         * MODULES.html.sh (File stream based Input/Output):
70430         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70431         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70432         * modules/fopen-safer, modules/tmpfile-safer: New files.
70433         * modules/stdio-safer: Remove.
70434
70435 2006-07-24  Bruno Haible  <bruno@clisp.org>
70436
70437         * modules/tmpdir: New file.
70438         * MODULES.html.sh (File system functions): Add it.
70439
70440 2006-07-24  Bruno Haible  <bruno@clisp.org>
70441
70442         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70443         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70444
70445 2006-07-24  Bruno Haible  <bruno@clisp.org>
70446
70447         * modules/clean-temp: New file.
70448
70449 2006-07-24  Bruno Haible  <bruno@clisp.org>
70450
70451         * m4/tmpdir.m4: New file, from GNU gettext.
70452
70453 2006-07-24  Bruno Haible  <bruno@clisp.org>
70454
70455         * lib/tmpdir.h: New file, from GNU gettext.
70456         * lib/tmpdir.c: New file, from GNU gettext.
70457
70458 2006-07-24  Bruno Haible  <bruno@clisp.org>
70459
70460         * lib/clean-temp.h: New file, from GNU gettext.
70461         * lib/clean-temp.c: New file, from GNU gettext.
70462
70463 2006-07-23  Eric Blake  <ebb9@byu.net>
70464
70465         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70466         (Depends-on): Add binary-io.
70467
70468 2006-07-23  Eric Blake  <ebb9@byu.net>
70469
70470         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70471
70472 2006-07-23  Eric Blake  <ebb9@byu.net>
70473
70474         * lib/tmpfile-safer.c: New file.
70475         * lib/stdio-safer.h (fopen_safer): Add prototype.
70476         * lib/stdio--.h (tmpfile): Make safer.
70477
70478 2006-07-23  Bruno Haible  <bruno@clisp.org>
70479
70480         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70481         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70482         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70483         gl_linked_remove_at): Use it.
70484
70485 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70486         and Simon Josefsson <jas@extundo.com>
70487
70488         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70489
70490         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70491
70492 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70493
70494         * modules/close-stream: New file.
70495         * modules/closeout (Description): Make it clear that it exits
70496         with a diagnostic on error.
70497         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70498         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70499
70500 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70501
70502         * m4/close-stream.m4: New file.
70503
70504 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70505
70506         * lib/close-stream.c, lib/close-stream.h: New files.
70507
70508 2006-07-22  Bruno Haible  <bruno@clisp.org>
70509
70510         Merge from GNU gettext 0.15.
70511
70512         2006-05-01  Bruno Haible  <bruno@clisp.org>
70513
70514                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70515
70516         2006-07-22  Bruno Haible  <bruno@clisp.org>
70517
70518                 * modules/javaversion: New file.
70519                 * MODULES.html.sh (Java): Add javaversion.
70520
70521         2006-03-12  Bruno Haible  <bruno@clisp.org>
70522
70523                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70524
70525         2005-12-04  Bruno Haible  <bruno@clisp.org>
70526
70527                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70528                 (untested).
70529
70530         2006-06-21  Bruno Haible  <bruno@clisp.org>
70531
70532                 Avoid warnings from recent versions of mcs.
70533                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70534                 -o, -L, -r any more. Use options documented since mcs-1.0
70535                 instead. Similarly for -g.
70536
70537         2005-12-04  Bruno Haible  <bruno@clisp.org>
70538
70539                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70540                 .resources, not .resource.
70541
70542         2005-07-09  Bruno Haible  <bruno@clisp.org>
70543
70544                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70545                 add a .dll suffix.
70546                 Reported by Mark Junker <mjscod@gmx.de>.
70547
70548         2006-07-22  Bruno Haible  <bruno@clisp.org>
70549
70550                 * modules/gettext: Upgrade to gettext-0.15.
70551                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70552                 m4/visibility.m4.
70553                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70554
70555 2006-07-22  Bruno Haible  <bruno@clisp.org>
70556
70557         Merge from GNU gettext 0.15.
70558
70559         2006-03-25  Bruno Haible  <bruno@clisp.org>
70560
70561                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70562
70563         2006-07-21  Bruno Haible  <bruno@clisp.org>
70564
70565                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70566                 "1.1".
70567
70568         2006-05-09  Bruno Haible  <bruno@clisp.org>
70569
70570                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70571                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70572                 for the conftestver execution.
70573
70574         2006-05-01  Bruno Haible  <bruno@clisp.org>
70575
70576                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70577                 optional target-version argument. Verify that the compiler
70578                 groks source of the specified source-version, or add -source
70579                 option as necessary. Verify that the compiler produces
70580                 bytecode in the specified target-version, or add -target and
70581                 -source options as necessary. Make the result of the test
70582                 available as variable CONF_JAVAC. Also log error output in
70583                 config.log.
70584
70585         2006-03-11  Bruno Haible  <bruno@clisp.org>
70586
70587                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70588
70589         2006-05-09  Bruno Haible  <bruno@clisp.org>
70590
70591                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70592                 CLASSPATH_SEPARATOR to a semicolon.
70593
70594         2006-03-12  Bruno Haible  <bruno@clisp.org>
70595
70596                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70597                 available as variable CONF_JAVA, for subsequent autoconf
70598                 tests. Also log error output in config.log.
70599
70600         2006-07-19  Bruno Haible  <bruno@clisp.org>
70601
70602                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70603                 that getline works on glibc2 systems. Needed to avoid trouble
70604                 in relocatable.c.
70605                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70606
70607         2005-12-04  Bruno Haible  <bruno@clisp.org>
70608
70609                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70610                 launcher (untested).
70611
70612         2005-12-04  Bruno Haible  <bruno@clisp.org>
70613
70614                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70615
70616         2006-07-22  Bruno Haible  <bruno@clisp.org>
70617
70618                 * gettext.m4: Update from GNU gettext-0.15.
70619                 * nls.m4: Likewise.
70620                 * po.m4: Likewise.
70621                 * inttypes-pri.m4: Likewise.
70622                 * inttypes-h.m4: Renamed from inttypes.m4.
70623                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70624
70625 2006-07-22  Bruno Haible  <bruno@clisp.org>
70626
70627         Merge from GNU gettext 0.15.
70628
70629         2005-07-05  Bruno Haible  <bruno@clisp.org>
70630
70631                 * printf-args.c (printf_fetchargs): Work around broken
70632                 definition of wint_t on mingw.
70633
70634         2005-02-12  Bruno Haible  <bruno@clisp.org>
70635
70636                 * xallocsa.h: Add extern "C" for C++.
70637
70638         2006-05-17  Bruno Haible  <bruno@clisp.org>
70639
70640                 Cygwin portability.
70641                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70642
70643         2006-04-30  Bruno Haible  <bruno@clisp.org>
70644
70645                 * progreloc.c: Include <mach-o/dyld.h> if available.
70646                 (find_executable): Use _NSGetExecutablePath when possible.
70647
70648         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70649
70650                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70651                 function.
70652
70653         2005-12-29  Bruno Haible  <bruno@clisp.org>
70654
70655                 * progreloc.c (set_program_name_and_installdir): Fix
70656                 compilation error.
70657
70658         2005-12-04  Bruno Haible  <bruno@clisp.org>
70659
70660                 Cygwin portability.
70661                 * progreloc.c: Include <windows.h> also on Cygwin.
70662                 (find_executable): Add support for Cygwin.
70663                 (set_program_name_and_installdir): Handle also platforms with
70664                 nonempty EXEEXT.
70665
70666         2006-07-11  Bruno Haible  <bruno@clisp.org>
70667
70668                 * javacomp.c: Fix a comment.
70669                 Reported by Jim Meyering.
70670
70671         2006-04-30  Bruno Haible  <bruno@clisp.org>
70672
70673                 * javacomp.h (compile_java_class): Add source_version,
70674                 target_version arguments.
70675                 * javacomp.c: Rewritten to choose only a compiler that
70676                 respects the specified source_version and target_version.
70677
70678         2006-06-27  Bruno Haible  <bruno@clisp.org>
70679
70680                 Assume correct S_ISDIR macro.
70681                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70682
70683         2006-07-22  Bruno Haible  <bruno@clisp.org>
70684
70685                 * javaversion.h: New file, from GNU gettext.
70686                 * javaversion.c: New file, from GNU gettext.
70687                 * javaversion.java: New file, from GNU gettext.
70688                 * javaversion.class: New file, from GNU gettext.
70689
70690         2006-05-17  Bruno Haible  <bruno@clisp.org>
70691
70692                 Cygwin portability.
70693                 * javaexec.c (execute_java_class): Test for jview program
70694                 also on Cygwin.
70695
70696         2006-04-09  Bruno Haible  <bruno@clisp.org>
70697
70698                 * fatal-signal.c: Don't include string.h.
70699                 (at_fatal_signal): Use a copying loop instead of memcpy.
70700
70701         2005-12-04  Bruno Haible  <bruno@clisp.org>
70702
70703                 * csharpexec.c: Add support for 'clix' launcher (untested).
70704                 (execute_csharp_using_sscli): New function.
70705                 (execute_csharp_program): Call it.
70706
70707         2006-06-21  Bruno Haible  <bruno@clisp.org>
70708
70709                 Avoid warnings from recent versions of mcs.
70710                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70711                 -o, -L, -r any more. Use options documented since mcs-1.0
70712                 instead. Similarly for -g.
70713
70714         2005-07-09  Bruno Haible  <bruno@clisp.org>
70715
70716                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70717                 add a .dll suffix.
70718                 Reported by Mark Junker <mjscod@gmx.de>.
70719
70720         2006-06-17  Bruno Haible  <bruno@clisp.org>
70721
70722                 * config.charset: Update for NetBSD 3.0.
70723
70724         2006-05-17  Bruno Haible  <bruno@clisp.org>
70725
70726                 Cygwin portability.
70727                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70728
70729         2006-05-16  Bruno Haible  <bruno@clisp.org>
70730
70731                 * localcharset.c [CYGWIN]: Include <windows.h>.
70732                 (get_charset_aliases): For Cygwin, return the same CPxxx
70733                 aliases list as under WIN32.
70734                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70735                 the environment variables. Fall back to GetACP().
70736
70737         2006-04-05  Bruno Haible  <bruno@clisp.org>
70738
70739                 * config.charset: Update Juan Manuel Guerrero's address.
70740
70741         2005-02-12  Bruno Haible  <bruno@clisp.org>
70742
70743                 * allocsa.h: Add extern "C" for C++.
70744
70745         2005-02-10  Bruno Haible  <bruno@clisp.org>
70746
70747                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70748                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70749
70750         2006-07-22  Bruno Haible  <bruno@clisp.org>
70751
70752                 * gettext.h: Update to GNU gettext-0.15.
70753
70754 2006-07-22  Bruno Haible  <bruno@clisp.org>
70755
70756         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70757         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70758         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70759
70760 2006-07-21  Eric Blake  <ebb9@byu.net>
70761
70762         * modules/stdlib-safer: New file.
70763         * MODULES.html.sh (File stream based Input/Output): Add
70764         stdlib-safer.
70765
70766 2006-07-21  Eric Blake  <ebb9@byu.net>
70767
70768         * lib/stdlib-safer.h: New file from coreutils, required by
70769         stdlib--.h.
70770
70771 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70772
70773         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70774
70775 2006-07-20  Bruno Haible  <bruno@clisp.org>
70776
70777         * gnulib-tool: Recognize new option --assume-autoconf.
70778         (autoconf_minversion): New variable.
70779         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70780
70781 2006-07-20  Bruno Haible  <bruno@clisp.org>
70782
70783         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70784
70785 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70786
70787         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70788         Reindent and repaginate.
70789
70790 2006-07-19  Derek Price  <derek@ximbiot.com>
70791
70792         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70793         Correct grammar.
70794
70795 2006-07-17  Bruno Haible  <bruno@clisp.org>
70796
70797         * modules/list: New file.
70798         * modules/array-list: New file.
70799         * modules/carray-list, modules/carray-list-tests: New files.
70800         * modules/linked-list, modules/linked-list-tests: New files.
70801         * modules/avltree-list, modules/avltree-list-tests: New files.
70802         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70803         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70804         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70805         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70806         * modules/oset: New file.
70807         * modules/array-oset: New file.
70808         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70809         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70810         * tests/test-carray_list.c: New file.
70811         * tests/test-linked_list.c: New file.
70812         * tests/test-avltree_list.c: New file.
70813         * tests/test-rbtree_list.c: New file.
70814         * tests/test-linkedhash_list.c: New file.
70815         * tests/test-avltreehash_list.c: New file.
70816         * tests/test-rbtreehash_list.c: New file.
70817         * tests/test-avltree_oset.c: New file.
70818         * tests/test-rbtree_oset.c: New file.
70819         * MODULES.html.sh (Container data structures): New section.
70820
70821 2006-07-17  Bruno Haible  <bruno@clisp.org>
70822
70823         * m4/gl_list.m4: New file.
70824
70825 2006-07-17  Bruno Haible  <bruno@clisp.org>
70826
70827         * lib/gl_list.h: New file.
70828         * lib/gl_list.c: New file.
70829         * lib/gl_array_list.h: New file.
70830         * lib/gl_array_list.c: New file.
70831         * lib/gl_carray_list.h: New file.
70832         * lib/gl_carray_list.c: New file.
70833         * lib/gl_linked_list.h: New file.
70834         * lib/gl_linked_list.c: New file.
70835         * lib/gl_anylinked_list1.h: New file.
70836         * lib/gl_anylinked_list2.h: New file.
70837         * lib/gl_avltree_list.h: New file.
70838         * lib/gl_avltree_list.c: New file.
70839         * lib/gl_anyavltree_list1.h: New file.
70840         * lib/gl_anyavltree_list2.h: New file.
70841         * lib/gl_rbtree_list.h: New file.
70842         * lib/gl_rbtree_list.c: New file.
70843         * lib/gl_anyrbtree_list1.h: New file.
70844         * lib/gl_anyrbtree_list2.h: New file.
70845         * lib/gl_anytree_list1.h: New file.
70846         * lib/gl_anytree_list2.h: New file.
70847         * lib/gl_linkedhash_list.h: New file.
70848         * lib/gl_linkedhash_list.c: New file.
70849         * lib/gl_anyhash_list1.h: New file.
70850         * lib/gl_anyhash_list2.h: New file.
70851         * lib/gl_avltreehash_list.h: New file.
70852         * lib/gl_avltreehash_list.c: New file.
70853         * lib/gl_rbtreehash_list.h: New file.
70854         * lib/gl_rbtreehash_list.c: New file.
70855         * lib/gl_anytreehash_list1.h: New file.
70856         * lib/gl_anytreehash_list2.h: New file.
70857
70858         * lib/gl_oset.h: New file.
70859         * lib/gl_oset.c: New file.
70860         * lib/gl_array_oset.h: New file.
70861         * lib/gl_array_oset.c: New file.
70862         * lib/gl_avltree_oset.h: New file.
70863         * lib/gl_avltree_oset.c: New file.
70864         * lib/gl_rbtree_oset.h: New file.
70865         * lib/gl_rbtree_oset.c: New file.
70866         * lib/gl_anytree_oset.h: New file.
70867
70868 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70869
70870         * m4/mkancesdirs.m4: New file.
70871         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70872         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70873         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70874         it.
70875
70876 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70877
70878         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70879         * lib/mkancesdirs.h: New files.
70880         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70881         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70882         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70883         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70884         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70885         callers changed.  Revamp internals significantly, by not
70886         attempting to create directories that are temporarily more
70887         permissive than the final results.  Do not attempt to use
70888         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70889         This removes some race conditions, fixes some bugs, and simplifies
70890         things.  Use new dirchownmod function to do owner and mode changes.
70891         * lib/mkdir-p.h: Likewise.
70892         * lib/modechange.c (octal_to_mode): New function.
70893         (struct mode_change): New member mentioned.
70894         (make_node_op_equals): New arg mentioned.  All callers changed.
70895         (mode_compile): Keep track of which mode bits the user has explicitly
70896         mentioned.
70897         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70898         New arg PMODE_BITS, to keep track of which mode bits the user
70899         mentioned; it treats S_ISUID and S_ISGID speciall.
70900         All callers changed.
70901         * lib/modechange.h: Likewise.
70902
70903 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         * MODULES.html.sh: Add mkancestors.
70906         * modules/mkancesdirs: New module.
70907         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70908         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70909         The chdir-safer and afs files are now orphans; I'll remove them
70910         unless someone speaks up.
70911         Add lib/dirchownmod.c, lib/dirchownmod.h.
70912         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70913         Add lchown, mkancesdirs.
70914         (Maintainer): Add self.
70915
70916 2006-07-15  Karl Berry  <karl@gnu.org>
70917
70918         * gnulib-tool: help message wording/arrangement.
70919
70920 2006-07-14  Simon Josefsson  <jas@extundo.com>
70921
70922         * doc/gnulib.texi (Libtool and Windows): New section.
70923
70924 2006-07-12  Simon Josefsson  <jas@extundo.com>
70925
70926         * modules/gendocs (License): Fix license, approved by Karl.
70927
70928 2006-07-12  Eric Blake  <ebb9@byu.net>
70929
70930         * MODULES.html.sh: Add gendocs.
70931
70932 2006-07-11  Eric Blake  <ebb9@byu.net>
70933
70934         * modules/fdl: New module, to install doc/fdl.texi.
70935         * MODULES.html.sh: Add new section for documentation modules.
70936         * gnulib-tool: Avoid space-tab.
70937         (--doc-base): New option, to manage files from doc.
70938
70939 2006-07-11  Eric Blake  <ebb9@byu.net>
70940
70941         * m4/absolute-header.m4: Fix comments to match recent change.
70942
70943 2006-07-11  Eric Blake  <ebb9@byu.net>
70944
70945         * gnulib-tool: List --doc-base before --tests-base.
70946
70947 2006-07-11  Derek R. Price  <derek@ximbiot.com>
70948
70949         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
70950
70951 2006-07-11  Bruno Haible  <bruno@clisp.org>
70952
70953         * README: Mention where to put documentation.
70954
70955 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70956
70957         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
70958
70959 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
70962         to stdint.m4.
70963
70964 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
70965
70966         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
70967         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
70968         "no/such/file/stdint.h" when there is no such file, so that
70969         the resulting C code can be parsed by dodgy compilers.
70970         Problems reported by Bob Proulx.
70971
70972 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70973
70974         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
70975         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70976         macros into the GNU _D_EXACT_NAMLEN.
70977         * lib/savedir.c:  Likewise.
70978         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
70979
70980 2006-07-10  Derek R. Price  <derek@ximbiot.com>
70981         and Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
70984         * m4/savedir.m4:
70985         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
70986         macros into the GNU _D_EXACT_NAMLEN.
70987
70988 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
70991         around the absolute name, to work around a problem with the HP-UX
70992         11.23 native C compiler, reported by Bob Proulx.
70993
70994 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         * doc/maintain.texi, make-stds.texi: Sync from
70997         <http://savannah.gnu.org/projects/gnustandards>.
70998
70999 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71002
71003 2006-07-09  Jim Meyering  <jim@meyering.net>
71004
71005         * m4/glob.m4: Remove a doubled word in a comment.
71006
71007 2006-07-09  Jim Meyering  <jim@meyering.net>
71008
71009         * lib/argp-pv.c: Remove a doubled word in a comment.
71010         * lib/check-version.c (check_version): Likewise.
71011         * lib/javacomp.c (compile_java_class): Likewise.
71012
71013 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71014
71015         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71016         for the benefit of people using Autoconf 2.60.  If you want to
71017         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71018         (or m4/onceonly.m4, if pre-2.57) manually.
71019
71020 2006-07-08  Jim Meyering  <jim@meyering.net>
71021
71022         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71023         comment.
71024         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71025         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71026         comment.
71027
71028 2006-07-08  Jim Meyering  <jim@meyering.net>
71029
71030         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71031
71032 2006-07-07  Simon Josefsson  <jas@extundo.com>
71033
71034         * tests/test-crc.c: Change expected crc value, the test vector
71035         were probably computed using the old broken crc.c?
71036
71037 2006-07-06  Simon Josefsson  <jas@extundo.com>
71038
71039         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71040         now the canonical place for the M4 file).
71041
71042         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71043         from the sys_socket dependency now.
71044
71045         * modules/inet_pton (Files): Ditto.
71046
71047         * modules/inet_ntop (Files): Ditto.
71048
71049 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71050
71051         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71052         not gl_PREREQ_GETUSERSHELL.
71053
71054 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71055
71056         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71057         with only one argument, for Autoconf 2.60.
71058         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71059         expand to nothing, so add a shell command to avoid syntax error.
71060         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71061
71062 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71063
71064         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71065
71066 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71067
71068         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71069         no longer needed.  Check for isblank decl.
71070         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71071         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71072         of existence.
71073
71074 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         * lib/getloadavg.c: Use __VMS, not VMS.
71077         * lib/getopt.c: Likewise.
71078         * lib/getpagesize.h: Likewise.
71079         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71080         and probably does not work.
71081
71082 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71083
71084         * lib/.cppi-disable: Add wcwidth.
71085         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71086         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71087         (ISGRAPH): Remove.  All uses changed to isgraph.
71088         (FOLD) [!defined _LIBC]: Remove special case.
71089         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71090         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71091         HAVE_ISBLANK.
71092         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71093         case.
71094
71095 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71096
71097         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71098         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71099         brackets.  Other minor changes to suppress some compiler
71100         warnings.
71101
71102 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71103         and Paul Eggert  <eggert@cs.ucla.edu>
71104
71105         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71106         of invoking obsolescent AC_HEADER_DIRENT macro.
71107         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71108         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71109         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71110         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71111         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71112         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71113         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71114         * m4/readdir.m4: Remove; no longer needed.
71115
71116 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71117         and Paul Eggert  <eggert@cs.ucla.edu>
71118
71119         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71120         Don't worry about this obsolete case any more.
71121         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71122         directories.
71123         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71124         worry about this obsolete case any more.
71125         * lib/fts.c: Likewise.
71126         * lib/getcwd.c: Likewise.
71127         * lib/glob.h: Likewise.
71128         * lib/savedir.c: Likewise.
71129
71130 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71133         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71134         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71135         needed.
71136         All uses removed.
71137         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71138         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71139         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71140         needed.
71141         * m4/getdate.m4 (gl_GETDATE): Likewise.
71142         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71143         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71144         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71145         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71146         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71147         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71148         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71149         needed.
71150
71151 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71152
71153         * lib/memcasecmp.c: Include <limits.h>.
71154         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71155         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71156         Don't assume isdigit succeeds only on '0' through '9'.
71157
71158 2006-07-05  Eric Blake  <ebb9@byu.net>
71159
71160         * modules/getaddrinfo (Depends-on): Add snprintf.
71161
71162 2006-07-05  Eric Blake  <ebb9@byu.net>
71163
71164         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71165         to avoid 'header present but could not be compiled' on cygwin.
71166
71167 2006-07-05  Eric Blake  <ebb9@byu.net>
71168
71169         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71170         missing from netdb.h.
71171         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71172
71173 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71174
71175         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71176         no longer needed.
71177         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71178         * m4/getdate.m4 (gl_GETDATE): Likewise.
71179         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71180         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71181         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71182         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71183         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71184
71185 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71186
71187         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71188         All uses of is_space replaced by isspace.
71189         * lib/exit.h: Don't talk about STDC_HEADERS.
71190         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71191         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71192         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71193         replaced by isprint etc.
71194         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71195         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71196         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71197         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71198         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71199         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71200
71201 2006-07-05  Bruno Haible  <bruno@clisp.org>
71202
71203         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71204         the function exists, before testing against AIX.
71205         Reported by Martin Lambers <marlam@marlam.de>.
71206
71207 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71210         From Mark D. Baushke.
71211
71212 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71215         to the absolute name, not just one, to bypass Sun C 5.8's
71216         "warning: #include of /usr/include/... may be non-portable".
71217
71218 2006-07-04  Eric Blake  <ebb9@byu.net>
71219
71220         * modules/dirname-tests: New test module.
71221         * tests/test-dirname.c: New file, replacing dirname.c
71222         TEST_DIRNAME section that was recently deleted.
71223
71224 2006-07-04  Bruno Haible  <bruno@clisp.org>
71225
71226         Assume ANSI C header files and <ctype.h> functions.
71227         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71228         (mbsnwidth): Use isprint, iscntrl instead.
71229
71230 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         Merge from coreutils.
71233         * MODULES.html.sh: Add xstrtold.
71234         * modules/xstrtold: New file.
71235         * modules/cycle-check (Files): Add lib/same-inode.h.
71236         * modules/dirname (Files): Add m4/double-slash-root.m4.
71237         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71238         * modules/mkdir-p (Files): Add lib/same-inode.h.
71239         * modules/same (Files): Add lib/same-inode.h.
71240
71241 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71242
71243         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71244         This is to keep the terminology clean; POSIX talks about
71245         "absolute pathnames", not "full pathnames", but the GNU
71246         Coding Standards say to use "path" for something else;
71247         so use "absolute" to keep both sides happy.
71248         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71249         Set gl_absolute_header, not gl_full_header_path.
71250         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71251         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71252         All uses changed.
71253
71254         Merge from coreutils.
71255
71256         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71257
71258         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71259         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71260         want to require the building of c-strtod.o.
71261         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71262         needs -lm directly.
71263         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71264
71265         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71266
71267         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71268         --as-needed option if available.  Problem reported by Albert Chin in
71269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71270         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71271         cc merely issues a bunch of annoying warnings for --as-needed
71272         (this problem was reported by Bob Proulx).  Also, try linking with
71273         -lm to detect a bug in binutils 2.16 (this problem was reported
71274         by Ralf Wildenhues).
71275
71276         2006-06-18  Jim Meyering  <jim@meyering.net>
71277
71278         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71279         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71280         macro.
71281         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71282         also check for glibc-2.4's abort-inducing bug.
71283
71284         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71285         Low-probability clean-up should be to use rmdir to get rid of
71286         the just-created directory, not unlink.
71287
71288         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71289         configure fail, and request a bug report to inform us about it.
71290         Add a comment that, barring reports to the contrary, in 2007 we'll
71291         assume ftruncate is universally available.
71292
71293         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71294
71295         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71296
71297         2006-03-12  Jim Meyering  <jim@meyering.net>
71298
71299         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71300         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71301         * m4/same.m4 (gl_SAME): Likewise.
71302         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71303
71304         2006-03-11  Eric Blake  <ebb9@byu.net>
71305
71306         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71307         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71308         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71309         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71310
71311 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71314         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71315         reported by Mark D. Baushke, one in
71316         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71317
71318         Merge from coreutils.
71319
71320         * lib/.cppi-disable: Add stdint_.h.
71321         * lib/.cvsignore: Add stdint.h.
71322
71323         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71326         both double and long double versions.
71327         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71328         * lib/xstrtold.c: New file.
71329         * lib/xstrtod.h (xstrtold): New decl.
71330
71331         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71332
71333         * lib/filemode.c (setst): Remove.
71334         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71335         (arguably) clearer, and the generated code is a bit smaller on my
71336         Debian GNU/Linux stable x86 host.
71337
71338         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71339
71340         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71341         Assume that filemode.h includes sys/types.h and sys/stat.h.
71342         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71343         (ftypelet): Reorder to put common cases first, for efficiency.
71344         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71345         to do 'M'.
71346         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71347         of 10, for compatibility with FreeBSD.  All callers changed.
71348         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71349         types that can't be deduced solely from st_mode.  First arg is now a
71350         const pointer.
71351         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71352         (strmode): Renamed from mode_string.
71353         (filemodestring): New decl.
71354         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71355         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71356         needed.
71357         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71358
71359         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71360
71361         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71362         fsusage.h now does that.  Include fsusage.h first, to test interface.
71363         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71364         at most one method (the old code could have generated decls that
71365         didn't conform to C89, not that this was ever exercised).
71366         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71367
71368         2006-03-19  Jim Meyering  <jim@meyering.net>
71369
71370         Work even in a chroot where d_ino values for entries in "/"
71371         don't match the stat.st_ino values for the same names.
71372         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71373         number, iterate through all entries again, using lstat instead.
71374         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71375         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71376
71377         * lib/getcwd.c (__getcwd): Clarify a comment.
71378         Use memcpy in place of a call to strcpy.
71379
71380         2006-03-12  Jim Meyering  <jim@meyering.net>
71381
71382         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71383         matches that of the current directory (which we're about to chdir ".."
71384         out of), then save the dev-ino of the parent, instead.
71385
71386         * lib/same-inode.h (SAME_INODE): New file/macro.
71387         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71388         Include "same-inode.h", instead.
71389         * lib/same.c: Likewise.
71390         * lib/cycle-check.h: Include "same-inode.h".
71391         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71392         * lib/cycle-check.c (SAME_INODE): Remove definition.
71393         * lib/root-dev-ino.h: Include "same-inode.h".
71394
71395         2006-03-11  Eric Blake  <ebb9@byu.net>
71396
71397         * lib/same.c (same_name): s/base_name/last_component/
71398         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71399         * lib/filenamecat.c (file_name_concat): Likewise.
71400
71401         2006-03-11  Eric Blake  <ebb9@byu.net>,
71402                     Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71405         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71406         drive prefix.
71407         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71408         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71409         (last_component): New method.
71410         * lib/dirname.c (dir_len): Determine when drive letters need a
71411         subsequent slash.  Preserve // when it is special.
71412         (dir_name): Don't append dot when drive letter is absolute.
71413         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71414         * lib/basename.c (base_name): New semantics - malloc the result.
71415         Preserve // when it is special.  Preserve relative files that look
71416         like drive letters.
71417         (base_len): Preserve // when it is special.
71418         (last_component): New method, similar to old base_name semantics.
71419         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71420         base_name.  Strip redundant slashes from ///.
71421
71422 2006-07-03  Jim Meyering  <jim@meyering.net>
71423
71424         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71425         macro is used before the first cycle_check call.
71426
71427 2006-07-03  Eric Blake  <ebb9@byu.net>
71428
71429         * modules/dirname (Depends-on): Add xstrndup.
71430
71431 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71434         test cases, so that config.log is a bit easier to follow.
71435
71436 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71437
71438         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71439         both are 64 bits, since this seems to be the tradition, and this
71440         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71441         we ever run into a host that prefers long long to long in this
71442         case, we'll need another configure-time test.  Problem reported by
71443         Jim Meyering.
71444
71445 2006-07-02  Eric Blake  <ebb9@byu.net>
71446
71447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71448
71449 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71450
71451         * modules/inttypes (Depends-on): No longer depends on stdint.
71452         * modules/stdint (Description): Say more about assumptions.
71453         Say that the fast types might differ.  Say macros are used.
71454         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71455         (Makefile.am): Revise list of substituted symbols to match
71456         new stdint.m4.
71457         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71458         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71459         * tests/test-stdint.c (verify_same_types)
71460         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71461         the code conforms to C99/C89.
71462         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71463         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71464
71465 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71468         but fix a bug, by requiring at least 64 bits.
71469         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71470         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71471         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71472         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71473
71474         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71475         changes.  Make 2.59 a prerequisite.  Check and substitute for
71476         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71477         inttypes.h.  Do not use special include files; just use the
71478         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71479         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71480         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71481         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71482         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71483         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71484         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71485         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71486         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71487         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71488         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71489         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71490         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71491         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71492         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71493         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71494         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71495         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71496         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71497         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71498         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71499         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71500         not check for things that C99 does not require, e.g., int8_t.  If
71501         a test isn't needed unless <stdint.h> isn't working, and is
71502         unlikely to be needed for any other reason, then don't do it
71503         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71504         size_t, since we assume C89 freestanding at least.  Do not check
71505         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71506         the right thing even if the types are not defined.  Instead use:
71507         (gl_STDINT_TYPE_PROPERTIES): New macro.
71508         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71509         testing whether <sys/types.h> clashes, as Autoconf does this for
71510         us now.  All uses removed.
71511         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71512         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71513         (gl_CHECK_TYPE_SAME):
71514         Remove; no longer needed.
71515         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71516         exists, since we'll return 0 anyway in that case.
71517         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71518
71519 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71520
71521         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71522         possible collision with system files.
71523         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71524         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71525         WCHAR_MIN and WCHAR_MAX in this case.
71526         (<stddef.h>): Do not include; no longer needed.
71527         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71528         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71529         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71530         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71531         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71532         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71533         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71534         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71535         !defined(__c99))]: Include in this case too, since it's harmless
71536         now.
71537         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71538         dangerous to do so.
71539         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71540         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71541         (_STDINT_MIN, _STDINT_MAX): New macros.
71542         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71543         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71544         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71545         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71546         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71547         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71548         macros, not typedefs; this simplifies things quite a bit.
71549         Use long int for all types narrower than int64_t.
71550         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71551         Define in terms of long long int or int64_t or long int,
71552         not int64_t or int32_t.  This saves some compile-time testing.
71553         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71554         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71555         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71556         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71557         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71558         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71559         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71560         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71561         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71562         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71563         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71564         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71565         undef any previous version and define our own version, for
71566         simplicity and consistency with the new macros for types.
71567         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71568         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71569         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71570         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71571         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71572         @WINT_T_SUFFIX@ to keep things simple here.
71573         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71574         Simplify by assuming typical 8/16/32/64 host, since we're
71575         already doing that elsewhere anyway.
71576         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71577         and assume long long int is 64 bits if available.  This
71578         speeds up 'configure'.
71579
71580 2006-07-01  Eric Blake  <ebb9@byu.net>
71581
71582         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71583         Reported by Andreas Buening.
71584
71585 2006-07-01  Eric Blake  <ebb9@byu.net>
71586
71587         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71588
71589 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71590
71591         * lib/getaddrinfo.c: fixed typo
71592
71593 2006-06-29  Jim Meyering  <jim@meyering.net>
71594
71595         * modules/strftime (Maintainer): Add my name, since with the
71596         FPRINTFTIME changes strftime.c has forked from glibc.
71597
71598 2006-06-29  Eric Blake  <ebb9@byu.net>
71599
71600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71601
71602 2006-06-29  Eric Blake  <ebb9@byu.net>
71603
71604         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71605
71606 2006-06-29  Eric Blake  <ebb9@byu.net>
71607
71608         * lib/stat_.h: New file.
71609
71610 2006-06-29  Eric Blake  <ebb9@byu.net>
71611
71612         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71613         unused static function.
71614
71615 2006-06-29  Eric Blake  <ebb9@byu.net>
71616
71617         * doc/functions.texi (Function Portability): Document missing lstat
71618         on mingw.
71619
71620 2006-06-29  Eric Blake  <ebb9@byu.net>
71621
71622         * MODULES.html.sh: Add sys_stat.
71623         * modules/sys_stat: New module.
71624         * modules/mkstemp (Depends-on): Add sys_stat.
71625
71626 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71627
71628         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71629
71630 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71631
71632         * m4/c-bs-a.m4: Removed.
71633
71634 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71635
71636         * lib/strftime.c: Assume strftime() exists.
71637
71638 2006-06-29  Derek Price  <derek@ximbiot.com>
71639
71640         * modules/c-bs-a: Removed - \a is C89.
71641         * MODULES.html.sh: Remove c-bs-a.
71642
71643 2006-06-29  Bruno Haible  <bruno@clisp.org>
71644
71645         * modules/wcwidth (License): Change to LGPL.
71646
71647 2006-06-28  Simon Josefsson  <jas@extundo.com>
71648
71649         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71650         on _WIN32.
71651
71652         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71653         getnameinfo.
71654
71655 2006-06-28  Simon Josefsson  <jas@extundo.com>
71656
71657         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71658
71659 2006-06-28  Simon Josefsson  <jas@extundo.com>
71660
71661         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71662         functions there.  It will succeed on Windows XP, but on Windows
71663         2000 and (presumably) earlier, it will fail, and use the internal
71664         re-implementation.
71665         (use_win32_p): New function.
71666         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71667         Support AI_NUMERICSERV to disable getservbyname.
71668         (getnameinfo): New function, only supports
71669         NI_NUMERICHOST|NI_NUMERICSERV for now.
71670
71671         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71672         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71673         getnameinfo.
71674
71675 2006-06-28  Eric Blake  <ebb9@byu.net>
71676
71677         * modules/wcwidth: New file.
71678         * modules/mbchar (Depends-on): Add wcwidth.
71679         * modules/mbswidth (Depends-on): Add wcwidth.
71680         * MODULES.html.sh: Add wcwidth.
71681
71682 2006-06-28  Eric Blake  <ebb9@byu.net>
71683
71684         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71686
71687 2006-06-28  Eric Blake  <ebb9@byu.net>
71688
71689         * lib/xvasprintf.h: Fix comments.
71690
71691 2006-06-28  Eric Blake  <ebb9@byu.net>
71692
71693         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71694         * lib/mbswidth.c (wcwidth): Move from here...
71695         * lib/wcwidth.h: ...to this new file.
71696
71697 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71698
71699         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71700
71701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71702         it's obsolete.
71703         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71704
71705 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71706
71707         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71708         Autoconf 2.60 says this stuff was obsolete.
71709
71710 2006-06-28  Bruno Haible  <bruno@clisp.org>
71711
71712         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71713
71714 2006-06-28  Bruno Haible  <bruno@clisp.org>
71715
71716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71717         gt_TYPE_WCHAR_T.
71718
71719 2006-06-28  Bruno Haible  <bruno@clisp.org>
71720
71721         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71722         declaration for wcwidth.
71723         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71724
71725 2006-06-28  Bruno Haible  <bruno@clisp.org>
71726
71727         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71728         (mkdir): Define using _mkdir.
71729
71730 2006-06-28  Bruno Haible  <bruno@clisp.org>
71731
71732         * lib/getaddrinfo.h: Fix POSIX URL.
71733         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71734         _WIN32.
71735         (use_win32_p): Make static.
71736         (getaddrinfo): Reject service name if it is empty or does not consist
71737         solely of decimal digits, or if its value is > 65535.
71738         (getnameinfo): Remove useless casts.
71739
71740 2006-06-27  Simon Josefsson  <jas@extundo.com>
71741
71742         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71743         Eggert and Martin Lambers.
71744
71745 2006-06-27  Simon Josefsson  <jas@extundo.com>
71746
71747         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71748         Eggert and Martin Lambers.
71749
71750 2006-06-27  Bruno Haible  <bruno@clisp.org>
71751
71752         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71753         result to 0, not to empty.
71754         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71755
71756 2006-06-27  Bruno Haible  <bruno@clisp.org>
71757
71758         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71759
71760 2006-06-26  Simon Josefsson  <jas@extundo.com>
71761
71762         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71763         present.
71764
71765 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71766
71767         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71768         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71769         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71770
71771 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71772
71773         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71774
71775 2006-06-26  Bruno Haible  <bruno@clisp.org>
71776
71777         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71778
71779 2006-06-26  Bruno Haible  <bruno@clisp.org>
71780
71781         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71782
71783 2006-06-26  Bruno Haible  <bruno@clisp.org>
71784
71785         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71786         SGI C compiler in pre-C99 mode.
71787         Suggested by Mark D. Baushke and Larry Jones.
71788
71789 2006-06-26  Bruno Haible  <bruno@clisp.org>
71790
71791         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71792         WCHAR_MAX.
71793         Reported by Mark D. Baushke and Larry Jones.
71794
71795 2006-06-26  Bruno Haible  <bruno@clisp.org>
71796
71797         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71798         in pre-C99 mode.
71799         Suggested by Mark D. Baushke and Larry Jones.
71800
71801 2006-06-23  Simon Josefsson  <jas@extundo.com>
71802             Bruno Haible  <bruno@clisp.org>
71803
71804         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71805         Emit mostlyclean-local rule.
71806         (func_emit_tests_Makefile_am): Likewise.
71807         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71808
71809 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71810
71811         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71812
71813 2006-06-23  Bruno Haible  <bruno@clisp.org>
71814
71815         * tests/test-stdint.c: Update to match ISO C 99 Technical
71816         Corrigendum 1.
71817
71818 2006-06-23  Bruno Haible  <bruno@clisp.org>
71819
71820         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71821
71822 2006-06-23  Bruno Haible  <bruno@clisp.org>
71823
71824         * lib/stdint_.h: Treat IRIX like OpenBSD.
71825
71826 2006-06-23  Bruno Haible  <bruno@clisp.org>
71827
71828         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71829         ISO C 99 Technical Corrigendum 1.
71830
71831 2006-06-22  Simon Josefsson  <jas@extundo.com>
71832
71833         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71834         MinGW.
71835
71836 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71837
71838         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71839         needed.  Some compiler complained about some of them.  Problem reported
71840         by Larry Jones in
71841         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71842
71843 2006-06-21  Simon Josefsson  <jas@extundo.com>
71844
71845         * tests/test-getaddrinfo.c: New file.
71846
71847         * modules/getaddrinfo-tests: New file.
71848
71849         * MODULES.html.sh: Add inet_pton.
71850
71851         * modules/inet_pton: New file.
71852
71853 2006-06-21  Simon Josefsson  <jas@extundo.com>
71854
71855         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71856         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71857         of using the (limited) gnulib implementation on Windows XP.
71858
71859         * m4/inet_pton.m4: New file.
71860
71861 2006-06-21  Simon Josefsson  <jas@extundo.com>
71862
71863         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71864         variable.
71865
71866         * lib/socket_.h: Don't define WINVER.
71867
71868         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71869         slightly modified to work in gnulib.
71870
71871 2006-06-21  Simon Josefsson  <jas@extundo.com>
71872
71873         * doc/gnulib.texi (Windows sockets): Add.
71874
71875 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71876
71877         * lib/read-file.c (fread_file): Start with buffer allocation of
71878         0 bytes rather than 1 byte; this simplifies the code.
71879         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71880         code to free buffer and save/restore errno.
71881         (internal_read_file): Remove unused local.
71882
71883 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71884
71885         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71886         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71887         Problem reported by Denis Excoffier in
71888         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71889
71890 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71891
71892         * modules/sys_socket, modules/socklen: Include sys/types since
71893         FreeBSD 4.x's sys/socket.h needs it.
71894
71895 2006-06-19  Simon Josefsson  <jas@extundo.com>
71896
71897         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71898
71899 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71900
71901         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71902
71903 2006-06-19  Bruno Haible  <bruno@clisp.org>
71904
71905         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71906         and FULL_PATH_INTTYPES_H in angle brackets.
71907         Reported by Mark D. Baushke <mdb@gnu.org>.
71908
71909 2006-06-17  Eric Blake  <ebb9@byu.net>
71910
71911         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71912         errno.
71913
71914 2006-06-17  Bruno Haible  <bruno@clisp.org>
71915
71916         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71917         <sys/inttypes.h>.
71918
71919 2006-06-17  Bruno Haible  <bruno@clisp.org>
71920
71921         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71922         whether errno is declared. Assume <errno.h> declares errno.
71923
71924 2006-06-17  Bruno Haible  <bruno@clisp.org>
71925
71926         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71927
71928 2006-06-17  Bruno Haible  <bruno@clisp.org>
71929
71930         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
71931         problem on Solaris 2.5.1.
71932
71933 2006-06-16  Eric Blake  <ebb9@byu.net>
71934
71935         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
71936         * lib/unicodeio.c [!defined errno]: Likewise.
71937         * lib/strtol.c [!defined errno]: Likewise.
71938         * lib/strtod.c [!defined errno]: Likewise.
71939
71940 2006-06-15  Eric Blake  <ebb9@byu.net>
71941
71942         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
71943
71944 2006-06-15  Eric Blake  <ebb9@byu.net>
71945
71946         * config/srclist.txt (ssize_t.m4): Lose sync.
71947
71948 2006-06-15  Bruno Haible  <bruno@clisp.org>
71949
71950         * modules/stdint (Files): Include m4/full-header-path.m4,
71951         m4/size_max.m4, m4/wchar_t.m4.
71952         (Makefile.am): Many more substitutions.
71953         * modules/stdint-tests: New file.
71954         * tests/test-stdint.c: New file.
71955
71956 2006-06-15  Bruno Haible  <bruno@clisp.org>
71957
71958         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
71959         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
71960         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
71961         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
71962         gl_CHECK_TYPE_SAME): New macros.
71963
71964 2006-06-15  Bruno Haible  <bruno@clisp.org>
71965
71966         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
71967
71968 2006-06-15  Bruno Haible  <bruno@clisp.org>
71969
71970         * lib/stdint_.h: Rewritten to be fully auto-configured.
71971         Fixes bug on HP-UX/IA64.
71972
71973 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * lib/getdate.y (__attribute__): Don't define if already defined.
71976         Problem reported by Larry Jones.
71977         * lib/utimens.c (__attribute__): Likewise.
71978
71979 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
71982         reported by Andreas Schwab.
71983
71984 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71985             Bruno Haible  <bruno@clisp.org>
71986
71987         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
71988         check for the declaration of strnlen and a run test that exposes the
71989         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
71990         rpl_strndup.
71991
71992 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71993             Bruno Haible  <bruno@clisp.org>
71994
71995         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
71996
71997 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71998
71999         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72000         compile test, for Tru64 4.0D.
72001
72002 2006-05-28  Karl Berry  <karl@gnu.org>
72003
72004         * config/srclist.txt (printf-args.c): lose sync.
72005
72006 2006-05-26  Martin Lambers  <marlam@marlam.de>
72007
72008         * lib/getpass.c: Updates the test for the native W32 API, and adds
72009         missing includes, thus fixing compilation warnings.
72010
72011 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72012
72013         * lib/exclude.c (exclude_fnmatch): New function.
72014         (excluded_file_name): Call exclude_fnmatch.
72015         * lib/exclude.h (excluded_file_name): New prototype
72016
72017 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72018
72019         * lib/tempname.c (small_open, large_open): New macros.
72020         (__open, __open64) [!_LIBC]: Remove.
72021         (__gen_tempname): Use small_open and large_open instead of __open
72022         and __open64.  This fixes a portability bug on HP-UX 11.11i
72023         reported by Simon Wing-Tang in
72024         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72025
72026 2006-05-24  Bruno Haible  <bruno@clisp.org>
72027
72028         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72029         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72030         Reported by Thorsten Maerz <torte@netztorte.de> via
72031         Aaron Stone <aaron@serendipity.cx>.
72032
72033 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72034
72035         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72036         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72037         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72038         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72039         not really conditional on the cache.
72040         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72041
72042 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72043
72044         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72045         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72046         (my_usleep): Don't mishandle maximum value.
72047
72048 2006-05-19  Jim Meyering  <jim@meyering.net>
72049
72050         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72051
72052 2006-05-17  Bruno Haible  <bruno@clisp.org>
72053
72054         Cygwin portability.
72055         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72056
72057 2006-05-17  Bruno Haible  <bruno@clisp.org>
72058
72059         * lib/stdint_.h: Fix recognition of Cygwin.
72060
72061 2006-05-15  Bruno Haible  <bruno@clisp.org>
72062
72063         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72064         on libtool patch by Ralf Wildenhues.
72065
72066 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72067
72068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72069         test for C99 conformance; (bool) 0.5 is an integer constant
72070         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72071         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72072
72073 2006-05-11  Simon Josefsson  <jas@extundo.com>
72074
72075         * m4/xvasprintf.m4: Fix obvious typo.
72076
72077 2006-05-11  Jim Meyering  <jim@meyering.net>
72078
72079         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72080         James Lemley.
72081
72082 2006-05-10  Simon Josefsson  <jas@extundo.com>
72083
72084         * lib/md4.c: Typo fix, update copyright years.
72085         (K1, K2): Don't use L because it turn computations into 64-bit on
72086         64-bit platforms.
72087
72088 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72089
72090         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72091         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72092         unwanted sign propagation, e.g., on hosts with 64-bit int.
72093         There still are some problems with reeelly weird theoretical hosts
72094         (e.g., 33-bit int) but it's not worth worrying about now.
72095         * lib/sha1.c (rol): Likewise.
72096         (K1, K2, K3, K4): Remove unnecessary L suffix.
72097
72098 2006-05-10  Bruno Haible  <bruno@clisp.org>
72099
72100         * lib/des.c: Cast to avoid warnings.
72101
72102 2006-05-09  Bruno Haible  <bruno@clisp.org>
72103
72104         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72105         (Depends-on): Depend also on xsize, stdarg.
72106         (configure.ac): Add gl_XVASPRINTF.
72107
72108 2006-05-09  Bruno Haible  <bruno@clisp.org>
72109
72110         * m4/xvasprintf.m4: New file.
72111
72112 2006-05-09  Bruno Haible  <bruno@clisp.org>
72113
72114         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72115         (EOVERFLOW): Define fallback value.
72116         (xstrcat): New function.
72117         (xvasprintf): Recognize the special case of a string concatenation.
72118
72119 2006-05-08  Eric Blake  <ebb9@byu.net>
72120
72121         * gnulib-tool (func_version): Base copyright year on CVS date.
72122         (func_emit_copyright_notice): New function.
72123         (func_emit_lib_Makefile_am): Use it.
72124         (func_emit_tests_Makefile_am): Likewise.
72125         (func_import): Likewise.
72126
72127 2006-05-08  Bruno Haible  <bruno@clisp.org>
72128
72129         * modules/stdarg: New file.
72130         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72131
72132 2006-05-08  Bruno Haible  <bruno@clisp.org>
72133
72134         * m4/stdarg.m4: New file, from GNU gettext.
72135
72136 2006-05-08  Bruno Haible  <bruno@clisp.org>
72137
72138         * config/srclist.txt (build-aux/config.rpath): different from latest
72139         release.
72140
72141 2006-05-08  Bruno Haible  <bruno@clisp.org>
72142
72143         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72144
72145 2006-05-05  Jim Meyering  <jim@meyering.net>
72146
72147         * m4/warning.m4: New file, derived from bison's file by the same name.
72148
72149 2006-05-03  Bruno Haible  <bruno@clisp.org>
72150
72151         * lib/stdint_.h: Shorter URL.
72152         * lib/inttypes.h: Likewise.
72153
72154 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72155
72156         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72157
72158 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * lib/verify.h: Document the internals better.  Most of this change
72161         was written by Bruno Haible.
72162
72163 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72164
72165         * doc/verify.texi: New file, partly based on a proposal by
72166         Bruno Haible.
72167
72168 2006-05-02  Bruno Haible  <bruno@clisp.org>
72169
72170         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72171         test from here...
72172         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72173
72174 2006-04-29  Bruno Haible  <bruno@clisp.org>
72175
72176         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72177         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72178
72179 2006-04-29  Bruno Haible  <bruno@clisp.org>
72180
72181         * gnulib-tool: Make --update option actually work.
72182
72183 2006-04-29  Bruno Haible  <bruno@clisp.org>
72184
72185         * doc/gcd.texi: New file.
72186         * doc/gnulib.texi: Include it.
72187
72188 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         * lib/getdate.y (get_date): When adding relative date, start with the
72191         initial time, not with the result of the first mktime call.
72192
72193 2006-04-25  Bruno Haible  <bruno@clisp.org>
72194
72195         * gnulib-tool (func_import): Output the include directives in three
72196         blocks, sorted separately.
72197         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72198
72199 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72202         to define main with arguments, for C++.  Reported by Eric Blake.
72203         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72204         Prefer 'int main ()' to 'int main (void)', for C++.
72205         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72206         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72207         for 'main', for C99 and C++.
72208
72209 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72210
72211         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72212         Don't assume that exit status -1 is valid.
72213         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72214         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72215         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72216         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72217         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72218         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72219         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72220         functions can be used without declaring them, or that you can
72221         exit with status -1.
72222         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72223
72224 2006-04-24  Karl Berry  <karl@gnu.org>
72225
72226         * config/srclist.txt (longdouble.m4): sync lost.
72227
72228 2006-04-24  Eric Blake  <ebb9@byu.net>
72229
72230         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72231
72232 2006-04-24  Bruno Haible  <bruno@clisp.org>
72233
72234         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72235         poll() implementation in AIX.
72236         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72237
72238 2006-04-24  Bruno Haible  <bruno@clisp.org>
72239
72240         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72241         assigned exactly once.
72242
72243 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72244             Bruno Haible  <bruno@clisp.org>
72245
72246         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72247         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72248         for AM_CPPFLAGS.
72249
72250 2006-04-23  Bruno Haible  <bruno@clisp.org>
72251
72252         * modules/copy-file: Depend on unistd.
72253         * modules/execute: Likewise.
72254         * modules/fatal-signal: Likewise.
72255         * modules/findprog: Likewise.
72256         * modules/mkdtemp : Likewise.
72257         * modules/pipe: Likewise.
72258         * modules/wait-process: Likewise.
72259
72260 2006-04-23  Bruno Haible  <bruno@clisp.org>
72261
72262         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72263         condition was already detected.
72264         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72265
72266 2006-04-23  Bruno Haible  <bruno@clisp.org>
72267
72268         * lib/copy-file.c: Include <unistd.h> unconditionally.
72269         * lib/execute.c: Likewise.
72270         * lib/fatal-signal.c: Likewise.
72271         * lib/findprog.c: Likewise.
72272         * lib/mkdtemp.c: Likewise.
72273         * lib/pipe.h: Likewise.
72274         * lib/pipe.c: Likewise.
72275         * lib/wait-process.h: Likewise.
72276
72277 2006-04-23  Bruno Haible  <bruno@clisp.org>
72278
72279         * gnulib-tool (func_usage): Fix --import description. Document
72280         --update.
72281         (func_import): Create temporary file in a temporary directory, if
72282         --dry-run is specified. Silence errors from 'grep' when there are no
72283         m4 files in $m4dir.
72284         (func_create_testdir): Silence errors from 'grep' when there are no
72285         m4 files in $m4dir.
72286         Reported by Karl Berry <karl@freefriends.org>.
72287
72288 2006-04-20  Bruno Haible  <bruno@clisp.org>
72289
72290         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72291         one argument, so that the code will be portable to Autoconf 2.60.
72292         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72293         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72294         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72295
72296 2006-04-19  Derek Price  <derek@ximbiot.com>
72297             Eric Blake  <ebb9@byu.net>
72298
72299         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72300         rather than "/full/path.h".  Update comment to match.  Shorten &
72301         generalize m4_translit call via AS_TR_CPP.
72302
72303 2006-04-19  Derek Price  <derek@ximbiot.com>
72304             Eric Blake  <ebb9@byu.net>
72305
72306         * lib/inttypes.h: Correct grammar in comment.
72307
72308 2006-04-18  Derek Price  <derek@ximbiot.com>
72309             Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * modules/inttypes: New file.
72312         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72313
72314 2006-04-18  Derek Price  <derek@ximbiot.com>
72315             Paul Eggert  <eggert@cs.ucla.edu>
72316
72317         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72318         New files.
72319
72320 2006-04-18  Derek Price  <derek@ximbiot.com>
72321             Paul Eggert  <eggert@cs.ucla.edu>
72322
72323         * lib/inttypes.h: New file.
72324         * lib/strtoimax.c: Assume <inttypes.h>.
72325
72326 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72329         isn't mounted.  Problem reported by Kir Kolyshkin.
72330
72331 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72334         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72335         Derek R. Price.
72336         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72337         implementation.
72338
72339 2006-04-12  Eric Blake  <ebb9@byu.net>
72340
72341         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72342         is now done automatically by the corresponding Autoconf macro.
72343
72344 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72345
72346         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72347         time_r.h.
72348
72349 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72350
72351         Merge regex changes from libc, removing some of our
72352         POSIX-conformance changes that were rejected and redoing them in a
72353         less-intrusive way.
72354
72355         * lib/regcomp.c (re_compile_internal, init_dfa):
72356         Length arg is now size_t, not Idx.  All uses changed.
72357         (peek_token): Forward decl now says internal_function.
72358         (__re_error_msgid, __re_error_msgid_idx):
72359         Now static rather than extern with attribute_hidden.
72360         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72361         For some reason libc prefers K&R style defns for external functions.
72362         (regerror) [!defined _LIBC]: Likewise.
72363         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72364         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72365         (build_range_exp, build_collating_symbol):
72366         Use K&R-style defn.
72367         (re_compile_fastmap): Use '\0' to memset, not 0.
72368         (utf8_sb_map): Make the calculations more obvious.
72369         (init_dfa, parse_bracket_exp, build_charclass_op):
72370         Call calloc and cast result, as glibc does.
72371         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72372         (build_range_exp, build_collating_symbol):
72373         Now internal functions.
72374
72375         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72376
72377         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72378         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72379         Don't depend on VMS; depend on __VMS instead, for POSIX
72380         namespace cleanness.
72381         (regoff_t): Define to ssize_t, not long int.
72382
72383         Remove the REG_ macros named below.  Instead, make the old names
72384         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72385         __USE_GNU_REGEX.
72386         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72387         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72388         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72389         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72390         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72391         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72392         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72393         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72394         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72395         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72396         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72397         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72398         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72399         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72400         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72401         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72402         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72403         (REG_NREGS):
72404         Remove.  All uses replaced by the old RE_* names.
72405         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72406         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72407         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72408         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72409         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72410         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72411         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72412         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72413         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72414         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72415         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72416         Don't bother having these macros be independent of each others'
72417         values, since they no longer exist in the POSIX name space.
72418
72419         Rename the following member names back to their old names,
72420         unless !__USE_GNU_REGEX.  All uses changed back.
72421         (buffer): Renamed from re_buffer.
72422         (allocated): Renamed from re_allocated.
72423         (used): Renamed from re_used.
72424         (syntax): Renamed from re_syntax.
72425         (fastmap): Renamed from re_fastmap.
72426         (translate): Renamed from re_translate.
72427         (can_be_null): Renamed from re_can_be_null.
72428         (regs_allocated): Renamed from re_regs_allocated.
72429         (fastmap_accurate): Renamed from re_fastmap_accurate.
72430         (no_sub): Renamed from re_no_sub.
72431         (not_bol): Renamed from re_not_bol.
72432         (not_eol): Renamed from re_not_eol.
72433         (newline_anchor): Renamed from re_newline_anchor.
72434         (num_regs): Renamed from rm_num_regs.
72435         (start): Renamed from rm_start.
72436         (end): Renamed from rm_end.
72437
72438         (free_state): Move up a bit.
72439
72440         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72441         #define to be empty.
72442         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72443         when that is what is intended.
72444         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72445         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72446         (MAX): New macro.
72447         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72448         All uses changed back to re_malloc, etc.  It's now the caller's
72449         responsibility to check for overflow; all callers changed.
72450         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72451         (re_x2nrealloc): Remove.
72452         (free_state): Remove decl.
72453
72454         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72455         (re_set_registers, re_exec):
72456         Use K&R-style defn.
72457
72458         2006-01-31  Roland McGrath  <roland@redhat.com>
72459
72460         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72461         Reported by Mike Frysinger <vapier@gentoo.org>.
72462
72463         2006-01-15  Andreas Jaeger  <aj@suse.de>
72464
72465         [BZ #1950]
72466         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72467         build_wcs_upper_buffer change.
72468         (build_wcs_upper_buffer): Change return type.
72469
72470         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72471
72472         * lib/regex_internal.h: Include <stdint.h> if available.
72473
72474         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72475
72476         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72477
72478         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72479
72480         * lib/regcomp.c: Adjust for changed secondary hash function.
72481
72482         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72483
72484         * lib/regex.h: Pretty printing.
72485         Clean up namespace a bit.
72486
72487         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72488
72489         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72490         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72491
72492         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72493                     Ulrich Drepper  <drepper@redhat.com>
72494
72495         [BZ #1302]
72496         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72497         changed.
72498         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72499
72500         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72501
72502         [BZ #281]
72503         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72504         * lib/regcomp.c: Remove unnecessary uses of
72505         unsigned RE_TRANSLATE_TYPE.
72506         * lib/regex_internal.h: Likewise.
72507         * lib/regex_internal.c: Likewise.
72508         * lib/regexec.c: Likewise.
72509         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72510
72511         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72512
72513         * lib/regexec.c (find_recover_state): Remove unnecessary
72514         initialization.
72515         (transit_state_bkref): Make DFA a const pointer.
72516         (get_subexp): Likewise.
72517         (check_arrival): Likewise.
72518         (update_cur_sifted_state): Likewise.
72519         (re_search_internal): Likewise.
72520         (prune_impossible_nodes): Likewise.
72521         (acquire_init_state_context): Likewise.
72522         (proceed_next_node): Likewise.
72523         (set_regs): Likewise.
72524         (free_fail_stack_return): Likewise.
72525         (check_arrival_expand_ecl): Mark DFA parameter as const.
72526         (check_arrival_expand_ecl_sub): Likewise.
72527         (check_subexp_limits): Likewise.
72528         (sub_epsilon_src_nodes):  Likewise.
72529         (add_epsilon_src_nodes):  Likewise.
72530         (merge_state_array): Likewise.
72531         (update_regs): Likewise.
72532         (build_trtable): Likewise.
72533         (sift_states_backward): Mark MCTX parameter as const.
72534         (build_sifted_states): Likewise.
72535         (update_cur_sifted_state): Likewise.
72536         (sift_states_mkref): Likewise.
72537         (check_arrival_expand_ecl): Mark eclosure as const.
72538         (check_dst_limits_calc_pos_1): Likewise.
72539         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72540         pointer.
72541
72542         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72543
72544         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72545         (transit_state_sb): Likewise.
72546         (transit_state_mb): Likewise.
72547         (sift_states_iter_mb): Likewise.
72548         (check_arrival_add_next_nodes): Likewise.
72549         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72550         [_LIBC] (re_search_2_stub): Use mempcpy.
72551
72552         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72553         mbrtowc for very simple UTF-8 case.
72554
72555         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72556         a pointer-to-const.
72557         (re_acquire_state_context): Likewise.
72558         * lib/regex_internal.h: Adjust prototypes.
72559
72560         * lib/regex.c: Prevent using C++ compilers.
72561
72562         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72563         (re_acquire_state_context): Likewise.
72564
72565 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72566
72567         * modules/regex (Depends-on): Add ssize_t.
72568
72569 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72570
72571         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72572         translation table.
72573
72574 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72577
72578 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72579             Bruno Haible  <bruno@clisp.org>
72580
72581         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72582         <sys/types.h> and <inttypes.h>.
72583
72584 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72585
72586         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72587         `__error_t_defined', so argp.h will not typedef the former.
72588
72589 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72590
72591         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72592         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72593         glibc names.  Even if glibc is changed to conform to POSIX, the
72594         traditional names will be available anyway, since regex depends on
72595         the extensions module.  Also, fix a longstanding typo in the
72596         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72597         reported by Emanuele Giaquinta.  Also, change sense of cached
72598         variable, so that the message makes sense.
72599
72600 2006-03-24  Simon Josefsson  <jas@extundo.com>
72601
72602         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72603         including some doc fixes.
72604         (base64_encode_alloc): Fix +1 bug on allocation failures.
72605
72606 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72607
72608         * lib/base64.c (base64_encode): Do not read past end of array with
72609         unsanitized input on systems with CHAR_BIT > 8.
72610
72611 2006-03-24  Eric Blake  <ebb9@byu.net>
72612
72613         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72614
72615 2006-03-22  Karl Berry  <karl@gnu.org>
72616
72617         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72618         * config/srclistvars.sh (COREUTILS): new var.
72619
72620 2006-03-17  Jim Meyering  <jim@meyering.net>
72621
72622         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72623         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72624
72625 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72626
72627         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72628         no longer needs it.  Instead, check that regoff_t is as least
72629         as wide as ptrdiff_t.
72630
72631         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72632         so that our regex.h stays compatible with the installed regex.
72633         This is helpful for installers who configure --without-included-regex.
72634         Problem reported by Emanuele Giaquinta.
72635
72636 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72639         Typedef to long int, not to off_, as POSIX will likely change
72640         in that direction.
72641
72642 2006-03-15  Eric Blake  <ebb9@byu.net>
72643
72644         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72645
72646 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72647
72648         * lib/argp-help.c (validate_uparams): Fix typo
72649         * lib/argp-parse.c (argp_default_options): Consistently begin help
72650         messages with a lowercase letter.
72651
72652 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72655         overrun buffers and shouldn't be used (much as gets shouldn't be
72656         used).
72657         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72658
72659 2006-03-08  Simon Josefsson  <jas@extundo.com>
72660
72661         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72662         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72663
72664 2006-03-08  Simon Josefsson  <jas@extundo.com>
72665
72666         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72667         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72668
72669 2006-03-08  Simon Josefsson  <jas@extundo.com>
72670
72671         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72672         signal that configure disabled the device.
72673
72674 2006-03-08  Simon Josefsson  <jas@extundo.com>
72675
72676         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72677         languages.
72678
72679 2006-03-07  Simon Josefsson  <jas@extundo.com>
72680
72681         * modules/getopt (Depends-on): Add unistd.
72682
72683         * modules/unistd: New file.
72684
72685 2006-03-07  Simon Josefsson  <jas@extundo.com>
72686
72687         * modules/gc-random: New file.
72688
72689 2006-03-07  Simon Josefsson  <jas@extundo.com>
72690
72691         * m4/unistd_h.m4: New file.
72692
72693 2006-03-07  Simon Josefsson  <jas@extundo.com>
72694
72695         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72696         test to be side-effect free by storing the result in the cache
72697         variable gl_cv_lib_readline, and moving the assignment of
72698         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72699         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72700
72701 2006-03-07  Simon Josefsson  <jas@extundo.com>
72702
72703         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72704         error on missing devices (the functions will return an error).
72705
72706         * m4/gc.m4: Move random stuff to gc-random.m4
72707
72708 2006-03-07  Simon Josefsson  <jas@extundo.com>
72709
72710         * lib/unistd_.h: New file.
72711
72712 2006-03-07  Simon Josefsson  <jas@extundo.com>
72713
72714         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72715
72716 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72717
72718         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72719         Problem reported by Juan Manuel Guerrero.
72720
72721 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72722
72723         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72724         the unistd module.
72725         * lib/getlogin_r.c: Likewise.
72726         * lib/getlogin_r.h: Likewise.
72727         * lib/glob.c: Likewise.
72728         * lib/pagealign_alloc.c: Likewise.
72729         * lib/unistd_.h: Remove; no longer needed.
72730
72731 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72734         Add unistd.
72735         * modules/c-stack (Depends-on): Add unistd.
72736         * modules/getlogin_r: Likewise.
72737         * modules/glob: Likewise.
72738         * modules/pagealign_alloc: Likewise.
72739         * modules/unistd (Files): Remove lib/unistd_.h.
72740         (EXTRA_DIST): Remove.
72741         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72742         need unistd_.h.
72743         (MOSTLYCLEANFILES): Remove unistd.h-t.
72744
72745 2006-03-03  Simon Josefsson  <jas@extundo.com>
72746
72747         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72748
72749 2006-03-03  Simon Josefsson  <jas@extundo.com>
72750
72751         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72752         libidn and bison.
72753
72754 2006-03-03  Simon Josefsson  <jas@extundo.com>
72755
72756         * build-aux/maint.mk: Add indent target.
72757
72758 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72759
72760         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72761         our replacement poll.h in any case, to avoid a differing
72762         declaration from a system header.  Seen on AIX.
72763
72764 2006-03-01  Simon Josefsson  <jas@extundo.com>
72765
72766         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72767         <kasal@ucw.cz>.
72768
72769 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72770
72771         * modules/gettime (Depends-on): Add extensions module.
72772         * modules/nanosleep (Depends-on): Likewise.
72773         * modules/settime (Depends-on): Likewise.
72774
72775 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72776
72777         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72778         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72779         pedantically.
72780         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72781         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72782
72783         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72784         not "==".  Reported by Ralf Wildenhues.
72785
72786 2006-03-01  Karl Berry  <karl@gnu.org>
72787
72788         * doc/Copyright/request-*: new files, synced from gnuorg.
72789
72790 2006-03-01  Karl Berry  <karl@gnu.org>
72791
72792         * config/srclist.txt (Copyright/*): new entries.
72793
72794 2006-02-28  Simon Josefsson  <jas@extundo.com>
72795
72796         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72797
72798 2006-02-27  Simon Josefsson  <jas@extundo.com>
72799
72800         * lib/base64.h: Indent #define's.  From Jim Meyering
72801         <jim@meyering.net>.
72802
72803 2006-02-27  Jim Meyering  <jim@meyering.net>
72804
72805         Revert the change of 2006-02-24, so these files can continue
72806         to be sync'd from gettext.
72807         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72808         of `config.h'.
72809
72810 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72811
72812         * modules/intprops: New file.
72813         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72814         Add intprops.
72815         * modules/getloadavg (Files): Remove lib/intprops.h.
72816         (Depends-on): Add intprops.
72817         * modules/human: Likewise.
72818         * modules/inttostr: Likewise.
72819         * modules/openat: Likewise.
72820         * modules/sig2str: Likewise.
72821         * modules/userspec: Likewise.
72822         * modules/utimecmp: Likewise.
72823         * modules/xnanosleep: Likewise.
72824         * modules/xstrtol: Likewise.
72825
72826 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72827
72828         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72829         * modules/lock-tests (TESTS): Use $(EXEEXT).
72830         * modules/tls-tests: Likewise.
72831         * modules/argp-tests: Likewise.
72832         (check_PROGRAMS): New var, replacing...
72833         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72834
72835 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72836
72837         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72838         `config.h'.
72839
72840 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72841
72842         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72843
72844 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72845
72846         Sync from coreutils.
72847         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72848         gl_CHDIR_SAFER.
72849
72850 2006-02-22  Jim Meyering  <jim@meyering.net>
72851
72852         Sync from coreutils.
72853         * m4/chdir-safer.m4: New file.
72854
72855 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72858         AT_FDCWD exceeds INT_MAX.
72859         * lib/openat.h (AT_FDCWD): Likewise.
72860
72861 2006-02-17  Eric Blake  <address@hidden>
72862
72863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72864
72865 2006-02-16  Simon Josefsson  <jas@extundo.com>
72866
72867         * modules/getaddrinfo (Depends-on): Add sys_socket.
72868
72869 2006-02-15  Simon Josefsson  <jas@extundo.com>
72870
72871         * build-aux/maint.mk: Add dsyntax-check rule.
72872
72873 2006-02-15  Eric Blake  <ebb9@byu.net>
72874
72875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72876         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72877         'present but cannot compile' warnings on cygwin.
72878         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72879         use ws2tcpip.h if sys/socket.h works.
72880         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72881         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72882
72883 2006-02-14  Simon Josefsson  <jas@extundo.com>
72884
72885         * modules/maintainer-makefile (Files): Rename.
72886
72887         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72888         and (the local) Makefile.cfg to maint-cfg.mk.
72889
72890         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72891         to the latter.
72892
72893         * modules/maintainer-makefile: New module.
72894
72895         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72896         severaly stripped to make it possible to build it up from scratch
72897         with reliable tests.
72898
72899         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72900         fixes to permit overriding the default actions when configure and
72901         makefile are not available.
72902
72903 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72904
72905         Sync from coreutils.
72906         * modules/lstat (Depends-on): Don't depend on xalloc.
72907         (License): Change from GPL to LGPL, since this is now simply a
72908         replacement for a libc function.
72909
72910 2006-02-14  Jim Meyering  <jim@meyering.net>
72911
72912         Sync from coreutils.
72913
72914         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72915         failure on deficient systems, and simplify gnulib lgpl dependencies.
72916         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72917         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72918
72919         * lib/xalloc-die.c: Remove unused definition of N_.
72920
72921 2006-02-14  Jim Meyering  <jim@meyering.net>
72922
72923         Sync from coreutils.
72924         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72925         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72926         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72927         double-quote uses of that variable, to accommodate the rare case in
72928         which getmntent is available in none of the libraries checked.  This
72929         happens at least on FreeBSD 5.0.
72930
72931 2006-02-13  Simon Josefsson  <jas@extundo.com>
72932
72933         * gnulib-tool (Usage): Fix --import, from
72934         karl@freefriends.org (Karl Berry).
72935
72936 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72937
72938         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
72939
72940 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
72941
72942         * lib/argp-namefrob.h: Restore changes accidentally lost during the
72943         "autoupdate" on 2005-12-12.
72944
72945 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72946
72947         * modules/closeout (Depends-on): Remove atexit.
72948
72949 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
72950
72951         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
72952         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
72953
72954 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72955
72956         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
72957         __EXTENSIONS__ if this causes compilation to fail.  Problem
72958         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
72959         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
72960
72961 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
72962
72963         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
72964         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
72965         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
72966         All uses changed.
72967
72968 2006-01-26  Simon Josefsson  <jas@extundo.com>
72969
72970         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
72971         prototype is visible on mingw32.
72972
72973         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
72974         for mingw32.
72975
72976         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
72977         mingw32).
72978
72979 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72980
72981         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
72982         attempt to open for write; this always fails, at least on POSIX
72983         hosts.  This reinstates the 2006-01-09 change, which was
72984         inadvertently removed.
72985
72986 2006-01-26  Bruno Haible  <bruno@clisp.org>
72987
72988         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
72989         Reported by Paul Eggert.
72990
72991 2006-01-26  Bruno Haible  <bruno@clisp.org>
72992             Paul Eggert  <eggert@cs.ucla.edu>
72993
72994         * lib/stdbool_.h (_Bool)
72995         [(! (defined __cplusplus || defined __BEOS__)
72996           && !defined __GNUC__
72997           && !(defined __HP_cc || defined __xlc__
72998                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
72999                || defined __sgi))]:
73000         #define to signed char in these cases too; this simplifies
73001         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73002         etc., separately) and makes it more conservative.
73003
73004 2006-01-25  Simon Josefsson  <jas@extundo.com>
73005
73006         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73007         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73008         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73009
73010 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73011
73012         * lib/argp-namefrob.h: Bugfix. Remove stray #
73013
73014 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73015
73016         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73017         so that we test the test.
73018         Check for yet another HP-UX cc bug involving *bool |= bool.
73019
73020 2006-01-25  Karl Berry  <karl@gnu.org>
73021
73022         * config/srclist.txt (vasnprintf.c): sync lost.
73023
73024 2006-01-25  Jim Meyering  <jim@meyering.net>
73025
73026         Sync from the stable (b5) branch of coreutils:
73027
73028         * lib/fts.c (fts_children): Don't let close() clobber errno from
73029         failed fchdir().
73030
73031         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73032         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73033         a dangling symlink.  That can also happen at least for ELOOP.
73034         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73035         FYI, this bug predates the inclusion of fts.c in coreutils.
73036
73037         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73038         in their own block, so pre-c99 compilers don't object.
73039
73040         Avoid the double-free (first in fts_read, second in fts_close) that
73041         would occur when an `active' directory is made inaccessible (e.g.,
73042         via chmod a-x) during a traversal.
73043         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73044         before returning.  Reproduce this failure by
73045         mkdir -p a/b; cd a; chmod a-x . b
73046         Reported by Stavros Passas.
73047
73048 2006-01-25  Jim Meyering  <jim@meyering.net>
73049
73050         * lib/fileblocks.c: Remove more useless parentheses.
73051         * lib/readutmp.h: Likewise.
73052
73053 2006-01-25  Bruno Haible  <bruno@clisp.org>
73054
73055         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73056         warnings.
73057         Reported by Paul Eggert.
73058
73059 2006-01-25  Bruno Haible  <bruno@clisp.org>
73060
73061         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73062         rid of a trap command. For Solaris sh.
73063         Reported by Mark D. Baushke <mdb@gnu.org>.
73064
73065 2006-01-24  Simon Josefsson  <jas@extundo.com>
73066
73067         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73068         Bruno.
73069
73070 2006-01-24  Karl Berry  <karl@gnu.org>
73071
73072         * config/srclist.txt (argp-namefrob.h): sync lost.
73073
73074 2006-01-24  Jim Meyering  <jim@meyering.net>
73075
73076         * modules/openat (Files): Add lib/intprops.h.
73077         From Mark D. Baushke.
73078
73079 2006-01-24  Jim Meyering  <jim@meyering.net>
73080
73081         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73082         Reported by Mark D. Baushke.
73083
73084 2006-01-24  Jim Meyering  <jim@meyering.net>
73085
73086         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73087
73088 2006-01-24  Bruno Haible  <bruno@clisp.org>
73089
73090         * modules/strnlen (Maintainer): Change from glibc to all.
73091
73092 2006-01-24  Bruno Haible  <bruno@clisp.org>
73093
73094         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73095         Patch by Paul Eggert.
73096
73097 2006-01-24  Bruno Haible  <bruno@clisp.org>
73098
73099         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73100         already has it.
73101         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73102         2005-11-26.
73103
73104         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73105         'signed char' to avoid problems with the built-in _Bool type.
73106         Reported by Paul Eggert on 2005-11-26.
73107
73108 2006-01-24  Bruno Haible  <bruno@clisp.org>
73109
73110         * gnulib-tool (func_import): Avoid constructing complicated sed
73111         expressions inside backquote.
73112         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73113
73114 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73115
73116         These changes imported from libc.
73117         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73118         test and two separate function calls.
73119         * lib/strndup.c (__strndup): Add libc_hidden_def.
73120
73121 2006-01-23  Simon Josefsson  <jas@extundo.com>
73122
73123         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73124         Remove the test_*_SOURCES variable: automake infers it by default.
73125         * modules/tls-tests: Likewise.
73126
73127 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73128
73129         Work around porting bugs reported by Dieter in
73130         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73131         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73132         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73133         Include "getopt.h" first, to check interface.
73134         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73135         !HAVE_DECL_GETENV.
73136         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73137         (__strndup): Revert to K&R-style function dfns, the glibc style.
73138         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73139         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73140         Include strnlen.h first, to get prototype properly.
73141         (strnlen): Renamed from __strnlen.
73142         Remove weak alias.
73143
73144 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73145
73146         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73147
73148 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73149
73150         * config/srclist.txt: Adjust to reflect glibc reorganization.
73151         This affects only comments.
73152
73153 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73154
73155          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73156          Reported by Bruce Korb <bkorb@gnu.org>.
73157
73158 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73159
73160         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73161         to pacify gcc -Wswitch-default.
73162
73163 2006-01-22  Bruno Haible  <bruno@clisp.org>
73164
73165         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73166         temporary buffer for sprintf, take into account the precision also
73167         for 'd', 'i', 'u', 'o', 'x', 'X'.
73168
73169 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73170
73171         * modules/argp-tests: New module
73172         * tests/test-argp.c: New file
73173         * tests/test-argp-2.sh: New file
73174
73175 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73176
73177         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73178         (__argp_base_name): Removed
73179         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73180         typo.
73181         (__argp_base_name): Provide macro definition or extern declaration
73182         depending on the configuration
73183
73184 2006-01-20  Simon Josefsson  <jas@extundo.com>
73185
73186         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73187
73188 2006-01-20  Simon Josefsson  <jas@extundo.com>
73189
73190         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73191
73192 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73193
73194         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73195         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73196         Suggested by Bruno Haible.
73197
73198 2006-01-20  Karl Berry  <karl@gnu.org>
73199
73200         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73201         until changes propagate, I guess.
73202
73203 2006-01-19  Simon Josefsson  <jas@extundo.com>
73204
73205         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73206
73207 2006-01-19  Simon Josefsson  <jas@extundo.com>
73208
73209         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73210
73211 2006-01-19  Simon Josefsson  <jas@extundo.com>
73212
73213         * gnulib-tool: Set check_PROGRAMS.
73214
73215         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73216         modules/des-tests, modules/gc-arcfour-tests,
73217         modules/gc-arctwo-tests, modules/gc-des-tests,
73218         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73219         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73220         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73221         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73222         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73223         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73224         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73225         test_*_SOURCES.
73226
73227 2006-01-18  Simon Josefsson  <jas@extundo.com>
73228
73229         * modules/socklen (Depends-on): Depend on sys_socket.
73230
73231 2006-01-18  Simon Josefsson  <jas@extundo.com>
73232
73233         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73234         modules/des-tests, modules/gc-arcfour-tests,
73235         modules/gc-arctwo-tests, modules/gc-des-tests,
73236         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73237         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73238         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73239         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73240         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73241         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73242         $(EXEEXT) to automake TESTS variable, for mingw32.
73243
73244 2006-01-17  Simon Josefsson  <jas@extundo.com>
73245
73246         * modules/socklen (Include): Need sys/socket.h.
73247
73248 2006-01-17  Bruno Haible  <bruno@clisp.org>
73249
73250         * modules/ssize_t (Include): Add <sys/types.h>.
73251
73252 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73253
73254         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73255         it's not portable and it doesn't work with cross-compiles.
73256         Problem reported by Bruno Haible.  Fix missing-$ typo in
73257         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73258         -zignore from being used with Sun's C compiler.
73259
73260 2006-01-12  Simon Josefsson  <jas@extundo.com>
73261
73262         * lib/base64.c: Fix warning, reported by Bruno Haible
73263         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73264
73265 2006-01-12  Bruno Haible  <bruno@clisp.org>
73266
73267         * modules/ldd: New file.
73268         * build-aux/ldd.sh.in: New file.
73269         * MODULES.html.sh (Support for building libraries and executables): Add
73270         ldd.
73271
73272 2006-01-12  Bruno Haible  <bruno@clisp.org>
73273
73274         * m4/ldd.m4: New file.
73275
73276 2006-01-12  Bruno Haible  <bruno@clisp.org>
73277
73278         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73279         endless loop while replacing $auxdir with build-aux.
73280
73281 2006-01-11  Simon Josefsson  <jas@extundo.com>
73282
73283         * lib/stdint_.h (SIZE_MAX): Add missing (.
73284
73285 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         Sync from coreutils.
73288         * lib/md5.c: Fix commentary typos.
73289         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73290         * lib/md5.h (__attribute__): Remove; unused.
73291         * lib/sha1.c: Fix commentary to match md5 better.
73292         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73293         so that we don't need to worry about alignment.  All uses changed.
73294         This merges the 2005-10-28 md5 change into sha1.
73295
73296 2006-01-11  Jim Meyering  <jim@meyering.net>
73297
73298         Sync from coreutils.
73299         * lib/md5.c (OP): Fix spacing.
73300
73301 2006-01-11  Bruno Haible  <bruno@clisp.org>
73302
73303         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73304         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73305         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73306
73307 2006-01-11  Bruno Haible  <bruno@clisp.org>
73308
73309         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73310         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73311         the "early" section as well.
73312
73313 2006-01-11  Bruno Haible  <bruno@clisp.org>
73314
73315         Avoid "ar: no archive members specified" error on MacOS X.
73316         * gnulib-tool (func_modules_add_dummy): New function.
73317         (func_import, func_create_testdir): Invoke it.
73318
73319 2006-01-11  Bruno Haible  <bruno@clisp.org>
73320
73321         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73322         with $auxdir in AC_CONFIG_FILES statements.
73323
73324 2006-01-11  Bruno Haible  <bruno@clisp.org>
73325
73326         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73327         Initialize also noinst_HEADERS to empty.
73328
73329 2006-01-11  Bruno Haible  <bruno@clisp.org>
73330
73331         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73332         variables.
73333         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73334         autoreconf.
73335
73336 2006-01-11  Bruno Haible  <bruno@clisp.org>
73337
73338         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73339         overridable by the user.
73340         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73341
73342 2006-01-10  Simon Josefsson  <jas@extundo.com>
73343
73344         * modules/sys_socket: New file.
73345
73346 2006-01-10  Simon Josefsson  <jas@extundo.com>
73347
73348         * m4/sys_socket_h.m4: New file.
73349
73350 2006-01-10  Simon Josefsson  <jas@extundo.com>
73351
73352         * lib/socket_.h: New file.
73353
73354 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73355
73356         * modules/readutmp (Maintainer): Add myself.
73357
73358 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73359
73360         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73361         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73362         People who are still concerned with buggy memcmp implementations
73363         can invoke gl_FUNC_MEMCMP themselves.
73364
73365 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73366
73367         * lib/regex_internal.h (BITSET_WORD_BITS):
73368         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73369         preprocessor mishandles large unsigned values as if they were signed.
73370         Problem reported by Claudio Fontana in
73371         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73372
73373 2006-01-10  Jim Meyering  <jim@meyering.net>
73374
73375         Avoid the double-free (first in fts_read, second in fts_close) that
73376         would occur when an `active' directory is made inaccessible (e.g.,
73377         via chmod a-x) during a traversal.
73378         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73379         before returning.  Reproduce this failure by
73380         mkdir -p a/b; cd a; chmod a-x . b
73381         Reported by Stavros Passas.
73382
73383         Sync from coreutils.
73384         * lib/sha1.c: Tweak grammar in a comment.
73385
73386 2006-01-10  Jim Meyering  <jim@meyering.net>
73387
73388         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73389         Patch by Joerg Sonnenberger.
73390
73391 2006-01-10  Bruno Haible  <bruno@clisp.org>
73392
73393         * modules/readutmp: Depend on module free.
73394         * modules/strtok_r: Depend on module restrict.
73395
73396 2006-01-10  Bruno Haible  <bruno@clisp.org>
73397
73398         * modules/gettext (configure.ac): Add an invocation of
73399         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73400
73401 2006-01-10  Bruno Haible  <bruno@clisp.org>
73402
73403         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73404         Reported by Werner Lemberg <wl@gnu.org>.
73405
73406 2006-01-10  Bruno Haible  <bruno@clisp.org>
73407
73408         * lib/localcharset.c: Update from GNU gettext.
73409
73410 2006-01-10  Bruno Haible  <bruno@clisp.org>
73411
73412         * lib/argp.h (__const): Remove macro. Use const instead.
73413         * lib/argp-fmtstream.h (__const): Likewise.
73414         * lib/glob_.h (__const): Remove macro.
73415         * lib/glob-libc.h: Use const instead of __const.
73416
73417 2006-01-10  Bruno Haible  <bruno@clisp.org>
73418
73419         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73420         variable.
73421         Needed to avoid an automake error regarding the 'gettext' module.
73422
73423 2006-01-09  Simon Josefsson  <jas@extundo.com>
73424
73425         * modules/inet_ntop (Depends-on): Add restrict.
73426
73427 2006-01-09  Simon Josefsson  <jas@extundo.com>
73428
73429         * modules/gc-rijndael-tests (License): Put under LGPL.
73430
73431         * modules/gc-des-tests (License): Likewise.
73432
73433         * modules/gc-arcfour-tests (License): Likewise.
73434
73435         * modules/gc-arctwo-tests (License): Likewise.
73436
73437         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73438
73439         * modules/gc-hmac-sha1-tests (Files): Likewise.
73440
73441         * modules/gc-hmac-md5-tests (License): Likewise.
73442
73443         * modules/gc-sha1-tests (License): Likewise.
73444
73445         * modules/gc-md5-tests (License): Likewise.
73446
73447         * modules/gc-md4-tests (License): Likewise.
73448
73449         * modules/gc-md2-tests (License): Likewise.
73450
73451         * modules/gc-tests (License): Likewise.
73452
73453         * modules/des-tests (License): Likewise.
73454
73455         * modules/md4-tests (License): Likewise.
73456
73457         * modules/md2-tests (License): Likewise.
73458
73459 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73460
73461         Sync from coreutils:
73462
73463         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73464         * modules/lib-ignore: New file.
73465         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73466         chdir-safer.m4, lchmod.m4.
73467         * modules/openat: Add mkdirat.c, openat-priv.h.
73468
73469 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73470
73471         Sync from coreutils.
73472         * m4/lib-ignore.m4: New file.
73473         * m4/lchmod.m4: New file.
73474
73475 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73476
73477         Sync from coreutils.
73478         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73479         for write access: POSIX says that must fail.
73480         * lib/fts.c (diropen): Likewise.
73481         * lib/save-cwd.c (save_cwd): Likewise.
73482         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73483         well, for minor improvements on hosts that lack O_DIRECTORY.
73484         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73485         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73486         Fall back on chown if open failed with EACCES.
73487
73488         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73489         Report an error at compile-time if only a 1-second nominal clock
73490         resolution is found.
73491
73492         * lib/lchmod.h: New file.
73493         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73494         (make_dir_parents): Use lchown rather than chown, and
73495         lchmod rather than chmod.
73496
73497         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73498         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73499         "proc" reported by n0dalus.
73500
73501         * lib/mountlist.c: Include <limits.h>.
73502         (dev_from_mount_options)
73503         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73504         New function.  It no longer assumes "dev=" has the System V meaning
73505         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73506         (read_file_system_list)
73507         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73508         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73509         dev= in that case.
73510
73511         * lib/posixtm.h (PDS_PRE_2000): New macro.
73512         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73513         allow_century.  All usages changed.  Reject dates outside the range
73514         1969-1999 if PDS_PRE_2000 is used.
73515
73516 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73517
73518         Sync from coreutils.
73519         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73520         (Time of day items): Mention the possibility of leap seconds.
73521         Problem reported by Dr. David Alan Gilbert.
73522
73523 2006-01-09  Jim Meyering  <jim@meyering.net>
73524
73525         Sync from coreutils.
73526
73527         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73528
73529         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73530
73531         * lib/modechange.c (mode_compile): Reject an invalid mode string
73532         that starts with an octal digit.  From Andreas Gruenbacher.
73533
73534         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73535         and dup to open_safer and dup_safer, respectively.
73536         (openat_permissive): Fix typo in comment.
73537
73538         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73539         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73540         (_): Remove; no longer needed.
73541         (openat): Renamed from rpl_openat; no need for rpl_openat
73542         since openat.h renames openat for us.
73543         Replace most of the body with a call to openat_permissive,
73544         to avoid duplicate code.
73545         Port to (probably hypothetical) environments were mode_t is
73546         wider than int.
73547         (openat_permissive): Require mode arg, so that we can check
73548         types better.  Put it just after flags.  Change cwd failure
73549         indicator from pointer-to-bool to pointer-to-errno-value.
73550         All callers changed.
73551         Invoke openat_save_fail and/or openat_restore_fail if
73552         cwd_errno is null, so that openat can call us.
73553         (openat_permissive, fdopendir, fstatat, unlinkat):
73554         Simplify errno handling to avoid some duplicate code,
73555         as it's OK to set errno on success.
73556         * lib/openat.h: Revamp code so that function macros depend on
73557         __OPENAT_PREFIX only, not also on AT_FDCWD.
73558         (openat_ro): Remove.  Caller changed to use openat_permissive.
73559         (openat_permissive): Now a macro, if not a function.
73560         (openat_restore_fail, openat_save_fail): Now always functions,
73561         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73562
73563         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73564         and openat.c.
73565         * lib/mkdirat.c: Include openat-priv.h.
73566         Remove definitions of macros defined therein.
73567         * lib/openat.c: Likewise.
73568
73569         * lib/mkdirat.c (mkdirat): New file and function.
73570         * lib/openat.h (mkdirat): Declare.
73571
73572         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73573
73574         * lib/openat.h (openat_permissive): Declare.
73575         (openat_ro): Define.
73576
73577         * lib/openat.c (EXPECTED_ERRNO): New macro.
73578         (openat_permissive): New function -- used in remove.c rewrite.
73579         (all functions): Set errno just before returning, only if there
73580         was an actual failure.
73581         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73582
73583         Emulate openat-family functions using Linux's procfs, if possible.
73584         Idea and some code based on Ulrich Drepper's glibc changes.
73585
73586         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73587         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73588         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73589         before falling back on save_cwd and restore_cwd.
73590         (fdopendir, fstatat, unlinkat): Likewise.
73591
73592         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73593         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73594
73595         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73596         as second argument to va_arg.  Otherwise, some versions of gcc
73597         warn that `if this code is reached, the program will abort'.
73598
73599 2006-01-09  Jim Meyering  <jim@meyering.net>
73600
73601         Sync from coreutils.
73602         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73603         Require openat-priv.h.
73604
73605 2006-01-09  Bruno Haible  <bruno@clisp.org>
73606
73607         * modules/strnlen (Include): Use strnlen.h.
73608
73609 2006-01-09  Bruno Haible  <bruno@clisp.org>
73610
73611         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73612
73613 2006-01-09  Bruno Haible  <bruno@clisp.org>
73614
73615         * lib/sysexit_.h (EX_OK): New macro.
73616         Suggested by Martin Lambers <marlam@marlam.de>.
73617
73618 2006-01-09  Bruno Haible  <bruno@clisp.org>
73619
73620         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73621         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73622
73623 2006-01-09  Bruno Haible  <bruno@clisp.org>
73624
73625         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73626         numbers.
73627
73628 2006-01-09  Bruno Haible  <bruno@clisp.org>
73629
73630         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73631         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73632         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73633         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73634
73635 2006-01-09  Bruno Haible  <bruno@clisp.org>
73636
73637         * build-aux/javacomp.sh.in: New file, moved from lib/.
73638         * modules/javacomp-script (Files): Update.
73639         (configure.ac): Add AC_CONFIG_FILES invocation.
73640         (EXTRA_DIST): Remove variable.
73641
73642         * build-aux/javaexec.sh.in: New file, moved from lib/.
73643         * modules/javaexec (Files): Update.
73644         (configure.ac): Add AC_CONFIG_FILES invocation.
73645         (EXTRA_DIST): Remove javaexec.sh.in.
73646
73647         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73648         * modules/csharpcomp-script (Files): Update.
73649         (configure.ac): Add AC_CONFIG_FILES invocation.
73650         (EXTRA_DIST): Remove variable.
73651
73652         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73653         * modules/csharpexec (Files): Update.
73654         (configure.ac): Add AC_CONFIG_FILES invocation.
73655         (EXTRA_DIST): Remove csharpexec.sh.in.
73656
73657 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73658
73659         Sync from coreutils.
73660
73661         Add POSIX ACL support
73662         * lib/acl.h (copy_acl, set_acl): Add declarations.
73663         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73664         systems other than Linux.
73665         (chmod_or_fchmod): New function: use fchmod when possible,
73666         and chmod otherwise.
73667         (file_has_acl): Add a POSIX ACL implementation, with a
73668         Linux-specific subcase.
73669         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73670         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73671         acls are unsupported.
73672         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73673         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73674         are unsupported.
73675
73676 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73677
73678         Sync from coreutils.
73679         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73680
73681 2006-01-07  Bruno Haible  <bruno@clisp.org>
73682
73683         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73684         gl_EARLY.
73685
73686 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73687
73688         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73689         Problem reported for Mingw by Mark Junker.
73690
73691 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73692
73693         * README: Gnulib normally doesn't generate a tarball.
73694
73695 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73696
73697         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73698         long int, not int, for nanosecond counts, so that people who are
73699         used to POSIX struct timespec won't be surprised.  Reported by Jim
73700         Meyering.
73701
73702 2005-12-28  Bruno Haible  <bruno@clisp.org>
73703
73704         * build-aux/config.rpath: Update from GNU gettext.
73705
73706 2005-12-16  Jim Meyering  <jim@meyering.net>
73707
73708         * modules/fprintftime: New module.
73709         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73710
73711 2005-12-16  Jim Meyering  <jim@meyering.net>
73712
73713         * m4/fprintftime.m4: New file.
73714
73715 2005-12-16  Jim Meyering  <jim@meyering.net>
73716
73717         * lib/fprintftime.c, lib/fprintftime.h: New files.
73718
73719 2005-12-15  Simon Josefsson  <jas@extundo.com>
73720
73721         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73722         new m4/socklen.m4.
73723
73724 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73725
73726         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73727         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73728
73729 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73730
73731         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73732         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73733         struct uparams is valid. Fall back to the default values if it is
73734         not.
73735
73736 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73737
73738         * modules/argp (Files): Add argp-pin.c
73739         (Depends-on): dirname
73740         (lib_SOURCES): Add argp-pin.c
73741
73742 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73743
73744         * m4/argp.m4:  Check if program_invocation_name and
73745         program_invocation_short_name are declared and define appropriate
73746         macros if they are not.
73747
73748 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73749
73750         * lib/argp-help.c (__argp_base_name): New function
73751         (__argp_short_program_name): Rewrite using __argp_base_name
73752         * lib/argp-namefrob.h: Define program_invocation_name and
73753         program_invocation_short_name if requested
73754         (__argp_base_name): Add prototype
73755         * lib/argp-parse.c (argp_def): Use gettext wrappers
73756         (argp_default_parser): Use __argp_base_name
73757         * lib/argp-pin.c: New file. Defines program_invocation_name and
73758         program_invocation_short_name on systems that lack them.
73759
73760 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73761
73762         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73763         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73764         porting problem reported by Georg Schwarz in
73765         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73766
73767 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73770         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73771         porting problem reported by Georg Schwarz in
73772         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73773
73774 2005-12-05  Bruno Haible  <bruno@clisp.org>
73775
73776         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73777         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73778         Reported by Mark Junker <mjscod@gmx.de>.
73779
73780 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73781
73782         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73783         Use implementation from Albert Chin, with some
73784         comments/corrections by Stepan Kasal and myself.
73785
73786 2005-12-02  Bruno Haible  <bruno@clisp.org>
73787
73788         * gnulib-tool (func_import): Accept GPLed build tool modules when
73789         --lgpl is given.
73790         * modules/csharpcomp-script: New file.
73791         * modules/csharpcomp: Depend on it.
73792         * modules/javacomp-script: New file.
73793         * modules/javacomp: Depend on it.
73794         Suggested by Simon Josefsson.
73795
73796 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73799         statement, to work around an HP-UX 10.20 compiler bug reported by
73800         Peter O'Gorman.
73801
73802 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73803
73804         * modules/savedir (Depends-on): Add openat.
73805
73806 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73807
73808         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73809         (uintmax_t) [defined uintmax_t]: Do not declare.
73810         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73811         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73812         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73813         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73814         sake of portability to weird hosts that C allows (though we don't
73815         know of any practical examples).
73816
73817         * lib/savedir.h (fdsavedir): New decl.
73818         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73819         contains most of the former guts of savedir.
73820         (savedir): Use savedirstream.
73821         Include "openat.h".
73822
73823 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         * modules/obstack (Files): Add m4/ulonglong.m4.
73826         Problem reported by Davide Angelocola.
73827
73828 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73829
73830         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73831         coreutils no longer futzes with rounding modes.
73832
73833 2005-11-14  Jim Meyering  <jim@meyering.net>
73834
73835         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73836         replacement of mkstemp.
73837
73838 2005-11-10  Simon Josefsson  <jas@extundo.com>
73839
73840         * lib/readline.c: Remove EOL.
73841
73842 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73843
73844         * modules/gethrxtime (Depends-on): Add gettime.
73845
73846 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73847
73848         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73849         or gettimeofday; no longer needed.
73850
73851 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73852
73853         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73854         time business.
73855         (gethrxtime) [! (HAVE_NANOUPTIME
73856         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73857         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73858         our own approximation.
73859
73860 2005-11-08  Eric Blake  <ebb9@byu.net>
73861
73862         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73863
73864 2005-11-08  Eric Blake  <ebb9@byu.net>
73865
73866         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73867
73868 2005-11-04  Bruno Haible  <bruno@clisp.org>
73869
73870         * gnulib-tool: Implement --update mode.
73871
73872 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         Fix porting problem reported by Theodoros V. Kalamatianos.
73875         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73876         Don't assume that futimes failing means we must fail.
73877
73878 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73879
73880         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73881         variables to suggest the intended function of the PATH_MAX check.
73882
73883 2005-10-30  Kean Johnston  <jkj@sco.com>
73884
73885         Trivial changes to support SCO systems.
73886         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73887         as PATH_MAX.
73888         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73889         where __ptr is null when no I/O is pending.
73890
73891 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73894         leave errno alone.  Problem reported by Dmitry V. Levin.
73895
73896 2005-10-28  Simon Josefsson  <jas@extundo.com>
73897
73898         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73899         Test more.
73900
73901         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73902
73903         * modules/md2, modules/md2-tests: New files.
73904
73905 2005-10-28  Simon Josefsson  <jas@extundo.com>
73906
73907         * m4/inet_ntop.m4: More tests.
73908
73909         * m4/gc-md2.m4, md2.m4: New file.
73910
73911 2005-10-28  Simon Josefsson  <jas@extundo.com>
73912
73913         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73914         "restrict" keywords, as per POSIX.  Protect the function
73915         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73916         Don't use K&R prototypes.  Check the sprintf return values.
73917         Re-define EAFNOSUPPORT if not present.  Indent.
73918
73919         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73920         suggested by Bruno Haible <bruno@clisp.org>.
73921
73922         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73923
73924         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73925
73926         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73927         libgcrypt).
73928
73929         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
73930
73931         * lib/md2.h, lib/md2.c: New files.
73932
73933 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
73936         errno alone.  Problem reported by Frederic Jolliton.
73937
73938 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * modules/verify (License): Change from GPL to LGPL.  This is a
73941         tiny module and there are apparently near-equivalents that are
73942         under the BSD license.
73943
73944 2005-10-24  Simon Josefsson  <jas@extundo.com>
73945
73946         * modules/sha1: Relicense to LGPL.
73947
73948 2005-10-24  Simon Josefsson  <jas@extundo.com>
73949
73950         * lib/md4.h: Shrink buffer size, now that we changed the type.
73951
73952 2005-10-23  Simon Josefsson  <jas@extundo.com>
73953
73954         * gnulib-tool (func_import): Fix --tests-base.
73955
73956 2005-10-22  Simon Josefsson  <jas@extundo.com>
73957
73958         * modules/arcfour (Depends-on): Need stdint.
73959
73960 2005-10-22  Simon Josefsson  <jas@extundo.com>
73961
73962         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
73963         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
73964
73965 2005-10-22  Simon Josefsson  <jas@extundo.com>
73966
73967         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
73968         suggested by Bruno Haible <bruno@clisp.org>.
73969
73970 2005-10-22  Simon Josefsson  <jas@extundo.com>
73971
73972         * lib/crc.h: Include stddef.h, for size_t.
73973
73974 2005-10-22  Simon Josefsson  <jas@extundo.com>
73975
73976         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
73977         arcfour_context struct (simplify test vector testing in GNU
73978         Shishi).
73979
73980 2005-10-21  Simon Josefsson  <jas@extundo.com>
73981
73982         * modules/des, modules/des-tests: New files.
73983
73984         * modules/gc-des, modules/gc-des-tests: New files.
73985
73986         * tests/test-des.c, tests/test-gc-des.c: New file.
73987
73988 2005-10-21  Simon Josefsson  <jas@extundo.com>
73989
73990         * modules/arctwo, modules/arctwo-tests: New files.
73991
73992         * tests/test-arctwo.c: New file.
73993
73994         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
73995
73996         * tests/test-gc-arctwo.c: New file.
73997
73998 2005-10-21  Simon Josefsson  <jas@extundo.com>
73999
74000         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74001         Bruno Haible <bruno@clisp.org>.
74002
74003         * m4/gc-des.m4: New file.
74004
74005 2005-10-21  Simon Josefsson  <jas@extundo.com>
74006
74007         * m4/arctwo.m4: New file.
74008
74009         * m4/gc-arctwo.m4: New file.
74010
74011 2005-10-21  Simon Josefsson  <jas@extundo.com>
74012
74013         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74014         block.
74015
74016 2005-10-21  Simon Josefsson  <jas@extundo.com>
74017
74018         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74019         <bruno@clisp.org>.
74020
74021         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74022
74023         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74024         Bruno Haible <bruno@clisp.org>.
74025
74026         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74027         <bruno@clisp.org>.
74028
74029 2005-10-21  Simon Josefsson  <jas@extundo.com>
74030
74031         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74032
74033 2005-10-21  Simon Josefsson  <jas@extundo.com>
74034
74035         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74036
74037 2005-10-21  Simon Josefsson  <jas@extundo.com>
74038
74039         * lib/des.h, lib/des.c: New files.
74040
74041         * lib/gc-gnulib.c: Support DES.c
74042
74043 2005-10-21  Simon Josefsson  <jas@extundo.com>
74044
74045         * lib/arctwo.h, lib/arctwo.c: New files.
74046
74047         * lib/gc-gnulib.c: Support ARCTWO.
74048
74049 2005-10-21  Simon Josefsson  <jas@extundo.com>
74050
74051         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74052         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74053
74054 2005-10-21  Simon Josefsson  <jas@extundo.com>
74055
74056         * gnulib-tool (func_import, func_create_testdir): Define automake
74057         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74058         Makefile.am snippet),
74059         suggested by Bruno Haible <bruno@clisp.org>.
74060
74061         * modules/gc (Makefile.am): Use it.
74062
74063 2005-10-21  Bruno Haible  <bruno@clisp.org>
74064
74065         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74066         patch.
74067
74068 2005-10-19  Simon Josefsson  <jas@extundo.com>
74069
74070         * tests/test-gc-rijndael.c: New file.
74071
74072         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74073
74074 2005-10-19  Simon Josefsson  <jas@extundo.com>
74075
74076         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74077         interface too.
74078
74079 2005-10-19  Simon Josefsson  <jas@extundo.com>
74080
74081         * tests/test-gc-arcfour.c: New file.
74082
74083         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74084
74085 2005-10-19  Simon Josefsson  <jas@extundo.com>
74086
74087         * modules/gc-md4, modules/gc-md4-tests: New file.
74088
74089         * tests/test-gc-md4.c: New file.
74090
74091 2005-10-19  Simon Josefsson  <jas@extundo.com>
74092
74093         * m4/gc-md4.m4: New file.
74094
74095 2005-10-19  Simon Josefsson  <jas@extundo.com>
74096
74097         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74098         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74099         <kasal@ucw.cz>.
74100
74101 2005-10-19  Simon Josefsson  <jas@extundo.com>
74102
74103         * m4/gc-arcfour.m4: New file.
74104
74105         * m4/gc-rijndael.m4: New file.
74106
74107 2005-10-19  Simon Josefsson  <jas@extundo.com>
74108
74109         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74110
74111 2005-10-19  Simon Josefsson  <jas@extundo.com>
74112
74113         * lib/gc-gnulib.c: Support ARCFOUR.
74114
74115 2005-10-19  Simon Josefsson  <jas@extundo.com>
74116
74117         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74118         support.
74119
74120         * lib/gc.h: Add ECB enum type.
74121
74122         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74123
74124 2005-10-18  Simon Josefsson  <jas@extundo.com>
74125
74126         * tests/test-md5.c: New file.
74127
74128         * modules/md5-tests: New file.
74129
74130 2005-10-18  Simon Josefsson  <jas@extundo.com>
74131
74132         * tests/test-md4.c: New file.
74133
74134         * modules/md4, modules/md4-tests: New files.
74135
74136 2005-10-18  Simon Josefsson  <jas@extundo.com>
74137
74138         * m4/md4.m4: New file.
74139
74140 2005-10-18  Simon Josefsson  <jas@extundo.com>
74141
74142         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74143
74144 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74145
74146         * gnulib-tool (func_create_testdir): Omit the second check whether
74147         BUILT_SOURCES in nonempty.
74148
74149 2005-10-17  Simon Josefsson  <jas@extundo.com>
74150
74151         * tests/test-rijndael.c: New file.
74152
74153 2005-10-17  Simon Josefsson  <jas@extundo.com>
74154
74155         * modules/sha1: Depend on stdint instead of md5.
74156
74157         * modules/md5: Depend on stdint, remove uint32_t.
74158
74159 2005-10-17  Simon Josefsson  <jas@extundo.com>
74160
74161         * modules/gc-sha1-tests: New file.
74162
74163         * tests/test-gc-sha1.c: New file.
74164
74165 2005-10-17  Simon Josefsson  <jas@extundo.com>
74166
74167         * m4/md5.m4: Remove call to uint32_t.m4.
74168
74169 2005-10-17  Simon Josefsson  <jas@extundo.com>
74170
74171         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74172
74173         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74174         md5.h.
74175
74176         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74177
74178         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74179
74180 2005-10-17  Simon Josefsson  <jas@extundo.com>
74181
74182         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74183
74184 2005-10-17  Simon Josefsson  <jas@extundo.com>
74185
74186         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74187
74188 2005-10-17  Simon Josefsson  <jas@extundo.com>
74189
74190         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74191
74192         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74193
74194 2005-10-17  Bruno Haible  <bruno@clisp.org>
74195
74196         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74197         that it can also be used in a test.
74198
74199 2005-10-16  Bruno Haible  <bruno@clisp.org>
74200
74201         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74202         TESTS_ENVIRONMENT, so that individual tests can augment it.
74203
74204         * gnulib-tool (func_create_testdir): Use an intermediate target for
74205         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74206         macros, like $(ALLOCA_H), which cannot be passed through the command
74207         line.
74208
74209 2005-10-15  Simon Josefsson  <jas@extundo.com>
74210
74211         * modules/rijndael-tests: New file.
74212
74213         * modules/rijndael: New file.
74214
74215 2005-10-15  Simon Josefsson  <jas@extundo.com>
74216
74217         * m4/rijndael.m4: New file.
74218
74219 2005-10-15  Simon Josefsson  <jas@extundo.com>
74220
74221         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74222
74223         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74224
74225 2005-10-14  Simon Josefsson  <jas@extundo.com>
74226
74227         * tests/test-arcfour.c: New file.
74228
74229         * modules/arcfour, modules/arcfour-tests: New files.
74230
74231 2005-10-14  Simon Josefsson  <jas@extundo.com>
74232
74233         * m4/arcfour.m4: New file.
74234
74235 2005-10-14  Simon Josefsson  <jas@extundo.com>
74236
74237         * lib/arcfour.h, lib/arcfour.c: New files.
74238
74239 2005-10-14  Roland McGrath  <roland@redhat.com>
74240
74241         Import from libc.  [BZ #1331]
74242         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74243         macro argument.
74244         Reported by Matej Vela <vela@debian.org>.
74245
74246 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74247
74248         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74249         include <wchar.h>; no longer needed.
74250
74251 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74252
74253         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74254
74255 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74256         and  Ulrich Drepper  <drepper@redhat.com>
74257
74258         Import from libc.
74259         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74260         instead of inline stream orientation test and two separate
74261         function calls.  Pay no attention to USE_IN_LIBIO.
74262
74263 2005-10-13  Simon Josefsson  <jas@extundo.com>
74264
74265         * modules/gc-hmac-md5-tests: New file.
74266
74267         * tests/test-gc-hmac-sha1.c: New file.
74268
74269         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74270
74271         * modules/gc-hmac-md5-tests: New file.
74272
74273         * tests/test-gc-md5.c: New file.
74274
74275         * modules/gc-md5-tests: New file.
74276
74277 2005-10-13  Simon Josefsson  <jas@extundo.com>
74278
74279         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74280         Move memory allocation outside of loop.
74281
74282 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74285         intermediate directory is in a read-only file system.  Problem
74286         reported by Eric Blake.
74287
74288 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74289
74290         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74291
74292 2005-10-12  Simon Josefsson  <jas@extundo.com>
74293
74294         * tests/test-hmac-sha1.c: New file.
74295
74296         * modules/hmac-sha1-tests: New file.
74297
74298         * modules/hmac-sha1: New file.
74299
74300 2005-10-12  Simon Josefsson  <jas@extundo.com>
74301
74302         * modules/gc-sha1: New file.
74303
74304 2005-10-12  Simon Josefsson  <jas@extundo.com>
74305
74306         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74307
74308         * tests/test-gc-pbkdf2-sha1.c: New file.
74309
74310 2005-10-12  Simon Josefsson  <jas@extundo.com>
74311
74312         * modules/gc-md5, modules/gc-hmac-md5: New files.
74313
74314         * modules/gc (Files): Remove md5, memxor and hmac files.
74315
74316 2005-10-12  Simon Josefsson  <jas@extundo.com>
74317
74318         * m4/gc-pbkdf2-sha1.m4: New file.
74319
74320         * m4/gc-hmac-sha1.m4: New file.
74321
74322         * m4/gc-sha1: New file.
74323
74324         * m4/hmac-sha1.m4: New file.
74325
74326 2005-10-12  Simon Josefsson  <jas@extundo.com>
74327
74328         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74329
74330         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74331
74332 2005-10-12  Simon Josefsson  <jas@extundo.com>
74333
74334         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74335         suggested by Bruno Haible <bruno@clisp.org>.
74336
74337 2005-10-12  Simon Josefsson  <jas@extundo.com>
74338
74339         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74340
74341 2005-10-12  Simon Josefsson  <jas@extundo.com>
74342
74343         * lib/gc-pbkdf2-sha1.c: New file.
74344
74345         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74346
74347 2005-10-12  Simon Josefsson  <jas@extundo.com>
74348
74349         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74350
74351         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74352
74353 2005-10-12  Simon Josefsson  <jas@extundo.com>
74354
74355         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74356         GC_USE_HMAC_MD5, respectively.
74357
74358         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74359         (gc_md5): Fix typo.
74360
74361         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74362
74363         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74364
74365         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74366
74367 2005-10-12  Bruno Haible  <bruno@clisp.org>
74368
74369         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74370         Reported by Stepan Kasal <kasal@ucw.cz>.
74371
74372 2005-10-11  Simon Josefsson  <jas@extundo.com>
74373
74374         * tests/test-crc.c: New file.
74375
74376         * modules/crc, modules/crc-tests: New files.
74377
74378 2005-10-11  Simon Josefsson  <jas@extundo.com>
74379
74380         * m4/crc.m4: New file.
74381
74382 2005-10-11  Simon Josefsson  <jas@extundo.com>
74383
74384         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74385
74386         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74387
74388         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74389
74390 2005-10-11  Simon Josefsson  <jas@extundo.com>
74391
74392         * lib/crc.h, lib/crc.c: New files.
74393
74394         * lib/gc.h (gc_hash_buffer): Add doc.
74395
74396 2005-10-11  Bruno Haible  <bruno@clisp.org>
74397
74398         * modules/c-strcasestr: New file.
74399         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74400
74401 2005-10-11  Bruno Haible  <bruno@clisp.org>
74402
74403         * modules/c-strcase: New file.
74404         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74405
74406 2005-10-11  Bruno Haible  <bruno@clisp.org>
74407
74408         * lib/strcasecmp.c: Include limits.h.
74409         (strcasecmp): Avoid integer overflow on exotic platforms.
74410         * lib/strncasecmp.c: Include limits.h.
74411         (strncasecmp): Avoid integer overflow on exotic platforms.
74412         Reported by Paul Eggert.
74413
74414 2005-10-11  Bruno Haible  <bruno@clisp.org>
74415
74416         * lib/c-strcasestr.h: New file, from GNU gettext.
74417         * lib/c-strcasestr.c: New file, from GNU gettext.
74418
74419 2005-10-11  Bruno Haible  <bruno@clisp.org>
74420
74421         * lib/c-strcase.h: New file, from GNU gettext.
74422         * lib/c-strcasecmp.c: New file, from GNU gettext.
74423         * lib/c-strncasecmp.c: New file, from GNU gettext.
74424
74425 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         * modules/mempcpy (License): GPL -> LGPL.
74428         * modules/strchrnul (License): Likewise.
74429         * modules/sysexits (License): Likewise.
74430
74431 2005-10-08  Simon Josefsson  <jas@extundo.com>
74432
74433         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74434
74435 2005-10-07  Simon Josefsson  <jas@extundo.com>
74436
74437         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74438
74439 2005-10-06  Simon Josefsson  <jas@extundo.com>
74440
74441         * tests/test-hmac-md5.c: New file.
74442
74443         * modules/hmac-md5-tests: New file.
74444
74445         * modules/hmac-md5: New file.
74446
74447 2005-10-06  Simon Josefsson  <jas@extundo.com>
74448
74449         * m4/hmac-md5.m4: New file.
74450
74451         * m4/memxor.m4: Require gl_C_RESTRICT.
74452
74453 2005-10-06  Simon Josefsson  <jas@extundo.com>
74454
74455         * lib/memxor.c (memxor): Avoid casts and warnings.
74456
74457 2005-10-06  Simon Josefsson  <jas@extundo.com>
74458
74459         * lib/hmac-md5.c: New file.
74460
74461         * lib/hmac.h: New file.
74462
74463 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74466         promotes to int, not unsigned int, to catch the AIX 5.3
74467         compiler bug.
74468
74469 2005-10-05  Simon Josefsson  <jas@extundo.com>
74470
74471         * modules/memxor: New file.
74472
74473         * modules/iconv (Files): Move config.rpath to havelib, it is used
74474         there.
74475
74476         * modules/havelib (Files): Add config.rpath.
74477
74478 2005-10-05  Simon Josefsson  <jas@extundo.com>
74479
74480         * m4/memxor.m4: New file.
74481
74482 2005-10-05  Simon Josefsson  <jas@extundo.com>
74483
74484         * lib/memxor.c (memxor): Fix compiler error.
74485
74486         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74487         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74488
74489         * lib/memxor.h, lib/memxor.c: New files.
74490
74491         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74492         we assume all systems have it, suggested by Jim Meyering
74493         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74494         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74495         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74496         same reasons.
74497
74498 2005-10-05  Simon Josefsson  <jas@extundo.com>
74499
74500         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74501
74502 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74505         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74506         needed, since the source code now assumes these .h files.
74507
74508 2005-10-05  Derek Price  <derek@ximbiot.com>
74509
74510         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74511
74512 2005-10-05  Bruno Haible  <bruno@clisp.org>
74513
74514         * modules/stdint (License): Change to LGPL.
74515
74516 2005-10-04  Simon Josefsson  <jas@extundo.com>
74517
74518         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74519         D. Baushke" <mdb@gnu.org>.
74520
74521 2005-10-04  Bruno Haible  <bruno@clisp.org>
74522
74523         * lib/verify.h (verify_true): Provide alternative definition for C++.
74524
74525 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74526
74527         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74528         (SSIZE_MAX): New macro, if not already defined.
74529         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74530         than 2 GiB.
74531
74532 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74533
74534         Sync from coreutils.
74535         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74536         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74537         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74538         ULLONG_MAX doesn't work with 2.7.2.1.
74539
74540 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74543         From Ben Pfaff.
74544
74545         * modules/exclude (Depends-on): Depend on verify.
74546         * modules/strtoimax (Depends-on): Likewise.
74547         * modules/utimecmp (Depends-on): Likewise.
74548
74549 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74550
74551         * lib/exclude.c: Include verify.h.
74552         (verify): Remove.  All callers changed to use verify.h's version.
74553         * lib/strtoimax.c: Likewise.
74554         * lib/utimecmp.c: Likewis.e
74555
74556         Sync from coreutils.
74557         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74558         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74559         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74560         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74561         bother returning ENOSYS if settimeofday or stime fails; just let
74562         them return whatever errno they want to return.
74563         * lib/utimens.c: Include unistd.h, for dup2.
74564         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74565         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74566
74567 2005-10-02  Jim Meyering  <jim@meyering.net>
74568
74569         Sync from coreutils.
74570         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74571         from glibc-2.2.5 that fails for read-only files.
74572
74573 2005-10-02  Jim Meyering  <jim@meyering.net>
74574
74575         Sync from coreutils.
74576         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74577         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74578         `#if HAVE_CONFIG_H'.
74579         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74580         Remove AT_FDCWD test.
74581         Do not consume the fd unless successful.
74582         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74583         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74584         block, so that we don't even try to compile it if settimeofday is
74585         available.  This works around a compilation failure on OSF1 V5.1,
74586         due to stime requiring a `long int*' while tv_sec is `int'.
74587
74588 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74589
74590         Sync from coreutils.
74591         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74592         against `yes', rather than just testing for nonempty.
74593
74594 2005-10-01  Simon Josefsson  <jas@extundo.com>
74595
74596         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74597         and Darwin.
74598
74599         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74600         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74601         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74602         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74603         Check if struct addrinfo is declared.
74604
74605 2005-10-01  Simon Josefsson  <jas@extundo.com>
74606
74607         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74608         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74609         AI_* and EAI_* definitions.  Protect function declarations.
74610
74611 2005-10-01  Jim Meyering  <jim@meyering.net>
74612
74613         Sync from coreutils.
74614
74615         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74616         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74617         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74618         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74619         in the inet and nsl libraries.  Required on Solaris 5.7.
74620
74621 2005-10-01  Jim Meyering  <jim@meyering.net>
74622
74623         Sync from coreutils.
74624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74625         in the inet and nsl libraries.  Required on Solaris 5.7.
74626
74627 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74628
74629         * lib/getdelim.c (getdelim): Remove unused variables.
74630
74631 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74632
74633         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74634         so that the code works even with ancient cpp.  Portability problem
74635         with GCC 2.7.2.1 reported by Thomas M.Ott.
74636
74637 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         * modules/regex (Depends-on): Add strcase.
74640
74641         * modules/gethostname (Licence): Change from GPL to LGPL, since
74642         gethostname.c is a trivial implementation of a standard library
74643         function.
74644         * modules/poll (License): Change from GPL to LGPL, since it's
74645         derived from LGPL code.
74646
74647 2005-09-27  Jim Meyering  <jim@meyering.net>
74648
74649         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74650         HAVE_CONFIG_H.
74651
74652         * lib/intprops.h (signed_type_or_expr__): Define.
74653         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74654         for unsigned types.
74655
74656 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74657
74658         * lib/verify.h (verify_expr): Remove, replacing with:
74659         (verify_true): New macro that returns true instead of void.
74660         (verify_type__): Remove.
74661         (verify): Use verify_true rather than verify_type__.
74662
74663 2005-09-26  Bruno Haible  <bruno@clisp.org>
74664
74665         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74666         is necessary.
74667         (lib_SOURCES): Remove mbchar.c.
74668         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74669         (Files): Add m4/mbrtowc.m4.
74670         * modules/mbiter: Likewise.
74671         * modules/mbuiter: Likewise.
74672
74673 2005-09-26  Bruno Haible  <bruno@clisp.org>
74674
74675         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74676         compile mbchar.c if they are not both present.
74677         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74678         * m4/mbiter.m4 (gl_MBITER): Likewise.
74679         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74680         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74681         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74682
74683 2005-09-25  Jim Meyering  <jim@meyering.net>
74684
74685         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74686         also uses socklen_t.
74687
74688 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74689
74690         * lib/utimens.c (ENOSYS): Define if not already defined.
74691         (futimens): Support having a null PATH if the file descriptor
74692         is nonnegative.
74693
74694         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74695         Remove.
74696         (__attribute): Define to empty unless GCC 3.1 or later.
74697         This works around a core dump on OpenBSD 3.4, which has GCC
74698         2.95.3, which dumps core when given __attribute__(()).  It also
74699         simplifies other tests, since we really don't want to bother with
74700         worrying about which ancient version of GCC supported what.
74701         Original problem reported by Yoann Vandoorselaere, with part of
74702         the fix suggested by Derek Price.
74703
74704 2005-09-24  Jim Meyering  <jim@meyering.net>
74705
74706         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74707         so we can once again use a positive bitfield width of 1 -- now we
74708         don't have to explain why we were using a bitfield width of 2.
74709
74710 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74711
74712         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74713         and similarly for the other external symbols.  Problem reported
74714         by James Gallager.
74715
74716         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74717         bug reported by Jim Meyering.
74718
74719         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74720         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74721         not needed, since socklen is a prerequisite module.
74722
74723 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74724
74725         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74726         Problem reported by Eric Blake.
74727         (getaddrinfo): Initialize se so that it's not garbage.
74728         Redo internal storage allocation so that it doesn't make unportable
74729         assumptions about alignment.
74730         Fix a memory leak.
74731
74732         * lib/utimens.c (futimens): Use futimesat if available.
74733         Prefer it to futimes since it doesn't have the futimes bug.
74734
74735         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74736         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74737         Instead, declare a function that returns a pointer to an array,
74738         and use verify_type__ to declare the size of the array.
74739         Problem and germ of a solution reported by Bruno Haible.
74740         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74741         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74742
74743 2005-09-23  Jim Meyering  <jim@meyering.net>
74744
74745         Sync from coreutils.
74746         Correct build failure (socklen_t not defined) on at least
74747         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74748         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74749
74750 2005-09-23  Jim Meyering  <jim@meyering.net>
74751
74752         * modules/getaddrinfo (Depends-on): Add socklen.
74753
74754 2005-09-23  Bruno Haible  <bruno@clisp.org>
74755
74756         * tests/test-verify.c: New file.
74757
74758 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         Sync from coreutils.
74761
74762         * modules/argmatch (Depends-on): Add verify.
74763         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74764         unistd-safer.
74765         * modules/save-cwd (Depends-on): Likewise.
74766
74767         * modules/openat (Files): Add lib/openat-die.c.
74768         (Depends-on): Remove error, exitfail.
74769         Add dirname.
74770
74771         * modules/verify: New file.
74772         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74773         with "verify" module.
74774
74775 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         Sync from coreutils.
74778
74779         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74780         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74781         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74782         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74783         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74784         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74785         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74786         Don't bother checking for string.h, stdlib.h, unistd.h.
74787         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74788         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74789         module's job.
74790         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74791         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74792
74793         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74794         (gl_GETDATE): Use it.
74795
74796         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74797
74798 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74799
74800         Sync from coreutils.
74801
74802         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74803         stat-time.h.
74804         * lib/argmatch.h: Include verify.h
74805         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74806         (ARGMATCH_ASSERT): Remove; unused.
74807         * lib/canonicalize.c: Assume STDC_HEADERS.
74808         * lib/exclude.c: Include "strcase.h".
74809         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74810         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74811         and stdio-safer.h.
74812         (getusershell): Call fopen, not fopen_safer.
74813         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74814         Do not include unistd-safer.h.
74815         (save_cwd): Don't call fd_safer; no longer needed
74816         now that we include fcntl--.h.
74817
74818         * lib/getdate.y (relative_time): New type.
74819         (RELATIVE_TIME_0): New constant.
74820         (parser_control): Use relative_time instead of doing it ourselves.
74821         (%union): Add new relative_time rel member.
74822         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74823         Now typeless.
74824         (relunit, relunit_snumber): Now of type rel.
74825         (zone, rel, relunit, get_date): Adjust to above changes.
74826
74827         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74828         Do not include unistd-safer.h.
74829         (getloadavg): Don't call fd_safer; no longer needed
74830         now that we include fcntl--.h.
74831
74832         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74833         (make_dir_parents): Treat ENOSYS like EEXIST.
74834
74835         Improve quality of diagnostics on restore_cwd failure.
74836         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74837         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74838         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74839         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74840         each time through the loop.  Do not diagnose restore_cwd failure;
74841         that is the caller's job (and perhaps the caller does not care).
74842
74843         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74844         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74845         If the file already exists but is not a directory, don't bother
74846         to try to make its parents.
74847         Close potential file descriptor leak if we can't chdir("/") (!).
74848         Don't always return true if chdir($PWD) fails; return true only
74849         if the requested action was done successfully (except for the
74850         chdir($PWD)).
74851         Don't log final directory unless we actually made it.
74852         Refactor to avoid duplicate code to fix up permissions.
74853         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74854
74855         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74856         to make it a bit faster and (I hope) clearer.
74857         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74858         Fix bug in formats like %2N.
74859
74860         * lib/verify.h: New file.
74861
74862 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         Sync from coreutils.
74865         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74866
74867 2005-09-22  Jim Meyering  <jim@meyering.net>
74868
74869         Sync from coreutils.
74870
74871         * m4/lstat.m4 (gl_FUNC_LSTAT):
74872         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74873         Remove obsolete comment.
74874         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74875         * m4/xstrtod.m4: Likewise.
74876
74877         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74878
74879 2005-09-22  Jim Meyering  <jim@meyering.net>
74880
74881         Sync from coreutils.
74882
74883         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74884
74885         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74886         the .tm_year member, since otherwise gcc-4.0 would now warn about
74887         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74888
74889         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74890         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74891
74892         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74893         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74894         when run in a time zone for which daylight savings time is in effect
74895         for the starting date.
74896
74897         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74898         stop us from restricting permissions of just-created absolute-named
74899         directories.
74900         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74901         to restore initial working directory.
74902         * lib/mkdir-p.c (make_dir_parents): New parameter:
74903         different_working_dir, to tell caller if/when we change the working
74904         directory and are unable to return to the initial one.
74905         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74906         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74907         `return false'.  This fixes a bug introduced on 2004-07-30.
74908
74909         * lib/openat.c (fdopendir): Be sure to close the supplied
74910         file descriptor before returning.  This makes our replacement
74911         implementation a little closer to Solaris's, where fdopendir
74912         ties the file descriptor to the returned DIR* pointer.
74913         * lib/openat.c (unlinkat): New function.
74914         * lib/openat.h (unlinkat): Add prototype.
74915         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74916         (openat_restore_fail): Rename from openat_restore_die.
74917         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74918
74919         Provide an alternative to exiting immediately upon save_cwd or
74920         restore_cwd failure.  Now, an application can arrange e.g.,
74921         to perform a longjump in that case.
74922         * lib/openat.c: Include dirname.h.
74923         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74924         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74925         and openat_restore_die rather than calling error directly.
74926         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74927
74928         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
74929         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
74930         define.
74931
74932         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
74933         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
74934                             int utc, int nanoseconds);
74935         Background:
74936         date should not have to allocate a megabyte of virtual memory to
74937         handle a format argument like +%1048575T.  When implemented with
74938         strftime, it must allocate such a buffer, use strftime to fill it
74939         in, print it, then free it.
74940         With fprintftime, it simply prints everything and exits.
74941         With no need for memory allocation, that's one fewer way to fail.
74942         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
74943         optional field width, not before, so we accept %9:z, not %:9z.
74944         (my_strftime): Be sure to use L_('x') for literals.
74945
74946         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
74947         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
74948         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
74949         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
74950         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
74951         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
74952         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
74953         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
74954         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
74955         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
74956         * lib/xgethostname.c, lib/xreadlink.c:
74957         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
74958
74959         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
74960         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
74961         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
74962         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74963         and don't include <sys/file.h>).
74964
74965 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
74966
74967         Sync from coreutils.
74968
74969         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
74970         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
74971         [!LDAV_DONE]: Avoid unused variable warning.
74972
74973 2005-09-21  Bruno Haible  <bruno@clisp.org>
74974
74975         * lib/unicodeio.h (unicode_to_mb): New declaration.
74976
74977 2005-09-20  Derek Price  <derek@ximbiot.com>
74978
74979         * lib/getaddrinfo.c: Don't include <netdb.h> included from
74980         getaddrinfo.h.
74981
74982 2005-09-20  Bruno Haible  <bruno@clisp.org>
74983
74984         * gnulib-tool: Remove trailing slashes from the values specified for
74985         --source-base, --m4-base, --tests-base, --aux-dir.
74986         Suggested by Simon Josefsson <jas@extundo.com>.
74987
74988 2005-09-20  Bruno Haible  <bruno@clisp.org>
74989
74990         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
74991         func_modules_to_filelist, func_import, func_create_testdir): Make all
74992         sorting results locale-independent, so that gnulib-cache.m4 doesn't
74993         change when gnulib-tool is invoked in a different locale.
74994
74995 2005-09-19  Simon Josefsson  <jas@extundo.com>
74996
74997         * m4/socklen.m4: Fix typo.
74998
74999 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75000
75001         Use a consistent style for including <config.h>.
75002         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75003         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75004         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75005         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75006         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75007         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75008         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75009         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75010         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75011         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75012         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75013         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75014         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75015         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75016         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75017         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75018         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75019         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75020         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75021         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75022         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75023         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75024         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75025         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75026         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75027         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75028         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75029         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75030         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75031         lib/xstrtoumax.c, lib/yesno.c:
75032         Standardize inclusion of config.h.
75033         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75034         lib/inttostr.h:  Removed inclusion of config.h from header files.
75035         * lib/inttostr.c:  Adjusted in-tree users.
75036         * lib/timespec.h: Remove superfluous warning to include config.h.
75037         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75038         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75039         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75040         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75041         config.h with HAVE_CONFIG_H.
75042
75043 2005-09-19  Jim Meyering  <jim@meyering.net>
75044
75045         * modules/pathmax (License): Change to LGPL.
75046
75047 2005-09-19  Derek Price  <derek@ximbiot.com>
75048
75049         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75050
75051 2005-09-19  Bruno Haible  <bruno@clisp.org>
75052
75053         * gnulib-tool (import): Provide default for --tests-base.
75054
75055 2005-09-19  Bruno Haible  <bruno@clisp.org>
75056
75057         * doc/quote.texi: New file, extracted from gnulib.texi.
75058         * doc/ctime.texi: New file, extracted from gnulib.texi.
75059         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75060         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75061         * doc/gnulib.texi: Include them.
75062
75063 2005-09-18  Bruno Haible  <bruno@clisp.org>
75064
75065         Portability fix.
75066         * gnulib-tool (func_readlink): New function.
75067         (func_ln_if_changed): Use it.
75068
75069 2005-09-18  Bruno Haible  <bruno@clisp.org>
75070
75071         * gnulib-tool: Support --with-tests also with --import.
75072         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75073         (func_import): Use variables $testsbase and $inctests. Emit a
75074         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75075         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75076         SUBDIRS += $testsdir.
75077         (func_create_testdir): Update.
75078
75079 2005-09-18  Bruno Haible  <bruno@clisp.org>
75080
75081         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75082         instead of $dry_run.
75083         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75084         (func_ln_if_changed): Don't handle dry-run here.
75085         (func_import): In dry-run mode, detect more precisely which actions
75086         would be performed, and don't use "...ing" verbs.
75087
75088 2005-09-18  Bruno Haible  <bruno@clisp.org>
75089
75090         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75091         (func_import): Use join on two temporary files instead of three nested
75092         loops, in order to determine which files are new or old.
75093
75094 2005-09-18  Bruno Haible  <bruno@clisp.org>
75095
75096         * gnulib-tool (func_import): Comment out code that spits out the
75097         new files with --dry-run.
75098
75099 2005-09-18  Bruno Haible  <bruno@clisp.org>
75100
75101         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75102
75103 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         * lib/stat-time.h: New file.
75106         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75107         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75108         in a different way.
75109         (timespec_cmp): New function.
75110         * lib/utimecmp.c: Include stat-time.h.
75111         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75112         members exist, not on the obsolescent ST_MTIM_NSEC.
75113         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75114
75115 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75118
75119 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75120
75121         * MODULES.html.sh (File system functions): Add stat-time.
75122         * modules/stat-time: New file.
75123         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75124         is now done in a different way, by the stat-time module.
75125         * modules/utimecmp (Depends-on): Add stat-time.
75126
75127 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75128
75129         * m4/st_mtim.m4: Remove.  Superseded by...
75130         * m4/stat-time.m4: New file.
75131         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75132         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75133
75134 2005-09-15  Derek Price  <derek@ximbiot.com>
75135
75136         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75137
75138 2005-09-15  Derek Price  <derek@ximbiot.com>
75139
75140         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75141         * lib/regex_internal.c: Ditto, using this...
75142         (__GNUC_PREREQ): ...new macro.
75143         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75144         using...
75145         (__GNUC_PREREQ): ...this new macro.
75146
75147         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75148
75149 2005-09-15  Derek Price  <derek@ximbiot.com>
75150             Paul Eggert  <eggert@cs.ucla.edu>
75151
75152         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75153         changes, consolidating in...
75154         * lib/regex_internal.h: ...this file.
75155
75156 2005-09-13  Jim Meyering  <jim@meyering.net>
75157
75158         * lib/canon-host.c: Filter through gnu indent and reword comments
75159         slightly.
75160         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75161
75162 2005-09-13  Derek Price  <derek@ximbiot.com>
75163
75164         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75165         failure.
75166         Reported by Jim Meyering  <jim@meyering.net>.
75167
75168 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75169
75170         * lib/base64.c: Typo.
75171         (base64_encode): Put b64str in initialized data section.
75172
75173 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75174
75175         Merge glibc and coreutils changes into gnulib, plus a few
75176         extra fixes.
75177         * lib/md5.c: Use #error rather than a string.
75178         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75179         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75180         (__attribute__): Define to empty for non recent-GCC.
75181         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75182         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75183         Renamed from their non-__ counterparts, with new macros replacing
75184         them if not _LIBC.  Add __THROW attribute.
75185         (rol): Remove.
75186         (struct md5_ctx): Align buffer if using GCC.
75187         * lib/sha1.h (struct sha1_ctx): Likewise.
75188         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75189         The old name was backwards.
75190         (NOTSWAP): Remove; not used.
75191         (rol): New macro, moved here from md5.h.
75192         (sha1_process_block): Remove a FIXME that doesn't make sense.
75193
75194 2005-09-12  Derek Price  <derek@ximbiot.com>
75195
75196         Return usable errors from canon-host.
75197         * lib/canon-host.h: New file.
75198         * lib/canon-host.c (canon_host): Wrap...
75199         (canon_host_r): ...this new function, which now relies exclusively on
75200         getaddrinfo.
75201         (ch_strerror): New function.
75202         (last_cherror): New global.
75203         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75204         interface.
75205         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75206         void *.
75207         (freeaddrinfo): Free ai->ai_canonname when set.
75208
75209 2005-09-12  Derek Price  <derek@ximbiot.com>
75210
75211         Make canon-host require getaddrinfo.
75212         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75213         AC_LIBSOURCE canon-host.h.  Call...
75214         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75215         gl_GETADDRINFO.
75216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75217
75218 2005-09-12  Derek Price  <derek@ximbiot.com>
75219
75220         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75221         LGPL.
75222         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75223
75224 2005-09-12  Derek Price  <derek@ximbiot.com>
75225
75226         * lib/gai_strerror.c: Include config.h when available.  Include
75227         getaddrinfo.h before other headers to test interface.
75228         Reported by Larry Jones <lawrence.jones@ugs.com>.
75229
75230 2005-09-12  Derek Price  <derek@ximbiot.com>
75231             Paul Eggert  <eggert@cs.ucla.edu>
75232
75233         * modules/glob (Files): Add glob-libc.h.
75234
75235 2005-09-12  Derek Price  <derek@ximbiot.com>
75236             Paul Eggert  <eggert@cs.ucla.edu>
75237
75238         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75239         glob_.h, glob-libc.h.
75240         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75241
75242 2005-09-12  Derek Price  <derek@ximbiot.com>
75243             Paul Eggert  <eggert@cs.ucla.edu>
75244
75245         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75246         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75247         protecting things that should be done only in gnulib contexts.
75248         * lib/glob_.h: New file, containing only the glob things needed for
75249         gnulib.
75250         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75251         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75252         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75253         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75254         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75255         and to respect the namespace rules better.
75256
75257 2005-09-08  Simon Josefsson  <jas@extundo.com>
75258
75259         * modules/socklen: New file.
75260
75261 2005-09-08  Simon Josefsson  <jas@extundo.com>
75262
75263         * m4/socklen.m4: New file.
75264
75265 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75266
75267         * modules/utimens (Files): Add m4/utimbuf.m4, since
75268         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75269         Reported by Sergey Poznyakoff.
75270
75271 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75272
75273         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75274         definitions, since that's the preferred style in glibc.
75275         Fix a minor spacing issue, and update copyright notice to match
75276         glibc's.
75277
75278 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75279
75280         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75281
75282 2005-09-06  Simon Josefsson  <jas@extundo.com>
75283
75284         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75285         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75286
75287 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75288
75289         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75290         warning.
75291
75292 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75293
75294         * config/srclist.txt: Add glibc bug 1302.
75295
75296 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         Change bitset word type from unsigned int to unsigned long int,
75299         as this has better performance on typical 64-bit hosts.
75300         Port bitset code to hosts with unusual word sizes.
75301         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75302         (build_collating_symbol):
75303         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75304         argument is a bitset.  This is merely a style issue, but it makes
75305         it clearer that an entire array is expected.
75306         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75307         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75308         Port to the case where bitset_word is not the same as unsigned int.
75309         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75310         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75311         Likewise.
75312         * lib/regexec.c (check_dst_limits_calc_pos_1,
75313         check_subexp_matching_top):
75314         (build_trtable, group_nodes_into_DFAstates):
75315         Likewise.
75316         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75317         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75318         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75319         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75320         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75321         * lib/regcomp.c (optimize_subexps, lower_subexp):
75322         Work even if bitset_word has holes in its bitwise representation.
75323         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75324         * lib/regexec.c (check_dst_limits_calc_pos_1,
75325         check_subexp_matching_top):
75326         Likewise.
75327         * lib/regex_internal.c (re_string_reconstruct):
75328         Don't assume UCHAR_MAX == 255.
75329         * lib/regex_internal.h (bitset_set_all): Likewise.
75330         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75331         All uses changed.
75332         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75333         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75334         All uses changed.
75335         (BITSET_WORD_MAX): New macro.
75336         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75337         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75338         (bitset_empty, bitset_copy):
75339         Prefer sizeof (bitset) to multiplying it out ourselves.
75340         (bitset_not_merge): Remove; unused.
75341         (bitset_contain): Return bool, not unsigned int with one bit on.
75342         All callers changed.
75343         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75344         alignment than re_node_set; do this by defining a new internal
75345         type struct dests_alloc and using it to allocate memory.
75346
75347 2005-09-05  Bruno Haible  <bruno@clisp.org>
75348
75349         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75350         links.
75351
75352 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75353
75354         * modules/size_max (Makefile.am): Add size_max.h
75355
75356 2005-09-04  Derek Price  <derek@ximbiot.com>
75357
75358         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75359
75360 2005-09-03  Simon Josefsson  <jas@extundo.com>
75361
75362         * gnulib-tool: Fix typo.
75363
75364 2005-09-03  Simon Josefsson  <jas@extundo.com>
75365
75366         * config/srclist.txt: Add glibc bug 1293.
75367
75368 2005-09-03  Derek Price  <derek@ximbiot.com>
75369
75370         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75371         From Larry Jones <lawrence.jones@ugs.com>.
75372
75373 2005-09-02  Simon Josefsson  <jas@extundo.com>
75374
75375         * modules/socklen: New file.
75376
75377 2005-09-02  Simon Josefsson  <jas@extundo.com>
75378
75379         * modules/havelib: New module.
75380
75381         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75382         Use havelib.
75383
75384 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75385
75386         Check for arithmetic overflow when calculating sizes, to prevent
75387         some buffer-overflow issues.  These patches are conservative, in the
75388         sense that when I couldn't determine whether an overflow was possible,
75389         I inserted a run-time check.
75390         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75391         macros.
75392         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75393         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75394         (re_xnrealloc, re_x2nrealloc): New inline functions.
75395         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75396         parse_bracket_exp):
75397         (build_equiv_class, build_charclass): Check for arithmetic overflow
75398         in size expression calculations.
75399         * lib/regex_internal.c (re_string_realloc_buffers):
75400         (build_wcs_upper_buffer, re_node_set_add_intersect):
75401         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75402         (re_dfa_add_node, register_state): Likewise.
75403         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75404         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75405         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75406         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75407
75408 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75411         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75412
75413 2005-09-02  Bruno Haible  <bruno@clisp.org>
75414
75415         Support for lib vs. lib64 distinction on biarch platforms.
75416         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75417         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75418         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75419
75420 2005-09-02  Bruno Haible  <bruno@clisp.org>
75421
75422         * gnulib-tool (import): In the other first-use case, provide defaults
75423         as well.
75424
75425 2005-09-02  Bruno Haible  <bruno@clisp.org>
75426
75427         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75428         patches not yet found in the latest gettext release.
75429
75430 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75431
75432         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75433         to avoid a collision with bits/local_lim.h in glibc.
75434         All uses changed.  Problem reported by Dmitry V. Levin in
75435         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75436
75437         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75438         bugs in int versus size_t comparisons.
75439         (re_string_context_at): Fix bug where the code assumed that
75440         Idx is signed.
75441
75442         Use bool where appropriate.
75443         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75444         All callers changed.
75445         (calc_eclosure_iter): Likewise, for ROOT arg.
75446         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75447         (build_charclass_op): Likewise, for NON_MATCH arg.
75448         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75449         (re_string_construct_common): Likewise, for ICASE arg.
75450         * lib/regexec.c (re_search_2_stub, re_search_stub):
75451         Likewise, for RET_LEN arg.
75452         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75453         (set_regs): Likewise, for FL_BACKTRACK arg.
75454         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75455         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75456         (calc_eclosure_iter, parse_bracket_exp):
75457         Use bool for internal variables that are booleans.
75458         * lib/regexec.c (re_search_internal, check_matching,
75459         proceed_next_node):
75460         (set_regs, build_sifted_states, sift_states_bkref):
75461         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75462         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75463         (find_collation_sequence_value):
75464         Likewise.
75465         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75466         (re_node_set_compare):
75467         Return bool, not int. All callers changed.
75468         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75469         (build_trtable, check_node_accept): Likewise.
75470         * lib/regex_internal.h: Include stdbool.h.
75471
75472         Fix bugs uncovered when converting to bool.
75473         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75474         failure instead of charging ahead blindly.
75475         * lib/regex_internal.c (register_state): Likewise.
75476         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75477         for freeing internal storage.
75478         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75479         bitset pieces used as boolean, to avoid undefined behavior
75480         on hosts that do int overflow checking.
75481
75482 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * config/srclist.txt: Add glibc bugs 1285-1287.
75485
75486 2005-09-01  Jim Meyering  <jim@meyering.net>
75487
75488         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75489         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75490         Require gl_STAT_MACROS, too.
75491
75492 2005-09-01  Bruno Haible  <bruno@clisp.org>
75493
75494         * gnulib-tool (import): In the first-use case, provide defaults.
75495
75496 2005-09-01  Bruno Haible  <bruno@clisp.org>
75497
75498         * gnulib-tool (func_import): Remove the .tmp files.
75499
75500 2005-09-01  Bruno Haible  <bruno@clisp.org>
75501
75502         * gnulib-tool (func_import): Fix handling of symbolic links.
75503
75504 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75505
75506         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75507         old glibc regex code mishandles strings longer than 2**31 bytes.
75508         This patch fixes this when the regex code is used in gnulib
75509         (i.e., outside glibc).
75510
75511         This patch should not affect the use of the regex code inside
75512         glibc.  No doubt this problem also needs to be handled for glibc
75513         as well, but the result will be an incompatible change to the
75514         glibc ABI, and the old ABI will have to be supported too.  That
75515         can be the the subject for another patch.
75516
75517         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75518         governing whether the rest of this patch is active.  By default,
75519         the macro is disabled and the patch has no effect.
75520         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75521         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75522         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75523         (re_match_2, re_set_registers): Use the new types.
75524         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75525         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75526         New macros.
75527         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75528         (re_string_context_at, bin_tree_t, re_dfastate_t):
75529         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75530         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75531         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75532         (re_string_char_size_at, re_string_wchar_at):
75533         (re_string_elem_size_at):
75534         Use the new types and macros to port to 64-bit hosts.
75535         Use unsigned types for internal values, so that the code
75536         mostly works even for arrays larger than SSIZE_MAX.
75537         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75538         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75539         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75540         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75541         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75542         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75543         (calc_inveclosure, parse_dup_op, build_range_exp):
75544         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75545         (fetch_number, create_token_tree, mark_opt_subexp):
75546         Likewise.
75547         * lib/regex_internal.c (re_string_construct_common,
75548         create_ci_newstate):
75549         (create_cd_newstate, re_string_allocate, re_string_construct):
75550         (re_string_realloc_buffers, build_wcs_upper_buffer):
75551         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75552         (re_string_reconstruct, re_string_peek_byte_case):
75553         (re_string_fetch_byte_case, re_string_context_at):
75554         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75555         (re_node_set_init_copy, re_node_set_add_intersect):
75556         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75557         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75558         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75559         (re_acquire_state, re_acquire_state_context, register_state):
75560         Likewise.
75561         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75562         search_cur_bkref_entry):
75563         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75564         (re_search_internal, re_search_2_stub, re_search_stub)
75565         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75566         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75567         (update_cur_sifted_state, check_dst_limits):
75568         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75569         (check_subexp_limits, sift_states_bkref, merge_state_array):
75570         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75571         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75572         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75573         (expand_bkref_cache, check_node_accept_bytes):
75574         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75575         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75576         (acquire_init_state_context, check_halt_node_context):
75577         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75578         (sift_states_backward, clean_state_log_if_needed):
75579         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75580         (find_recover_state, transit_state_sb, transit_state_mb):
75581         (transit_state_bkref, build_trtable, match_ctx_clean):
75582         Likewise.
75583         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75584         to work around an assumption that REG_MISSING is negative.
75585
75586         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75587         (seek_collating_symbol_entry) [defined _LIBC]:
75588         (lookup_collation_sequence_value) [defined _LIBC]:
75589         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75590         Use prototypes rather than old-style function definitions.
75591         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75592         (transit_state_sb) [0]:
75593         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75594
75595         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75596         rm_eo.
75597
75598         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75599         (optimize_subexps, lower_subexp):
75600         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75601         since the signed shift might overflow.  Use 1u<<31 instead.
75602         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75603         Likewise.
75604         * lib/regexec.c (check_dst_limits_calc_pos_1,
75605         check_subexp_matching_top): Likewise.
75606
75607         * lib/regcomp.c (optimize_subexps, lower_subexp):
75608         Use CHAR_BIT rather than 8, for clarity.
75609         * lib/regexec.c (check_dst_limits_calc_pos_1):
75610         (check_subexp_matching_top): Likewise.
75611         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75612         have to worry about portability issues when shifting it left.
75613         Remove no-longer-needed test for table_size > 0.
75614         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75615         in a word, as the resulting behavior is undefined.
75616         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75617         in one case, a <= should have been an <, and in another case the
75618         whole test was missing.
75619         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75620         the standard name CHAR_BIT.
75621         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75622         this is not true on one's complement and signed-magnitude hosts.
75623
75624         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75625         next_last_offset.
75626         (struct re_dfa_t): Remove unused member states_alloc.
75627         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75628
75629 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75630
75631         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75632         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75633         and large-file glibc and in 32-bit large-file Solaris.
75634
75635 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75636
75637         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75638         lengths fit in regoff_t; this isn't true if regoff_t is the same
75639         width as size_t.
75640         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75641         (= START + RANGE) instead of RANGE.  This avoids overflow
75642         problems when regoff_t is the same width as size_t.
75643         All callers changed.
75644         (re_search_2_stub): Check for overflow when adding the
75645         sizes of the two strings.
75646         (re_search_stub): Check for overflow when adding START
75647         to RANGE; if it occurs, substitute the extreme value.
75648
75649 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75650
75651         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75652
75653 2005-08-31  Jim Meyering  <jim@meyering.net>
75654
75655         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75656         a pointer-to-const.
75657         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75658         (register_state): Likewise.
75659         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75660         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75661         (group_nodes_into_DFAstates): Likewise.
75662
75663 2005-08-31  Jim Meyering  <jim@meyering.net>
75664
75665         * check-module: Add a FIXME comment.
75666
75667 2005-08-31  Eric Blake  <ebb9@byu.net>
75668
75669         * modules/unistd-safer (Files): Add unistd--.h.
75670         * modules/stdio-safer (Files): Add stdio--.h.
75671
75672 2005-08-31  Derek Price  <derek@ximbiot.com>
75673
75674         * lib/getdelim.c (getdelim): Return EOF on EOF.
75675         Reported by Larry Jones <lawrence.jones@ugs.com>.
75676
75677 2005-08-31  Bruno Haible  <bruno@clisp.org>
75678
75679         Avoid unnecessary diffs in the generated lib/Makefile.am.
75680         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75681         the generated files.
75682         (func_import): Don't set cmd.
75683
75684 2005-08-31  Bruno Haible  <bruno@clisp.org>
75685
75686         * lib/strstr.c: Include <stddef.h>, for NULL.
75687         * lib/strcasestr.c: Likewise.
75688         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75689
75690 2005-08-31  Bruno Haible  <bruno@clisp.org>
75691
75692         * gnulib-tool: New option --macro-prefix.
75693         (func_import): Use macro_prefix.
75694         (import): Handle option --macro-prefix.
75695
75696 2005-08-31  Bruno Haible  <bruno@clisp.org>
75697
75698         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75699         Also use new variables cached_lgpl, cached_libtool.
75700
75701 2005-08-31  Bruno Haible  <bruno@clisp.org>
75702
75703         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75704         always instantiating them.
75705
75706 2005-08-31  Bruno Haible  <bruno@clisp.org>
75707
75708         * gnulib-tool (func_import): Read the previous cached settings
75709         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75710         earlier added by gnulib but are now dropped. Warn when a gnulib file
75711         overwrites a non-gnulib file.
75712
75713 2005-08-31  Bruno Haible  <bruno@clisp.org>
75714
75715         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75716         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75717         projects that don't keep autogenerated files in CVS. Put into
75718         actioncmd only the specified modules, not the transitive closure.
75719
75720 2005-08-31  Bruno Haible  <bruno@clisp.org>
75721
75722         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75723         Create directories that shall be filled.
75724         (import): Don't look for gl_* macros in configure.ac. Recurse across
75725         all directories containing a gnulib-cache.m4 files, if meaningful.
75726
75727 2005-08-31  Bruno Haible  <bruno@clisp.org>
75728
75729         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75730         (import): Set seen_libtool when we see gl_LIBTOOL.
75731
75732 2005-08-31  Bruno Haible  <bruno@clisp.org>
75733
75734         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75735         declaration macro definitions from generated gnulib.m4.
75736
75737 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75738
75739         * lib/iconvme.h: Add prototype for iconv_alloc.
75740
75741 2005-08-29  Simon Josefsson  <jas@extundo.com>
75742
75743         * lib/iconvme.c: Fix errno.
75744
75745 2005-08-29  Bruno Haible  <bruno@clisp.org>
75746
75747         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75748         that it works when the directory contains spaces.
75749
75750 2005-08-29  Bruno Haible  <bruno@clisp.org>
75751
75752         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75753
75754 2005-08-29  Bruno Haible  <bruno@clisp.org>
75755
75756         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75757         Emit more advice.
75758
75759 2005-08-29  Bruno Haible  <bruno@clisp.org>
75760         and Stepan Kasal  <kasal@ucw.cz>
75761
75762         * check-module: If more parameters are given, check each of them
75763         separately; add more exceptions, as noted by Jim Meyering.
75764         (check_module): New procedure.
75765         (%exempt_header): Now contains all exceptions.
75766
75767 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75768
75769         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75770
75771 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75772
75773         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75774
75775 2005-08-28  Bruno Haible  <bruno@clisp.org>
75776
75777         * m4/gnulib-tool.m4: New file.
75778
75779 2005-08-27  Jim Meyering  <jim@meyering.net>
75780
75781         * modules/unistd-safer (Files): Add pipe-safer.c.
75782         * modules/fcntl-safer (Files): Add creat-safer.c.
75783
75784 2005-08-27  Jim Meyering  <jim@meyering.net>
75785
75786         * m4/stdlib-safer.m4: New file.  From coreutils.
75787         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75788         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75789         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75790         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75791         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75792
75793 2005-08-27  Jim Meyering  <jim@meyering.net>
75794
75795         * lib/fopen-safer.c: Merge minor changes from coreutils.
75796         * lib/dup-safer.c: Likewise.
75797         * lib/fd-safer.c: Likewise.
75798
75799         Merge from coreutils.
75800         * lib/stdio--.h: New file.
75801         * lib/stdlib--.h: New file.
75802         * lib/mkstemp-safer.c: New file.
75803
75804         GNU tar needs these.
75805         * lib/pipe-safer.c: New file.
75806         * lib/creat-safer.c: New file.
75807         * lib/fcntl--.h (creat): Define to creat_safer.
75808         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75809         * lib/unistd--.h (pipe): Define to pipe_safer.
75810         * lib/unistd-safer.h: Declare pipe_safer.
75811
75812 2005-08-26  Simon Josefsson  <jas@extundo.com>
75813
75814         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75815         Haible <bruno@clisp.org>.
75816
75817 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75818
75819         * lib/regex_internal.h: Remove all references to
75820         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75821         or better.
75822         (bitset_not, bitset_merge, bitset_not_merge):
75823         (bitset_mask, re_string_allocate, re_string_construct):
75824         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75825         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75826         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75827         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75828         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75829         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75830         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75831         (re_acquire_state_context):
75832         Remove unnecessary forward decls.
75833         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75834         Put __attribute at function definition,
75835         now that the function decl has been removed.
75836         * lib/regex_internal.c (re_string_peek_byte_case):
75837         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75838         Likewise.
75839
75840 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75841
75842         * m4/regex.m4: Add AC_PREREQ(2.50).
75843         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75844
75845 2005-08-25  Simon Josefsson  <jas@extundo.com>
75846
75847         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75848         __fsetlocking.
75849
75850 2005-08-25  Simon Josefsson  <jas@extundo.com>
75851
75852         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75853         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75854         GLIBC specific code.
75855
75856 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75857
75858         Make regex safe for g++.  This fixes one real bug (an "err"
75859         that should have been "*err").  g++ problem reported by
75860         Sam Steingold.
75861         * lib/regex_internal.h (re_calloc): New macro, consistent with
75862         re_malloc etc.  All callers of calloc changed to use re_calloc.
75863         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75864         not int.  All callers changed.
75865         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75866         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75867         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75868         (find_recover_state): Change "err" to "*err"; this fixes what
75869         appears to be a real bug.
75870         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75871         versus int.
75872
75873 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75874
75875         * modules/regex (Depends-on): Add malloc, since the code
75876         assumes that !malloc(0) means failure.
75877
75878 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75881
75882         alloca modernization/simplification for regex.
75883         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75884         needs to be at the start of the file, and can be moved into
75885         regex_internal.h and simplified.
75886         * lib/regex_internal.h: Include <alloca.h>.
75887         (__libc_use_alloca) [!defined _LIBC]: New macro.
75888         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75889         now works outside glibc.
75890
75891 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         * config/srclist.txt: Add glibc bugs 1241, 1245.
75894
75895 2005-08-25  Jim Meyering  <jim@meyering.net>
75896
75897         * lib/open-safer.c: Include <config.h>.
75898         Otherwise, we'd lose LARGEFILE support in any file using
75899         e.g. "fcntl--.h"
75900
75901 2005-08-25  Bruno Haible  <bruno@clisp.org>
75902
75903         * m4/minmax.m4: Require autoconf 2.52.
75904         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75905         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75906         alternatives of translit over the alphabet.
75907         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75908
75909 2005-08-24  Simon Josefsson  <jas@extundo.com>
75910
75911         * tests/test-getpass.c: New file.
75912
75913 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75914
75915         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75916         for GNU regex features.
75917
75918 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75919
75920         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75921         * lib/regex.h (regerror): Likewise.
75922
75923         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75924         requires this.  (The code never needed it.)
75925
75926         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75927         All uses of recently-renamed identifiers changed to use the new,
75928         POSIX-compliant names.  The code will build and run just fine
75929         without these changes, but it's better to eat our own dog food
75930         and use the standard-conforming names.
75931
75932         * lib/regex.h: Fix a multitude of POSIX name space violations.
75933         These changes have an effect only for programs that define
75934         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
75935         do not change anything for programs compiled in the normal way.
75936         Also, there is no effect on the ABI.
75937
75938         (_REGEX_SOURCE): New macro.
75939         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
75940         defined and _GNU_SOURCE is not; this fixes a name space violation.
75941
75942         Rename the following macros to obey POSIX requirements.
75943         The old names are still visible as macros if _REGEX_SOURCE is defined.
75944         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
75945         RE_BACKSLASH_ESCAPE_IN_LISTS.
75946         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
75947         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
75948         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
75949         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
75950         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
75951         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
75952         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
75953         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
75954         (REG_INTERVALS): renamed from RE_INTERVALS.
75955         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
75956         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
75957         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
75958         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
75959         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
75960         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
75961         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
75962         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
75963         RE_UNMATCHED_RIGHT_PAREN_ORD.
75964         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
75965         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
75966         (REG_DEBUG): renamed from RE_DEBUG.
75967         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
75968         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
75969         unusual, since we can't clash with the POSIX REG_ICASE.
75970         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
75971         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
75972         (REG_NO_SUB): renamed from RE_NO_SUB.
75973         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
75974         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
75975         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
75976         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
75977         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
75978         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
75979         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
75980         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
75981         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
75982         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
75983         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
75984         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
75985         RE_SYNTAX_POSIX_MINIMAL_BASIC.
75986         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
75987         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
75988         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
75989         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
75990         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
75991         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
75992         (REG_FIXED): Renamed from REGS_FIXED.
75993         (REG_NREGS): Renamed from RE_NREGS.
75994
75995         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
75996         of other REG_* macros, since POSIX says the user is allowed to
75997         #undef these macros selectively.
75998
75999         (reg_errcode_t): Update comment stating what other tables need
76000         to be consistent.
76001
76002         Rename the following enum values to obey POSIX requirements.
76003         The old names are still visible as macros.
76004         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76005         is not defined, since GNU is supposed to be a superset of POSIX as
76006         much as possible, and since we want reg_errcode_t to be a signed
76007         type for implementation consistency.
76008         (_REG_NOERROR): Renamed from REG_NOERROR.
76009         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76010         (_REG_BADPAT): Renamed from REG_BADPAT.
76011         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76012         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76013         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76014         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76015         (_REG_EBRACK): Renamed from REG_EBRACK.
76016         (_REG_EPAREN): Renamed from REG_EPAREN.
76017         (_REG_EBRACE): Renamed from REG_EBRACE.
76018         (_REG_BADBR): Renamed from REG_BADBR.
76019         (_REG_ERANGE): Renamed from REG_ERANGE.
76020         (_REG_ESPACE): Renamed from REG_ESPACE.
76021         (_REG_BADRPT): Renamed from REG_BADRPT.
76022         (_REG_EEND): Renamed from REG_EEND.
76023         (_REG_ESIZE): Renamed from REG_ESIZE.
76024         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76025         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76026         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76027         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76028         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76029
76030         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76031         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76032         changed.  But support the old name if the new one is not defined
76033         and if _REGEX_SOURCE.
76034
76035         Change the following member names in struct re_pattern_buffer.
76036         The old names are still supported if !_REGEX_SOURCE.
76037         The new names are always supported, regardless of _REGEX_SOURCE.
76038         (re_buffer): Renamed from buffer.
76039         (re_allocated): Renamed from allocated.
76040         (re_used): Renamed from used.
76041         (re_syntax): Renamed from syntax.
76042         (re_fastmap): Renamed from fastmap.
76043         (re_translate): Renamed from translate.
76044         (re_can_be_null): Renamed from can_be_null.
76045         (re_regs_allocated): Renamed from regs_allocated.
76046         (re_fastmap_accurate): Renamed from fastmap_accurate.
76047         (re_no_sub): Renamed from no_sub.
76048         (re_not_bol): Renamed from not_bol.
76049         (re_not_eol): Renamed from not_eol.
76050         (re_newline_anchor): Renamed from newline_anchor.
76051
76052         Change the following member names in struct re_registers.
76053         The old names are still supported if !_REGEX_SOURCE.
76054         The new names are always supported, regardless of _REGEX_SOURCE.
76055         (rm_num_regs): Renamed from num_regs.
76056         (rm_start): Renamed from start.
76057         (rm_end): Renamed from end.
76058
76059         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76060         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76061         Prepend __ to parameter names.
76062
76063         Undo yesterday's changes.
76064
76065 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76066
76067         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76068         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76069         lib/regex.c.
76070
76071 2005-08-24  Jim Meyering  <jim@meyering.net>
76072
76073         Sync from coreutils.
76074         * m4/fcntl-safer.m4: New file.
76075
76076         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76077         and object files for this module.
76078
76079 2005-08-24  Jim Meyering  <jim@meyering.net>
76080
76081         Sync from coreutils.
76082         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76083
76084 2005-08-24  Jim Meyering  <jim@meyering.net>
76085
76086         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76087         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76088
76089 2005-08-24  Jim Meyering  <jim@meyering.net>
76090
76091         * modules/fcntl-safer: New module.
76092         * modules/fts (Depends-on): Add fcntl-safer.
76093         * MODULES.html.sh (File descriptor based Input/Output):
76094         Add fcntl-safer.
76095
76096 2005-08-24  Bruno Haible  <bruno@clisp.org>
76097
76098         Support for unit test modules.
76099         * modules/README: Mention tests modules.
76100         * modules/TEMPLATE-TESTS: New file.
76101         * gnulib-tool: New options --extract-tests-module, --with-tests and
76102         --tests-base (unused for the moment).
76103         (testsbase, inctests): New variables.
76104         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76105         (func_verify_module): Exclude TEMPLATE-TESTS.
76106         (func_verify_nontests_module, func_verify_tests_module): New functions.
76107         (func_get_dependencies): Add implicit dependency for tests modules.
76108         (func_get_tests_module): New function.
76109         (func_modules_transitive_closure): When --with-tests was specified,
76110         include the unit tests as well, unless explicitly avoided.
76111         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76112         (func_emit_tests_Makefile_am): New function.
76113         (func_create_testdir): When --with-tests was specified, emit a
76114         tests/ directory.
76115         * MODULES.html.sh (Future developments): Update.
76116
76117 2005-08-24  Bruno Haible  <bruno@clisp.org>
76118
76119         * modules/tls-tests: New file.
76120         * tests/test-tls.c: New file, from GNU gettext.
76121
76122 2005-08-24  Bruno Haible  <bruno@clisp.org>
76123
76124         * modules/lock-tests: New file.
76125         * tests/test-lock.c: New file, from GNU gettext.
76126
76127 2005-08-24  Bruno Haible  <bruno@clisp.org>
76128
76129         * lib/lock.h: Add multiple inclusion guard.
76130         * lib/tls.h: Add multiple inclusion guard.
76131
76132 2005-08-24  Bruno Haible  <bruno@clisp.org>
76133
76134         * gnulib-tool: Add support for the --aux-dir option to
76135         --create-testdir, --create-megatestdir, --test, --megatest.
76136         (func_create_testdir, func_create_megatestdir): Optionally emit a
76137         AC_CONFIG_AUX_DIR directive.
76138         (create-testdir, create-megatestdir, test, megatest): Provide a
76139         default value for $auxdir.
76140
76141 2005-08-24  Bruno Haible  <bruno@clisp.org>
76142
76143         * gnulib-tool (import): Use compound statement instead of subshell
76144         where possible.
76145
76146 2005-08-24  Bruno Haible  <bruno@clisp.org>
76147
76148         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76149
76150 2005-08-24  Bruno Haible  <bruno@clisp.org>
76151
76152         * gnulib-tool (func_version): Update.
76153
76154 2005-08-24  Bruno Haible  <bruno@clisp.org>
76155
76156         * gnulib-tool (func_import, func_create_testdir,
76157         func_create_megatestdir): Quote all autoconf macro arguments.
76158
76159 2005-08-24  Bruno Haible  <bruno@clisp.org>
76160
76161         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76162         option --force, because --force causes the aclocal.m4 of each
76163         subdirectory to be newer than the corresponding config.h.in.
76164
76165 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76168         All contents moved to gl_REGEX.
76169         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76170         assume that it does.
76171
76172 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76173
76174         * lib/regex.h (REG_NOSYS)
76175         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76176         Define, since POSIX requires it as of 2001.
76177         (_REG_ENOSYS)
76178         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76179         New private symbol, used to keep the enum signed in all cases.
76180         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76181         Youngman in
76182         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76183
76184         * lib/regex_internal.c (re_string_skip_chars, register_state):
76185         (calc_state_hash):
76186         Remove forward decls; no longer needed now that we use prototypes.
76187         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76188         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76189         (clean_state_log_if_needed): Likewise.
76190
76191 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76192
76193         * config/srclist.txt: Add glibc bugs 1231-1233.
76194
76195 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76196
76197         Fix problems reported by Sam Steingold in
76198         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76199         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76200         assumed that reg_errcode_t is a signed type, which is not
76201         necessarily true if _XOPEN_SOURCE is not defined.
76202         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76203         since some compilers warn about it otherwise.
76204
76205 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76206
76207         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76208         (init_word_char, create_initial_state, duplicate_node_closure):
76209         (fetch_token, peek_token_bracket, build_range_exp):
76210         (build_collating_symbol): Remove forward decls; no longer needed
76211         now that we use prototypes.
76212
76213         * lib/regcomp.c:
76214         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76215         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76216         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76217         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76218         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76219         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76220         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76221         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76222         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76223         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76224         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76225         (build_charclass, build_charclass_op, fetch_number, create_tree):
76226         (create_token_tree, mark_opt_subexp, duplicate_tree):
76227         Use prototypes rather than old-style definitions.
76228
76229         * lib/regex_internal.c:
76230         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76231         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76232         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76233         (re_string_reconstruct, re_string_peek_byte_case):
76234         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76235         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76236         (re_node_set_init_copy, re_node_set_add_intersect):
76237         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76238         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76239         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76240         (re_acquire_state, re_acquire_state_context, register_state):
76241         (create_ci_newstate, create_cd_newstate, free_state):
76242         Likewise.
76243         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76244         re_search_2):
76245         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76246         (re_search_internal, prune_impossible_nodes):
76247         (acquire_init_state_context, check_matching, static):
76248         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76249         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76250         (update_regs, sift_states_backward, build_sifted_states):
76251         (clean_state_log_if_needed, merge_state_array):
76252         (update_cur_sifted_state, add_epsilon_src_nodes):
76253         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76254         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76255         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76256         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76257         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76258         (check_arrival, check_arrival_add_next_nodes):
76259         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76260         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76261         (check_node_accept_bytes, check_node_accept, extend_buffers):
76262         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76263         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76264         (sift_ctx_init):
76265         Likewise.
76266
76267         * lib/regex_internal.h:
76268         (re_string_allocate, re_string_construct, re_string_reconstruct):
76269         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76270         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76271         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76272         (re_string_context_at, re_string_peek_byte_case):
76273         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76274         is defined, since we now use prototypes always.
76275
76276         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76277         C89 or better.  All uses removed.
76278
76279 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * config/srclist.txt: Add glibc bugs 1220-1227.
76282
76283 2005-08-20  Jim Meyering  <jim@meyering.net>
76284
76285         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76286         of unused local, dfa.
76287
76288 2005-08-20  Bruno Haible  <bruno@clisp.org>
76289
76290         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76291
76292 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76293
76294         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76295         (re_node_set_insert_last, re_dfa_add_node):
76296         Rename local variables to avoid GCC shadowing warnings.
76297
76298 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76299
76300         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76301         [defined lint]: Suppress bogus uninitialized-variable warnings.
76302
76303         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76304         and let the caller return REG_ESPACE if out of space.  This
76305         removes an uninitialied-variable warning with GCC 4.0.1, and also
76306         avoids taking the address of a local variable.  All callers
76307         changed.
76308
76309 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76310
76311         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76312         $LIBCSRC/posix/regexec.c.
76313         Add glibc bug 1217 for regcomp.c.
76314
76315 2005-08-19  Jim Meyering  <jim@meyering.net>
76316
76317         * lib/regexec.c (proceed_next_node): Redo local variables to
76318         avoid GCC shadowing warnings.
76319
76320 2005-08-18  Bruno Haible  <bruno@clisp.org>
76321
76322         * lib/strstr.c (strstr): Fix return value in multibyte case.
76323         * lib/strcasestr.c (strcasestr): Likewise.
76324
76325 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76326
76327         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76328
76329 2005-08-17  Jim Meyering  <jim@meyering.net>
76330
76331         Make the %s format (seconds since the epoch) work for a negative
76332         number and when used with a zero-padded field width, e.g. %015s.
76333
76334         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76335         label so that it precedes the code to set `digits'.  Otherwise,
76336         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76337         print `00-22'.  Now, it prints `-0022', as it should.
76338
76339 2005-08-17  Bruno Haible  <bruno@clisp.org>
76340
76341         * modules/strstr (Files): Add m4/mbrtowc.m4.
76342         (Depends-on): Add mbuiter.
76343
76344 2005-08-17  Bruno Haible  <bruno@clisp.org>
76345
76346         * modules/strcasestr: New file.
76347         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76348         strcasestr.
76349
76350 2005-08-17  Bruno Haible  <bruno@clisp.org>
76351
76352         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76353
76354 2005-08-17  Bruno Haible  <bruno@clisp.org>
76355
76356         * modules/mbuiter: New file.
76357         * MODULES.html.sh (Extended multibyte and wide character utilities):
76358         Add mbuiter.
76359
76360 2005-08-17  Bruno Haible  <bruno@clisp.org>
76361
76362         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76363         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76364
76365 2005-08-17  Bruno Haible  <bruno@clisp.org>
76366
76367         * m4/strcasestr.m4: New file.
76368
76369 2005-08-17  Bruno Haible  <bruno@clisp.org>
76370
76371         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76372         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76373
76374 2005-08-17  Bruno Haible  <bruno@clisp.org>
76375
76376         * lib/strcasestr.h: New file.
76377         * lib/strcasestr.c: New file.
76378
76379 2005-08-17  Bruno Haible  <bruno@clisp.org>
76380
76381         * lib/strcasecmp.c: Use mbuiter.h.
76382
76383 2005-08-17  Bruno Haible  <bruno@clisp.org>
76384
76385         * lib/mbuiter.h: New file.
76386
76387 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76388
76389         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76390         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76391         and gl_GETOPT are both invoked via different paths (as happens
76392         with GNU tar CVS because it uses both argp and getopt), the former
76393         wins.
76394
76395 2005-08-16  Bruno Haible  <bruno@clisp.org>
76396
76397         * modules/tls: New file.
76398         * MODULES.html.sh (Multithreading): Add tls.
76399
76400 2005-08-16  Bruno Haible  <bruno@clisp.org>
76401
76402         * modules/strnlen1: New file.
76403         * MODULES.html.sh (String handling): Add strnlen1.
76404
76405 2005-08-16  Bruno Haible  <bruno@clisp.org>
76406
76407         * modules/strcase (Files): Add m4/mbrtowc.m4.
76408         (Depends-on): Add strnlen1, mbchar.
76409
76410 2005-08-16  Bruno Haible  <bruno@clisp.org>
76411
76412         * modules/mbiter: New file.
76413         * MODULES.html.sh (Extended multibyte and wide character utilities):
76414         Add mbiter.
76415
76416 2005-08-16  Bruno Haible  <bruno@clisp.org>
76417
76418         * modules/mbfile: New file.
76419         * MODULES.html.sh (Extended multibyte and wide character utilities):
76420         Add mbfile.
76421
76422 2005-08-16  Bruno Haible  <bruno@clisp.org>
76423
76424         * modules/mbchar: New file.
76425         * MODULES.html.sh (Extended multibyte and wide character utilities):
76426         New section.
76427
76428 2005-08-16  Bruno Haible  <bruno@clisp.org>
76429
76430         * m4/tls.m4: New file, from GNU gettext.
76431
76432 2005-08-16  Bruno Haible  <bruno@clisp.org>
76433
76434         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76435         always.
76436         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76437
76438 2005-08-16  Bruno Haible  <bruno@clisp.org>
76439
76440         * m4/mbiter.m4: New file.
76441
76442 2005-08-16  Bruno Haible  <bruno@clisp.org>
76443
76444         * m4/mbfile.m4: New file.
76445
76446 2005-08-16  Bruno Haible  <bruno@clisp.org>
76447
76448         * m4/mbchar.m4: New file.
76449
76450 2005-08-16  Bruno Haible  <bruno@clisp.org>
76451
76452         * lib/tls.h: New file, from GNU gettext.
76453         * lib/tls.c: New file, from GNU gettext.
76454
76455 2005-08-16  Bruno Haible  <bruno@clisp.org>
76456
76457         * lib/strnlen1.h: New file.
76458         * lib/strnlen1.c: New file.
76459
76460 2005-08-16  Bruno Haible  <bruno@clisp.org>
76461
76462         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76463         (mbi_init): Update.
76464         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76465         NUL byte, not after it.
76466
76467 2005-08-16  Bruno Haible  <bruno@clisp.org>
76468
76469         * lib/strcase.h (strcasecmp): Add note in comments.
76470         * lib/strncasecmp.c: Use code from strcasecmp.c.
76471         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76472         (strcasecmp): Work correctly in multibyte locales.
76473
76474 2005-08-16  Bruno Haible  <bruno@clisp.org>
76475
76476         * lib/mbiter.h: New file.
76477
76478 2005-08-16  Bruno Haible  <bruno@clisp.org>
76479
76480         * lib/mbfile.h: New file.
76481
76482 2005-08-16  Bruno Haible  <bruno@clisp.org>
76483
76484         * lib/mbchar.h: New file.
76485         * lib/mbchar.c: New file.
76486
76487 2005-08-16  Bruno Haible  <bruno@clisp.org>
76488
76489         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76490         the valid ones. Makes the comparison operations transitive:
76491         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76492         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76493
76494 2005-08-15  Simon Josefsson  <jas@extundo.com>
76495
76496         * modules/ssize_t (License): Change to 'unlimited'.
76497
76498         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76499
76500 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76501
76502         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76503         Add comments for each pending glibc patch.
76504
76505 2005-08-15  Bruno Haible  <bruno@clisp.org>
76506
76507         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76508         __cplusplus is defined.
76509
76510 2005-08-14  Jim Meyering  <jim@meyering.net>
76511
76512         Sync from coreutils.
76513
76514         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76515         Use the hash-table-based cycle-detection code not just when
76516         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76517         Reported by James Youngman in
76518         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76519         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76520         FTS_TIGHT_CYCLE_CHECK.
76521         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76522         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76523         once again.
76524         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76525         * lib/fts.c (fd_safer): Remove decl.
76526         Include fcntl--.h rather than unistd-safer.h
76527         (fts_safe_changedir): Don't call fd_safer; no longer needed
76528         now that we include fcntl--.h.
76529
76530 2005-08-12  Simon Josefsson  <jas@extundo.com>
76531
76532         * modules/getndelim2: Use ssize_t module.
76533         * modules/getnline: Likewise.
76534         * modules/safe-read: Likewise.
76535         * modules/xreadlink: Likewise.
76536
76537         * modules/ssize_t: New file.
76538
76539 2005-08-12  Simon Josefsson  <jas@extundo.com>
76540
76541         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76542
76543 2005-08-12  Simon Josefsson  <jas@extundo.com>
76544
76545         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76546         ssize_t.
76547
76548 2005-08-12  Simon Josefsson  <jas@extundo.com>
76549
76550         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76551         readline, getdelim and check_version.
76552         (Support for systems lacking ISO C 99: Sizes of integer types):
76553         Add size_max.
76554
76555 2005-08-12  Bruno Haible  <bruno@clisp.org>
76556
76557         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76558
76559 2005-08-11  Simon Josefsson  <jas@extundo.com>
76560
76561         * modules/readline: New file.
76562
76563         * modules/strnlen (Files): Add strnlen.h.
76564
76565 2005-08-11  Simon Josefsson  <jas@extundo.com>
76566
76567         * m4/readline.m4: New file.
76568
76569 2005-08-11  Simon Josefsson  <jas@extundo.com>
76570
76571         * lib/readline.h, readline.c: New file.
76572
76573 2005-08-11  Simon Josefsson  <jas@extundo.com>
76574
76575         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76576         gl_AVOID.
76577
76578 2005-08-11  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76581
76582 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76583
76584         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76585
76586 2005-08-10  Simon Josefsson  <jas@extundo.com>
76587
76588         * tests/test-iconvme.c: New file.
76589
76590 2005-08-10  Simon Josefsson  <jas@extundo.com>
76591
76592         * m4/strnlen.m4: New file.
76593
76594         * m4/strndup.m4: Don't check for strnlen declaration, done in
76595         strnlen.m4.
76596
76597 2005-08-10  Simon Josefsson  <jas@extundo.com>
76598
76599         * lib/strndup.c: Use strnlen.h.
76600
76601         * lib/strnlen.h: New file.
76602
76603 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76604
76605         * README: Typos.
76606
76607 2005-08-02  Simon Josefsson  <jas@extundo.com>
76608
76609         * modules/readline: New file.
76610
76611 2005-08-02  Simon Josefsson  <jas@extundo.com>
76612
76613         * modules/getdelim: New file.
76614
76615         * modules/getline: Rewrite, don't use getndelim2.
76616
76617 2005-08-02  Simon Josefsson  <jas@extundo.com>
76618
76619         * m4/getline.m4: Separate out getdelim stuff into separate module.
76620
76621         * m4/getdelim.m4: New file.
76622
76623 2005-08-02  Simon Josefsson  <jas@extundo.com>
76624
76625         * lib/getline.h, getline.c: Rewrite.
76626
76627         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76628
76629 2005-07-31  Bruno Haible  <bruno@clisp.org>
76630
76631         * lib/lock.h (gl_lock_initializer): New macro.
76632         (gl_lock_define_initialized): Use it.
76633         (gl_rwlock_initializer): New macro.
76634         (gl_rwlock_define_initialized): Use it.
76635         (gl_recursive_lock_initializer): New macro.
76636         (gl_recursive_lock_define_initialized): Use it.
76637
76638 2005-07-30  Karl Berry  <karl@gnu.org>
76639
76640         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76641         Report from Ben Pfaff, regarding getopt.
76642
76643 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76644
76645         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76646         normal way.
76647         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76648         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76649         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76650         (gl_GETOPT): Use the new macros.  Most of the implementation
76651         is moved to the new macros.  This is for programs like Emacs
76652         that don't want all the functionality of gl_GETOPT.
76653
76654 2005-07-26  Bruno Haible  <bruno@clisp.org>
76655
76656         * m4/lock.m4: Update from GNU gettext.
76657
76658 2005-07-26  Bruno Haible  <bruno@clisp.org>
76659
76660         * lib/lock.h: Update from GNU gettext.
76661         * lib/lock.c: Update from GNU gettext.
76662
76663 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76664
76665         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76666         obsolescent AC_TRY_RUN.  Include the default includes files, for
76667         'exit'.
76668
76669 2005-07-24  Bruno Haible  <bruno@clisp.org>
76670
76671         * modules/visibility: New file.
76672         * MODULES.html.sh (Misc): Add visibility.
76673
76674 2005-07-24  Bruno Haible  <bruno@clisp.org>
76675
76676         * m4/visibility.m4: New file.
76677
76678 2005-07-24  Bruno Haible  <bruno@clisp.org>
76679
76680         * doc/visibility.texi: New file.
76681
76682 2005-07-22  Bruno Haible  <bruno@clisp.org>
76683
76684         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76685         $(ALLOCA_H), redundant through BUILT_SOURCES.
76686         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76687         redundant through BUILT_SOURCES.
76688         * modules/byteswap (Makefile.am): Remove explicit dependency on
76689         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76690         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76691         $(FNMATCH_H), redundant through BUILT_SOURCES.
76692         * modules/getopt (Makefile.am): Remove explicit dependency on
76693         $(GETOPT_H), redundant through BUILT_SOURCES.
76694         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76695         redundant through BUILT_SOURCES.
76696         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76697         redundant through BUILT_SOURCES.
76698         * modules/stdbool (Makefile.am): Remove explicit dependency on
76699         $(STDBOOL_H), redundant through BUILT_SOURCES.
76700         * modules/stdint (Makefile.am): Remove explicit dependency on
76701         $(STDINT_H), redundant through BUILT_SOURCES.
76702         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76703         Remove explicit dependency on $(SYSEXITS_H).
76704         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76705
76706 2005-07-18  Simon Josefsson  <jas@extundo.com>
76707
76708         * lib/check-version.c (check_version): Accept identical versions too.
76709
76710 2005-07-18  Bruno Haible  <bruno@clisp.org>
76711
76712         * modules/lock: New file.
76713         * MODULES.html.sh (Multithreading): New section.
76714
76715 2005-07-18  Bruno Haible  <bruno@clisp.org>
76716
76717         * m4/lock.m4: New file, from GNU gettext.
76718
76719 2005-07-18  Bruno Haible  <bruno@clisp.org>
76720
76721         * lib/lock.h: New file, from GNU gettext.
76722         * lib/lock.c: New file, from GNU gettext.
76723
76724 2005-07-18  Bruno Haible  <bruno@clisp.org>
76725
76726         * lib/lock.h (gl_once_t): New type.
76727         (gl_once_define, gl_once): New macros.
76728         * lib/lock.c (fresh_once): New variable.
76729         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76730         functions.
76731
76732 2005-07-16  Simon Josefsson  <jas@extundo.com>
76733
76734         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76735         workaround, suggested by Bruno.
76736
76737 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76738
76739         * modules/xalloc (Depends-on): Add xalloc-die.
76740         * modules/xvasprintf (Depends-on): Add xalloc-die.
76741
76742 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76743
76744         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76745         with a minor change.
76746
76747 2005-07-15  Bruno Haible  <bruno@clisp.org>
76748
76749         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76750         When using lib/poll.c, define poll as rpl_poll.
76751
76752 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76753
76754         * modules/argp (Depends-on): Remove unlocked-io.
76755
76756 2005-07-14  Derek Price  <derek@ximbiot.com>
76757
76758         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76759         for glob symlink bug.
76760
76761 2005-07-14  Bruno Haible  <bruno@clisp.org>
76762
76763         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76764         Instead, test for *_unlocked function declarations directly.
76765
76766 2005-07-11  Simon Josefsson  <jas@extundo.com>
76767
76768         * modules/size_max: New file.
76769
76770         * modules/xsize: Depend on size_max module for size_max.m4.
76771
76772 2005-07-11  Simon Josefsson  <jas@extundo.com>
76773
76774         * lib/size_max.h: New file.
76775
76776 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76779         copyright symbol and the year.
76780         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76781         (version_etc_va): Use parameterized copyright notice.
76782         Reword to conform to the current GNU coding standards.
76783
76784 2005-07-11  Karl Berry  <karl@gnu.org>
76785
76786         * doc/gnulib.texi (Quoting): new node.
76787         (Initial import): more info, from Patrice.
76788
76789 2005-07-11  Bruno Haible  <bruno@clisp.org>
76790
76791         * gnulib-tool (func_usage): Document option --avoid.
76792         (Command line options): Handle --avoid.
76793         (func_acceptable): New function.
76794         (func_modules_transitive_closure): Use it.
76795
76796 2005-07-11  Bruno Haible  <bruno@clisp.org>
76797
76798         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76799         Reported by Jim Meyering.
76800
76801 2005-07-10  Bruno Haible  <bruno@clisp.org>
76802
76803         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76804         Needed when size_t is smaller than 'unsigned int'.
76805         Reported by Paul Eggert.
76806
76807 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76808
76809         * modules/argp (Depends-on): Add unlocked-io
76810
76811 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76812
76813         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76814         block of defines.
76815
76816 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76817
76818         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76819         fix now.
76820
76821 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76822         and Paul Eggert  <eggert@cs.ucla.edu>
76823
76824         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76825         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76826
76827 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76828
76829         * modules/regex (Files): Add lib/regex_internal.c,
76830         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76831         (Depends-on): Add extensions.
76832         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76833
76834 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76835
76836         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76837         pathconf.
76838         * m4/same.m4 (gl_SAME): Likewise.
76839         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76840
76841         * m4/regex.m4: Adjust to new libc regex implementation.
76842         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76843         all the .c and .h parts of (the new) regex.
76844         Quote the m4 stuff better.
76845         Check for RE_ICASE bug of old gnulib.
76846         Check for REG_STARTEND of recent libc.
76847         Rename local variables from jm_* to gl_*.
76848         Quote operand of "test -f".
76849         Say "recent enough" version of libc, not "version 2".
76850         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76851         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76852         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76853         Remove check for btowc, isascii.
76854         Require AM_LANGINFO_CODESET.
76855
76856 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * lib/regex.c, regex.h: Sync from libc.
76859         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76860         * lib/regexec.c:
76861         New files, synced from libc, except that regex_internal.h
76862         currently has a small porting fix.
76863
76864 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76865
76866         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76867         regex_internal.c, regexec.c.
76868         Add regex_internal.h too, but as a comment, since the libc version
76869         is currently broken in gnulib mode.
76870
76871 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76872
76873         Support programs like Emacs that use gnulib but not gettext.
76874         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76875         * modules/gettext-h: New file.
76876         * modules/gettext (Files): Remove lib/gettext.h.
76877         (Depends-on): Add gettext-h.
76878         (Makefile.am): Remove lib_SOURCES.
76879         * modules/argmatch, modules/c-stack, modules/closeout:
76880         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76881         * modules/execute, modules/file-type, modules/getaddrinfo:
76882         * modules/getopt, modules/human, modules/javacomp:
76883         * modules/javaexec, modules/mkdir-p, modules/obstack:
76884         * modules/openat, modules/pagealign_alloc, modules/pipe:
76885         * modules/quotearg, modules/regex, modules/rpmatch:
76886         * modules/unicodeio, modules/userspec, modules/version-etc:
76887         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76888         * modules/xsetenv:
76889         Depend on gettext-h, not gettext.
76890
76891 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76892
76893         * gnulib-tool (func_import): Add support for 'public domain' license.
76894         * modules/alloca, modules/atexit, modules/memmove:
76895         Now public domain, not GPL.
76896         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76897         * modules/realloc, modules/strerror, modules/strtod:
76898         Now LGPL, not GPL.
76899
76900 2005-07-05  Bruno Haible  <bruno@clisp.org>
76901
76902         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76903         autoconf CVS. Needed for mingw.
76904
76905 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         Remove the dependency of the strftime module on the tzset module.
76908         * modules/strftime (Depends-on): Remove dependency on tzset.
76909
76910 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76911
76912         Remove the dependency of the strftime module on the tzset module.
76913         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76914         gl_FUNC_TZSET_CLOBBER.
76915
76916 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         Remove the dependency of the strftime module on the tzset module.
76919         * lib/strftime.c (my_strftime)
76920         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76921         Copy the input structure, to work around some of the bug with
76922         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76923         Solaris releases, you should also use the tzset module, but we won't
76924         require it as a dependency any more since we don't want LGPLed code
76925         to depend on GPLed code.
76926
76927 2005-07-02  Jim Meyering  <jim@meyering.net>
76928
76929         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
76930         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
76931         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
76932         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
76933
76934 2005-07-02  Jim Meyering  <jim@meyering.net>
76935
76936         * lib/backupfile.c (backup_args): Change a `0' to NULL.
76937
76938 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
76941         declares only 'struct timespec;' (!).
76942
76943 2005-07-01  Jim Meyering  <jim@meyering.net>
76944
76945         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
76946         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
76947         * lib/save-cwd.c, tempname.c:
76948         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76949         and don't include <sys/file.h>).
76950
76951 2005-06-29  Jim Meyering  <jim@meyering.net>
76952
76953         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
76954         type name.  Use the variable name instead.
76955         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
76956         Likewise.
76957
76958 2005-06-28  Simon Josefsson  <jas@extundo.com>
76959
76960         * modules/check-version (Files): Add check-version.m4.
76961
76962 2005-06-28  Simon Josefsson  <jas@extundo.com>
76963
76964         * m4/check-version.m4: New file, suggested by Jim Meyering
76965         <jim@meyering.net>.
76966
76967 2005-06-28  Simon Josefsson  <jas@extundo.com>
76968
76969         * lib/check-version.h, lib/check-version.c: New files.
76970
76971 2005-06-28  Simon Josefsson  <jas@extundo.com>
76972
76973         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
76974         collision with global variable.  Better indentation.  Don't
76975         increment buffer pointer beyond buffer end.  Based on comments
76976         from Paul Eggert <eggert@cs.ucla.edu>.
76977
76978         * lib/base64.h: Indent.
76979
76980 2005-06-28  Simon Josefsson  <jas@extundo.com>
76981
76982         * doc/gnulib.texi (Library version handling): New section.
76983
76984 2005-06-28  Jim Meyering  <jim@meyering.net>
76985
76986         * check-module (find_included_lib_files): Hard-code another
76987         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
76988         but modules/fts-lgpl (correctly) does not list those files.
76989
76990         * modules/canonicalize (Files): Add lib/pathmax.h.
76991
76992 2005-06-25  Simon Josefsson  <jas@extundo.com>
76993
76994         * modules/check-version: New file.
76995
76996 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
76997
76998         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
76999         initializer of struct addrinfo, as an indication that we don't
77000         care how many members the structure has.
77001
77002 2005-06-24  Derek Price  <derek@ximbiot.com>
77003         and Bruno Haible  <bruno@clisp.org>
77004
77005         Remove stat module & update lstat.
77006         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77007         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77008         * m4/stat.m4: Remove this file.
77009
77010 2005-06-24  Derek Price  <derek@ximbiot.com>
77011         and Bruno Haible  <bruno@clisp.org>
77012
77013         Remove stat module & update lstat.
77014         * lib/stat.c: Remove this file...
77015         (slash_aware_lstat): ...moving this content and its support...
77016         * lib/lstat.c (rpl_lstat): ...into here.
77017         * lib/lstat.h: New file.
77018
77019 2005-06-24  Derek Price  <derek@ximbiot.com>
77020         and Bruno Haible  <bruno@clisp.org>
77021
77022         Remove stat module & update lstat.
77023         * config/srclist.txt (libc sources): Remove stat.
77024
77025 2005-06-24  Derek Price  <derek@ximbiot.com>
77026         and Bruno Haible  <bruno@clisp.org>
77027
77028         Remove stat module & update lstat.
77029         * MODULES.html.sh (stat): Remove.
77030         * MODULES.html: Regenerated.
77031         * modules/lstat (Description): Correct function name.
77032         (Files): Add "lstat.h".
77033         (Depends-on): Remove stat, add xalloc, stat-macros.
77034         * modules/stat: Remove this file.
77035         (Include): Add "lstat.h", remove <sys/stat.h>.
77036
77037 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77040         (ranged_convert): Don't save conversion in a temporary struct.
77041         This causes a warning with GCC 4.0.0, and anyway in the typical
77042         case it's not worth the extra 100 bytes or so of code.
77043         (ranged_convert, __mktime_internal): When calling a function via a
77044         pointer P, use P () rather than (*P) (), as we now assume C89 or
77045         better.
77046
77047 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77048
77049         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77050         "who -r" failed to give output.  Problem reported by Tim Waugh.
77051
77052         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77053         (xcalloc): Use it to avoid needless tests.
77054         Problem reported by Jim Meyering.
77055
77056 2005-06-20  Derek Price  <derek@ximbiot.com>
77057
77058         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77059         unnecessary for Autoconfs > 2.59c.
77060
77061 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77062
77063         * lib/argp.h (__option_is_short): Check upper limit of
77064         __key. Isprint() requires its argument to have the value
77065         of an unsigned char or EOF.
77066
77067 2005-06-16  Jim Meyering  <jim@meyering.net>
77068
77069         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77070         when either N or S is zero.
77071
77072 2005-06-16  Derek Price  <derek@ximbiot.com>
77073
77074         * m4/bison.m4: Declare YACC & YFLAGS precious.
77075
77076 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77077
77078         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77079         multibyte string or pattern, fall back on unibyte matching.
77080         Problem reported by James Youngman.
77081
77082 2005-06-08  Bruno Haible  <bruno@clisp.org>
77083
77084         * modules/csharpcomp: New file.
77085         * MODULES.html.sh (C#): Add csharpcomp.
77086
77087 2005-06-08  Bruno Haible  <bruno@clisp.org>
77088
77089         * m4/csharpcomp.m4: New file, from GNU gettext.
77090
77091 2005-06-08  Bruno Haible  <bruno@clisp.org>
77092
77093         * lib/csharpcomp.h: New file, from GNU gettext.
77094         * lib/csharpcomp.c: New file, from GNU gettext.
77095         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77096
77097 2005-06-08  Bruno Haible  <bruno@clisp.org>
77098
77099         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77100         warning on mingw.
77101
77102 2005-06-07  Derek Price  <derek@ximbiot.com>
77103
77104         Sync from CVS.
77105         * lib/glob_.h: Indent nested #ifdef.
77106
77107 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77108
77109         Sync from coreutils.
77110         Use "file name" when talking about file names, instead of "filename"
77111         or "path", as per the GNU coding standards.
77112         * lib/mkdir-p.c: Renamed from makepath.c.
77113         (make_dir_parents): Renamed from make_path.  All callers changed.
77114         * lib/mkdir-p.h: Likewise.  All includers changed.
77115         * lib/filenamecat.c: Renamed from path-concat.c.
77116         (file_name_concat): Renamed from path_concat.  All callers changed.
77117         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77118         * lib/filenamecat.h: Likewise.  All includers changed.
77119         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77120         in comments or local variable names.
77121         * lib/basename.c: Likewise.
77122         * lib/canonicalize.c, canonicalize.h: Likewise.
77123         * lib/dirname.c, dirname.h: Likewise.
77124         * lib/euidaccess.c: Likewise.
77125         * lib/exclude.c: Likewise
77126         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77127         * lib/fsusage.c, fsuage.h: Likewise.
77128         * lib/fts.c, fts_.h: Likewise.
77129         * lib/getcwd.c: Likewise.
77130         * lib/getloadavg.c: Likewise.
77131         * lib/mkstemp.c: Likewise.
77132         * lib/mountlist.c, mountlist.h: Likewise.
77133         * lib/openat.c, openat.h: Likewise.
77134         * lib/readlink-stub.c: Likewise.
77135         * lib/readutmp.c, readutmp.h: Likewise.
77136         * lib/rename.c: Likewise.
77137         * lib/rmdir.c: Likewise.
77138         * lib/same.c: Likewise.
77139         * lib/savedir.c: Likewise.
77140         * lib/stripslash.c: Likewise.
77141         * lib/tempname.c: Likewise.
77142         * lib/xreadlink.c: Likewise.
77143         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77144         All uses changed.
77145         * lib/exclude.h: Likewise.
77146
77147         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77148         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77149         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77150         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77151         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77152         files have been getting away with it for years (MORE/BSD 4.3
77153         is extinct now).
77154         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77155         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77156
77157         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77158         Define to 256, not 255, as per modern POSIX.
77159
77160 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77161
77162         Sync from coreutils.
77163         Use "file name" when talking about file names, instead of "filename"
77164         or "path", as per the GNU coding standards.
77165         * MODULES.html.sh: mkdir-p renamed from makepath.
77166         filenamecat renamed from path-concat.
77167         * modules/filenamecat: Renamed from modules/path-concat.
77168         (Files): filenamecat.h and filenamecat.c renamed from
77169         path-concat.h and path-concat.c.
77170         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77171         (Include): filenamecat.h, not path-concat.h.
77172         * modules/mkdir-p: Renamed from modules/makepath.
77173         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77174         makepath.c.
77175         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77176         (Include): mkdir-p.h, not makepath.h.
77177
77178 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77179
77180         Sync from coreutils.
77181         * m4/mkdir-p.m4: Renamed from makepath.m4.
77182         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77183         Rename files from makepath.c to mkdir-p.c, and from
77184         makepath.h to mkdir-p.h.
77185         * m4/filenamecat.m4: Renamed from path-concat.m4.
77186         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77187         Rename files from path-concat.c to filenamecat.c,
77188         and from path-concat.h to filenamecat.h.
77189         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77190         "file name" in local variables or comments.
77191         * m4/rename.m4: Likewise.
77192
77193 2005-06-01  Bruno Haible  <bruno@clisp.org>
77194
77195         * modules/csharpexec: New file.
77196         * MODULES.html.sh (C#): New section.
77197
77198 2005-06-01  Bruno Haible  <bruno@clisp.org>
77199
77200         * m4/csharp.m4: New file, from GNU gettext.
77201         * m4/csharpexec.m4: New file, from GNU gettext.
77202
77203 2005-06-01  Bruno Haible  <bruno@clisp.org>
77204
77205         * lib/csharpexec.h: New file, from GNU gettext.
77206         * lib/csharpexec.c: New file, from GNU gettext.
77207         * lib/csharpexec.sh.in: New file, from GNU gettext.
77208
77209 2005-05-31  Derek Price  <derek@ximbiot.com>
77210             Paul Eggert  <eggert@cs.ucla.edu>
77211
77212         Sync from cvs.
77213         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77214
77215 2005-05-31  Derek Price  <derek@ximbiot.com>
77216             Paul Eggert  <eggert@cs.ucla.edu>
77217
77218         Sync from cvs.
77219         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77220
77221 2005-05-29  Derek Price  <derek@ximbiot.com>
77222
77223         * config/srclist.txt (glob_.h, glob.c): Add these files.
77224
77225 2005-05-29  Derek Price  <derek@ximbiot.com>
77226
77227         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77228         * modules/glob: New file.
77229         * modules/getlogin_r: Add link to POSIX spec in description.
77230
77231 2005-05-29  Derek Price  <derek@ximbiot.com>
77232             Paul Eggert  <eggert@cs.ucla.edu>
77233
77234         * m4/glob.m4: New file.
77235
77236 2005-05-29  Derek Price  <derek@ximbiot.com>
77237             Paul Eggert  <eggert@cs.ucla.edu>
77238
77239         * lib/glob_.h, lib/glob.c: New files.
77240
77241 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77244         * modules/fts-lgpl (Depends-on): Remove gettext.
77245
77246 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77247
77248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77249         and don't require gt_INTTYPES_PRI.
77250
77251 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77252
77253         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77254
77255         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77256         the configuration hassle isn't worth it.
77257         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77258         (LONGEST_MODIFIER, PRIuMAX): Remove.
77259
77260 2005-05-27  Bruno Haible  <bruno@clisp.org>
77261
77262         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77263
77264 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77267         _POSIX_PTHREAD_SEMANTICS for Solaris.
77268
77269 2005-05-25  Derek Price  <derek@ximbiot.com>
77270
77271         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77272
77273 2005-05-25  Derek Price  <derek@ximbiot.com>
77274             Paul Eggert  <eggert@cs.ucla.edu>
77275
77276         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77277         * lib/getlogin_r.c, getlogin_r.h: New files.
77278
77279 2005-05-25  Bruno Haible  <bruno@clisp.org>
77280             Derek Price  <derek@ximbiot.com>
77281
77282         * lib/getlogin_r.h: Simplify API documentation.
77283
77284 2005-05-23  Derek Price  <derek@ximbiot.com>
77285
77286         * modules/minmax (Files): Add m4/minmax.m4.
77287         (configure.ac): Add gl_MINMAX.
77288
77289 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77290
77291         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77292         so that unistd-safer.h (GPL'ed code) need not be included.
77293
77294 2005-05-22  Bruno Haible  <bruno@clisp.org>
77295
77296         * m4/minmax.m4: New file.
77297         Based on a patch by Derek Price <derek@ximbiot.com>.
77298
77299 2005-05-22  Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77302         (INT64_MIN): Fix definition.
77303         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77304
77305         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77306         NEED_SIGNED_INT_TYPES.
77307
77308         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77309         HAVE_SYSTEM_INTTYPES.
77310
77311 2005-05-22  Bruno Haible  <bruno@clisp.org>
77312
77313         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77314         Also include <sys/param.h> if it defines MIN, MAX.
77315         Based on a patch by Derek Price <derek@ximbiot.com>.
77316
77317 2005-05-21  Jim Meyering  <jim@meyering.net>
77318
77319         * modules/fts (Files): Add m4/inttypes-pri.m4.
77320         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77321
77322 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77323
77324         New fts module.
77325         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77326         (setup_dir, free_dir): New functions.
77327         (enter_dir, leave_dir): Define trivial
77328         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77329         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77330         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77331         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77332         Move to fts-cycle.c.
77333         (fts_open): Use setup_dir.
77334         (fts_close): Use free_dir.
77335         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77336         This adds a label and some gotos, but the alternatives were messier.
77337         Check for memory allocation failure when entering a dir.
77338         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77339         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77340         (FTS): New member fts_cycle, that is a union that contains the
77341         old active_dir_ht and cycle_state.  All uses changed to mention
77342         fts_cycle.ht and fts_cycle.state.
77343         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77344         fts.c, with the following changes:
77345         (setup_dir, free_dir): New functions.
77346         (enter_dir): Now returns bool.  Return true if successful, false
77347         if memory exhausted.  All callers changed.
77348         Do not bother partly cleaning up on
77349         memory allocation failure; that is free_dir's job.
77350         However, free ad if hash_insert fails, to avoid memory leak.
77351         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77352         fts->fts_options to see which union member to use.
77353
77354 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77355
77356         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77357         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77358
77359 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77362
77363 2005-05-20  Jim Meyering  <jim@meyering.net>
77364
77365         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77366         Now a macro, to pacify GCC.
77367
77368 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77369
77370         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77371         of -1.
77372
77373 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77374
77375         * lib/chown.c (rpl_chown): Return -1 on failure.
77376
77377 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77378
77379         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77380         Don't check for stddef.h.
77381         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77382         don't use its results.
77383         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77384         since we include them unconditionally.  Don't require
77385         AM_STDBOOL_H, since stdbool is a prerequisite.
77386         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77387         since we assume C89 or better.
77388         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77389         as we don't use their results.
77390         Don't check for fchdir, memmove, memset, strrchr, as we use
77391         them unconditionally.
77392         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77393         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77394
77395 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77396
77397         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77398         Include <stddef.h> unconditionally, since we assume C89 now.
77399         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77400         * lib/fts.c: Include fts_.h first, to check interface.
77401         Do not include intprops.h; no longer needed.
77402         Include cycle-check.h and hash.h, since fts_.h no longer does.
77403         Remove unnecessary casts of closedir to void.
77404         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77405         decide whether to decrement nlinks.
77406         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77407         (FTS): Use struct hash_table * instead of Hash_table, so that
77408         we no longer need to include hash.h here.
77409
77410 2005-05-18  Jim Meyering  <jim@meyering.net>
77411
77412         * modules/dirfd (License): Change to LGPL.  Most of the code
77413         is already in the public domain.
77414
77415 2005-05-18  Jim Meyering  <jim@meyering.net>
77416
77417         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77418         Reported by Yoann Vandoorselaere.
77419
77420 2005-05-17  Jim Meyering  <jim@meyering.net>
77421
77422         * m4/fts.m4: New file, from coreutils.
77423
77424 2005-05-17  Jim Meyering  <jim@meyering.net>
77425
77426         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77427
77428 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77429
77430         Sync from coreutils.
77431         * m4/unlinkdir.m4: New file.
77432
77433 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77434
77435         Sync from coreutils.
77436         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77437         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77438         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77439         White space changes only.
77440         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77441         special.
77442         * lib/yesno.c: Include getline.h, not ctype.h.
77443         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77444         Use getline to remove arbitrary restriction on response length.
77445
77446 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77447
77448         * config/srclist-update: Spell out "Street" in FSF postal
77449         mail address; this is the style the FSF seems to prefer.
77450
77451         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77452         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77453         this updates FSF postal mail address.
77454
77455         Sync from coreutils.
77456         * modules/unlinkdir: New file.
77457         * modules/yesno (Depends-on): Add getline.
77458         * MODULES.html.sh (File system functions): Add unlinkdir.
77459
77460 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77461
77462         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77463         lib/strsep.h:
77464         Change the initial comment to refer to GPL, not LGPL.
77465         gnulib-tool will change it to LGPL as needed.
77466
77467         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77468         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77469         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77470         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77471         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77472         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77473         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77474         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77475         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77476         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77477         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77478         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77479         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77480         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77481         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77482         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77483         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77484         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77485         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77486         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77487         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77488         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77489         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77490         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77491         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77492         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77493         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77494         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77495         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77496         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77497         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77498         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77499         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77500         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77501         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77502         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77503         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77504         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77505         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77506         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77507         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77508         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77509         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77510         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77511         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77512         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77513         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77514         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77515         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77516         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77517         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77518         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77519         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77520         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77521         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77522         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77523         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77524         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77525         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77526         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77527         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77528         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77529         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77530         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77531         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77532         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77533         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77534         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77535         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77536         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77537         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77538         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77539         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77540         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77541         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77542         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77543         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77544         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77545         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77546         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77547         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77548         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77549         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77550         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77551         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77552         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77553         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77554         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77555         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77556         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77557         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77558         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77559         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77560         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77561         lib/yesno.c, lib/yesno.h:
77562         Update FSF postal mail address.
77563
77564 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77565
77566         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77567         tests/test-memmem.c, tests/test-stpncpy.c:
77568         Update FSF postal mail address.
77569
77570 2005-05-13  Bruno Haible  <bruno@clisp.org>
77571
77572         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77573         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77574         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77575         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77576         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77577         Add support for 64-bit integers in the MSVC compiler.
77578
77579 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77580
77581         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77582
77583 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77584
77585         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77586
77587 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77588
77589         * doc/getdate.texi (General date syntax): Don't say that date
77590         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77591         Problem reported by Nic Ferrier.
77592
77593 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77594
77595         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77596         specified in ai_socktype. Fix invalid ai_protocol
77597         check. ai_protocol is usually set to 0 or depending on
77598         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77599         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77600         ai_socktype / ai_protocol in the returned addrinfo structure.
77601
77602 2005-05-10  Simon Josefsson  <jas@extundo.com>
77603
77604         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77605         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77606
77607 2005-05-10  Karl Berry  <karl@gnu.org>
77608
77609         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77610         (from http://www.gnu.org/licenses).
77611         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77612         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77613         fdl.texi suffices.
77614
77615 2005-05-10  Karl Berry  <karl@gnu.org>
77616
77617         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77618         (COPYING.DOC): remove.
77619
77620         * config/srclist-update: new FSF address.
77621
77622 2005-05-10  Derek Price  <derek@ximbiot.com>
77623
77624         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77625         possible.
77626
77627 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77628             Bruno Haible  <bruno@clisp.org>
77629
77630         * modules/inet_ntop: New file.
77631         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77632         inet_ntop.
77633
77634 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77635             Bruno Haible  <bruno@clisp.org>
77636
77637         * m4/inet_ntop.m4: New file.
77638
77639 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77640             Bruno Haible  <bruno@clisp.org>
77641
77642         * lib/inet_ntop.h: New file.
77643         * lib/inet_ntop.c: New file, from glibc with modifications.
77644
77645 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77646
77647         * modules/time_r (License): Change to LGPL.
77648         * modules/extensions (License): Change to LGPL.  Actually,
77649         the license is more permissive than that, but currently gnulib-tool
77650         doesn't know how to handle more-permissive licenses.
77651
77652         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77653         Problem reported by Dave Love.
77654
77655 2005-05-08  Jim Meyering  <jim@meyering.net>
77656
77657         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77658         blank.
77659
77660 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77661
77662         * modules/argmatch (Depends-on): Add stdbool.
77663         * modules/backupfile (Depends-on): Likewise.
77664         * modules/chdir-long (Depends-on): Likewise.
77665         * modules/closeout (Depends-on): Likewise.
77666         * modules/cycle-check (Depends-on): Likewise.
77667         * modules/dirname (Depends-on): Likewise.
77668         * modules/fnmatch (Depends-on): Likewise.
77669         * modules/fsusage (Depends-on): Likewise.
77670         * modules/fwriteerror (Depends-on): Likewise.
77671         * modules/getcwd (Depends-on): Likewise.
77672         * modules/getloadavg (Depends-on): Likewise.
77673         * modules/hard-locale (Depends-on): Likewise.
77674         * modules/makepath (Depends-on): Likewise.
77675         * modules/mountlist (Depends-on): Likewise.
77676         * modules/nanosleep (Depends-on): Likewise.
77677         * modules/posixtm (Depends-on): Likewise.
77678         * modules/quotearg (Depends-on): Likewise.
77679         * modules/readtokens (Depends-on): Likewise.
77680         * modules/readtokens0 (Depends-on): Likewise.
77681         * modules/readutmp (Depends-on): Likewise.
77682         * modules/save-cwd (Depends-on): Likewise.
77683         * modules/strftime (Depends-on): Likewise.
77684         * modules/userspec (Depends-on): Likewise.
77685         * modules/utimecmp (Depends-on): Likewise.
77686         * modules/xgetcwd (Depends-on): Likewise.
77687         * modules/xnanosleep (Depends-on): Likewise.
77688         * modules/xstrtod (Depends-on): Likewise.
77689         * modules/yesno (Depends-on): Likewise.
77690
77691 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77692
77693         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77694         needless checks.
77695
77696 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77697
77698         Merge from coreutils.  Among other things,
77699         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77700         * lib/fd-safer.c: New file.
77701         * lib/fcntl-safer.h, open-safer.c: Remove.
77702         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77703         * lib/dup-safer.c: Include unistd-safer.h first.
77704         Don't include errno.h.
77705         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77706         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77707         * lib/file-type.c: Rely on file-type.h change.
77708         * lib/getloadavg.c: Include unistd-safer.h.
77709         (getloadavg): Use safer open.
77710         * lib/getusershell.c: Include "stdio-safer.h".
77711         (getusershell): Use safer fopen.
77712         * lib/long-options.c (long_options): Use NULL rather than 0.
77713         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77714         'free'.
77715         * lib/modechange.c: Likewise.
77716         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77717         (MODE_DONE): New constant.
77718         (struct mode_change): Remove 'next' member.
77719         (make_node_op_equals): New function; like the old one of the
77720         same name, except it allocates an array.
77721         (mode_compile, mode_create_from_ref): Use it.
77722         (mode_compile): Allocate result as an array, not a linked list.
77723         Parse octal string ourself, so that we catch mistakes like "+0".
77724         (mode_adjust): Arg is an array, not a linked list.
77725         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77726         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77727         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77728         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77729         Remove.  This is now stat-macros.h's job.
77730         (talloc): Remove.  All callers replaced by xalloc, so that
77731         our invokers don't have to worry about reporting memory failures.
77732         (make_node_op_equals): Remove.
77733         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77734         New constants.
77735         (struct mode_change): Moved here from modechange.h.
77736         (mode_append_entry): Remove.
77737         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77738         apps to have incorrect behavior.  Use simpler algorithm for head
77739         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77740         Detect more invalid usages rather than having somewhat-random behavior.
77741         Don't insert an "a=" action, as that leads to incorrect behavior.
77742         (mode_compile, mode_create_from_ref): Return NULL on error instead
77743         of an enum, since now there's only one way to have an error.  All
77744         callers changed.
77745         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77746         at the correct time.  Simplify calculation of "+u" and its ilk.
77747         Don't mishandle "+X".
77748         (mode_free): Remove "register" and localize decls.
77749         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77750         (struct mode_change): Move to modechange.c; callers don't
77751         need to see this stuff.
77752         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77753         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77754         (mode_change, mode_adjust): Reflect the new signatures noted above.
77755         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77756         that might redefine system include files.
77757         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77758         (my_usleep): Use NULL rather than (void *) 0.
77759         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77760         Use siginterrupt to specify that system calls should be interrupted.
77761         (rpl_nanosleep): Move initialization of suspended closer to call of
77762         my_usleep.
77763         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77764         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77765         (desirable_utmp_entry): New function.
77766         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77767         using x2nrealloc, to simplify logic.
77768         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77769         size calculation.  Do not assume utmp file is a regular file.
77770         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77771         (READ_UTMP_CHECK_PIDS): New constant.
77772         * lib/save-cwd.c: Include unistd-safer.h.
77773         (save_cwd): Use fd_safer.
77774         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77775         [!_LIBC] Include "stat-macros.h" instead.
77776         * lib/unistd-safer.h (fd_safer): New decl.
77777
77778 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77779
77780         * modules/getloadavg (Depends-on): Add unistd-safer.
77781         * modules/getusershell (Depends-on): Add stdio-safer.
77782         * modules/lstat (Depends-on): Remove xalloc.
77783         * modules/mkstemp (Depends-on): Add stat-macros.
77784         * modules/modechange (Depends-on): Remove xstrtol.
77785         Add stat-macros, xalloc.
77786         * modules/save-cwd (Depends-on): Add unistd-safer.
77787         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77788         * modules/unistd-safer (Files): Add lib/fd-safer.c
77789         (Makefile.am): Remove lib_SOURCES.
77790
77791         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77792         Remove fcntl-safer; unistd-safer supersedes it.
77793
77794 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77795
77796         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77797         AC_HEADER_STAT.
77798         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77799         (gl_PREREQ_CHOWN): Remove.
77800         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77801         it.  Don't require AC_HEADER_STAT.
77802         (gl_PREREQ_LSTAT): Remove.
77803         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77804         Don't require AC_HEADER_STAT.
77805         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77806         (gl_PREREQ_RMDIR): Remove.
77807         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77808         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77809         the stat-macros module a prerequisite.
77810         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77811         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77812         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77813         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77814         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77815         variable names.
77816         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77817         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77818         variable prefixes.
77819         * m4/fcntl-safer.m4: Remove.
77820         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77821         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77822         Invoke gl_PREREQ_FD_SAFER.
77823         (gl_PREREQ_FD_SAFER): New macro.
77824         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77825         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77826         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77827         Remove duplicate call to AC_LIBOBJ(readutmp).
77828         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77829
77830         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77831         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77832
77833 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77834
77835         * MODULES.html.sh (Misc): Add byteswap.
77836
77837 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77838
77839         * modules/getcwd (Depends-on): Add extensions.
77840         * modules/openat (Depends-on): Likewise.
77841
77842 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77843
77844         * modules/byteswap: New file.
77845
77846 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77847
77848         * m4/byteswap.m4: New file.
77849
77850 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77851
77852         * lib/byteswap_.h: New file.
77853
77854 2005-04-25  Karl Berry  <karl@gnu.org>
77855
77856         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77857
77858 2005-04-25  Albert Chin  <china@thewrittenword.com>
77859
77860         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77861         Toolkit C bug.
77862
77863 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77864
77865         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77866         (func_ln_if_changed): Remove forcibly for no error message
77867         in case file does not exist.
77868
77869 2005-04-19  Simon Josefsson  <jas@extundo.com>
77870
77871         * gnulib-tool (Options): Make --symlink mean --symbolic.
77872
77873 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77874
77875         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77876
77877 2005-04-16  Simon Josefsson  <jas@extundo.com>
77878
77879         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77880
77881 2005-04-15  Simon Josefsson  <jas@extundo.com>
77882
77883         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77884
77885 2005-04-15  Simon Josefsson  <jas@extundo.com>
77886
77887         * gnulib-tool: Rename --symlink to --symbolic.
77888
77889 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77890
77891         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77892         symbolic links to files instead of copying/moving.  Add --aux-dir,
77893         specifying directory relative --dir where auxiliary build tools
77894         are placed.
77895
77896 2005-04-14  Bruno Haible  <bruno@clisp.org>
77897
77898         * modules/allocsa (License): Change to LGPL.
77899         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77900
77901 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77902
77903         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77904         that "UTC +1 second" continues to work.  Problem reported
77905         by Dmitry V. Levin.
77906         (relunit_snumber): New rule.
77907         (relunit): Use it.
77908
77909 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77910
77911         * lib/getdate.y (universal_time_zone_table): New constant.
77912         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77913         universal_time_zone_table.
77914         (lookup_zone): Prefer universal_time_zone_table to
77915         local_time_zone_table, so that "GMT" time stamps are allowed in
77916         London during the summer.  Problem reported by Ian Abbott.
77917
77918 2005-04-12  Jim Meyering  <jim@meyering.net>
77919
77920         * lib/human.c (humblock): Set *options even when returning due to
77921         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77922         warning from gcc-4.
77923
77924 2005-04-09  Jim Meyering  <jim@meyering.net>
77925
77926         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77927         -Wuninitialized: initialize tm0.tm_year.
77928
77929 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
77930
77931         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
77932         count, since there's no maximum.  All uses changed.
77933         Add member dsts_seen.
77934         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
77935         not being INT_MAX.
77936         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
77937         Use pc_rels_seen to decide whther a date is absolute.
77938
77939         * lib/getdate.y (number): Don't overwrite year.
77940         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
77941         check.
77942
77943 2005-04-02  Simon Josefsson  <jas@extundo.com>
77944
77945         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
77946         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
77947
77948 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
77949
77950         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
77951         where no absolute path name can be longer than PATH_MAX.
77952
77953 2005-03-27  Jim Meyering  <jim@meyering.net>
77954
77955         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
77956
77957 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
77958
77959         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
77960         "one's complement" -> "ones' complement" in comment, as per Knuth.
77961         "value of type" -> "type or expression" in comment.
77962         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
77963
77964 2005-03-26  Jim Meyering  <jim@meyering.net>
77965
77966         Comment nits.
77967         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
77968         Correct typos: s/or/of/.
77969
77970 2005-03-26  Jim Meyering  <jim@meyering.net>
77971
77972         * modules/check-include-files: Move to ../ and rename to...
77973         * check-module: ...this.
77974
77975 2005-03-25  Jim Meyering  <jim@meyering.net>
77976
77977         * modules/xvasprintf (Files): Add xalloc.h.
77978
77979 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
77980
77981         * modules/gettext (Files): config/config.rpath ->
77982         build-aux/config.rpath
77983         * modules/iconv (Files): Likewise.
77984         Problem reported by Oskar Liljeblad.
77985
77986 2005-03-23  Jim Meyering  <jim@meyering.net>
77987
77988         * modules/check-include-files: New script to check for
77989         missing dependencies, multiple includes, etc.
77990
77991         * modules/c-strtold (Depends-on): Add xalloc.
77992         * modules/c-strtod (Depends-on): Add xalloc.
77993         * modules/hash (Depends-on): Add xalloc.
77994         (Files): Remove lib/xalloc.h.
77995
77996         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
77997         * modules/userspec (Files): Add lib/inttostr.h.
77998
77999 2005-03-23  Jim Meyering  <jim@meyering.net>
78000
78001         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78002
78003 2005-03-22  Jim Meyering  <jim@meyering.net>
78004
78005         * modules/stat-macros: New module.
78006         * modules/canonicalize, modules/euidaccess, modules/file-type,
78007         * modules/filemode, modules/lchown, modules/makepath,
78008         * modules/rmdir, modules/stat: Depend on new stat-macros module
78009         rather than listing lib/stat-macros.h manually.
78010         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78011
78012 2005-03-22  Jim Meyering  <jim@meyering.net>
78013
78014         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78015
78016 2005-03-22  Bruno Haible  <bruno@clisp.org>
78017
78018         * config/srclist.txt: Replace target directory 'config' with
78019         'build-aux'.
78020         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78021         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78022         ../build-aux/.
78023
78024 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         * modules/chdir-long (Depends-on): Add mempcpy.
78027
78028         * modules/acl, modules/backupfile, modules/c-strtod,
78029         modules/c-strtold, modules/canon-host, modules/canonicalize,
78030         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78031         modules/exclude, modules/exitfail, modules/file-type,
78032         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78033         modules/getdate, modules/getline, modules/getpagesize,
78034         modules/getpass, modules/getugroups, modules/group-member,
78035         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78036         modules/inttostr, modules/long-options, modules/makepath,
78037         modules/md5, modules/memcasecmp, modules/memcoll,
78038         modules/modechange, modules/mountlist, modules/path-concat,
78039         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78040         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78041         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78042         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78043         modules/strftime, modules/strndup, modules/strverscmp,
78044         modules/timespec, modules/unlocked-io, modules/userspec,
78045         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78046         modules/yesno:
78047         Remove lib_SOURCES line from Makefile.am section, as this is now
78048         done automatically by the corresponding Autoconf macro.
78049
78050 2005-03-21  Jim Meyering  <jim@meyering.net>
78051
78052         Changes imported from coreutils.
78053
78054         * lib/cycle-check.c: Don't include xalloc.h.
78055
78056         * lib/path-concat.c: Don't include assert.h.
78057         (path_concat): Remove assertion that would have triggered
78058         for ABASE starting with more than one slash.
78059         Reported by Andreas Schwab.
78060
78061         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78062         properly when ABASE is an absolute file name.
78063         Correct the description of this function.
78064         Include <assert.h>.
78065         Add an assertion and a test driver.
78066         This fixes a bug introduced on 2004-07-02.
78067         Andreas Schwab reported the resulting failure of cp --parents:
78068         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78069
78070 2005-03-21  Jim Meyering  <jim@meyering.net>
78071
78072         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78073         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78074
78075 2005-03-21  Jim Meyering  <jim@meyering.net>
78076         and  Paul Eggert  <eggert@cs.ucla.edu>
78077
78078         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78079         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78080         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78081         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78082         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78083         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78084         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78085         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78086         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78087         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78088         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78089         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78090         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78091         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78092         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78093         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78094         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78095         for these modules.
78096
78097 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78098
78099         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78100         (which shouldn't happen), generate nothing instead of returning 0
78101         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78102
78103 2005-03-16  Bruno Haible  <bruno@clisp.org>
78104
78105         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78106         HAVE_LONGLONG_64BIT.
78107
78108 2005-03-16  Bruno Haible  <bruno@clisp.org>
78109
78110         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78111         HAVE_LONGLONG_64BIT.
78112
78113 2005-03-16  Bruno Haible  <bruno@clisp.org>
78114
78115         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78116         HAVE_LONGLONG_64BIT.
78117
78118 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78119
78120         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78121         reliably distinguish strftime failure from empty output on POSIX
78122         hosts.
78123
78124 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78127         (iconv_string): Don't guess a size-zero buffer, as that might cause
78128         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78129         result would be 'too large', where 'too large' is (heuristically)
78130         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78131         overflow concerns.  This will prevent some unwanted malloc failures
78132         when the inputs are very large.
78133
78134 2005-03-15  Karl Berry  <karl@gnu.org>
78135
78136         * config/srclist.txt (config.rpath): from gettext.
78137         * config/config.rpath: update.
78138
78139 2005-03-15  Bruno Haible  <bruno@clisp.org>
78140
78141         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78142         to 'negate'.
78143
78144         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78145         variable.
78146
78147         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78148         results.
78149
78150 2005-03-14  Simon Josefsson  <jas@extundo.com>
78151
78152         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78153         <fx@gnu.org>.
78154
78155 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78158         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78159         intprops.h.
78160         * lib/strtol.c: Likewise.
78161
78162 2005-03-14  Jim Meyering  <jim@meyering.net>
78163
78164         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78165         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78166         to be nonzero so that we (and caller) can detect the difference
78167         between a valid zero-length expansion and an error return, even
78168         when the underlying strftime fails before writing anything into
78169         that location.
78170
78171 2005-03-14  Bruno Haible  <bruno@clisp.org>
78172
78173         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78174         Update from GNU gettext 0.14.3.
78175
78176 2005-03-10  Jim Meyering  <jim@meyering.net>
78177
78178         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78179
78180 2005-03-10  Jim Meyering  <jim@meyering.net>
78181
78182         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78183         so that this module works on systems without fchdir.
78184
78185 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78186
78187         Factor int-properties macros into a single file, except for
78188         glibc-related files.
78189         * lib/intprops.h: New file.
78190         * lib/getloadavg.c: Include it instead of limits.h.
78191         (INT_STRLEN_BOUND): Remove.
78192         * lib/human.c: Include intprops.h.
78193         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78194         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78195         302/1000.
78196         * lib/inttostr.h: Include intprops.h instead of limits.h.
78197         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78198         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78199         for consistency with intprops.h.
78200         (time_t_is_integer, twos_complement_arithmetic): Use them.
78201         * lib/sig2str.h: Include <signal.h>, intprops.h.
78202         (INT_STRLEN_BOUND): Remove.
78203         * lib/strftime.c (TYPE_SIGNED): Remove.
78204         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78205         * lib/strtol.c: Adjust comments to match intprops.h.
78206         * lib/userspec.c: Include intprops.h.
78207         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78208         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78209         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78210         instead of rolling our own expressions.
78211         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78212
78213         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78214         instead of int.
78215         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78216         the right thing even if adding 1900 would overflow.  Similarly
78217         for tm_mon + 1 and tm_yday + 1.
78218         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78219         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78220         (DO_SIGNED_NUMBER): New macro.
78221         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78222
78223 2005-03-07  Bruno Haible  <bruno@clisp.org>
78224
78225         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78226
78227 2005-03-07  Bruno Haible  <bruno@clisp.org>
78228
78229         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78230
78231 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78232
78233         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78234         (func_import): Only replace files via --import when they have actually
78235         changed.
78236
78237 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78238
78239         * m4/mmap-anon.m4: New file.
78240         * m4/pagealign_alloc.m4: New file.
78241
78242 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78243             Bruno Haible  <bruno@clisp.org>
78244
78245         * modules/pagealign_alloc: New file.
78246         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78247
78248 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78249             Bruno Haible  <bruno@clisp.org>
78250
78251         * lib/pagealign_alloc.h: New file.
78252         * lib/pagealign_alloc.c: New file.
78253
78254 2005-03-03  Bruno Haible  <bruno@clisp.org>
78255
78256         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78257         Use an all-permissive copyright notice, recommended by RMS.
78258
78259 2005-03-02  Bruno Haible  <bruno@clisp.org>
78260
78261         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78262         of AIX, the replacement has to be done only after <string.h> is
78263         included, therefore not in config.h. stpncpy.h does the replacement,
78264         and stpncpy.c uses it.
78265
78266 2005-03-02  Bruno Haible  <bruno@clisp.org>
78267
78268         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78269         stpncpy.c uses it.
78270
78271 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78274         The workaround isn't strictly needed for POSIX conformance, and
78275         it's too much of a pain to configure and maintain.  We'll ask
78276         people to fix their kernels instead.
78277         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78278         (NANOSLEEP_BUG_WORKAROUND): Remove.
78279         (xnanosleep): Remove the workaround.
78280
78281 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78282
78283         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78284         Reported by Derek Price.
78285         (Include): Add "timespec.h".
78286
78287         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78288
78289 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78290
78291         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78292         to detect nanosleep bug.
78293
78294 2005-03-01  Bruno Haible  <bruno@clisp.org>
78295
78296         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78297
78298 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78299
78300         * modules/gethrxtime: New file.
78301         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78302         (Depends-on): Add gethrxtime.
78303         (configure.ac): Add gl_XNANOSLEEP.
78304         (Makefile.am): Remove lib_SOURCES line.
78305
78306 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78309         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78310
78311 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78312
78313         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78314         * lib/timespec.h (gettime): Return void, since it always
78315         succeeds now.  All uses changed.
78316         * lib/gettime.c (gettime): Likewise.
78317         [HAVE_NANOTIME]: Prefer nanotime.
78318         Assume gettimeofday succeeds, as POSIX requires.
78319         Assime time () succeeds, since other code already does.
78320         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78321         (timespec_subtract): Remove.
78322         (NANOSLEEP_BUG_WORKAROUND): New constant.
78323         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78324         things considerably.  Use it only on GNU/Linux hosts, since the
78325         workaround shouldn't be needed elsewhere.
78326
78327 2005-02-24  Bruno Haible  <bruno@clisp.org>
78328
78329         * modules/gettext (Files): Add m4/glibc2.m4.
78330
78331 2005-02-24  Bruno Haible  <bruno@clisp.org>
78332
78333         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78334         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78335         * m4/progtest.m4:
78336         Update from GNU gettext 0.14.2.
78337         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78338
78339 2005-02-24  Bruno Haible  <bruno@clisp.org>
78340
78341         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78342         * lib/config.charset: Update from GNU gettext 0.14.2.
78343
78344 2005-02-24  Bruno Haible  <bruno@clisp.org>
78345
78346         * lib/gettext.h: Update from GNU gettext 0.14.2.
78347
78348 2005-02-23  Simon Josefsson  <jas@extundo.com>
78349
78350         * m4/iconvme.m4: New file.
78351
78352 2005-02-23  Jim Meyering  <jim@meyering.net>
78353
78354         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78355         change.
78356         Thanks to Bruno Haible for catching it.
78357
78358 2005-02-22  Simon Josefsson  <jas@extundo.com>
78359
78360         * modules/iconvme: New file.
78361
78362         * MODULES.html.sh: Add iconvme.
78363
78364 2005-02-22  Simon Josefsson  <jas@extundo.com>
78365
78366         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78367
78368 2005-02-22  Simon Josefsson  <jas@extundo.com>
78369
78370         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78371
78372 2005-02-22  Jim Meyering  <jim@meyering.net>
78373
78374         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78375         s/ifndef/ifdef/.
78376
78377 2005-02-20  Neil Conway  <neilc@samurai.com>
78378
78379         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78380         returned by OSX/Darwin if the specified buffer is not large
78381         enough for the hostname.
78382
78383 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78384
78385         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78386         pass it to _help, otherwise the latter coredumps trying to
78387         dereference state.root_argp.
78388
78389 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78390
78391         * modules/chdir-long (Depends-on): Add memrchr.
78392         * modules/memrchr (Files): Add lib/memrchr.h.
78393         (Include): "memrchr.h".
78394
78395 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78396
78397         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78398
78399 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78400
78401         * lib/memrchr.h: New file.
78402         * lib/chdir-long.c: Include it.
78403         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78404         Don't bother including stddef.h.
78405
78406 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78407
78408         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78409         inclusion.
78410         Include <sys/types.h>, for dev_t.
78411         (ME_DUMMY, ME_REMOTE): Move from here....
78412         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78413         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78414         Dmitry V. Levin.
78415         Include mountlist.h first, to test the interface.
78416
78417 2005-01-29  Bruno Haible  <bruno@clisp.org>
78418
78419         * lib/progname.c (program_name): Initialize.
78420         Needed when linking statically on MacOS X.
78421
78422 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78423
78424         Sync from coreutils.
78425         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78426         (Depends-on): Add c-strtod.
78427         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78428
78429 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78430
78431         Sync from coreutils.
78432         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78433
78434         Remove files that are specific to coreutils.
78435         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78436
78437 2005-01-28  Bruno Haible  <bruno@clisp.org>
78438
78439         * modules/javacomp: New file.
78440         * MODULES.html.sh (Java): Add javacomp.
78441
78442 2005-01-28  Bruno Haible  <bruno@clisp.org>
78443
78444         * m4/javacomp.m4: New file, from GNU gettext.
78445
78446 2005-01-28  Bruno Haible  <bruno@clisp.org>
78447
78448         * lib/javacomp.sh.in: New file, from GNU gettext.
78449         * lib/javacomp.h: New file, from GNU gettext.
78450         * lib/javacomp.c: New file, from GNU gettext.
78451
78452 2005-01-26  Simon Josefsson  <jas@extundo.com>
78453
78454         * lib/gai_strerror.c: Use GPL in header.
78455
78456 2005-01-26  Bruno Haible  <bruno@clisp.org>
78457
78458         * modules/javaexec: New file.
78459         * MODULES.html.sh (Java): Add javaexec.
78460
78461 2005-01-26  Bruno Haible  <bruno@clisp.org>
78462
78463         * m4/javaexec.m4: New file, from GNU gettext.
78464
78465 2005-01-26  Bruno Haible  <bruno@clisp.org>
78466
78467         * lib/javaexec.sh.in: New file, from GNU gettext.
78468         * lib/javaexec.h: New file, from GNU gettext.
78469         * lib/javaexec.c: New file, from GNU gettext.
78470
78471 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78472
78473         * modules/lchown (Depends-on): Remove lchown.h
78474
78475 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78476
78477         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78478         must be defined if the header file was not found, in order
78479         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78480
78481 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78482
78483         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78484         initializers for struct pentry_state.
78485         (__argp_error): Check return value of __asprintf
78486         (__argp_failure): Translate error message
78487
78488         * lib/argp-parse.c: Removed braces around the expansion of N_()
78489
78490 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78491
78492         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78493         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78494         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78495         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78496         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78497         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78498         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78499         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78500         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78501         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78502         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78503         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78504         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78505         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78506         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78507         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78508         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78509         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78510         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78511         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78512         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78513         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78514         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78515         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78516         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78517         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78518         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78519         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78520         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78521         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78522         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78523         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78524         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78525         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78526         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78527         Use an all-permissive copyright notice, recommended by RMS.
78528
78529 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         * modules/chdir-long (Depends-on): Remove mempcpy.
78532
78533 2005-01-21  Jim Meyering  <jim@meyering.net>
78534
78535         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78536         same value as for Solaris 9.
78537
78538         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78539         component length.  This included changing the parameter to be
78540         of type `char *' rather than `char const *'.
78541         * lib/chdir-long.h (chdir_long): Update prototype.
78542
78543         * lib/openat.c (fdopendir, fstatat): New functions.
78544         * lib/openat.h: Include headers required for use of DIR and struct
78545         stat.
78546         [AT_SYMLINK_NOFOLLOW]: Define.
78547         (fdopendir, fstatat): Add prototypes.
78548
78549 2005-01-21  Bruno Haible  <bruno@clisp.org>
78550
78551         * modules/classpath: New file.
78552         * MODULES.html.sh (Java): Add classpath.
78553
78554 2005-01-21  Bruno Haible  <bruno@clisp.org>
78555
78556         * lib/classpath.h: New file, from GNU gettext.
78557         * lib/classpath.c: New file, from GNU gettext.
78558
78559 2005-01-20  Simon Josefsson  <jas@extundo.com>
78560
78561         * modules/version-etc-fsf: New file.
78562
78563 2005-01-20  Simon Josefsson  <jas@extundo.com>
78564
78565         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78566         * lib/version-etc.c: Remove version_etc_copyright.
78567         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78568         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78569
78570 2005-01-20  Simon Josefsson  <jas@extundo.com>
78571
78572         * lib/base64.h (isbase64): Add.
78573
78574         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78575         using a unsigned prototype, don't inline.
78576         (base64_decode): Use it.
78577
78578 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78581         it.
78582
78583 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * lib/save-cwd.c (save_cwd): Remove code to support the case
78586         where fchdir is missing or flaky.
78587
78588 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78589
78590         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78591
78592 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78593
78594         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78595         AC_LIBSOURCES now does this.
78596         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78597         with new ullong_max module.
78598
78599 2005-01-19  Bruno Haible  <bruno@clisp.org>
78600
78601         * modules/sh-quote: New file.
78602         * MODULES.html.sh (Executing programs): Add sh-quote.
78603
78604 2005-01-19  Bruno Haible  <bruno@clisp.org>
78605
78606         * lib/sh-quote.h: New file, from GNU gettext.
78607         * lib/sh-quote.c: New file, from GNU gettext.
78608
78609 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78610
78611         Merge from coreutils.
78612         * m4/ullong_max.m4: New file.
78613         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78614         (gl_MACROS): Assume localeconv exists.
78615
78616 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         Merge changes from coreutils, as described below in several
78619         changelogs dated today.
78620
78621         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78622         (O_DIRECTORY): Remove; not needed here, since "." must be
78623         a directory.  All uses removed.
78624         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78625         universal on Suns, and we also need to test for IRIX.
78626         Revamp code to use 'if' rather than '#if'.
78627         Avoid unnecessary comparison of cwd->desc to 0.
78628
78629         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78630         for known valid error numbers rather than observed invalid ones.
78631
78632 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * modules/ullong_max: New file.
78635
78636         * modules/chdir-long, modules/openat: New files.
78637         * modules/save-cwd (Depends-on): Depend on chdir-long.
78638         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78639
78640 2005-01-18  Jim Meyering  <jim@meyering.net>
78641
78642         Merge from coreutils.
78643         * m4/chdir-long.m4, m4/openat.m4: New files.
78644         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78645         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78646         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78647         is sane and DOES follow symlinks.  Besides, testing 20 different
78648         systems found no broken chown implementations.
78649         Prompted by a change in rsync's copy of this macro.
78650         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78651
78652         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78653
78654         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78655         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78656         NULL-means-set-to-current-time semantics.
78657         Remove temporary file immediately, rather than waiting
78658         for configure's at-exit trap code to do it.
78659
78660 2005-01-18  Jim Meyering  <jim@meyering.net>
78661
78662         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78663
78664         * lib/utimens.c (futimens): Account for the fact that futimes
78665         can also fail with errno == ENOSYS or errno == ENOENT.
78666         Patch from Dmitry V. Levin.
78667
78668         Change the name of the robust chdir function from chdir to chdir_long.
78669         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78670         (restore_cwd): Use chdir_long, not chdir.
78671         * lib/chdir-long.c: Renamed from chdir.c.
78672         * lib/chdir-long.h: Renamed from chdir.h.
78673         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78674         Hurd.
78675
78676 2005-01-18  Bruno Haible  <bruno@clisp.org>
78677
78678         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78679         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78680         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78681         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78682         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78683         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78684         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78685         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78686         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78687         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78688         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78689         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78690         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78691         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78692         Use an all-permissive copyright notice, recommended by RMS.
78693
78694 2005-01-18  Bob Proulx  <bob@proulx.com>
78695
78696         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78697         simplify offsetof() macro construct to avoid compile failure with
78698         native HP-UX 11.0 ANSI C compiler.
78699
78700 2005-01-17  Bruno Haible  <bruno@clisp.org>
78701
78702         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78703         redundant because stpncpy.m4 takes care of it.
78704
78705 2005-01-17  Bruno Haible  <bruno@clisp.org>
78706
78707         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78708
78709 2005-01-17  Bruno Haible  <bruno@clisp.org>
78710
78711         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78712         used.
78713
78714 2005-01-17  Bruno Haible  <bruno@clisp.org>
78715
78716         * lib/fwriteerror.h (fwriteerror): Change specification to include
78717         fclose.
78718         * lib/fwriteerror.c: Include <stdbool.h>.
78719         (fwriteerror): At the end, close the file stream. Record whether
78720         stdout was already closed.
78721
78722 2005-01-17  Bruno Haible  <bruno@clisp.org>
78723
78724         * lib/execute.c (environ): Declare if needed.
78725         * lib/pipe.c (environ): Likewise.
78726         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78727
78728 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78729
78730         * modules/argp: Depend on vsnprintf
78731
78732 2005-01-10  Jim Meyering  <jim@meyering.net>
78733
78734         * modules/closeout (Depends-on): Add atexit.
78735
78736 2005-01-06  Bruno Haible  <bruno@clisp.org>
78737
78738         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78739
78740 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78741
78742         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78743         definitions to be after all include files, to avoid collisions.
78744         Problem reported by Bob Proulx.
78745
78746 2005-01-04  Jim Meyering  <jim@meyering.net>
78747
78748         Changes imported from coreutils.
78749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78750         as the mkstemp template, use a temporary directory and an
78751         8.3-friendly template to avoid trouble on systems like DJGPP.
78752         Reported by Juan M. Guerrero via Stepan Kasal.
78753         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78754         close. Remove the temporary directory right away, rather than waiting
78755         for configure's at-exit trap code to do it.
78756         Suggestion from Stepan Kasal.
78757
78758 2005-01-01  Simon Josefsson  <jas@extundo.com>
78759
78760         * gnulib-tool: Print #include directives when --import'ing.
78761
78762 2004-12-28  Simon Josefsson  <jas@extundo.com>
78763
78764         * tests/test-base64.c: Include required header files.  Remove
78765         unused variables.
78766
78767 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78768
78769         * modules/error (Depends-on): Remove gettext.
78770
78771 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78772
78773         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78774         not needed.  This removes a dependency on the gettext module.
78775         [defined _LIBC]: Do not include <libintl.h>; not needed.
78776
78777 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78780         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78781
78782 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78785         HAVE_DECL_STRTOLD.
78786
78787 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78788
78789         * modules/getdate (Depends-on): Remove alloca-opt.
78790
78791 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78792
78793         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78794
78795 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78796
78797         * lib/argp-parse.c: Include <stddef.h>.
78798         (alignof, alignto): New macros.
78799         (parser_init): Don't assume that void * is aligned sufficiently
78800         for struct option.
78801
78802         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78803         need to extend the stack.
78804         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78805         large.
78806
78807 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78808
78809         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78810
78811 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78812
78813         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78814         (2004-10-24) change.  Apparently this was a false alarm.
78815
78816         * modules/getdate: Depend on alloca-opt, not alloca.
78817
78818 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78819
78820         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78821         Remove now-obsolete comment about AIX.
78822         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78823         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78824         (YYMAXDEPTH): New macro.
78825
78826 2004-12-18  Simon Josefsson  <jas@extundo.com>
78827
78828         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78829
78830 2004-12-18  Bruno Haible  <bruno@clisp.org>
78831
78832         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78833
78834 2004-12-18  Bruno Haible  <bruno@clisp.org>
78835
78836         * lib/fatal-signal.c (fatal_signals): Make non-const.
78837         (init_fatal_signals): New function.
78838         (uninstall_handlers, install_handlers): Ignore signals that were set to
78839         SIG_IGN.
78840         (at_fatal_signal): Call init_fatal_signals.
78841         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78842         SIG_IGN.
78843         Reported by Paul Eggert.
78844
78845 2004-12-18  Bruno Haible  <bruno@clisp.org>
78846
78847         * doc/alloca.texi: New file.
78848         * doc/alloca-opt.texi: New file.
78849
78850 2004-12-17  Jim Meyering  <jim@meyering.net>
78851
78852         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78853         Otherwise, install-sh could exit with improper exit status when
78854         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78855
78856 2004-12-16  Simon Josefsson  <jas@extundo.com>
78857
78858         * tests/test-base64.c: Add license.
78859
78860 2004-12-15  Stepan Kasal  <address@hidden>
78861
78862         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78863
78864 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78865
78866         * modules/getcwd (Files): Add m4/d-ino.m4.
78867         Suggested by Mark D. Baushke.
78868
78869 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78870
78871         * lib/getdate.y (textint): New member "negative".
78872         (time_zone_hhmm): New function.
78873         Expect 14 shift-reduce conflicts, not 13.
78874         (o_colon_minutes): New rule.
78875         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78876         (yylex): Set the "negative" member of signed numbers.
78877
78878 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78879
78880         * doc/getdate.texi (Time of day items, Time zone items):
78881         Describe new formats +00:00, UTC+00:00.
78882
78883 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78886         spurious "-l"s.  Problem reported by Stepan Kasal.
78887
78888 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78891         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78892
78893 2004-12-04  Simon Josefsson  <jas@extundo.com>
78894
78895         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78896         Vandoorselaere <yoann@prelude-ids.org>.
78897
78898 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78899
78900         Changes imported from coreutils.
78901         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78902         exist.
78903         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78904
78905 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78906
78907         Changes imported from coreutils.
78908         * lib/hard-locale.c: Assume <locale.h> exists.
78909         Include "strdup.h".
78910         (GLIBC_VERSION): New macro.
78911         (hard_locale): Assume setlocale exists.
78912         Rewrite to avoid #ifdef.
78913         Use strdup rather than malloc + strcpy.
78914         * lib/human.c: Assume <locale.h> exists.
78915         (human_readable): Assume localeconv exists.
78916
78917 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78918
78919         * modules/hard-locale (Depends-on): Add strdup.
78920
78921 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78922
78923         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78924         convert T2, not T.  (Imported from libc.)
78925
78926 2004-11-30  Simon Josefsson  <jas@extundo.com>
78927
78928         * modules/restrict (License): Change to LGPL.
78929
78930 2004-11-30  Simon Josefsson  <jas@extundo.com>
78931
78932         * m4/restrict.m4: Add copyright and copying conditions.
78933
78934 2004-11-30  Simon Josefsson  <jas@extundo.com>
78935
78936         * m4/base64.m4: New file.
78937
78938 2004-11-30  Simon Josefsson  <jas@extundo.com>
78939
78940         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
78941         base64.
78942
78943         * tests/test-base64.c: New file.
78944
78945         * modules/base64: New file.
78946
78947 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78948
78949         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
78950         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
78951
78952         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
78953
78954 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
78955
78956         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
78957         (__getcwd.c): Don't restore errno; glibc doesn't.
78958         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
78959         first, falling back to our code only if its results look suspicious.
78960         Ensure that the resulting buffer is only as large as necessary.
78961
78962         * lib/readutmp.c: Include readutmp.h first.
78963         Include <errno.h>, since readutmp.h no longer does that.
78964         * lib/readutmp.h: Don't include <errno.h>,
78965         <sys/param.h>, <time.h>; not needed to establish interface.
78966         (errno): Remove decl.
78967         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
78968         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
78969         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
78970
78971 2004-11-28  Simon Josefsson  <jas@extundo.com>
78972
78973         * lib/base64.h, base64.c: New file.
78974
78975 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
78976
78977         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
78978
78979 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
78982         (Depends-on): Remove pathmax, same.  Add mempcpy.
78983         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
78984         (Makefile.am): Append getcwd.h to lib_SOURCES.
78985         (Include): Add getcwd.h.
78986         (Maintainer): Change from Jim Meyering to "all, glibc",
78987         since getdate now uses intended-for-glibc code.
78988         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
78989         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
78990
78991 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78992
78993         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
78994         HP's ANSI C compiler.
78995         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
78996         Declaring int functions causes warnings on some modern systems and
78997         shouldn't be needed to compile on ancient ones.
78998         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
78999         defined.
79000
79001         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79002         with the following changes.
79003         (__set_errno): Parenthesize properly.
79004         Include <stdbool.h>.
79005         (MIN, MAX, MATCHING_INO): New macros.
79006         (__getcwd): Define with prototype, not K&R form.
79007         Use heuristics to allocate default buffer on stack if possible.
79008         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79009         behavior, and to avoid the PATH_MAX limit when computing
79010         ../../../../...
79011         Use MATCHING_INO to compare inode number to file.
79012         Check for arithmetic overflow in size calculations.
79013         Fix bug in reallocation of dot array that caused getcwd to fail
79014         on directories nested deeper than 75.
79015         Be more careful about saving errno on error.
79016         Do not use realloc; use only free+malloc, as this is a bit
79017         more flexible and avoids a needless copy operation.
79018         Do not inspect st_dev and st_ino for symbolic links; POSIX
79019         doesn't specify the latter.
79020         Check for closedir errors.
79021         Avoid needless casts.
79022         Use "#ifdef weak_alias" around weak_alias, to be like other
79023         glibc code.
79024         The following changes to getcwd.c have effect only when used in
79025         gnulib; they have no effect inside glibc proper.
79026         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79027         as alloca isn't used.
79028         (alloca, __alloca): Likewise.
79029         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79030         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79031         unconditionally, as gnulib assumes C89 or better.
79032         Do not include <sys/param.h>.
79033         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79034         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79035         better.
79036         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79037         Include <dirent.h> in a way that is compatible with modern Autoconf.
79038         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79039         New macros, if not already defined.
79040         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79041         Use "_LIBC", not "defined _LIBC", for consistency.
79042         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79043         a mempcpy module.
79044         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79045         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79046         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79047         credit only to Jim Meyering and adjust the copyright dates.
79048         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79049         <stdlib.h>, <unistd.h>, "pathmax.h".
79050         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79051         (INITIAL_BUFFER_SIZE): Remove.
79052         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79053
79054 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79055
79056         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79057         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79058         Use the _ONCE methods, for efficiency.
79059         Check for fcntl.h.  In test program, include <errno.h>
79060         and <fcntl.h> if available.  Remove old K&R cruft from
79061         test program.  Check for common errors in GNU/Linux,
79062         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79063         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79064         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79065         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79066         name accordingly.
79067         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79068         accommodate new getcwd.c.
79069         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79070         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79071         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79072         that's all we need now.
79073
79074 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79075
79076         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79077         argp-parse.c depends on getopt internals, that means we should
79078         always use our getopt, to be on the safe side.
79079         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79080         order not to spoil the result of an eventual previous invocation
79081         of gl_GETOPT_SUBSTITUTE.
79082
79083 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79084
79085         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79086         redefinition warnings. To avoid them, include the defines
79087         in `#if !defined __need_getopt ... #endif'. The only place
79088         where __getopt_argv_const is used is in definitions
79089         of getopt_long and getopt_long_only below, which are as well
79090         protected by `#ifndef __need_getopt'.
79091         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79092         __need_getopt after including <stdio.h> and <unistd.h> These
79093         headers might have defined it.
79094
79095 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79098
79099 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79100
79101         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79102         (futimens): New function, which uses futimes if available.
79103         (futimens, utimens): Support timespec==NULL, with same semantics
79104         as utime and utimens.
79105         * lib/utimens.h (futimens): New decl.
79106
79107 2004-11-23  Jim Meyering  <jim@meyering.net>
79108
79109         * lib/getopt_.h: Remove trailing blanks.
79110
79111 2004-11-23  Jim Meyering  <jim@meyering.net>
79112
79113         * lib/__fpending.c: Add comment.
79114
79115 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79116
79117         * modules/canonicalize (Depends-on): Add xreadlink.
79118         Problem reported by James Youngman.
79119
79120 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79123         New macros.
79124         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79125         optopt): Use them instead of invoking ## directly; otherwise, the
79126         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79127
79128 2004-11-19  Bruno Haible  <bruno@clisp.org>
79129
79130         * lib/strtok_r.c: Move comments from here...
79131         * lib/strtok_r.h: ... to here.
79132
79133 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79134
79135         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79136         implementations that mishandle size_t overflow.
79137
79138 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79139
79140         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79141         might fail.  Problem reported by Yoann Vandoorselaere.
79142         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79143         implementations that mishandle size_t overflow.
79144
79145 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * modules/canon-host (Depends-on): Add strdup.
79148
79149 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79150
79151         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79152
79153 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79154
79155         * lib/canon-host.c: Include "strdup.h".
79156         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79157         Use strdup instead of malloc/strcpy to duplicate strings.
79158
79159         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79160         (human_space_before_unit): New constant.
79161         * lib/human.c (human_readable): Support it.
79162
79163         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79164         (xgetcwd): Set errno correctly when failing.
79165         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79166         the failure is actually due to a PATH_MAX problem.
79167
79168         Further getopt changes to make it more likely that glibc will
79169         buy the changes back.
79170         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79171         (getopt): Use it, so to preserve glibc semantic
79172         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79173         when compiling for libc.
79174         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79175         (getopt_long, getopt_long_only): Use it.
79176
79177         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79178         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79179         (getopt): Argv is now char * const *, as per standard.
79180         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79181         not char *__getopt_argv_const *.
79182         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79183         _getopt_long_only_r): Likewise.
79184         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79185         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79186         _getopt_long_r, _getopt_long_only_r): Likewise.
79187         * lib/getopt_.h (__getopt_argv_const): Remove.
79188         (getopt): Argv is now char * const *, as per standard.
79189
79190         * lib/getdate.y (tORDINAL): New token.
79191         (day, relunit): Allow it for relative times.
79192         (relative_time_table): Use tORDINAL for ordinals.
79193
79194 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79195
79196         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79197         Document that "second" isn't allowed as an ordinal number.
79198
79199 2004-11-16  Jim Meyering  <jim@meyering.net>
79200
79201         * modules/closeout (Depends-on): Add fpending.
79202
79203 2004-11-15  Jim Meyering  <jim@meyering.net>
79204
79205         * lib/closeout.c: Include "__fpending.h" once again.
79206         Include <stdbool.h>.
79207         (close_stdout): Don't fail just because stdout was closed initially,
79208         since some programs don't write to stdout in the normal course of
79209         operation (other than --version and --help), and we don't want this
79210         function to make e.g. `touch file >&-' fail.
79211         But do fail if it was closed and someone has tried to write to it.
79212         E.g., `printf foo >&-' must fail.
79213
79214 2004-11-13  Jim Meyering  <jim@meyering.net>
79215
79216         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79217
79218 2004-11-12  Simon Josefsson  <jas@extundo.com>
79219
79220         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79221         small doc fix is still pending.
79222
79223 2004-11-11  Simon Josefsson  <jas@extundo.com>
79224
79225         * modules/strtok_r: New file.
79226
79227         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79228         strtok_r.
79229
79230 2004-11-11  Simon Josefsson  <jas@extundo.com>
79231
79232         * m4/strtok_r.m4: New file.
79233
79234         * m4/getopt.m4: Replace opterr.
79235
79236 2004-11-11  Simon Josefsson  <jas@extundo.com>
79237
79238         * lib/strtok_r.h, strtok_r.c: New file.
79239
79240 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79241
79242         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79243         of replacing opterr, getopt, etc.  This should handle the
79244         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79245
79246 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79247
79248         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79249         we can stop lying to compilers about the constness of argv when we
79250         are compiled outside glibc.
79251         (getopt, getopt_long, getopt_long_only): Use it.
79252         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79253         _getopt_internal, getopt): Likewise.
79254         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79255         _getopt_long_only_r): Likewise.
79256         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79257         _getopt_long_r, _getopt_long_only_r): Likewise.
79258
79259         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79260         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79261         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79262         the other external symbols.
79263         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79264         declaration, since the above renaming now works around collisions.
79265
79266 2004-11-11  Jim Meyering  <jim@meyering.net>
79267
79268         * lib/linebreak.c: Remove trailing blanks.
79269         * lib/alloca_.h: Likewise.
79270         * lib/acosl.c: Likewise.
79271         * lib/euidaccess.c: Likewise.
79272         * lib/allocsa.h: Likewise.
79273
79274 2004-11-10  Simon Josefsson  <jas@extundo.com>
79275
79276         * m4/getaddrinfo.m4: New file.
79277
79278 2004-11-10  Simon Josefsson  <jas@extundo.com>
79279
79280         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79281
79282 2004-11-10  Simon Josefsson  <jas@extundo.com>
79283
79284         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79285         getaddrinfo.
79286
79287         * modules/getaddrinfo: New file.
79288
79289 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79290
79291         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79292
79293 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79294
79295         * lib/mktime.c (SHR): New macro, which is a portable
79296         substitute for >> that should work even on Crays.
79297         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79298         Problem reported by Mark D. Baushke in
79299         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79300         * lib/getdate.y (SHR): Likewise.
79301         (tm_diff): Use it.
79302         * lib/strftime.c (SHR): Likewise.
79303         (tm_diff): Use it.
79304         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79305         quote_these_too, so that right shifts are well defined.  All uses
79306         changed.
79307
79308 2004-11-10  Jim Meyering  <jim@meyering.net>
79309
79310         Ensure that no close failure goes unreported.
79311         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79312         return early when it seems there's nothing to flush.
79313         Don't include __fpending.h.
79314
79315 2004-11-10  Jim Meyering  <jim@meyering.net>
79316
79317         * modules/closeout (Depends-on): Remove fpending.
79318
79319 2004-11-10  Jim Meyering  <jim@meyering.net>
79320
79321         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79322
79323 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79326         gl_FUNC_STRFTIME.
79327         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79328         and AC_REQUIRE when possible, to avoid duplicate checks.
79329         Check for <wchar.h>.
79330
79331 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79332
79333         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79334
79335 2004-11-09  Bruno Haible  <bruno@clisp.org>
79336
79337         * m4/sockpfaf.m4: New file.
79338
79339 2004-11-05  Bruno Haible  <bruno@clisp.org>
79340
79341         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79342         Reported by Mark D. Baushke <mdb@cvshome.org>.
79343
79344 2004-11-04  Bruno Haible  <bruno@clisp.org>
79345
79346         2004-09-11  Bruno Haible  <bruno@clisp.org>
79347                 * allocsa.valgrind: New file.
79348         2004-02-06  Bruno Haible  <bruno@clisp.org>
79349                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79350                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79351                 Reported by Christopher Seip <chris.seip@hp.com>.
79352
79353 2004-11-04  Bruno Haible  <bruno@clisp.org>
79354
79355         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79356         (Makefile.am): Distribute it.
79357
79358 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79359
79360         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79361         with errno == ERANGE if the buffer is too small.
79362         Problem reported by Mark D. Baushke.
79363
79364 2004-11-03  Albert Chin  <china@thewrittenword.com>
79365             Paul Eggert  <eggert@cs.ucla.edu>
79366
79367         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79368         equivalent, substitute $ac_type for equivalent type rather than
79369         blindly using uint32_t *always* which won't work if uint32_t is not
79370         available.  Define _UINT32_T to work around typedef of uint32_t if
79371         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79372         2.5.1.
79373
79374 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         * m4/jm-macros.m4: Sync from coreutils.
79377         (gl_MACROS): Check for mbrlen, for pathchk.
79378         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79379
79380 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * lib/xreadlink.c (MAXSIZE): New macro.
79383         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79384         size does not exceed MAXSIZE.  Avoid cast.
79385         As suggested by Mark D. Baushke in
79386         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79387         if readlink fails with buffer size just under MAXSIZE, try again
79388         with MAXSIZE.
79389
79390 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79391
79392         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79393
79394 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79395         and  Paul Eggert  <eggert@cs.ucla.edu>
79396
79397         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79398         (get_date): Overparenthesize to avoid GCC warning.
79399
79400 2004-11-02  Bruno Haible  <bruno@clisp.org>
79401
79402         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79403         returns void.
79404
79405 2004-11-02  Bruno Haible  <bruno@clisp.org>
79406
79407         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79408         function returns void.
79409
79410 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79413         fflush_unlocked, flockfile, funlockfile, funlockfile,
79414         fputs_unlocked, putc_unlocked.
79415
79416 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79417
79418         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79419         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79420         already declared.
79421
79422 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79423
79424         * modules/getdate (Files): Add doc/getdate.texi.
79425         (Depends-on): Add setenv, xalloc.
79426
79427 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79428
79429         * lib/getdate.y: Add support for TZ="foo" within a date string.
79430         Fix some bugs near time_t boundaries.  Reject dates with
79431         out-of-range components, e.g., "Sept 31".
79432         Include <stdlib.h>, "setenv.h", "xalloc.h".
79433         (ISDIGIT_LOCALE): Remove; unused.
79434         Note that the TZ and time functions used here are not reentrant.
79435         (mktime_ok, get_tz): New functions.
79436         (TZBUFSIZE): New constant.
79437         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79438         This requires that we sometimes generate our own TZ="XXX..." setting.
79439
79440 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79441
79442         * doc/getdate.texi: New file, from coreutils with modifications for
79443         the new TZ parsing.
79444
79445 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79446
79447         * lib/mktime.c (not_equal_tm): Remove redundant check.
79448
79449 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79450
79451         * modules/regex (lib_SOURCES): Add regex.c.
79452         Reported by James Youngman in
79453         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79454
79455 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79456
79457         * lib/getdate.y: Use Bison 1.875 features, and some minor
79458         code cleanups.  This change does not affect semantics.
79459         Don't include <stdlib.h>; no longer needed.
79460         Don't include unlocked-io.h; only the "#if TEST" code uses
79461         stdio, and performance isn't crucial there.
79462         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79463         Bison 1.875 features as described below.
79464         All uses of "PC." replaced by "pc->".
79465         (YYSTYPE): Add a forward declaration.
79466         (yylex, yyerror): Use full prototypes in forward decls.
79467         Use "%pure-parser" rather than obsolescent "%pure_parser".
79468         Use %parse-param and %lex-param instead of obsolescent
79469         YYPARSE_PARAM and YYLEX_PARAM.
79470         (meridian_table, month_and_day_table, time_units_table,
79471         relative_time_table, time_zone_table, military_table,
79472         lookup_zone, lookup_word, get_date):
79473         Use NULL instead of 0 where appropriate.
79474         (to_hour): Avoid abort (), to avoid a dependency on
79475         stdlib.h.
79476         (yyerror, yylex): Now accepts parser_control * arg.
79477         (main) [TEST]: Use '\0' rather than 0 for char.
79478
79479 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79480
79481         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79482
79483 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79484
79485         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79486         It's now the caller's responsibility to handle the case where
79487         !HAVE_GETPAGESIZE && !defined getpagesize.
79488
79489         * lib/mktime.c (leapyear): Arg is long int, not int.
79490
79491 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79492
79493         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79494
79495 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79496
79497         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79498         missing.  Problem reported by James Youngman.
79499
79500 2004-10-16  Simon Josefsson  <jas@extundo.com>
79501
79502         * gnulib-tool: Fix comments.  Fix parse problem.
79503         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79504
79505 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79508         implementation of getopt_long.  Problem reported by Alexander Taler in:
79509         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79510
79511 2004-10-15  Bruno Haible  <bruno@clisp.org>
79512
79513         * gnulib-tool: Untabify. Initialize supplied_libname.
79514         (func_usage): More homogenous output.
79515         (func_modules_transitive_closure, func_modules_to_filelist,
79516         func_emit_lib_Makefile_am): New functions.
79517         (func_import): New function, extracted from big case statement. Use
79518         func_get_license, func_modules_transitive_closure,
79519         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79520         opt_lgpl. Don't use test -a, as it's not portable.
79521         (func_create_testdir): Use func_modules_transitive_closure,
79522         func_modules_to_filelist, func_emit_lib_Makefile_am.
79523
79524 2004-10-15  Bruno Haible  <bruno@clisp.org>
79525
79526         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79527
79528 2004-10-15  Bruno Haible  <bruno@clisp.org>
79529
79530         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79531         the portions belonging to each module.
79532         Suggested by Derek Robert Price <derek@ximbiot.com>.
79533
79534 2004-10-12  Simon Josefsson  <jas@extundo.com>
79535
79536         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79537         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79538         to real functions.
79539
79540 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79541
79542         * modules/vsnprintf: New file.
79543
79544 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79545
79546         * m4/vsnprintf.m4: New file.
79547
79548 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79549
79550         * lib/vsnprintf.h: New file.
79551         * lib/vsnprintf.c: New file.
79552
79553 2004-10-11  Bruno Haible  <bruno@clisp.org>
79554
79555         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79556         vsnprintf.
79557
79558 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79559
79560         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79561
79562 2004-10-07  Bruno Haible  <bruno@clisp.org>
79563
79564         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79565         fits into the provided buffer.
79566
79567 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79568
79569         * lib/diacrit.c, diacrit.h: Add GPL notice.
79570
79571         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79572         notice.
79573         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79574         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79575         This avoids a potential constant-folding bug.
79576
79577 2004-10-05  Bruno Haible  <bruno@clisp.org>
79578
79579         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79580         for the declaration of strsep.
79581
79582 2004-10-05  Bruno Haible  <bruno@clisp.org>
79583
79584         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79585
79586 2004-10-04  Simon Josefsson  <jas@extundo.com>
79587
79588         * modules/memmem: New file.
79589         * tests/test-memmem.c: New file.
79590         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79591
79592 2004-10-04  Simon Josefsson  <jas@extundo.com>
79593
79594         * m4/memmem.m4: New file.
79595
79596 2004-10-04  Simon Josefsson  <jas@extundo.com>
79597
79598         * lib/memmem.h: New file.
79599         * lib/memmem.c: New file, taken from glibc.
79600
79601 2004-10-04  Simon Josefsson  <jas@extundo.com>
79602
79603         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79604         '#ifdef USE_UNLOCKED_IO'.
79605
79606 2004-10-04  Simon Josefsson  <jas@extundo.com>
79607
79608         * config/srclist.txt: Add memmem from glibc.
79609
79610 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79611
79612         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79613
79614         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79615         modules/exclude, modules/getdate, modules/getline,
79616         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79617         modules/getusershell, modules/linebuffer, modules/md5,
79618         modules/mountlist, modules/posixtm, modules/readtokens,
79619         modules/readutmp, modules/regex, modules/sha1,
79620         modules/version-etc, modules/yesno:
79621         Remove dependency on unlocked-io.
79622
79623 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79624
79625         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79626
79627         * m4/unlocked-io.m4: Add copyright notice.
79628         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79629
79630 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79633         * lib/xmalloc.c (xmemdup): Likewise.
79634         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79635         XFREE): Remove these long-obsolescent macros.
79636         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79637         * lib/xstrdup.c: Remove.
79638
79639         * lib/regex.c (re_comp): Cast gettext return value to char *,
79640         Problem reported by Martin Neitzel via Mark D. Baushke.
79641
79642 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79643
79644         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79645         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79646         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79647         regex.c, sha1.c, version-etc.c, yesno.c:
79648         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79649         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79650         the includer's responsibility.
79651
79652         Sync from coreutils.
79653
79654         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79655         points to the start of a string, as the C Standard says the
79656         resulting behavior is undefined.
79657
79658         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79659         simple -> simple_backups, numbered_existing ->
79660         numbered_existing_backups, numbered -> numbered_backups
79661         to avoid shadowing problems.  All uses changed.
79662         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79663         * lib/backupfile.c (check_extension, numbered_backup):
79664         Rename locals to avoid shadowing 'basename'.
79665         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79666         once.
79667
79668         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79669         * lib/.cvsignore: Add getopt.h.
79670
79671 2004-10-04  Bruno Haible  <bruno@clisp.org>
79672
79673         * modules/README: New file.
79674         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79675         not a module.
79676
79677 2004-10-02  Jim Meyering  <jim@meyering.net>
79678
79679         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79680
79681 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79682
79683         * modules/strsep: New file.
79684
79685 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79686
79687         * m4/strsep.m4: New file.
79688
79689 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79690
79691         * lib/strsep.h: New file.
79692         * lib/strsep.c: New file.
79693
79694 2004-10-01  Simon Josefsson  <jas@extundo.com>
79695
79696         * lib/snprintf.c (snprintf): Handle size==0.
79697
79698 2004-10-01  Simon Josefsson  <jas@extundo.com>
79699             Bruno Haible  <bruno@clisp.org>
79700
79701         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79702         (snprintf): Declare 'args'.
79703
79704 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79705
79706         * lib/snprintf.c: Remove comments as to why each header is needed.
79707
79708 2004-10-01  Bruno Haible  <bruno@clisp.org>
79709
79710         * MODULES.html.sh: Add strsep.
79711
79712 2004-09-30  Simon Josefsson  <jas@extundo.com>
79713
79714         * modules/snprintf: New file.
79715
79716 2004-09-30  Simon Josefsson  <jas@extundo.com>
79717
79718         * m4/snprintf.m4: New file.
79719
79720 2004-09-30  Simon Josefsson  <jas@extundo.com>
79721
79722         * lib/snprintf.h, lib/snprintf.c: New files.
79723
79724 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79725
79726         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79727         (hol_entry_help): Never translate an empty string.
79728         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79729         * lib/argp.h (OPTION_NO_TRANS): New option.
79730
79731 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * modules/argp (Maintainer): Replace Simon Josefsson
79734         by Sergey Poznyakoff.
79735
79736 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79739         changes merged back into glibc.
79740
79741 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79742
79743         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79744
79745 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79746
79747         * lib/xvasprintf.c: Include xalloc.h.
79748         (xvasprintf): Use xalloc_die, not xmalloc_die.
79749
79750 2004-09-29  Bruno Haible  <bruno@clisp.org>
79751
79752         * modules/alloca-opt: New file, derived from modules/alloca.
79753         * modules/allocsa: Depend on alloca-opt instead of alloca.
79754         * modules/setenv: Likewise.
79755         * modules/vasnprintf: Likewise.
79756         * MODULES.html.sh: Add alloca-opt.
79757
79758 2004-09-28  Simon Josefsson  <jas@extundo.com>
79759
79760         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79761         LGPL, and to replace license template from GPL to LGPL.
79762
79763 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79764
79765         * modules/dummy: Change license to LGPL.
79766
79767 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79768
79769         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79770
79771 2004-09-24  Simon Josefsson  <jas@extundo.com>
79772
79773         * modules/minmax (License): Change from GPL to LGPL.
79774
79775 2004-09-23  Simon Josefsson  <jas@extundo.com>
79776
79777         * gnulib-tool (--import): Typo.
79778
79779 2004-09-23  Simon Josefsson  <jas@extundo.com>
79780
79781         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79782
79783 2004-09-22  Bruno Haible  <bruno@clisp.org>
79784
79785         * modules/*: Add 'License' field.
79786         * gnulib-tool: Accept --extract-license option.
79787         (func_get_license): New function.
79788
79789 2004-09-21  Bruno Haible  <bruno@clisp.org>
79790
79791         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79792         Reported by Simon Josefsson.
79793
79794 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79795
79796         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79797         gl_AC_TYPE_LONG_LONG.
79798
79799 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79800
79801         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79802
79803 2004-09-18  Simon Josefsson  <jas@extundo.com>
79804         and  Paul Eggert  <eggert@cs.ucla.edu>
79805
79806         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79807         calls with autoreconf.  Define GL_LIB.
79808
79809 2004-09-14  Karl Berry  <karl@gnu.org>
79810
79811         * config/srclist.txt: unsync setenv.c, sigh.
79812
79813 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79814
79815         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79816         Problem reported by Bruno Haible in:
79817         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79818
79819 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79820
79821         * config/srclist.txt: Comment out argp-pvh.c.
79822
79823 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79824
79825         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79826         in case some system header has #define'd it.  Problem reported by
79827         Soeren D. Schulze in
79828         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79829
79830 2004-09-09  Karl Berry  <karl@gnu.org>
79831
79832         * regex.[ch]: delete from the root.  These were supposed to be
79833                 synced with emacs cvs, but this has not happened for about
79834                 a year, and anyway nothing else uses emacs regex.[ch].
79835                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79836                 lib/regex[.ch] is untouched.
79837
79838 2004-09-09  Bruno Haible  <bruno@clisp.org>
79839
79840         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79841
79842 2004-09-09  Bruno Haible  <bruno@clisp.org>
79843
79844         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79845         modifications.
79846         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79847
79848 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79849
79850         * modules/xvasprintf: New file.
79851         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79852
79853 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79854
79855         * lib/xvasprintf.h: New file.
79856         * lib/xvasprintf.c: New file.
79857         * lib/xasprintf.c: New file.
79858
79859 2004-09-08  Bruno Haible  <bruno@clisp.org>
79860
79861         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79862
79863 2004-09-08  Bruno Haible  <bruno@clisp.org>
79864
79865         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79866         length is > INT_MAX.
79867         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79868         more.
79869
79870 2004-09-08  Bruno Haible  <bruno@clisp.org>
79871
79872         * lib/stdint_.h: New file, taken from GNU clisp.
79873
79874 2004-09-08  Bruno Haible  <bruno@clisp.org>
79875             Oskar Liljeblad  <oskar@osk.mine.nu>
79876
79877         * modules/stdint: New file.
79878         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79879
79880 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         Import from coreutils.
79883         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79884         strings on unbounded length.  alloca's performance benefits aren't
79885         that important here.
79886         (V_STRDUP): Remove.
79887         (parse_with_separator): New function, with most of the internals
79888         of the old parse_user_spec.  Allow user to omit both user and group,
79889         for compatibility with FreeBSD.
79890         Clone only the user name, not the entire spec.
79891         Do not set *uid, *gid unless entirely successful.
79892         Avoid memory leak in some failing cases.
79893         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79894         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79895         (parse_user_spec): Rewrite to use parse_with_separator.
79896
79897 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79898
79899         * modules/userspec: Don't depend on alloca.
79900
79901 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79904
79905 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79908         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79909         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79910
79911 2004-08-16  Simon Josefsson  <jas@extundo.com>
79912
79913         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79914         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79915         Add --dry-run for --import.
79916         Let user provided command line parameters override configure.ac
79917         settings.
79918
79919 2004-08-12  Simon Josefsson  <jas@extundo.com>
79920
79921         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79922         as discussed with Paul Eggert in threads rooted at
79923         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79924         and
79925         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79926         Before, the test was empty, and relied on ELIDE_CODE in source
79927         code.)
79928         (gl_PREREQ_GETOPT): New macro.
79929         (gl_GETOPT): Use them.
79930
79931 2004-08-12  Simon Josefsson  <jas@extundo.com>
79932
79933         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
79934         * lib/getopt_.h: Renamed from getopt.h.
79935
79936 2004-08-12  Simon Josefsson  <jas@extundo.com>
79937
79938         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
79939         Change default library name from libfoo to libgnu.
79940         Now, if you have a configure.ac that says:
79941                 gl_SOURCE_BASE(gl)
79942                 gl_M4_BASE(gl/m4)
79943                 gl_MODULES(error getopt etcetera)
79944                 gl_INIT
79945         you can import all you need by running:
79946                 ../gnulib/gnulib-tool --import
79947
79948         * modules/getopt (Files): Rename getopt.h to getopt_.h.
79949         (Makefile.am): Rewrite, use logic from argz.
79950         (Include): Use <getopt.h> instead of "getopt.h".
79951
79952 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         * modules/argp (Files): Add m4/unlocked-io.m4.
79955         (Depends-on): Add extensions.
79956
79957 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79958
79959         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
79960         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
79961         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
79962         Check for program_invocation_name, program_invocation_short_name,
79963         flockfile, funlockfile, features.h, _getopt_long_only_r.
79964
79965 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79966
79967         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
79968         its complicated substitute.
79969         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
79970         and program_invocation_name.
79971         (__argp_basename) [!_LIBC]: Remove; the only use was
79972         replaced by its body.
79973         (__argp_short_program_name): Change condition from
79974         !defined __argp_short_program_name to
79975         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
79976         to match argp-namefrob.h.
79977         (__argp_failure): Don't assume strerror_r returns char *.
79978         * lib/argp-parse.c (N_): Define unconditionally.
79979         (argp_default_options): Fill out initializers with 0 to avoid
79980         gcc warnings.
79981
79982 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
79983
79984         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
79985         getopt1.c.
79986
79987 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         Merge from coreutils.
79990
79991         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
79992
79993         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
79994         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
79995
79996 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         Merge from coreutils.
79999
80000         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80001         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80002         for Reliant Unix 5.43.
80003
80004         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80005         (union fooround): Use uintmax_t, not long int.
80006         The rest is a merge from libc:
80007         [defined _LIBC]: Include <shlib-compat.h>.
80008         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80009
80010         * lib/settime.c (settime): Recode to avoid warning with
80011         Sun Forte C 6U2.
80012
80013         * lib/strverscmp.c: Convert to UTF-8.
80014
80015 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80016
80017         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80018         m4/uintmax_t.m4.
80019
80020 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80021
80022         * modules/xalloc-die: New file.
80023         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80024
80025         * modules/md5 (Files): Add m4/uint32_t.m4.
80026         * modules/sha1: Renamed from modules/sha.
80027         (Files):
80028         Rename lib/sha.h to lib/sha1.h.
80029         Rename lib/sha.c to lib/sha1.c.
80030         Rename m4/sha.m4 to m4/sha1.m4.
80031         (lib_SOURCES): Likewise.
80032         (configure.ac): Rename gl_SHA to gl_SHA1.
80033         (Include): sha.h -> sha1.h.
80034
80035 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80036
80037         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80038         * m4/sha1.m4: Renamed from sha.m4.
80039         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80040
80041 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80042
80043         * lib/obstack.h (obstack_empty_p):
80044         Don't assume that chunk->contents is suitably aligned.
80045         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80046         Likewise. Problem reported by Benno in
80047         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80048
80049         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80050         readable.  This could be improved further but it'd take some work.
80051
80052 2004-08-08  Simon Josefsson  <jas@extundo.com>
80053
80054         * modules/xgethostname (Depends-on): Remove exit and error (not
80055         used).
80056
80057         * modules/getpass-gnu: Add getpass.h.
80058         (Depends-on): Add stdbool.
80059         * modules/getpass: Add getpass.h.
80060
80061 2004-08-08  Simon Josefsson  <jas@extundo.com>
80062
80063         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80064         Check getpass declaration.
80065
80066 2004-08-08  Simon Josefsson  <jas@extundo.com>
80067
80068         * lib/xgethostname.c: Don't include error.h (not used).
80069
80070         * lib/getpass.h: Add.
80071         * lib/getpass.c: Include getpass.h first.
80072
80073 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80074
80075         * lib/xalloc-die.c: New file.
80076         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80077         All uses removed.
80078         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80079         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80080         xalloc-die.c.
80081         (_, N_, xalloc_die): Move to xalloc-die.c.
80082         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80083         so that we needn't mess with xalloc_msg_memory_exhausted.
80084
80085         * lib/sha1.h: Renamed from sha.h.
80086         (SHA1_H): Renamed from _SHA_H.
80087         (sha1_ctx): Renamed from sha_ctx.
80088         (sha1_init_ctx): Renamed from sha_init_ctx.
80089         (sha1_process_block): Renamed from sha_process_block.
80090         (sha1_process_bytes): Renamed from sha_process_bytes.
80091         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80092         (sha1_read_ctx): Renamed from sha_read_ctx.
80093         (sha1_stream): Renamed from sha_stream.
80094         (sha1_buffer): Renamed from sha_buffer.
80095         * lib/sha1.c: Likewise; renamed from sha.c.
80096         Do not include <sys/types.h>.
80097         Include <stddef.h> rather than <stdlib.h>.
80098
80099 2004-08-08  Bruno Haible  <bruno@clisp.org>
80100
80101         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80102         FILESYSTEM_PREFIX_LEN.
80103         * lib/progreloc.c: Likewise.
80104         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80105
80106 2004-08-06  Simon Josefsson  <jas@extundo.com>
80107
80108         * modules/progname (Depends-on): Don't depend on stdbool.
80109
80110 2004-08-06  Simon Josefsson  <jas@extundo.com>
80111
80112         * modules/getsubopt: New file.
80113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80114         getsubopt.
80115
80116 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80117
80118         More merge from coreutils.
80119
80120         * m4/utimens.m4, m4/utimecmp.m4: New files.
80121         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80122         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80123         prereq.m4, sha.m4: Import changes from coreutils.
80124
80125 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80126
80127         More merge from coreutils.
80128         * modules/raise, modules/readtokens0, modules/utimens:
80129         * modules/utimecmp, module/xnanosleep: New files.
80130         * modules/strftime: Add lib/strftime.h.
80131         Change include from <time.h> to "strftime.h".
80132         * modules/yesno: Add lib/yesno.h.
80133         * modules/backupfile: Remove lib/addext.c.
80134         * modules/euidaccess: Add stat-macros.h.
80135         * modules/canonicalize, modules/euidaccess,
80136         modules/filemode, modules/lchown, modules/makepath,
80137         modules/rmdir, modules/stat: Likewise.
80138
80139 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80140
80141         Merge from tar.
80142         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80143         SIZE_MAX is a valid preprocessor constant.
80144         (__argp_basename): Change from "#ifndef _LIBC"
80145         to "#ifndef __argp_short_program_name", so that
80146         we don't compile these functions for tar.
80147
80148         More merges from coreutils.
80149         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80150         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80151         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80152         * lib/addext.c: Remove; no longer needed.
80153         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80154         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80155         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80156         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80157         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80158         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80159         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80160         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80161         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80162         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80163         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80164         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80165         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80166         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80167         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80168         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80169         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80170         Import changes from coreutils.
80171
80172 2004-08-05  Simon Josefsson  <jas@extundo.com>
80173
80174         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80175
80176 2004-08-05  Simon Josefsson  <jas@extundo.com>
80177
80178         * m4/getsubopt.m4: New file.
80179
80180 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         Merge from coreutils.
80183
80184         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80185         * m4/getcwd-path-max.m4: New files.
80186
80187         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80188         FILESYSTEM_PREFIX_LEN ->
80189         FILE_SYSTEM_PREFIX_LEN.
80190         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80191         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80192         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80193         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80194
80195         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80196         prerequisite modules now handle the DOS stuff.
80197         Don't check for unistd.h.
80198
80199 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80200
80201         Merge from coreutils.
80202
80203         * lib/.gdb-history: Remove; this doesn't belong here.
80204
80205         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80206         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80207         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80208         * lib/getcwd.c: New files.
80209
80210         * lib/dirname.h: Include <stdbool.h>.
80211         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80212         for consistency with POSIX terminology.  All uses changed.
80213         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80214         (strip_trailing_slashes): Use bool for booleans.
80215         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80216
80217         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80218         sometimes returns a positive errno value even when it succeeds.
80219         (print_errno_message) [!LIBC]: Fall back on strerror if
80220         __strerror_r fails.
80221
80222         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80223         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80224         (longest_relative_suffix): New function.
80225         (path_concat): Use it.  Assume first argument is not NULL.
80226         Port to DOS.  Omit redundant separators.
80227         Report an error instead of returning NULL.
80228         Use mempcpy instead of memcpy.
80229         (xpath_concat): Remove: not declared or used.
80230
80231         * lib/same.h: Include <stdbool.h>
80232         (same_name): Return bool, not int.
80233         * lib/same.c (same_name): Likewise.
80234         (errno): Don't declare; we assume C89 or better now.
80235
80236         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80237         if not already defined.
80238
80239         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80240         * lib/dup-safer.c (errno): Likewise.
80241
80242 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80243
80244         Merge from coreutils.
80245         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80246         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80247         * modules/path-concat: Don't depend on strdup.
80248
80249 2004-08-03  Simon Josefsson  <jas@extundo.com>
80250
80251         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80252         * lib/progname.h: Don't include stdbool.h.
80253
80254 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80255
80256         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80257         * MODULES.html.sh (func_all_modules): Remove fatal.
80258
80259 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80262
80263 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80264
80265         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80266         working.
80267
80268 2004-08-02  Simon Josefsson  <jas@extundo.com>
80269
80270         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80271         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80272         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80273
80274 2004-08-01  Simon Josefsson  <jas@extundo.com>
80275
80276         * lib/xgetdomainname.c: Include stdlib.h, for free().
80277
80278 2004-07-19  Bruno Haible  <bruno@clisp.org>
80279
80280         * MODULES.html.sh (func_all_modules): Add dummy.
80281
80282 2004-07-16  Simon Josefsson  <jas@extundo.com>
80283
80284         * modules/dummy: New file.
80285
80286 2004-07-16  Simon Josefsson  <jas@extundo.com>
80287
80288         * lib/dummy.c: New file.
80289
80290 2004-07-16  Bruno Haible  <bruno@clisp.org>
80291
80292         * lib/backupfile.h: Add extern "C" for C++.
80293         * lib/closeout.h: Likewise.
80294         * lib/copy-file.h: Likewise.
80295         * lib/findprog.h: Likewise.
80296         * lib/full-write.h: Likewise.
80297         * lib/pathname.h: Likewise.
80298         * lib/progname.h: Likewise.
80299         * lib/stpcpy.h: Likewise.
80300         * lib/stpncpy.h: Likewise.
80301         * lib/strcase.h: Likewise.
80302         * lib/strstr.h: Likewise.
80303         * lib/xalloc.h: Likewise.
80304
80305         * lib/mbswidth.h: Add extern "C" for C++.
80306         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80307
80308 2004-07-13  Robert Millan  <robertmh@gnu.org>
80309
80310         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80311
80312 2004-07-09  Simon Josefsson  <jas@extundo.com>
80313
80314         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80315         failed without this.)
80316
80317 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * modules/chown (Files): Add lib/fchown-stub.c, since
80320         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80321
80322 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80323
80324         * lib/fchown-stub.c: New file.
80325
80326 2004-06-24  Jim Meyering  <jim@meyering.net>
80327
80328         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80329
80330 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * modules/argz: Omit "#include".
80333
80334         * MODULES.html.sh (func_all_modules): Add calloc, to match
80335         2004-06-01 addition of calloc module.
80336
80337 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80338
80339         * m4/argz.m4: New file, which is autoupdated from libtool.
80340
80341 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80342
80343         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80344         libtool.
80345
80346 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80347
80348         * config/srclist-update: Don't insist on "USA." before the
80349         close-comment, as libtool omits the period and puts the */ on a
80350         separate line.
80351         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80352         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80353
80354 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80355
80356         * modules/argz: New file.
80357         * MODULES.html.sh (func_all_modules): Add argz.
80358
80359 2004-06-12  Jim Meyering  <jim@meyering.net>
80360         and  Paul Eggert  <eggert@cs.ucla.edu>
80361
80362         * modules/hash (Files): Add lib/xalloc.h.
80363         * modules/pipe (Depends-on): Add wait-process.
80364         * modules/stat (Depends-on): Add xalloc.
80365         * modules/userspec (Files): Add lib/userspec.h.
80366         * modules/xstrto
80367
80368         Upgrade from gettext-0.13.
80369         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80370         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80371         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80372
80373 2004-06-10  Jim Meyering  <jim@meyering.net>
80374
80375         * lib/calloc.c: New file.
80376
80377 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80378
80379         * lib/getdate.y (yylex): Allow space between sign and number.
80380         Problem reported by Dan Jacobson.
80381
80382 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         Merge from coreutils CVS.
80385
80386         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80387         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80388         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80389         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80390         xstrtol.m4: Fix copyright date and/or serial number.
80391
80392         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80393         See if we need an fchown replacement.
80394         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80395         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80396         and use the replacement function if we detect either defect.
80397
80398         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80399         gl_UTIMECMP.
80400
80401 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80402         and  Jim Meyering  <jim@meyering.net>
80403
80404         Merge from coreutils CVS.
80405
80406         * lib/stat-macros.h: New file, with contents from file-type.h
80407         and coreutils' system.h.
80408         * lib/file-type.c: Include "stat-macros.h".
80409         * lib/file-type.h (file_type): Move all macro definitions to new file,
80410         stat-macros.h.
80411
80412         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80413         Wrap old code with this conditional.
80414         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80415         function that does not dereference symlinks.
80416         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80417
80418         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80419         dependency problems.
80420         (xreadlink): Accept new arg SIZE, for efficiency.
80421         All decls and uses changed.
80422         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80423
80424         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80425         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80426
80427         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80428         sysexits.h.
80429
80430 2004-06-01  Jim Meyering  <jim@meyering.net>
80431
80432         * m4/calloc.m4: New file.
80433
80434 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80435
80436         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80437         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80438         Also, fix a typo in a diagnostic.
80439
80440 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80441
80442         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80443         or AC_FUNC_REALLOC.
80444
80445 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80446
80447         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80448         macros to be defined.
80449         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80450         the allocator returns NULL because the requested size is zero.
80451
80452 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80453
80454         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80455         var.  Add comment explaining why libc still defines it.  This
80456         merges the following patch from glibc:
80457         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80458
80459 2004-05-20  Andreas Schwab  <schwab@suse.de>
80460
80461         * m4/free.m4: Replace free if it not known to work, not the other
80462         way round.
80463
80464 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80465
80466         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80467         present in glibc since revision 1.1 of this file.
80468         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80469         obstack_alignment_mask, obstack_alloc, obstack_base,
80470         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80471         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80472         obstack_grow0, obstack_init, obstack_int_grow,
80473         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80474         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80475         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80476         nonexistent functions.
80477
80478 2004-05-18  Karl Berry  <karl@gnu.org>
80479
80480         * config/srclist.txt: break link for vasnprintf.c.
80481
80482 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80483
80484         Port obstack to the AS/400, where pointers are 16 bytes wide and
80485         you cannot cast an integer to a valid pointer.  This patch is
80486         currently waiting to be integrated into glibc; see
80487         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80488
80489         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80490         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80491         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80492         (struct obstack): temp member is now a union of a pointer and
80493         an integer, instead of an integer.  All integer uses changed.
80494         This does not affect the physical layout of struct obstack,
80495         except on hosts (like the AS/400) where the size or alignment of
80496         void * is greater than that of ptrdiff_t.
80497         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80498         __STDC__)]: Store temporary in pointer member of union, not
80499         integer member.
80500         * lib/obstack.c: Include <stddef.h>, for offsetof.
80501         (struct fooalign): Remove; it doesn't need a name.
80502         (union fooround): Change double to long double, and add void *.
80503         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80504         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80505         not a macro.  Hence the values are always int; so remove all
80506         casts-to-int in uses.
80507
80508 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80509
80510         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80511         we can get this patch merged into glibc.
80512
80513 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80514             Paul Eggert  <eggert@cs.ucla.edu>
80515
80516         * m4/argp: Depend on alloca.
80517
80518 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80519             Paul Eggert  <eggert@cs.ucla.edu>
80520
80521         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80522         freecoding.
80523
80524 2004-05-17  Bruno Haible  <bruno@clisp.org>
80525
80526         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80527         precision that consists of a '.' followed by an empty digit string.
80528         Patch by Tor Lillqvist <tml@iki.fi>.
80529
80530 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80531
80532         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80533         for backward compatibility with older code.  We need our own
80534         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80535         it under some other name, and our alloca.h will define it.
80536
80537 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80538             Derek Price  <derek@ximbiot.com>
80539
80540         * lib/alloca.c: Include <alloca.h>, to get our interface.
80541         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80542         include <alloca.h> first.  Use C89 prototype for alloca; this
80543         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80544         Use #elif for simplicity, since we can assume C89 now.
80545         Don't try to source the system alloca.h since it will not be found
80546         and to prevent recursively including its replacement.
80547         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80548         * lib/regex.c: Likewise.
80549
80550 2004-05-16  Derek Price  <derek@ximbiot.com>
80551             Paul Eggert  <eggert@cs.ucla.edu>
80552
80553         getline cleanup.  This changes the getndelim2 API: both order of
80554         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80555         no delimiter).
80556
80557         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80558         interface does that.
80559         (getline): Always use getdelim, so that we don't have two
80560         copies of this code.
80561         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80562         if available.
80563         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80564         (GETNDELIM2_MAXIMUM): New macro.
80565         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80566         instead of the old practice of delim2==0.  All callers changed.
80567         Return -1 on overflow, instead of returning junk.
80568         Do not set *linesize unless allocation succeeds.
80569         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80570         that we include sys/types.h.
80571         * lib/getnline.h: Likewise.
80572         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80573         (getndelim2): Reorder arguments.
80574         * lib/getnline.c (getnline, getndelim):
80575         Don't discard the NMAX argument.
80576         (getnline): Invoke getndelim, to avoid code duplication.
80577         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80578         of (size_t) -1 by callers of the getnline family.
80579
80580 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80581
80582         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80583         Check for gettimeofday.
80584         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80585         Check for settimeofday, stime.
80586
80587 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80588
80589         * lib/nanosleep.c (suspended): Change its type from int to
80590         sig_atomic_t volatile.
80591         (first_call): Make it private to rpl_nanosleep, and have it
80592         be zero initially as that's a bit faster.
80593         (my_usleep): Round up fractional times instead of truncating them,
80594         as this is the usual meaning for 'sleep'.
80595
80596         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80597         doesn't work.
80598         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80599         (ENOSYS): Define if not defined.
80600         (settime): Fall back on stime if it exists and settimeofday fails.
80601         But don't bother with fallbacks if a method fails with errno == EPERM.
80602
80603 2004-05-11  Jim Meyering  <jim@meyering.net>
80604
80605         Prior to this change, the save_cwd caller required read access to the
80606         current directory on most systems (ones with the fchdir function).
80607
80608         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80609         fails, try write-only, and finally, resort to using xgetcwd.
80610
80611 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80612
80613         * lib/obstack.c, obstack.h: Import changes from libc.
80614
80615 2004-04-28  Bruno Haible  <bruno@clisp.org>
80616
80617         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80618         also implicitly appends .exe to executables.
80619         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80620         accepts Windows pathnames.
80621         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80622         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80623         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80624         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80625         Reported by Derek Robert Price <derek@ximbiot.com>.
80626
80627 2004-04-21  Karl Berry  <karl@gnu.org>
80628
80629         * config/srclist.txt (localcharset.c): break sync.
80630
80631 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80632
80633         * m4/host-os.m4: Add a copyright notice.
80634
80635 2004-04-20  Jim Meyering  <jim@meyering.net>
80636
80637         Change UTILS_ to gl_ in AC_DEFINE'd names.
80638         Change utils_- and jm_-prefixed variables, too.
80639         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80640         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80641         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80642
80643         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80644         Don't emit trailing blanks.
80645         Also rename jm_-prefixed variables to have gl_ prefix.
80646
80647         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80648         Also rename jm_-prefixed variables to have gl_ prefix.
80649
80650         * m4/jm-macros.m4: Reflect the renamings.
80651         * m4/prereq.m4: Likewise.
80652
80653 2004-04-20  Jim Meyering  <jim@meyering.net>
80654
80655         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80656         memory.
80657
80658 2004-04-20  Jim Meyering  <jim@meyering.net>
80659             Bruno Haible  <bruno@clisp.org>
80660
80661         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80662         memory when realloc fails.
80663
80664 2004-04-19  Jim Meyering  <jim@meyering.net>
80665
80666         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80667         now that readutmp.c may call `free (0)'.
80668
80669 2004-04-19  Bruno Haible  <bruno@clisp.org>
80670
80671         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80672         * m4/inttypes_h.m4: Likewise.
80673         * m4/stdint_h.m4: Likewise.
80674         * m4/intmax_t.m4: Likewise.
80675         * m4/uintmax_t.m4: Likewise.
80676
80677 2004-04-18  Jim Meyering  <jim@meyering.net>
80678
80679         * m4/prereq.m4: Don't forbid jm_ prefix.
80680
80681         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80682         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80683         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80684         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80685         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80686         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80687         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80688         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80689         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80690         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80691         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80692         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80693         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80694         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80695         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80696         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80697         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80698         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80699         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80700
80701 2004-04-18  Jim Meyering  <jim@meyering.net>
80702
80703         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80704         failure, don't leak memory and do call END_UTMP_ENT.
80705
80706 2004-04-16  Jim Meyering  <jim@meyering.net>
80707
80708         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80709         coreutils' stat program.
80710         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80711
80712 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80713
80714         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80715         C89.
80716         (CHAR_BIT): Remove, since we assume C89.
80717         Include <stdint.h> if available, as per current Autoconf CVS advice.
80718
80719 2004-03-31  Jim Meyering  <jim@meyering.net>
80720
80721         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80722         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80723         * m4/xalloc.m4: Likewise.
80724
80725 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80726
80727         Merge from coreutils.
80728
80729         * m4/inttostr.m4: New file.
80730         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80731         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80732         Require gl_CLOCK_TIME.
80733         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80734
80735 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80736
80737         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80738         not bool, to be more consistent with Unix conventions.
80739         Suggested by Bruno Haible.
80740
80741         Merge from coreutils.
80742
80743         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80744         * lib/umaxtostr.c: New files.
80745
80746         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80747         the usual <time.h> dance.
80748         (get_date): Change signature to support fractional time stamps.
80749         All callers changed.
80750         * lib/getdate.y: Include "getdate.h" first, as we can now
80751         assume C89 and don't need to worry about 'const'.
80752         Similarly, include "unlocked-io.h" near start, not in middle.
80753         Include <limits.h>.
80754         (textint.value): Use long int rather than int.
80755         (textint.digits): Use size_t rather than int.
80756         (BILLION, LOG10_BILLION): New constants.
80757         (parser_control): New member rel_ns.  Members day_ordinal,
80758         time_zone, month, day, hour, minutes, rel_year, rel_month,
80759         rel_day, rel_hour, rel_minutes, rel_seconds
80760         are now long int, not int.  Member seconds is now struct timespec,
80761         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80762         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80763         not int.
80764         (%union.intval): Now long int, not int.
80765         New member timespec.
80766         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80767         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80768         (spec): Now is a timespec or an item list.
80769         (timespec, items): New nonterminals.
80770         (time, rel, relunit, number, get_date):
80771         Add support for fractional seconds.
80772         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80773         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80774         (to_hour): First arg is now long int, not int.
80775         (to_year): Returns long int, not int.
80776         Don't treat year -70 like 70.
80777         (tm_diff): Returns long int, not int.
80778         (lookup_word): Use bool instead of int when appropriate.
80779         (yylex): Use size_t for count, not int.
80780         Detect overflow when parsing large integer constants.
80781         Add support for fractions.
80782         (get_date): Make pointers 'const' if possible.
80783         Use more-portable code to detect integer overflow.
80784         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80785         Don't use ctime; it's not reliable if the year has >4 digits.
80786
80787         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80788         This is for compatibility with BSD.
80789
80790         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80791         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80792         From coreutils' system.h.
80793
80794         * lib/userspec.c: Don't include "posixver.h".
80795         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80796         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80797         compatible extension.  Simplify code by removing a boolean int
80798         that was always nonzero if a string was nonnull.
80799
80800 2004-03-30  Jim Meyering  <jim@meyering.net>
80801
80802         Merge from coreutils.
80803
80804         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80805         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80806         on some systems one must include <grp.h> before it.
80807         Reported by Christian Krackowizer.
80808
80809 2004-03-30  Jim Meyering  <jim@meyering.net>
80810
80811         Merge from coreutils.
80812
80813         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80814
80815         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80816         an empty input stream.
80817
80818         * lib/readtokens.c: Include <stdbool.h>.
80819         (readtoken): Use `size_t' rather than int/long.
80820         All callers adjusted.
80821         Use `bool' rather than `int' where appropriate.
80822         Use memset rather than an explicit loop.
80823         Use x2nrealloc rather than xrealloc.
80824         Allow the use of `\0' as a delimiter.
80825         (readtokens): Likewise.
80826         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80827
80828 2004-03-30  Jim Meyering  <jim@meyering.net>
80829
80830         * m4/realloc.m4: Remove file, since now it does no more than
80831         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80832         the `configure.ac' section of module/realloc.
80833         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80834
80835 2004-03-30  Bruno Haible  <bruno@clisp.org>
80836
80837         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80838         nonnull.
80839
80840 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80841
80842         Merge changes to getloadavg.c from coreutils and Emacs.
80843
80844         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80845         Define to an expression, not to the empty string.
80846         Include cloexec.h and xalloc.h.
80847         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80848         Use set_cloexec_flag rather than rolling our own.
80849         * lib/cloexec.c, lib/cloexec.h: New files.
80850
80851 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80852
80853         * m4/cloexec.m4: New file.
80854
80855 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80856
80857         * lib/getopt.h: Sync with libc CVS.
80858
80859 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80860             Bruno Haible  <bruno@clisp.org>
80861
80862         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80863         mbswidth.
80864
80865 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80866             Bruno Haible  <bruno@clisp.org>
80867
80868         * lib/mbswidth.h: Include <wchar.h> only if
80869         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80870         <wchar.h>.
80871         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80872
80873 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80874
80875         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80876         Sync with libc CVS.
80877         * lib/getopt_int.h: New file, also synced from libc.
80878
80879 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80880
80881         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80882         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80883         Bring back getopt.c, getopt.h, getopt1.c.
80884
80885 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80886
80887         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80888         All uses changed.  Check for sa_sigaction member; this fixes
80889         a bug first reported by Jason Andrade in
80890         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80891
80892 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80893
80894         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80895         '#if' expressions.  Unlike the code it replaces, it does not
80896         depend on (defined _SC_PAGESIZE).  However, it does depend on
80897         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80898         first reported by Jason Andrade in
80899         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80900
80901 2004-02-25  Simon Josefsson  <jas@extundo.com>
80902
80903         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80904
80905 2004-02-25  Simon Josefsson  <jas@extundo.com>
80906
80907         * lib/strdup.h: New file.
80908         * lib/strdup.c: Include it.
80909         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80910         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80911
80912 2004-02-23  Karl Berry  <karl@gnu.org>
80913
80914         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80915         (from fencepost.gnu.org:/gd/gnuorg).
80916
80917 2004-02-23  Karl Berry  <karl@gnu.org>
80918
80919         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80920         * config/srclist.txt: add maintain/standards documents.
80921
80922 2004-02-18  Bruno Haible  <bruno@clisp.org>
80923
80924         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80925         Reported by Derek Robert Price <derek@ximbiot.com>.
80926
80927 2004-02-16  Karl Berry  <karl@gnu.org>
80928
80929         * config/mkinstalldirs, install-sh: update from automake.
80930
80931 2004-02-06  Karl Berry  <karl@gnu.org>
80932
80933         * m4/po.m4: update from gettext 0.14.1.
80934
80935 2004-02-06  Karl Berry  <karl@gnu.org>
80936
80937         * lib/config.charset: update from gettext 0.14.1.
80938
80939 2004-02-05  Paul Eggert  <eggert@twinsun.com>
80940
80941         Add comments and code, prompted by suggestions from Bruno Haible
80942         for sh-quote.
80943         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
80944         describing the enum quoting_style values.
80945         * lib/quotearg.c (quotearg_alloc): New function.
80946         (quotearg_buffer_restyled): Treat lone { and } as special.
80947         Treat = as special.  Work around bug with older shells
80948         that "see" a '\' that is really the 2nd byte of a multibyte char.
80949         Quote empty string with shell_quoting_style.
80950
80951 2004-02-03  Bruno Haible  <bruno@clisp.org>
80952
80953         * m4/pipe.m4: New file, from GNU gettext.
80954
80955 2004-02-03  Bruno Haible  <bruno@clisp.org>
80956
80957         * lib/pipe.h: New file, from GNU gettext.
80958         * lib/pipe.c: New file, from GNU gettext.
80959
80960 2004-01-27  Bruno Haible  <bruno@clisp.org>
80961
80962         * m4/execute.m4: New file, from GNU gettext.
80963
80964 2004-01-27  Bruno Haible  <bruno@clisp.org>
80965
80966         * lib/execute.h: New file, from GNU gettext.
80967         * lib/execute.c: New file, from GNU gettext.
80968         * lib/w32spawn.h: New file, from GNU gettext.
80969
80970 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80971
80972         Merge from diffutils.
80973
80974         * lib/file-type.c (file_type): Add typed memory objects.
80975         * lib/file-type.h (S_TYPEISTMO): New macro.
80976
80977         * lib/c-stack.h (c_stack_action): Remove argv argument.
80978         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
80979         (die): Don't calculate message unless segv_action returns.
80980         (get_stack_location, min_address_from_argv, max_address_from_argv,
80981         volatile stack_base, volatile_stack_size): Remove.
80982         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
80983         that every segmentation violation is a stack overflow.  (Ouch!)
80984         See Debian bug 136249 (still outstanding) for more info about why
80985         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
80986
80987 2004-01-24  Paul Eggert  <eggert@twinsun.com>
80988
80989         Exit-status fix from coreutils.
80990
80991         Use exit_failure consistently in place of EXIT_FAILURE,
80992         so that program exit statuses are consistent on failure.
80993
80994         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
80995         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
80996         * lib/argmatch.h: Comment fix to match the above.
80997         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
80998         Now a macro referring to exit_failure, instead of a separate
80999         variable.  Include "exitfail.h" to get it.
81000         * lib/xstrtol.h: Include "exitfail.h".
81001         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81002
81003         * lib/long-options.c (parse_long_options): Use prototype
81004         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81005         for clarity.
81006
81007 2004-01-21  Jim Meyering  <jim@meyering.net>
81008
81009         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81010         so as not to conflict with a different-sized __mktime_internal
81011         function in GNU libc.
81012         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81013         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81014
81015 2004-01-20  Karl Berry  <karl@gnu.org>
81016
81017         * config/config.guess: update from config.
81018
81019         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81020
81021 2004-01-20  Bruno Haible  <bruno@clisp.org>
81022
81023         Safer stack allocation.
81024         * lib/setenv.c: Include allocsa.h.
81025         (alloca): Remove fallback definition.
81026         (freea): Remove macro.
81027         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81028         instead of freea.
81029
81030 2004-01-20  Bruno Haible  <bruno@clisp.org>
81031
81032         * m4/eealloc.m4: New file, from GNU gettext.
81033
81034 2004-01-20  Bruno Haible  <bruno@clisp.org>
81035
81036         * m4/allocsa.m4: New file, from GNU gettext.
81037
81038 2004-01-20  Bruno Haible  <bruno@clisp.org>
81039
81040         * lib/xallocsa.h: New file, from GNU gettext.
81041         * lib/xallocsa.c: New file, from GNU gettext.
81042
81043 2004-01-20  Bruno Haible  <bruno@clisp.org>
81044
81045         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81046
81047 2004-01-20  Bruno Haible  <bruno@clisp.org>
81048
81049         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81050         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81051         specially.
81052
81053 2004-01-20  Bruno Haible  <bruno@clisp.org>
81054
81055         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81056         patch.
81057
81058 2004-01-20  Bruno Haible  <bruno@clisp.org>
81059
81060         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81061
81062 2004-01-20  Bruno Haible  <bruno@clisp.org>
81063
81064         * lib/eealloc.h: New file.
81065
81066 2004-01-20  Bruno Haible  <bruno@clisp.org>
81067
81068         * lib/binary-io.h: Avoid warnings on Cygwin.
81069
81070 2004-01-20  Bruno Haible  <bruno@clisp.org>
81071
81072         * lib/allocsa.h: New file, from GNU gettext.
81073         * lib/allocsa.c: New file, from GNU gettext.
81074
81075 2004-01-18  Karl Berry  <karl@gnu.org>
81076
81077         * doc/gpl.texi, doc/lgpl.texi: new files.
81078
81079 2004-01-18  Karl Berry  <karl@gnu.org>
81080
81081         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81082         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81083
81084 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81085
81086         Merge from coreutils.
81087
81088         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81089         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81090         (gl_DEFAULT_POSIX2_VERSION): Move
81091         the documentation from 'configure' into 'config.hin',
81092         so that 'configure --help' isn't burdened by it and
81093         we don't have to worry about its formatting there.
81094         Reword the documentation so that it's more succinct
81095         and can be run together into a single paragraph.
81096         * m4/same.m4 (gl_SAME): Check for pathconf.
81097
81098 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81099
81100         Merge from coreutils.
81101
81102         * lib/posixver.c: Include posixver.h.
81103
81104         * lib/same.c: Include <stdbool.h>, <limits.h>.
81105         (_POSIX_NAME_MAX): Define if not defined.
81106         (MIN): New macro.
81107         (same_name): If file names are silently truncated, report
81108         that the file names are the same if they are the same after
81109         the silent truncation.
81110
81111         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81112         conversion function.
81113         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81114         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81115         longer needed.
81116
81117 2004-01-15  Jim Meyering  <jim@meyering.net>
81118
81119         Merge from coreutils.
81120
81121         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81122         if no library is required.
81123         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81124         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81125         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81126         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81127         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81128         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81129         value, $ac_cv_search_crypt, if it's "none required".
81130         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81131         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81132         not gl_FUNC_GETLOADAVG.
81133         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81134         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81135
81136 2004-01-15  Jim Meyering  <jim@meyering.net>
81137
81138         Merge from coreutils.
81139
81140         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81141         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81142         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81143
81144         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81145         optional configure-time default.
81146
81147         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81148
81149         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81150
81151 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81152
81153         Merge from coreutils.
81154
81155         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81156         value, $ac_cv_search_nanosleep, if it's "none required".
81157
81158 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81159
81160         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81161         with like-named macro in fnmatch.c.
81162         (EXT): Use an internal constant instead.
81163
81164         Merge fnmatch patches from glibc.
81165         * lib/fnmatch.c (mbsinit): Remove define.
81166         Add libc_hidden_ver (__fnmatch, fnmatch).
81167         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81168         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81169
81170 2004-01-14  Karl Berry  <karl@gnu.org>
81171
81172         * config/install-sh: update from automake.
81173
81174 2004-01-13  Karl Berry  <karl@gnu.org>
81175
81176         * config/install-sh: update from automake.
81177
81178 2004-01-09  Karl Berry  <karl@gnu.org>
81179
81180         * config/install-sh: update from automake.
81181
81182 2004-01-05  Karl Berry  <karl@gnu.org>
81183
81184         * config/config.{sub,guess}: update from config.
81185
81186 2003-12-31  Karl Berry  <karl@gnu.org>
81187
81188         * config/depcomp: update from automake.
81189
81190 2003-12-14  Karl Berry  <karl@gnu.org>
81191
81192         * lib/config.charset: update from gettext-runtime.
81193
81194 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81195
81196         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81197         Bug reported by Alfred M. Szmidt.
81198
81199 2003-12-03  Bruno Haible  <bruno@clisp.org>
81200
81201         * m4/gettext.m4: Upgrade from gettext-0.13.
81202         * m4/po.m4: Upgrade from gettext-0.13.
81203         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81204         * m4/intmax.m4: New file, from gettext-0.13.
81205         * m4/printf-posix.m4: New file, from gettext-0.13.
81206
81207 2003-11-29  Karl Berry  <karl@gnu.org>
81208
81209         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81210
81211 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81212             Bruno Haible  <bruno@clisp.org>
81213
81214         * lib/printf-parse.h: Don't include sys/types.h.
81215         (ARG_NONE): New macro.
81216         (char_directive): Change type of *arg_index fields to size_t.
81217         * lib/printf-parse.c: Don't include sys/types.h.
81218         (SSIZE_MAX): Remove macro.
81219         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81220         Remove unnecessary overflow check.
81221         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81222         fields.
81223
81224 2003-11-25  Bruno Haible  <bruno@clisp.org>
81225
81226         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81227
81228 2003-11-25  Bruno Haible  <bruno@clisp.org>
81229
81230         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81231         gt_TYPE_SSIZE_T.
81232
81233 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81234
81235         * modules/alloca: Remove dependency on xalloc.
81236
81237 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81238
81239         * lib/alloca.c: Remove dependency on xalloc module.
81240         (xalloc_die): Remove.
81241         (memory_full) [!defined emacs]: New macro.
81242         [!defined emacs]: Don't include xalloc.h.
81243         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81244         address arithmetic overflows.  Change datatypes a bit to avoid
81245         unnecessary casts.
81246
81247 2003-11-22  Jim Meyering  <jim@meyering.net>
81248
81249         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81250         s/size/size_t/.
81251
81252 2003-11-21  Karl Berry  <karl@gnu.org>
81253
81254         * config/config.{sub,guess}: update from config.
81255
81256 2003-11-18  Karl Berry  <karl@gnu.org>
81257
81258         * config/config.{sub,guess}: update from config.
81259
81260         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81261
81262 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81263
81264         * README: Mention that S+T cannot overflow if S is the size of
81265         an existing object and T is sufficiently small.
81266
81267 2003-11-17  Jim Meyering  <jim@meyering.net>
81268
81269         On systems without utime and without a utimes function capable of
81270         dealing with a NULL struct utimbuf* argument, this utime replacement
81271         could -- in unusual circumstances -- leak a file descriptor.
81272         * lib/utime.c: Include <unistd.h> and <errno.h>.
81273         (utime_null): Be sure to close `fd' and to preserve errno.
81274         Reported by Geoff Collyer via Arnold Robbins.
81275
81276 2003-11-17  Bruno Haible  <bruno@clisp.org>
81277
81278         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81279         (Depends-on): Add xsize.
81280
81281 2003-11-17  Bruno Haible  <bruno@clisp.org>
81282
81283         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81284
81285 2003-11-17  Bruno Haible  <bruno@clisp.org>
81286
81287         * lib/vasnprintf.c (alloca): Remove fallback definition.
81288         (freea): Remove definition.
81289         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81290         Reported by Paul Eggert.
81291
81292 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81293             Bruno Haible  <bruno@clisp.org>
81294
81295         Protect against address arithmetic overflow.
81296         * lib/printf-args.h: Include stddef.h.
81297         (arguments): Change type of field 'count' to size_t.
81298         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81299         'unsigned int' where appropriate.
81300         * lib/printf-parse.h: Include sys/types.h.
81301         (char_directive): Change type of *arg_index fields to ssize_t.
81302         (char_directives): Change type of fields 'count', max_*_length to
81303         size_t.
81304         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81305         (SSIZE_MAX): Define fallback value.
81306         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81307         instead of 'int' where appropriate. Check a_allocated, d_allocated
81308         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81309         * lib/vasnprintf.c: Include xsize.h.
81310         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81311         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81312         overflow. Avoid wraparound when converting a width or precision from
81313         decimal to binary.
81314
81315 2003-11-16  Bruno Haible  <bruno@clisp.org>
81316
81317         Update from GNU gettext.
81318         * lib/printf-parse.c: Generalize to it can be compiled for wide
81319         strings.
81320         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81321         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81322         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81323         SNPRINTF): New macros.
81324         Don't include <alloca.h> if the file is used inside libintl.
81325         (local_wcslen): New function, for Solaris 2.5.1.
81326         (VASNPRINTF): Use it instead of wcslen.
81327
81328 2003-11-16  Bruno Haible  <bruno@clisp.org>
81329
81330         * lib/xsize.h (xmax): New function.
81331         (xsum, xsum3, xsum4): Declare as "pure" functions.
81332
81333 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81334
81335         * modules/xalloc (Files): Undo latest change, since xalloc.h
81336         no longer needs SIZE_MAX or PTRDIFF_MAX.
81337
81338 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81339
81340         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81341         gl_PTRDIFF_MAX.
81342
81343 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81344
81345         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81346         "return", to pacify some unknown compiler.  Problem reported
81347         by Joerg Schilling.
81348
81349 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81350
81351         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81352         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81353         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81354         heuristic is just as accurate as far as we know, and it removes a
81355         dependency on size_max.m4 and ptrdiff_max.m4.
81356
81357 2003-11-11  Bruno Haible  <bruno@clisp.org>
81358
81359         * modules/xsize (Files): Add m4/size_max.m4.
81360         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81361
81362 2003-11-11  Bruno Haible  <bruno@clisp.org>
81363
81364         * m4/size_max.m4: New file.
81365         * m4/ptrdiff_max.m4: New file.
81366         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81367         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81368         (gl_XALLOC): Invoke it.
81369
81370 2003-11-11  Bruno Haible  <bruno@clisp.org>
81371
81372         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81373         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81374         defined.
81375
81376 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81377
81378         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81379         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81380         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81381         From Bruno Haible.
81382         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81383         not (size_t) -1, since it's defined here.
81384
81385 2003-11-09  Karl Berry  <karl@gnu.org>
81386
81387         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81388
81389 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81390
81391         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81392         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81393         Reject sizes of exactly SIZE_MAX bytes.
81394         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81395         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81396
81397 2003-11-05  Bruno Haible  <bruno@clisp.org>
81398
81399         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81400         SIZE_MAX defined in <limits.h> on Solaris.
81401
81402 2003-11-04  Jim Meyering  <jim@meyering.net>
81403
81404         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81405         variable names, rather than @VAR@.
81406         * modules/poll: Likewise.
81407
81408 2003-11-04  Bruno Haible  <bruno@clisp.org>
81409
81410         * modules/xsize: New file.
81411         * modules/linebreak: Depend on xsize.
81412         * MODULES.html.sh (func_all_modules): Add xsize.
81413
81414 2003-11-04  Bruno Haible  <bruno@clisp.org>
81415
81416         * m4/xsize.m4: New file.
81417
81418 2003-11-04  Bruno Haible  <bruno@clisp.org>
81419
81420         * lib/xsize.h: New file.
81421         * lib/linebreak.c: Include xsize.h.
81422         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81423         argument for overflow.
81424         Suggested by Paul Eggert.
81425
81426 2003-11-03  Karl Berry  <karl@gnu.org>
81427
81428         * config/config.{guess,sub}: update from config.
81429
81430 2003-11-03  Jim Meyering  <jim@meyering.net>
81431
81432         * modules/userspec (lib_SOURCES): Add userspec.h.
81433         (Include): Add "userspec.h".
81434         Improve description.
81435
81436 2003-11-03  Jim Meyering  <jim@meyering.net>
81437
81438         * lib/userspec.c: Include "userspec.h".
81439         * lib/userspec.h: New file.
81440
81441 2003-11-03  Bruno Haible  <bruno@clisp.org>
81442
81443         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81444
81445 2003-11-03  Bruno Haible  <bruno@clisp.org>
81446
81447         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81448         available, to avoid (extremely rare) race condition.
81449         Suggested by Paul Eggert.
81450
81451 2003-11-02  Karl Berry  <karl@gnu.org>
81452
81453         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81454
81455 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81456
81457         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81458         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81459         (read_filesystem_list): Set and use me_type_malloced.
81460         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81461         whatever the type happens to be), for brevity and consistency.
81462         Check for size calculation overflow on Alphas running OSF/1.
81463
81464 2003-10-31  Jim Meyering  <jim@meyering.net>
81465
81466         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81467
81468         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81469
81470 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81471             Bruno Haible  <bruno@clisp.org>
81472
81473         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81474         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81475
81476 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81477
81478         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81479         netbsd*-gnu*.  Suggested by Robert Millan.
81480
81481 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81482
81483         * modules/group-member: Depend on stdbool.
81484
81485 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81486
81487         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81488
81489 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81490
81491         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81492         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81493         after the 'gnu' in these cases.  This fixes some bugs in the
81494         previous change, and is based on suggestions by Robert Millan.
81495
81496 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81497
81498         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81499         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81500         no longer needed.
81501         * lib/quotearg.c (quotearg_n_options): Use it.
81502         * lib/group-member.c: Include <stdbool.h>.
81503         (free_group_info): Arg is now const *; don't free arg.
81504         (get_group_info): Now returns bool and accepts struct group_info *,
81505         rather than returning a malloc'ed struct group_info *.
81506         All uses changed.  Check for overflow in internal size calculation.
81507
81508         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81509         rather than xmalloc/xrealloc.
81510         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81511         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81512         conformance bug: the old code used a pointer after freeing the
81513         storage that it addressed.
81514         * lib/hash.c (hash_initialize): Simplify the code by using
81515         xalloc_oversized rather than doing it by hand.
81516         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81517         the buffer preserved.  Use free and xmalloc instead.
81518         * lib/quotearg.c (quotearg_n_options): Likewise.
81519         Use a simpler test for size overflow.  Don't use xalloc_oversized
81520         because unsigned int might be wider than size_t (!); this suggests
81521         that we should switch from unsigned int to size_t for slot numbers.
81522
81523 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81524
81525         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81526         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81527         NetBSD kernels.  Requested by Richard Stallman.
81528
81529 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81530
81531         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81532         to allocate the returned structure.  Do not allocate a subarray,
81533         as x2nrealloc will do that.
81534         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81535         instead of xnrealloc.
81536         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81537
81538 2003-10-27  Bruno Haible  <bruno@clisp.org>
81539
81540         * lib/stdbool_.h: Better support for BeOS.
81541
81542 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81543
81544         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81545         now uses inline.
81546
81547 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81548
81549         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81550         callers that want to do their own size-overflow checking.  Include
81551         <stdbool.h>, since xalloc_oversized returns bool.
81552         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81553         to use xalloc_oversized.
81554
81555         Add two functions x2realloc, x2nrealloc, for programs that grow
81556         arrays dynamically by doubling their sizes.
81557         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81558         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81559         New functions.
81560
81561         Port to C99 semantics for 'inline' of external functions.
81562         Bug reported by Bruno Haible.
81563         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81564         with the old contents of xnmalloc.
81565         (xnmalloc, xmalloc): Use it.
81566         (xnrealloc_inline): New static inline function,
81567         with the old contents of xnrealloc.
81568         (xnrealloc, xrealloc): Use it.
81569
81570         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81571         that.
81572
81573 2003-10-26  Karl Berry  <karl@gnu.org>
81574
81575         * config/srclist.txt (COPYING.DOC): no longer available from
81576         /gd/gnuorg; don't know where the ultimate source is.
81577
81578 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81579
81580         Fix several address-calculation bugs in the hash modules,
81581         plus some minor code cleanup.
81582
81583         * lib/hash.h: Include <stdbool.h>, for bool.
81584         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81585         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81586         hash_get_n_entries, hash_get_max_bucket_length,
81587         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81588         hash_rehash): Use size_t rather than unsigned.
81589         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81590         hash_get_n_buckets_used, hash_get_n_entries,
81591         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81592         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81593         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81594         Likewise.
81595         (SIZE_MAX): Define if not defined.
81596         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81597         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81598         hash_print):
81599         Use const * when possible.
81600         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81601         (check_tuning): Fix bug: if tuning parameters were very close to
81602         0 or 1, rounding errors could have caused subscript violations.
81603         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81604         (hash_initialize): Add 'fail:' label
81605         to free table and return NULL, and use it to simplify code.
81606         Use calloc rather than clearing the storage ourself.
81607         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81608         buffer size calculations.
81609         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81610         Include <stddef.h>, for size_t.
81611         * lib/hash-pjw.c (hash_pjw): Likewise.
81612         Switch to method described by Bruno Haible.
81613         Include <limits.h>, for CHAR_BIT.
81614         (SIZE_BITS): New macro.
81615
81616 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81617
81618         * m4/getline.m4 (AM_FUNC_GETLINE):
81619         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81620         hosts.  Problem reported by Derek Robert Price in
81621         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81622         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81623         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81624
81625 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81626
81627         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81628         ceiling the allocation at NMAX bytes rather than silently
81629         discarding input bytes before NMAX is reached.  This makes
81630         a difference only if NMAX exceeds SIZE_MAX / 2.
81631
81632         * lib/obstack.c: Merge from glibc.
81633         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81634         Add libc_hidden_def (_obstack_newchunk).
81635         (_obstack_free) [! defined _LIBC]: Remove.
81636         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81637         a clone of the function body.
81638         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81639         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81640
81641         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81642         glibc.
81643         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81644         arg to memcpy.
81645
81646         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81647         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81648         Don't use lvalue casts, as GCC plans to remove support for them
81649         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81650         was also present in the non-GCC version, indicating that this
81651         code had always been buggy and had never been widely used.
81652         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81653         Use the fast variant of each macro, rather than copying the
81654         definiens of the fast variant; that way, we'll be more likely to
81655         catch future bugs in the fast variants.
81656
81657 2003-10-20  Bruno Haible  <bruno@clisp.org>
81658
81659         * modules/wait-process: New file.
81660         * MODULES.html.sh (func_all_modules): Add wait-process.
81661
81662 2003-10-20  Bruno Haible  <bruno@clisp.org>
81663
81664         * m4/wait-process.m4: New file.
81665
81666 2003-10-20  Bruno Haible  <bruno@clisp.org>
81667
81668         * lib/wait-process.h: New file, from GNU gettext.
81669         * lib/wait-process.c: New file, from GNU gettext.
81670
81671 2003-10-19  Jim Meyering  <jim@meyering.net>
81672
81673         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81674         HPUX 10.20.
81675
81676 2003-10-18  Karl Berry  <karl@gnu.org>
81677
81678         * config/config.guess: update from config.
81679
81680 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81681
81682         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81683         (getgroups): First arg is int, not size_t.
81684         Don't let 'free' mangle errno.
81685
81686 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81687
81688         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81689
81690 2003-10-16  Karl Berry  <karl@gnu.org>
81691
81692         * config/config.{guess,sub}: update from config.
81693
81694 2003-10-16  Jim Meyering  <jim@meyering.net>
81695
81696         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81697         memcpy.
81698
81699 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81700
81701         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81702         (SIZE_MAX): Remove.
81703         (new_exclude, add_exclude_file): Initial size no longer needs to
81704         be a power of 2.
81705         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81706         our own address arithmetic overflow checking.
81707
81708         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81709         (fnmatch): Do not alloca more than 2000 wide characters;
81710         instead, use malloc for large buffers.
81711         Check for address arithmetic overflow, and return -1
81712         with errno set to ENOMEM in that case.
81713         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81714         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81715         instead, return -1.  Check for address arithmetic overflow.
81716
81717 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81718
81719         Handle invalid suffixes and overflow independently, so that
81720         callers can treat them independently as needed.  Fix some bugs in
81721         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81722         suffix for a human-readable blocksize.  The major caller-visible
81723         change is the addition of a new
81724         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81725         that both overflow and suffix chars were found.
81726
81727         * lib/human.c (humblock): Don't check separately for invalid suffix
81728         char; that is xstrtoumax's job (now that its bug is fixed).
81729         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81730         INTMAX_MAX]: New macros.
81731         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81732         TYPE_MAXIMUM): New macros.
81733         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81734         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81735         if overflow occurs, as it's what __strtol does and it's more useful
81736         in practice.
81737         (__xstrtol): If __strtol reports some error other than ERANGE,
81738         reflect it to the caller as LONGINT_INVALID.  If it reports
81739         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81740         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81741         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81742         value.
81743         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81744         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81745         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81746         [defined UINTMAX_MAX]: New macros.
81747
81748 2003-10-14  Bruno Haible  <bruno@clisp.org>
81749
81750         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81751
81752 2003-10-14  Bruno Haible  <bruno@clisp.org>
81753
81754         * m4/sig_atomic_t: New file, from GNU gettext.
81755         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81756
81757 2003-10-14  Bruno Haible  <bruno@clisp.org>
81758
81759         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81760         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81761         Also use volatile where needed.
81762
81763 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81764
81765         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81766         Change maintainer from Bruno Haible to 'all'.
81767
81768 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81769
81770         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81771
81772 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81773
81774         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81775         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81776         and define in terms of the other primitives.
81777         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81778         (SIZE_MAX): Define if not already defined.
81779         (array_size_overflow): New function.
81780         (xalloc_die): Abort instead of exiting if 'error' returns.
81781         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81782         (xmalloc, xrealloc): Use them.
81783         (xcalloc): Check for address arithmetic overflow.
81784         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81785         a bit faster than strcpy.
81786
81787 2003-10-10  Simon Josefsson  <jas@extundo.com>
81788
81789         * modules/argp (Depends-on): Add restrict and strcase.
81790
81791 2003-10-10  Simon Josefsson  <jas@extundo.com>
81792
81793         * m4/argp.m4: Add AC_C_INLINE.
81794
81795 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81796
81797         Merge getpass from libc, plus a few fixes.
81798
81799         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81800         Include <stdbool.h>.
81801         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81802         __fsetlocking to empty.
81803         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81804         do include <bits/libc-lock.h>.
81805         Do not include <fcntl.h>; not needed.
81806         [_LIBC]: Include <wchar.h>.
81807         (NOTCANCEL_MODE): New macro.
81808         (flockfile, funlockfile) [_LIBC]: New macros.
81809         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81810         [!_LIBC]: New macros.
81811         (call_fclose): New function.
81812         (getpass): Use it.  Save tty stream separately; this simplifies the
81813         code and makes it more reliable if stdin happens to equal stdout.
81814         Invoke __fsetlocking on tty.
81815         Handle thread cancellation if needed.
81816         Namespace cleanup (use __tcgetattr, __getline).
81817         Use bool for Booleans.
81818         [USE_IN_LIBIO]: Handle wide streams.
81819         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81820         stream might go where.
81821
81822         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81823         doesn't have to include <stdio.h> before us.
81824         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81825         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81826         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81827         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81828         if not declared, so that we can use getpass.c code from libc without
81829         rewriting it.
81830         (flockfile, ftrylockfile, funlockfile): New macros.
81831
81832 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81833
81834         * modules/getpass: Depend on stdbool.
81835
81836 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81837
81838         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81839
81840 2003-10-07  Karl Berry  <karl@gnu.org>
81841
81842         * config/config.{guess,sub}: update from config.
81843
81844 2003-10-06  Jim Meyering  <jim@meyering.net>
81845             Bruno Haible  <bruno@clisp.org>
81846
81847         This lets translators provide better translations for the
81848         "Written by ..." part of --version output.
81849         * lib/version-etc.h: Include stdarg.h.
81850         (version_etc_copyright): Declare as readonly.
81851         (version_etc): Make this function variadic with a NULL-terminated list
81852         of author name strings.
81853         (version_etc_va): New declaration.
81854         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81855         (version_etc_copyright): Declare as readonly.
81856         (version_etc_va): New function. Provide a different translatable string
81857         for each possible number of authors < 10. Abbreviate when there are 10
81858         authors or more.
81859         (version_etc): Make this function variadic. Call version_etc_va.
81860         Suggestion from Gary V. Vaughan.
81861
81862         * lib/long-options.h (parse_long_options): Change prototype: the
81863         authors string is moved to the end and becomes variadic.
81864         * lib/long-options.c: Include stdarg.h.
81865         (parse_long_options): Make this function variadic, too.
81866         Call version_etc_va, not version_etc.
81867
81868 2003-10-06  Bruno Haible  <bruno@clisp.org>
81869
81870         * modules/version-etc-2: Remove file.
81871         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81872
81873 2003-10-06  Bruno Haible  <bruno@clisp.org>
81874
81875         * modules/fatal-signal: New file.
81876         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81877
81878 2003-10-06  Bruno Haible  <bruno@clisp.org>
81879
81880         * m4/fatal-signal.m4: New file.
81881         * m4/signalblocking.m4: New file, from GNU gettext.
81882
81883 2003-10-06  Bruno Haible  <bruno@clisp.org>
81884
81885         * lib/version-etc-2.h: Remove file.
81886         * lib/version-etc-2.c: Remove file.
81887
81888 2003-10-06  Bruno Haible  <bruno@clisp.org>
81889
81890         * lib/fatal-signal.h: New file, from GNU gettext.
81891         * lib/fatal-signal.c: New file, from GNU gettext.
81892
81893 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81894
81895         * README: Rework advice for preventing empty .o files.
81896         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81897         not <sys/types.h>.
81898
81899 2003-10-04  Karl Berry  <karl@gnu.org>
81900
81901         * lib/argp*: update from libc.
81902
81903 2003-10-04  Karl Berry  <karl@gnu.org>
81904
81905         * config/config.{guess,sub}: update from config.
81906
81907 2003-10-02  Bruno Haible  <bruno@clisp.org>
81908
81909         * modules/lchown (Include): Add lchown.h.
81910         * modules/time_r (Include): Use "..." syntax.
81911         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81912
81913 2003-10-01  Simon Josefsson  <jas@extundo.com>
81914
81915         * MODULES.html.sh (func_all_modules): Move gethostname from section
81916         'based on' to section 'lacking' POSIX:2001.
81917
81918 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81919
81920         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81921         to output mode on the same stream.
81922
81923 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81924
81925         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81926         Fix arg typo in previous patch.
81927
81928 2003-09-28  Jim Meyering  <jim@meyering.net>
81929
81930         * lib/error.c: Correct cpp indentation.
81931
81932 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81933
81934         * modules/free: New file.
81935
81936 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81937
81938         * m4/free.m4: New file.
81939
81940 2003-09-27  Paul Eggert  <eggert@twinsun.com>
81941
81942         * lib/minmax.h (MIN, MAX)
81943         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
81944         Omit the special code that used __typeof__, since we worry that
81945         it could be more trouble than it's worth.  See:
81946         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
81947         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
81948
81949         * lib/free.c: New file.
81950
81951 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
81952
81953         Trivial fixes to Makefile.am parts of module listings.
81954         * modules/strstr: Append strstr.h to lib_SOURCES.
81955         * modules/strcase: Likewise, for strcase.h.
81956
81957 2003-09-27  Karl Berry  <karl@gnu.org>
81958
81959         * config/mkinstalldirs: update from automake.
81960
81961 2003-09-26  Paul Eggert  <eggert@twinsun.com>
81962
81963         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
81964         (error_tail): Do not loop, reallocating temporary buffer, since
81965         the output cannot contain more wide characters than the input
81966         contains bytes, the size must be big enough already.  This avoids
81967         one potential size overflow calculation.  Check for size overflow
81968         when calculating temporary buffer size.  Free temporary buffer
81969         when done, if it was allocated with malloc; this plugs a memory
81970         leak.  Remove casts from void * to pointers, that are no longer
81971         needed now that we're assuming C89 or better.
81972
81973         Merge error changes from glibc.
81974
81975         * lib/error.c, error.h: Update copyright notice header to match glibc.
81976         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
81977         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
81978         Disable cancellation while printing error.
81979         * lib/error.h: Prepend __ to parameter names.
81980
81981 2003-09-26  Jim Meyering  <jim@meyering.net>
81982
81983         * lib/error.c (error_tail): Move some declarations
81984         into inner scope where the local variables are used.
81985
81986 2003-09-26  Bruno Haible  <bruno@clisp.org>
81987
81988         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
81989         stpncpy().
81990         Don't define stpncpy through config.h; it's now done through stpncpy.h.
81991
81992 2003-09-26  Bruno Haible  <bruno@clisp.org>
81993
81994         * lib/stpncpy.h (gnu_stpncpy): New declaration.
81995         (stpncpy): Define as alias for gnu_stpncpy.
81996         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
81997
81998 2003-09-25  Simon Josefsson  <jas@extundo.com>
81999
82000         * lib/xgetdomainname.h: New file.
82001         * lib/xgetdomainname.c: New file.
82002
82003 2003-09-25  Simon Josefsson  <jas@extundo.com>
82004             Bruno Haible  <bruno@clisp.org>
82005
82006         * modules/getdomainname: New file.
82007         * modules/xgetdomainname: New file.
82008         * MODULES.html.sh (func_all_modules): Add getdomainname,
82009         xgetdomainname.
82010
82011 2003-09-25  Simon Josefsson  <jas@extundo.com>
82012             Bruno Haible  <bruno@clisp.org>
82013
82014         * m4/getdomainname.m4: New file.
82015
82016 2003-09-25  Simon Josefsson  <jas@extundo.com>
82017             Bruno Haible  <bruno@clisp.org>
82018
82019         * lib/getdomainname.h: New file.
82020         * lib/getdomainname.c: New file.
82021
82022 2003-09-25  Karl Berry  <karl@gnu.org>
82023
82024         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82025
82026 2003-09-25  Karl Berry  <karl@gnu.org>
82027
82028         * config/install-sh: update from automake.
82029
82030 2003-09-25  Bruno Haible  <bruno@clisp.org>
82031
82032         * modules/version-etc-2: New file, from modules/version-etc with
82033         modifications.
82034         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82035
82036 2003-09-25  Bruno Haible  <bruno@clisp.org>
82037
82038         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82039         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82040
82041 2003-09-24  Simon Josefsson  <jas@extundo.com>
82042
82043         * modules/xgethostname: Add xgethostname.h.
82044
82045 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82046
82047         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82048         the buffer associated with the argument.  Bug reported by
82049         Simon Josefsson.
82050
82051 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82052
82053         * README: Document assumptions that 'int' is at least 32 bits
82054         wide, that integer arithmetic is 2's complement without overflow,
82055         that there are no holes in integer values, that adding sizes of
82056         two nonoverlapping objects can't overflow, and that all-bits-zero
82057         yields scalar zero.  Fix spelling and capitalization typos.
82058
82059 2003-09-19  Karl Berry  <karl@gnu.org>
82060
82061         * lib/argp.h: update from libc.
82062
82063 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82064
82065         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82066         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82067         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82068
82069 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82070
82071         * gnulib-tool: Use "test -h", not "test -L", for portability
82072         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82073         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82074         (sed_extract_prog): Issue s commands one-by-one, rather than
82075         using \| in one s command.
82076
82077 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82078
82079         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82080         input error, instead of returning NULL the next time we are called
82081         (and therefore losing track of errno).
82082
82083 2003-09-16  Bruno Haible  <bruno@clisp.org>
82084
82085         * gnulib-tool (func_create_testdir): Warn about duplicated
82086         dependencies.
82087
82088 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82089
82090         * modules/argmatch, modules/fatal, modules/obstack,
82091         modules/xalloc, modules/xgethostname: Sort dependencies by
82092         importance, not alphabetically.
82093
82094 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82095
82096         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82097         fails, so that the caller gets the proper errno.
82098
82099         * lib/readutmp.c (read_utmp): Likewise.
82100         Check for fstat error.  Close stream and free storage
82101         when failing.
82102
82103 2003-09-14  Karl Berry  <karl@gnu.org>
82104
82105         * config/srclist.txt (strdup.c): disable for c89 changes.
82106
82107 2003-09-14  Jim Meyering  <jim@meyering.net>
82108
82109         * lib/getloadavg.c: Correct cpp indentation.
82110         * lib/strdup.c: Likewise.
82111         * lib/vasnprintf.c: Likewise.
82112
82113 2003-09-14  Bruno Haible  <bruno@clisp.org>
82114
82115         * modules/fwriteerror: New file.
82116         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82117
82118 2003-09-14  Bruno Haible  <bruno@clisp.org>
82119
82120         * lib/fwriteerror.h: New file.
82121         * lib/fwriteerror.c: New file.
82122
82123 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82124
82125         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82126         modules/xgethostname, modules/xalloc: Depend on exit.
82127
82128 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82129
82130         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82131
82132         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82133         and AC_MINIX, too, so that their extensions are available.
82134
82135         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82136         This macro has been superseded by gl_BACKUPFILE.
82137
82138         More patches to assume C89 or better.
82139
82140         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82141
82142         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82143         unconditionally.
82144         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82145         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82146         Include <string.h>, <stdlib.h> unconditionally.
82147         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82148         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82149         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82150         headers or for string.h.
82151         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82152         or strtoul.
82153
82154         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82155         headers.
82156         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82157         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82158         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82159         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82160         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82161         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82162         memcpy, memset.
82163         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82164         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82165         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82166         strtol.
82167         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82168         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82169         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82170         strtoul.
82171
82172 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82173
82174         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82175         * lib/obstack.c [!defined _LIBC]: Likewise.
82176         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82177         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82178         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82179
82180         More changes to assume C89 or better.
82181
82182         * lib/error.c (error_tail): Assume vprintf.
82183
82184         * lib/argmatch.c (getenv): Remove decl.
82185         * lib/progreloc.c (get_full_program_name): Define via prototype.
82186         * lib/setenv.c (clearenv): Likewise.
82187         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82188         needed.
82189         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82190         (malloc, memcpy): Remove decls.
82191         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82192         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82193         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82194         (memcpy): Remove macro.
82195         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82196         (__P): Remove.  All uses removed.
82197         (PTR): Remove.  All uses changed to void *.
82198         (CHAR_BIT, NULL): Remove.
82199         (spaces, zeros, memset_space, memset_zero)
82200         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82201         Remove.
82202         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82203         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82204         Define with prototype.
82205         Remove now-unnecessary prototype decl.
82206         (extra_args_spec): Assume ANSI C.  All uses changed.
82207         (extra_args_spec_iso): Remove.
82208         (my_strftime, emacs_strftimeu): Define via prototype.
82209         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82210         unconditionally.
82211         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82212         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82213         (strtoul, strtol): Remove decls.
82214         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82215         LONG_MAX): Remove.
82216         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82217         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82218         (LOCALE_PARAM_PROTO): New macro.
82219         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82220         (INTERNAL (strtol), strtol): Define with a prototype.
82221         (PARAMS): Remove.  All uses removed.
82222         * lib/tempname.c: Include <string.h> unconditionally.
82223         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82224         * lib/xgethostname.c (main): Define with a prototype.
82225         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82226         Include <stdlib.h> unconditionally.
82227         (calloc, malloc, realloc, free): Remove decls.
82228         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82229         Include <stdlib.h> unconditionally.  Sort include file names.
82230         (strtod): Remove.
82231         (xstrtod): Define with a prototype.
82232         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82233         (strtol, strtoul): Remove decls.
82234
82235 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82236
82237         More patches to assume C89 or better.
82238         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82239         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82240         string.h, memchr, STDC_HEADERS.
82241
82242 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82243
82244         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82245         Include <stdlib.h>, <string.h> unconditionally.
82246         Remove now-unnecessary cast to char *.
82247         * lib/strnlen.c: Include <string.h> unconditionally.
82248         * lib/yesno.c (yesno): Define with a prototype.
82249
82250 2003-09-11  Bruno Haible  <bruno@clisp.org>
82251
82252         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82253
82254 2003-09-10  Jim Meyering  <jim@meyering.net>
82255
82256         * lib/error.c: Correct indentation of cpp directives.
82257
82258 2003-09-10  Bruno Haible  <bruno@clisp.org>
82259
82260         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82261         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82262         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82263         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82264         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82265         <stdlib.h> and <string.h> checks.
82266         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82267         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82268
82269 2003-09-10  Bruno Haible  <bruno@clisp.org>
82270
82271         * lib/strcspn.c: Include <string.h> unconditionally.
82272         * lib/strpbrk.c: Include <string.h> unconditionally.
82273         * lib/strstr.c: Include <string.h> unconditionally.
82274         * lib/unicodeio.c: Include <string.h> unconditionally.
82275         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82276         * lib/unsetenv.c: Likewise.
82277         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82278         * lib/yesno.c: Include <stdlib.h> unconditionally.
82279         (rpmatch): Add prototype.
82280
82281 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82282
82283         More patches to assume C89 or better.
82284         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82285         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82286         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82287         or for string.h.
82288         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82289         stdlib.h.
82290         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82291         C headers.
82292         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82293         string.h.
82294         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82295         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82296         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82297         or for string.h.
82298         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82299         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82300         C headers.
82301         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82302         memcpy.
82303         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82304         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82305         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82306         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82307         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82308         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82309         string.h, free.
82310         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82311         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82312         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82313         C headers, or for string.h.
82314         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82315         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82316         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82317         headers, memory.h, stdlib.h, string.h, strings.h.
82318         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82319         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82320         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82321         strchr.
82322         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82323         headers, memory.h, string.h.
82324         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82325         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82326         free.
82327         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82328         headers.
82329         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82330         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82331         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82332         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82333         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82334
82335 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82336
82337         More K&R removal.
82338
82339         * lib/acosl.c (main): Use a prototype.
82340         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82341         tanl.c: Likewise.
82342
82343         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82344
82345         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82346         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82347         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82348         with a prototype.
82349         * lib/getopt.c (const): Remove macro.
82350         Include <string.h> unconditionally.
82351         (my_index): Remove; all uses changed to strchr.
82352         (strlen): Remove decl.
82353         (exchange): Remove forward decl; no longer needed.
82354         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82355         Define with prototype.
82356         * lib/getopt1.c (const): Remove macro.
82357         (getopt_long, getopt_long_only, main): Define with prototype.
82358
82359         * lib/getugroups.c: Include <string.h> unconditionally.
82360
82361         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82362         (getusershell, setusershell, endusershell, readname, main):
82363         Define with prototypes.
82364
82365         * lib/group-member.c: Include group-member.h first.
82366         Include <stdlib.h> unconditionally.
82367
82368         * lib/hard-locale.c: Include hard-locale.h first.
82369         Include <stdlib.h>, <string.h> unconditionally.
82370
82371         * lib/hash.c (free, malloc): Remove decls.
82372         Include <stdlib.h> unconditionally.
82373
82374         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82375         (getenv): Do not declare.
82376
82377         * lib/idcache.c: Include <string.h> unconditionally.
82378
82379         * lib/long-options.c: Include long-options.h first, to test interface.
82380         Include <stdlib.h> unconditionally.
82381
82382         * lib/makepath.c: Include makepath.h first, to test interface.
82383         Include <stdlib.h> and <string.h> unconditionally.
82384
82385         * lib/linebuffer.c: Include <stdlib.h>.
82386         (free): Remove decl.
82387
82388         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82389         stddef.h. rpl_malloc returns void *, not char *.
82390         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82391         prototype.
82392
82393         * lib/md5.h: Include <limits.h> unconditionally.
82394         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82395         (__P): Remove; all uses removed.
82396         * lib/md5.c: Include "md5.h" first.
82397         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82398         md5_buffer, md5_process_bytes, md5_process_block):
82399         Define with prototypes.
82400         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82401         * lib/sha.c: Include "sha.h" first.
82402         Include <stdlib.h>, <string.h> unconditionally.
82403
82404         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82405         * lib/memcmp.c (__ptr_t): Likewise.
82406         * lib/memrchr.c (__ptr_t): Likewise.
82407         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82408         Include <string.h> unconditionally.
82409         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82410         * lib/memchr.c: Include <stdlib.h> unconditionally.
82411         * lib/memchr.c (LONG_MAX): Remove.
82412         * lib/memrchr.c (LONG_MAX): Likewise.
82413         * lib/memchr.c (__memchr): Define via a prototype.
82414         * lib/memrchr.c (__memrchr): Likewise.
82415         * lib/memcmp.c (__P): Remove, and remove all uses.
82416         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82417         Remove forward decls; no longer needed.
82418         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82419         Use types required by C89 in prototype.
82420
82421         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82422         * lib/savedir.c: Likewise.
82423         * lib/mkdir.c (free): Remove decl.
82424         * lib/rmdir.c (rmdir): Define with a prototype.
82425         * lib/savedir.c: Include savedir.h first, to test interface.
82426
82427         * lib/mktime.c (STDC_HEADERS): Remove.
82428         Include <stdlib.h>, <string.h> unconditionally.
82429
82430         * lib/modechange.c: Include <stdlib.h> unconditionally.
82431         (malloc): Remove decl.
82432
82433         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82434         (free): Remove decl.
82435
82436         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82437         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82438         (This type really should be intptr_t, but that's a C99ism.)
82439         (_obstack_memcpy): Remove: all uses changed to memcpy.
82440         Include <string.h> unconditionally.
82441         (struct obstack): Assume __STDC__ for types of members
82442         chunkfun, freefun, extra_arg.
82443         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82444         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82445         obstack_begin, obstack_specify_allocation,
82446         obstack_specify_allocation_with_arg, obstack_chunkfun,
82447         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82448         Remove unprototyped decls and the macros that use them.
82449         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82450         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82451         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82452         (defined __STDC__ && __STDC__)]:
82453         Remove nonprototyped code.
82454         Include <stdlib.h> unconditionally.
82455         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82456         _obstack_allocated_p, _obstack_free, obstack_free,
82457         _obstack_memory_used, print_and_abort):
82458         Define using prototypes.
82459         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82460         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82461         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82462         obstack_next_free, obstack_object_size, obstack_room) [0]:
82463         Remove unused, unprototyped code.
82464
82465         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82466
82467         * lib/physmem.c (physmem_total, physmem_available, main): Define
82468         with prototypes.
82469
82470         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82471         (main): Define with a prototype.
82472
82473         * lib/posixver.c (getenv): Remove decl.
82474
82475         * lib/putenv.c (malloc): Returns void *, not char *.
82476         Include <string.h> unconditionally.
82477         (strchr, memcpy, NULL): Do not define.
82478
82479         * lib/readtokens.c: Include readtokens.h first, to test interface.
82480         Include <stdlib.h>, <string.h> unconditionally.
82481         (init_tokenbuffer): Define with a prototype.
82482
82483         * lib/regex.c (PARAMS): Remove.  All uses removed.
82484         All uses of _RE_ARGS removed, too.
82485         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82486         unconditionally.
82487         (bzero): Assume memset exists.
82488         (memcmp, memcpy, NULL): Remove.
82489         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82490         char, or assignments to local vars of type signed char.
82491         (init_syntax_once, PREFIX(extract_number_and_incr),
82492         PREFIX(print_partial_compiled_pattern),
82493         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82494         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82495         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82496         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82497         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82498         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82499         wcs_compile_range, byte_compile_range, truncate_wchar,
82500         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82501         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82502         count_mbs_length, wcs_re_match_2_internal,
82503         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82504         PREFIX(alt_match_null_string_p),
82505         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82506         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82507         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82508         now-unnecessary declaration, if any.
82509         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82510         regcomp, regexec):
82511         Remove now-unnecessary casts among pointer types.
82512         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82513
82514         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82515         (free): Remove decl.
82516
82517         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82518
82519         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82520         (free): Remove decl.
82521
82522         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82523         * lib/xgetcwd.c: Likewise.
82524
82525         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82526         (free): Remove decl.
82527
82528         * lib/strchrnul.c (strchrnul): Define with a prototype.
82529         Fix bug: c_in was not converted to char before searching.
82530
82531         The following changes are not K&R related:
82532
82533         * lib/group-member.h: Include <sys/types.h>, so that this file is
82534         self-contained.
82535         * lib/makepath.h: Likewise.
82536
82537         * lib/getusershell.c (readname, default_index, line_size, readname):
82538         Use size_t, not int, for sizes.
82539         (readname): If the size overflows, report an error instead of
82540         looping forever.
82541
82542 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82543
82544         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82545         libc.
82546
82547 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82548
82549         * README: New section: portability guidelines.
82550
82551 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82552
82553         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82554         C89 spec.
82555
82556 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82557
82558         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82559
82560 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82561
82562         Assume C89 or better; remove K&R cruft.
82563         A few of these changes were first proposed by Derek Robert Price
82564         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82565
82566         * lib/addext.c: Include <string.h> unconditionally.
82567         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82568         Don't declare getenv or malloc.
82569
82570         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82571         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82572         (NULL): Remove.
82573         (find_stack_direction, alloca): Use prototypes.
82574
82575         * lib/atexit.c (atexit): Define using a prototype.
82576
82577         * lib/basename.c, dirname.c, stripslash.c:
82578         Include <string.h> unconditionally.
82579
82580         * lib/bcopy.c: Include <stddef.h>.
82581         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82582
82583         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82584
82585         * lib/error.h (error, error_at_line, error_print_progname)
82586         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82587         * lib/error.c: Include error.h first, to check interface.
82588         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82589         (VA_START): Remove; all uses changeed to va_start.
82590         (exit, strerror): Remove decls.
82591         (error_print_progname): Prototype uncondionally.
82592         Don't include <errno.h>; no longer needed.
82593         (private_strerror): Remove.
82594         (error_tail): Always define.
82595         (error, error_at_line): Assume C89 or better; always use prototypes.
82596         * lib/fatal.c: Include "fatal.h" first, to test interface.
82597         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82598         (VA_START): Remove; all uses changed to va_start.
82599         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82600         this case.
82601         (exit): Remove decl.
82602         (fatal): Prototype unconditionally.  Assume va_start works.
82603         Abort at end, to pacify gcc.
82604
82605         * lib/euidaccess.c (main): Define with a prototype.
82606
82607         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82608
82609         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82610
82611         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82612         prototypes.
82613         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82614         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82615         (getenv): Remove decl.
82616         (fnmatch): Define using a prototype.
82617         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82618         (FCT): Define using a prototype.
82619
82620         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82621
82622         * lib/gethostname.c: Include <stddef.h>.
82623         (gethostname): Define with prototype.  Length is size_t, not int.
82624
82625 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82626
82627         Assume C89 or better; remove K&R cruft.
82628         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82629         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82630         string.h, getenv, malloc.
82631         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82632         headers.
82633         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82634         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82635         do not check for strerror.
82636         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82637         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82638         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82639         do not check for doprnt or vprintf.
82640         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82641         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82642
82643 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82644
82645         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82646         getversion.c should have been removed then, but was accidentally
82647         preserved.
82648
82649         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82650         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82651
82652 2003-09-08  Karl Berry  <karl@gnu.org>
82653
82654         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82655                 config, forget about prep.
82656
82657         * config/depcomp, missing: update from automake.
82658
82659 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82660
82661         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82662         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82663
82664 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82665
82666         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82667         copy_tm_result.  Bug reported by Simon Josefsson in
82668         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82669
82670 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82671
82672         * m4/time_r.m4: New file.
82673         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82674         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82675         is. Check for timegm declaration.
82676         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82677         Do not check for gmtime_r.
82678         Replace mktime if __mktime_internal does not exist and if mktime
82679         hasn't been replaced already.
82680
82681 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82682
82683         * lib/time_r.c, lib/time_r.h: New files.
82684
82685         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82686         __localtime_r.
82687         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82688         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82689
82690         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82691         __gmtime_r.
82692         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82693         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82694         Include <time_r.h>.
82695
82696         * lib/timegm.c: Switch to glibc implementation, with the following
82697         changes:
82698         [defined HAVE_CONFIG_H]: Include <config.h>.
82699         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82700         (__mktime_internal) [!defined _LIBC]: New decl.
82701         (__gmtime_r) [!defined _LIBC]: New macro and function.
82702         (timegm): Use a prototype, since gnulib assumes C89.
82703         Do not bother declaring tmp to be const, as it's not really usefu.
82704         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82705         (timegm): Declare only if HAVE_DECL_TIMEGM.
82706
82707 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82708
82709         * MODULES.html.sh (func_all_modules): Add time_r.
82710         * modules/time_r: New file.
82711         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82712         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82713
82714 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82715
82716         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82717         Bug reported by Lute Kamstra in
82718         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82719
82720         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82721         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82722         course with correspondingly smaller numbers for tomorrow and
82723         yesterday.  From Tadayoshi Funaba.  Originally installed into
82724         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82725         coreutils merge?).
82726
82727 2003-08-31  Simon Josefsson  <jas@extundo.com>
82728
82729         * modules/timegm: New file.
82730         * MODULES.html.sh (func_all_modules): Add timegm.
82731
82732 2003-08-31  Simon Josefsson  <jas@extundo.com>
82733
82734         * m4/timegm.m4: New file.
82735
82736 2003-08-31  Simon Josefsson  <jas@extundo.com>
82737
82738         * lib/timegm.h: New file.
82739         * lib/timegm.c: New file.  Based on
82740         wget-1.8.2/src/http.c:mktime_from_utc.
82741
82742 2003-08-31  Karl Berry  <karl@gnu.org>
82743
82744         * lib/argp.h: update from libc.
82745
82746 2003-08-28  Bruno Haible  <bruno@clisp.org>
82747
82748         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82749         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82750         followed by '#define fnmatch fnmatch_posix' gives an error.
82751
82752 2003-08-28  Bruno Haible  <bruno@clisp.org>
82753
82754         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82755         warning on QNX, which defines O_BINARY to 000000.
82756
82757 2003-08-27  Jim Meyering  <jim@meyering.net>
82758
82759         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82760         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82761         would fail after 32.  Reported by Danny Levinson.  Details here:
82762         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82763
82764 2003-08-24  Bruno Haible  <bruno@clisp.org>
82765
82766         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82767         MSVC7 <stdio.h> is included later.
82768
82769 2003-08-22  Simon Josefsson  <jas@extundo.com>
82770
82771         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82772
82773 2003-08-20  Karl Berry  <karl@gnu.org>
82774
82775         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82776
82777 2003-08-20  Bruno Haible  <bruno@clisp.org>
82778
82779         * modules/progname: New file.
82780         * MODULES.html.sh (func_all_modules): Add progname.
82781
82782 2003-08-20  Bruno Haible  <bruno@clisp.org>
82783
82784         * lib/progname.h: New file, from GNU gettext.
82785         * lib/progname.c: New file, from GNU gettext.
82786         * lib/progreloc.c: New file, from GNU gettext.
82787
82788 2003-08-19  Jim Meyering  <jim@meyering.net>
82789
82790         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82791         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82792
82793 2003-08-19  Bruno Haible  <bruno@clisp.org>
82794
82795         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82796         more.
82797
82798 2003-08-19  Bruno Haible  <bruno@clisp.org>
82799
82800         * lib/xstrdup.c: Assume <string.h> exists.
82801
82802 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82803
82804         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82805         in makefile rules.
82806
82807 2003-08-18  Jim Meyering  <jim@meyering.net>
82808
82809         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82810         * m4/lib-ld.m4: Likewise.
82811
82812 2003-08-18  Jim Meyering  <jim@meyering.net>
82813
82814         * lib/setenv.h: Indent nested cpp directive.
82815         * lib/vasnprintf.c: Remove trailing blanks.
82816
82817 2003-08-17  Simon Josefsson  <jas@extundo.com>
82818
82819         * modules/xstrndup: New file.
82820         * MODULES.html.sh (func_all_modules): Add xstrndup.
82821
82822 2003-08-17  Simon Josefsson  <jas@extundo.com>
82823
82824         * modules/argp: Fix autoconf macro name. Add more dependencies.
82825
82826 2003-08-17  Simon Josefsson  <jas@extundo.com>
82827
82828         * m4/xstrndup.m4: New file.
82829
82830 2003-08-17  Simon Josefsson  <jas@extundo.com>
82831
82832         * m4/argp.m4: New file.
82833
82834 2003-08-17  Simon Josefsson  <jas@extundo.com>
82835             Bruno Haible  <bruno@clisp.org>
82836
82837         * lib/xstrndup.h: New file.
82838         * lib/xstrndup.c: New file.
82839
82840 2003-08-17  Bruno Haible  <bruno@clisp.org>
82841
82842         * modules/strndup (Files, Include): Add lib/strndup.h.
82843
82844 2003-08-17  Bruno Haible  <bruno@clisp.org>
82845
82846         * modules/euidaccess (Files): Add lib/euidaccess.h.
82847
82848 2003-08-17  Bruno Haible  <bruno@clisp.org>
82849
82850         * lib/strndup.h: New file.
82851
82852 2003-08-17  Bruno Haible  <bruno@clisp.org>
82853
82854         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82855         like AC_GNU_SOURCE.
82856         * modules/extensions (configure.ac): Comment out the invocation of
82857         gl_USE_SYSTEM_EXTENSIONS.
82858
82859 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82860
82861         Merges from coreutils, etc.
82862         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82863         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82864         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82865         fixing a typo.
82866         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82867         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82868
82869 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82870
82871         Document merge from coreutils.
82872         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82873         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82874         * modules/utime: Add m4/utimes-null.m4.
82875
82876 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82877
82878         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82879         space, undoing this 2003-08-12 change:
82880         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82881
82882 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82883
82884         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82885         strtoul.c from libc, undoing this 2003-08-12 change:
82886         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82887
82888 2003-08-16  Jim Meyering  <jim@meyering.net>
82889
82890         Merges from coreutils.
82891         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82892         prefix.  Adjust cache variables similarly.  Create 500 rather than
82893         just 300 files, to exercise bug on Darwin6.5, too.
82894         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82895         $missing_dir.
82896         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82897         AM_SYS_POSIX_TERMIOS.
82898         Reported by mkc@mathdogs.com.
82899         Also change use of $am_cv_sys_posix_termios
82900         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82901         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82902         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82903         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82904         in /proc/mounts until it finds one with matching device number.  This
82905         is unnecessary when the FILE argument *is* a mount point.  No stat call
82906         is necessary in that case.  So, disable the statvfs-testing code on
82907         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82908         as RedHat bug# 84846.
82909         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82910         to 1MB, so as not to render systems with no stack size limit (e.g.,
82911         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82912         Include <unistd.h>.  On some systems,
82913         it is required for the definition of _SC_PAGESIZE.
82914
82915 2003-08-16  Jim Meyering  <jim@meyering.net>
82916
82917         Merge from coreutils.
82918         * lib/xstrtoimax.c: #else #if -> #elif.
82919         * lib/xstrtoumax.c: Likewise.
82920
82921 2003-08-16  Jim Meyering  <jim@meyering.net>
82922
82923         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82924         * m4/utimes.m4: Removed.
82925         * m4/utimes-null.m4: Renamed from utimes.m4.
82926
82927         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82928         to 1MB, so as not to render systems with no stack size limit (e.g.,
82929         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82930         Include <unistd.h>.  On some systems,
82931         it is required for the definition of _SC_PAGESIZE.
82932
82933 2003-08-16  Jim Meyering  <jim@meyering.net>
82934         and Paul Eggert  <eggert@cs.ucla.edu>
82935
82936         Merges from coreutils, etc.
82937
82938         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
82939         using the latest version from cvs.  This avoids problems with #line
82940         directives using a vendor (Sun) compiler.
82941         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
82942         Don't set GETGROUPS_LIB here; now it's
82943         done via getgroups.m4's wrapper function.
82944         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
82945         rather than just in sh-util/configure.in, so that the
82946         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
82947         same.
82948         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
82949         AC_FUNC_GETLOADAVG where to find getloadavg.c.
82950         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
82951         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
82952         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
82953         Remove code that is now done by the newly-required macros.
82954         Append $(EXEEXT) to DF_PROG.
82955         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
82956         Do not invoke or require the following here,
82957         since prereq.m4 or some gnulib .m4 now does this for us:
82958         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
82959         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
82960         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
82961         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
82962         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
82963         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
82964         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
82965         AC_FUNC_OBSTACK.
82966         Do not replace the following functions, as this is now the job
82967         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
82968         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
82969         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
82970         atexit getpass, strdup, getpagesize.
82971         Replace 'raise'.
82972         Do not check for the following functions, as this is now the job
82973         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
82974         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
82975         setregid.
82976         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
82977         Check for sys/sysctl.h.
82978         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
82979         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
82980         of checking for ssize_t ourselves.
82981
82982         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
82983         Require every macro that gnulib/modules/* suggests for us.
82984         (jm_PREREQ_ADDEXT): New macro.
82985         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
82986         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
82987
82988         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
82989         (gl_PHYSMEM): Use it.
82990         Also check for `table' function.
82991         Check for new headers and functions.
82992         Add check for sys/sysmp.h.
82993         With suggestions from Kaveh Ghazi.
82994         Ignore headers that are present but cannot be compiled.  This
82995         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
82996         C 5.4.
82997
82998 2003-08-15  Paul Eggert  <eggert@twinsun.com>
82999
83000         Document merge from coreutils.
83001         * modules/userspec: Depend on posixver.
83002         * modules/strftime: Depend on tzset.
83003
83004 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83005
83006         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83007         rather than tab, after '#' in shell-script copyright notices.
83008         Suggested by Bruno Haible.
83009
83010 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83011
83012         * config/srclist-update: Use three spaces, rather than tab, after '#'
83013         in shell-script copyright notices.  Suggested by Bruno Haible.
83014         Remove unnecessary parenthesization in regular expression.
83015
83016 2003-08-15  Jim Meyering  <jim@meyering.net>
83017
83018         Merge from coreutils.
83019         * lib/xgethostname.c: Include <stdlib.h>.
83020         (xghostname): Don't exit for anything other than memory-related
83021         failure; just return NULL.
83022         * lib/userspec.c: Include "posixver.h".
83023         (parse_user_spec): Accept `.' as a separator only
83024         in pre-POSIX-200112 mode.
83025         * lib/strtoimax.c: Use #elif rather than #else #if.
83026         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83027         Remove function, now that we can rely on a working tzset function.
83028         [!_LIBC]: Ensure that the required autoconf test has been run.
83029         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83030         Use underlying_strftime for %r.
83031         * lib/sha.c: Merge in some clean-up and optimization changes from
83032         glibc.
83033         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83034         Ensure that it is a multiple of 64.
83035         Rearrange loop exit tests so as to avoid performing an
83036         additional fread after encountering an error or EOF.
83037         * lib/realloc.c: Update copyright date.
83038
83039 2003-08-15  Jim Meyering  <jim@meyering.net>
83040         and Paul Eggert  <eggert@twinsun.com>
83041
83042         Merge from coreutils.
83043         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83044         member but strut utmpx does not.  Needed for AIX 4.3.3.
83045         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83046
83047 2003-08-15  Jim Meyering  <jim@meyering.net>
83048         and Paul Eggert  <eggert@cs.ucla.edu>
83049
83050         Merges from coreutils, etc.
83051         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83052         Require gl_FUNC_TZSET_CLOBBER.
83053         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83054         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83055         members.
83056
83057 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83058
83059         Help the merge from coreutils.
83060         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83061         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83062         * m4/tzset.m4: Use it too.
83063
83064 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83065
83066         * modules/tzset: New file.
83067
83068 2003-08-14  Jim Meyering  <jim@meyering.net>
83069
83070         Merges from coreutils.
83071         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83072         variable names, rather than @FNMATCH_H@.
83073         * modules/alloca: Likewise for $(ALLOCA_H).
83074
83075         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83076         the three copies of the literal target, `fnmatch.h'.
83077         * modules/alloca (alloca.h): Likewise.
83078
83079 2003-08-14  Jim Meyering  <jim@meyering.net>
83080
83081         Merge from coreutils.
83082         * m4/tzset.m4: New file.
83083         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83084         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83085         otherwise, AIX 5.1 systems would end up using the latter.
83086         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83087         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83088         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83089         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83090
83091 2003-08-14  Jim Meyering  <jim@meyering.net>
83092
83093         Merge from coreutils.
83094         * lib/obstack.h: Whitespace changes.
83095         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83096         and xcalloc return values.
83097         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83098         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83099         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83100         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83101         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83102         error from mntctl.
83103         Use mntctl's return value to drive the entry-processing loop, since
83104         we can't rely on the value of the vmt_length member in the last
83105         entry.  On some systems doing so could result in exhausting
83106         virtual memory.  Based in part on a patch from Mike Jetzer.
83107
83108 2003-08-14  Jim Meyering  <jim@meyering.net>
83109         and Paul Eggert  <eggert@twinsun.com>
83110
83111         Merges from coreutils, plus other fixes.
83112         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83113         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83114         for credits and details.  Thanks to Kaveh Ghazi for helping
83115         to keep these files in sync.
83116         (ARRAY_SIZE): Define it.
83117         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83118         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83119         (memcasecmp): Don't assume size_t fits in unsigned int.
83120         Remove casts and duplicate code.
83121         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83122         (memcpy): Remove definition.
83123         Merge in some clean-up and optimization changes from glibc.
83124         [BLOCKSIZE]: Move definition to top of file.
83125         Ensure that it is a multiple of 64.
83126         Rearrange loop exit tests so as to avoid performing an
83127         additional fread after encountering an error or EOF.
83128         * lib/md5.h (md5_uintptr): Define.
83129         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83130         return to the initial working directory.  Preserve errno
83131         for caller.
83132         * lib/idcache.c: Include "xalloc.h".
83133         (xmalloc, xrealloc): Remove decls.
83134         (getuser): Remove casts no longer required in C89.
83135         * lib/human.c: Include stdio.h, for sprintf.
83136         * lib/group-member.c: Include "xalloc.h".
83137         (xmalloc, xrealloc): Remove decls.
83138         (get_group_info): Remove casts no longer required in C89.
83139         * lib/getusershell.c (readname): Remove casts no longer required in
83140         C89.
83141         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83142         * lib/getline.c: Whitespace fix, from coreutils.
83143
83144 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83145
83146         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83147         Check for isascii.
83148
83149         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83150         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83151         Undo previous (whitespace-only) change.
83152
83153 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83154
83155         * lib/exclude.c: Include <ctype.h>
83156         (IN_CTYPE_DOMAIN): New macro.
83157         (is_space): New fn.
83158         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83159         and empty lines.
83160
83161         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83162         Undo previous (whitespace-only) change.
83163
83164 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83165
83166         * config/srclist-update: Change update back to the old behavior,
83167         leaving whitespace alone.  Use one 'sed' command rather than a
83168         pipeline.
83169         (fixlicense): Now a variable, not a function.
83170         (remove_trailing_blanks): Remove.
83171         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83172         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83173         Undo previous (whitespace-only) change.
83174
83175 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83176
83177         Merge from coreutils.
83178         * modules/euidaccess: Add lib_SOURCES, include for new
83179         file euidaccess.h
83180
83181 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83182
83183         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83184         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83185         Normalize leading white space and remove trailing white space.
83186
83187         Merge from coreutils
83188         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83189
83190         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83191         0.12.1.  These files are now being upgraded automatically by
83192         ../config/srclist-update.
83193
83194 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83195
83196         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83197         Normalize leading white space and remove trailing white space.
83198         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83199         notice, as per ../config/srclist-update.
83200
83201         Merge from coreutils.
83202         * lib/euidaccess.h: New file.
83203         * lib/euidaccess.c: Include it.
83204         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83205         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83206         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83207
83208 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83209
83210         * config/srclist-update: Add copyright notice.
83211         (remove_id_lines, remove_trailing_blanks): New constants.
83212         (fixfile): Use them to normalize spacing a bit in copied files.
83213         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83214         Normalize leading white space and remove trailing white space.
83215
83216         * config/texinfo.tex: Sync with texinfo.
83217
83218         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83219         strtoul.c from libc, to merge coreutils whitespace changes.
83220
83221         * config/srclist.txt: Get the following m4 files from gettext:
83222         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83223         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83224         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83225         wint_t.m4.
83226
83227 2003-08-12  Karl Berry  <karl@gnu.org>
83228
83229         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83230         been made.
83231
83232 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83233
83234         * modules/gnu-source, m4/gnu-source.m4:
83235         Remove; we're assuming Autoconf 2.54 or later now.
83236         Suggested by Bruno Haible.
83237         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83238
83239 2003-08-11  Bruno Haible  <bruno@clisp.org>
83240
83241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83242
83243 2003-08-11  Bruno Haible  <bruno@clisp.org>
83244
83245         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83246         (vasnprintf): Use it instead of wcslen.
83247
83248 2003-08-11  Bruno Haible  <bruno@clisp.org>
83249
83250         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83251         value to ensure that _Bool promotes to int. Use #define for _Bool when
83252         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83253
83254 2003-08-10  Karl Berry  <karl@gnu.org>
83255
83256         * lib/regex.h: update from libc (whitespace fix).
83257
83258 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83259
83260         Merge some files from coreutils.  These changes were
83261         originally made by Jim Meyering.
83262         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83263         many older Unixes require this.
83264         * lib/alloca.c (alloca): Remove cast to argument of free;
83265         no longer needed in C89.
83266         * lib/alloca_.h, regex.h: Fix white space to match
83267         what GNU indent does.
83268
83269 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83270
83271         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83272         apparently Emacs's Unicode mode got confused before my 2003-08-05
83273         checkin.
83274
83275 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83276
83277         * m4/extensions.m4: New file.
83278         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83279         Require gl_USE_SYSTEM_EXTENSIONS.
83280         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83281         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83282
83283 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83284
83285         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83286         * modules/extensions, modules/gnu-source: New files.
83287         * modules/timespec, modules/unlocked-io: Depend on extensions.
83288
83289 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83290
83291         * modules/restrict: New file.
83292         * MODULES.html.sh (func_all_modules): Add restrict.
83293         * modules/regex: Depend on restrict.
83294
83295 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83296
83297         * m4/restrict.m4: New file.
83298         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83299
83300 2003-08-07  Bruno Haible  <bruno@clisp.org>
83301
83302         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83303         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83304
83305 2003-08-07  Bruno Haible  <bruno@clisp.org>
83306
83307         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83308         makes the module 'getndelim2' compatible with the module 'getline'.
83309
83310 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83311
83312         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83313         byte with "\201" to avoid glitches when editing that source file
83314         with multi-gnome-terminal.
83315
83316 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83317
83318         * lib/bumpalloc.h: Remove.
83319
83320 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83321
83322         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83323         * modules/bumpalloc: Remove.
83324
83325 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83326
83327         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83328         GNU coding style.
83329
83330         Merge from coreutils.
83331         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83332         1. From glibc.
83333         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83334         from Karl Berry, implemented by Jim Meyering.
83335         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83336         from Dmitry V. Levin.
83337         Remove anachronistic cast of xrealloc.
83338         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83339         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83340         type. Otherwise, it wouldn't compile with at least /bin/cc on
83341         ymp-cray-unicos9.0.2.X.
83342         Combine two mostly-identical uses of alloca into one.
83343         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83344
83345 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83346
83347         [From Emacs.]
83348
83349         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83350         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83351         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83352         obsolete NLIST_NAME_UNION.
83353         [__GNU__]: Undef BSD and FSCALE.
83354         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83355
83356 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83357
83358         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83359         an enum type, so that it's guaranteed to promote to int.  See:
83360         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83361
83362 2003-08-03  Karl Berry  <karl@gnu.org>
83363
83364         * config/depcomp: update from automake.
83365
83366 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83367
83368         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83369         (strerror): Don't assume that a printable int fits in 14 bytes.
83370
83371 2003-07-31  Bruno Haible  <bruno@clisp.org>
83372
83373         * modules/getpass-gnu: New file.
83374         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83375
83376 2003-07-31  Bruno Haible  <bruno@clisp.org>
83377
83378         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83379
83380 2003-07-24  Karl Berry  <karl@gnu.org>
83381
83382         * config/missing: update from automake.
83383
83384 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83385             Bruno Haible  <bruno@clisp.org>
83386
83387         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83388         * lib/getline.c (getline, getdelim): Likewise.
83389         Remove _GNU_SOURCE define; now it's defined in config.h through
83390         m4/getline.m4.
83391
83392 2003-07-23  Karl Berry  <karl@gnu.org>
83393
83394         * config/config.sub: update from prep.
83395
83396 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83397
83398         * modules/xalloc (Depends-on): Add exitfail.
83399         * modules/xmemcoll: Likewise.
83400
83401 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83402
83403         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83404         over-parenthesization in macros.
83405
83406         Sync with coreutils.
83407
83408         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83409         required by C99.
83410
83411         Use `exit_failure' for xalloc and xmemcoll instead of their own
83412         private exit-failure variables.
83413         * lib/xalloc.h (xalloc_exit_failure): Remove.
83414         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83415         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83416         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83417         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83418         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83419
83420 2003-07-20  Jim Meyering  <jim@meyering.net>
83421
83422         * modules/closeout (Depends-on): Add exitfail.
83423         Suggestion from Bruno Haible.
83424
83425 2003-07-19  Karl Berry  <karl@gnu.org>
83426
83427         * config/config.sub: update from prep.
83428
83429 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83430
83431         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83432         Remove.
83433         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83434         to test that it can stand by itself.  Include "exitfail.h".
83435         Clients should set exit_failure instead.
83436         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83437
83438 2003-07-18  Bruno Haible  <bruno@clisp.org>
83439
83440         * modules/getndelim2: New file.
83441         * modules/getline: Share files with module getndelim2.
83442         * modules/getnline: Depend on getndelim2 instead of sharing files with
83443         it. Add getnline.c to lib_SOURCES.
83444         * MODULES.html.sh (func_all_modules): Add getndelim2.
83445
83446 2003-07-18  Bruno Haible  <bruno@clisp.org>
83447
83448         * m4/getndelim2.m4: New file.
83449         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83450         invoke gl_PREREQ_GETNDELIM2.
83451         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83452         gl_PREREQ_GETNDELIM2.
83453         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83454         gl_GETNDELIM2.
83455
83456 2003-07-18  Bruno Haible  <bruno@clisp.org>
83457
83458         * lib/getndelim2.h: New file.
83459         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83460         getndelim2.h.
83461         (getndelim2): Make non-static. Change return type to ssize_t.
83462         * lib/getline.h: Change argument names.
83463         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83464         * lib/getnline.c: Include getndelim2.h.
83465
83466 2003-07-18  Andreas Schwab  <schwab@suse.de>
83467
83468         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83469
83470 2003-07-17  Karl Berry  <karl@gnu.org>
83471
83472         * config/config.sub: update from prep.
83473
83474 2003-07-17  Bruno Haible  <bruno@clisp.org>
83475
83476         * modules/getnline: New file.
83477         * modules/getline: Add lib/getndelim2.c to source file list.
83478         * MODULES.html.sh (func_all_modules): Add getnline.
83479
83480 2003-07-17  Bruno Haible  <bruno@clisp.org>
83481
83482         * m4/getnline.m4: New file.
83483
83484 2003-07-17  Bruno Haible  <bruno@clisp.org>
83485
83486         * m4/Makefile.am.in: Remove file.
83487         * m4/Makefile.am: Remove file.
83488         * m4/Makefile.in: Remove file.
83489
83490 2003-07-17  Bruno Haible  <bruno@clisp.org>
83491
83492         * lib/getnline.h: New file.
83493         * lib/getnline.c: New file.
83494         * lib/getndelim2.c: New file, extracted from getline.c.
83495         (getndelim2): Renamed from getdelim2, with added nmax argument.
83496         * lib/getline.c: Include getndelim2.c.
83497         (getdelim2): Moved out to getndelim2.c.
83498         (getline, getdelim): Update.
83499
83500 2003-07-17  Bruno Haible  <bruno@clisp.org>
83501
83502         * lib/Makefile.am: Remove file.
83503         * lib/Makefile.in: Remove file.
83504
83505 2003-07-17  Bruno Haible  <bruno@clisp.org>
83506
83507         * configure.in: Remove file.
83508         * Makefile.in: Remove file.
83509
83510 2003-07-17  Bruno Haible  <bruno@clisp.org>
83511
83512         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83513
83514 2003-07-16  Karl Berry  <karl@gnu.org>
83515
83516         * config/srclist-update: was running fixlicense twice, which caused
83517                 texinfo.tex to be nullified for some reason.  Simplify,
83518                 $gplsrc is no longer needed as far as I can see?
83519
83520 2003-07-16  Jim Meyering  <jim@meyering.net>
83521
83522         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83523
83524 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83525
83526         * config/srclist.txt: Get the following files from gettext-runtime/intl
83527         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83528         ref-del.sin.  From Bruno Haible.
83529         * config/srclist-update (fixfile): Change grep pattern again, since the
83530         previous fix didn't work (there was another trailing $).  Use
83531         '[$]' to escape the $s.
83532
83533 2003-07-15  Karl Berry  <karl@gnu.org>
83534
83535         * lib/vasnprintf.c: update from gettext.
83536
83537 2003-07-15  Karl Berry  <karl@gnu.org>
83538
83539         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83540         gets expanded when surrounded by '$'.
83541
83542 2003-07-15  Jim Meyering  <jim@meyering.net>
83543
83544         * modules/save-cwd: Don't depend on error.  From Derek Price.
83545
83546 2003-07-15  Jim Meyering  <jim@meyering.net>
83547
83548         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83549
83550 2003-07-14  Simon Josefsson  <jas@extundo.com>
83551
83552         * modules/mempcpy: New file.
83553         * MODULES.html.sh (func_all_modules): Add mempcpy.
83554
83555 2003-07-14  Simon Josefsson  <jas@extundo.com>
83556
83557         * m4/mempcpy.m4: New file.
83558
83559 2003-07-14  Simon Josefsson  <jas@extundo.com>
83560
83561         * lib/mempcpy.h: New file.
83562         * lib/mempcpy.c: New file.
83563
83564 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83565
83566         * modules/getdate, modules/posixtm: Depend on mktime.
83567
83568 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83569
83570         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83571         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83572         unicodeio.c, unicodeio.h, unlocked-io.h:
83573         Switch from LGPL to GPL.
83574
83575 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83576
83577         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83578         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83579         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83580         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83581         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83582         updated automatically by ../config/srclist-update.  This changes
83583         their license from LPGL to GPL.
83584
83585 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83586
83587         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83588         assumed to refer to the root of the most recent stable gettext version.
83589         * config/srclistvars.sh: Add defaults for eggert.
83590         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83591         Match "This program" as well as "The program".  This is needed
83592         for gettext.
83593
83594 2003-07-14  Jim Meyering  <jim@meyering.net>
83595
83596         Don't emit diagnostics.  Let callers do that.
83597         * lib/save-cwd.c: Don't include "error.h".
83598         (save_cwd): Don't call error.  Ensure that errno is valid
83599         when returning nonzero.
83600
83601         * lib/save-cwd.h (restore_cwd): Update prototype.
83602         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83603         Simplify.  Don't call error upon failure.  Let callers do that.
83604         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83605         when auditing is enabled.  But don't bother updating the #if.
83606
83607 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83608
83609         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83610         it breaks C++ compilation.
83611         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83612
83613 2003-07-10  Simon Josefsson  <jas@extundo.com>
83614
83615         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83616
83617 2003-07-10  Jim Meyering  <jim@meyering.net>
83618
83619         * m4/clock_time.m4: Remove trailing blank.
83620         * m4/intmax_t.m4: Likewise.
83621
83622 2003-07-10  Jim Meyering  <jim@meyering.net>
83623
83624         * lib/vasnprintf.c: Remove trailing blanks.
83625         Make cpp indentation consistent.
83626
83627 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83628
83629         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83630         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83631         Switch from LGPL to GPL.
83632
83633 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83634
83635         * config/srclist.txt: Sort sublists.  Add
83636         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83637         that differ from gnulib for one reason or another; we'd like this list
83638         to be smaller but for now let's document what we have.
83639
83640 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83641
83642         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83643         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83644         and sweeter "eval x=$x".
83645         * config/srclist.txt: Get lib/argp* from glibc.
83646
83647 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83648
83649         * lib/mktime.c: Fix some boundary cases and remove need for floating
83650         point.
83651
83652         Issue a compile-time diagnostic if time_t is floating point, or if
83653         two's complement arithmetic is not in effect, or if arithmetic
83654         right shift does not propagate the sign.  These assumptions were
83655         all in the original code but they weren't checked.
83656
83657         (TIME_T_MIDPOINT, verify): New macros.
83658         (__isleap): Remove; it has integer overflow problems.
83659         (leapyear): New function, without those problems.
83660         (ydhms_tm_diff): Remove; splitting into two parts.
83661         (ydhms_diff): New function, containing the arithmetic part of
83662         the old ydhms_tm_diff function.  Issue a compile-time
83663         diagnostic if we are not using C99 integer division.
83664         Avoid casts when possible.
83665         (guess_time_tm): New function, containing the checking part of
83666         the old ydhms_tm_diff function.  Return the new value, rather than
83667         the difference between it and the old.  Accept a new argument T
83668         so that *T specifies the old value.  Check for overflow in the result.
83669
83670         (__mktime_internal): Use a time_t offset, not a long int offset.
83671         This undoes the 2003-06-04 change, which is no longer needed now
83672         that we have better overflow checking.
83673         (localtime_offset): Likewise.
83674
83675         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83676         and long are 64-bit but int is only 32-bit.
83677         (ydhms_diff): Use long int to store year1 and yday1.
83678         Issue a compile-time diagnostic if long int is not wide enough.
83679
83680         (__mktime_internal): Use long int to store adjusted year and yday.
83681         Use plain C rather than preprocessor commands, if that doesn't
83682         affect efficiency.
83683         Check for overflow (and try to repair) after each probe
83684         rather than checking only at the very end.  This avoids some bugs
83685         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83686         does not equal GMT offset at maximum time).
83687         Use integer to check for overflow rather than floating point; this
83688         is more portable to non-IEEE hosts, and is a tad faster.
83689         When we detect that we are oscillating between two values,
83690         don't check whether tm_isdst has the requested value, since
83691         we already know the answer.  When tm_isdst has the wrong value,
83692         use a different heuristic to find the right one, based on the
83693         extreme values actually observed in practice in tz2003a,
83694         rather than the (overly optimistic) "previous 3 calendar quarters".
83695
83696         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83697         "T const" to accommodate glibc style.
83698         (check_result): Use less-confusing report format.  "long" -> "long int.
83699         (main): Likewise.
83700         Don't loop if the iteration overflows time_t.
83701         Allow a negative step in the iteration.
83702
83703 2003-07-06  Karl Berry  <karl@gnu.org>
83704
83705         * config/depcomp: update from automake.
83706         * config/config.sub: update from prep.
83707
83708 2003-07-03  Karl Berry  <karl@gnu.org>
83709
83710         * config/config.guess: update from prep.
83711
83712 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83713
83714         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83715         xreadlink.c now includes it unconditionally.
83716
83717 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83718
83719         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83720         having it depend on HAVE_SYS_TYPES_H.
83721
83722 2003-07-01  Bruno Haible  <bruno@clisp.org>
83723
83724         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83725         <sys/types.h> should be sufficient.
83726         Reported by Paul Eggert.
83727
83728 2003-06-26  Karl Berry  <karl@gnu.org>
83729
83730         * config/depcomp: update from automake.
83731
83732 2003-06-26  Bruno Haible  <bruno@clisp.org>
83733
83734         * modules/human: Depend on module stdbool.
83735
83736 2003-06-25  Bruno Haible  <bruno@clisp.org>
83737
83738         * modules/readlink: New file.
83739         * modules/xreadlink: Depend on it.
83740         * MODULES.html.sh (func_all_modules): Add readlink.
83741
83742 2003-06-25  Bruno Haible  <bruno@clisp.org>
83743
83744         * m4/readlink.m4: New file.
83745
83746 2003-06-25  Bruno Haible  <bruno@clisp.org>
83747
83748         * lib/readlink.c: New file.
83749
83750 2003-06-22  Karl Berry  <karl@gnu.org>
83751
83752         * config/srclist.txt: update mkinstalldirs from automake.
83753         * config/mkinstalldirs: update.
83754
83755 2003-06-22  Bruno Haible  <bruno@clisp.org>
83756
83757         Portability to mingw32.
83758         * m4/ssize_t.m4: New file, from GNU gettext.
83759         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83760         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83761
83762 2003-06-22  Bruno Haible  <bruno@clisp.org>
83763
83764         * modules/safe-read: Add m4/ssize_t.m4.
83765         * modules/xreadlink: Add m4/ssize_t.m4.
83766
83767 2003-06-20  Bruno Haible  <bruno@clisp.org>
83768
83769         Assume C89, so PARAMS isn't needed.
83770         * lib/unicodeio.h (PARAMS): Remove.
83771         * lib/unicodeio.c: Don't use PARAMS.
83772
83773 2003-06-18  Karl Berry  <karl@gnu.org>
83774
83775         * config/config.{guess,sub}: update from prep.
83776
83777 2003-06-18  Jim Meyering  <jim@meyering.net>
83778
83779         Merge changes from coreutils.
83780         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83781         Remove explicit declarations of xmalloc and realloc.
83782         Include xalloc.h.
83783         (read_utmp): Remove anachronistic cast of xmalloc.
83784
83785 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83786
83787         Assume C89, so PARAMS isn't needed.
83788         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83789         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83790         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83791         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83792         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83793         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83794         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83795         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83796         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83797         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83798         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83799         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83800         no longer needed. Anyway, config.h should always be included before any
83801         other file.
83802
83803 2003-06-11  Simon Josefsson  <jas@extundo.com>
83804
83805         * modules/sysexits: New file.
83806         * MODULES.html.sh (func_all_modules): Add sysexits.
83807
83808 2003-06-11  Simon Josefsson  <jas@extundo.com>
83809
83810         * lib/sysexit_.h: New file.
83811
83812 2003-06-11  Derek Price  <derek@ximbiot.com>
83813
83814         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83815         necessary.
83816
83817 2003-06-11  Bruno Haible  <bruno@clisp.org>
83818
83819         * m4/sysexits.m4: New file.
83820
83821 2003-06-10  Simon Josefsson  <jas@extundo.com>
83822
83823         * lib/argp.h: New file, from glibc.
83824         * lib/argp-ba.c: New file, from glibc.
83825         * lib/argp-eexst.c: New file, from glibc.
83826         * lib/argp-fmtstream.c: New file, from glibc.
83827         * lib/argp-fmtstream.h: New file, from glibc.
83828         * lib/argp-fs-xinl.c: New file, from glibc.
83829         * lib/argp-help.c: New file, from glibc.
83830         * lib/argp-namefrob.h: New file, from glibc.
83831         * lib/argp-parse.c: New file, from glibc.
83832         * lib/argp-pv.c: New file, from glibc.
83833         * lib/argp-pvh.c: New file, from glibc.
83834         * lib/argp-xinl.c: New file, from glibc.
83835
83836 2003-06-10  Simon Josefsson  <jas@extundo.com>
83837
83838         * modules/strchrnul: New file.
83839
83840 2003-06-10  Simon Josefsson  <jas@extundo.com>
83841
83842         * modules/argp: New file.
83843
83844 2003-06-10  Simon Josefsson  <jas@extundo.com>
83845
83846         * m4/strchrnul.m4: New file.
83847
83848 2003-06-10  Simon Josefsson  <jas@extundo.com>
83849
83850         * lib/strchrnul.h: New file.
83851         * lib/strchrnul.c: New file.
83852
83853 2003-06-10  Bruno Haible  <bruno@clisp.org>
83854
83855         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83856
83857 2003-06-07  Karl Berry  <karl@gnu.org>
83858
83859         * config/config.{guess,sub}: update from prep.
83860
83861 2003-06-07  Jim Meyering  <jim@meyering.net>
83862
83863         * modules/strtod: Use $(...) notation, not @...@ for
83864         AC_REPLACE'd variables.
83865         * modules/localcharset: Likewise.
83866
83867 2003-06-07  Jim Meyering  <jim@meyering.net>
83868
83869         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83870         in place of my name in the copyright comment.
83871         Remove definition and uses of __P.
83872
83873         From coreutils.
83874         * lib/stat.c: Don't declare xmalloc explicitly.
83875         Instead, include "xalloc.h".
83876         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83877         xrealloc, and xcalloc return values.
83878         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83879         Improve comment.
83880         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83881
83882 2003-06-07  Bruno Haible  <bruno@clisp.org>
83883
83884         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83885         avoid AC_CONFIG_LINKS.
83886         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83887         fnmatch.h, to avoid AC_CONFIG_LINKS.
83888         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83889
83890 2003-06-07  Bruno Haible  <bruno@clisp.org>
83891
83892         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83893         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83894         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83895         directory.
83896         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83897         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83898         directory.
83899
83900 2003-06-06  Jim Meyering  <jim@meyering.net>
83901
83902         Merge from coreutils.
83903         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83904         Consolidate declarations and initializations of *_base* locals.
83905
83906         Merge from coreutils.
83907         This avoids a core dump on systems without GNU putenv,
83908         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83909         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83910         (unsetenv): New static function, from GNU libc.
83911         (rpl_putenv): Use it.
83912
83913         * lib/modechange.c: Remove trailing blanks.
83914
83915         Merge from coreutils.
83916         * lib/fsusage.c: Remove declaration of statfs.
83917         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83918
83919         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83920
83921 2003-06-06  Jim Meyering  <jim@meyering.net>
83922
83923         * lib/stdbool_.h: Renamed from stdbool.h.in.
83924
83925 2003-06-06  Jim Meyering  <jim@meyering.net>
83926             Bruno Haible  <bruno@clisp.org>
83927
83928         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
83929         Adjust Makefile.am snippet not to redirect directly to target.
83930         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
83931
83932 2003-06-05  Paul Eggert  <eggert@twinsun.com>
83933
83934         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
83935         mismatch, look in future quarters as well as past.  This fixes a
83936         bug when processing fall-backwards gaps immediately after a long
83937         period of daylight-saving time.
83938
83939         * lib/mktime.c: Assume freestanding C89 or better.
83940         (HAVE_LIMITS_H): Remove.  Assume it's 1.
83941         (__P): Remove; not used.
83942         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
83943         (mktime, not_equal_tm, print_tm, check_result,
83944         main): Use prototypes.  Use const * where appropriate.
83945         (main): Fix typo in testing code that uncovered by above changes.
83946         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
83947
83948 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83949
83950         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
83951         locale.h, localeconv.  This merges changes from coreutils.
83952
83953         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
83954         It can be removed after the next Autoconf is released.
83955         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
83956         needed.
83957
83958 2003-06-04  Paul Eggert  <eggert@twinsun.com>
83959
83960         * lib/mktime.c: Fix Debian bug 177940
83961         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
83962         (localtime_offset): Now long int, not time_t, because we want it
83963         to be guaranteed to be signed.  All uses changed.
83964         (__mktime_internal): If overflow would occur when adding offset,
83965         don't add it.
83966
83967         Merge 'human' changes from coreutils.  Rewrite to support
83968         locale-specific notations like thousands separators.
83969         * lib/human.c: Simplify authorship notice.
83970         Include human.h immediately after config.h.
83971         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
83972         <limits.h>: Do not include, since human.h does.
83973         (SIZE_MAX, UINTMAX_MAX): New macros.
83974         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
83975         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
83976         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
83977         (power_letter): Renamed from suffixes.
83978         (generate_suffix_backwards): Remove.
83979         (adjust_value): Now takes int style (because of human.h changes)
83980         and long double value (for greater precision on some platforms).
83981         (group_number): New function.
83982         (human_readable): Use it.  Use integer options, not enum.
83983         Put the options before the sizes in the arg list.
83984         Support all the new options.
83985         The old human_readable function has been removed;
83986         use inttostr.h instead.
83987         (human_readable, default_block_size, humblock):
83988         Use uintmax_t, not int, for block sizes.
83989         (human_readable_inexact, block_size_types): Remove.
83990         (block_size_opts): New constant.
83991         (human_options): Renamed from human_block_size, with new signature
83992         that allows block sizes up to UINTMAX_MAX.  All callers changed.
83993         * lib/human.h: Add copyright and authorship notice.
83994         Include <limits.h> and <stdbool.h> unconditionally.
83995         (PARAMS): Remove.  All uses removed.
83996         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
83997         (enum human_inexact_style): Remove tag; now a nameless enum.
83998         (human_floor, human_ceiling, human_round_to_even): Now have
83999         values 2, 0, 1 rather than -1, 1, 0.
84000         (human_group_digits, human_suppress_point_zero, human_autoscale,
84001         human_base_1024, human_SI, human_B): New constants.
84002         (human_readable_inexact, human_block_size): Remove.
84003         (human_readable): Size args are now uintmax_t, not int.
84004         (human_options): New decl.
84005
84006         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84007         unnecessary now that we assume C89 or better.  This change
84008         imported from coreutils.
84009
84010         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84011         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84012         in the 2003-05-30 sync from glibc.
84013
84014         .h files should stand alone, but we shouldn't include <sys/types.h>
84015         if we can get away with just <stddef.h>.
84016
84017         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84018         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84019         rather than <sys/types.h>, as we merely need size_t.
84020         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84021         to get size_t.
84022         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84023         Include <stdio.h>, to get FILE.
84024         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84025         memcasecmp.h has included <stddef.h> and all we need is size_t.
84026         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84027         our interface, instead of including <sys/types.h>
84028
84029 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84030
84031         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84032         now, as glibc mktime is buggy on non-glibc systems.
84033
84034 2003-06-03  Karl Berry  <karl@gnu.org>
84035
84036         * config/config.sub: update from prep.
84037
84038 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84039
84040         [from coreutils]
84041         Fix some minor time-related bugs with POSIX time arguments.
84042         Some valid time stamps were being rejected (notably -1, and
84043         time stamps before 1900 on 64-bit hosts).  And some invalid
84044         time stamps were being accepted, e.g. September 31.
84045
84046         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84047         that we can return (time_t) -1 successfully.
84048         * lib/posixtm.c: Likewise.
84049         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84050         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84051         (t): Remove static var.
84052         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84053         of static var.  All uses changed.
84054         (year): Do not reject years before 1900; they can occur with
84055         64-bit time_t.
84056         (posix_time_parse): Do not check for out-of-range components;
84057         that is now the caller's responsibility, since our checks were
84058         only approximations.
84059         (posixtime): Use mktime to check for out-of-range components,
84060         since it knows them exactly.
84061         If mktime returns (time_t) -1, check whether an error actually occurred
84062         by invoking localtime on -1.
84063         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84064         posixtime failures better.
84065         Improve the test data (in comments only).
84066
84067 2003-06-02  Karl Berry  <karl@gnu.org>
84068
84069         * config/mkinstalldirs (version): new variable.
84070         (--version): new option.
84071         (usage): improve message.
84072
84073 2003-05-30  Karl Berry  <karl@gnu.org>
84074
84075         * lib/mktime.c: update from libc.
84076
84077 2003-05-30  Bruno Haible  <bruno@clisp.org>
84078
84079         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84080         * config/config.rpath: Upgrade to gettext-0.12.1.
84081
84082 2003-05-30  Bruno Haible  <bruno@clisp.org>
84083
84084         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84085         * m4/nls.m4: New file, from gettext-0.12.1.
84086         * m4/po.m4: New file, from gettext-0.12.1.
84087         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84088
84089 2003-05-30  Bruno Haible  <bruno@clisp.org>
84090
84091         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84092         * lib/localcharset.h: Likewise.
84093         * lib/localcharset.c: Likewise.
84094
84095 2003-05-29  Karl Berry  <karl@gnu.org>
84096
84097         * config/config.rpath: update from gettext.
84098
84099 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84100
84101         Assume the headers required for C89 freestanding compilers.
84102         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84103         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84104         * m4/human.m4 (gl_HUMAN): Likewise.
84105         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84106         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84107         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84108         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84109         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84110         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84111
84112 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84113
84114         Assume the headers required for C89 freestanding compilers.
84115         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84116         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84117         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84118         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84119         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84120         define, since <limits.h> is guaranteed to do that.
84121         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84122         * lib/exclude.c: Include <stdbool.h> unconditionally.
84123         * lib/tempname.c: Include <stddef.h> unconditionally.
84124         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84125         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84126         <stddef.h> does that.
84127         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84128         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84129         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84130         needed.
84131         * lib/xstrtol.c: Likewise.
84132         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84133         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84134
84135         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84136         warnings on some platforms.
84137
84138         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84139         arbitrarily.
84140
84141 2003-05-26  Jim Meyering  <jim@meyering.net>
84142
84143         Merge in a change from coreutils:
84144         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84145         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84146         that condition, rather than `-1' which is slightly misleading.
84147         Change the name of the cache variable to have the gl_ prefix.
84148         Prompted by a patch from Richard Dawe for DJGPP.
84149
84150 2003-05-24  Karl Berry  <karl@gnu.org>
84151
84152         * config/config.guess: update from prep.
84153
84154 2003-05-22  Karl Berry  <karl@gnu.org>
84155
84156         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84157
84158 2003-05-20  Karl Berry  <karl@gnu.org>
84159
84160         * config/config.guess: update from prep.
84161
84162 2003-05-18  Karl Berry  <karl@gnu.org>
84163
84164         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84165         might actually be set by the user.
84166
84167         * config/depcomp, install-sh, mdate-sh: update from automake.
84168
84169 2003-05-17  Bruno Haible  <bruno@clisp.org>
84170
84171         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84172         invalid expansion for AC_EGREP_CPP.
84173         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84174         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84175         Suggested by Akim Demaille <akim@epita.fr> in
84176         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84177
84178 2003-05-12  Jim Meyering  <jim@meyering.net>
84179
84180         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84181         the space-padded-by-default conversion specifiers, %e, %k, %l.
84182
84183 2003-05-12  Bruno Haible  <bruno@clisp.org>
84184
84185         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84186         the string is longer than 4 KB.
84187
84188 2003-05-11  Karl Berry  <karl@gnu.org>
84189
84190         * config/config.{guess,sub}: update from prep.
84191
84192 2003-05-09  Bruno Haible  <bruno@clisp.org>
84193
84194         * modules/error: Add m4/strerror_r.m4 to file list.
84195
84196 2003-05-03  Bruno Haible  <bruno@clisp.org>
84197
84198         Upgrade to Unicode-4.0.
84199         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84200         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84201         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84202         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84203         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84204         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84205         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84206         Change width of U+E0100..U+E01EF from 1 to 0.
84207
84208 2003-04-25  Jim Meyering  <jim@meyering.net>
84209
84210         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84211         of type size_t, not int.
84212
84213 2003-04-25  Bruno Haible  <bruno@clisp.org>
84214
84215         * lib/copy-file.c: Include <stddef.h>, for size_t.
84216
84217 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84218
84219         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84220         code which expansion is under static control.  Patch imported from
84221         Akim Demaille's patch to Bison; see
84222         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84223
84224 2003-04-14  Bruno Haible  <bruno@clisp.org>
84225
84226         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84227
84228 2003-04-11  Jim Meyering  <jim@meyering.net>
84229
84230         Merge changes from Coreutils.
84231
84232         2003-03-22  Jim Meyering  <jim@meyering.net>
84233
84234         * lib/strftime.c (widen): Cast alloca return value to proper type.
84235
84236         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84237
84238         From GNU libc.
84239         * lib/strftime.c (my_strftime): Handle very large width
84240         specifications for numeric values correctly.  Improve checks for
84241         overflow.
84242
84243         2003-01-19  Jim Meyering  <jim@meyering.net>
84244
84245         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84246         definitions.
84247         (nl_get_alt_digit) [! defined my_strftime]: Define.
84248         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84249         _nl_get_alt_digit and _nl_get_walt_digit.
84250
84251         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84252         libc. These changes have no effect outside of _LIBC.
84253
84254 2003-04-10  Bruno Haible  <bruno@clisp.org>
84255
84256         * modules/findprog: New file.
84257         * MODULES.html.sh (func_all_modules): Add it.
84258
84259 2003-04-10  Bruno Haible  <bruno@clisp.org>
84260
84261         * m4/findprog.m4: New file.
84262         * m4/eaccess.m4: New file.
84263
84264 2003-04-10  Bruno Haible  <bruno@clisp.org>
84265
84266         * lib/findprog.h: New file, from GNU gettext.
84267         * lib/findprog.c: New file, from GNU gettext.
84268
84269 2003-04-05  Jim Meyering  <jim@meyering.net>
84270
84271         Merge changes from Coreutils.
84272
84273         * lib/exclude.h (PARAMS): Remove definition and uses.
84274         * lib/exclude.c: Remove uses of `PARAMS'.
84275
84276         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84277         Add test-cases for DOS filenames. Declare program_name.
84278         (main): Set up program_name.  Patch by Rich Dawe.
84279
84280         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84281         error from mntctl.
84282         Use mntctl's return value to drive the entry-processing loop, since
84283         we can't rely on the value of the vmt_length member in the last
84284         entry.  On some systems doing so could result in exhausting
84285         virtual memory.  Based in part on a patch from Mike Jetzer.
84286
84287 2003-04-04  Bruno Haible  <bruno@clisp.org>
84288
84289         * modules/linebreak: New file.
84290         * MODULES.html.sh (func_all_modules): Add it.
84291
84292 2003-04-04  Bruno Haible  <bruno@clisp.org>
84293
84294         * m4/linebreak.m4: New file.
84295
84296 2003-04-04  Bruno Haible  <bruno@clisp.org>
84297
84298         * lib/linebreak.h: New file, from GNU gettext.
84299         * lib/linebreak.c: New file, from GNU gettext with slight
84300         modifications.
84301         * lib/lbrkprop.h: New file, from GNU gettext.
84302
84303 2003-04-03  Bruno Haible  <bruno@clisp.org>
84304
84305         * modules/utf8-ucs4: New file.
84306         * modules/utf16-ucs4: New file.
84307         * modules/ucs4-utf8: New file.
84308         * modules/ucs4-utf16: New file.
84309         * MODULES.html.sh (func_all_modules): Add them.
84310
84311 2003-04-03  Bruno Haible  <bruno@clisp.org>
84312
84313         * m4/utf-ucs4.m4: New file.
84314         * m4/ucs4-utf.m4: New file.
84315
84316 2003-04-03  Bruno Haible  <bruno@clisp.org>
84317
84318         * lib/utf8-ucs4.h: New file, from GNU gettext.
84319         * lib/utf16-ucs4.h: New file, from GNU gettext.
84320         * lib/ucs4-utf8.h: New file, from GNU gettext.
84321         * lib/ucs4-utf16.h: New file, from GNU gettext.
84322
84323 2003-04-02  Bruno Haible  <bruno@clisp.org>
84324
84325         * modules/binary-io: New file.
84326         * MODULES.html.sh (func_all_modules): Add it.
84327
84328 2003-04-02  Bruno Haible  <bruno@clisp.org>
84329
84330         * lib/binary-io.h: New file, from GNU gettext.
84331
84332 2003-04-01  Bruno Haible  <bruno@clisp.org>
84333
84334         * modules/pathname: New file.
84335         * MODULES.html.sh (func_all_modules): Add it.
84336
84337 2003-04-01  Bruno Haible  <bruno@clisp.org>
84338
84339         * lib/pathname.h: New file, from GNU gettext.
84340         * lib/concatpath.c: New file, from GNU gettext.
84341
84342 2003-03-30  Bruno Haible  <bruno@clisp.org>
84343
84344         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84345
84346 2003-03-30  Bruno Haible  <bruno@clisp.org>
84347
84348         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84349         function chown() doesn't exist.
84350
84351 2003-03-28  Bruno Haible  <bruno@clisp.org>
84352
84353         * modules/copy-file: New file.
84354         * MODULES.html.sh (func_all_modules): Add it.
84355
84356 2003-03-28  Bruno Haible  <bruno@clisp.org>
84357
84358         * m4/copy-file.m4: New file.
84359
84360 2003-03-28  Bruno Haible  <bruno@clisp.org>
84361
84362         * lib/copy-file.h: New file, from GNU gettext.
84363         * lib/copy-file.c: New file, from GNU gettext.
84364
84365 2003-03-18  Jim Meyering  <jim@meyering.net>
84366
84367         * lib/quote.c (quote_n): Fix typo in comment.
84368
84369 2003-03-18  Bruno Haible  <bruno@clisp.org>
84370
84371         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84372         checking.
84373         * m4/onceonly_2_57.m4: Likewise.
84374
84375 2003-03-17  Bruno Haible  <bruno@clisp.org>
84376
84377         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84378         (m4_quote): Remove macro.
84379         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84380
84381 2003-03-14  Jim Meyering  <jim@meyering.net>
84382
84383         Merge changes from Coreutils.
84384         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84385         to be const, in order to avoid warnings.
84386         (obstack_room): Likewise.
84387         (obstack_empty_p): Likewise.
84388
84389 2003-03-14  Bruno Haible  <bruno@clisp.org>
84390
84391         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84392         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84393
84394 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84395
84396         Merge changes from Bison.
84397         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84398         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84399         when compiling Bison 1.875's `bitset bset = obstack_alloc
84400         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84401         * lib/hash.c: Include <stdbool.h> unconditionally.
84402
84403 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84404
84405         * m4/onceonly.m4 (m4_quote): New macro.
84406         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84407         Quote AC_FOREACH variable-expansions properly.
84408
84409 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84410
84411         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84412
84413 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84414
84415         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84416         Reported by Bruce Becker; see:
84417         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84418
84419 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84420             Bruno Haible  <bruno@clisp.org>
84421
84422         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84423         Reported by John Hughes, see
84424         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84425
84426 2003-02-20  Bruno Haible  <bruno@clisp.org>
84427
84428         * MODULES.html.sh (func_all_modules): Add poll.
84429
84430 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84431
84432         * modules/poll: New file.
84433
84434 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84435
84436         * lib/poll_.h: New file.
84437         * lib/poll.c: New file.
84438
84439 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84440
84441         * m4/poll.m4: New file.
84442
84443 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84444
84445         * modules/mathl: New file.
84446
84447 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84448
84449         * lib/mathl.h: New file.
84450         * lib/acosl.c: New file.
84451         * lib/asinl.c: New file.
84452         * lib/atanl.c: New file.
84453         * lib/ceill.c: New file.
84454         * lib/cosl.c: New file.
84455         * lib/expl.c: New file.
84456         * lib/floorl.c: New file.
84457         * lib/frexpl.c: New file.
84458         * lib/ldexpl.c: New file.
84459         * lib/logl.c: New file.
84460         * lib/sincosl.c: New file.
84461         * lib/sinl.c: New file.
84462         * lib/sqrtl.c: New file.
84463         * lib/tanl.c: New file.
84464         * lib/trigl.c: New file.
84465         * lib/trigl.h: New file.
84466
84467 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84468
84469         * m4/mathl.m4: New file.
84470
84471 2003-02-18  Bruno Haible  <bruno@clisp.org>
84472
84473         * MODULES.html.sh (func_all_modules): Add mathl.
84474
84475 2003-02-17  Bruno Haible  <bruno@clisp.org>
84476
84477         * modules/mkdtemp: New module.
84478         * MODULES.html.sh (func_all_modules): Add it.
84479
84480 2003-02-17  Bruno Haible  <bruno@clisp.org>
84481
84482         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84483
84484 2003-02-17  Bruno Haible  <bruno@clisp.org>
84485
84486         * lib/mkdtemp.h: New file, from GNU gettext.
84487         * lib/mkdtemp.c: New file, from GNU gettext.
84488
84489 2003-02-02  Jim Meyering  <jim@meyering.net>
84490
84491         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84492         e.g. glibc-2.2.93.
84493
84494 2003-01-31  Bruno Haible  <bruno@clisp.org>
84495
84496         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84497         'rpl_rename'.
84498         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84499         'rpl_strnlen'.
84500         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84501         'rpl_strtod'.
84502         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84503         'rpl_utime'.
84504
84505 2003-01-31  Bruno Haible  <bruno@clisp.org>
84506
84507         * lib/rename.c: #undef rename before defining rpl_rename.
84508         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84509
84510 2003-01-30  Bruno Haible  <bruno@clisp.org>
84511
84512         * modules/vasnprintf, modules/vasprintf: New modules.
84513         * MODULES.html.sh (func_all_modules): Add them.
84514
84515 2003-01-30  Bruno Haible  <bruno@clisp.org>
84516
84517         * m4/signed.m4: New file, from GNU gettext.
84518         * m4/longdouble.m4: New file, from GNU gettext.
84519         * m4/wchar_t.m4: New file, from GNU gettext.
84520         * m4/wint_t.m4: New file, from GNU gettext.
84521         * m4/vasnprintf.m4: New file.
84522         * m4/vasprintf.m4: New file.
84523
84524 2003-01-30  Bruno Haible  <bruno@clisp.org>
84525
84526         * lib/printf-args.h: New file, from GNU gettext.
84527         * lib/printf-args.c: New file, from GNU gettext.
84528         * lib/printf-parse.h: New file, from GNU gettext.
84529         * lib/printf-parse.c: New file, from GNU gettext.
84530         * lib/vasnprintf.h: New file, from GNU gettext.
84531         * lib/vasnprintf.c: New file, from GNU gettext.
84532         * lib/asnprintf.c: New file, from GNU gettext.
84533         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84534         * lib/vasprintf.c: New file, from GNU gettext.
84535         * lib/asprintf.c: New file, from GNU gettext.
84536
84537 2003-01-29  Bruno Haible  <bruno@clisp.org>
84538
84539         * modules/stpncpy: New module.
84540         * MODULES.html.sh (func_all_modules): Add it.
84541
84542 2003-01-29  Bruno Haible  <bruno@clisp.org>
84543
84544         * m4/stpncpy.m4: New file.
84545
84546 2003-01-29  Bruno Haible  <bruno@clisp.org>
84547
84548         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84549         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84550
84551 2003-01-28  Bruno Haible  <bruno@clisp.org>
84552
84553         * modules/c-ctype: New module.
84554         * MODULES.html.sh (func_all_modules): Add it.
84555
84556 2003-01-28  Bruno Haible  <bruno@clisp.org>
84557
84558         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84559         Paul Eggert.
84560         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84561         Paul Eggert.
84562
84563 2003-01-27  Bruno Haible  <bruno@clisp.org>
84564
84565         * modules/xsetenv: New module.
84566         * MODULES.html.sh (func_all_modules): Add it.
84567
84568 2003-01-27  Bruno Haible  <bruno@clisp.org>
84569
84570         * lib/xsetenv.h: New file, from GNU gettext.
84571         * lib/xsetenv.c: New file, from GNU gettext.
84572
84573 2003-01-23  Jim Meyering  <jim@meyering.net>
84574
84575         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84576         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84577
84578 2003-01-23  Bruno Haible  <bruno@clisp.org>
84579
84580         * modules/minmax: New module.
84581         * MODULES.html.sh (func_all_modules): Add it.
84582
84583 2003-01-23  Bruno Haible  <bruno@clisp.org>
84584
84585         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84586         Eggert.
84587
84588 2003-01-22  Bruno Haible  <bruno@clisp.org>
84589
84590         * modules/exit: New module.
84591         * MODULES.html.sh (func_all_modules): Add it.
84592
84593 2003-01-22  Bruno Haible  <bruno@clisp.org>
84594
84595         * lib/exit.h: New file, from GNU gettext.
84596
84597 2003-01-19  Bruno Haible  <bruno@clisp.org>
84598
84599         * gnulib-tool: Recognize option --extract-maintainer.
84600         (func_get_maintainer): New function.
84601         * modules/*: Add Maintainer entry.
84602
84603 2003-01-16  Jim Meyering  <jim@meyering.net>
84604
84605         * m4/regex.m4: The `regex' struct is both input and output.
84606         Initialize it before each use.  Patch by Tim Waugh.
84607
84608 2003-01-16  Bruno Haible  <bruno@clisp.org>
84609
84610         * MODULES.html.sh: Add a table of contents. Add the module name as
84611         leftmost column. Add hyperlinks.
84612
84613 2003-01-15  Bruno Haible  <bruno@clisp.org>
84614
84615         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84616
84617 2003-01-15  Bruno Haible  <bruno@clisp.org>
84618
84619         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84620         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84621         suffix.
84622
84623 2003-01-15  Bruno Haible  <bruno@clisp.org>
84624
84625         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84626
84627 2003-01-15  Bruno Haible  <bruno@clisp.org>
84628
84629         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84630         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84631
84632 2003-01-14  Jim Meyering  <jim@meyering.net>
84633
84634         * lib/same.c (same_name): Tweak a comment.
84635
84636 2003-01-14  Bruno Haible  <bruno@clisp.org>
84637
84638         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84639         when a string comparison is sufficient.
84640
84641 2003-01-14  Bruno Haible  <bruno@clisp.org>
84642
84643         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84644         'unsigned int'.
84645
84646 2003-01-14  Bruno Haible  <bruno@clisp.org>
84647
84648         * lib/hash-pjw.c: Add comment about low quality of this function.
84649
84650 2003-01-13  Bruno Haible  <bruno@clisp.org>
84651
84652         * modules/stpcpy: Distribute lib/stpcpy.h.
84653         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84654
84655 2003-01-13  Bruno Haible  <bruno@clisp.org>
84656
84657         * modules/*: Add a description.
84658         * modules/strpbrk: Fix Makefile.am snippet.
84659         * modules/strtoimax: Fix dependencies.
84660         * modules/strtoumax: Likewise.
84661
84662 2003-01-13  Bruno Haible  <bruno@clisp.org>
84663
84664         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84665         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84666         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84667
84668 2003-01-13  Bruno Haible  <bruno@clisp.org>
84669
84670         * gnulib-tool (func_create_testdir): Store config/* files in the main
84671         directory.
84672         * config.rpath: Move to ...
84673         * config/config.rpath: ... here.
84674         * modules/gettext: Contains config/config.rpath, not config.rpath.
84675         * modules/iconv: Likewise.
84676
84677 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84678
84679         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84680         to avoid collisions with libcurses and libreadline.
84681
84682         * m4/getstr.m4: Remove.
84683         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84684
84685 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84686
84687         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84688         to avoid collisions with libcurses and libreadline.
84689
84690         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84691         * lib/getstr.h, getstr.c: Remove.
84692         * lib/getline.c: Include "getline.h", to check interface.
84693         Move body of old getstr.c here: this defines MIN_CHUNK and
84694         declares getdelim2, which is renamed from getstr.
84695         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84696
84697         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84698         All uses changed.
84699         * lib/linebuffer.h: Likewise.
84700         (readline): Remove backward-compatibility macro.
84701
84702 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84703
84704         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84705         to avoid collisions with libcurses and libreadline.
84706         * getstr: Remove.
84707         * MODULES.html.sh: Remove getstr.
84708         * modules/getline: Depend on unlocked-io, not getstr.
84709
84710 2003-01-12  Jim Meyering  <jim@meyering.net>
84711
84712         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84713
84714 2003-01-10  Bruno Haible  <bruno@clisp.org>
84715
84716         * modules/alloca: Change Makefile.am requirements. Simplify Include
84717         requirements. Add lib/alloca_.h to file list.
84718
84719 2003-01-10  Bruno Haible  <bruno@clisp.org>
84720
84721         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84722
84723 2003-01-10  Bruno Haible  <bruno@clisp.org>
84724
84725         * lib/alloca_.h: New file.
84726         * lib/getdate.y: Unconditionally include alloca.h.
84727         * lib/makepath.c: Likewise.
84728         * lib/setenv.c: Likewise.
84729         * lib/userspec.c: Likewise.
84730
84731 2003-01-09  Karl Berry  <karl@gnu.org>
84732
84733         * MODULES.html.sh: include `dirname $0` in PATH, to find
84734         gnulib-tool.
84735
84736 2003-01-09  Bruno Haible  <bruno@clisp.org>
84737
84738         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84739         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84740
84741 2003-01-09  Bruno Haible  <bruno@clisp.org>
84742
84743         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84744
84745 2003-01-09  Bruno Haible  <bruno@clisp.org>
84746
84747         * lib/stdbool.h.in: New file.
84748
84749 2003-01-09  Bruno Haible  <bruno@clisp.org>
84750
84751         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84752         * MODULES.html.sh: Likewise.
84753
84754 2003-01-08  Jim Meyering  <jim@meyering.net>
84755
84756         * lib/full-write.c: Undefine and define-away `const' after inclusion
84757         of errno.h, not before.  Suggestion from Bruno Haible.
84758
84759 2003-01-08  Bruno Haible  <bruno@clisp.org>
84760
84761         * modules/full-read: Depend on full-write.
84762
84763 2003-01-08  Bruno Haible  <bruno@clisp.org>
84764
84765         * lib/safe-read.c: Include specification header first, to ensure its
84766         selfcontainedness.
84767         * lib/full-write.c: Likewise.
84768
84769 2003-01-07  Jim Meyering  <jim@meyering.net>
84770
84771         * lib/full-write.c: Rework so that it may serve to define full_read,
84772         too.
84773         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84774
84775 2003-01-07  Bruno Haible  <bruno@clisp.org>
84776
84777         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84778         <inttypes.h>.
84779         * lib/xstrtol.h: Likewise.
84780         * lib/xstrtoimax.c: Likewise.
84781         * lib/xstrtoumax.c: Likewise.
84782         * lib/human.h: Likewise.
84783
84784         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84785         on systems that have <inttypes.h> but not <stdint.h>.
84786
84787 2003-01-07  Bruno Haible  <bruno@clisp.org>
84788
84789         * MODULES.html.sh: Add copyright notice.
84790         (missed_files): Omit CVS directory entries.
84791         (func_module): Make it work with sed-3.02.
84792         * MODULES.txt: Remove file.
84793
84794 2003-01-06  Jim Meyering  <jim@meyering.net>
84795
84796         * lib/version-etc.c: Update year in translatable copyright string.
84797
84798 2003-01-03  Karl Berry  <karl@gnu.org>
84799
84800         * config/config.{guess,sub}: update from prep.
84801
84802 2003-01-02  Karl Berry  <karl@gnu.org>
84803
84804         * doc/COPYING.DOC: belatedly updated to 1.2.
84805
84806 2003-01-01  Karl Berry  <karl@gnu.org>
84807
84808         * gnulib-tool (func_verify_module): report module name $module in
84809         error message, not $1.
84810         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84811         be created, only if it doesn't exist.
84812         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84813
84814 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84815
84816         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84817
84818 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84819
84820         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84821         memcmp if strcoll doesn't work.
84822
84823 2002-12-31  Bruno Haible  <bruno@clisp.org>
84824
84825         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84826         nonempty.
84827
84828 2002-12-31  Bruno Haible  <bruno@clisp.org>
84829
84830         * lib/memcoll.c (STRCOLL): New macro.
84831         (memcoll): Use it.
84832
84833 2002-12-31  Bruno Haible  <bruno@clisp.org>
84834
84835         * lib/localcharset.h: New file.
84836         * lib/localcharset.c: Include it.
84837         * lib/unicodeio.c: Likewise.
84838
84839 2002-12-31  Bruno Haible  <bruno@clisp.org>
84840
84841         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84842         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84843
84844 2002-12-31  Bruno Haible  <bruno@clisp.org>
84845
84846         * lib/getline.h: Include <stddef.h>, for size_t.
84847
84848         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84849         * lib/unicodeio.c: Don't include <stddef.h>.
84850
84851 2002-12-31  Bruno Haible  <bruno@clisp.org>
84852
84853         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84854         HAVE_TM_ZONE.
84855
84856 2002-12-24  Karl Berry  <karl@gnu.org>
84857
84858         * config/config.guess: update from prep.
84859
84860 2002-12-24  Bruno Haible  <bruno@clisp.org>
84861
84862         General infrasructure.
84863         * m4/README: Rewritten.
84864         * m4/onceonly.m4: New file.
84865         * m4/onceonly_2_57.m4: New file.
84866
84867         Module atexit.
84868         * m4/atexit.m4: New file.
84869
84870         Module strtod.
84871         * m4/strtod.m4: New file.
84872
84873         Module strtol.
84874         * m4/strtol.m4: New file.
84875
84876         Module strtoul.
84877         * m4/strtoul.m4: New file.
84878
84879         Module memchr.
84880         * m4/memchr.m4: New file.
84881
84882         Module memcmp.
84883         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84884         (jm_FUNC_MEMCMP): Invoke it.
84885
84886         Module memcpy.
84887         * m4/memcpy.m4: New file.
84888
84889         Module memmove.
84890         * m4/memmove.m4: New file.
84891
84892         Module memset.
84893         * m4/memset.m4: New file.
84894
84895         Module strcspn.
84896         * m4/strcspn.m4: New file.
84897
84898         Module strpbrk.
84899         * m4/strpbrk.m4: New file.
84900
84901         Module strstr.
84902         * m4/strstr.m4: New file.
84903
84904         Module strerror.
84905         * m4/strerror.m4: New file.
84906
84907         Module mktime.
84908         * m4/mktime.m4: Renamed from jm-mktime.m4.
84909         (gl_PREREQ_MKTIME): New macro.
84910         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84911
84912         Module malloc.
84913         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84914         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84915         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84916
84917         Module realloc.
84918         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84919         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84920         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84921
84922         Module strftime.
84923         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84925         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84926         gl_TM_GMTOFF.
84927         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84928
84929         Module xalloc.
84930         * m4/xalloc.m4: New file.
84931
84932         Module alloca.
84933         * m4/alloca.m4: New file.
84934
84935         Module putenv.
84936         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
84937         (jm_FUNC_PUTENV): Invoke it.
84938
84939         Module setenv.
84940         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
84941         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
84942         when invoked twice.
84943         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
84944         gt_FUNC_SETENV.
84945
84946         Module memrchr.
84947         * m4/memrchr.m4: New file.
84948
84949         Module stpcpy.
84950         * m4/stpcpy.m4: New file.
84951
84952         Module strcase.
84953         * m4/strcase.m4: New file.
84954
84955         Module strdup.
84956         * m4/strdup.m4: New file.
84957
84958         Module strnlen.
84959         * m4/strnlen.m4: New file.
84960
84961         Module strndup.
84962         * m4/strndup.m4: New file.
84963
84964         Module xstrtod.
84965         * m4/xstrtod.m4: New file.
84966
84967         Module xstrtol.
84968         * m4/xstrtol.m4: New file.
84969
84970         Module getdate.
84971         * m4/getdate.m4: New file.
84972
84973         Module unlocked-io.
84974         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
84975         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
84976         * m4/jm-glibc-io.m4n: Remove file.
84977
84978         Module long-options.
84979         * m4/long-options.m4: New file.
84980
84981         Module md5.
84982         * m4/md5.m4: New file.
84983
84984         Module sha.
84985         * m4/sha.m4: New file.
84986
84987         Module getstr.
84988         * m4/getstr.m4: New file.
84989
84990         Module getline.
84991         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
84992         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
84993         <sys/types.h>, for size_t. Use the function name gnu_getline, not
84994         simply getline. Infoke gl_PREREQ_GETLINE.
84995
84996         Module obstack.
84997         * m4/obstack.m4: New file.
84998
84999         Module hash.
85000         * m4/hash.m4: New file.
85001
85002         Module readtokens.
85003         * m4/readtokens.m4: New file.
85004
85005         Module strverscmp.
85006         * m4/strverscmp.m4: New file.
85007
85008         Module stdbool.
85009         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85010         OSF/1.
85011
85012         Module strtoll.
85013         * m4/strtoll.m4: New file.
85014
85015         Module strtoull.
85016         * m4/strtoull.m4: New file.
85017
85018         Module strtoimax.
85019         * m4/strtoimax.m4: New file.
85020
85021         Module strtoumax.
85022         * m4/strtoumax.m4: New file.
85023
85024         Module xstrtoimax.
85025         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85026         jm_AC_PREREQ_XSTRTOIMAX.
85027         Moved the strtol prerequisites to strtol.m4.
85028         Moved the strtoll prerequisites to strtoll.m4.
85029         Moved the strtoimax prerequisites to strtoimax.m4.
85030
85031         Module xstrtoumax.
85032         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85033         jm_AC_PREREQ_XSTRTOUMAX.
85034         Moved the strtoul prerequisites to strtoul.m4.
85035         Moved the strtoull prerequisites to strtoull.m4.
85036         Moved the strtoumax prerequisites to strtoumax.m4.
85037
85038         Module chown.
85039         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85040         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85041
85042         Module dup2.
85043         * m4/dup2.m4: New file.
85044
85045         Module ftruncate.
85046         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85047         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85048
85049         Module getgroups.
85050         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85051         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85052
85053         Module gettimeofday.
85054         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85055         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85056         gl_PREREQ_GETTIMEOFDAY.
85057
85058         Module mkdir.
85059         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85060         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85061
85062         Module mkstemp.
85063         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85064         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85065         jm_AC_TYPE_UINTMAX_T.
85066         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85067
85068         Module stat.
85069         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85070         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85071
85072         Module lstat.
85073         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85074         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85075
85076         Module timespec.
85077         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85078         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85079         * m4/st_mtim.m4: Indentation.
85080
85081         Module nanosleep.
85082         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85083         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85084         gl_PREREQ_NANOSLEEP.
85085
85086         Module regex.
85087         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85088         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85089         (gl_REGEX): New macro.
85090
85091         Module rename.
85092         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85093         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85094
85095         Module rmdir.
85096         * m4/rmdir.m4: New file.
85097
85098         Module utime.
85099         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85100         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85101         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85102
85103         Module dirname.
85104         * m4/dirname.m4: New file.
85105
85106         Module getopt.
85107         * m4/getopt.m4: New file.
85108
85109         Module unistd-safer.
85110         * m4/unistd-safer.m4: New file.
85111
85112         Module fnmatch.
85113         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85114         declaration.
85115         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85116         (gl_FUNC_FNMATCH_POSIX): New macro.
85117         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85118         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85119         simply fnmatch.
85120
85121         Module exclude.
85122         * m4/exclude.m4: New file.
85123
85124         Module human.
85125         * m4/human.m4: New file.
85126
85127         Module acl.
85128         * m4/acl.m4: Nop.
85129
85130         Module backupfile.
85131         * m4/backupfile.m4: New file.
85132         * m4/d-ino.m4: Indentation.
85133
85134         Module fsusage.
85135         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85136         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85137         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85138
85139         Module dirfd.
85140         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85141         requirements.
85142
85143         Module euidaccess.
85144         * m4/euidaccess.m4: New file.
85145
85146         Module file-type.
85147         * m4/file-type.m4: New file.
85148
85149         Module fileblocks.
85150         * m4/fileblocks.m4: New file.
85151
85152         Module filemode.
85153         * m4/filemode.m4: New file.
85154
85155         Module isdir.
85156         * m4/isdir.m4: New file.
85157
85158         Module lchown.
85159         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85160         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85161
85162         Module makepath.
85163         * m4/makepath.m4: New file.
85164
85165         Module modechange.
85166         * m4/modechange.m4: New file.
85167
85168         Module mountlist.
85169         * m4/mountlist.m4: New file.
85170         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85171         Indentation.
85172
85173         Module path-concat.
85174         * m4/path-concat.m4: New file.
85175
85176         Module pathmax.
85177         * m4/pathmax.m4: New file.
85178
85179         Module same.
85180         * m4/same.m4: New file.
85181
85182         Module save-cwd.
85183         * m4/save-cwd.m4: New file.
85184
85185         Module savedir.
85186         * m4/savedir.m4: New file.
85187
85188         Module xgetcwd.
85189         * m4/xgetcwd.m4: New file.
85190         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85191
85192         Module xreadlink.
85193         * m4/xreadlink.m4: New file.
85194
85195         Module safe-read.
85196         * m4/safe-read.m4: New file.
85197
85198         Module safe-write.
85199         * m4/safe-write.m4: New file.
85200
85201         Module closeout.
85202         * m4/closeout.m4: New file.
85203
85204         Module stdio-safer.
85205         * m4/stdio-safer.m4: New file.
85206
85207         Module getpass.
85208         * m4/getpass.m4: New file.
85209
85210         Module getugroups.
85211         * m4/getugroups.m4: New file.
85212
85213         Module group-member.
85214         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85215         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85216
85217         Module idcache.
85218         * m4/idcache.m4: New file.
85219
85220         Module userspec.
85221         * m4/userspec.m4: New file.
85222
85223         Module gettime.
85224         * m4/clock_time.m4: New file.
85225         * m4/gettime.m4: New file.
85226
85227         Module settime.
85228         * m4/settime.m4: New file.
85229
85230         Module posixtm.
85231         * m4/posixtm.m4: New file.
85232
85233         Module gethostname.
85234         * m4/gethostname.m4: New file.
85235
85236         Module canon-host.
85237         * m4/canon-host.m4: New file.
85238
85239         Module gettext.
85240         * m4/codeset.m4: New file, from gettext-0.11.5.
85241         * m4/gettext.m4: New file, from gettext-0.11.5.
85242         * m4/glibc21.m4: New file, from gettext-0.11.5.
85243         * m4/iconv.m4: New file, from gettext-0.11.5.
85244         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85245         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85246         * m4/inttypes.m4: New file, from gettext-0.11.5.
85247         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85248         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85249         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85250         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85251         * m4/lib-link.m4: New file, from gettext-0.11.5.
85252         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85253         * m4/progtest.m4: New file, from gettext-0.11.5.
85254         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85255         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85256         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85257
85258         Module localcharset.
85259         * m4/localcharset.m4: New file.
85260
85261         Module hard-locale.
85262         * m4/hard-locale.m4: New file.
85263
85264         Module mbswidth.
85265         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85266         onceonly macros.
85267         * m4/mbrtowc.m4: Add comment.
85268
85269         Module memcasecmp.
85270         * m4/memcasecmp.m4: New file.
85271
85272         Module memcoll.
85273         * m4/memcoll.m4: New file.
85274
85275         Module unicodeio.
85276         * m4/unicodeio.m4: New file.
85277
85278         Module rpmatch.
85279         * m4/rpmatch.m4: New file.
85280
85281         Module yesno.
85282         * m4/yesno.m4: New file.
85283
85284         Module exitfail.
85285         * m4/exitfail.m4: New file.
85286
85287         Module c-stack.
85288         * m4/c-stack.m4 (gl_C_STACK): New macro.
85289         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85290
85291         Module error.
85292         * m4/error.m4 (gl_ERROR): New macro.
85293         (jm_PREREQ_ERROR): Use onceonly macros.
85294
85295         Module fatal.
85296         * m4/fatal.m4: New file.
85297
85298         Module getloadavg.
85299         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85300         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85301
85302         Module getpagesize.
85303         * m4/getpagesize.m4: New file.
85304
85305         Module getusershell.
85306         * m4/getusershell.m4: New file.
85307
85308         Module physmem.
85309         * m4/physmem.m4: New file.
85310
85311         Module posixver.
85312         * m4/posixver.m4: New file.
85313
85314         Module quotearg.
85315         * m4/quotearg.m4: New file.
85316
85317         Module quote.
85318         * m4/quote.m4: New file.
85319
85320         Module readutmp.
85321         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85322
85323         Module sig2str.
85324         * m4/sig2str.m4: New file.
85325
85326         Other.
85327         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85328         ulonglong.m4.
85329         * m4/intmax_t.m4: New file.
85330         * m4/d-type.m4: Indentation.
85331         * m4/jm-macros.m4: Update.
85332         * m4/prereq.m4 (jm_PREREQ): Update.
85333         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85334         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85335         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85336         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85337         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85338         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85339         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85340         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85341         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85342         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85343         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85344         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85345         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85346         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85347         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85348         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85349         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85350         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85351         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85352
85353 2002-12-24  Bruno Haible  <bruno@clisp.org>
85354
85355         * MODULES.txt: Update according to m4/ changes.
85356
85357         Module gettext.
85358         * config.rpath: New file, from gettext-0.11.5.
85359
85360         * modules/*: New module descriptions.
85361         * gnulib-tool: New file.
85362         * MODULES.html.sh: New file.
85363
85364 2002-12-21  Karl Berry  <karl@gnu.org>
85365
85366         * doc/fdl.texi: update to version 1.2.
85367
85368 2002-12-19  Karl Berry  <karl@gnu.org>
85369
85370         * config/config.guess: update from prep.
85371
85372 2002-12-18  Bruno Haible  <bruno@clisp.org>
85373
85374         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85375         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85376
85377 2002-12-17  Bruno Haible  <bruno@clisp.org>
85378
85379         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85380         stdlib.h, string.h.
85381
85382 2002-12-17  Bruno Haible  <bruno@clisp.org>
85383
85384         * lib/canon-host.c (strdup): Remove unused declaration.
85385
85386         * lib/fsusage.c: Include full_read.h.
85387         (get_fs_usage): Use full_read instead of safe_read.
85388
85389         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85390
85391 2002-12-12  Karl Berry  <karl@gnu.org>
85392
85393         * config/config.guess: update from prep.
85394
85395 2002-12-11  Bruno Haible  <bruno@clisp.org>
85396
85397         * m4/setenv.m4: New file, from gettext-0.11.5.
85398
85399 2002-12-11  Bruno Haible  <bruno@clisp.org>
85400
85401         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85402         not unsetenv().
85403         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85404         modifications:
85405
85406         2002-12-11  Bruno Haible  <bruno@clisp.org>
85407
85408                 * setenv.c (alloca): Fall back to malloc.
85409                 (freea): New macro.
85410                 (setenv): Use freea() to free memory allocated with alloca().
85411
85412         2002-11-13  Bruno Haible  <bruno@clisp.org>
85413
85414                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85415                 function declarations.
85416                 * unsetenv.c (unsetenv): Likewise.
85417
85418         2002-03-04  Bruno Haible  <bruno@clisp.org>
85419
85420                 Portability to AIX 4.3.3.
85421                 * unsetenv.c: New file, extracted from setenv.c.
85422                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85423
85424         2001-12-20  Bruno Haible  <bruno@clisp.org>
85425
85426                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85427                 use malloc instead. For SunOS 4.
85428
85429         2001-12-11  Bruno Haible  <bruno@clisp.org>
85430
85431                 * setenv.c: Declare alloca.
85432                 (compar_fn_t): New typedef.
85433                 (KNOWN_VALUE, STORE_VALUE): Use it.
85434
85435         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85436         setenv.h.
85437
85438 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85439
85440         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85441         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85442         Choose values that are less likely to collide with system fnmatch
85443         options.
85444         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85445         defined (e.g., a pure POSIX system).
85446         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85447         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85448
85449 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85450
85451         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85452         a pain in practice to deal with generated m4 files.  This change
85453         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85454
85455         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85456         and jm-glibc-io.m4, as they are no longer a special case.
85457         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85458         kludge and the auto-generation stuff.  Check only whether the
85459         functions are declared, not whether they exist, since older hosts
85460         that don't declare the functions can't use the optimization anyway.
85461
85462 2002-12-06  Jim Meyering  <jim@meyering.net>
85463
85464         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85465
85466         Merge in changes from libc's misc/error.c, in preparation
85467         for the merge of gnulib's changes back into libc.
85468
85469         * lib/error.c (_): Define only if not already defined.
85470         Move definition to follow all #include directives.
85471         Include unlocked-io.h only if !_LIBC.
85472         [_LIBC]: Include <libio/libioP.h>.
85473         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85474         (fflush): Tweak definition to use INTUSE.
85475         (putc): Define.
85476
85477 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85478
85479         * lib/alloca.c [defined emacs]: Include "lisp.h".
85480         (xalloc_die) [defined emacs]: New macro.
85481         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85482         [! defined emacs]: Include <xalloc.h>.
85483         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85484         (pointer): Typedef to POINTER_TYPE *.
85485         (malloc): Remove decl; we now always use xmalloc.
85486         (alloca): Use old-style definition, since Emacs needs this.
85487         Check for arithmetic overflow when computing combined size.
85488
85489 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85490
85491         Do not generate unlocked-io.h automatically, since it's easier to
85492         maintain it by hand.
85493
85494         * lib/unlocked-io.h: New file, from GNU diffutils,
85495         but with proper copyright notice and attribution.
85496         * lib/gen-uio: Remove.
85497         * lib/Makefile.am: Add copyright notice.
85498         (libfetish_a_SOURCES): Add unlocked-io.h.
85499         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85500         (DISTCLEANFILES, io_functions): Remove macros.
85501         (EXTRA_DIST): Remove gen_uio.
85502         (unlocked-io.h): Remove rule.
85503
85504 2002-12-04  Jim Meyering  <jim@meyering.net>
85505
85506         Reflect the fact that stat.c and lstat.c are no longer generated.
85507         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85508         (DISTCLEANFILES): Likewise.
85509         (EXTRA_DIST): Likewise.
85510         (all_local): Don't depend on stat.c or lstat.c.
85511         (stat.c, lstat.c): Remove rules.
85512         (EXTRA_DIST): Remove xstat.in.
85513
85514         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85515         * lib/stat.c: New file.  Contents mostly from xstat.in.
85516         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85517         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85518
85519         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85520         too.
85521         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85522
85523 2002-12-03  Jim Meyering  <jim@meyering.net>
85524
85525         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85526         but not semantics, to minimize the differences between these two files.
85527         (safe_read): Change comment to mention SAFE_READ_ERROR.
85528
85529         * lib/safe-read.c (IS_EINTR): Define.
85530         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85531
85532 2002-12-02  Jim Meyering  <jim@meyering.net>
85533
85534         * lib/safe-read.c (EINTR): Define.
85535         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85536         (INT_MAX): Provide fallback.
85537         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85538
85539         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85540
85541 2002-12-02  Bruno Haible  <bruno@clisp.org>
85542
85543         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85544         Define, taken from safe-read.c.
85545         (INT_MAX): Provide fallback.
85546         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85547         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85548
85549         * lib/safe-read.c (EINTR): Remove definition.
85550         (safe_read): Don't use EINTR if it is absent.
85551
85552 2002-12-01  Jim Meyering  <jim@meyering.net>
85553
85554         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85555         zero.
85556         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85557
85558 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85559
85560         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85561         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85562         with `if (! (value < limit)) abort ();', for readability.
85563
85564 2002-11-26  Karl Berry  <karl@gnu.org>
85565
85566         * lib/strdup.c: copy from libc again, with jim's ok.
85567         * lib/.cppi-disable: re-add strdup.c
85568
85569 2002-11-25  Karl Berry  <karl@gnu.org>
85570
85571         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85572         instead of "strtol.c".
85573
85574 2002-11-25  Karl Berry  <karl@gnu.org>
85575
85576         * config/install-sh: update from automake for variable quoting, $0 in
85577         error msgs, etc.
85578
85579         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85580         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85581         entry.
85582
85583 2002-11-25  Jim Meyering  <jim@meyering.net>
85584
85585         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85586
85587 2002-11-24  Karl Berry  <karl@gnu.org>
85588
85589         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85590         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85591
85592 2002-11-24  Jim Meyering  <jim@meyering.net>
85593
85594         Update from coreutils:
85595
85596         * lib/mktime.c: Merge in changes from libc.
85597
85598         Avoid a link-time failure on some Linux systems.
85599         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85600         (otherwise).
85601         (__mon_yday): Declare with the STATIC attribute.
85602         (__mktime_internal): Likewise.
85603         Based on a report from Greg Schafer.
85604
85605 2002-11-23  Jim Meyering  <jim@meyering.net>
85606
85607         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85608         Use `unsigned', not `int', as type of index.
85609
85610         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85611
85612         * lib/fsusage.c: Remove unneeded parentheses around operands of
85613         `defined'.
85614
85615 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85616
85617         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85618         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85619         so that we can be included first.
85620         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85621         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85622         No need to include stddef.h or sys/types.h any more.
85623         Surround local include files with "", not "<>".
85624         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85625         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85626         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85627         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85628         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85629         (ISPRINT): Remove; no longer needed now that we assume C89.
85630
85631         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85632         Preserve errno.
85633
85634         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85635         quotearg_char): Use SIZE_MAX rather than
85636         (size_t) -1 when we are talking about "infinity".
85637
85638         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85639
85640 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85641
85642         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85643         hint that one should use `if (! x) abort ();' rather than `assert
85644         (x);', and anyway it's one less thing to worry about configuring.
85645         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85646         hash_rehash, hash_insert): Use abort rather than assert.
85647
85648 2002-11-22  Bruno Haible  <bruno@clisp.org>
85649
85650         * lib/safe-read.h: Assume C89. Add comments.
85651         (safe_read): Change return type to size_t.
85652         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85653         byte counts > SSIZE_MAX correctly.
85654         * lib/safe-write.h: New file.
85655         * lib/safe-write.c: New file.
85656         * lib/full-read.h: New file.
85657         * lib/full-read.c: New file.
85658         * lib/full-write.h: Assume C89. Add comments.
85659         * lib/full-write.c: Include safe-write.h.
85660         (full_write): Rewritten to use safe_write.
85661         Suggested by Jim Meyering and Paul Eggert.
85662
85663 2002-11-21  Jim Meyering  <jim@meyering.net>
85664
85665         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85666
85667         Merge in changes from the coreutils.
85668
85669         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85670         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85671         <stdint.h>.
85672         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85673         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85674         int.  Work more efficiently if X is the same width as uintmax_t.
85675         Do not compare X to -1, to avoid bogus compiler warning.
85676         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85677         Don't assume that f_frsize and f_bsize are the same type.
85678
85679         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85680         warning on FreeBSD.
85681
85682         * lib/makepath.c (make_path): Restore umask *before* creating the final
85683         component.
85684         (make_path): Minor reformatting.
85685
85686         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85687         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85688         HAVE_MALLOC/HAVE_REALLOC.
85689
85690         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85691         dummy ones.  At least on GNU/Linux systems, `auto' means something
85692         else.
85693         From Michael Stone.
85694
85695 2002-11-21  Bruno Haible  <bruno@clisp.org>
85696
85697         Remove case insensitive option matching.
85698         * lib/argmatch.h (argcasematch): Remove declaration.
85699         (ARGCASEMATCH): Remove macro.
85700         (__xargmatch_internal): Remove case_sensitive argument.
85701         (XARGMATCH): Update.
85702         (XARGCASEMATCH): Remove macro.
85703         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85704         case_sensitive argument.
85705         (argcasematch): Remove function.
85706         (__xargmatch_internal): Remove case_sensitive argument.
85707         (main): Use XARGMATCH instead of XARGCASEMATCH.
85708
85709         * lib/xmalloc.c: Change compile-time error message. Add comment about
85710         required autoconf version.
85711
85712 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85713
85714         Merge argmatch cleanups from Bison.  Assume C89.
85715
85716         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85717         Include stdlib.h, for EXIT_FAILURE.
85718         Always include <string.h>, since we assume C89.
85719         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85720         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85721         Include <stddef.h> instead, since it's all we need for size_t.
85722         (PARAMS): Remove.  All uses removed.
85723         (ARRAY_CARDINALITY): Do not bother to #undef.
85724         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85725         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85726         Remove unnecessary parentheses.
85727         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85728         Insert necessary parentheses.
85729         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85730         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85731
85732 2002-11-19  Bruno Haible  <bruno@clisp.org>
85733
85734         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85735         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85736
85737         * lib/mbswidth.h (PARAMS): Remove macro.
85738         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85739         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85740
85741         * lib/gcd.h (PARAMS): Remove macro.
85742         (gcd): Use ANSI C function declarations.
85743         * lib/gcd.c (gcd): Likewise.
85744
85745 2002-11-15  Bruno Haible  <bruno@clisp.org>
85746
85747         * lib/strcspn.c: Include <stddef.h>.
85748         (strcspn): Use ANSI C function declaration. Change return type to
85749         size_t. Use NULL.
85750         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85751         (strpbrk): Use NULL.
85752         * lib/strpbrk.h (PARAMS): Remove macro.
85753         (strpbrk): Use ANSI C function declaration.
85754         * lib/strstr.c: Don't include <sys/types.h>.
85755         * lib/strstr.h (PARAMS): Remove macro.
85756         (strstr): Use ANSI C function declarations.
85757
85758 2002-11-14  Karl Berry  <karl@gnu.org>
85759
85760         * config/mkinstalldirs: `do' on separate line, instead of
85761         `for var; do'.
85762
85763 2002-11-06  Bruno Haible  <bruno@clisp.org>
85764
85765         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85766         * lib/gcd.c (gcd): Likewise.
85767
85768 2002-11-05  Bruno Haible  <bruno@clisp.org>
85769
85770         * lib/gcd.h: New file, from gettext-0.11.5.
85771         * lib/gcd.c: New file, from gettext-0.11.5.
85772
85773 2002-11-05  Bruno Haible  <bruno@clisp.org>
85774
85775         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85776         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85777         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85778         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85779
85780         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85781         <libintl.h>.
85782         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85783         <libintl.h>.
85784
85785         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85786         * lib/human.c: Include gettext.h instead of <libintl.h>.
85787         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85788         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85789         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85790         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85791         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85792         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85793         (textdomain): Remove definition.
85794         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85795
85796         * lib/long-options.c: Remove include of <libintl.h> and definition of
85797         _.
85798         * lib/same.c: Remove include of <libintl.h> and definition of _.
85799
85800 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85801
85802         * lib/config.charset: A few additions for Solaris.
85803
85804 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85805
85806         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85807         * lib/localcharset.c (locale_charset): Declare as extern "C".
85808
85809 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85810
85811         * lib/config.charset: msdos in uk_UA uses CP1125.
85812
85813 2002-11-04  Bruno Haible  <bruno@clisp.org>
85814
85815         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85816         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85817         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85818         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85819         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85820
85821 2002-11-04  Bruno Haible  <bruno@clisp.org>
85822
85823         * lib/localcharset.c (locale_charset): Don't return an empty string.
85824
85825 2002-11-04  Bruno Haible  <bruno@clisp.org>
85826
85827         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85828         aliases.
85829
85830 2002-11-04  Bruno Haible  <bruno@clisp.org>
85831
85832         * lib/config.charset: Update for newest glibc. Add canonical names
85833         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85834
85835 2002-11-04  Bruno Haible  <bruno@clisp.org>
85836
85837         * lib/config.charset: Add support for NetBSD.
85838
85839 2002-11-04  Bruno Haible  <bruno@clisp.org>
85840
85841         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85842
85843 2002-11-01  Bruno Haible  <bruno@clisp.org>
85844
85845         * configure.in: Add AC_CONFIG_AUX_DIR call.
85846         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85847         test/Makefile.
85848         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85849
85850 2002-09-28  Karl Berry  <karl@gnu.org>
85851
85852         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85853         installed automake until the next release, since changes have been
85854         made.
85855
85856 2002-09-25  Karl Berry  <karl@gnu.org>
85857
85858         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85859         * lib/getopt*: copy from libc/posix.
85860         * lib/gettext.h: copy from gettext.
85861         * lib/.cppi-disable: add strdup.c, gettext.h.
85862
85863 2002-09-25  Karl Berry  <karl@gnu.org>
85864
85865         * config/srclist.txt: enable gettext.h check.
85866         * config/config.{guess,sub}: update from prep.
85867         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85868                 from automake 1.6.3.
85869         See srclist*.
85870
85871 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85872
85873         * regex.c (PATFETCH): Remove the translating fetch.
85874         (PATFETCH_RAW): Rename to PATFETCH.
85875         (set_image_of_range): New fun.
85876         (SET_RANGE_TABLE_WORK_AREA): Use it.
85877         (regex_compile): Don't translate the pattern chars so eagerly.
85878         Only do it when inserting an `exactn' bytecode or when handling
85879         a char-range.
85880         (mutually_exclusive_p): Avoid empty statement.
85881
85882 2002-07-06  Jim Meyering  <meyering@lucent.com>
85883
85884         * m4/README: Don't mention Makefile.am.in.
85885         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85886
85887 2002-07-01  Jim Meyering  <meyering@lucent.com>
85888
85889         * lib/c-stack.c: Include sys/time.h.
85890         From Volker Borchert.
85891
85892 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85893
85894         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85895
85896 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85897
85898         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85899         New macro.  Use it uniformly instead of
85900         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85901         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85902         reported by Vin Shelton.
85903
85904 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85905
85906         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85907         Do not assume SA_SIGINFO behavior.
85908         Bug reported by Jim Meyering on NetBSD 1.5.2.
85909
85910 2002-06-22  Jim Meyering  <meyering@lucent.com>
85911
85912         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85913         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85914
85915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85916         now that configure.ac uses AC_GNU_SOURCE.
85917         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85918         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85919
85920         Update to latest tools.  Suggestions from Paul Eggert.
85921         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85922         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85923         * m4/fnmatch.m4: Likewise.
85924         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85925         to AC_HEADER_STDBOOL
85926
85927 2002-06-22  Jim Meyering  <meyering@lucent.com>
85928
85929         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
85930         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
85931
85932 2002-06-22  Jim Meyering  <meyering@lucent.com>
85933
85934         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
85935
85936         * lib/exitfail.c, exitfail.h: Likewise.
85937         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
85938
85939         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
85940         of fnmatch.h.
85941         (EXTRA_DIST): Add fnmatch_loop.c.
85942         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
85943
85944         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
85945         * lib/fnmatch.c: Update from diffutils-2.8.2.
85946         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
85947         * lib/fnmatch.h: Remove file.
85948
85949 2002-06-21  Jim Meyering  <meyering@lucent.com>
85950
85951         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
85952         * m4/mbrtowc.m4: Likewise.
85953
85954         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
85955         * m4/mbswidth.m4: Reflect name change:
85956         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
85957         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85958
85959         * m4/lib-link.m4: Update from gettext-0.11.2.
85960         * m4/gettext.m4: Likewise.
85961
85962         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
85963         From Alfred M. Szmidt.
85964
85965 2002-06-18  Paul Eggert  <eggert@twinsun.com>
85966
85967         * lib/file-type.h: Report an error if neither S_ISREG nor
85968         S_IFREG is defined, instead of using a test specific to glibc
85969         2.2.  This should be safe, since POSIX requires S_ISREG and
85970         Unix Version 7 had S_IFREG.  We don't need to check for
85971         <sys/types.h> since we don't use any symbols that it defines.
85972
85973 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
85974
85975         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
85976         $@-t, so that each temporary file name is unique and valid in the first
85977         8 characters, for operation under DOS.
85978
85979 2002-06-15  Paul Eggert  <eggert@twinsun.com>
85980
85981         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
85982
85983 2002-06-15  Jim Meyering  <meyering@lucent.com>
85984
85985         Work even with DJGPP 2.03, which lacks support for symlinks.
85986         From Richard Dawe.
85987         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
85988         is defined.
85989         * lib/lchown.c (S_ISLNK): Likewise.
85990
85991 2002-06-15  Jim Meyering  <meyering@lucent.com>
85992
85993         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
85994         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
85995         have been included before this file.
85996
85997 2002-06-14  Jim Meyering  <meyering@lucent.com>
85998
85999         * lib/file-type.h: Use the version from diffutils-2.8.2.
86000         * lib/file-type.c: Likewise.
86001
86002 2002-06-07  Jim Meyering  <meyering@lucent.com>
86003
86004         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86005         They're needed at least for NetBSD 1.5.2.
86006         ($statxfs_includes): Include those same headers.
86007         ($statxfs_includes): Include sys/vfs.h if available.
86008         ($statxfs_includes): Likewise for sys/statvfs.h.
86009         Check for the following members in both structs statfs and statvfs:
86010         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86011
86012 2002-06-01  Jim Meyering  <meyering@lucent.com>
86013
86014         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86015         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86016
86017 2002-05-28  Jim Meyering  <meyering@lucent.com>
86018
86019         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86020         Reported by Volker Borchert.
86021
86022 2002-05-27  Jim Meyering  <meyering@lucent.com>
86023
86024         Fix a problem seen only on nonconforming systems whereby ls.c's
86025         use of localtime, and then of gettimeofday would cause trouble:
86026         the localtime call used to initialize rpl_gettimeofday's save
86027         mechanism would clobber ls's current local time information so
86028         that in any long listing the first file would always be listed
86029         with date 1970-01-01.  Analysis by Volker Borchert.
86030
86031         * lib/gettimeofday.c (localtime): Undefine.
86032         (rpl_localtime): New function.
86033
86034 2002-05-27  Jim Meyering  <meyering@lucent.com>
86035
86036         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86037         localtime.
86038
86039         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86040         use the replacement function; it wouldn't resolve at link time.
86041         Reported by Volker Borchert.
86042
86043 2002-05-22  Jim Meyering  <meyering@lucent.com>
86044
86045         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86046         file-type.h.
86047         * lib/file-type.h: New file.
86048         * lib/file-type.c (file_type): New file/function.  Extracted from
86049         diffutils.
86050
86051 2002-04-30  Jim Meyering  <meyering@lucent.com>
86052
86053         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86054
86055 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86056
86057         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86058
86059 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86060
86061         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86062         Do not check for alloca.h (no longer used) or stdbool.h (was never
86063         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86064
86065 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86066
86067         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86068
86069 2002-04-29  Jim Meyering  <meyering@lucent.com>
86070
86071         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86072         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86073         Use AC_FUNC_STRNLEN here instead.
86074
86075         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86076         With autoconf-2.53a, it's part of AC_PROG_CC.
86077
86078 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86079
86080         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86081         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86082
86083 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86084
86085         * lib/sig2str.h, lib/sig2str.c: New files.
86086         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86087
86088 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86089
86090         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86091         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86092         of 127, since 64 is the largest conceivable number for ancient
86093         nonstandard hosts.
86094         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86095
86096 2002-04-28  Jim Meyering  <meyering@lucent.com>
86097
86098         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86099
86100 2002-04-24  Jim Meyering  <meyering@lucent.com>
86101
86102         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86103         (jm_PREREQ): Use it.
86104
86105         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86106         mach/mach.h fcntl.h.
86107         Check for this function: setlocale.
86108
86109 2002-04-24  Jim Meyering  <meyering@lucent.com>
86110
86111         * lib/gettext.h: New file, from Gettext.
86112         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86113         (libfetish_a_SOURCES): Add gettext.h.
86114
86115 2002-04-16  Jim Meyering  <meyering@lucent.com>
86116
86117         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86118         ut_pid, ut_id, ut_exit.
86119
86120 2002-04-16  Jim Meyering  <meyering@lucent.com>
86121
86122         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86123         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86124         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86125
86126 2002-04-12  Jim Meyering  <meyering@lucent.com>
86127
86128         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86129         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86130         existence of the getmntinfo function.  Needed for Darwin 5.3.
86131
86132         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86133         This is necessary at least on Darwin 5.3.
86134
86135         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86136         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86137         strnlen.o in the library, and that makes some versions of ranlib
86138         object.
86139
86140 2002-04-12  Jim Meyering  <meyering@lucent.com>
86141
86142         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86143
86144 2002-04-09  Jim Meyering  <meyering@lucent.com>
86145
86146         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86147         to be more precise.  Rather than saying we're checking whether the
86148         function `works', say what we're testing.
86149         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86150         Reported by Bruno Haible.
86151
86152 2002-03-10  Jim Meyering  <meyering@lucent.com>
86153
86154         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86155         Suggestion from Santiago Vila.
86156
86157 2002-03-08  Jim Meyering  <meyering@lucent.com>
86158
86159         * lib/rename.c: Mention that this wrapper is needed also on
86160         mips-dec-ultrix4.4 systems.
86161
86162 2002-03-02  Jim Meyering  <meyering@lucent.com>
86163
86164         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86165         not HAVE_CLOCK_SETTIME.
86166
86167 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86168
86169         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86170         Check for clock_settime.
86171
86172 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86173
86174         * lib/nanosleep.h: Rename to....
86175         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86176
86177         * lib/gettime.c: New file.
86178         * lib/settime.c: New file.
86179         * lib/stime.c: Remove.
86180
86181         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86182         timespec.h.  Remove nanosleep.h.
86183
86184 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86185
86186         * m4/acl.m4: New file.
86187         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86188         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86189
86190 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86191
86192         * lib/acl.c, lib/acl.h: New files.
86193         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86194
86195 2002-02-24  Jim Meyering  <meyering@lucent.com>
86196
86197         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86198         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86199         cause trouble.  Reported by Nelson Beebe.
86200
86201 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86202
86203         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86204         compilers that don't know that xalloc_die never returns.
86205
86206 2002-02-20  Jim Meyering  <meyering@lucent.com>
86207
86208         * lib/getdate.c: Regenerate using bison-1.33.
86209
86210 2002-02-17  Jim Meyering  <meyering@lucent.com>
86211
86212         * config/config.guess (main): Don't use `head -1'; it's no longer
86213         portable. Use `sed 1q' instead.
86214
86215 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86216
86217         * m4/codeset.m4: Upgrade to gettext-0.11.
86218         * m4/gettext.m4: Upgrade to gettext-0.11.
86219         * m4/glibc21.m4: Upgrade to gettext-0.11.
86220         * m4/iconv.m4: Upgrade to gettext-0.11.
86221         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86222         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86223         * m4/lib-ld.m4: New file, from gettext-0.11.
86224         * m4/lib-link.m4: New file, from gettext-0.11.
86225         * m4/lib-prefix.m4: New file, from gettext-0.11.
86226         * m4/progtest.m4: Upgrade to gettext-0.11.
86227
86228 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86229
86230         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86231         (jm_PREREQ): Use it.
86232
86233 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86234
86235         * lib/posixver.c, lib/posixver.h: New files.
86236         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86237
86238 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86239             Bruno Haible  <bruno@clisp.org>
86240
86241         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86242         (fwrite_success_callback): New declaration.
86243         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86244         print_unicode_char. Call failure callback instead of error.
86245         (fwrite_success_callback): New function.
86246         (exit_failure_callback): New function.
86247         (fallback_failure_callback): New function.
86248         (print_unicode_char): Call unicode_to_mb.
86249
86250 2002-01-26  Jim Meyering  <meyering@lucent.com>
86251
86252         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86253         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86254
86255 2002-01-26  Jim Meyering  <meyering@lucent.com>
86256
86257         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86258
86259 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86260
86261         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86262
86263 2002-01-22  Jim Meyering  <meyering@lucent.com>
86264
86265         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86266         Otherwise, some versions of automake would omit the rule that makes
86267         Makefile from Makefile.in.
86268
86269 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86270
86271         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86272         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86273         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86274         (memcoll): Set errno to zero if there is no error.
86275
86276         * lib/quotearg.c (quotearg_buffer_restyled):
86277         Fix bug with quoting buffers containing NUL when backslashing escapes.
86278         This bug was exposed by the other changes in this patch.
86279         (quotearg_n_options): New arg ARGSIZE.
86280         All callers changed.
86281         (quoting_options_from_style): New function.
86282         (quotearg_n_style): Use it.
86283         (quotearg_n_style_mem): New function.
86284
86285         * lib/quotearg.h (quotearg_n_style_mem): New function.
86286
86287 2002-01-19  Jim Meyering  <meyering@lucent.com>
86288
86289         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86290         Remove useless quotes: DF_PROG="df".
86291         * m4/strnlen.m4: New file.
86292
86293 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86294
86295         * lib/backupfile.c (ISDIGIT): Comment fix.
86296         * lib/getdate.y (ISDIGIT): Likewise.
86297         * lib/posixtm.c (ISDIGIT, year): Likewise.
86298         * lib/strverscmp.c (ISDIGIT): Likewise.
86299         * lib/userspec.c (ISDIGIT): Likewise.
86300
86301 2002-01-16  Jim Meyering  <meyering@lucent.com>
86302
86303         * lib/getdate.y: Add three semicolons, each just before a closing
86304         brace. Bison (as of version 1.31) no longer papers over that mistake.
86305
86306 2002-01-05  Jim Meyering  <meyering@lucent.com>
86307
86308         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86309
86310 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86311
86312         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86313         not silently exit merely because the output buffer happens to
86314         have nothing pending.
86315
86316 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86317
86318         See the big note in ../ChangeLog.
86319         * lib/human.c (suffixes): Prefer K to k for 1024.
86320         (generate_suffix_backwards): New function.
86321         (human_readable_inexact): Use it.
86322         * lib/xstrtol.c (__xstrtol): If there is no number but there
86323         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86324         Accept 'K' as well as 'k'.
86325
86326 2001-12-15  Jim Meyering  <meyering@lucent.com>
86327
86328         * lib/regex.h (__restrict_arr): Update from libc.
86329
86330         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86331         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86332         (STREQ): Define.
86333
86334 2001-12-14  Jim Meyering  <meyering@lucent.com>
86335
86336         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86337         Suggestion from Bruno Haible.
86338
86339 2001-12-10  Jim Meyering  <meyering@lucent.com>
86340
86341         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86342         xrealloc, Instead, include "xalloc.h".
86343         (initbuffer): Don't cast xmalloc return value to char*.
86344         (readline): Reword comment.
86345         Don't cast xrealloc return value to char*
86346         Return NULL, not 0.
86347
86348 2001-12-09  Jim Meyering  <meyering@lucent.com>
86349
86350         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86351         about `signed and unsigned type in conditional expression'.
86352         * lib/posixtm.c (posix_time_parse): Likewise.
86353
86354         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86355
86356         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86357         to avoid a pedantic warning.
86358
86359         * lib/getstr.c: Don't include assert.h.
86360         (getstr): Remove warning-evoking assertions.
86361         Return -1 if offset parameter is out of bounds.
86362         Change the type of a local from int to size_t.
86363
86364         * lib/strftime.c (my_strftime_localtime_r): Include this function
86365         definition in the `#if ! HAVE_TM_GMTOFF' block.
86366
86367         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86368         Include xalloc.h instead.
86369
86370 2001-12-02  Jim Meyering  <meyering@lucent.com>
86371
86372         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86373         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86374         included.
86375
86376         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86377         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86378
86379 2001-11-30  Akim Demaille  <akim@epita.fr>
86380
86381         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86382         before being defined.
86383
86384 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86385
86386         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86387         First arg is int, not unsigned.
86388         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86389         (SIZE_MAX, UINT_MAX): New macros.
86390         (quotearg_n_options): Abort if N is negative.
86391         Avoid overflow check on hosts where size_t is 64 bits and int
86392         is 32 bits, as overflow is impossible there.
86393         Fix off-by-one typo that caused unnecessary reallocation.
86394
86395 2001-11-27  Jim Meyering  <meyering@lucent.com>
86396
86397         * lib/tempname.c: Merge with version from libc.
86398         * lib/regex.c: Likewise.
86399
86400         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86401         systems for which STDC_HEADERS is 0, it was not included, resulting in
86402         a warning about an integer-to-pointer conversion problem with getenv.
86403         Reported by Volker Borchert.
86404
86405 2001-11-26  Jim Meyering  <meyering@lucent.com>
86406
86407         * lib/gtod.h: Remove file.
86408         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86409         * lib/gettimeofday.c: Don't include gtod.h.
86410         (GTOD_init): Remove function.
86411         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86412         Suggestion from Volker Borchert.
86413
86414 2001-11-23  Jim Meyering  <meyering@lucent.com>
86415
86416         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86417         it.
86418         * lib/hash.c (struct hash_table): Define it here instead.
86419
86420 2001-11-22  Jim Meyering  <meyering@lucent.com>
86421
86422         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86423
86424 2001-11-20  Jim Meyering  <meyering@lucent.com>
86425
86426         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86427         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86428
86429 2001-11-19  Jim Meyering  <meyering@lucent.com>
86430
86431         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86432         directory.  Use "conftestXXXXXX" as the template.
86433         Suggestion from Paul Eggert.
86434
86435         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86436         immediately, so the test doesn't mistakenly hit the max-open-files
86437         limit.
86438
86439 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86440
86441         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86442         (TEMPORARIES): New macro.
86443         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86444         removes an artificial limitation (e.g. HP-UX 10.20, where
86445         TMP_MAX is 17576).
86446
86447 2001-11-18  Jim Meyering  <meyering@lucent.com>
86448
86449         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86450
86451 2001-11-18  Jim Meyering  <meyering@lucent.com>
86452
86453         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86454         on SunOS 4.
86455
86456         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86457         files will be created before anything else.
86458
86459 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86460
86461         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86462         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86463
86464 2001-11-17  Jim Meyering  <meyering@lucent.com>
86465
86466         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86467         Prompted by a report from Bob Proulx.
86468
86469         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86470         Instead, require UTILS_FUNC_MKSTEMP.
86471
86472 2001-11-17  Jim Meyering  <meyering@lucent.com>
86473
86474         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86475         Now, that's done as part of AC_FUNC_STRTOD.
86476
86477 2001-11-17  Jim Meyering  <meyering@lucent.com>
86478
86479         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86480         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86481         rather than group writable.  Patch by Juan F. Codagnone.
86482
86483         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86484         xrealloc, Instead, include "xalloc.h".
86485
86486         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86487         Remove explicit declarations of xmalloc, xrealloc,
86488         and xstrdup.  Instead, include "xalloc.h".
86489
86490         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86491         unlocked-io.h.
86492         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86493         Likewise.
86494         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86495
86496         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86497         Reported by Padraig Brady.
86498
86499         * lib/mkstemp.c: #undef mkstemp.
86500         Include config.h.
86501         (rpl_mkstemp): Rename from mkstemp.
86502         Protoize.
86503
86504 2001-11-16  Jim Meyering  <meyering@lucent.com>
86505
86506         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86507         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86508         determine the amount of total physical memory, use pstat_getstatic.
86509         HPUX-11 doesn't define _SC_PHYS_PAGES.
86510         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86511         If sysconf couldn't be used to determine the amount of available
86512         physical memory, use both pstat_getstatic and pstat_getdynamic.
86513         Based on a patch from Bob Proulx.
86514
86515 2001-11-10  Jim Meyering  <meyering@lucent.com>
86516
86517         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86518         (jm_PREREQ): Use it.
86519
86520 2001-11-09  Jim Meyering  <meyering@lucent.com>
86521
86522         * m4/jm-macros.m4: Require autoconf-2.52f.
86523         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86524         Use these AC_-prefixed names, not the AM_-prefixed ones.
86525
86526         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86527
86528 2001-11-05  Jim Meyering  <meyering@lucent.com>
86529
86530         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86531
86532 2001-11-04  Jim Meyering  <meyering@lucent.com>
86533
86534         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86535         $DEFS.
86536
86537 2001-11-03  Jim Meyering  <meyering@lucent.com>
86538
86539         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86540         of AC_DEFUN.
86541
86542         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86543         know the name of the variable in the macro definition.
86544
86545 2001-11-03  Jim Meyering  <meyering@lucent.com>
86546
86547         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86548         in argmatch_to_argument call.
86549
86550         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86551         argument.
86552
86553         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86554         e.g., a fault due to an attempt to free a NULL pointer.
86555
86556 2001-11-01  Jim Meyering  <meyering@lucent.com>
86557
86558         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86559         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86560
86561 2001-11-01  Jim Meyering  <meyering@lucent.com>
86562
86563         * lib/dirfd.c, lib/dirfd.h: New files.
86564         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86565
86566         * lib/hash.c (hash_print) [TESTING]: Clean up.
86567
86568 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86569
86570         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86571         to avoid a warning if -Wall.
86572
86573 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86574
86575         * README: New file
86576         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86577         (per RMS's instructions, this is now the canonical source)
86578         * lgpl/, gpl/: New directories.
86579
86580 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86581
86582         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86583
86584 2001-10-21  Jim Meyering  <meyering@lucent.com>
86585
86586         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86587         this code would end up calling gettext even in packages built
86588         with --disable-nls.
86589         * lib/getopt.c (_): Likewise.
86590         * lib/regex.c (_): Likewise.
86591
86592 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86593
86594         * m4/error.m4 (jm_PREREQ_ERROR):
86595         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86596         AC_FUNC_STRERROR_R does that.
86597         Check for strerror declaration.
86598
86599         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86600         are supposed to have them these days.
86601         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86602         Merge changes from latest Autoconf CVS.
86603         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86604         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86605         POSIX decided to standardize on the int flavor of strerror_r.
86606
86607 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86608
86609         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86610         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86611         Use strerror_r that is only a macro, even if it is not a function.
86612         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86613         (private_strerror): Use prototypes, not old-style function definition.
86614         (print_errno_message): New function.
86615         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86616         char*-flavored one.
86617         (error_tail, error, error_at_line): Use it.
86618
86619 2001-10-11  Jim Meyering  <meyering@lucent.com>
86620
86621         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86622         and quote_n (1, ... to avoid clobbering a buffer.
86623
86624 2001-10-05  Jim Meyering  <meyering@lucent.com>
86625
86626         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86627         hash-pjw.h.
86628         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86629         * lib/hash-pjw.h: New file.
86630
86631 2001-09-30  Jim Meyering  <meyering@lucent.com>
86632
86633         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86634         `struct fsstat' has the `f_fstypename' member.
86635         Use that to define FS_TYPE, which is now used to make
86636         the getfsstat link test tighter.
86637
86638 2001-09-30  Jim Meyering  <meyering@lucent.com>
86639
86640         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86641         Include <sys/ucred.h>, for Apple Darwin.
86642         Include sys/mount.h and sys/fs_types.h only if available.
86643         (FS_TYPE): Define.
86644         (read_filesystem_list): Use FS_TYPE.
86645
86646 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86647
86648         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86649         a boolean context.
86650
86651 2001-09-29  Jim Meyering  <meyering@lucent.com>
86652
86653         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86654         [one-argument getmntent function]): Include stdio.h before mntent.h.
86655         SunOS 4.1.x needs it for the declaration of `FILE'.
86656         Patch by Volker Borchert.
86657
86658         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86659         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86660         sys/fs_types.h, and make the link-test for getfsstat guard #include
86661         directives with appropriate #if HAVE_*_H tests so that we can
86662         detect getfsstat on Apple Darwin1.3.7 systems.
86663         Reported by Nelson Beebe.
86664         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
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         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86673         Check for strtoul and strtoumax,
86674         as those declarations are made even in the signed case.
86675         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86676         Likewise, for strtol and strtoimax.
86677
86678 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86679
86680         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86681         #defines strtoimax.  Also treat the other strto* functions
86682         like strtoimax.
86683
86684         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86685         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86686         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86687
86688 2001-09-26  Jim Meyering  <meyering@lucent.com>
86689
86690         Most macros in unlocked-io.h had the wrong number of arguments.
86691         * lib/gen-uio: New script.
86692         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86693         * lib/unlocked-io.hin: Remove file.
86694         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86695         rather than trying to embed it here.
86696         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86697         Reported by Padraig Brady.
86698
86699 2001-09-25  Volker Borchert  <bt@teknon.de>
86700
86701         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86702         `result'.
86703
86704 2001-09-24  Jim Meyering  <meyering@lucent.com>
86705
86706         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86707
86708 2001-09-23  Jim Meyering  <meyering@lucent.com>
86709
86710         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86711         instead of the mere test for existence of mntent.h.  The latter
86712         would get a false-positive on AIX 3.4 systems.
86713         In the outer getmntent if-block, don't die if neither of the getmntent
86714         tests succeeds.  Instead, just fall through and continue with the
86715         remaining tests.
86716
86717 2001-09-23  Jim Meyering  <meyering@lucent.com>
86718
86719         * lib/mountlist.c: Remove useless parentheses in #if directives.
86720         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86721         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86722
86723 2001-09-22  Jim Meyering  <meyering@lucent.com>
86724
86725         * m4/gettext.m4: New file.  From gettext.
86726         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86727         * m4/progtest.m4: Likewise
86728         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86729         * m4/glibc21.m4: Likewise.
86730
86731         * m4/libintl.m4: Remove.  No longer used.
86732
86733 2001-09-22  Jim Meyering  <meyering@lucent.com>
86734
86735         * lib/localcharset.c: Update from latest gettext.
86736         * lib/config.charset: Likewise.
86737
86738 2001-09-20  Jim Meyering  <meyering@lucent.com>
86739
86740         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86741         strtoimax.
86742         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86743         strtoumax.
86744
86745 2001-09-20  Jim Meyering  <meyering@lucent.com>
86746
86747         * lib/xstrtol.c (strtoimax): Guard declaration with
86748         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86749         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86750         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86751         (strtoumax): Likewise, for completeness (it wasn't necessary).
86752
86753 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86754
86755         * lib/strtoimax.c (HAVE_LONG_LONG):
86756         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86757         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86758         to work around bug in IBM C compiler.
86759
86760 2001-09-17  Jim Meyering  <meyering@lucent.com>
86761
86762         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86763         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86764         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86765         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86766         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86767         whenever the right hand side need not be expanded by the shell.
86768
86769 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86770
86771         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86772         library.  It's not correct, as some older glibcs are buggy.
86773         fnmatch wasn't fixed until glibc 2.2.
86774
86775         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86776         special shell magic here.
86777
86778 2001-09-16  Jim Meyering  <meyering@lucent.com>
86779
86780         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86781         * m4/jm-macros.m4: Require it.
86782
86783 2001-09-16  Jim Meyering  <meyering@lucent.com>
86784
86785         * lib/mkdir.c: New file.
86786
86787 2001-09-15  Jim Meyering  <meyering@lucent.com>
86788
86789         * m4/jm-macros.m4: Check for help2man.
86790
86791 2001-09-11  Jim Meyering  <meyering@lucent.com>
86792
86793         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86794         The body, by Paul Eggert, was moved here from configure.in.
86795         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86796
86797 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86798
86799         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86800         (jm_PREREQ): Use it.
86801
86802 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86803
86804         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86805         Use ssize_t, not int, to store result of readlink.
86806         Check for ssize_t overflow as well as size_t overflow,
86807         as POSIX says the result of readlink is implementation-defined
86808         when ssize_t overflows.
86809         Remove unnecessary cast to char*.
86810         Use free+malloc instead of realloc, as the storage doesn't need
86811         to be preserved and it's clearer and can be more efficient that way.
86812         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86813         * lib/xreadlink.h (xreadlink): Update prototype.
86814
86815 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86816
86817         * lib/xgetcwd.c: Revert some of the previous change; intead,
86818         fix the HAVE_GETCWD_NULL code to behave more like the
86819         !HAVE_GETCWD_NULL code used to.
86820
86821         Include "xalloc.h".
86822         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86823         invoke xalloc_die.
86824
86825 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86826
86827         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86828         sys/param.h, as pathmax.h includes them.
86829
86830 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86831
86832         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86833         (jm_PREREQ_XGETCWD): New macro.
86834
86835         * m4/getcwd.m4: New file.
86836
86837 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86838
86839         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86840         like the HAVE_GETCWD_NULL code.
86841         Include pathmax.h if not HAVE_GETCWD.
86842         Do not include xalloc.h.
86843         (INITIAL_BUFFER_SIZE): New symbol.
86844         Do not use xmalloc / xrealloc, since the caller is responsible for
86845         handling errors.  Preserve errno around `free' during failure.
86846         Do not overrun buffer when using getwd.
86847
86848 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86849
86850         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86851         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86852         getcwd (NULL, 0).
86853
86854 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86855
86856         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86857         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86858         spotted by Jim Meyering.
86859
86860 2001-09-03  Jim Meyering  <meyering@lucent.com>
86861
86862         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86863         failure.
86864
86865 2001-09-02  Jim Meyering  <meyering@lucent.com>
86866
86867         * lib/error.c: Update from GNU libc.
86868
86869 2001-09-01  Jim Meyering  <meyering@lucent.com>
86870
86871         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86872         Used by df.
86873
86874 2001-09-01  Jim Meyering  <meyering@lucent.com>
86875
86876         * lib/xreadlink.c: New file.
86877         * lib/xreadlink.h: New file.
86878         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86879         xreadlink.h.
86880
86881         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86882         doesn't conflict with sparc Solaris 7's definition in
86883         /usr/include/sys/int_types.h.
86884
86885         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86886         files.
86887         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86888         and strncasecmp as r-values.  Unixware didn't have declarations.
86889
86890 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86891
86892         * lib/xstrtol.h: Add copyright notice.
86893         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86894         LONGINT_INVALID_SUFFIX_CHAR.
86895
86896 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86897
86898         * lib/xstrtol.c (strtoimax): New decl.
86899
86900 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86901
86902         * lib/xgetcwd.c: Don't include pathmax.h.
86903         Include stdlib.h and unistd.h if available.
86904         Include xalloc.h.
86905         (xmalloc, xstrdup, free): Remove decls.
86906         (xgetcwd): Don't assume sizes fit in unsigned.
86907         Check for overflow when computing sizes.
86908         Simplify reallocation code.
86909
86910 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86911
86912         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86913         a directory's st_size can have an arbitrary value, so the old
86914         usage could waste an arbitrary amount of memory.  All uses
86915         changed.
86916         * lib/savedir.h: Update prototype.
86917
86918 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86919
86920         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86921
86922         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86923         old strtoimax.c.
86924
86925         Also, make the following further changes to make this file's
86926         configuration more similar to that of strtol.c:
86927         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86928         (strtoumax, uintmax_t, strtoull, strtol): Remove.
86929         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
86930         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
86931         changed to signed values.
86932
86933         And make the following changes as well:
86934         Fix copyright notice, as 1999 was missing.
86935         (verify): New macro.
86936         (strtoimax): Check sizes at compile-time, not run-time.
86937         Prefer strtol to strtoll if both work.
86938         (main): Remove; it was not that useful and was a pain to maintain.
86939
86940         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
86941
86942 2001-08-31  Jim Meyering  <meyering@lucent.com>
86943
86944         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
86945         Use an initial, malloc'd, buffer of length 128 rather than
86946         a statically allocated one of length 1024.
86947
86948 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86949
86950         Simplify code, partly by assuming autoconf 2.52 semantics.
86951
86952         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
86953
86954         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
86955         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
86956         All uses removed.
86957         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
86958         Move AC_REQUIRE to next-to-top level, to avoid confusion.
86959         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
86960         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
86961         jm_AC_HEADER_INTTYPES_H.
86962         * m4/jm-macros.m4 (jm_MACROS): Likewise.
86963
86964         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
86965
86966         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86967         Quote first arg of AC_DEFUN.
86968         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
86969         since they are needed to parse the include file even if we need
86970         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
86971         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
86972         but with opposite signedness.
86973
86974 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86975
86976         Merge 'exclude' changes from tar 1.13.22.
86977         This fixes one or two unlikely storage allocation overflow bugs,
86978         but doesn't change user-visible behavior otherwise.
86979
86980 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86981
86982         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
86983         (jm_PREREQ_EXCLUDE): New macro.
86984
86985 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86986
86987         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
86988         tm to be declared.
86989
86990 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86991
86992         * lib/hash.c: Remove '2001' from copyright notice.
86993
86994 2001-08-30  Paul Eggert  <eggert@twinsun.com>
86995
86996         * lib/full-write.h: New file.
86997         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
86998         * lib/full-write.c: Correct credits, as cccp.c no longer
86999         exists and anyway it was so heavily changed from the old cccp
87000         code as to be unrecognizable.  Include full-write.h.
87001         (full_write): Return size_t, with short writes meaning failure.
87002         All callers changed.  This fixes a bug with large buffers
87003         on 64-bit hosts.
87004         * lib/utime.c: Include full-write.h.
87005
87006 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87007
87008         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87009         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87010         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87011         Include if available.
87012         (<xalloc.h>): Include
87013         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87014         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87015         collide with FNM macros.
87016         (struct patopts): New struct.
87017         (struct exclude): Use it, as exclude patterns now come with options.
87018         (new_exclude): Support above changes.
87019         (new_exclude, add_exclude_file):
87020         Initial size must now be a power of two to simplify overflow checking.
87021         (free_exclude, fnmatch_no_wildcards): New function.
87022         (excluded_filename): No longer requires options arg, as the options
87023         are determined by add_exclude.  Now returns bool, not int.
87024         (excluded_filename, add_exclude):
87025         Add support for the fancy new exclusion options.
87026         (add_exclude, add_exclude_file): Now takes int options arg.
87027         Check for arithmetic overflow when computing sizes.
87028         (add_exclude_file): xrealloc might modify errno, so don't
87029         realloc until after errno might be used.
87030
87031         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87032         New macros.
87033         (free_exclude): New decl.
87034         (add_exclude, add_exclude_file): Now takes int options arg.
87035         (excluded_filename): No longer requires options arg, as the options
87036         are determined by add_exclude.  Now returns bool, not int.
87037
87038 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87039
87040         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87041
87042 2001-08-27  Jim Meyering  <meyering@lucent.com>
87043
87044         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87045
87046         * lib/version-etc.c (N_): Remove definition.
87047         Revert most of last change.
87048         Instead, simply don't mark the `Copyright...' string for translation.
87049         Based on advice from Paul Eggert.
87050
87051         * lib/strtoxmax.c: Tweak comment.
87052
87053 2001-08-26  Jim Meyering  <meyering@lucent.com>
87054
87055         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87056
87057         * m4/xstrtoimax.m4: New file.
87058         * m4/xstrtoumax.m4: Add comments explaining why we
87059         AC_REPLACE_FUNCS(strtol).
87060
87061 2001-08-26  Jim Meyering  <meyering@lucent.com>
87062
87063         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87064         of copyright with `%s' so translators don't get an untranslated
87065         message in 2002.
87066         (COPYRIGHT_YEAR): Define.
87067         (version_etc): Use fprintf rather than fputs.
87068         Suggestion from Ulrich Drepper.
87069
87070         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87071
87072         * lib/strtoll.c: New file, from GNU libc.
87073         * lib/xstrtoimax.c: New file.
87074
87075         * lib/xstrtol.h: Add xstrtoimax.
87076         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87077         * lib/strtoimax.c: New file.  Likewise, but first define
87078         STRTOUXMAX_SIGNED.
87079
87080         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87081         ...
87082         * lib/strtoxmax.c: ... then renamed to this.
87083
87084 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87085
87086         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87087         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87088         (jm_AC_TYPE_INTMAX_T): New macro.
87089         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87090
87091         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87092
87093         * m4/longlong.m4: Renamed from ulonglong.m4.
87094         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87095         * m4/uintmax_t.m4: Removed.
87096
87097 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87098
87099         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87100         Port to Solaris 8, where 'sed' requires a space after the 'r'
87101         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87102         Redirect output to $tmp just once.
87103
87104 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87105
87106         * lib/addext.c (<errno.h>): Include.
87107         (errno): Declare if not defined.
87108         (addext): Work correctly when pathconf returns -1 and leaves
87109         errno alone because there is no limit.  Also, work even if
87110         pathconf returns a value greater than SIZE_MAX.
87111
87112 2001-08-12  Jim Meyering  <meyering@lucent.com>
87113
87114         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87115         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87116         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87117         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87118         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87119         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87120         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87121         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87122         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87123         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87124         utime.m4, utimes.m4, xstrtoumax.m4:
87125         Quote the first argument in each use of AC_DEFUN.
87126
87127 2001-08-12  Jim Meyering  <meyering@lucent.com>
87128
87129         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87130         Simply `return getcwd (NULL, 0);'.
87131         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87132         Use 1300 as initial value for length, not PATH_MAX.
87133
87134         * lib/pathmax.h: Clean up cpp syntax.
87135
87136 2001-08-12  Jim Meyering  <meyering@lucent.com>
87137
87138         * lib/gettimeofday.c: New file.
87139         * lib/gtod.h: New file.
87140         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87141
87142 2001-08-05  Jim Meyering  <meyering@lucent.com>
87143
87144         * m4/jm-macros.m4: Require autoconf-2.52.
87145
87146 2001-08-04  Jim Meyering  <meyering@lucent.com>
87147
87148         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87149         stmt, to get in sync with glibc.
87150
87151 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87152
87153         The following changes are from gettext 0.10.39 as maintained by
87154         Bruno Haible.
87155
87156         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87157         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87158         with inverted sense.  All uses changed.
87159
87160         * lib/mbswidth.c: Don't include <limits.h>.
87161         Include <stdlib.h> and <string.h> unconditionally.
87162         (iswcntrl, mbsinit, ISCNTRL): New macros.
87163         (mbsnwidth): Use K&R style function declarations.
87164         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87165         can optimize it when MB_CUR_MAX == 1.
87166         The width of control characters is zero, not 1.
87167
87168 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87169
87170         The following changes are from gettext 0.10.39 as maintained by
87171         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87172
87173         * m4/codeset.m4: Upgrade to serial AM1.
87174         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87175         all uses changed.  Quote first arg of AC_DEFUN.
87176         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87177
87178         * m4/iconv.m4: Upgrade to serial AM2.
87179         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87180         Add --with-libconv-prefix.
87181         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87182         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87183         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87184         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87185         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87186
87187         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87188         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87189         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87190         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87191         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87192         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87193         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87194         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87195         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87196
87197         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87198         string.h any more.
87199
87200         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87201         not the default value.
87202
87203         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87204         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87205         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87206         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87207         Also check for iswcntrl, used for wcwidth fallback.
87208         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87209         to Autoconf 2.13.
87210
87211 2001-08-03  Jim Meyering  <meyering@lucent.com>
87212
87213         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87214         as it was in the original.  Reported by Paul Eggert.
87215
87216 2001-07-16  Jim Meyering  <meyering@lucent.com>
87217
87218         * m4/gettimeofday.m4: New file.
87219         Prompted by a report from Bernhard Baehr.
87220
87221 2001-07-15  Jim Meyering  <meyering@lucent.com>
87222
87223         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87224         stuff. Now it's in ../Makefile.cfg.
87225
87226 2001-07-15  Jim Meyering  <meyering@lucent.com>
87227
87228         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87229         (BUILT_SOURCES): Add unlocked-io.h.
87230         (io_functions): Define.
87231         (unlocked-io.h): New rule.
87232         (DISTCLEANFILES): Add unlocked-io.h.
87233         (all-local): Depend on unlocked-io.h, to ensure it is created.
87234
87235         * lib/unlocked-io.hin: New file
87236
87237         * lib/regex.c: Update from glibc.
87238
87239 2001-07-05  Jim Meyering  <meyering@lucent.com>
87240
87241         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87242         recommendation.
87243         (libfetish_a_SOURCES): Put all .h files here instead.
87244         Remove a thus-exposed (better checks in automake) duplicate and
87245         two unnecessary .h files.
87246
87247 2001-07-04  Jim Meyering  <meyering@lucent.com>
87248
87249         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87250         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87251         distcheck failure.
87252
87253 2001-07-02  Jim Meyering  <meyering@lucent.com>
87254
87255         The following changes were prompted by suggestions from Bruno Haible.
87256
87257         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87258         is now generated.
87259         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87260         definition of EXTRA_DIST.
87261         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87262         ensure that the generated file is created/updated whenever the list
87263         of $(unlocked_functions) is changed.
87264         (jm-glibc-io.m4): New rule.
87265         (unlocked-io.h): New rule -- currently unused.
87266
87267 2001-06-24  Jim Meyering  <meyering@lucent.com>
87268
87269         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87270         unmatched right bracket, rather than kludging it with an extra,
87271         falsely-matching quote in a comment.  Patch by Akim Demaille.
87272
87273 2001-06-11  Jim Meyering  <meyering@lucent.com>
87274
87275         * lib/regex.c: Update from GNU libc.
87276
87277 2001-05-27  Jim Meyering  <meyering@lucent.com>
87278
87279         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87280         Check for ut_type in struct utmp.
87281
87282 2001-05-27  Jim Meyering  <meyering@lucent.com>
87283
87284         * lib/readutmp.h (UT_TYPE): Define.
87285
87286 2001-05-24  Jim Meyering  <meyering@lucent.com>
87287
87288         * lib/argmatch.c: Include "quote.h".
87289         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87290         quote function.  Reported by Göran Uddeborg.
87291
87292 2001-05-22  Jim Meyering  <meyering@lucent.com>
87293
87294         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87295         now that we use the package-supplied version unconditionally.
87296         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87297
87298 2001-05-21  Jim Meyering  <meyering@lucent.com>
87299
87300         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87301         shell syntax errors.
87302
87303 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87304
87305         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87306
87307 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87308
87309         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87310         Don't bother to check library strftime, since
87311         we'll be using our own my_strftime function anyway.
87312         Define my_strftime instead of strftime.
87313
87314 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87315
87316         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87317         which is not yet declared.
87318
87319 2001-05-15  Jim Meyering  <meyering@lucent.com>
87320
87321         * m4/regex.m4: Use proper quoting so brackets appear in the test
87322         program.
87323         Reported by, and with help from, Bruno Haible.
87324
87325 2001-05-13  Jim Meyering  <meyering@lucent.com>
87326
87327         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87328         undefined.
87329
87330 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87331
87332         dirname code cleanup.  base_name now behaves more compatibly
87333         with POSIX basename when given file names that have trailing
87334         slashes, and similarly for dir_name.  Add new primitives
87335         base_len and dir_len.  Put the directory-name-related decls
87336         into dirname.h.
87337
87338         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87339         * lib/backupfile.c (base_name): Likewise.
87340         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87341         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87342         * lib/makepath.c (strip_trailing_slashes): Likewise.
87343         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87344         ISSLASH): Likewise.
87345         * lib/rename.c (strip_trailing_slashes): Likewise.
87346         * lib/same.c (base_name): Likewise.
87347         * lib/stripslash.c (ISSLASH): Likewise.
87348
87349         * lib/addext.c: Include <dirname.h> after size_t is defined.
87350         * lib/backupfile.c: Likewise.
87351
87352         * lib/addext.c (addext): Use base_len to trim redundant
87353         trailing slashes instead of doing it ourselves.
87354         But do not trim the last slash if it is not redundant.
87355
87356         * lib/backupfile.c (find_backup_file_name,
87357         max_backup_version): Use base_len instead of rolling it ourselves.
87358         Handle the case of "" and (on DOS) "C:" correctly.
87359
87360         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87361         needed. Include <string.h>, <dirname.h>.
87362         (base_name): Allow file names ending in slashes, other than names
87363         that are all slashes.  In this case, return the basename followed
87364         by the slashes.  This is more general, and can be used in places
87365         where the original base_name purposely had an assertion failure.
87366         (base_len): New function.
87367
87368         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87369         Do not include <assert.h>; no longer needed.
87370         Include xalloc.h.
87371         (memrchr): Remove decl.
87372         (dir_name_r): Remove.
87373         (dir_len): Renamed from dirlen.  All callers changed.
87374         Rewrite in terms of base_name, for simplicity and consistency.
87375         (dir_name): Never return NULL.  All callers changed.
87376         Do not include <stdlib.h> in test program; no longer needed.
87377         return 0; is fine for test program.
87378
87379         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87380         New macros.
87381         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87382
87383         * lib/path-concat.c (path_concat): Use base_len to compute
87384         base length, not strlen; this means we cannot rely on memcpy
87385         to null-terminate.
87386
87387         * lib/same.c (STREQ): Remove.
87388         (same_name): Handle the case where the basename ends in trailing '/'.
87389
87390         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87391         a slash was stripped.  Do not strip the last slash after a
87392         file system prefix.
87393
87394 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87395
87396         * lib/Makefile.am (libfetish_a_SOURCES):
87397         Add strftime.c, since we now compile it on all hosts.
87398
87399         * lib/strftime.c (my_strftime):
87400         Define to nstrftime if emacs, but only if my_strftime is not defined.
87401         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87402         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87403         Add one more extra argument: a nanoseconds value.
87404         All uses changed.
87405         (ns): New macro.
87406         (my_strftime function): Add %N format.
87407         (emacs_strftimeu): Renamed from emacs_strftime,
87408         with extra ut argument.
87409
87410 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87411
87412         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87413
87414 2001-04-21  Jim Meyering  <meyering@lucent.com>
87415
87416         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87417         doesn't interfere.
87418
87419 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87420
87421         * m4/ftruncate.m4: Check for chsize.
87422         Link with ftruncate.o unconditionally if ftruncate is missing.
87423         This was required when cross-compiling to i586-mingw32msvc.
87424
87425 2001-04-08  Jim Meyering  <meyering@lucent.com>
87426
87427         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87428         recomputed; that's necessary when the offset spans a DST transition.
87429         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87430
87431 2001-04-02  Jim Meyering  <meyering@lucent.com>
87432
87433         * lib/regex.h, regex.c: Update from GNU libc.
87434
87435 2001-03-24  Jim Meyering  <meyering@lucent.com>
87436
87437         * m4/jm-macros.m4: Require autoconf-2.49d.
87438
87439 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87440
87441         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87442
87443 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87444
87445         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87446
87447 2001-03-17  Jim Meyering  <meyering@lucent.com>
87448
87449         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87450         now that the version in autoconf is equivalent.
87451         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87452
87453         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87454         Suggestion from Akim Demaille.
87455
87456         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87457         (jm_PREREQ_TEMPNAME): New function.
87458
87459 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87460
87461         * lib/tempname.c (uint64_t): Define to uintmax_t if
87462         not defined, and if UINT64_MAX is not defined.
87463         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87464         Reported by John David Anglin.
87465
87466 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87467
87468         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87469         resolve alias if codeset is empty.
87470         * lib/config.charset (BeOS): Use wildcard syntax.
87471
87472 2001-03-13  Jim Meyering  <meyering@lucent.com>
87473
87474         * lib/path-concat.c (path_concat)
87475         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87476         concatenating e.g., `C:' and `foo'.
87477         From Bruno Haible.
87478
87479 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87480
87481         * lib/localcharset.c (locale_charset): Don't use
87482         setlocale(LC_CTYPE,NULL). Don't return NULL.
87483         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87484
87485 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87486
87487         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87488         support for DOS/DJGPP.
87489
87490 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87491
87492         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87493         lacks mkstemp.  Compile our own tempname.c if we compile our own
87494         mkstemp.c, as mkstemp relies on tempname.
87495
87496 2001-03-01  Jim Meyering  <meyering@lucent.com>
87497
87498         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87499         AH_VERBATIM really does output its argument verbatim.
87500
87501 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87502
87503         * lib/Makefile.am (libfetish_a_SOURCES):
87504         Add dup-safer.c, fopen-safer.c.
87505         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87506
87507         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87508         * lib/unistd-safer.h: New files.
87509
87510 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87511
87512         The mkstemp replacement is taken from glibc 2.2.2, with some
87513         portability fixes for use outside glibc, as follows:
87514
87515         * lib/tempname.c (struct_stat64): New macro.
87516         (direxists, __gen_tempname): Use it.
87517         This avoids a portability problem with Solaris 8.
87518
87519         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87520         (<stddef.h>, <stdint.h>, <string.h>):
87521         Include only if STDC_HEADERS || _LIBC.
87522         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87523         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87524         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87525         (__set_errno): Define this macro if <errno.h> doesn't.
87526         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87527         Define these macros if <stdio.h> doesn't.
87528         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87529         Define these macros if <sys/stat.h>
87530         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87531         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87532         __xstat64): Define if not _LIBC.
87533         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87534         (__gen_tempname): Invoke gettimeofday only if
87535         HAVE_GETTIMEOFDAY || _LIBC;
87536         otherwise, fall back on plain "time".
87537         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87538
87539         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87540
87541         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87542
87543 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87544
87545         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87546
87547 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87548
87549         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87550         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87551         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87552         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87553
87554 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87555
87556         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87557         Remove workaround macros for hosts that have mbrtowc but not
87558         mbstate_t, as we now insist on proper declarations for both
87559         before using mbrtowc.
87560
87561 2001-02-17  Jim Meyering  <meyering@lucent.com>
87562
87563         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87564         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87565         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87566         UnixWare 7.1.1.
87567
87568         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87569         rather than AC_CACHE_VAL.
87570
87571 2001-02-17  Jim Meyering  <meyering@lucent.com>
87572
87573         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87574         around included file name.
87575
87576         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87577
87578         * lib/strftime.c: Update from GNU libc (the only changes were to
87579         comments).
87580
87581 2001-02-17  Jim Meyering  <meyering@lucent.com>
87582
87583         * lib/regex.c: Update from libc.
87584
87585 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87586
87587         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87588         clash.
87589
87590 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87591
87592         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87593         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87594         Reported by Mark Hounschell via Paul Eggert.
87595
87596 2001-02-07  Jim Meyering  <meyering@lucent.com>
87597
87598         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87599
87600 2001-02-05  Jim Meyering  <meyering@lucent.com>
87601
87602         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87603         it includes the patch required for `large file' support with at least
87604         HP-UX's 10.20 /bin/cc.
87605
87606 2001-02-03  Jim Meyering  <meyering@lucent.com>
87607
87608         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87609         AS_IF, now that it works once again (mysteriously).
87610         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87611
87612 2001-01-30  Jim Meyering  <meyering@lucent.com>
87613
87614         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87615         * m4/chown.m4: Rename conftestchown to conftest.chown.
87616         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87617         s/conftestdir2/conftest.d2/.
87618         * m4/utimes.m4: s/conftestdata/conftest.data/
87619         Inspired by Pavel Roskin's change in autoconf.
87620
87621 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87622
87623         * lib/config.charset: Update for FreeBSD 4.2.
87624
87625 2001-01-27  Jim Meyering  <meyering@lucent.com>
87626
87627         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87628         a use of AS_IF.
87629         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87630
87631 2001-01-26  Jim Meyering  <meyering@lucent.com>
87632
87633         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87634         quotearg.c includes it.
87635
87636 2001-01-26  Jim Meyering  <meyering@lucent.com>
87637
87638         * lib/quotearg.c: Include stddef.h.
87639         * lib/quote.c: Include stddef.h.
87640         Reported by Axel Kittenberger.
87641
87642         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87643         line in double quotes so that it evokes a better diagnostic.
87644         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87645         Reported by Axel Kittenberger.
87646
87647 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87648
87649         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87650         as if it was a `charset'.
87651
87652 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87653
87654         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87655         has const.
87656
87657 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87658
87659         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87660         to avoid a warning.  Add back 'const' to inptr.
87661
87662 2001-01-20  Jim Meyering  <meyering@lucent.com>
87663
87664         Be sure that headers are checked before used in code compiled
87665         for the type checks.
87666         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87667         In place of that, invoke jm_CHECK_ALL_TYPES.
87668         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87669         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87670         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87671         The check for ssize_t was mistakenly run before the test for unistd.h.
87672
87673         The configure-time check for stdbool.h was missing.
87674         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87675         (jm_PREREQ_HASH): New function.
87676
87677 2001-01-17  Jim Meyering  <meyering@lucent.com>
87678
87679         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87680         for autoconf-2.49c.
87681         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87682
87683 2001-01-16  Jim Meyering  <meyering@lucent.com>
87684
87685         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87686         From Bruno Haible.
87687
87688 2001-01-14  Jim Meyering  <meyering@lucent.com>
87689
87690         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87691         foo and bar.  Create conftestdir/ in the script, not in the C code.
87692         Remove directories in the script, not in the C code.
87693         Remove conftestdir{,2} before trying to create the directory.
87694         Make the entire configure script fail if the mkdir fails.
87695
87696 2001-01-14  Jim Meyering  <meyering@lucent.com>
87697
87698         * lib/rename.c: New file.  From Volker Borchert.
87699         Include stdlib.h, string.h or strings.h, and xalloc.h.
87700         Use strip_trailing_slashes rather than open-coding it.
87701
87702 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87703
87704         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87705
87706 2001-01-03  Jim Meyering  <meyering@lucent.com>
87707
87708         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87709         of local `inptr' to avoid warning with some system declarations of
87710         iconv.
87711
87712 2001-01-02  Volker Borchert  <bt@teknon.de>
87713
87714         * m4/rename.m4: New file.
87715         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87716
87717 2001-01-01  Jim Meyering  <meyering@lucent.com>
87718
87719         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87720         even on systems with utmpx.h.  It's necessary for the declaration of
87721         utmp's ut_user member.  Reported by Andreas Jaeger.
87722
87723         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87724         available. They are required for the declarations of getgrgid and
87725         getpwuid resp.
87726         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87727         Reported by Andreas Jaeger.
87728
87729 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87730
87731         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87732         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87733         so `make install' also works in VPATH builds.
87734
87735 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87736
87737         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87738         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87739         can be used in subdirectories.
87740
87741 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87742
87743         * lib/modechange.c: Do not assume that mode_t uses the
87744         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87745         the other-execute bit of FOO even if S_IXOTH != 1.
87746
87747         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87748         WOTH, XOTH, ALLM): New macros.
87749         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87750          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87751         Use them.
87752         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87753         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87754         (mode_compile):
87755         No need to use uintmax_t; unsigned long is long enough.
87756         Don't bother to get suffix since we don't use it.
87757
87758 2000-12-26  Jim Meyering  <meyering@lucent.com>
87759
87760         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87761         better with autoheader.
87762
87763 2000-12-24  Jim Meyering  <meyering@lucent.com>
87764
87765         * lib/hash.c (is_prime): Return explicit boolean values.
87766         (hash_get_first): Return NULL to appease Irix5.6's 89.
87767         Reported by Nelson Beebe.
87768
87769 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87770
87771         * lib/localcharset.c (locale_charset): Add support for Win32.
87772
87773 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87774
87775         * lib/physmem.h, lib/physmem.c: New files.
87776
87777         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87778         (noinst_HEADERS): Add physmem.h.
87779
87780         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87781         't' for compatibility with Solaris 8 sort.
87782
87783 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87784
87785         * lib/config.charset: Add support for BeOS.
87786
87787 2000-12-17  Jim Meyering  <meyering@lucent.com>
87788
87789         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87790         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87791
87792 2000-12-16  Jim Meyering  <meyering@lucent.com>
87793
87794         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87795         N and M) would have treated it like `chown N:N FILE'.
87796
87797         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87798
87799 2000-12-16  Jim Meyering  <meyering@lucent.com>
87800
87801         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87802         SHELLS_FILE to a file name that's useful on djgpp systems.
87803         Include stdlib.h.
87804         (ADDITIONAL_DEFAULT_SHELLS): Define.
87805         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87806         Based mostly on a patch from Prashant TR.
87807
87808 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87809
87810         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87811         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87812         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87813
87814 2000-12-08  Andreas Schwab  <schwab@suse.de>
87815
87816         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87817         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87818
87819 2000-12-07  Jim Meyering  <meyering@lucent.com>
87820
87821         * lib/stripslash.c (ISSLASH): Define.
87822         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87823         `/'.
87824         From Prashant TR.
87825
87826         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87827         (dir_name_r): Declare this function as static.
87828         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87829         manifest itself on a name containing a mix of slashes and
87830         backslashes.
87831         Make this function work with names starting with a DOS-style
87832         drive letter and colon prefix.
87833         (dir_name): Append `.' if necessary.
87834         Based mostly on patches from Prashant TR and Eli Zaretskii.
87835
87836         * lib/dirname.h (dir_name_r): Remove prototype.
87837
87838 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87839
87840         * m4/off_t-format.m4: Remove this file.
87841         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87842
87843 2000-12-06  Jim Meyering  <meyering@lucent.com>
87844
87845         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87846         replacement strtoull, we may well need the replacement strtoul, too.
87847         Check for declarations of strtoul and strtoull.
87848         Check for strtol.  Mainly as a cue to cause automake to include
87849         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87850         Check for limits.h -- strtol.c needs it.
87851
87852 2000-12-05  Jim Meyering  <meyering@lucent.com>
87853
87854         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87855
87856 2000-12-04  Jim Meyering  <meyering@lucent.com>
87857
87858         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87859         Also include memory.h, stdlib.h, unistd.h if appropriate.
87860         Reported by Andreas Jaeger (conflicting declaration of malloc).
87861
87862 2000-12-02  Jim Meyering  <meyering@lucent.com>
87863
87864         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87865         * m4/jm-macros.m4 (jm_MACROS): require it.
87866
87867 2000-12-02  Jim Meyering  <meyering@lucent.com>
87868
87869         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87870
87871 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87872
87873         * lib/memrchr.c: Include <config.h> before any system include file.
87874
87875 2000-11-30  Jim Meyering  <meyering@lucent.com>
87876
87877         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87878
87879 2000-11-30  Jim Meyering  <meyering@lucent.com>
87880
87881         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87882
87883 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87884
87885         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87886
87887 2000-11-26  Jim Meyering  <meyering@lucent.com>
87888
87889         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87890
87891 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87892
87893         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87894         size of (size_t) -1; it's not portable.
87895
87896 2000-11-17  Jim Meyering  <meyering@lucent.com>
87897
87898         * lib/strstr.c: Update from GNU libc.
87899
87900 2000-11-17  Akim Demaille  <akim@epita.fr>
87901
87902         * lib/obstack.h: Formatting changes.
87903         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87904         prevent type checking.
87905         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87906         cast the value to (void *): assigning a `foo *' to a `void *'
87907         variable is valid.
87908         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87909
87910 2000-11-16  Jim Meyering  <meyering@lucent.com>
87911
87912         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87913
87914 2000-11-11  Jim Meyering  <meyering@lucent.com>
87915
87916         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87917
87918 2000-11-10  Jim Meyering  <meyering@lucent.com>
87919
87920         * lib/obstack.h: Update from GNU libc.
87921         * lib/obstack.c: Likewise.
87922
87923 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87924
87925         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87926
87927 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87928
87929         * lib/getusershell.c (setusershell): Use rewind rather than
87930         fseek/fseeko, to avoid configuration hassles with fseeko.
87931         Don't bother opening SHELLS_FILE if shellstream is NULL;
87932         it's not necessary.
87933
87934 2000-11-05  Jim Meyering  <meyering@lucent.com>
87935
87936         * lib/makepath.h (make_dir): Declare.
87937         * lib/makepath.c (make_dir): Remove `static' attribute.
87938         Tweak a comment.
87939
87940 2000-11-04  Jim Meyering  <meyering@lucent.com>
87941
87942         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
87943
87944 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
87945
87946         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
87947         last one in a bucket, advance to the next bucket.
87948
87949 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
87950
87951         * lib/fnmatch.c: Do not comment out all the code if we are using
87952         the GNU C library, because in some cases we are replacing buggy
87953         code in the GNU C library itself.
87954
87955 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
87956
87957         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
87958         (regex_compile): Catch bogus \(\1\).
87959
87960 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87961
87962         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
87963         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
87964         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
87965
87966 2000-10-30  Paul Eggert  <eggert@twinsun.com>
87967
87968         * lib/error.h, getline.h, modechange.h:
87969         Remove "2000" from Copyright line, as the file hasn't been
87970         changed this year other than in the copyright notice.
87971
87972         * lib/xalloc.h: Add "2000" to Copyright line, as this file
87973         was changed this year.
87974
87975 2000-10-29  Jim Meyering  <meyering@lucent.com>
87976
87977         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
87978         renaming.
87979         * m4/ls-mntd-fs.m4: Likewise
87980
87981 2000-10-29  Jim Meyering  <meyering@lucent.com>
87982
87983         * lib/xstat.in: Fix grammar in comment.
87984
87985 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
87986
87987         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
87988         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
87989         doesn't define __restrict_arr.
87990
87991 2000-10-28  Jim Meyering  <meyering@lucent.com>
87992
87993         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
87994         (jm_PREREQ_MEMCHR): New function.
87995
87996 2000-10-28  Jim Meyering  <meyering@lucent.com>
87997
87998         * lib/memchr.c: Update from libc.
87999         Adjust for portability:
88000         [HAVE_STDLIB_H]: Include stdlib.h.
88001         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88002         Undef __memchr, too.
88003         [!weak_alias]: Define __memchr to memchr.
88004
88005         * lib/regex.c: Update from libc.
88006         * lib/regex.h: Likewise.
88007         * lib/getopt1.c: Likewise.
88008         * lib/memcmp.c: Likewise.
88009
88010         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88011         Avoid using fseek, when possible -- it's broken by design.
88012         Patch by Ulrich Drepper.
88013
88014 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88015
88016         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88017         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88018         Giving in to popular pressure to shut up the compiler with casts.
88019
88020 2000-10-26  Jim Meyering  <meyering@lucent.com>
88021
88022         * lib/strftime.c: Update from libc.
88023
88024 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88025
88026         * regex.c: More `unsigned char' -> `re_char' changes.
88027         Also change several `int' into `re_wchar_t'.
88028         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88029         (PUSH_FAILURE_POINTER): Don't cast any more.
88030         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88031         We want GCC to complain, since this piece of code makes
88032         re_match non-reentrant, which *should* be fixed.
88033         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88034         (EXTEND_BUFFER): Use RETALLOC.
88035         (SET_LIST_BIT): Don't cast.
88036         (re_wchar_t): New type.
88037         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88038         that those two functions will always properly return.
88039         (IMMEDIATE_QUIT_CHECK): Cast to void.
88040         (analyse_first): Use recursion rather than an explicit stack.
88041         (re_compile_fastmap): Can't fail anymore.
88042         (re_search_2): Don't check re_compile_fastmap for failure.
88043         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88044         Now also sets the new value (passed in a new argument).
88045         (re_match_2_internal): Use it.
88046         Also, use a new var `reg' of type size_t when looping through regs
88047         rather than reuse the inappropriate `mcnt'.
88048
88049 2000-10-25  Jim Meyering  <meyering@lucent.com>
88050
88051         * lib/obstack.c: Update from libc.
88052
88053 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88054
88055         * regex.c (regex_compile): Change the way of handling a range from
88056         a char less than 256 to a char not less than 256.
88057
88058 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88059
88060         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88061         NT-Emacs only.
88062         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88063         so that re_search functions only quit when callers expect them to.
88064
88065 2000-10-23  Jim Meyering  <meyering@lucent.com>
88066
88067         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88068         wrong.  That set_locale call must not have any side effects.
88069         From Paul Eggert.
88070
88071 2000-10-22  Jim Meyering  <meyering@lucent.com>
88072
88073         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88074         [CYCLIC]: Remove now-unused definition.
88075
88076         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88077         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88078         Suggestion from Ulrich Drepper.
88079
88080 2000-10-21  Jim Meyering  <meyering@lucent.com>
88081
88082         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88083         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88084         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88085
88086 2000-10-21  Jim Meyering  <meyering@lucent.com>
88087
88088         * lib/dirname.c (memrchr): Declare if necessary.
88089         (dir_name): Remove the restriction that there be no
88090         trailing slashes.  Now, this code skips past them, effectively
88091         ignoring them.
88092         [TEST_DIRNAME] (main): New unit tests.
88093
88094         * lib/memrchr.c: New file from GNU libc.
88095         Undef __memrchr, too.
88096         [!weak_alias]: Define __memrchr to memrchr.
88097         Guard weak_alias use with `#ifdef weak_alias'.
88098
88099 2000-10-21  Jim Meyering  <meyering@lucent.com>
88100
88101         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88102         (dir_name): Use dir_name_r.
88103         * lib/dirname.h (dir_name_r): Declare it.
88104
88105 2000-10-17  Jim Meyering  <meyering@lucent.com>
88106
88107         * lib/quote.h (PARAMS): Define and use.
88108         Reported by Akim Demaille.
88109
88110         * lib/getopt.c: Update from libc.
88111
88112 2000-10-16  Jim Meyering  <meyering@lucent.com>
88113
88114         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88115         setlocale.
88116         From Jan Fedak.
88117
88118 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88119
88120         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88121
88122 2000-09-25  Jim Meyering  <meyering@lucent.com>
88123
88124         * lib/md5.h (rol): Define (from GnuPG).
88125
88126         * lib/sha.c: Give credit (GnuPG) where due.
88127         (M): Use rol rather than open-coding it.
88128         Add a FIXME comment.
88129
88130 2000-09-21  Jim Meyering  <meyering@lucent.com>
88131
88132         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88133         Reported by Michael Stone.
88134
88135 2000-09-20  Jim Meyering  <meyering@lucent.com>
88136
88137         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88138         (noinst_HEADERS): Add sha.h.
88139         Based on code from Scott G. Miller and from GnuPG.
88140
88141 2000-09-18  Jim Meyering  <meyering@lucent.com>
88142
88143         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88144         LIBS. Otherwise, everyone ends up linking with -lelf for some
88145         configurations.
88146         Reported by Mike Stone.
88147
88148 2000-09-15  Jim Meyering  <meyering@lucent.com>
88149
88150         * lib/regex.c: Update from libc.
88151
88152 2000-09-10  Jim Meyering  <meyering@lucent.com>
88153
88154         * lib/getopt.c (_getopt_internal): Update from glibc.
88155
88156 2000-09-09  Jim Meyering  <meyering@lucent.com>
88157
88158         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88159         think it should be used as a general replacement for isascii.
88160         * lib/fnmatch.c: Likewise.
88161         * lib/mbswidth.c: Likewise
88162         * lib/regex.c: Likewise.
88163
88164         Don't use atoi.
88165         * lib/userspec.c: Include sys/param.h and limits.h.
88166         Include xstrtol.h.
88167         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88168         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88169         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88170         UID, GID.  Check range.
88171
88172 2000-09-06  Jim Meyering  <meyering@lucent.com>
88173
88174         * lib/getopt.c (_getopt_internal): Update from glibc.
88175
88176 2000-08-30  Jim Meyering  <meyering@lucent.com>
88177
88178         * lib/strftime.c: Merge in changes from GNU libc.
88179
88180 2000-08-26  Jim Meyering  <meyering@lucent.com>
88181
88182         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88183         * m4/fpending.m4: New file.
88184
88185 2000-08-26  Jim Meyering  <meyering@lucent.com>
88186
88187         * lib/closeout.c: Include "__fpending.h".
88188         (close_stdout_status): Return right away if there's nothing to flush.
88189
88190         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88191         * lib/__fpending.c: New file.
88192         * lib/__fpending.h: New file.
88193
88194 2000-08-20  Jim Meyering  <meyering@lucent.com>
88195
88196         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88197         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88198         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88199
88200 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88201
88202         Improve fileutils installation on systems where running
88203         programs (like install) can't be unlinked.
88204         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88205         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88206
88207 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88208
88209         Standardize on "memory exhausted" instead of "Memory exhausted"
88210         or "virtual memory exhausted".
88211         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88212         "virtual memory exhausted".
88213         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88214         our own message.
88215         * lib/userspec.c (parse_user_spec): Likewise.
88216         * lib/bumpalloc.h: comment fix
88217         * lib/same.c, userspec.c: Include xalloc.h.
88218
88219         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88220         not char *const and pointing to a constant array.
88221         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88222         (xrealloc): Comment fix.
88223
88224         * lib/userspec.c (parse_user_spec):
88225         Don't translate a message until just before returning,
88226         to avoid unnecessary translation.
88227
88228 2000-08-07  Jim Meyering  <meyering@lucent.com>
88229
88230         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88231         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88232         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88233         getgroups.c, gethostname.c, getopt.h, group-member.c,
88234         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88235         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88236         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88237         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88238         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88239         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88240         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88241         yesno.c: Back out Copyright date changes for each file with no change
88242         this year.  This eases coordination with other programs using the same
88243         source code modules.  From Paul Eggert.
88244
88245 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88246
88247         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88248         not char, for compatibility with glibc 2.1.3 strftime.c.
88249
88250 2000-08-03  Greg McGary  <greg@mcgary.org>
88251
88252         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88253         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88254         (EXTEND_BUFFER): Use them.
88255
88256 2000-08-01  Jim Meyering  <meyering@lucent.com>
88257
88258         * lib/dirname.c (ISSLASH): Define.
88259         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88260         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88261         both `\' and `/' may be use as path separators.
88262         Based on a patch from Prashant TR.
88263
88264 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88265
88266         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88267         slot vector a constant, since it might get modified.
88268
88269 2000-07-31  Jim Meyering  <meyering@lucent.com>
88270
88271         * lib/xmalloc.c: Use `virtual memory exhausted', not
88272         `Memory exhausted'.
88273         * lib/obstack.c (print_and_abort): Likewise.
88274
88275 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88276
88277         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88278         buffer, so that the caller can always quote one small
88279         component of a "memory exhausted" message in slot 0.
88280         From a suggestion by Jim Meyering.
88281
88282 2000-07-30  Jim Meyering  <meyering@lucent.com>
88283
88284         * lib/makepath.c (make_path): Quote the other instance, too.
88285
88286         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88287         (STATIC_BUF_SIZE): Define.
88288         (quotearg_n_options): Use only statically allocated storage when
88289         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88290         than STATIC_BUF_SIZE.
88291
88292 2000-07-29  Jim Meyering  <meyering@lucent.com>
88293
88294         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88295         * lib/dirname.c (dir_name): Likewise.
88296
88297         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88298         `/'.
88299
88300         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88301         (dir_name): Assert that there are no trailing slashes.
88302
88303 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88304
88305         * lib/mbswidth.h (mbswidth): Add a flags argument.
88306         (mbswidth): New declaration.
88307         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88308         * lib/mbswidth.c (mbswidth): Add a flags argument.
88309         (mbsnwidth): New function.
88310
88311 2000-07-24  Jim Meyering  <meyering@lucent.com>
88312
88313         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88314
88315 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88316
88317         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88318
88319 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88320
88321         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88322         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88323         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88324         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88325         invoke multibyte primitives.
88326
88327 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88328
88329         * lib/quotearg.c:
88330         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88331         so that mbstate_t is always defined.
88332
88333         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88334         be 1 in at least one GCC installation, and this configuration
88335         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88336         performance on hosts that have mbrtowc but have only unibyte
88337         locales, but I assume these hosts are rare.
88338
88339 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88340
88341         * lib/mbswidth.c (_XOPEN_SOURCE):
88342         Don't define; this causes problems on Solaris 7.
88343         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88344
88345 2000-07-23  Jim Meyering  <meyering@lucent.com>
88346
88347         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88348         too: getgrgid, getpwuid, getuid.
88349
88350 2000-07-23  Jim Meyering  <meyering@lucent.com>
88351
88352         * lib/basename.c (base_name): Add an assertion.
88353
88354 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88355
88356         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88357         shadow its mbsinit function.
88358
88359 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88360
88361         * lib/mbswidth.h: New file.
88362         * lib/mbswidth.c: New file.
88363         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88364         (noinst_HEADERS): Add mbswidth.h.
88365
88366 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88367
88368         * lib/config.charset: Add support for FreeBSD. Improve support for
88369         HP-UX and IRIX 6.
88370
88371 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88372
88373         * m4/mbswidth.m4: New file.
88374         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88375
88376 2000-07-15  Jim Meyering  <meyering@lucent.com>
88377
88378         * lib/makepath.c: Include quote.h.
88379         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88380         corresponding argument in a `quote (...)' call.
88381         Give better diagnostics.
88382
88383         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88384         (noinst_HEADERS): Add quote.h.
88385
88386         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88387         from tar's src/misc.c.
88388         * lib/quote.h: New file.  Prototypes for same.
88389
88390 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88391
88392         From a suggestion by Bruno Haible.
88393         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88394         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88395         to decide whether to define the BeOS workaround macro;
88396         this adjusts to the change to AC_MBSTATE_T.
88397
88398 2000-07-14  Jim Meyering  <meyering@lucent.com>
88399
88400         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88401         jm_AC_TYPE_UINTMAX_T.
88402
88403 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88404
88405         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88406
88407         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88408         quotearg_buffer_restyled): Add support for
88409         clocale_quoting_style.  Undo previous change to
88410         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88411         and "{RIGHT QUOTATION MARK}" msgids.
88412
88413 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88414
88415         From a suggestion by Bruno Haible.
88416         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88417         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88418         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88419         and mbstate_t, to a single-part test that simply defines mbstate_t.
88420         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88421         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88422
88423 2000-07-10  Jim Meyering  <meyering@lucent.com>
88424
88425         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88426
88427         * m4/gnu-source.m4: Output to confdefs.h directly.
88428         Suggestion from Akim Demaille.
88429
88430 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88431
88432         The old behavior of quoting `like this' doesn't look good with
88433         newer, ISO-style fonts.  See:
88434         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88435
88436         Instead, quote "like this" by default.  Let the translator
88437         tailor the locale-specific quoting behavior by providing
88438         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88439
88440         * lib/quotearg.c (N_): New macro.
88441         (gettext_default): New function.
88442         (quotearg_buffer_restyled): Use
88443         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88444         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88445
88446 2000-07-09  Jim Meyering  <meyering@lucent.com>
88447
88448         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88449         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88450
88451         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88452         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88453
88454 2000-07-09  Jim Meyering  <meyering@lucent.com>
88455
88456         * lib/Most files: Update copyright dates to include 2000.
88457
88458 2000-07-08  Jim Meyering  <meyering@lucent.com>
88459
88460         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88461         if not defined.
88462         (xgethostname): Remove now-unnecessary #ifdef.
88463         Move declaration of `err' into loop where it's used.
88464
88465 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88466         and Bruno Haible  <haible@clisp.cons.org>
88467
88468         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88469         only if the test for an object-type mbstate_t fails.  This
88470         prevents us from mistakenly reporting that mbstate_t is a
88471         system object type after we "#define mbstate_t int" to work
88472         around its lack.
88473
88474 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88475         and Bruno Haible  <haible@clisp.cons.org>
88476
88477         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88478
88479 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88480
88481         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88482         to strerror_r.
88483         Include <ctype.h> for use of isalpha.
88484
88485 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88486
88487         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88488         by allocating a larger buffer. Test the gethostname return value for
88489         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88490         returns an error and ENAMETOOLONG isn't defined.
88491
88492 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88493
88494         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88495         dimension.
88496
88497 2000-07-04  Jim Meyering  <meyering@lucent.com>
88498
88499         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88500         of the deprecated AC_CHECKING.
88501
88502 2000-07-04  Jim Meyering  <meyering@lucent.com>
88503
88504         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88505         Reported by Bruno Haible.
88506
88507 2000-07-04  Jim Meyering  <meyering@lucent.com>
88508
88509         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88510         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88511         lacks mbrtowc.
88512
88513 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88514
88515         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88516         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88517
88518 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88519         and Bruno Haible  <haible@clisp.cons.org>
88520
88521         * lib/quotearg.c (mbrtowc):
88522         Assign to *pwc, and return 1 only if result is nonzero.
88523         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88524
88525 2000-07-03  Jim Meyering  <meyering@lucent.com>
88526
88527         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88528
88529 2000-07-03  Jim Meyering  <meyering@lucent.com>
88530
88531         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88532         This is necessary to get a definition of e.g., UTMP_FILE on
88533         HP-UX 10.20.
88534         From Bob Proulx.
88535
88536 2000-07-02  Jim Meyering  <meyering@lucent.com>
88537
88538         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88539
88540         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88541         AC_LIBOBJ(function_name).
88542         * m4/chown.m4: Likewise.
88543         * m4/fnmatch.m4: Likewise.
88544         * m4/ftruncate.m4: Likewise.
88545         * m4/getgroups.m4: Likewise.
88546         * m4/getline.m4: Likewise.
88547         * m4/group-member.m4: Likewise.
88548         * m4/jm-macros.m4: Likewise.
88549         * m4/lstat.m4: Likewise.
88550         * m4/malloc.m4: Likewise.
88551         * m4/memcmp.m4: Likewise.
88552         * m4/nanosleep.m4: Likewise.
88553         * m4/putenv.m4: Likewise.
88554         * m4/realloc.m4: Likewise.
88555         * m4/regex.m4: Likewise.
88556         * m4/stat.m4: Likewise.
88557         * m4/strftime.m4: Likewise.
88558
88559 2000-07-02  Jim Meyering  <meyering@lucent.com>
88560
88561         * lib/quotearg.c (mbstate_t): Don't define here.
88562
88563 2000-07-02  Jim Meyering  <meyering@lucent.com>
88564
88565         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88566
88567 2000-07-01  Jim Meyering  <meyering@lucent.com>
88568
88569         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88570
88571 2000-07-01  Jim Meyering  <meyering@lucent.com>
88572
88573         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88574         problem.
88575
88576 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88577
88578         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88579         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88580
88581 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88582
88583         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88584         per change in ../m4/ls-mntd-fs.m4.
88585         (read_filesystem_list): Ignore symbolic links.
88586
88587 2000-06-29  Jim Meyering  <meyering@lucent.com>
88588
88589         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88590         for declaration of strcmp.
88591
88592         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88593
88594         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88595         Avoid warning by casting result to `char *' to remove `const'.
88596
88597 2000-06-28  Jim Meyering  <meyering@lucent.com>
88598
88599         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88600         included by quotearg.c, for which we perform this test.  From
88601         Bruno Haible.
88602
88603 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88604
88605         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88606         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88607         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88608
88609 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88610
88611         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88612
88613 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88614
88615         savedir now sets errno on failure and invokes xmalloc to get memory.
88616         Fix a couple of other minor bugs while we're at it.
88617
88618         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88619         (NAMLEN): Remove macro.
88620         (malloc, realloc): Remove decls.
88621         (stpcpy): Likewise.
88622         ("xalloc.h"): Include.
88623         (NAME_SIZE_DEFAULT): New macro.
88624         (savedir): Use xmalloc / xrealloc to allocate memory.
88625         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88626         Skip "" directory entries.
88627         Use strlen to calculate directory entry length, since the old method
88628         is rarely used these days and isn't worth supporting.
88629         Don't use a pointer after freeing it.
88630         Check for integer overflow when calculating allocation size.
88631         Use memcpy to copy entries, instead of stpcpy.
88632         Set errno properly when returning NULL.
88633         Check for readdir error.
88634
88635 2000-06-26  Jim Meyering  <meyering@lucent.com>
88636
88637         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88638
88639 2000-06-25  Jim Meyering  <meyering@lucent.com>
88640
88641         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88642         Linux header bug when _XOPEN_SOURCE is defined to 500.
88643
88644 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88645
88646         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88647         deficiency.
88648
88649 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88650
88651         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88652         Include xalloc.h.
88653         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88654
88655 2000-06-24  Jim Meyering  <meyering@lucent.com>
88656
88657         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88658         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88659         for which strerror does return char*, but which lacks a conveniently
88660         accessible declaration of the function.  If the compile-test says
88661         strerror_r doesn't work, then resort to a `run'-test that works on
88662         BeOS and segfaults on DEC Unix.
88663
88664 2000-06-24  Jim Meyering  <meyering@lucent.com>
88665
88666         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88667
88668 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88669
88670         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88671         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88672
88673 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88674
88675         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88676         (mbrtowc, mbstate_t): Define substitutes if
88677         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88678         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88679         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88680
88681 2000-06-23  Jim Meyering  <meyering@lucent.com>
88682
88683         * m4/afs.m4: Add missing AC_MSG_RESULT.
88684         Reported by Bruno Haible.
88685
88686         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88687         Suggestion from Bruno Haible.
88688
88689 2000-06-23  Jim Meyering  <meyering@lucent.com>
88690
88691         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88692
88693 2000-06-21  Jim Meyering  <meyering@lucent.com>
88694
88695         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88696
88697 2000-06-21  Jim Meyering  <meyering@lucent.com>
88698
88699         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88700         (noinst_HEADERS): Add getstr.h.
88701
88702         * lib/getline.c (getstr): Move into a separate file.
88703         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88704         the following changes: new parameter, delim2; both delim[12]
88705         parameters have type `int', not `char'.  The latter would lose
88706         with 8-bit delimiters.
88707         * lib/getstr.h: New file.
88708
88709 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88710
88711         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88712         than 1024, return a memory chunk of least possible size, instead
88713         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88714         Use free/xmalloc instead of xrealloc to avoid copying for very long
88715         paths.
88716
88717 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88718
88719         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88720         the empty string.
88721
88722 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88723
88724         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88725         address, not strdup.  Include <stdlib.h> and don't declare free().
88726
88727 2000-06-19  Jim Meyering  <meyering@lucent.com>
88728
88729         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88730
88731 2000-06-18  Jim Meyering  <meyering@lucent.com>
88732
88733         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88734
88735         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88736         `checking whether...' message to be consistent with that of the
88737         lstat test.
88738
88739 2000-06-18  Jim Meyering  <meyering@lucent.com>
88740
88741         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88742         Besides, these days every porting target provides a mkdir function.
88743
88744         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88745         needed. (this snippet comes from src/system.h).
88746
88747 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88748
88749         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88750
88751 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88752
88753         * lib/human.c (adjust_value): New function.
88754         (human_readable_inexact): Apply rounding style even when
88755         printing approximate values.
88756
88757 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88758
88759         * lib/human.c (human_readable_inexact): Allow an input block
88760         size that is not a multiple of the output block size, and vice versa.
88761         Reported by Piergiorgio Sartor.
88762
88763 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88764
88765         * lib/getdate.y (get_date): Apply relative times after time
88766         zone indicator, not before.  Reported by Todd A. Jacobs.
88767
88768 2000-06-13  Jim Meyering  <meyering@lucent.com>
88769
88770         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88771
88772         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88773
88774 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88775
88776         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88777
88778 2000-06-12  Jim Meyering  <meyering@lucent.com>
88779
88780         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88781         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88782         optional argument.
88783         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88784         the optional argument, `lib'.
88785
88786 2000-06-08  Jim Meyering  <meyering@lucent.com>
88787
88788         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88789
88790 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88791
88792         Rewrite largefile configuration so that we don't need to run
88793         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88794         AC_CANONICAL_HOST in configure.in -- jmm]
88795
88796         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88797         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88798         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88799         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88800         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88801         All uses changed.
88802         Instead of inspecting the output of getconf, try to compile the
88803         test program without and with the macro definition.
88804         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88805         for getconf.  Instead, check for the needed flags by compiling
88806         test programs.
88807
88808 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88809
88810         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88811
88812 2000-06-04  Jim Meyering  <meyering@lucent.com>
88813
88814         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88815         SunOS 4.1.4 for which gid_t is an unsigned type.
88816
88817 2000-06-03  Jim Meyering  <meyering@lucent.com>
88818
88819         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88820         now that autoconf requires that.
88821
88822         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88823         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88824         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88825
88826 2000-06-03  Jim Meyering  <meyering@lucent.com>
88827
88828         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88829
88830 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88831
88832         * m4/glibc21.m4: New file.
88833         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88834
88835 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88836
88837         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88838         newer, don't install charset.alias.
88839         * lib/config.charset: Change the Linux/glibc rules so they become empty
88840         on glibc-2.1 or newer.
88841
88842 2000-06-02  Jim Meyering  <meyering@lucent.com>
88843
88844         * lib/mountlist.c: Back out last change.  Instead, do this...
88845         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88846         me_dummy member using the same `ignore'-testing code.
88847         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88848         fs_type strings.
88849         From Mark D. Roth.
88850
88851 2000-05-29  Jim Meyering  <meyering@lucent.com>
88852
88853         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88854         mounts with the `ignore' attribute.  Based on a patch from
88855         Mark D. Roth.
88856
88857 2000-05-28  Jim Meyering  <meyering@lucent.com>
88858
88859         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88860         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88861         * m4/stat.m4: Likewise.
88862         * m4/lstat.m4: Likewise.
88863         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88864
88865         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88866         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88867
88868 2000-05-26  Jim Meyering  <meyering@lucent.com>
88869
88870         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88871
88872 2000-05-24  Jim Meyering  <meyering@lucent.com>
88873
88874         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88875         autoconf requires that.
88876         * m4/lib-check.m4: Likewise.
88877         * m4/jm-macros.m4: Likewise.
88878         * m4/strftime.m4: Likewise.
88879
88880         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88881         AC_CHECK_DECLS, now that autoconf requires that.
88882
88883 2000-05-22  Jim Meyering  <meyering@lucent.com>
88884
88885         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88886         * m4/lstat.m4: Likewise.
88887
88888 2000-05-22  Jim Meyering  <meyering@lucent.com>
88889
88890         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88891
88892 2000-05-20  Jim Meyering  <meyering@lucent.com>
88893
88894         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88895         (jm_PREREQ): Use it.
88896
88897 2000-05-18  Jim Meyering  <meyering@lucent.com>
88898
88899         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88900         back, too, since it may have been modified by allocate_entry.
88901         (hash_delete): Rewrite to use neither the assignment operator
88902         nor the comma operator in an if-expression.
88903
88904 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88905
88906         * lib/closeout.c:
88907         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88908         Remove; no longer needed.
88909         "quotearg.h": Add include.
88910         (file_name): Do not bother to explicitly initialize to NULL; it's less
88911         efficient on some hosts.
88912         (close_stdout_status): Remove test as to whether stdout was already
88913         closed; it breaks for the case "echo x | sort >&-".
88914         Quote file name colons.
88915         Do not assume that _("write error") lacks format strings.
88916
88917 2000-05-15  Jim Meyering  <meyering@lucent.com>
88918
88919         * lib/version-etc.c (version_etc_copyright): Update the copyright
88920         string used in all --version output.
88921
88922 2000-05-14  Jim Meyering  <meyering@lucent.com>
88923
88924         * lib/closeout.c (close_stdout_set_file_name): New function.
88925         (close_stdout_status): Use new file-scoped global.
88926         Return right away if fstat says the stdout file descriptor is invalid.
88927         * lib/closeout.h (close_stdout_set_file_name): Declare.
88928
88929 2000-05-10  Jim Meyering  <meyering@lucent.com>
88930
88931         * lib/closeout.c [default_exit_status]: New file-scoped variable.
88932         (close_stdout_set_status): New function.
88933         * lib/closeout.h (close_stdout_set_status): Declare.
88934
88935 2000-05-09  Jim Meyering  <meyering@lucent.com>
88936
88937         * m4/gettext.m4: Rename this...
88938         * m4/libintl.m4: ...to this.
88939
88940 2000-05-08  Jim Meyering  <meyering@lucent.com>
88941
88942         * lib/long-options.c: Don't include closeout.h.
88943         (parse_long_options): Don't call close_stdout for --version.
88944
88945 2000-05-06  Paul Eggert  <eggert@twinsun.com>
88946
88947         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
88948         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
88949         2.1.3 bug.  This avoids a clash when files like regex.c define
88950         _GNU_SOURCE.
88951
88952 2000-05-06  Jim Meyering  <meyering@lucent.com>
88953
88954         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
88955         (AC_REPLACE_FUNCS): Add strnlen.
88956
88957         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
88958         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
88959
88960         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
88961         AC_SEARCH_LIBS call for nanosleep.
88962         (LIB_NANOSLEEP): Set and AC_SUBST.
88963
88964 2000-05-06  Jim Meyering  <meyering@lucent.com>
88965
88966         * lib/strnlen.c: Undefine __strnlen and strnlen.
88967         [!weak_alias]: Define __strnlen to strnlen.
88968
88969         * lib/atexit.c: New file, from libiberty.
88970
88971 2000-05-06  Jim Meyering  <meyering@lucent.com>
88972
88973         * lib/closeout.c (close_stdout_status): Also check for errors on the
88974         stderr stream.
88975
88976 2000-05-05  Jim Meyering  <meyering@lucent.com>
88977
88978         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
88979         AC_SEARCH_LIBS call for clock_gettime.
88980         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
88981
88982         * m4/search-libs.m4: Update from autoconf.
88983
88984         su doesn't work on Solaris 2.6.
88985         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
88986         <shadow.h>.  Reported by Dragos Harabor.
88987
88988 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
88989
88990         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
88991         memcpy instead of xmalloc, xrealloc, path_concat.
88992         (locale_charset): Treat empty environment variables as absent.
88993         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
88994
88995 2000-05-04  Jim Meyering  <meyering@lucent.com>
88996
88997         * lib/getopt.c: Update from glibc.
88998         * lib/obstack.c: Likewise.
88999         * lib/obstack.h: Likewise.
89000         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89001         file
89002
89003         * lib/regex.h: Likewise.
89004         * lib/strndup.c: Likewise.
89005         * lib/strnlen.c: New file, from glibc.
89006
89007 2000-05-03  Jim Meyering  <meyering@lucent.com>
89008
89009         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89010
89011 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89012
89013         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89014         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89015         compile-time test, rather than inspecting host and OS, to
89016         decide whether to define _LARGEFILE_SOURCE.
89017
89018 2000-05-01  Jim Meyering  <meyering@lucent.com>
89019
89020         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89021
89022         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89023         Based on a patch from Bruno Haible.
89024
89025 2000-05-01  Jim Meyering  <meyering@lucent.com>
89026
89027         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89028
89029 2000-04-29  Jim Meyering  <meyering@lucent.com>
89030
89031         * lib/path-concat.c: Declare strdup only if it's not defined.
89032         * lib/canon-host.c: Likewise.
89033
89034 2000-04-28  Jim Meyering  <meyering@lucent.com>
89035
89036         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89037         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89038         is included first, then limits.h is included by locale.h by libintl.h.
89039         From John David Anglin.
89040
89041 2000-04-25  Jim Meyering  <meyering@lucent.com>
89042
89043         * lib/makepath.c (S_IRWXUGO): Define.
89044         (make_path): Always perform explicit chmod if MODE specifies any
89045         of the `special' permission bits.  Prompted by a bug report against
89046         install from Mate Wierdl and Joost van Baal.
89047
89048 2000-04-18  Jim Meyering  <meyering@lucent.com>
89049
89050         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89051         (jm_PREREQ): Use it.
89052
89053 2000-04-18  Jim Meyering  <meyering@lucent.com>
89054
89055         * lib/README: New file.
89056
89057         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89058         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89059
89060 2000-04-17  Jim Meyering  <meyering@lucent.com>
89061
89062         Get it right :-)
89063         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89064         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89065         Suggestion from Akim Demaille.
89066
89067 2000-04-17  Jim Meyering  <meyering@lucent.com>
89068
89069         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89070         the definition of it to rpl_strftime also defined-away the system's
89071         declaration.
89072
89073 2000-04-15  Jim Meyering  <meyering@lucent.com>
89074
89075         Use `C' to denote so-called `contiguous' files, the same way
89076         that tar does.
89077         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89078         (ftypelet): Use S_ISCTG.
89079         From Michael Deutschmann.
89080
89081 2000-04-14  Jim Meyering  <meyering@lucent.com>
89082
89083         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89084         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89085         clobbered.
89086
89087 2000-04-14  Jim Meyering  <meyering@lucent.com>
89088
89089         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89090
89091 2000-04-13  Jim Meyering  <meyering@lucent.com>
89092
89093         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89094         AH_VERBATIM to insert required #ifndef into config.h.in.
89095         Suggestion from Akim Demaille.
89096
89097 2000-04-12  Jim Meyering  <meyering@lucent.com>
89098
89099         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89100         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89101         Christian Krackowizer.
89102
89103         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89104         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89105         (AC_SYS_LARGEFILE): Require.
89106         (AM_C_PROTOTYPES): Require.
89107
89108 2000-04-08  Jim Meyering  <meyering@lucent.com>
89109
89110         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89111         names don't conflict.  Reported by Eli Zaretskii.
89112
89113 2000-04-07  Jim Meyering  <meyering@lucent.com>
89114
89115         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89116         sys/types.h, to work around system header problems on AIX 3.2.5.
89117         From Bruno Haible.
89118
89119 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89120
89121         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89122         bug.  Deal with the different error behavior of Irix iconv.
89123
89124 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89125
89126         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89127         IRIX if the installer said otherwise.
89128
89129 2000-04-05  Jim Meyering  <meyering@lucent.com>
89130
89131         Portability tweaks required for ultrix4.3.
89132         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89133         (jm_CHECK_DECLS): Add getutent to the list of functions.
89134         (_jm_DECL_HEADERS): Add utmpx.h.
89135         From John David Anglin.
89136
89137         * m4/strftime.m4: Back out the 2000-04-02 change.
89138         Instead of that change, simply undefine putenv in the test program.
89139
89140 2000-04-05  Jim Meyering  <meyering@lucent.com>
89141
89142         Portability tweaks required for ultrix4.3.
89143         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89144         getutent.
89145         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89146         * lib/canon-host.c: Declare strdup.
89147         * lib/path-concat.c: Likewise.
89148         From John David Anglin.
89149
89150 2000-04-04  Jim Meyering  <meyering@lucent.com>
89151
89152         Be more DOS 8.3-friendly.
89153         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89154         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89155         * lib/Makefile.am: Reflect renaming.
89156         Reported by Eli Zaretskii.
89157
89158         Use a temporary file name that won't clash with `charset.alias'
89159         in the DOS 8.3 name space.
89160         * lib/Makefile.am (charset_tmp): Define.
89161         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89162         (uninstall-local): Likewise.
89163         Reported by Eli Zaretskii.
89164
89165 2000-04-03  Jim Meyering  <meyering@lucent.com>
89166
89167         * m4/gettext.m4: Fix typo in comment.
89168
89169         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89170         textutils/configure.in).  Suggestion from Paul Eggert.
89171         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89172
89173 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89174
89175         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89176         variable in the shell rather than using putenv, which isn't
89177         portable.  This avoids the configure-time inter-test dependency
89178         on the potentially-renamed putenv function.
89179
89180 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89181
89182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89183         before checking struct stat.st_blksize, so that
89184         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89185
89186 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89187
89188         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89189         since strftime.c uses HAVE_STRFTIME to decide whether to use
89190         the underlying strftime.
89191
89192 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89193
89194         * lib/time/strftime.c (my_strftime): Make sure we call the system
89195         strftime, not ourselves, when invoking the underlying strftime.
89196
89197 2000-03-24  Jim Meyering  <meyering@lucent.com>
89198
89199         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89200         (charset_alias): Define.
89201         (install-exec-local): Factor out common code.
89202         (uninstall-local): Split lines longer than 80.
89203         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89204         (SUFFIXES): Define.
89205         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89206         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89207
89208 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89209
89210         * lib/config.charset: Output a line containing "Packages using this
89211         file".
89212         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89213         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89214         ref-del.sed): New rules.
89215
89216 2000-03-17  Jim Meyering  <meyering@lucent.com>
89217
89218         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89219         Otherwise, include <strings.h>
89220
89221 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89222
89223         * lib/unicodeio.c (utf8_wctomb): New function.
89224         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89225         format instead of in UCS-4 with platform dependent endianness.
89226
89227 2000-03-10  Jim Meyering  <meyering@lucent.com>
89228
89229         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89230         From Marco Franzen.
89231
89232 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89233
89234         * lib/savedir.c (savedir): Work even if directory size is
89235         negative; this can happen with some screwy NFS configurations.
89236
89237 2000-03-06  Jim Meyering  <meyering@lucent.com>
89238
89239         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89240         if it's NULL (because we ran out of memory).  From Bruno Haible.
89241
89242 2000-03-05  Jim Meyering  <meyering@lucent.com>
89243
89244         * lib/localcharset.c ("path-concat.h"): Include.
89245         (get_charset_aliases): Use path_concat instead of ANSI string
89246         concatenation.
89247
89248         * lib/unicodeio.h (PARAMS): Define.
89249         Use it to guard prototype.
89250
89251 2000-03-04  Jim Meyering  <meyering@lucent.com>
89252
89253         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89254         for lib/localcharset.c.
89255
89256 2000-03-04  Jim Meyering  <meyering@lucent.com>
89257
89258         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89259         installing into it.
89260         (uninstall-local): Uncomment this rule so `make distcheck' works
89261         once again.
89262
89263         * lib/unicodeio.c (<errno.h>): Include it.
89264         (errno): Declare if not defined.
89265
89266         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89267
89268         * lib/config.charset: New version, incorporating remarks from a linux
89269         i18n mailing list.  From Bruno Haible.
89270
89271 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89272
89273         * m4/codeset.m4: New file.
89274         * m4/iconv.m4: New file.
89275         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89276
89277 2000-03-03  Jim Meyering  <meyering@lucent.com>
89278
89279         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89280
89281 2000-03-02  Jim Meyering  <meyering@lucent.com>
89282
89283         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89284         the messages come out on separate lines.
89285
89286         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89287         rather than jm_CHECK_DECLARATIONS.
89288         * m4/decl.m4: Remove now-unused file.
89289
89290         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89291         geteuid.
89292
89293 2000-03-02  Jim Meyering  <meyering@lucent.com>
89294
89295         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89296
89297 2000-03-01  Jim Meyering  <meyering@lucent.com>
89298
89299         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89300         * lib/unicodeio.c: Likewise.
89301
89302 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89303
89304         * lib/config.charset: New file.
89305         * lib/localcharset.c: New file.
89306         * lib/unicodeio.h, lib/unicodeio.c: New files.
89307         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89308         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89309         (noinst_HEADERS): Add unicodeio.h.
89310         (all-local, install-exec-local, charset.alias): New targets.
89311
89312 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89313
89314         * lib/quotearg.c (ALERT_CHAR): New macro.
89315         (quotearg_buffer_restyled): Use it.
89316
89317 2000-02-27  Jim Meyering  <meyering@lucent.com>
89318
89319         * m4/check-decl.m4: Add getenv to the list.
89320
89321 2000-02-27  Jim Meyering  <meyering@lucent.com>
89322
89323         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89324         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89325
89326         * lib/backupfile.c: Guard inclusion of stdlib.h with
89327         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89328         Declare malloc if needed.
89329
89330         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89331         `#ifndef HAVE_DECL..'
89332         now that autoconf always defines the HAVE_DECL_ symbols.
89333         * lib/human.c: Likewise.
89334         * lib/same.c: Likewise.
89335         * lib/strtoumax.c: Likewise.
89336
89337         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89338         declaration check was not run.
89339         * lib/hash.c: Likewise.
89340         * lib/human.c: Likewise.
89341         * lib/same.c: Likewise.
89342         * lib/strtoumax.c: Likewise.
89343
89344         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89345         `.', then first look up the entire `.'-containing string as a login
89346         name.
89347
89348 2000-02-23  Jim Meyering  <meyering@lucent.com>
89349
89350         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89351         in place of my hack.
89352
89353 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89354
89355         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89356         (textint): New typedef.
89357         (parser_control): Member year changed from int to textint.
89358         All uses changed.
89359         (YYSTYPE): Removed; replaced by %union with int and textint members.
89360         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89361         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89362         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89363         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89364         (date, number, to_year): Use width of number in digits, not its value,
89365         to determine whether it's a 2-digit year, or a 2-digit time.
89366         (yylex): Store number of digits of numeric tokens.
89367         Reported by John Kendall.
89368
89369         (parser_control): Changed from struct parser_control to typedef (for
89370         consistency).  All uses changed.
89371
89372         (tID): Removed; not used.
89373         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89374
89375 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89376
89377         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89378         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89379
89380 2000-02-12  Jim Meyering  <meyering@lucent.com>
89381
89382         * lib/userspec.c (ISDIGIT): Define it.
89383         (isdigit): Remove definition.
89384         (is_number): Use ISDIGIT, not isdigit.
89385         <libintl.h>: Include.
89386         (_ and N_): Define.
89387         (parse_user_spec): Mark translatable strings.
89388
89389 2000-02-10  Jim Meyering  <meyering@lucent.com>
89390
89391         With these changes, nanosleep.[ch] are finally enough like the other
89392         lib/* replacement files to compile on a few more losing systems.
89393
89394         * lib/nanosleep.h: Don't include config.h.
89395         Remove prototype from declaration of nanosleep.
89396         (PARAMS): Remove now-unneeded definition.
89397         * lib/nanosleep.c: #undef nanosleep.
89398         (rpl_nanosleep): Rename from nanosleep.
89399
89400 2000-02-10  Jim Meyering  <meyering@lucent.com>
89401
89402         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89403         gnu_nanosleep to rpl_nanosleep.
89404
89405 2000-02-09  Jim Meyering  <meyering@lucent.com>
89406
89407         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89408         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89409
89410 2000-02-08  Akim Demaille  <akim@epita.fr>
89411
89412         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89413         `[' and `]' and remove uses of `changequote'.
89414         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89415         (AC_SYS_LARGEFILE): Likewise.
89416         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89417         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89418         of changequote.
89419         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89420         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89421         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89422         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89423
89424 2000-02-05  Jim Meyering  <meyering@lucent.com>
89425
89426         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89427         Remove explicit use of AC_HEADER_TIME.  It is required by
89428         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89429         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89430         in autoconf whereby the expansion of the latter ended up preceding
89431         the expansion of its prerequisite, AC_HEADER_TIME.
89432         Reported by Volker Borchert.
89433
89434 2000-02-03  Jim Meyering  <meyering@lucent.com>
89435
89436         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89437
89438 2000-02-03  Jim Meyering  <meyering@lucent.com>
89439
89440         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89441         rather than with `#if HAVE_UTMPNAME'.
89442
89443 2000-02-02  Jim Meyering  <meyering@lucent.com>
89444
89445         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89446         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89447         Reported by Eli Zaretskii.
89448
89449 2000-02-01  Jim Meyering  <meyering@lucent.com>
89450
89451         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89452
89453 2000-01-31  Jim Meyering  <meyering@lucent.com>
89454
89455         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89456         functions.  Add the time.h and sys/time.h headers along with the
89457         AC_REQUIRE'ment of AC_HEADER_TIME.
89458
89459 2000-01-31  Jim Meyering  <meyering@lucent.com>
89460
89461         * lib/nanosleep.h (nanosleep): Guard declaration with
89462         `#if ! HAVE_DECL_NANOSLEEP'.
89463         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89464         the declaration in that vendor's sys/timers.h.
89465         Reported by Christian Krackowizer.
89466
89467         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89468         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89469         (ISPRINT): Likewise.
89470         Reported by Tom Tromey.
89471
89472 2000-01-30  Jim Meyering  <meyering@lucent.com>
89473
89474         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89475
89476         * m4/prereq.m4 (utmp_includes): Define.
89477         Check for ut_user and ut_name members in both struct utmpx
89478         and struct utmp.
89479
89480 2000-01-30  Jim Meyering  <meyering@lucent.com>
89481
89482         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89483         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89484         header files where only utmpx.ut_user is declared.
89485
89486         * lib/readutmp.h (UT_USER): Define.
89487
89488 2000-01-29  Jim Meyering  <meyering@lucent.com>
89489
89490         * m4/lib-check.m4: New file containing library-related checks from
89491         fileutils and sh-utils (textutils had none).
89492
89493 2000-01-28  Jim Meyering  <meyering@lucent.com>
89494
89495         * m4/perl.m4: Change format of warning message to look more like that
89496         from the missing script.  Suggestion from François Pinard.
89497
89498 2000-01-25  Jim Meyering  <meyering@lucent.com>
89499
89500         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89501         well as time.h in the compile check.
89502         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89503         Fix typo in cross-compiling case: s/yes/no/.
89504
89505 2000-01-23  Jim Meyering  <meyering@lucent.com>
89506
89507         * m4/jm-macros.m4: Move df-related tests here from
89508         fileutils/configure.in
89509
89510         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89511         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89512
89513         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89514         s/space/ac_fsusage_space/.
89515         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89516
89517         * m4/ftruncate.m4: New file (derived from part of
89518         fileutils/configure.in).
89519         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89520         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89521
89522         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89523         AC_SUBST these here, rather than just in sh-util/configure.in, so
89524         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89525         all the same.
89526         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89527         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89528         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89529         (AC_SUBST(POW_LIBM)): Likewise.
89530         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89531
89532 2000-01-23  Jim Meyering  <meyering@lucent.com>
89533
89534         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89535         obstack.c.
89536
89537 2000-01-22  Jim Meyering  <meyering@lucent.com>
89538
89539         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89540
89541         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89542
89543         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89544         configure.in
89545         (AC_CHECK_HEADERS): Likewise for sh-utils.
89546         (AC_CHECK_HEADERS): Likewise for textutils.
89547         Merge the three lists of headers.
89548
89549         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89550         from fileutils' configure.in.
89551
89552         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89553         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89554         check-decl.m4.
89555
89556         * m4/check-decl.m4: Use #if rather than #ifdef.
89557         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89558         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89559         (_jm_DECL_HEADERS): Define new function.
89560         (jm_CHECK_DECLARATIONS): Require it.
89561
89562 2000-01-22  Jim Meyering  <meyering@lucent.com>
89563
89564         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89565         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89566         Required for some AIX systems.  Reported by Christian Krackowizer.
89567         [TESTING] (main): New function.
89568
89569         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89570         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89571         letters.
89572
89573         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89574         iswprint.
89575
89576         * lib/strverscmp.c (ISDIGIT): Define.
89577         (strverscmp): Use ISDIGIT, not isdigit.
89578
89579 2000-01-19  Jim Meyering  <meyering@lucent.com>
89580
89581         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89582         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89583         defines `struct timespec' in <sys/time.h>
89584
89585         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89586         Thanks to Akim for explaining.
89587
89588 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89589
89590         * lib/nanosleep.c (nanosleep):
89591         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89592         POSIX.1 doesn't require SA_INTERRUPT and some systems
89593         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89594         it's been part of POSIX.1 since day 1 (in 1988).
89595
89596 2000-01-17  Jim Meyering  <meyering@lucent.com>
89597
89598         * lib/interlock: Remove unused file.  Reported by François Pinard.
89599
89600 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89601
89602         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89603         alert, backslash, formfeed, and vertical tab unnecessarily in
89604         shell quoting style.
89605
89606 2000-01-16  Jim Meyering  <meyering@lucent.com>
89607
89608         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89609         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89610         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89611         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89612
89613 2000-01-16  Jim Meyering  <meyering@lucent.com>
89614
89615         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89616         because the latter didn't work.
89617
89618 2000-01-15  Jim Meyering  <meyering@lucent.com>
89619
89620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89621         (AC_REPLACE_FUNCS): Add memcpy and memset.
89622         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89623         Add strpbrk.
89624         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89625
89626 2000-01-12  Jim Meyering  <meyering@lucent.com>
89627
89628         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89629         (jm_PREREQ): Use it.
89630         (jm_PREREQ_READUTMP): New macro.
89631         (jm_PREREQ): Use it.
89632
89633 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89634
89635         Quote multibyte characters correctly.
89636         * m4/c-bs-a.m4: New file.
89637         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89638         (jm_PREREQ): Use it.
89639
89640 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89641
89642         * m4/uintmax_t.m4: Port to autoconf 2.13.
89643
89644 2000-01-08  Jim Meyering  <meyering@ascend.com>
89645
89646         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89647         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89648
89649 2000-01-04  Jim Meyering  <meyering@ascend.com>
89650
89651         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89652         jm_STRUCT_DIRENT_D_TYPE.
89653         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89654         jm_STRUCT_DIRENT_D_INO.
89655         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89656         jm_STRUCT_UTIMBUF.
89657         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89658         renamings.
89659         * m4/utime.m4: Likewise.
89660
89661         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89662         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89663
89664 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89665
89666         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89667         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89668
89669 2000-01-02  Jim Meyering  <meyering@ascend.com>
89670
89671         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89672         remember if this is necessary.
89673
89674 1999-12-26  Jim Meyering  <meyering@ascend.com>
89675
89676         * m4/jm-macros.m4: Use it here.
89677         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89678
89679 1999-12-23  Jim Meyering  <meyering@ascend.com>
89680
89681         * m4/jm-macros.m4: Check for clock_gettime (moved from
89682         fileutils/configure.in)
89683         Check for gettimeofday.
89684
89685 1999-12-20  Jim Meyering  <meyering@ascend.com>
89686
89687         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89688         autoconf-2.14a-1999-12-20.
89689
89690 1999-12-19  Jim Meyering  <meyering@ascend.com>
89691
89692         * m4/lstat-slash.m4: New file.
89693         * m4/jm-macros.m4: Use the new macro:
89694         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89695
89696 1999-12-07  Jim Meyering  <meyering@ascend.com>
89697
89698         * m4/perl.m4: Require that File::Compare be available, too.
89699         Too many systems seem to lack it.
89700
89701         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89702         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89703
89704 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89705
89706         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89707         problem with the QNX 4.25 shell, which doesn't propagate exit
89708         status of failed commands inside shell assignments.
89709
89710 1999-11-17  Jim Meyering  <meyering@ascend.com>
89711
89712         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89713
89714 1999-11-07  Jim Meyering  <meyering@ascend.com>
89715
89716         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89717
89718 1999-11-06  Jim Meyering  <meyering@ascend.com>
89719
89720         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89721         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89722
89723 1999-11-05  Jim Meyering  <meyering@ascend.com>
89724
89725         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89726         configure.in of textutils, fileutils, and sh-utils into this one
89727         (shared between those packages) file.
89728         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89729         AC_STRUCT_ST_BLKSIZE.
89730
89731 1999-11-03  Jim Meyering  <meyering@ascend.com>
89732
89733         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89734         of AC_CHECK_TYPE checks includes unistd.h.
89735         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89736         Suggestion from Akim Demaille.
89737
89738 1999-10-30  Jim Meyering  <meyering@ascend.com>
89739
89740         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89741         m4-quoted string.
89742         * m4/ls-mntd-fs.m4: Likewise.
89743         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89744         * m4/jm-winsz1.m4: Likewise.
89745
89746         * m4/const.m4: Remove file, since the fix made it into the experimental
89747         version of autoconf.
89748         * m4/mktime.m4: Likewise.
89749
89750         * m4/check-type.m4: Remove file, now that the latest version of
89751         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89752
89753         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89754         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89755         AC_CHECK_TYPE.
89756
89757 1999-10-04  Jim Meyering  <meyering@ascend.com>
89758
89759         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89760
89761 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89762
89763         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89764         2.95.1 bug with HP-UX 10.20.
89765
89766 1999-09-17  Jim Meyering  <meyering@ascend.com>
89767
89768         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89769         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89770         due to missing strdup (against sh-utils-2.0).
89771
89772 1999-08-29  Jim Meyering  <meyering@ascend.com>
89773
89774         * m4/jm-macros.m4: Require jm_BISON.
89775         * m4/bison.m4: New file.
89776
89777 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89778
89779         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89780         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89781
89782 1999-08-05  Jim Meyering  <meyering@ascend.com>
89783
89784         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89785         to avoid conflicts with `conftest' on 8+3 filesystems.
89786         Suggestion from Eli Zaretskii.
89787
89788 1999-08-04  Jim Meyering  <meyering@ascend.com>
89789
89790         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89791         fileutils and sh-utils (textutils's getline test was inadequate).
89792         (AM_FUNC_GETLINE): Run this test.
89793         (AC_CHECK_FUNCS): Check for getdelim.
89794         Reported by Bob Proulx.
89795
89796 1999-08-02  Jim Meyering  <meyering@ascend.com>
89797
89798         * m4/jm-macros.m4: Add a comment.
89799
89800 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89801
89802         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89803         <inttypes.h> defines strtoumax as a macro (and not as a
89804         function).
89805
89806 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89807
89808         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89809         that we can shift, multiply and divide unsigned long long
89810         values; Ultrix cc can't do it.
89811
89812 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89813
89814         * m4/mktime.m4: New file, which is a preview of what should appear
89815         in the next public autoconf release.
89816
89817 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89818
89819         * m4/lfs.m4: Remove this file.
89820         * m4/largefile.m4: New file.  It contains the old contents of
89821         lfs.m4, except that all names with prefix AC_LFS have been
89822         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89823         compatible with future autoconf versions.  Also, some minor m4
89824         quoting problems have been fixed.
89825
89826 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89827
89828         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89829         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89830         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89831         and simplify the shell code.
89832
89833 1999-08-01  Jim Meyering  <meyering@ascend.com>
89834
89835         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89836         m4.
89837
89838 1999-07-20  Jim Meyering  <meyering@ascend.com>
89839
89840         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89841
89842 1999-07-15  Jim Meyering  <meyering@ascend.com>
89843
89844         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89845
89846 1999-05-22  Jim Meyering  <meyering@ascend.com>
89847
89848         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89849
89850 1999-05-20  Jim Meyering  <meyering@ascend.com>
89851
89852         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89853         Add a colon after each `then' in case $4 is empty.
89854
89855 1999-05-16  Jim Meyering  <meyering@ascend.com>
89856
89857         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89858
89859 1999-05-10  Jim Meyering  <meyering@ascend.com>
89860
89861         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89862
89863         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89864         AC_FUNC_MKTIME.
89865
89866 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89867
89868         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89869
89870 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89871
89872         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89873         not CPPFLAGS, so that linking works correctly in IRIX.
89874
89875 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89876
89877         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89878
89879 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89880
89881         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89882         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89884         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89885         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89886
89887         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89888
89889 1999-04-20  Jim Meyering  <meyering@ascend.com>
89890
89891         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89892         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89893         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89894
89895 1999-04-18  Jim Meyering  <meyering@ascend.com>
89896
89897         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89898         * m4/jm-macros.m4: Use it.
89899
89900 1999-04-06  Jim Meyering  <meyering@ascend.com>
89901
89902         * m4/strftime.m4: Remove test for %f.
89903
89904 1999-03-29  Jim Meyering  <meyering@ascend.com>
89905
89906         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89907         superset of the AC_TYPE_* checks in the textutils, fileutils,
89908         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89909         AC_TYPE_PID_T.
89910
89911 1999-03-28  Jim Meyering  <meyering@ascend.com>
89912
89913         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89914         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89915         replaced e.g., in the *.sh files of the sh-utils.
89916
89917 1999-03-20  Jim Meyering  <meyering@ascend.com>
89918
89919         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89920         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89921         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89922
89923 1999-03-19  Jim Meyering  <meyering@ascend.com>
89924
89925         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89926
89927 1999-03-12  Jim Meyering  <meyering@ascend.com>
89928
89929         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
89930
89931 1999-03-07  Jim Meyering  <meyering@ascend.com>
89932
89933         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
89934         declared.
89935
89936 1999-02-17  Jim Meyering  <meyering@ascend.com>
89937
89938         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
89939         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
89940
89941 1999-02-07  Jim Meyering  <meyering@ascend.com>
89942
89943         * m4/group-member.m4: New file -- extracted from sh-utils'
89944         configure.in.
89945
89946         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
89947         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
89948
89949 1999-02-06  Jim Meyering  <meyering@ascend.com>
89950
89951         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
89952         * m4/fnmatch.m4: Likewise.
89953         * m4/getgroups.m4: Likewise.
89954         * m4/lstat.m4: Likewise.
89955         * m4/malloc.m4: Likewise.
89956         * m4/putenv.m4: Likewise.
89957         * m4/realloc.m4: Likewise.
89958         * m4/regex.m4: Likewise.
89959         * m4/stat.m4: Likewise.
89960         * m4/strftime.m4: Likewise.
89961         Suggestion from Alain Magloire.
89962
89963         * m4/chown.m4: Use `.$ac_objext', not `.o'.
89964         * m4/fnmatch.m4: Likewise.
89965         * m4/getgroups.m4: Likewise.
89966         * m4/getline.m4: Likewise.
89967         * m4/lstat.m4: Likewise.
89968         * m4/malloc.m4: Likewise.
89969         * m4/memcmp.m4: Likewise.
89970         * m4/putenv.m4: Likewise.
89971         * m4/realloc.m4: Likewise.
89972         * m4/regex.m4: Likewise.
89973         * m4/stat.m4: Likewise.
89974         * m4/strftime.m4: Likewise.
89975         Suggestion from Alain Magloire.
89976
89977         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
89978         an argument.
89979
89980         * m4/regex.m4: Add a run-time Test for proper operation of
89981         re_compile_pattern.
89982
89983 1999-01-31  Jim Meyering  <meyering@ascend.com>
89984
89985         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
89986
89987 1999-01-30  Jim Meyering  <meyering@ascend.com>
89988
89989         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
89990
89991         * m4/jm-mktime.m4: Make this a wrapper around the official
89992         AM_FUNC_MKTIME rather than my private copy, now that the official one
89993         is up to date.
89994         * m4/mktime.m4: Remove file.
89995
89996         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
89997         * m4/uptime.m4: Likewise.
89998         * m4/uintmax_t.m4: Likewise.
89999
90000 1999-01-28  Jim Meyering  <meyering@ascend.com>
90001
90002         * m4/jm-macros.m4: Use jm_AFS.
90003         * m4/afs.m4: New file (from fileutils' configure.in).
90004
90005         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90006         * m4/chown.m4: Likewise.
90007         * m4/d-ino.m4: Likewise.
90008         * m4/d-type.m4: Likewise.
90009         * m4/fnmatch.m4: Likewise.
90010         * m4/getgroups.m4: Likewise.
90011         * m4/gettext.m4: Likewise.
90012         * m4/jm-mktime.m4: Likewise.
90013         * m4/jm-winsz2.m4: Likewise.
90014         * m4/lcmessage.m4: Likewise.
90015         * m4/ls-mntd-fs.m4: Likewise.
90016         * m4/malloc.m4: Likewise.
90017         * m4/memcmp.m4: Likewise.
90018         * m4/putenv.m4: Likewise.
90019         * m4/realloc.m4: Likewise.
90020         * m4/st_mtim.m4: Likewise.
90021         * m4/strftime.m4: Likewise.
90022
90023 1999-01-16  Jim Meyering  <meyering@ascend.com>
90024
90025         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90026         (ARGMATCH_DIE_DECL): Define.
90027
90028 1999-01-12  Jim Meyering  <meyering@ascend.com>
90029
90030         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90031         Reported by Lars Hecking.
90032
90033 1999-01-10  Jim Meyering  <meyering@ascend.com>
90034
90035         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90036         gross kludge.
90037         * m4/inttypes_h.m4: Likewise.
90038         * m4/lstat.m4: Likewise.
90039         * m4/malloc.m4: Likewise.
90040         * m4/readdir.m4: Likewise.
90041         * m4/realloc.m4: Likewise.
90042         * m4/st_dm_mode.m4: Likewise.
90043         * m4/stat.m4: Likewise.
90044         * m4/utimbuf.m4: Likewise.
90045         * m4/utimes.m4: Likewise.
90046
90047         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90048         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90049         comments in config.h.in are meaningful.
90050
90051         * m4/jm-macros.m4: Require autoconf-2.13 here.
90052
90053         * m4/regex.m4: By default, don't use the included regex.c on systems
90054         with glibc 2.  Suggestion from Uli Drepper.
90055
90056 1999-01-02  Jim Meyering  <meyering@ascend.com>
90057
90058         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90059
90060 1998-12-18  Jim Meyering  <meyering@ascend.com>
90061
90062         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90063         Based on a suggestion from Lars Hecking.
90064
90065 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90066
90067         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90068
90069 1998-11-16  Jim Meyering  <meyering@ascend.com>
90070
90071         * m4/lfs.m4: Double-quote the `uname...` expression.
90072
90073 1998-11-14  Jim Meyering  <meyering@ascend.com>
90074
90075         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90076         * m4/stat.m4: Likewise.
90077
90078 1998-11-03  Jim Meyering  <meyering@ascend.com>
90079
90080         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90081         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90082
90083 1998-10-18  Jim Meyering  <meyering@ascend.com>
90084
90085         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90086
90087 1998-10-17  Jim Meyering  <meyering@ascend.com>
90088
90089         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90090         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90091         calls for those previously hard-coded headers.  Instead, take a new
90092         parameter.
90093         (jm_CHECK_DECLARATIONS): Reflect interface change.
90094         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90095         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90096
90097         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90098
90099 1998-10-14  Jim Meyering  <meyering@ascend.com>
90100
90101         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90102         instead of "TZ=America/Vancouver".  From Paul Eggert.
90103
90104 1998-10-11  Jim Meyering  <meyering@ascend.com>
90105
90106         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90107         This adds a test for a recently added compatibility fix for mktime.c.
90108         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90109
90110 1998-09-27  Jim Meyering  <meyering@ascend.com>
90111
90112         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90113
90114         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90115         ../configure.in, including a change from Gordon Matzigkeit to allow
90116         cross-compiling for the Hurd.
90117
90118         * m4/glibc.m4: New file/macro to test for the GNU C Library
90119         versions 1 and 2.  From Gordon Matzigkeit.
90120         Indent.
90121
90122 1998-09-21  Jim Meyering  <meyering@ascend.com>
90123
90124         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90125
90126 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90127
90128         Port nanosecond-resolution times to UnixWare 2.1.2 and
90129         pedantic Solaris 2.6.
90130
90131         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90132         AC_STRUCT_ST_MTIM.
90133         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90134         Generate name of ns member, instead of just 1 or undef.
90135         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90136
90137 1998-08-15  Jim Meyering  <meyering@ascend.com>
90138
90139         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90140         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90141         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90142         instead of jm_TYPE_SSIZE_T.
90143
90144 1998-08-12  Jim Meyering  <meyering@ascend.com>
90145
90146         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90147
90148 1998-08-02  Jim Meyering  <meyering@ascend.com>
90149
90150         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90151         in acconfig.h manually.
90152
90153 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90154
90155         * m4/st_mtim.m4: New file.
90156
90157 1998-07-28  Jim Meyering  <meyering@ascend.com>
90158
90159         * m4/utimes.m4: Undef stat.
90160
90161 1998-07-25  Jim Meyering  <meyering@ascend.com>
90162
90163         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90164         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90165
90166 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90167
90168         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90169         uid and gid actually remain unchanged.
90170
90171 1998-07-07  Jim Meyering  <meyering@ascend.com>
90172
90173         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90174
90175 1998-07-04  Jim Meyering  <meyering@ascend.com>
90176
90177         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90178         to prove that this macro can be used in packages without regex.c.
90179
90180 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90181
90182         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90183         is to be used.
90184
90185 1998-07-03  Jim Meyering  <meyering@ascend.com>
90186
90187         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90188
90189         * m4/gettext.m4: New file -- from gettext-0.10.35.
90190         * m4/lcmessage.m4: Likewise.
90191         * m4/progtest.m4: Likewise.
90192
90193         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90194         * m4/jm-macros.m4: Require the new macro.
90195
90196 1998-06-29  Jim Meyering  <meyering@ascend.com>
90197
90198         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90199         for the definition of NGROUPS (used in a system header included
90200         by sys/mount.h).
90201
90202 1998-06-28  Jim Meyering  <meyering@ascend.com>
90203
90204         * m4/ls-mntd-fs.m4: New file.
90205         * m4/fstypename.m4: New file.
90206
90207         * m4/jm-macros.m4: Require the new macro.
90208         * m4/jm-glibc-io.m4: New file.
90209
90210 1998-05-19  Jim Meyering  <meyering@ascend.com>
90211
90212         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90213         * m4/lchown.m4: New file.
90214
90215         * m4/Makefile.am.in: New file.
90216         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90217
90218 1998-05-14  Jim Meyering  <meyering@ascend.com>
90219
90220         * m4/Makefile.am (EXTRA_DIST): Add them.
90221         * m4/jm-macros.m4: New file.
90222         * m4/utimbuf.m4: New file.
90223
90224 1998-05-12  Jim Meyering  <meyering@ascend.com>
90225
90226         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90227
90228 1998-05-11  Jim Meyering  <meyering@ascend.com>
90229
90230         * m4/isc-posix.m4: New file.
90231
90232 1998-05-10  Jim Meyering  <meyering@ascend.com>
90233
90234         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90235
90236 1998-05-09  Jim Meyering  <meyering@ascend.com>
90237
90238         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90239         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90240         with automake.
90241
90242         * m4/ssize_t.m4: New file.
90243         * m4/mktime.m4: Remove file -- the new automake has this now.
90244
90245 1998-04-26  Jim Meyering  <meyering@ascend.com>
90246
90247         * m4/assert.m4: New file.
90248         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90249
90250 1998-04-05  Jim Meyering  <meyering@ascend.com>
90251
90252         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90253         (jm_PREREQ): Use it here.
90254
90255 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90256
90257         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90258         in acconfig.h.
90259
90260 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90261
90262         * m4/prereq.m4: New file.
90263         * m4/error.m4: New file.
90264         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90265
90266 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90267
90268         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90269         cache-check for the same variable -- that defeated the purpose of
90270         the test; the test program was never run.  This was a problem only
90271         on systems with losing getline functions -- HP-UX 10.20 is one.
90272         Reported by Bjorn Helgaas.
90273
90274 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90275
90276         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90277
90278 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90279
90280         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90281
90282         * m4/const.m4: New file.  Use an initializer in this declaration
90283         typedef int charset[2]; const charset x;
90284         Reported by Bob Glickstein.
90285
90286 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90287
90288         * m4/chown.m4: Fix reversed types on -1 args to chown.
90289         From Kaveh Ghazi.
90290
90291 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90292
90293         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90294         Add lseek and memchr.
90295
90296         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90297         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90298         have a 20-character limit on names.
90299
90300 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90301
90302         * m4/inttypes_h.m4: New file.
90303         * m4/uintmax_t.m4: New file.
90304         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90305
90306
90307         -----
90308
90309         Local Variables:
90310         coding: utf-8
90311         End:
90312
90313         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90314
90315         Copying and distribution of this file, with or without
90316         modification, are permitted provided the copyright notice
90317         and this notice are preserved.